Spaces:
Running
Running
File size: 494,578 Bytes
d62cb8d 4511ff2 aee577f 4511ff2 aee577f 4511ff2 aee577f 4511ff2 aee577f 4511ff2 d62cb8d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 | <!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>DROPFORM — AI AGENT Presentation</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&display=swap" rel="stylesheet">
<script type="module" crossorigin>(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))r(c);new MutationObserver(c=>{for(const s of c)if(s.type==="childList")for(const f of s.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&r(f)}).observe(document,{childList:!0,subtree:!0});function o(c){const s={};return c.integrity&&(s.integrity=c.integrity),c.referrerPolicy&&(s.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?s.credentials="include":c.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(c){if(c.ep)return;c.ep=!0;const s=o(c);fetch(c.href,s)}})();var H2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function my(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var rc={exports:{}},Ol={};var _2;function py(){if(_2)return Ol;_2=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function o(r,c,s){var f=null;if(s!==void 0&&(f=""+s),c.key!==void 0&&(f=""+c.key),"key"in c){s={};for(var h in c)h!=="key"&&(s[h]=c[h])}else s=c;return c=s.ref,{$$typeof:i,type:r,key:f,ref:c!==void 0?c:null,props:s}}return Ol.Fragment=l,Ol.jsx=o,Ol.jsxs=o,Ol}var G2;function gy(){return G2||(G2=1,rc.exports=py()),rc.exports}var gt=gy(),uc={exports:{}},pt={};var j2;function vy(){if(j2)return pt;j2=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),y=Symbol.iterator;function m(_){return _===null||typeof _!="object"?null:(_=y&&_[y]||_["@@iterator"],typeof _=="function"?_:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,b={};function C(_,Y,k){this.props=_,this.context=Y,this.refs=b,this.updater=k||S}C.prototype.isReactComponent={},C.prototype.setState=function(_,Y){if(typeof _!="object"&&typeof _!="function"&&_!=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,_,Y,"setState")},C.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function R(){}R.prototype=C.prototype;function z(_,Y,k){this.props=_,this.context=Y,this.refs=b,this.updater=k||S}var U=z.prototype=new R;U.constructor=z,T(U,C.prototype),U.isPureReactComponent=!0;var M=Array.isArray;function B(){}var D={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function V(_,Y,k){var it=k.ref;return{$$typeof:i,type:_,key:Y,ref:it!==void 0?it:null,props:k}}function O(_,Y){return V(_.type,Y,_.props)}function L(_){return typeof _=="object"&&_!==null&&_.$$typeof===i}function H(_){var Y={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(k){return Y[k]})}var Q=/\/+/g;function nt(_,Y){return typeof _=="object"&&_!==null&&_.key!=null?H(""+_.key):Y.toString(36)}function et(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then(B,B):(_.status="pending",_.then(function(Y){_.status==="pending"&&(_.status="fulfilled",_.value=Y)},function(Y){_.status==="pending"&&(_.status="rejected",_.reason=Y)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function j(_,Y,k,it,st){var at=typeof _;(at==="undefined"||at==="boolean")&&(_=null);var ct=!1;if(_===null)ct=!0;else switch(at){case"bigint":case"string":case"number":ct=!0;break;case"object":switch(_.$$typeof){case i:case l:ct=!0;break;case p:return ct=_._init,j(ct(_._payload),Y,k,it,st)}}if(ct)return st=st(_),ct=it===""?"."+nt(_,0):it,M(st)?(k="",ct!=null&&(k=ct.replace(Q,"$&/")+"/"),j(st,Y,k,"",function(ie){return ie})):st!=null&&(L(st)&&(st=O(st,k+(st.key==null||_&&_.key===st.key?"":(""+st.key).replace(Q,"$&/")+"/")+ct)),Y.push(st)),1;ct=0;var Et=it===""?".":it+":";if(M(_))for(var mt=0;mt<_.length;mt++)it=_[mt],at=Et+nt(it,mt),ct+=j(it,Y,k,at,st);else if(mt=m(_),typeof mt=="function")for(_=mt.call(_),mt=0;!(it=_.next()).done;)it=it.value,at=Et+nt(it,mt++),ct+=j(it,Y,k,at,st);else if(at==="object"){if(typeof _.then=="function")return j(et(_),Y,k,it,st);throw Y=String(_),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return ct}function Z(_,Y,k){if(_==null)return _;var it=[],st=0;return j(_,it,"","",function(at){return Y.call(k,at,st++)}),it}function $(_){if(_._status===-1){var Y=_._result;Y=Y(),Y.then(function(k){(_._status===0||_._status===-1)&&(_._status=1,_._result=k)},function(k){(_._status===0||_._status===-1)&&(_._status=2,_._result=k)}),_._status===-1&&(_._status=0,_._result=Y)}if(_._status===1)return _._result.default;throw _._result}var lt=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_)},ft={map:Z,forEach:function(_,Y,k){Z(_,function(){Y.apply(this,arguments)},k)},count:function(_){var Y=0;return Z(_,function(){Y++}),Y},toArray:function(_){return Z(_,function(Y){return Y})||[]},only:function(_){if(!L(_))throw Error("React.Children.only expected to receive a single React element child.");return _}};return pt.Activity=x,pt.Children=ft,pt.Component=C,pt.Fragment=o,pt.Profiler=c,pt.PureComponent=z,pt.StrictMode=r,pt.Suspense=g,pt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,pt.__COMPILER_RUNTIME={__proto__:null,c:function(_){return D.H.useMemoCache(_)}},pt.cache=function(_){return function(){return _.apply(null,arguments)}},pt.cacheSignal=function(){return null},pt.cloneElement=function(_,Y,k){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var it=T({},_.props),st=_.key;if(Y!=null)for(at in Y.key!==void 0&&(st=""+Y.key),Y)!E.call(Y,at)||at==="key"||at==="__self"||at==="__source"||at==="ref"&&Y.ref===void 0||(it[at]=Y[at]);var at=arguments.length-2;if(at===1)it.children=k;else if(1<at){for(var ct=Array(at),Et=0;Et<at;Et++)ct[Et]=arguments[Et+2];it.children=ct}return V(_.type,st,it)},pt.createContext=function(_){return _={$$typeof:f,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:s,_context:_},_},pt.createElement=function(_,Y,k){var it,st={},at=null;if(Y!=null)for(it in Y.key!==void 0&&(at=""+Y.key),Y)E.call(Y,it)&&it!=="key"&&it!=="__self"&&it!=="__source"&&(st[it]=Y[it]);var ct=arguments.length-2;if(ct===1)st.children=k;else if(1<ct){for(var Et=Array(ct),mt=0;mt<ct;mt++)Et[mt]=arguments[mt+2];st.children=Et}if(_&&_.defaultProps)for(it in ct=_.defaultProps,ct)st[it]===void 0&&(st[it]=ct[it]);return V(_,at,st)},pt.createRef=function(){return{current:null}},pt.forwardRef=function(_){return{$$typeof:h,render:_}},pt.isValidElement=L,pt.lazy=function(_){return{$$typeof:p,_payload:{_status:-1,_result:_},_init:$}},pt.memo=function(_,Y){return{$$typeof:v,type:_,compare:Y===void 0?null:Y}},pt.startTransition=function(_){var Y=D.T,k={};D.T=k;try{var it=_(),st=D.S;st!==null&&st(k,it),typeof it=="object"&&it!==null&&typeof it.then=="function"&&it.then(B,lt)}catch(at){lt(at)}finally{Y!==null&&k.types!==null&&(Y.types=k.types),D.T=Y}},pt.unstable_useCacheRefresh=function(){return D.H.useCacheRefresh()},pt.use=function(_){return D.H.use(_)},pt.useActionState=function(_,Y,k){return D.H.useActionState(_,Y,k)},pt.useCallback=function(_,Y){return D.H.useCallback(_,Y)},pt.useContext=function(_){return D.H.useContext(_)},pt.useDebugValue=function(){},pt.useDeferredValue=function(_,Y){return D.H.useDeferredValue(_,Y)},pt.useEffect=function(_,Y){return D.H.useEffect(_,Y)},pt.useEffectEvent=function(_){return D.H.useEffectEvent(_)},pt.useId=function(){return D.H.useId()},pt.useImperativeHandle=function(_,Y,k){return D.H.useImperativeHandle(_,Y,k)},pt.useInsertionEffect=function(_,Y){return D.H.useInsertionEffect(_,Y)},pt.useLayoutEffect=function(_,Y){return D.H.useLayoutEffect(_,Y)},pt.useMemo=function(_,Y){return D.H.useMemo(_,Y)},pt.useOptimistic=function(_,Y){return D.H.useOptimistic(_,Y)},pt.useReducer=function(_,Y,k){return D.H.useReducer(_,Y,k)},pt.useRef=function(_){return D.H.useRef(_)},pt.useState=function(_){return D.H.useState(_)},pt.useSyncExternalStore=function(_,Y,k){return D.H.useSyncExternalStore(_,Y,k)},pt.useTransition=function(){return D.H.useTransition()},pt.version="19.2.6",pt}var Y2;function rf(){return Y2||(Y2=1,uc.exports=vy()),uc.exports}var tt=rf(),cc={exports:{}},Vl={},fc={exports:{}},hc={};var P2;function yy(){return P2||(P2=1,(function(i){function l(j,Z){var $=j.length;j.push(Z);t:for(;0<$;){var lt=$-1>>>1,ft=j[lt];if(0<c(ft,Z))j[lt]=Z,j[$]=ft,$=lt;else break t}}function o(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var Z=j[0],$=j.pop();if($!==Z){j[0]=$;t:for(var lt=0,ft=j.length,_=ft>>>1;lt<_;){var Y=2*(lt+1)-1,k=j[Y],it=Y+1,st=j[it];if(0>c(k,$))it<ft&&0>c(st,k)?(j[lt]=st,j[it]=$,lt=it):(j[lt]=k,j[Y]=$,lt=Y);else if(it<ft&&0>c(st,$))j[lt]=st,j[it]=$,lt=it;else break t}}return Z}function c(j,Z){var $=j.sortIndex-Z.sortIndex;return $!==0?$:j.id-Z.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;i.unstable_now=function(){return s.now()}}else{var f=Date,h=f.now();i.unstable_now=function(){return f.now()-h}}var g=[],v=[],p=1,x=null,y=3,m=!1,S=!1,T=!1,b=!1,C=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null;function U(j){for(var Z=o(v);Z!==null;){if(Z.callback===null)r(v);else if(Z.startTime<=j)r(v),Z.sortIndex=Z.expirationTime,l(g,Z);else break;Z=o(v)}}function M(j){if(T=!1,U(j),!S)if(o(g)!==null)S=!0,B||(B=!0,H());else{var Z=o(v);Z!==null&&et(M,Z.startTime-j)}}var B=!1,D=-1,E=5,V=-1;function O(){return b?!0:!(i.unstable_now()-V<E)}function L(){if(b=!1,B){var j=i.unstable_now();V=j;var Z=!0;try{t:{S=!1,T&&(T=!1,R(D),D=-1),m=!0;var $=y;try{e:{for(U(j),x=o(g);x!==null&&!(x.expirationTime>j&&O());){var lt=x.callback;if(typeof lt=="function"){x.callback=null,y=x.priorityLevel;var ft=lt(x.expirationTime<=j);if(j=i.unstable_now(),typeof ft=="function"){x.callback=ft,U(j),Z=!0;break e}x===o(g)&&r(g),U(j)}else r(g);x=o(g)}if(x!==null)Z=!0;else{var _=o(v);_!==null&&et(M,_.startTime-j),Z=!1}}break t}finally{x=null,y=$,m=!1}Z=void 0}}finally{Z?H():B=!1}}}var H;if(typeof z=="function")H=function(){z(L)};else if(typeof MessageChannel<"u"){var Q=new MessageChannel,nt=Q.port2;Q.port1.onmessage=L,H=function(){nt.postMessage(null)}}else H=function(){C(L,0)};function et(j,Z){D=C(function(){j(i.unstable_now())},Z)}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(j){j.callback=null},i.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<j?Math.floor(1e3/j):5},i.unstable_getCurrentPriorityLevel=function(){return y},i.unstable_next=function(j){switch(y){case 1:case 2:case 3:var Z=3;break;default:Z=y}var $=y;y=Z;try{return j()}finally{y=$}},i.unstable_requestPaint=function(){b=!0},i.unstable_runWithPriority=function(j,Z){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var $=y;y=j;try{return Z()}finally{y=$}},i.unstable_scheduleCallback=function(j,Z,$){var lt=i.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?lt+$:lt):$=lt,j){case 1:var ft=-1;break;case 2:ft=250;break;case 5:ft=1073741823;break;case 4:ft=1e4;break;default:ft=5e3}return ft=$+ft,j={id:p++,callback:Z,priorityLevel:j,startTime:$,expirationTime:ft,sortIndex:-1},$>lt?(j.sortIndex=$,l(v,j),o(g)===null&&j===o(v)&&(T?(R(D),D=-1):T=!0,et(M,$-lt))):(j.sortIndex=ft,l(g,j),S||m||(S=!0,B||(B=!0,H()))),j},i.unstable_shouldYield=O,i.unstable_wrapCallback=function(j){var Z=y;return function(){var $=y;y=Z;try{return j.apply(this,arguments)}finally{y=$}}}})(hc)),hc}var X2;function xy(){return X2||(X2=1,fc.exports=yy()),fc.exports}var dc={exports:{}},Te={};var q2;function Sy(){if(q2)return Te;q2=1;var i=rf();function l(g){var v="https://react.dev/errors/"+g;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)v+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+g+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var r={d:{f:o,r:function(){throw Error(l(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},c=Symbol.for("react.portal");function s(g,v,p){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:x==null?null:""+x,children:g,containerInfo:v,implementation:p}}var f=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(g,v){if(g==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return Te.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Te.createPortal=function(g,v){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(l(299));return s(g,v,null,p)},Te.flushSync=function(g){var v=f.T,p=r.p;try{if(f.T=null,r.p=2,g)return g()}finally{f.T=v,r.p=p,r.d.f()}},Te.preconnect=function(g,v){typeof g=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,r.d.C(g,v))},Te.prefetchDNS=function(g){typeof g=="string"&&r.d.D(g)},Te.preinit=function(g,v){if(typeof g=="string"&&v&&typeof v.as=="string"){var p=v.as,x=h(p,v.crossOrigin),y=typeof v.integrity=="string"?v.integrity:void 0,m=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;p==="style"?r.d.S(g,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:x,integrity:y,fetchPriority:m}):p==="script"&&r.d.X(g,{crossOrigin:x,integrity:y,fetchPriority:m,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},Te.preinitModule=function(g,v){if(typeof g=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var p=h(v.as,v.crossOrigin);r.d.M(g,{crossOrigin:p,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&r.d.M(g)},Te.preload=function(g,v){if(typeof g=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var p=v.as,x=h(p,v.crossOrigin);r.d.L(g,p,{crossOrigin:x,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},Te.preloadModule=function(g,v){if(typeof g=="string")if(v){var p=h(v.as,v.crossOrigin);r.d.m(g,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:p,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else r.d.m(g)},Te.requestFormReset=function(g){r.d.r(g)},Te.unstable_batchedUpdates=function(g,v){return g(v)},Te.useFormState=function(g,v,p){return f.H.useFormState(g,v,p)},Te.useFormStatus=function(){return f.H.useHostTransitionStatus()},Te.version="19.2.6",Te}var F2;function Ty(){if(F2)return dc.exports;F2=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(l){console.error(l)}}return i(),dc.exports=Sy(),dc.exports}var Q2;function by(){if(Q2)return Vl;Q2=1;var i=xy(),l=rf(),o=Ty();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function s(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function f(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function h(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function g(t){if(s(t)!==t)throw Error(r(188))}function v(t){var e=t.alternate;if(!e){if(e=s(t),e===null)throw Error(r(188));return e!==t?null:t}for(var n=t,a=e;;){var u=n.return;if(u===null)break;var d=u.alternate;if(d===null){if(a=u.return,a!==null){n=a;continue}break}if(u.child===d.child){for(d=u.child;d;){if(d===n)return g(u),t;if(d===a)return g(u),e;d=d.sibling}throw Error(r(188))}if(n.return!==a.return)n=u,a=d;else{for(var A=!1,w=u.child;w;){if(w===n){A=!0,n=u,a=d;break}if(w===a){A=!0,a=u,n=d;break}w=w.sibling}if(!A){for(w=d.child;w;){if(w===n){A=!0,n=d,a=u;break}if(w===a){A=!0,a=d,n=u;break}w=w.sibling}if(!A)throw Error(r(189))}}if(n.alternate!==a)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?t:e}function p(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=p(t),e!==null)return e;t=t.sibling}return null}var x=Object.assign,y=Symbol.for("react.element"),m=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),z=Symbol.for("react.context"),U=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),O=Symbol.for("react.memo_cache_sentinel"),L=Symbol.iterator;function H(t){return t===null||typeof t!="object"?null:(t=L&&t[L]||t["@@iterator"],typeof t=="function"?t:null)}var Q=Symbol.for("react.client.reference");function nt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Q?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case T:return"Fragment";case C:return"Profiler";case b:return"StrictMode";case M:return"Suspense";case B:return"SuspenseList";case V:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case S:return"Portal";case z:return t.displayName||"Context";case R:return(t._context.displayName||"Context")+".Consumer";case U:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case D:return e=t.displayName||null,e!==null?e:nt(t.type)||"Memo";case E:e=t._payload,t=t._init;try{return nt(t(e))}catch{}}return null}var et=Array.isArray,j=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$={pending:!1,data:null,method:null,action:null},lt=[],ft=-1;function _(t){return{current:t}}function Y(t){0>ft||(t.current=lt[ft],lt[ft]=null,ft--)}function k(t,e){ft++,lt[ft]=t.current,t.current=e}var it=_(null),st=_(null),at=_(null),ct=_(null);function Et(t,e){switch(k(at,e),k(st,t),k(it,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?s2(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=s2(e),t=o2(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Y(it),k(it,t)}function mt(){Y(it),Y(st),Y(at)}function ie(t){t.memoizedState!==null&&k(ct,t);var e=it.current,n=o2(e,t.type);e!==n&&(k(st,t),k(it,n))}function Jt(t){st.current===t&&(Y(it),Y(st)),ct.current===t&&(Y(ct),wl._currentValue=$)}var Wt,pn;function Ze(t){if(Wt===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Wt=e&&e[1]||"",pn=-1<n.stack.indexOf(`
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Wt+t+pn}var xi=!1;function Ke(t,e){if(!t||xi)return"";xi=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var I=function(){throw Error()};if(Object.defineProperty(I.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(I,[])}catch(K){var F=K}Reflect.construct(t,[],I)}else{try{I.call()}catch(K){F=K}t.call(I.prototype)}}else{try{throw Error()}catch(K){F=K}(I=t())&&typeof I.catch=="function"&&I.catch(function(){})}}catch(K){if(K&&F&&typeof K.stack=="string")return[K.stack,F.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=a.DetermineComponentFrameRoot(),A=d[0],w=d[1];if(A&&w){var N=A.split(`
`),q=w.split(`
`);for(u=a=0;a<N.length&&!N[a].includes("DetermineComponentFrameRoot");)a++;for(;u<q.length&&!q[u].includes("DetermineComponentFrameRoot");)u++;if(a===N.length||u===q.length)for(a=N.length-1,u=q.length-1;1<=a&&0<=u&&N[a]!==q[u];)u--;for(;1<=a&&0<=u;a--,u--)if(N[a]!==q[u]){if(a!==1||u!==1)do if(a--,u--,0>u||N[a]!==q[u]){var J=`
`+N[a].replace(" at new "," at ");return t.displayName&&J.includes("<anonymous>")&&(J=J.replace("<anonymous>",t.displayName)),J}while(1<=a&&0<=u);break}}}finally{xi=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Ze(n):""}function Qt(t,e){switch(t.tag){case 26:case 27:case 5:return Ze(t.type);case 16:return Ze("Lazy");case 13:return t.child!==e&&e!==null?Ze("Suspense Fallback"):Ze("Suspense");case 19:return Ze("SuspenseList");case 0:case 15:return Ke(t.type,!1);case 11:return Ke(t.type.render,!1);case 1:return Ke(t.type,!0);case 31:return Ze("Activity");default:return""}}function Fn(t){try{var e="",n=null;do e+=Qt(t,n),n=t,t=t.return;while(t);return e}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var ve=Object.prototype.hasOwnProperty,bt=i.unstable_scheduleCallback,It=i.unstable_cancelCallback,Rt=i.unstable_shouldYield,vt=i.unstable_requestPaint,zt=i.unstable_now,ye=i.unstable_getCurrentPriorityLevel,xe=i.unstable_ImmediatePriority,Se=i.unstable_UserBlockingPriority,Ce=i.unstable_NormalPriority,on=i.unstable_LowPriority,gn=i.unstable_IdlePriority,Jl=i.log,Fi=i.unstable_setDisableYieldValue,ja=null,Le=null;function Qn(t){if(typeof Jl=="function"&&Fi(t),Le&&typeof Le.setStrictMode=="function")try{Le.setStrictMode(ja,t)}catch{}}var Ne=Math.clz32?Math.clz32:tg,Ip=Math.log,$p=Math.LN2;function tg(t){return t>>>=0,t===0?32:31-(Ip(t)/$p|0)|0}var Wl=256,Il=262144,$l=4194304;function Si(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 ts(t,e,n){var a=t.pendingLanes;if(a===0)return 0;var u=0,d=t.suspendedLanes,A=t.pingedLanes;t=t.warmLanes;var w=a&134217727;return w!==0?(a=w&~d,a!==0?u=Si(a):(A&=w,A!==0?u=Si(A):n||(n=w&~t,n!==0&&(u=Si(n))))):(w=a&~d,w!==0?u=Si(w):A!==0?u=Si(A):n||(n=a&~t,n!==0&&(u=Si(n)))),u===0?0:e!==0&&e!==u&&(e&d)===0&&(d=u&-u,n=e&-e,d>=n||d===32&&(n&4194048)!==0)?e:u}function Ya(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function eg(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 Yf(){var t=$l;return $l<<=1,($l&62914560)===0&&($l=4194304),t}function Jo(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Pa(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function ng(t,e,n,a,u,d){var A=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 w=t.entanglements,N=t.expirationTimes,q=t.hiddenUpdates;for(n=A&~n;0<n;){var J=31-Ne(n),I=1<<J;w[J]=0,N[J]=-1;var F=q[J];if(F!==null)for(q[J]=null,J=0;J<F.length;J++){var K=F[J];K!==null&&(K.lane&=-536870913)}n&=~I}a!==0&&Pf(t,a,0),d!==0&&u===0&&t.tag!==0&&(t.suspendedLanes|=d&~(A&~e))}function Pf(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-Ne(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|n&261930}function Xf(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var a=31-Ne(n),u=1<<a;u&e|t[a]&e&&(t[a]|=e),n&=~u}}function qf(t,e){var n=e&-e;return n=(n&42)!==0?1:Wo(n),(n&(t.suspendedLanes|e))!==0?0:n}function Wo(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Io(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Ff(){var t=Z.p;return t!==0?t:(t=window.event,t===void 0?32:B2(t.type))}function Qf(t,e){var n=Z.p;try{return Z.p=t,e()}finally{Z.p=n}}var Zn=Math.random().toString(36).slice(2),ce="__reactFiber$"+Zn,De="__reactProps$"+Zn,Qi="__reactContainer$"+Zn,$o="__reactEvents$"+Zn,ig="__reactListeners$"+Zn,ag="__reactHandles$"+Zn,Zf="__reactResources$"+Zn,Xa="__reactMarker$"+Zn;function tr(t){delete t[ce],delete t[De],delete t[$o],delete t[ig],delete t[ag]}function Zi(t){var e=t[ce];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Qi]||n[ce]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=m2(t);t!==null;){if(n=t[ce])return n;t=m2(t)}return e}t=n,n=t.parentNode}return null}function Ki(t){if(t=t[ce]||t[Qi]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function qa(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function ki(t){var e=t[Zf];return e||(e=t[Zf]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function oe(t){t[Xa]=!0}var Kf=new Set,kf={};function Ti(t,e){Ji(t,e),Ji(t+"Capture",e)}function Ji(t,e){for(kf[t]=e,t=0;t<e.length;t++)Kf.add(e[t])}var lg=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Jf={},Wf={};function sg(t){return ve.call(Wf,t)?!0:ve.call(Jf,t)?!1:lg.test(t)?Wf[t]=!0:(Jf[t]=!0,!1)}function es(t,e,n){if(sg(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function ns(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function En(t,e,n,a){if(a===null)t.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+a)}}function ke(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function If(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function og(t,e,n){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var u=a.get,d=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return u.call(this)},set:function(A){n=""+A,d.call(this,A)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(A){n=""+A},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function er(t){if(!t._valueTracker){var e=If(t)?"checked":"value";t._valueTracker=og(t,e,""+t[e])}}function $f(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),a="";return t&&(a=If(t)?t.checked?"true":"false":t.value),t=a,t!==n?(e.setValue(t),!0):!1}function is(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var rg=/[\n"\\]/g;function Je(t){return t.replace(rg,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function nr(t,e,n,a,u,d,A,w){t.name="",A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?t.type=A:t.removeAttribute("type"),e!=null?A==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+ke(e)):t.value!==""+ke(e)&&(t.value=""+ke(e)):A!=="submit"&&A!=="reset"||t.removeAttribute("value"),e!=null?ir(t,A,ke(e)):n!=null?ir(t,A,ke(n)):a!=null&&t.removeAttribute("value"),u==null&&d!=null&&(t.defaultChecked=!!d),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?t.name=""+ke(w):t.removeAttribute("name")}function t0(t,e,n,a,u,d,A,w){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(t.type=d),e!=null||n!=null){if(!(d!=="submit"&&d!=="reset"||e!=null)){er(t);return}n=n!=null?""+ke(n):"",e=e!=null?""+ke(e):n,w||e===t.value||(t.value=e),t.defaultValue=e}a=a??u,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=w?t.checked:!!a,t.defaultChecked=!!a,A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"&&(t.name=A),er(t)}function ir(t,e,n){e==="number"&&is(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Wi(t,e,n,a){if(t=t.options,e){e={};for(var u=0;u<n.length;u++)e["$"+n[u]]=!0;for(n=0;n<t.length;n++)u=e.hasOwnProperty("$"+t[n].value),t[n].selected!==u&&(t[n].selected=u),u&&a&&(t[n].defaultSelected=!0)}else{for(n=""+ke(n),e=null,u=0;u<t.length;u++){if(t[u].value===n){t[u].selected=!0,a&&(t[u].defaultSelected=!0);return}e!==null||t[u].disabled||(e=t[u])}e!==null&&(e.selected=!0)}}function e0(t,e,n){if(e!=null&&(e=""+ke(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+ke(n):""}function n0(t,e,n,a){if(e==null){if(a!=null){if(n!=null)throw Error(r(92));if(et(a)){if(1<a.length)throw Error(r(93));a=a[0]}n=a}n==null&&(n=""),e=n}n=ke(e),t.defaultValue=n,a=t.textContent,a===n&&a!==""&&a!==null&&(t.value=a),er(t)}function Ii(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var ug=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function i0(t,e,n){var a=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,n):typeof n!="number"||n===0||ug.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function a0(t,e,n){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var u in e)a=e[u],e.hasOwnProperty(u)&&n[u]!==a&&i0(t,u,a)}else for(var d in e)e.hasOwnProperty(d)&&i0(t,d,e[d])}function ar(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var cg=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),fg=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function as(t){return fg.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Cn(){}var lr=null;function sr(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var $i=null,ta=null;function l0(t){var e=Ki(t);if(e&&(t=e.stateNode)){var n=t[De]||null;t:switch(t=e.stateNode,e.type){case"input":if(nr(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Je(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var a=n[e];if(a!==t&&a.form===t.form){var u=a[De]||null;if(!u)throw Error(r(90));nr(a,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(e=0;e<n.length;e++)a=n[e],a.form===t.form&&$f(a)}break t;case"textarea":e0(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Wi(t,!!n.multiple,e,!1)}}}var or=!1;function s0(t,e,n){if(or)return t(e,n);or=!0;try{var a=t(e);return a}finally{if(or=!1,($i!==null||ta!==null)&&(Fs(),$i&&(e=$i,t=ta,ta=$i=null,l0(e),t)))for(e=0;e<t.length;e++)l0(t[e])}}function Fa(t,e){var n=t.stateNode;if(n===null)return null;var a=n[De]||null;if(a===null)return null;n=a[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(r(231,e,typeof n));return n}var Dn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),rr=!1;if(Dn)try{var Qa={};Object.defineProperty(Qa,"passive",{get:function(){rr=!0}}),window.addEventListener("test",Qa,Qa),window.removeEventListener("test",Qa,Qa)}catch{rr=!1}var Kn=null,ur=null,ls=null;function o0(){if(ls)return ls;var t,e=ur,n=e.length,a,u="value"in Kn?Kn.value:Kn.textContent,d=u.length;for(t=0;t<n&&e[t]===u[t];t++);var A=n-t;for(a=1;a<=A&&e[n-a]===u[d-a];a++);return ls=u.slice(t,1<a?1-a:void 0)}function ss(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function os(){return!0}function r0(){return!1}function we(t){function e(n,a,u,d,A){this._reactName=n,this._targetInst=u,this.type=a,this.nativeEvent=d,this.target=A,this.currentTarget=null;for(var w in t)t.hasOwnProperty(w)&&(n=t[w],this[w]=n?n(d):d[w]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?os:r0,this.isPropagationStopped=r0,this}return x(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=os)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=os)},persist:function(){},isPersistent:os}),e}var bi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},rs=we(bi),Za=x({},bi,{view:0,detail:0}),hg=we(Za),cr,fr,Ka,us=x({},Za,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dr,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Ka&&(Ka&&t.type==="mousemove"?(cr=t.screenX-Ka.screenX,fr=t.screenY-Ka.screenY):fr=cr=0,Ka=t),cr)},movementY:function(t){return"movementY"in t?t.movementY:fr}}),u0=we(us),dg=x({},us,{dataTransfer:0}),mg=we(dg),pg=x({},Za,{relatedTarget:0}),hr=we(pg),gg=x({},bi,{animationName:0,elapsedTime:0,pseudoElement:0}),vg=we(gg),yg=x({},bi,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),xg=we(yg),Sg=x({},bi,{data:0}),c0=we(Sg),Tg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bg={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Ag={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Mg(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Ag[t])?!!e[t]:!1}function dr(){return Mg}var Eg=x({},Za,{key:function(t){if(t.key){var e=Tg[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=ss(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?bg[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dr,charCode:function(t){return t.type==="keypress"?ss(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ss(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Cg=we(Eg),Dg=x({},us,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),f0=we(Dg),wg=x({},Za,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dr}),Rg=we(wg),Bg=x({},bi,{propertyName:0,elapsedTime:0,pseudoElement:0}),zg=we(Bg),Og=x({},us,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Vg=we(Og),Ug=x({},bi,{newState:0,oldState:0}),Lg=we(Ug),Ng=[9,13,27,32],mr=Dn&&"CompositionEvent"in window,ka=null;Dn&&"documentMode"in document&&(ka=document.documentMode);var Hg=Dn&&"TextEvent"in window&&!ka,h0=Dn&&(!mr||ka&&8<ka&&11>=ka),d0=" ",m0=!1;function p0(t,e){switch(t){case"keyup":return Ng.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function g0(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ea=!1;function _g(t,e){switch(t){case"compositionend":return g0(e);case"keypress":return e.which!==32?null:(m0=!0,d0);case"textInput":return t=e.data,t===d0&&m0?null:t;default:return null}}function Gg(t,e){if(ea)return t==="compositionend"||!mr&&p0(t,e)?(t=o0(),ls=ur=Kn=null,ea=!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.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return h0&&e.locale!=="ko"?null:e.data;default:return null}}var jg={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function v0(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!jg[t.type]:e==="textarea"}function y0(t,e,n,a){$i?ta?ta.push(a):ta=[a]:$i=a,e=Is(e,"onChange"),0<e.length&&(n=new rs("onChange","change",null,n,a),t.push({event:n,listeners:e}))}var Ja=null,Wa=null;function Yg(t){t2(t,0)}function cs(t){var e=qa(t);if($f(e))return t}function x0(t,e){if(t==="change")return e}var S0=!1;if(Dn){var pr;if(Dn){var gr="oninput"in document;if(!gr){var T0=document.createElement("div");T0.setAttribute("oninput","return;"),gr=typeof T0.oninput=="function"}pr=gr}else pr=!1;S0=pr&&(!document.documentMode||9<document.documentMode)}function b0(){Ja&&(Ja.detachEvent("onpropertychange",A0),Wa=Ja=null)}function A0(t){if(t.propertyName==="value"&&cs(Wa)){var e=[];y0(e,Wa,t,sr(t)),s0(Yg,e)}}function Pg(t,e,n){t==="focusin"?(b0(),Ja=e,Wa=n,Ja.attachEvent("onpropertychange",A0)):t==="focusout"&&b0()}function Xg(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return cs(Wa)}function qg(t,e){if(t==="click")return cs(e)}function Fg(t,e){if(t==="input"||t==="change")return cs(e)}function Qg(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var He=typeof Object.is=="function"?Object.is:Qg;function Ia(t,e){if(He(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),a=Object.keys(e);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var u=n[a];if(!ve.call(e,u)||!He(t[u],e[u]))return!1}return!0}function M0(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function E0(t,e){var n=M0(t);t=0;for(var a;n;){if(n.nodeType===3){if(a=t+n.textContent.length,t<=e&&a>=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=M0(n)}}function C0(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?C0(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function D0(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=is(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=is(t.document)}return e}function vr(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 Zg=Dn&&"documentMode"in document&&11>=document.documentMode,na=null,yr=null,$a=null,xr=!1;function w0(t,e,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;xr||na==null||na!==is(a)||(a=na,"selectionStart"in a&&vr(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}),$a&&Ia($a,a)||($a=a,a=Is(yr,"onSelect"),0<a.length&&(e=new rs("onSelect","select",null,e,n),t.push({event:e,listeners:a}),e.target=na)))}function Ai(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var ia={animationend:Ai("Animation","AnimationEnd"),animationiteration:Ai("Animation","AnimationIteration"),animationstart:Ai("Animation","AnimationStart"),transitionrun:Ai("Transition","TransitionRun"),transitionstart:Ai("Transition","TransitionStart"),transitioncancel:Ai("Transition","TransitionCancel"),transitionend:Ai("Transition","TransitionEnd")},Sr={},R0={};Dn&&(R0=document.createElement("div").style,"AnimationEvent"in window||(delete ia.animationend.animation,delete ia.animationiteration.animation,delete ia.animationstart.animation),"TransitionEvent"in window||delete ia.transitionend.transition);function Mi(t){if(Sr[t])return Sr[t];if(!ia[t])return t;var e=ia[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in R0)return Sr[t]=e[n];return t}var B0=Mi("animationend"),z0=Mi("animationiteration"),O0=Mi("animationstart"),Kg=Mi("transitionrun"),kg=Mi("transitionstart"),Jg=Mi("transitioncancel"),V0=Mi("transitionend"),U0=new Map,Tr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Tr.push("scrollEnd");function rn(t,e){U0.set(t,e),Ti(e,[t])}var fs=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},We=[],aa=0,br=0;function hs(){for(var t=aa,e=br=aa=0;e<t;){var n=We[e];We[e++]=null;var a=We[e];We[e++]=null;var u=We[e];We[e++]=null;var d=We[e];if(We[e++]=null,a!==null&&u!==null){var A=a.pending;A===null?u.next=u:(u.next=A.next,A.next=u),a.pending=u}d!==0&&L0(n,u,d)}}function ds(t,e,n,a){We[aa++]=t,We[aa++]=e,We[aa++]=n,We[aa++]=a,br|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function Ar(t,e,n,a){return ds(t,e,n,a),ms(t)}function Ei(t,e){return ds(t,null,null,e),ms(t)}function L0(t,e,n){t.lanes|=n;var a=t.alternate;a!==null&&(a.lanes|=n);for(var u=!1,d=t.return;d!==null;)d.childLanes|=n,a=d.alternate,a!==null&&(a.childLanes|=n),d.tag===22&&(t=d.stateNode,t===null||t._visibility&1||(u=!0)),t=d,d=d.return;return t.tag===3?(d=t.stateNode,u&&e!==null&&(u=31-Ne(n),t=d.hiddenUpdates,a=t[u],a===null?t[u]=[e]:a.push(e),e.lane=n|536870912),d):null}function ms(t){if(50<Tl)throw Tl=0,Ou=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var la={};function Wg(t,e,n,a){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _e(t,e,n,a){return new Wg(t,e,n,a)}function Mr(t){return t=t.prototype,!(!t||!t.isReactComponent)}function wn(t,e){var n=t.alternate;return n===null?(n=_e(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function N0(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function ps(t,e,n,a,u,d){var A=0;if(a=t,typeof t=="function")Mr(t)&&(A=1);else if(typeof t=="string")A=ny(t,n,it.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case V:return t=_e(31,n,e,u),t.elementType=V,t.lanes=d,t;case T:return Ci(n.children,u,d,e);case b:A=8,u|=24;break;case C:return t=_e(12,n,e,u|2),t.elementType=C,t.lanes=d,t;case M:return t=_e(13,n,e,u),t.elementType=M,t.lanes=d,t;case B:return t=_e(19,n,e,u),t.elementType=B,t.lanes=d,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case z:A=10;break t;case R:A=9;break t;case U:A=11;break t;case D:A=14;break t;case E:A=16,a=null;break t}A=29,n=Error(r(130,t===null?"null":typeof t,"")),a=null}return e=_e(A,n,e,u),e.elementType=t,e.type=a,e.lanes=d,e}function Ci(t,e,n,a){return t=_e(7,t,a,e),t.lanes=n,t}function Er(t,e,n){return t=_e(6,t,null,e),t.lanes=n,t}function H0(t){var e=_e(18,null,null,0);return e.stateNode=t,e}function Cr(t,e,n){return e=_e(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var _0=new WeakMap;function Ie(t,e){if(typeof t=="object"&&t!==null){var n=_0.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Fn(e)},_0.set(t,e),e)}return{value:t,source:e,stack:Fn(e)}}var sa=[],oa=0,gs=null,tl=0,$e=[],tn=0,kn=null,vn=1,yn="";function Rn(t,e){sa[oa++]=tl,sa[oa++]=gs,gs=t,tl=e}function G0(t,e,n){$e[tn++]=vn,$e[tn++]=yn,$e[tn++]=kn,kn=t;var a=vn;t=yn;var u=32-Ne(a)-1;a&=~(1<<u),n+=1;var d=32-Ne(e)+u;if(30<d){var A=u-u%5;d=(a&(1<<A)-1).toString(32),a>>=A,u-=A,vn=1<<32-Ne(e)+u|n<<u|a,yn=d+t}else vn=1<<d|n<<u|a,yn=t}function Dr(t){t.return!==null&&(Rn(t,1),G0(t,1,0))}function wr(t){for(;t===gs;)gs=sa[--oa],sa[oa]=null,tl=sa[--oa],sa[oa]=null;for(;t===kn;)kn=$e[--tn],$e[tn]=null,yn=$e[--tn],$e[tn]=null,vn=$e[--tn],$e[tn]=null}function j0(t,e){$e[tn++]=vn,$e[tn++]=yn,$e[tn++]=kn,vn=e.id,yn=e.overflow,kn=t}var fe=null,jt=null,Ct=!1,Jn=null,en=!1,Rr=Error(r(519));function Wn(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw el(Ie(e,t)),Rr}function Y0(t){var e=t.stateNode,n=t.type,a=t.memoizedProps;switch(e[ce]=t,e[De]=a,n){case"dialog":Tt("cancel",e),Tt("close",e);break;case"iframe":case"object":case"embed":Tt("load",e);break;case"video":case"audio":for(n=0;n<Al.length;n++)Tt(Al[n],e);break;case"source":Tt("error",e);break;case"img":case"image":case"link":Tt("error",e),Tt("load",e);break;case"details":Tt("toggle",e);break;case"input":Tt("invalid",e),t0(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Tt("invalid",e);break;case"textarea":Tt("invalid",e),n0(e,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||a.suppressHydrationWarning===!0||a2(e.textContent,n)?(a.popover!=null&&(Tt("beforetoggle",e),Tt("toggle",e)),a.onScroll!=null&&Tt("scroll",e),a.onScrollEnd!=null&&Tt("scrollend",e),a.onClick!=null&&(e.onclick=Cn),e=!0):e=!1,e||Wn(t,!0)}function P0(t){for(fe=t.return;fe;)switch(fe.tag){case 5:case 31:case 13:en=!1;return;case 27:case 3:en=!0;return;default:fe=fe.return}}function ra(t){if(t!==fe)return!1;if(!Ct)return P0(t),Ct=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||Zu(t.type,t.memoizedProps)),n=!n),n&&jt&&Wn(t),P0(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));jt=d2(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));jt=d2(t)}else e===27?(e=jt,fi(t.type)?(t=Iu,Iu=null,jt=t):jt=e):jt=fe?an(t.stateNode.nextSibling):null;return!0}function Di(){jt=fe=null,Ct=!1}function Br(){var t=Jn;return t!==null&&(Oe===null?Oe=t:Oe.push.apply(Oe,t),Jn=null),t}function el(t){Jn===null?Jn=[t]:Jn.push(t)}var zr=_(null),wi=null,Bn=null;function In(t,e,n){k(zr,e._currentValue),e._currentValue=n}function zn(t){t._currentValue=zr.current,Y(zr)}function Or(t,e,n){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===n)break;t=t.return}}function Vr(t,e,n,a){var u=t.child;for(u!==null&&(u.return=t);u!==null;){var d=u.dependencies;if(d!==null){var A=u.child;d=d.firstContext;t:for(;d!==null;){var w=d;d=u;for(var N=0;N<e.length;N++)if(w.context===e[N]){d.lanes|=n,w=d.alternate,w!==null&&(w.lanes|=n),Or(d.return,n,t),a||(A=null);break t}d=w.next}}else if(u.tag===18){if(A=u.return,A===null)throw Error(r(341));A.lanes|=n,d=A.alternate,d!==null&&(d.lanes|=n),Or(A,n,t),A=null}else A=u.child;if(A!==null)A.return=u;else for(A=u;A!==null;){if(A===t){A=null;break}if(u=A.sibling,u!==null){u.return=A.return,A=u;break}A=A.return}u=A}}function ua(t,e,n,a){t=null;for(var u=e,d=!1;u!==null;){if(!d){if((u.flags&524288)!==0)d=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var A=u.alternate;if(A===null)throw Error(r(387));if(A=A.memoizedProps,A!==null){var w=u.type;He(u.pendingProps.value,A.value)||(t!==null?t.push(w):t=[w])}}else if(u===ct.current){if(A=u.alternate,A===null)throw Error(r(387));A.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(t!==null?t.push(wl):t=[wl])}u=u.return}t!==null&&Vr(e,t,n,a),e.flags|=262144}function vs(t){for(t=t.firstContext;t!==null;){if(!He(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Ri(t){wi=t,Bn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function he(t){return X0(wi,t)}function ys(t,e){return wi===null&&Ri(t),X0(t,e)}function X0(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},Bn===null){if(t===null)throw Error(r(308));Bn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Bn=Bn.next=e;return n}var Ig=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},$g=i.unstable_scheduleCallback,tv=i.unstable_NormalPriority,$t={$$typeof:z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ur(){return{controller:new Ig,data:new Map,refCount:0}}function nl(t){t.refCount--,t.refCount===0&&$g(tv,function(){t.controller.abort()})}var il=null,Lr=0,ca=0,fa=null;function ev(t,e){if(il===null){var n=il=[];Lr=0,ca=_u(),fa={status:"pending",value:void 0,then:function(a){n.push(a)}}}return Lr++,e.then(q0,q0),e}function q0(){if(--Lr===0&&il!==null){fa!==null&&(fa.status="fulfilled");var t=il;il=null,ca=0,fa=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function nv(t,e){var n=[],a={status:"pending",value:null,reason:null,then:function(u){n.push(u)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var u=0;u<n.length;u++)(0,n[u])(e)},function(u){for(a.status="rejected",a.reason=u,u=0;u<n.length;u++)(0,n[u])(void 0)}),a}var F0=j.S;j.S=function(t,e){wd=zt(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&ev(t,e),F0!==null&&F0(t,e)};var Bi=_(null);function Nr(){var t=Bi.current;return t!==null?t:_t.pooledCache}function xs(t,e){e===null?k(Bi,Bi.current):k(Bi,e.pool)}function Q0(){var t=Nr();return t===null?null:{parent:$t._currentValue,pool:t}}var ha=Error(r(460)),Hr=Error(r(474)),Ss=Error(r(542)),Ts={then:function(){}};function Z0(t){return t=t.status,t==="fulfilled"||t==="rejected"}function K0(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(Cn,Cn),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,J0(t),t;default:if(typeof e.status=="string")e.then(Cn,Cn);else{if(t=_t,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var u=e;u.status="fulfilled",u.value=a}},function(a){if(e.status==="pending"){var u=e;u.status="rejected",u.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,J0(t),t}throw Oi=e,ha}}function zi(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Oi=n,ha):n}}var Oi=null;function k0(){if(Oi===null)throw Error(r(459));var t=Oi;return Oi=null,t}function J0(t){if(t===ha||t===Ss)throw Error(r(483))}var da=null,al=0;function bs(t){var e=al;return al+=1,da===null&&(da=[]),K0(da,t,e)}function ll(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function As(t,e){throw e.$$typeof===y?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function W0(t){function e(P,G){if(t){var X=P.deletions;X===null?(P.deletions=[G],P.flags|=16):X.push(G)}}function n(P,G){if(!t)return null;for(;G!==null;)e(P,G),G=G.sibling;return null}function a(P){for(var G=new Map;P!==null;)P.key!==null?G.set(P.key,P):G.set(P.index,P),P=P.sibling;return G}function u(P,G){return P=wn(P,G),P.index=0,P.sibling=null,P}function d(P,G,X){return P.index=X,t?(X=P.alternate,X!==null?(X=X.index,X<G?(P.flags|=67108866,G):X):(P.flags|=67108866,G)):(P.flags|=1048576,G)}function A(P){return t&&P.alternate===null&&(P.flags|=67108866),P}function w(P,G,X,W){return G===null||G.tag!==6?(G=Er(X,P.mode,W),G.return=P,G):(G=u(G,X),G.return=P,G)}function N(P,G,X,W){var ht=X.type;return ht===T?J(P,G,X.props.children,W,X.key):G!==null&&(G.elementType===ht||typeof ht=="object"&&ht!==null&&ht.$$typeof===E&&zi(ht)===G.type)?(G=u(G,X.props),ll(G,X),G.return=P,G):(G=ps(X.type,X.key,X.props,null,P.mode,W),ll(G,X),G.return=P,G)}function q(P,G,X,W){return G===null||G.tag!==4||G.stateNode.containerInfo!==X.containerInfo||G.stateNode.implementation!==X.implementation?(G=Cr(X,P.mode,W),G.return=P,G):(G=u(G,X.children||[]),G.return=P,G)}function J(P,G,X,W,ht){return G===null||G.tag!==7?(G=Ci(X,P.mode,W,ht),G.return=P,G):(G=u(G,X),G.return=P,G)}function I(P,G,X){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return G=Er(""+G,P.mode,X),G.return=P,G;if(typeof G=="object"&&G!==null){switch(G.$$typeof){case m:return X=ps(G.type,G.key,G.props,null,P.mode,X),ll(X,G),X.return=P,X;case S:return G=Cr(G,P.mode,X),G.return=P,G;case E:return G=zi(G),I(P,G,X)}if(et(G)||H(G))return G=Ci(G,P.mode,X,null),G.return=P,G;if(typeof G.then=="function")return I(P,bs(G),X);if(G.$$typeof===z)return I(P,ys(P,G),X);As(P,G)}return null}function F(P,G,X,W){var ht=G!==null?G.key:null;if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return ht!==null?null:w(P,G,""+X,W);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case m:return X.key===ht?N(P,G,X,W):null;case S:return X.key===ht?q(P,G,X,W):null;case E:return X=zi(X),F(P,G,X,W)}if(et(X)||H(X))return ht!==null?null:J(P,G,X,W,null);if(typeof X.then=="function")return F(P,G,bs(X),W);if(X.$$typeof===z)return F(P,G,ys(P,X),W);As(P,X)}return null}function K(P,G,X,W,ht){if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return P=P.get(X)||null,w(G,P,""+W,ht);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case m:return P=P.get(W.key===null?X:W.key)||null,N(G,P,W,ht);case S:return P=P.get(W.key===null?X:W.key)||null,q(G,P,W,ht);case E:return W=zi(W),K(P,G,X,W,ht)}if(et(W)||H(W))return P=P.get(X)||null,J(G,P,W,ht,null);if(typeof W.then=="function")return K(P,G,X,bs(W),ht);if(W.$$typeof===z)return K(P,G,X,ys(G,W),ht);As(G,W)}return null}function ot(P,G,X,W){for(var ht=null,Dt=null,ut=G,xt=G=0,Mt=null;ut!==null&&xt<X.length;xt++){ut.index>xt?(Mt=ut,ut=null):Mt=ut.sibling;var wt=F(P,ut,X[xt],W);if(wt===null){ut===null&&(ut=Mt);break}t&&ut&&wt.alternate===null&&e(P,ut),G=d(wt,G,xt),Dt===null?ht=wt:Dt.sibling=wt,Dt=wt,ut=Mt}if(xt===X.length)return n(P,ut),Ct&&Rn(P,xt),ht;if(ut===null){for(;xt<X.length;xt++)ut=I(P,X[xt],W),ut!==null&&(G=d(ut,G,xt),Dt===null?ht=ut:Dt.sibling=ut,Dt=ut);return Ct&&Rn(P,xt),ht}for(ut=a(ut);xt<X.length;xt++)Mt=K(ut,P,xt,X[xt],W),Mt!==null&&(t&&Mt.alternate!==null&&ut.delete(Mt.key===null?xt:Mt.key),G=d(Mt,G,xt),Dt===null?ht=Mt:Dt.sibling=Mt,Dt=Mt);return t&&ut.forEach(function(gi){return e(P,gi)}),Ct&&Rn(P,xt),ht}function dt(P,G,X,W){if(X==null)throw Error(r(151));for(var ht=null,Dt=null,ut=G,xt=G=0,Mt=null,wt=X.next();ut!==null&&!wt.done;xt++,wt=X.next()){ut.index>xt?(Mt=ut,ut=null):Mt=ut.sibling;var gi=F(P,ut,wt.value,W);if(gi===null){ut===null&&(ut=Mt);break}t&&ut&&gi.alternate===null&&e(P,ut),G=d(gi,G,xt),Dt===null?ht=gi:Dt.sibling=gi,Dt=gi,ut=Mt}if(wt.done)return n(P,ut),Ct&&Rn(P,xt),ht;if(ut===null){for(;!wt.done;xt++,wt=X.next())wt=I(P,wt.value,W),wt!==null&&(G=d(wt,G,xt),Dt===null?ht=wt:Dt.sibling=wt,Dt=wt);return Ct&&Rn(P,xt),ht}for(ut=a(ut);!wt.done;xt++,wt=X.next())wt=K(ut,P,xt,wt.value,W),wt!==null&&(t&&wt.alternate!==null&&ut.delete(wt.key===null?xt:wt.key),G=d(wt,G,xt),Dt===null?ht=wt:Dt.sibling=wt,Dt=wt);return t&&ut.forEach(function(dy){return e(P,dy)}),Ct&&Rn(P,xt),ht}function Nt(P,G,X,W){if(typeof X=="object"&&X!==null&&X.type===T&&X.key===null&&(X=X.props.children),typeof X=="object"&&X!==null){switch(X.$$typeof){case m:t:{for(var ht=X.key;G!==null;){if(G.key===ht){if(ht=X.type,ht===T){if(G.tag===7){n(P,G.sibling),W=u(G,X.props.children),W.return=P,P=W;break t}}else if(G.elementType===ht||typeof ht=="object"&&ht!==null&&ht.$$typeof===E&&zi(ht)===G.type){n(P,G.sibling),W=u(G,X.props),ll(W,X),W.return=P,P=W;break t}n(P,G);break}else e(P,G);G=G.sibling}X.type===T?(W=Ci(X.props.children,P.mode,W,X.key),W.return=P,P=W):(W=ps(X.type,X.key,X.props,null,P.mode,W),ll(W,X),W.return=P,P=W)}return A(P);case S:t:{for(ht=X.key;G!==null;){if(G.key===ht)if(G.tag===4&&G.stateNode.containerInfo===X.containerInfo&&G.stateNode.implementation===X.implementation){n(P,G.sibling),W=u(G,X.children||[]),W.return=P,P=W;break t}else{n(P,G);break}else e(P,G);G=G.sibling}W=Cr(X,P.mode,W),W.return=P,P=W}return A(P);case E:return X=zi(X),Nt(P,G,X,W)}if(et(X))return ot(P,G,X,W);if(H(X)){if(ht=H(X),typeof ht!="function")throw Error(r(150));return X=ht.call(X),dt(P,G,X,W)}if(typeof X.then=="function")return Nt(P,G,bs(X),W);if(X.$$typeof===z)return Nt(P,G,ys(P,X),W);As(P,X)}return typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint"?(X=""+X,G!==null&&G.tag===6?(n(P,G.sibling),W=u(G,X),W.return=P,P=W):(n(P,G),W=Er(X,P.mode,W),W.return=P,P=W),A(P)):n(P,G)}return function(P,G,X,W){try{al=0;var ht=Nt(P,G,X,W);return da=null,ht}catch(ut){if(ut===ha||ut===Ss)throw ut;var Dt=_e(29,ut,null,P.mode);return Dt.lanes=W,Dt.return=P,Dt}}}var Vi=W0(!0),I0=W0(!1),$n=!1;function _r(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Gr(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 ti(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function ei(t,e,n){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(Bt&2)!==0){var u=a.pending;return u===null?e.next=e:(e.next=u.next,u.next=e),a.pending=e,e=ms(t),L0(t,null,n),e}return ds(t,a,e,n),ms(t)}function sl(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,Xf(t,n)}}function jr(t,e){var n=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var u=null,d=null;if(n=n.firstBaseUpdate,n!==null){do{var A={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};d===null?u=d=A:d=d.next=A,n=n.next}while(n!==null);d===null?u=d=e:d=d.next=e}else u=d=e;n={baseState:a.baseState,firstBaseUpdate:u,lastBaseUpdate:d,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 Yr=!1;function ol(){if(Yr){var t=fa;if(t!==null)throw t}}function rl(t,e,n,a){Yr=!1;var u=t.updateQueue;$n=!1;var d=u.firstBaseUpdate,A=u.lastBaseUpdate,w=u.shared.pending;if(w!==null){u.shared.pending=null;var N=w,q=N.next;N.next=null,A===null?d=q:A.next=q,A=N;var J=t.alternate;J!==null&&(J=J.updateQueue,w=J.lastBaseUpdate,w!==A&&(w===null?J.firstBaseUpdate=q:w.next=q,J.lastBaseUpdate=N))}if(d!==null){var I=u.baseState;A=0,J=q=N=null,w=d;do{var F=w.lane&-536870913,K=F!==w.lane;if(K?(At&F)===F:(a&F)===F){F!==0&&F===ca&&(Yr=!0),J!==null&&(J=J.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});t:{var ot=t,dt=w;F=e;var Nt=n;switch(dt.tag){case 1:if(ot=dt.payload,typeof ot=="function"){I=ot.call(Nt,I,F);break t}I=ot;break t;case 3:ot.flags=ot.flags&-65537|128;case 0:if(ot=dt.payload,F=typeof ot=="function"?ot.call(Nt,I,F):ot,F==null)break t;I=x({},I,F);break t;case 2:$n=!0}}F=w.callback,F!==null&&(t.flags|=64,K&&(t.flags|=8192),K=u.callbacks,K===null?u.callbacks=[F]:K.push(F))}else K={lane:F,tag:w.tag,payload:w.payload,callback:w.callback,next:null},J===null?(q=J=K,N=I):J=J.next=K,A|=F;if(w=w.next,w===null){if(w=u.shared.pending,w===null)break;K=w,w=K.next,K.next=null,u.lastBaseUpdate=K,u.shared.pending=null}}while(!0);J===null&&(N=I),u.baseState=N,u.firstBaseUpdate=q,u.lastBaseUpdate=J,d===null&&(u.shared.lanes=0),si|=A,t.lanes=A,t.memoizedState=I}}function $0(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function th(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)$0(n[t],e)}var ma=_(null),Ms=_(0);function eh(t,e){t=jn,k(Ms,t),k(ma,e),jn=t|e.baseLanes}function Pr(){k(Ms,jn),k(ma,ma.current)}function Xr(){jn=Ms.current,Y(ma),Y(Ms)}var Ge=_(null),nn=null;function ni(t){var e=t.alternate;k(Zt,Zt.current&1),k(Ge,t),nn===null&&(e===null||ma.current!==null||e.memoizedState!==null)&&(nn=t)}function qr(t){k(Zt,Zt.current),k(Ge,t),nn===null&&(nn=t)}function nh(t){t.tag===22?(k(Zt,Zt.current),k(Ge,t),nn===null&&(nn=t)):ii()}function ii(){k(Zt,Zt.current),k(Ge,Ge.current)}function je(t){Y(Ge),nn===t&&(nn=null),Y(Zt)}var Zt=_(0);function Es(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Ju(n)||Wu(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var On=0,yt=null,Ut=null,te=null,Cs=!1,pa=!1,Ui=!1,Ds=0,ul=0,ga=null,iv=0;function qt(){throw Error(r(321))}function Fr(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!He(t[n],e[n]))return!1;return!0}function Qr(t,e,n,a,u,d){return On=d,yt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,j.H=t===null||t.memoizedState===null?Gh:ou,Ui=!1,d=n(a,u),Ui=!1,pa&&(d=ah(e,n,a,u)),ih(t),d}function ih(t){j.H=hl;var e=Ut!==null&&Ut.next!==null;if(On=0,te=Ut=yt=null,Cs=!1,ul=0,ga=null,e)throw Error(r(300));t===null||ee||(t=t.dependencies,t!==null&&vs(t)&&(ee=!0))}function ah(t,e,n,a){yt=t;var u=0;do{if(pa&&(ga=null),ul=0,pa=!1,25<=u)throw Error(r(301));if(u+=1,te=Ut=null,t.updateQueue!=null){var d=t.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}j.H=jh,d=e(n,a)}while(pa);return d}function av(){var t=j.H,e=t.useState()[0];return e=typeof e.then=="function"?cl(e):e,t=t.useState()[0],(Ut!==null?Ut.memoizedState:null)!==t&&(yt.flags|=1024),e}function Zr(){var t=Ds!==0;return Ds=0,t}function Kr(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function kr(t){if(Cs){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Cs=!1}On=0,te=Ut=yt=null,pa=!1,ul=Ds=0,ga=null}function Ae(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return te===null?yt.memoizedState=te=t:te=te.next=t,te}function Kt(){if(Ut===null){var t=yt.alternate;t=t!==null?t.memoizedState:null}else t=Ut.next;var e=te===null?yt.memoizedState:te.next;if(e!==null)te=e,Ut=t;else{if(t===null)throw yt.alternate===null?Error(r(467)):Error(r(310));Ut=t,t={memoizedState:Ut.memoizedState,baseState:Ut.baseState,baseQueue:Ut.baseQueue,queue:Ut.queue,next:null},te===null?yt.memoizedState=te=t:te=te.next=t}return te}function ws(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function cl(t){var e=ul;return ul+=1,ga===null&&(ga=[]),t=K0(ga,t,e),e=yt,(te===null?e.memoizedState:te.next)===null&&(e=e.alternate,j.H=e===null||e.memoizedState===null?Gh:ou),t}function Rs(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return cl(t);if(t.$$typeof===z)return he(t)}throw Error(r(438,String(t)))}function Jr(t){var e=null,n=yt.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var a=yt.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(u){return u.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=ws(),yt.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),a=0;a<t;a++)n[a]=O;return e.index++,n}function Vn(t,e){return typeof e=="function"?e(t):e}function Bs(t){var e=Kt();return Wr(e,Ut,t)}function Wr(t,e,n){var a=t.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=n;var u=t.baseQueue,d=a.pending;if(d!==null){if(u!==null){var A=u.next;u.next=d.next,d.next=A}e.baseQueue=u=d,a.pending=null}if(d=t.baseState,u===null)t.memoizedState=d;else{e=u.next;var w=A=null,N=null,q=e,J=!1;do{var I=q.lane&-536870913;if(I!==q.lane?(At&I)===I:(On&I)===I){var F=q.revertLane;if(F===0)N!==null&&(N=N.next={lane:0,revertLane:0,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null}),I===ca&&(J=!0);else if((On&F)===F){q=q.next,F===ca&&(J=!0);continue}else I={lane:0,revertLane:q.revertLane,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},N===null?(w=N=I,A=d):N=N.next=I,yt.lanes|=F,si|=F;I=q.action,Ui&&n(d,I),d=q.hasEagerState?q.eagerState:n(d,I)}else F={lane:I,revertLane:q.revertLane,gesture:q.gesture,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},N===null?(w=N=F,A=d):N=N.next=F,yt.lanes|=I,si|=I;q=q.next}while(q!==null&&q!==e);if(N===null?A=d:N.next=w,!He(d,t.memoizedState)&&(ee=!0,J&&(n=fa,n!==null)))throw n;t.memoizedState=d,t.baseState=A,t.baseQueue=N,a.lastRenderedState=d}return u===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function Ir(t){var e=Kt(),n=e.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=t;var a=n.dispatch,u=n.pending,d=e.memoizedState;if(u!==null){n.pending=null;var A=u=u.next;do d=t(d,A.action),A=A.next;while(A!==u);He(d,e.memoizedState)||(ee=!0),e.memoizedState=d,e.baseQueue===null&&(e.baseState=d),n.lastRenderedState=d}return[d,a]}function lh(t,e,n){var a=yt,u=Kt(),d=Ct;if(d){if(n===void 0)throw Error(r(407));n=n()}else n=e();var A=!He((Ut||u).memoizedState,n);if(A&&(u.memoizedState=n,ee=!0),u=u.queue,eu(rh.bind(null,a,u,t),[t]),u.getSnapshot!==e||A||te!==null&&te.memoizedState.tag&1){if(a.flags|=2048,va(9,{destroy:void 0},oh.bind(null,a,u,n,e),null),_t===null)throw Error(r(349));d||(On&127)!==0||sh(a,e,n)}return n}function sh(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=yt.updateQueue,e===null?(e=ws(),yt.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function oh(t,e,n,a){e.value=n,e.getSnapshot=a,uh(e)&&ch(t)}function rh(t,e,n){return n(function(){uh(e)&&ch(t)})}function uh(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!He(t,n)}catch{return!0}}function ch(t){var e=Ei(t,2);e!==null&&Ve(e,t,2)}function $r(t){var e=Ae();if(typeof t=="function"){var n=t;if(t=n(),Ui){Qn(!0);try{n()}finally{Qn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vn,lastRenderedState:t},e}function fh(t,e,n,a){return t.baseState=n,Wr(t,Ut,typeof a=="function"?a:Vn)}function lv(t,e,n,a,u){if(Vs(t))throw Error(r(485));if(t=e.action,t!==null){var d={payload:u,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(A){d.listeners.push(A)}};j.T!==null?n(!0):d.isTransition=!1,a(d),n=e.pending,n===null?(d.next=e.pending=d,hh(e,d)):(d.next=n.next,e.pending=n.next=d)}}function hh(t,e){var n=e.action,a=e.payload,u=t.state;if(e.isTransition){var d=j.T,A={};j.T=A;try{var w=n(u,a),N=j.S;N!==null&&N(A,w),dh(t,e,w)}catch(q){tu(t,e,q)}finally{d!==null&&A.types!==null&&(d.types=A.types),j.T=d}}else try{d=n(u,a),dh(t,e,d)}catch(q){tu(t,e,q)}}function dh(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){mh(t,e,a)},function(a){return tu(t,e,a)}):mh(t,e,n)}function mh(t,e,n){e.status="fulfilled",e.value=n,ph(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,hh(t,n)))}function tu(t,e,n){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=n,ph(e),e=e.next;while(e!==a)}t.action=null}function ph(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function gh(t,e){return e}function vh(t,e){if(Ct){var n=_t.formState;if(n!==null){t:{var a=yt;if(Ct){if(jt){e:{for(var u=jt,d=en;u.nodeType!==8;){if(!d){u=null;break e}if(u=an(u.nextSibling),u===null){u=null;break e}}d=u.data,u=d==="F!"||d==="F"?u:null}if(u){jt=an(u.nextSibling),a=u.data==="F!";break t}}Wn(a)}a=!1}a&&(e=n[0])}}return n=Ae(),n.memoizedState=n.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gh,lastRenderedState:e},n.queue=a,n=Nh.bind(null,yt,a),a.dispatch=n,a=$r(!1),d=su.bind(null,yt,!1,a.queue),a=Ae(),u={state:e,dispatch:null,action:t,pending:null},a.queue=u,n=lv.bind(null,yt,u,d,n),u.dispatch=n,a.memoizedState=t,[e,n,!1]}function yh(t){var e=Kt();return xh(e,Ut,t)}function xh(t,e,n){if(e=Wr(t,e,gh)[0],t=Bs(Vn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=cl(e)}catch(A){throw A===ha?Ss:A}else a=e;e=Kt();var u=e.queue,d=u.dispatch;return n!==e.memoizedState&&(yt.flags|=2048,va(9,{destroy:void 0},sv.bind(null,u,n),null)),[a,d,t]}function sv(t,e){t.action=e}function Sh(t){var e=Kt(),n=Ut;if(n!==null)return xh(e,n,t);Kt(),e=e.memoizedState,n=Kt();var a=n.queue.dispatch;return n.memoizedState=t,[e,a,!1]}function va(t,e,n,a){return t={tag:t,create:n,deps:a,inst:e,next:null},e=yt.updateQueue,e===null&&(e=ws(),yt.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(a=n.next,n.next=t,t.next=a,e.lastEffect=t),t}function Th(){return Kt().memoizedState}function zs(t,e,n,a){var u=Ae();yt.flags|=t,u.memoizedState=va(1|e,{destroy:void 0},n,a===void 0?null:a)}function Os(t,e,n,a){var u=Kt();a=a===void 0?null:a;var d=u.memoizedState.inst;Ut!==null&&a!==null&&Fr(a,Ut.memoizedState.deps)?u.memoizedState=va(e,d,n,a):(yt.flags|=t,u.memoizedState=va(1|e,d,n,a))}function bh(t,e){zs(8390656,8,t,e)}function eu(t,e){Os(2048,8,t,e)}function ov(t){yt.flags|=4;var e=yt.updateQueue;if(e===null)e=ws(),yt.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function Ah(t){var e=Kt().memoizedState;return ov({ref:e,nextImpl:t}),function(){if((Bt&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function Mh(t,e){return Os(4,2,t,e)}function Eh(t,e){return Os(4,4,t,e)}function Ch(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Dh(t,e,n){n=n!=null?n.concat([t]):null,Os(4,4,Ch.bind(null,e,t),n)}function nu(){}function wh(t,e){var n=Kt();e=e===void 0?null:e;var a=n.memoizedState;return e!==null&&Fr(e,a[1])?a[0]:(n.memoizedState=[t,e],t)}function Rh(t,e){var n=Kt();e=e===void 0?null:e;var a=n.memoizedState;if(e!==null&&Fr(e,a[1]))return a[0];if(a=t(),Ui){Qn(!0);try{t()}finally{Qn(!1)}}return n.memoizedState=[a,e],a}function iu(t,e,n){return n===void 0||(On&1073741824)!==0&&(At&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=Bd(),yt.lanes|=t,si|=t,n)}function Bh(t,e,n,a){return He(n,e)?n:ma.current!==null?(t=iu(t,n,a),He(t,e)||(ee=!0),t):(On&42)===0||(On&1073741824)!==0&&(At&261930)===0?(ee=!0,t.memoizedState=n):(t=Bd(),yt.lanes|=t,si|=t,e)}function zh(t,e,n,a,u){var d=Z.p;Z.p=d!==0&&8>d?d:8;var A=j.T,w={};j.T=w,su(t,!1,e,n);try{var N=u(),q=j.S;if(q!==null&&q(w,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var J=nv(N,a);fl(t,e,J,Xe(t))}else fl(t,e,a,Xe(t))}catch(I){fl(t,e,{then:function(){},status:"rejected",reason:I},Xe())}finally{Z.p=d,A!==null&&w.types!==null&&(A.types=w.types),j.T=A}}function rv(){}function au(t,e,n,a){if(t.tag!==5)throw Error(r(476));var u=Oh(t).queue;zh(t,u,e,$,n===null?rv:function(){return Vh(t),n(a)})}function Oh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vn,lastRenderedState:$},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Vh(t){var e=Oh(t);e.next===null&&(e=t.alternate.memoizedState),fl(t,e.next.queue,{},Xe())}function lu(){return he(wl)}function Uh(){return Kt().memoizedState}function Lh(){return Kt().memoizedState}function uv(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Xe();t=ti(n);var a=ei(e,t,n);a!==null&&(Ve(a,e,n),sl(a,e,n)),e={cache:Ur()},t.payload=e;return}e=e.return}}function cv(t,e,n){var a=Xe();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Vs(t)?Hh(e,n):(n=Ar(t,e,n,a),n!==null&&(Ve(n,t,a),_h(n,e,a)))}function Nh(t,e,n){var a=Xe();fl(t,e,n,a)}function fl(t,e,n,a){var u={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Vs(t))Hh(e,u);else{var d=t.alternate;if(t.lanes===0&&(d===null||d.lanes===0)&&(d=e.lastRenderedReducer,d!==null))try{var A=e.lastRenderedState,w=d(A,n);if(u.hasEagerState=!0,u.eagerState=w,He(w,A))return ds(t,e,u,0),_t===null&&hs(),!1}catch{}if(n=Ar(t,e,u,a),n!==null)return Ve(n,t,a),_h(n,e,a),!0}return!1}function su(t,e,n,a){if(a={lane:2,revertLane:_u(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Vs(t)){if(e)throw Error(r(479))}else e=Ar(t,n,a,2),e!==null&&Ve(e,t,2)}function Vs(t){var e=t.alternate;return t===yt||e!==null&&e===yt}function Hh(t,e){pa=Cs=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function _h(t,e,n){if((n&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,Xf(t,n)}}var hl={readContext:he,use:Rs,useCallback:qt,useContext:qt,useEffect:qt,useImperativeHandle:qt,useLayoutEffect:qt,useInsertionEffect:qt,useMemo:qt,useReducer:qt,useRef:qt,useState:qt,useDebugValue:qt,useDeferredValue:qt,useTransition:qt,useSyncExternalStore:qt,useId:qt,useHostTransitionStatus:qt,useFormState:qt,useActionState:qt,useOptimistic:qt,useMemoCache:qt,useCacheRefresh:qt};hl.useEffectEvent=qt;var Gh={readContext:he,use:Rs,useCallback:function(t,e){return Ae().memoizedState=[t,e===void 0?null:e],t},useContext:he,useEffect:bh,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,zs(4194308,4,Ch.bind(null,e,t),n)},useLayoutEffect:function(t,e){return zs(4194308,4,t,e)},useInsertionEffect:function(t,e){zs(4,2,t,e)},useMemo:function(t,e){var n=Ae();e=e===void 0?null:e;var a=t();if(Ui){Qn(!0);try{t()}finally{Qn(!1)}}return n.memoizedState=[a,e],a},useReducer:function(t,e,n){var a=Ae();if(n!==void 0){var u=n(e);if(Ui){Qn(!0);try{n(e)}finally{Qn(!1)}}}else u=e;return a.memoizedState=a.baseState=u,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:u},a.queue=t,t=t.dispatch=cv.bind(null,yt,t),[a.memoizedState,t]},useRef:function(t){var e=Ae();return t={current:t},e.memoizedState=t},useState:function(t){t=$r(t);var e=t.queue,n=Nh.bind(null,yt,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:nu,useDeferredValue:function(t,e){var n=Ae();return iu(n,t,e)},useTransition:function(){var t=$r(!1);return t=zh.bind(null,yt,t.queue,!0,!1),Ae().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var a=yt,u=Ae();if(Ct){if(n===void 0)throw Error(r(407));n=n()}else{if(n=e(),_t===null)throw Error(r(349));(At&127)!==0||sh(a,e,n)}u.memoizedState=n;var d={value:n,getSnapshot:e};return u.queue=d,bh(rh.bind(null,a,d,t),[t]),a.flags|=2048,va(9,{destroy:void 0},oh.bind(null,a,d,n,e),null),n},useId:function(){var t=Ae(),e=_t.identifierPrefix;if(Ct){var n=yn,a=vn;n=(a&~(1<<32-Ne(a)-1)).toString(32)+n,e="_"+e+"R_"+n,n=Ds++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=iv++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:lu,useFormState:vh,useActionState:vh,useOptimistic:function(t){var e=Ae();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=su.bind(null,yt,!0,n),n.dispatch=e,[t,e]},useMemoCache:Jr,useCacheRefresh:function(){return Ae().memoizedState=uv.bind(null,yt)},useEffectEvent:function(t){var e=Ae(),n={impl:t};return e.memoizedState=n,function(){if((Bt&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},ou={readContext:he,use:Rs,useCallback:wh,useContext:he,useEffect:eu,useImperativeHandle:Dh,useInsertionEffect:Mh,useLayoutEffect:Eh,useMemo:Rh,useReducer:Bs,useRef:Th,useState:function(){return Bs(Vn)},useDebugValue:nu,useDeferredValue:function(t,e){var n=Kt();return Bh(n,Ut.memoizedState,t,e)},useTransition:function(){var t=Bs(Vn)[0],e=Kt().memoizedState;return[typeof t=="boolean"?t:cl(t),e]},useSyncExternalStore:lh,useId:Uh,useHostTransitionStatus:lu,useFormState:yh,useActionState:yh,useOptimistic:function(t,e){var n=Kt();return fh(n,Ut,t,e)},useMemoCache:Jr,useCacheRefresh:Lh};ou.useEffectEvent=Ah;var jh={readContext:he,use:Rs,useCallback:wh,useContext:he,useEffect:eu,useImperativeHandle:Dh,useInsertionEffect:Mh,useLayoutEffect:Eh,useMemo:Rh,useReducer:Ir,useRef:Th,useState:function(){return Ir(Vn)},useDebugValue:nu,useDeferredValue:function(t,e){var n=Kt();return Ut===null?iu(n,t,e):Bh(n,Ut.memoizedState,t,e)},useTransition:function(){var t=Ir(Vn)[0],e=Kt().memoizedState;return[typeof t=="boolean"?t:cl(t),e]},useSyncExternalStore:lh,useId:Uh,useHostTransitionStatus:lu,useFormState:Sh,useActionState:Sh,useOptimistic:function(t,e){var n=Kt();return Ut!==null?fh(n,Ut,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:Jr,useCacheRefresh:Lh};jh.useEffectEvent=Ah;function ru(t,e,n,a){e=t.memoizedState,n=n(a,e),n=n==null?e:x({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var uu={enqueueSetState:function(t,e,n){t=t._reactInternals;var a=Xe(),u=ti(a);u.payload=e,n!=null&&(u.callback=n),e=ei(t,u,a),e!==null&&(Ve(e,t,a),sl(e,t,a))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var a=Xe(),u=ti(a);u.tag=1,u.payload=e,n!=null&&(u.callback=n),e=ei(t,u,a),e!==null&&(Ve(e,t,a),sl(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Xe(),a=ti(n);a.tag=2,e!=null&&(a.callback=e),e=ei(t,a,n),e!==null&&(Ve(e,t,n),sl(e,t,n))}};function Yh(t,e,n,a,u,d,A){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,d,A):e.prototype&&e.prototype.isPureReactComponent?!Ia(n,a)||!Ia(u,d):!0}function Ph(t,e,n,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,a),e.state!==t&&uu.enqueueReplaceState(e,e.state,null)}function Li(t,e){var n=e;if("ref"in e){n={};for(var a in e)a!=="ref"&&(n[a]=e[a])}if(t=t.defaultProps){n===e&&(n=x({},n));for(var u in t)n[u]===void 0&&(n[u]=t[u])}return n}function Xh(t){fs(t)}function qh(t){console.error(t)}function Fh(t){fs(t)}function Us(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function Qh(t,e,n){try{var a=t.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function cu(t,e,n){return n=ti(n),n.tag=3,n.payload={element:null},n.callback=function(){Us(t,e)},n}function Zh(t){return t=ti(t),t.tag=3,t}function Kh(t,e,n,a){var u=n.type.getDerivedStateFromError;if(typeof u=="function"){var d=a.value;t.payload=function(){return u(d)},t.callback=function(){Qh(e,n,a)}}var A=n.stateNode;A!==null&&typeof A.componentDidCatch=="function"&&(t.callback=function(){Qh(e,n,a),typeof u!="function"&&(oi===null?oi=new Set([this]):oi.add(this));var w=a.stack;this.componentDidCatch(a.value,{componentStack:w!==null?w:""})})}function fv(t,e,n,a,u){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=n.alternate,e!==null&&ua(e,n,u,!0),n=Ge.current,n!==null){switch(n.tag){case 31:case 13:return nn===null?Qs():n.alternate===null&&Ft===0&&(Ft=3),n.flags&=-257,n.flags|=65536,n.lanes=u,a===Ts?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([a]):e.add(a),Lu(t,a,u)),!1;case 22:return n.flags|=65536,a===Ts?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([a]):n.add(a)),Lu(t,a,u)),!1}throw Error(r(435,n.tag))}return Lu(t,a,u),Qs(),!1}if(Ct)return e=Ge.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=u,a!==Rr&&(t=Error(r(422),{cause:a}),el(Ie(t,n)))):(a!==Rr&&(e=Error(r(423),{cause:a}),el(Ie(e,n))),t=t.current.alternate,t.flags|=65536,u&=-u,t.lanes|=u,a=Ie(a,n),u=cu(t.stateNode,a,u),jr(t,u),Ft!==4&&(Ft=2)),!1;var d=Error(r(520),{cause:a});if(d=Ie(d,n),Sl===null?Sl=[d]:Sl.push(d),Ft!==4&&(Ft=2),e===null)return!0;a=Ie(a,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=u&-u,n.lanes|=t,t=cu(n.stateNode,a,t),jr(n,t),!1;case 1:if(e=n.type,d=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(oi===null||!oi.has(d))))return n.flags|=65536,u&=-u,n.lanes|=u,u=Zh(u),Kh(u,t,n,a),jr(n,u),!1}n=n.return}while(n!==null);return!1}var fu=Error(r(461)),ee=!1;function de(t,e,n,a){e.child=t===null?I0(e,null,n,a):Vi(e,t.child,n,a)}function kh(t,e,n,a,u){n=n.render;var d=e.ref;if("ref"in a){var A={};for(var w in a)w!=="ref"&&(A[w]=a[w])}else A=a;return Ri(e),a=Qr(t,e,n,A,d,u),w=Zr(),t!==null&&!ee?(Kr(t,e,u),Un(t,e,u)):(Ct&&w&&Dr(e),e.flags|=1,de(t,e,a,u),e.child)}function Jh(t,e,n,a,u){if(t===null){var d=n.type;return typeof d=="function"&&!Mr(d)&&d.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=d,Wh(t,e,d,a,u)):(t=ps(n.type,null,a,e,e.mode,u),t.ref=e.ref,t.return=e,e.child=t)}if(d=t.child,!xu(t,u)){var A=d.memoizedProps;if(n=n.compare,n=n!==null?n:Ia,n(A,a)&&t.ref===e.ref)return Un(t,e,u)}return e.flags|=1,t=wn(d,a),t.ref=e.ref,t.return=e,e.child=t}function Wh(t,e,n,a,u){if(t!==null){var d=t.memoizedProps;if(Ia(d,a)&&t.ref===e.ref)if(ee=!1,e.pendingProps=a=d,xu(t,u))(t.flags&131072)!==0&&(ee=!0);else return e.lanes=t.lanes,Un(t,e,u)}return hu(t,e,n,a,u)}function Ih(t,e,n,a){var u=a.children,d=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((e.flags&128)!==0){if(d=d!==null?d.baseLanes|n:n,t!==null){for(a=e.child=t.child,u=0;a!==null;)u=u|a.lanes|a.childLanes,a=a.sibling;a=u&~d}else a=0,e.child=null;return $h(t,e,d,n,a)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&xs(e,d!==null?d.cachePool:null),d!==null?eh(e,d):Pr(),nh(e);else return a=e.lanes=536870912,$h(t,e,d!==null?d.baseLanes|n:n,n,a)}else d!==null?(xs(e,d.cachePool),eh(e,d),ii(),e.memoizedState=null):(t!==null&&xs(e,null),Pr(),ii());return de(t,e,u,n),e.child}function dl(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function $h(t,e,n,a,u){var d=Nr();return d=d===null?null:{parent:$t._currentValue,pool:d},e.memoizedState={baseLanes:n,cachePool:d},t!==null&&xs(e,null),Pr(),nh(e),t!==null&&ua(t,e,a,!0),e.childLanes=u,null}function Ls(t,e){return e=Hs({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function td(t,e,n){return Vi(e,t.child,null,n),t=Ls(e,e.pendingProps),t.flags|=2,je(e),e.memoizedState=null,t}function hv(t,e,n){var a=e.pendingProps,u=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(Ct){if(a.mode==="hidden")return t=Ls(e,a),e.lanes=536870912,dl(null,t);if(qr(e),(t=jt)?(t=h2(t,en),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:kn!==null?{id:vn,overflow:yn}:null,retryLane:536870912,hydrationErrors:null},n=H0(t),n.return=e,e.child=n,fe=e,jt=null)):t=null,t===null)throw Wn(e);return e.lanes=536870912,null}return Ls(e,a)}var d=t.memoizedState;if(d!==null){var A=d.dehydrated;if(qr(e),u)if(e.flags&256)e.flags&=-257,e=td(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if(ee||ua(t,e,n,!1),u=(n&t.childLanes)!==0,ee||u){if(a=_t,a!==null&&(A=qf(a,n),A!==0&&A!==d.retryLane))throw d.retryLane=A,Ei(t,A),Ve(a,t,A),fu;Qs(),e=td(t,e,n)}else t=d.treeContext,jt=an(A.nextSibling),fe=e,Ct=!0,Jn=null,en=!1,t!==null&&j0(e,t),e=Ls(e,a),e.flags|=4096;return e}return t=wn(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Ns(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(r(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function hu(t,e,n,a,u){return Ri(e),n=Qr(t,e,n,a,void 0,u),a=Zr(),t!==null&&!ee?(Kr(t,e,u),Un(t,e,u)):(Ct&&a&&Dr(e),e.flags|=1,de(t,e,n,u),e.child)}function ed(t,e,n,a,u,d){return Ri(e),e.updateQueue=null,n=ah(e,a,n,u),ih(t),a=Zr(),t!==null&&!ee?(Kr(t,e,d),Un(t,e,d)):(Ct&&a&&Dr(e),e.flags|=1,de(t,e,n,d),e.child)}function nd(t,e,n,a,u){if(Ri(e),e.stateNode===null){var d=la,A=n.contextType;typeof A=="object"&&A!==null&&(d=he(A)),d=new n(a,d),e.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=uu,e.stateNode=d,d._reactInternals=e,d=e.stateNode,d.props=a,d.state=e.memoizedState,d.refs={},_r(e),A=n.contextType,d.context=typeof A=="object"&&A!==null?he(A):la,d.state=e.memoizedState,A=n.getDerivedStateFromProps,typeof A=="function"&&(ru(e,n,A,a),d.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(A=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),A!==d.state&&uu.enqueueReplaceState(d,d.state,null),rl(e,a,d,u),ol(),d.state=e.memoizedState),typeof d.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){d=e.stateNode;var w=e.memoizedProps,N=Li(n,w);d.props=N;var q=d.context,J=n.contextType;A=la,typeof J=="object"&&J!==null&&(A=he(J));var I=n.getDerivedStateFromProps;J=typeof I=="function"||typeof d.getSnapshotBeforeUpdate=="function",w=e.pendingProps!==w,J||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(w||q!==A)&&Ph(e,d,a,A),$n=!1;var F=e.memoizedState;d.state=F,rl(e,a,d,u),ol(),q=e.memoizedState,w||F!==q||$n?(typeof I=="function"&&(ru(e,n,I,a),q=e.memoizedState),(N=$n||Yh(e,n,N,a,F,q,A))?(J||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(e.flags|=4194308)):(typeof d.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=q),d.props=a,d.state=q,d.context=A,a=N):(typeof d.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{d=e.stateNode,Gr(t,e),A=e.memoizedProps,J=Li(n,A),d.props=J,I=e.pendingProps,F=d.context,q=n.contextType,N=la,typeof q=="object"&&q!==null&&(N=he(q)),w=n.getDerivedStateFromProps,(q=typeof w=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(A!==I||F!==N)&&Ph(e,d,a,N),$n=!1,F=e.memoizedState,d.state=F,rl(e,a,d,u),ol();var K=e.memoizedState;A!==I||F!==K||$n||t!==null&&t.dependencies!==null&&vs(t.dependencies)?(typeof w=="function"&&(ru(e,n,w,a),K=e.memoizedState),(J=$n||Yh(e,n,J,a,F,K,N)||t!==null&&t.dependencies!==null&&vs(t.dependencies))?(q||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(a,K,N),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(a,K,N)),typeof d.componentDidUpdate=="function"&&(e.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof d.componentDidUpdate!="function"||A===t.memoizedProps&&F===t.memoizedState||(e.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||A===t.memoizedProps&&F===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=K),d.props=a,d.state=K,d.context=N,a=J):(typeof d.componentDidUpdate!="function"||A===t.memoizedProps&&F===t.memoizedState||(e.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||A===t.memoizedProps&&F===t.memoizedState||(e.flags|=1024),a=!1)}return d=a,Ns(t,e),a=(e.flags&128)!==0,d||a?(d=e.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:d.render(),e.flags|=1,t!==null&&a?(e.child=Vi(e,t.child,null,u),e.child=Vi(e,null,n,u)):de(t,e,n,u),e.memoizedState=d.state,t=e.child):t=Un(t,e,u),t}function id(t,e,n,a){return Di(),e.flags|=256,de(t,e,n,a),e.child}var du={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function mu(t){return{baseLanes:t,cachePool:Q0()}}function pu(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Pe),t}function ad(t,e,n){var a=e.pendingProps,u=!1,d=(e.flags&128)!==0,A;if((A=d)||(A=t!==null&&t.memoizedState===null?!1:(Zt.current&2)!==0),A&&(u=!0,e.flags&=-129),A=(e.flags&32)!==0,e.flags&=-33,t===null){if(Ct){if(u?ni(e):ii(),(t=jt)?(t=h2(t,en),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:kn!==null?{id:vn,overflow:yn}:null,retryLane:536870912,hydrationErrors:null},n=H0(t),n.return=e,e.child=n,fe=e,jt=null)):t=null,t===null)throw Wn(e);return Wu(t)?e.lanes=32:e.lanes=536870912,null}var w=a.children;return a=a.fallback,u?(ii(),u=e.mode,w=Hs({mode:"hidden",children:w},u),a=Ci(a,u,n,null),w.return=e,a.return=e,w.sibling=a,e.child=w,a=e.child,a.memoizedState=mu(n),a.childLanes=pu(t,A,n),e.memoizedState=du,dl(null,a)):(ni(e),gu(e,w))}var N=t.memoizedState;if(N!==null&&(w=N.dehydrated,w!==null)){if(d)e.flags&256?(ni(e),e.flags&=-257,e=vu(t,e,n)):e.memoizedState!==null?(ii(),e.child=t.child,e.flags|=128,e=null):(ii(),w=a.fallback,u=e.mode,a=Hs({mode:"visible",children:a.children},u),w=Ci(w,u,n,null),w.flags|=2,a.return=e,w.return=e,a.sibling=w,e.child=a,Vi(e,t.child,null,n),a=e.child,a.memoizedState=mu(n),a.childLanes=pu(t,A,n),e.memoizedState=du,e=dl(null,a));else if(ni(e),Wu(w)){if(A=w.nextSibling&&w.nextSibling.dataset,A)var q=A.dgst;A=q,a=Error(r(419)),a.stack="",a.digest=A,el({value:a,source:null,stack:null}),e=vu(t,e,n)}else if(ee||ua(t,e,n,!1),A=(n&t.childLanes)!==0,ee||A){if(A=_t,A!==null&&(a=qf(A,n),a!==0&&a!==N.retryLane))throw N.retryLane=a,Ei(t,a),Ve(A,t,a),fu;Ju(w)||Qs(),e=vu(t,e,n)}else Ju(w)?(e.flags|=192,e.child=t.child,e=null):(t=N.treeContext,jt=an(w.nextSibling),fe=e,Ct=!0,Jn=null,en=!1,t!==null&&j0(e,t),e=gu(e,a.children),e.flags|=4096);return e}return u?(ii(),w=a.fallback,u=e.mode,N=t.child,q=N.sibling,a=wn(N,{mode:"hidden",children:a.children}),a.subtreeFlags=N.subtreeFlags&65011712,q!==null?w=wn(q,w):(w=Ci(w,u,n,null),w.flags|=2),w.return=e,a.return=e,a.sibling=w,e.child=a,dl(null,a),a=e.child,w=t.child.memoizedState,w===null?w=mu(n):(u=w.cachePool,u!==null?(N=$t._currentValue,u=u.parent!==N?{parent:N,pool:N}:u):u=Q0(),w={baseLanes:w.baseLanes|n,cachePool:u}),a.memoizedState=w,a.childLanes=pu(t,A,n),e.memoizedState=du,dl(t.child,a)):(ni(e),n=t.child,t=n.sibling,n=wn(n,{mode:"visible",children:a.children}),n.return=e,n.sibling=null,t!==null&&(A=e.deletions,A===null?(e.deletions=[t],e.flags|=16):A.push(t)),e.child=n,e.memoizedState=null,n)}function gu(t,e){return e=Hs({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Hs(t,e){return t=_e(22,t,null,e),t.lanes=0,t}function vu(t,e,n){return Vi(e,t.child,null,n),t=gu(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function ld(t,e,n){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),Or(t.return,e,n)}function yu(t,e,n,a,u,d){var A=t.memoizedState;A===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:u,treeForkCount:d}:(A.isBackwards=e,A.rendering=null,A.renderingStartTime=0,A.last=a,A.tail=n,A.tailMode=u,A.treeForkCount=d)}function sd(t,e,n){var a=e.pendingProps,u=a.revealOrder,d=a.tail;a=a.children;var A=Zt.current,w=(A&2)!==0;if(w?(A=A&1|2,e.flags|=128):A&=1,k(Zt,A),de(t,e,a,n),a=Ct?tl:0,!w&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&ld(t,n,e);else if(t.tag===19)ld(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(u){case"forwards":for(n=e.child,u=null;n!==null;)t=n.alternate,t!==null&&Es(t)===null&&(u=n),n=n.sibling;n=u,n===null?(u=e.child,e.child=null):(u=n.sibling,n.sibling=null),yu(e,!1,u,n,d,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,u=e.child,e.child=null;u!==null;){if(t=u.alternate,t!==null&&Es(t)===null){e.child=u;break}t=u.sibling,u.sibling=n,n=u,u=t}yu(e,!0,n,null,d,a);break;case"together":yu(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function Un(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),si|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(ua(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,n=wn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=wn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function xu(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&vs(t)))}function dv(t,e,n){switch(e.tag){case 3:Et(e,e.stateNode.containerInfo),In(e,$t,t.memoizedState.cache),Di();break;case 27:case 5:ie(e);break;case 4:Et(e,e.stateNode.containerInfo);break;case 10:In(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,qr(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(ni(e),e.flags|=128,null):(n&e.child.childLanes)!==0?ad(t,e,n):(ni(e),t=Un(t,e,n),t!==null?t.sibling:null);ni(e);break;case 19:var u=(t.flags&128)!==0;if(a=(n&e.childLanes)!==0,a||(ua(t,e,n,!1),a=(n&e.childLanes)!==0),u){if(a)return sd(t,e,n);e.flags|=128}if(u=e.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),k(Zt,Zt.current),a)break;return null;case 22:return e.lanes=0,Ih(t,e,n,e.pendingProps);case 24:In(e,$t,t.memoizedState.cache)}return Un(t,e,n)}function od(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)ee=!0;else{if(!xu(t,n)&&(e.flags&128)===0)return ee=!1,dv(t,e,n);ee=(t.flags&131072)!==0}else ee=!1,Ct&&(e.flags&1048576)!==0&&G0(e,tl,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=zi(e.elementType),e.type=t,typeof t=="function")Mr(t)?(a=Li(t,a),e.tag=1,e=nd(null,e,t,a,n)):(e.tag=0,e=hu(null,e,t,a,n));else{if(t!=null){var u=t.$$typeof;if(u===U){e.tag=11,e=kh(null,e,t,a,n);break t}else if(u===D){e.tag=14,e=Jh(null,e,t,a,n);break t}}throw e=nt(t)||t,Error(r(306,e,""))}}return e;case 0:return hu(t,e,e.type,e.pendingProps,n);case 1:return a=e.type,u=Li(a,e.pendingProps),nd(t,e,a,u,n);case 3:t:{if(Et(e,e.stateNode.containerInfo),t===null)throw Error(r(387));a=e.pendingProps;var d=e.memoizedState;u=d.element,Gr(t,e),rl(e,a,null,n);var A=e.memoizedState;if(a=A.cache,In(e,$t,a),a!==d.cache&&Vr(e,[$t],n,!0),ol(),a=A.element,d.isDehydrated)if(d={element:a,isDehydrated:!1,cache:A.cache},e.updateQueue.baseState=d,e.memoizedState=d,e.flags&256){e=id(t,e,a,n);break t}else if(a!==u){u=Ie(Error(r(424)),e),el(u),e=id(t,e,a,n);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,jt=an(t.firstChild),fe=e,Ct=!0,Jn=null,en=!0,n=I0(e,null,a,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Di(),a===u){e=Un(t,e,n);break t}de(t,e,a,n)}e=e.child}return e;case 26:return Ns(t,e),t===null?(n=y2(e.type,null,e.pendingProps,null))?e.memoizedState=n:Ct||(n=e.type,t=e.pendingProps,a=$s(at.current).createElement(n),a[ce]=e,a[De]=t,me(a,n,t),oe(a),e.stateNode=a):e.memoizedState=y2(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return ie(e),t===null&&Ct&&(a=e.stateNode=p2(e.type,e.pendingProps,at.current),fe=e,en=!0,u=jt,fi(e.type)?(Iu=u,jt=an(a.firstChild)):jt=u),de(t,e,e.pendingProps.children,n),Ns(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&Ct&&((u=a=jt)&&(a=Xv(a,e.type,e.pendingProps,en),a!==null?(e.stateNode=a,fe=e,jt=an(a.firstChild),en=!1,u=!0):u=!1),u||Wn(e)),ie(e),u=e.type,d=e.pendingProps,A=t!==null?t.memoizedProps:null,a=d.children,Zu(u,d)?a=null:A!==null&&Zu(u,A)&&(e.flags|=32),e.memoizedState!==null&&(u=Qr(t,e,av,null,null,n),wl._currentValue=u),Ns(t,e),de(t,e,a,n),e.child;case 6:return t===null&&Ct&&((t=n=jt)&&(n=qv(n,e.pendingProps,en),n!==null?(e.stateNode=n,fe=e,jt=null,t=!0):t=!1),t||Wn(e)),null;case 13:return ad(t,e,n);case 4:return Et(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=Vi(e,null,a,n):de(t,e,a,n),e.child;case 11:return kh(t,e,e.type,e.pendingProps,n);case 7:return de(t,e,e.pendingProps,n),e.child;case 8:return de(t,e,e.pendingProps.children,n),e.child;case 12:return de(t,e,e.pendingProps.children,n),e.child;case 10:return a=e.pendingProps,In(e,e.type,a.value),de(t,e,a.children,n),e.child;case 9:return u=e.type._context,a=e.pendingProps.children,Ri(e),u=he(u),a=a(u),e.flags|=1,de(t,e,a,n),e.child;case 14:return Jh(t,e,e.type,e.pendingProps,n);case 15:return Wh(t,e,e.type,e.pendingProps,n);case 19:return sd(t,e,n);case 31:return hv(t,e,n);case 22:return Ih(t,e,n,e.pendingProps);case 24:return Ri(e),a=he($t),t===null?(u=Nr(),u===null&&(u=_t,d=Ur(),u.pooledCache=d,d.refCount++,d!==null&&(u.pooledCacheLanes|=n),u=d),e.memoizedState={parent:a,cache:u},_r(e),In(e,$t,u)):((t.lanes&n)!==0&&(Gr(t,e),rl(e,null,null,n),ol()),u=t.memoizedState,d=e.memoizedState,u.parent!==a?(u={parent:a,cache:a},e.memoizedState=u,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=u),In(e,$t,a)):(a=d.cache,In(e,$t,a),a!==u.cache&&Vr(e,[$t],n,!0))),de(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function Ln(t){t.flags|=4}function Su(t,e,n,a,u){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(u&335544128)===u)if(t.stateNode.complete)t.flags|=8192;else if(Ud())t.flags|=8192;else throw Oi=Ts,Hr}else t.flags&=-16777217}function rd(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!A2(e))if(Ud())t.flags|=8192;else throw Oi=Ts,Hr}function _s(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Yf():536870912,t.lanes|=e,Ta|=e)}function ml(t,e){if(!Ct)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function Yt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,a=0;if(e)for(var u=t.child;u!==null;)n|=u.lanes|u.childLanes,a|=u.subtreeFlags&65011712,a|=u.flags&65011712,u.return=t,u=u.sibling;else for(u=t.child;u!==null;)n|=u.lanes|u.childLanes,a|=u.subtreeFlags,a|=u.flags,u.return=t,u=u.sibling;return t.subtreeFlags|=a,t.childLanes=n,e}function mv(t,e,n){var a=e.pendingProps;switch(wr(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Yt(e),null;case 1:return Yt(e),null;case 3:return n=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),zn($t),mt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(ra(e)?Ln(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Br())),Yt(e),null;case 26:var u=e.type,d=e.memoizedState;return t===null?(Ln(e),d!==null?(Yt(e),rd(e,d)):(Yt(e),Su(e,u,null,a,n))):d?d!==t.memoizedState?(Ln(e),Yt(e),rd(e,d)):(Yt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&Ln(e),Yt(e),Su(e,u,t,a,n)),null;case 27:if(Jt(e),n=at.current,u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&Ln(e);else{if(!a){if(e.stateNode===null)throw Error(r(166));return Yt(e),null}t=it.current,ra(e)?Y0(e):(t=p2(u,a,n),e.stateNode=t,Ln(e))}return Yt(e),null;case 5:if(Jt(e),u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&Ln(e);else{if(!a){if(e.stateNode===null)throw Error(r(166));return Yt(e),null}if(d=it.current,ra(e))Y0(e);else{var A=$s(at.current);switch(d){case 1:d=A.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:d=A.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":d=A.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":d=A.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":d=A.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof a.is=="string"?A.createElement("select",{is:a.is}):A.createElement("select"),a.multiple?d.multiple=!0:a.size&&(d.size=a.size);break;default:d=typeof a.is=="string"?A.createElement(u,{is:a.is}):A.createElement(u)}}d[ce]=e,d[De]=a;t:for(A=e.child;A!==null;){if(A.tag===5||A.tag===6)d.appendChild(A.stateNode);else if(A.tag!==4&&A.tag!==27&&A.child!==null){A.child.return=A,A=A.child;continue}if(A===e)break t;for(;A.sibling===null;){if(A.return===null||A.return===e)break t;A=A.return}A.sibling.return=A.return,A=A.sibling}e.stateNode=d;t:switch(me(d,u,a),u){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&Ln(e)}}return Yt(e),Su(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&Ln(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(r(166));if(t=at.current,ra(e)){if(t=e.stateNode,n=e.memoizedProps,a=null,u=fe,u!==null)switch(u.tag){case 27:case 5:a=u.memoizedProps}t[ce]=e,t=!!(t.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||a2(t.nodeValue,n)),t||Wn(e,!0)}else t=$s(t).createTextNode(a),t[ce]=e,e.stateNode=t}return Yt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(a=ra(e),n!==null){if(t===null){if(!a)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[ce]=e}else Di(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Yt(e),t=!1}else n=Br(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(je(e),e):(je(e),null);if((e.flags&128)!==0)throw Error(r(558))}return Yt(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=ra(e),a!==null&&a.dehydrated!==null){if(t===null){if(!u)throw Error(r(318));if(u=e.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));u[ce]=e}else Di(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Yt(e),u=!1}else u=Br(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=u),u=!0;if(!u)return e.flags&256?(je(e),e):(je(e),null)}return je(e),(e.flags&128)!==0?(e.lanes=n,e):(n=a!==null,t=t!==null&&t.memoizedState!==null,n&&(a=e.child,u=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(u=a.alternate.memoizedState.cachePool.pool),d=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(d=a.memoizedState.cachePool.pool),d!==u&&(a.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),_s(e,e.updateQueue),Yt(e),null);case 4:return mt(),t===null&&Pu(e.stateNode.containerInfo),Yt(e),null;case 10:return zn(e.type),Yt(e),null;case 19:if(Y(Zt),a=e.memoizedState,a===null)return Yt(e),null;if(u=(e.flags&128)!==0,d=a.rendering,d===null)if(u)ml(a,!1);else{if(Ft!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(d=Es(t),d!==null){for(e.flags|=128,ml(a,!1),t=d.updateQueue,e.updateQueue=t,_s(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)N0(n,t),n=n.sibling;return k(Zt,Zt.current&1|2),Ct&&Rn(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&zt()>Xs&&(e.flags|=128,u=!0,ml(a,!1),e.lanes=4194304)}else{if(!u)if(t=Es(d),t!==null){if(e.flags|=128,u=!0,t=t.updateQueue,e.updateQueue=t,_s(e,t),ml(a,!0),a.tail===null&&a.tailMode==="hidden"&&!d.alternate&&!Ct)return Yt(e),null}else 2*zt()-a.renderingStartTime>Xs&&n!==536870912&&(e.flags|=128,u=!0,ml(a,!1),e.lanes=4194304);a.isBackwards?(d.sibling=e.child,e.child=d):(t=a.last,t!==null?t.sibling=d:e.child=d,a.last=d)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=zt(),t.sibling=null,n=Zt.current,k(Zt,u?n&1|2:n&1),Ct&&Rn(e,a.treeForkCount),t):(Yt(e),null);case 22:case 23:return je(e),Xr(),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&&(Yt(e),e.subtreeFlags&6&&(e.flags|=8192)):Yt(e),n=e.updateQueue,n!==null&&_s(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&&Y(Bi),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),zn($t),Yt(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function pv(t,e){switch(wr(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return zn($t),mt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Jt(e),null;case 31:if(e.memoizedState!==null){if(je(e),e.alternate===null)throw Error(r(340));Di()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(je(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));Di()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Y(Zt),null;case 4:return mt(),null;case 10:return zn(e.type),null;case 22:case 23:return je(e),Xr(),t!==null&&Y(Bi),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return zn($t),null;case 25:return null;default:return null}}function ud(t,e){switch(wr(e),e.tag){case 3:zn($t),mt();break;case 26:case 27:case 5:Jt(e);break;case 4:mt();break;case 31:e.memoizedState!==null&&je(e);break;case 13:je(e);break;case 19:Y(Zt);break;case 10:zn(e.type);break;case 22:case 23:je(e),Xr(),t!==null&&Y(Bi);break;case 24:zn($t)}}function pl(t,e){try{var n=e.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var u=a.next;n=u;do{if((n.tag&t)===t){a=void 0;var d=n.create,A=n.inst;a=d(),A.destroy=a}n=n.next}while(n!==u)}}catch(w){Vt(e,e.return,w)}}function ai(t,e,n){try{var a=e.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var d=u.next;a=d;do{if((a.tag&t)===t){var A=a.inst,w=A.destroy;if(w!==void 0){A.destroy=void 0,u=e;var N=n,q=w;try{q()}catch(J){Vt(u,N,J)}}}a=a.next}while(a!==d)}}catch(J){Vt(e,e.return,J)}}function cd(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{th(e,n)}catch(a){Vt(t,t.return,a)}}}function fd(t,e,n){n.props=Li(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(a){Vt(t,e,a)}}function gl(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof n=="function"?t.refCleanup=n(a):n.current=a}}catch(u){Vt(t,e,u)}}function xn(t,e){var n=t.ref,a=t.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(u){Vt(t,e,u)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(u){Vt(t,e,u)}else n.current=null}function hd(t){var e=t.type,n=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break t;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(u){Vt(t,t.return,u)}}function Tu(t,e,n){try{var a=t.stateNode;Hv(a,t.type,n,e),a[De]=e}catch(u){Vt(t,t.return,u)}}function dd(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&fi(t.type)||t.tag===4}function bu(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||dd(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&&fi(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 Au(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=Cn));else if(a!==4&&(a===27&&fi(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Au(t,e,n),t=t.sibling;t!==null;)Au(t,e,n),t=t.sibling}function Gs(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&&fi(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Gs(t,e,n),t=t.sibling;t!==null;)Gs(t,e,n),t=t.sibling}function md(t){var e=t.stateNode,n=t.memoizedProps;try{for(var a=t.type,u=e.attributes;u.length;)e.removeAttributeNode(u[0]);me(e,a,n),e[ce]=t,e[De]=n}catch(d){Vt(t,t.return,d)}}var Nn=!1,ne=!1,Mu=!1,pd=typeof WeakSet=="function"?WeakSet:Set,re=null;function gv(t,e){if(t=t.containerInfo,Fu=so,t=D0(t),vr(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var u=a.anchorOffset,d=a.focusNode;a=a.focusOffset;try{n.nodeType,d.nodeType}catch{n=null;break t}var A=0,w=-1,N=-1,q=0,J=0,I=t,F=null;e:for(;;){for(var K;I!==n||u!==0&&I.nodeType!==3||(w=A+u),I!==d||a!==0&&I.nodeType!==3||(N=A+a),I.nodeType===3&&(A+=I.nodeValue.length),(K=I.firstChild)!==null;)F=I,I=K;for(;;){if(I===t)break e;if(F===n&&++q===u&&(w=A),F===d&&++J===a&&(N=A),(K=I.nextSibling)!==null)break;I=F,F=I.parentNode}I=K}n=w===-1||N===-1?null:{start:w,end:N}}else n=null}n=n||{start:0,end:0}}else n=null;for(Qu={focusedElem:t,selectionRange:n},so=!1,re=e;re!==null;)if(e=re,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,re=t;else for(;re!==null;){switch(e=re,d=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<t.length;n++)u=t[n],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&d!==null){t=void 0,n=e,u=d.memoizedProps,d=d.memoizedState,a=n.stateNode;try{var ot=Li(n.type,u);t=a.getSnapshotBeforeUpdate(ot,d),a.__reactInternalSnapshotBeforeUpdate=t}catch(dt){Vt(n,n.return,dt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)ku(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":ku(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,re=t;break}re=e.return}}function gd(t,e,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:_n(t,n),a&4&&pl(5,n);break;case 1:if(_n(t,n),a&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(A){Vt(n,n.return,A)}else{var u=Li(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(u,e,t.__reactInternalSnapshotBeforeUpdate)}catch(A){Vt(n,n.return,A)}}a&64&&cd(n),a&512&&gl(n,n.return);break;case 3:if(_n(t,n),a&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{th(t,e)}catch(A){Vt(n,n.return,A)}}break;case 27:e===null&&a&4&&md(n);case 26:case 5:_n(t,n),e===null&&a&4&&hd(n),a&512&&gl(n,n.return);break;case 12:_n(t,n);break;case 31:_n(t,n),a&4&&xd(t,n);break;case 13:_n(t,n),a&4&&Sd(t,n),a&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=Ev.bind(null,n),Fv(t,n))));break;case 22:if(a=n.memoizedState!==null||Nn,!a){e=e!==null&&e.memoizedState!==null||ne,u=Nn;var d=ne;Nn=a,(ne=e)&&!d?Gn(t,n,(n.subtreeFlags&8772)!==0):_n(t,n),Nn=u,ne=d}break;case 30:break;default:_n(t,n)}}function vd(t){var e=t.alternate;e!==null&&(t.alternate=null,vd(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&tr(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Pt=null,Re=!1;function Hn(t,e,n){for(n=n.child;n!==null;)yd(t,e,n),n=n.sibling}function yd(t,e,n){if(Le&&typeof Le.onCommitFiberUnmount=="function")try{Le.onCommitFiberUnmount(ja,n)}catch{}switch(n.tag){case 26:ne||xn(n,e),Hn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ne||xn(n,e);var a=Pt,u=Re;fi(n.type)&&(Pt=n.stateNode,Re=!1),Hn(t,e,n),El(n.stateNode),Pt=a,Re=u;break;case 5:ne||xn(n,e);case 6:if(a=Pt,u=Re,Pt=null,Hn(t,e,n),Pt=a,Re=u,Pt!==null)if(Re)try{(Pt.nodeType===9?Pt.body:Pt.nodeName==="HTML"?Pt.ownerDocument.body:Pt).removeChild(n.stateNode)}catch(d){Vt(n,e,d)}else try{Pt.removeChild(n.stateNode)}catch(d){Vt(n,e,d)}break;case 18:Pt!==null&&(Re?(t=Pt,c2(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),Ra(t)):c2(Pt,n.stateNode));break;case 4:a=Pt,u=Re,Pt=n.stateNode.containerInfo,Re=!0,Hn(t,e,n),Pt=a,Re=u;break;case 0:case 11:case 14:case 15:ai(2,n,e),ne||ai(4,n,e),Hn(t,e,n);break;case 1:ne||(xn(n,e),a=n.stateNode,typeof a.componentWillUnmount=="function"&&fd(n,e,a)),Hn(t,e,n);break;case 21:Hn(t,e,n);break;case 22:ne=(a=ne)||n.memoizedState!==null,Hn(t,e,n),ne=a;break;default:Hn(t,e,n)}}function xd(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Ra(t)}catch(n){Vt(e,e.return,n)}}}function Sd(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Ra(t)}catch(n){Vt(e,e.return,n)}}function vv(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new pd),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new pd),e;default:throw Error(r(435,t.tag))}}function js(t,e){var n=vv(t);e.forEach(function(a){if(!n.has(a)){n.add(a);var u=Cv.bind(null,t,a);a.then(u,u)}})}function Be(t,e){var n=e.deletions;if(n!==null)for(var a=0;a<n.length;a++){var u=n[a],d=t,A=e,w=A;t:for(;w!==null;){switch(w.tag){case 27:if(fi(w.type)){Pt=w.stateNode,Re=!1;break t}break;case 5:Pt=w.stateNode,Re=!1;break t;case 3:case 4:Pt=w.stateNode.containerInfo,Re=!0;break t}w=w.return}if(Pt===null)throw Error(r(160));yd(d,A,u),Pt=null,Re=!1,d=u.alternate,d!==null&&(d.return=null),u.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Td(e,t),e=e.sibling}var un=null;function Td(t,e){var n=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Be(e,t),ze(t),a&4&&(ai(3,t,t.return),pl(3,t),ai(5,t,t.return));break;case 1:Be(e,t),ze(t),a&512&&(ne||n===null||xn(n,n.return)),a&64&&Nn&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var u=un;if(Be(e,t),ze(t),a&512&&(ne||n===null||xn(n,n.return)),a&4){var d=n!==null?n.memoizedState:null;if(a=t.memoizedState,n===null)if(a===null)if(t.stateNode===null){t:{a=t.type,n=t.memoizedProps,u=u.ownerDocument||u;e:switch(a){case"title":d=u.getElementsByTagName("title")[0],(!d||d[Xa]||d[ce]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=u.createElement(a),u.head.insertBefore(d,u.querySelector("head > title"))),me(d,a,n),d[ce]=t,oe(d),a=d;break t;case"link":var A=T2("link","href",u).get(a+(n.href||""));if(A){for(var w=0;w<A.length;w++)if(d=A[w],d.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&d.getAttribute("rel")===(n.rel==null?null:n.rel)&&d.getAttribute("title")===(n.title==null?null:n.title)&&d.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){A.splice(w,1);break e}}d=u.createElement(a),me(d,a,n),u.head.appendChild(d);break;case"meta":if(A=T2("meta","content",u).get(a+(n.content||""))){for(w=0;w<A.length;w++)if(d=A[w],d.getAttribute("content")===(n.content==null?null:""+n.content)&&d.getAttribute("name")===(n.name==null?null:n.name)&&d.getAttribute("property")===(n.property==null?null:n.property)&&d.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&d.getAttribute("charset")===(n.charSet==null?null:n.charSet)){A.splice(w,1);break e}}d=u.createElement(a),me(d,a,n),u.head.appendChild(d);break;default:throw Error(r(468,a))}d[ce]=t,oe(d),a=d}t.stateNode=a}else b2(u,t.type,t.stateNode);else t.stateNode=S2(u,a,t.memoizedProps);else d!==a?(d===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):d.count--,a===null?b2(u,t.type,t.stateNode):S2(u,a,t.memoizedProps)):a===null&&t.stateNode!==null&&Tu(t,t.memoizedProps,n.memoizedProps)}break;case 27:Be(e,t),ze(t),a&512&&(ne||n===null||xn(n,n.return)),n!==null&&a&4&&Tu(t,t.memoizedProps,n.memoizedProps);break;case 5:if(Be(e,t),ze(t),a&512&&(ne||n===null||xn(n,n.return)),t.flags&32){u=t.stateNode;try{Ii(u,"")}catch(ot){Vt(t,t.return,ot)}}a&4&&t.stateNode!=null&&(u=t.memoizedProps,Tu(t,u,n!==null?n.memoizedProps:u)),a&1024&&(Mu=!0);break;case 6:if(Be(e,t),ze(t),a&4){if(t.stateNode===null)throw Error(r(162));a=t.memoizedProps,n=t.stateNode;try{n.nodeValue=a}catch(ot){Vt(t,t.return,ot)}}break;case 3:if(no=null,u=un,un=to(e.containerInfo),Be(e,t),un=u,ze(t),a&4&&n!==null&&n.memoizedState.isDehydrated)try{Ra(e.containerInfo)}catch(ot){Vt(t,t.return,ot)}Mu&&(Mu=!1,bd(t));break;case 4:a=un,un=to(t.stateNode.containerInfo),Be(e,t),ze(t),un=a;break;case 12:Be(e,t),ze(t);break;case 31:Be(e,t),ze(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,js(t,a)));break;case 13:Be(e,t),ze(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Ps=zt()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,js(t,a)));break;case 22:u=t.memoizedState!==null;var N=n!==null&&n.memoizedState!==null,q=Nn,J=ne;if(Nn=q||u,ne=J||N,Be(e,t),ne=J,Nn=q,ze(t),a&8192)t:for(e=t.stateNode,e._visibility=u?e._visibility&-2:e._visibility|1,u&&(n===null||N||Nn||ne||Ni(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){N=n=e;try{if(d=N.stateNode,u)A=d.style,typeof A.setProperty=="function"?A.setProperty("display","none","important"):A.display="none";else{w=N.stateNode;var I=N.memoizedProps.style,F=I!=null&&I.hasOwnProperty("display")?I.display:null;w.style.display=F==null||typeof F=="boolean"?"":(""+F).trim()}}catch(ot){Vt(N,N.return,ot)}}}else if(e.tag===6){if(n===null){N=e;try{N.stateNode.nodeValue=u?"":N.memoizedProps}catch(ot){Vt(N,N.return,ot)}}}else if(e.tag===18){if(n===null){N=e;try{var K=N.stateNode;u?f2(K,!0):f2(N.stateNode,!1)}catch(ot){Vt(N,N.return,ot)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}a&4&&(a=t.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,js(t,n))));break;case 19:Be(e,t),ze(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,js(t,a)));break;case 30:break;case 21:break;default:Be(e,t),ze(t)}}function ze(t){var e=t.flags;if(e&2){try{for(var n,a=t.return;a!==null;){if(dd(a)){n=a;break}a=a.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var u=n.stateNode,d=bu(t);Gs(t,d,u);break;case 5:var A=n.stateNode;n.flags&32&&(Ii(A,""),n.flags&=-33);var w=bu(t);Gs(t,w,A);break;case 3:case 4:var N=n.stateNode.containerInfo,q=bu(t);Au(t,q,N);break;default:throw Error(r(161))}}catch(J){Vt(t,t.return,J)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function bd(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;bd(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function _n(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)gd(t,e.alternate,e),e=e.sibling}function Ni(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:ai(4,e,e.return),Ni(e);break;case 1:xn(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&fd(e,e.return,n),Ni(e);break;case 27:El(e.stateNode);case 26:case 5:xn(e,e.return),Ni(e);break;case 22:e.memoizedState===null&&Ni(e);break;case 30:Ni(e);break;default:Ni(e)}t=t.sibling}}function Gn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,u=t,d=e,A=d.flags;switch(d.tag){case 0:case 11:case 15:Gn(u,d,n),pl(4,d);break;case 1:if(Gn(u,d,n),a=d,u=a.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(q){Vt(a,a.return,q)}if(a=d,u=a.updateQueue,u!==null){var w=a.stateNode;try{var N=u.shared.hiddenCallbacks;if(N!==null)for(u.shared.hiddenCallbacks=null,u=0;u<N.length;u++)$0(N[u],w)}catch(q){Vt(a,a.return,q)}}n&&A&64&&cd(d),gl(d,d.return);break;case 27:md(d);case 26:case 5:Gn(u,d,n),n&&a===null&&A&4&&hd(d),gl(d,d.return);break;case 12:Gn(u,d,n);break;case 31:Gn(u,d,n),n&&A&4&&xd(u,d);break;case 13:Gn(u,d,n),n&&A&4&&Sd(u,d);break;case 22:d.memoizedState===null&&Gn(u,d,n),gl(d,d.return);break;case 30:break;default:Gn(u,d,n)}e=e.sibling}}function Eu(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&nl(n))}function Cu(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&nl(t))}function cn(t,e,n,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ad(t,e,n,a),e=e.sibling}function Ad(t,e,n,a){var u=e.flags;switch(e.tag){case 0:case 11:case 15:cn(t,e,n,a),u&2048&&pl(9,e);break;case 1:cn(t,e,n,a);break;case 3:cn(t,e,n,a),u&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&nl(t)));break;case 12:if(u&2048){cn(t,e,n,a),t=e.stateNode;try{var d=e.memoizedProps,A=d.id,w=d.onPostCommit;typeof w=="function"&&w(A,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(N){Vt(e,e.return,N)}}else cn(t,e,n,a);break;case 31:cn(t,e,n,a);break;case 13:cn(t,e,n,a);break;case 23:break;case 22:d=e.stateNode,A=e.alternate,e.memoizedState!==null?d._visibility&2?cn(t,e,n,a):vl(t,e):d._visibility&2?cn(t,e,n,a):(d._visibility|=2,ya(t,e,n,a,(e.subtreeFlags&10256)!==0||!1)),u&2048&&Eu(A,e);break;case 24:cn(t,e,n,a),u&2048&&Cu(e.alternate,e);break;default:cn(t,e,n,a)}}function ya(t,e,n,a,u){for(u=u&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var d=t,A=e,w=n,N=a,q=A.flags;switch(A.tag){case 0:case 11:case 15:ya(d,A,w,N,u),pl(8,A);break;case 23:break;case 22:var J=A.stateNode;A.memoizedState!==null?J._visibility&2?ya(d,A,w,N,u):vl(d,A):(J._visibility|=2,ya(d,A,w,N,u)),u&&q&2048&&Eu(A.alternate,A);break;case 24:ya(d,A,w,N,u),u&&q&2048&&Cu(A.alternate,A);break;default:ya(d,A,w,N,u)}e=e.sibling}}function vl(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,a=e,u=a.flags;switch(a.tag){case 22:vl(n,a),u&2048&&Eu(a.alternate,a);break;case 24:vl(n,a),u&2048&&Cu(a.alternate,a);break;default:vl(n,a)}e=e.sibling}}var yl=8192;function xa(t,e,n){if(t.subtreeFlags&yl)for(t=t.child;t!==null;)Md(t,e,n),t=t.sibling}function Md(t,e,n){switch(t.tag){case 26:xa(t,e,n),t.flags&yl&&t.memoizedState!==null&&iy(n,un,t.memoizedState,t.memoizedProps);break;case 5:xa(t,e,n);break;case 3:case 4:var a=un;un=to(t.stateNode.containerInfo),xa(t,e,n),un=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=yl,yl=16777216,xa(t,e,n),yl=a):xa(t,e,n));break;default:xa(t,e,n)}}function Ed(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function xl(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var a=e[n];re=a,Dd(a,t)}Ed(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Cd(t),t=t.sibling}function Cd(t){switch(t.tag){case 0:case 11:case 15:xl(t),t.flags&2048&&ai(9,t,t.return);break;case 3:xl(t);break;case 12:xl(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Ys(t)):xl(t);break;default:xl(t)}}function Ys(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var a=e[n];re=a,Dd(a,t)}Ed(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:ai(8,e,e.return),Ys(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Ys(e));break;default:Ys(e)}t=t.sibling}}function Dd(t,e){for(;re!==null;){var n=re;switch(n.tag){case 0:case 11:case 15:ai(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:nl(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,re=a;else t:for(n=t;re!==null;){a=re;var u=a.sibling,d=a.return;if(vd(a),a===n){re=null;break t}if(u!==null){u.return=d,re=u;break t}re=d}}}var yv={getCacheForType:function(t){var e=he($t),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return he($t).controller.signal}},xv=typeof WeakMap=="function"?WeakMap:Map,Bt=0,_t=null,St=null,At=0,Ot=0,Ye=null,li=!1,Sa=!1,Du=!1,jn=0,Ft=0,si=0,Hi=0,wu=0,Pe=0,Ta=0,Sl=null,Oe=null,Ru=!1,Ps=0,wd=0,Xs=1/0,qs=null,oi=null,ae=0,ri=null,ba=null,Yn=0,Bu=0,zu=null,Rd=null,Tl=0,Ou=null;function Xe(){return(Bt&2)!==0&&At!==0?At&-At:j.T!==null?_u():Ff()}function Bd(){if(Pe===0)if((At&536870912)===0||Ct){var t=Il;Il<<=1,(Il&3932160)===0&&(Il=262144),Pe=t}else Pe=536870912;return t=Ge.current,t!==null&&(t.flags|=32),Pe}function Ve(t,e,n){(t===_t&&(Ot===2||Ot===9)||t.cancelPendingCommit!==null)&&(Aa(t,0),ui(t,At,Pe,!1)),Pa(t,n),((Bt&2)===0||t!==_t)&&(t===_t&&((Bt&2)===0&&(Hi|=n),Ft===4&&ui(t,At,Pe,!1)),Sn(t))}function zd(t,e,n){if((Bt&6)!==0)throw Error(r(327));var a=!n&&(e&127)===0&&(e&t.expiredLanes)===0||Ya(t,e),u=a?bv(t,e):Uu(t,e,!0),d=a;do{if(u===0){Sa&&!a&&ui(t,e,0,!1);break}else{if(n=t.current.alternate,d&&!Sv(n)){u=Uu(t,e,!1),d=!1;continue}if(u===2){if(d=e,t.errorRecoveryDisabledLanes&d)var A=0;else A=t.pendingLanes&-536870913,A=A!==0?A:A&536870912?536870912:0;if(A!==0){e=A;t:{var w=t;u=Sl;var N=w.current.memoizedState.isDehydrated;if(N&&(Aa(w,A).flags|=256),A=Uu(w,A,!1),A!==2){if(Du&&!N){w.errorRecoveryDisabledLanes|=d,Hi|=d,u=4;break t}d=Oe,Oe=u,d!==null&&(Oe===null?Oe=d:Oe.push.apply(Oe,d))}u=A}if(d=!1,u!==2)continue}}if(u===1){Aa(t,0),ui(t,e,0,!0);break}t:{switch(a=t,d=u,d){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:ui(a,e,Pe,!li);break t;case 2:Oe=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(u=Ps+300-zt(),10<u)){if(ui(a,e,Pe,!li),ts(a,0,!0)!==0)break t;Yn=e,a.timeoutHandle=r2(Od.bind(null,a,n,Oe,qs,Ru,e,Pe,Hi,Ta,li,d,"Throttled",-0,0),u);break t}Od(a,n,Oe,qs,Ru,e,Pe,Hi,Ta,li,d,null,-0,0)}}break}while(!0);Sn(t)}function Od(t,e,n,a,u,d,A,w,N,q,J,I,F,K){if(t.timeoutHandle=-1,I=e.subtreeFlags,I&8192||(I&16785408)===16785408){I={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Cn},Md(e,d,I);var ot=(d&62914560)===d?Ps-zt():(d&4194048)===d?wd-zt():0;if(ot=ay(I,ot),ot!==null){Yn=d,t.cancelPendingCommit=ot(jd.bind(null,t,e,d,n,a,u,A,w,N,J,I,null,F,K)),ui(t,d,A,!q);return}}jd(t,e,d,n,a,u,A,w,N)}function Sv(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var u=n[a],d=u.getSnapshot;u=u.value;try{if(!He(d(),u))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function ui(t,e,n,a){e&=~wu,e&=~Hi,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var u=e;0<u;){var d=31-Ne(u),A=1<<d;a[d]=-1,u&=~A}n!==0&&Pf(t,n,e)}function Fs(){return(Bt&6)===0?(bl(0),!1):!0}function Vu(){if(St!==null){if(Ot===0)var t=St.return;else t=St,Bn=wi=null,kr(t),da=null,al=0,t=St;for(;t!==null;)ud(t.alternate,t),t=t.return;St=null}}function Aa(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,jv(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),Yn=0,Vu(),_t=t,St=n=wn(t.current,null),At=e,Ot=0,Ye=null,li=!1,Sa=Ya(t,e),Du=!1,Ta=Pe=wu=Hi=si=Ft=0,Oe=Sl=null,Ru=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var u=31-Ne(a),d=1<<u;e|=t[u],a&=~d}return jn=e,hs(),n}function Vd(t,e){yt=null,j.H=hl,e===ha||e===Ss?(e=k0(),Ot=3):e===Hr?(e=k0(),Ot=4):Ot=e===fu?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ye=e,St===null&&(Ft=1,Us(t,Ie(e,t.current)))}function Ud(){var t=Ge.current;return t===null?!0:(At&4194048)===At?nn===null:(At&62914560)===At||(At&536870912)!==0?t===nn:!1}function Ld(){var t=j.H;return j.H=hl,t===null?hl:t}function Nd(){var t=j.A;return j.A=yv,t}function Qs(){Ft=4,li||(At&4194048)!==At&&Ge.current!==null||(Sa=!0),(si&134217727)===0&&(Hi&134217727)===0||_t===null||ui(_t,At,Pe,!1)}function Uu(t,e,n){var a=Bt;Bt|=2;var u=Ld(),d=Nd();(_t!==t||At!==e)&&(qs=null,Aa(t,e)),e=!1;var A=Ft;t:do try{if(Ot!==0&&St!==null){var w=St,N=Ye;switch(Ot){case 8:Vu(),A=6;break t;case 3:case 2:case 9:case 6:Ge.current===null&&(e=!0);var q=Ot;if(Ot=0,Ye=null,Ma(t,w,N,q),n&&Sa){A=0;break t}break;default:q=Ot,Ot=0,Ye=null,Ma(t,w,N,q)}}Tv(),A=Ft;break}catch(J){Vd(t,J)}while(!0);return e&&t.shellSuspendCounter++,Bn=wi=null,Bt=a,j.H=u,j.A=d,St===null&&(_t=null,At=0,hs()),A}function Tv(){for(;St!==null;)Hd(St)}function bv(t,e){var n=Bt;Bt|=2;var a=Ld(),u=Nd();_t!==t||At!==e?(qs=null,Xs=zt()+500,Aa(t,e)):Sa=Ya(t,e);t:do try{if(Ot!==0&&St!==null){e=St;var d=Ye;e:switch(Ot){case 1:Ot=0,Ye=null,Ma(t,e,d,1);break;case 2:case 9:if(Z0(d)){Ot=0,Ye=null,_d(e);break}e=function(){Ot!==2&&Ot!==9||_t!==t||(Ot=7),Sn(t)},d.then(e,e);break t;case 3:Ot=7;break t;case 4:Ot=5;break t;case 7:Z0(d)?(Ot=0,Ye=null,_d(e)):(Ot=0,Ye=null,Ma(t,e,d,7));break;case 5:var A=null;switch(St.tag){case 26:A=St.memoizedState;case 5:case 27:var w=St;if(A?A2(A):w.stateNode.complete){Ot=0,Ye=null;var N=w.sibling;if(N!==null)St=N;else{var q=w.return;q!==null?(St=q,Zs(q)):St=null}break e}}Ot=0,Ye=null,Ma(t,e,d,5);break;case 6:Ot=0,Ye=null,Ma(t,e,d,6);break;case 8:Vu(),Ft=6;break t;default:throw Error(r(462))}}Av();break}catch(J){Vd(t,J)}while(!0);return Bn=wi=null,j.H=a,j.A=u,Bt=n,St!==null?0:(_t=null,At=0,hs(),Ft)}function Av(){for(;St!==null&&!Rt();)Hd(St)}function Hd(t){var e=od(t.alternate,t,jn);t.memoizedProps=t.pendingProps,e===null?Zs(t):St=e}function _d(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=ed(n,e,e.pendingProps,e.type,void 0,At);break;case 11:e=ed(n,e,e.pendingProps,e.type.render,e.ref,At);break;case 5:kr(e);default:ud(n,e),e=St=N0(e,jn),e=od(n,e,jn)}t.memoizedProps=t.pendingProps,e===null?Zs(t):St=e}function Ma(t,e,n,a){Bn=wi=null,kr(e),da=null,al=0;var u=e.return;try{if(fv(t,u,e,n,At)){Ft=1,Us(t,Ie(n,t.current)),St=null;return}}catch(d){if(u!==null)throw St=u,d;Ft=1,Us(t,Ie(n,t.current)),St=null;return}e.flags&32768?(Ct||a===1?t=!0:Sa||(At&536870912)!==0?t=!1:(li=t=!0,(a===2||a===9||a===3||a===6)&&(a=Ge.current,a!==null&&a.tag===13&&(a.flags|=16384))),Gd(e,t)):Zs(e)}function Zs(t){var e=t;do{if((e.flags&32768)!==0){Gd(e,li);return}t=e.return;var n=mv(e.alternate,e,jn);if(n!==null){St=n;return}if(e=e.sibling,e!==null){St=e;return}St=e=t}while(e!==null);Ft===0&&(Ft=5)}function Gd(t,e){do{var n=pv(t.alternate,t);if(n!==null){n.flags&=32767,St=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){St=t;return}St=t=n}while(t!==null);Ft=6,St=null}function jd(t,e,n,a,u,d,A,w,N){t.cancelPendingCommit=null;do Ks();while(ae!==0);if((Bt&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(d=e.lanes|e.childLanes,d|=br,ng(t,n,d,A,w,N),t===_t&&(St=_t=null,At=0),ba=e,ri=t,Yn=n,Bu=d,zu=u,Rd=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Dv(Ce,function(){return Fd(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=j.T,j.T=null,u=Z.p,Z.p=2,A=Bt,Bt|=4;try{gv(t,e,n)}finally{Bt=A,Z.p=u,j.T=a}}ae=1,Yd(),Pd(),Xd()}}function Yd(){if(ae===1){ae=0;var t=ri,e=ba,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=j.T,j.T=null;var a=Z.p;Z.p=2;var u=Bt;Bt|=4;try{Td(e,t);var d=Qu,A=D0(t.containerInfo),w=d.focusedElem,N=d.selectionRange;if(A!==w&&w&&w.ownerDocument&&C0(w.ownerDocument.documentElement,w)){if(N!==null&&vr(w)){var q=N.start,J=N.end;if(J===void 0&&(J=q),"selectionStart"in w)w.selectionStart=q,w.selectionEnd=Math.min(J,w.value.length);else{var I=w.ownerDocument||document,F=I&&I.defaultView||window;if(F.getSelection){var K=F.getSelection(),ot=w.textContent.length,dt=Math.min(N.start,ot),Nt=N.end===void 0?dt:Math.min(N.end,ot);!K.extend&&dt>Nt&&(A=Nt,Nt=dt,dt=A);var P=E0(w,dt),G=E0(w,Nt);if(P&&G&&(K.rangeCount!==1||K.anchorNode!==P.node||K.anchorOffset!==P.offset||K.focusNode!==G.node||K.focusOffset!==G.offset)){var X=I.createRange();X.setStart(P.node,P.offset),K.removeAllRanges(),dt>Nt?(K.addRange(X),K.extend(G.node,G.offset)):(X.setEnd(G.node,G.offset),K.addRange(X))}}}}for(I=[],K=w;K=K.parentNode;)K.nodeType===1&&I.push({element:K,left:K.scrollLeft,top:K.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<I.length;w++){var W=I[w];W.element.scrollLeft=W.left,W.element.scrollTop=W.top}}so=!!Fu,Qu=Fu=null}finally{Bt=u,Z.p=a,j.T=n}}t.current=e,ae=2}}function Pd(){if(ae===2){ae=0;var t=ri,e=ba,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=j.T,j.T=null;var a=Z.p;Z.p=2;var u=Bt;Bt|=4;try{gd(t,e.alternate,e)}finally{Bt=u,Z.p=a,j.T=n}}ae=3}}function Xd(){if(ae===4||ae===3){ae=0,vt();var t=ri,e=ba,n=Yn,a=Rd;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?ae=5:(ae=0,ba=ri=null,qd(t,t.pendingLanes));var u=t.pendingLanes;if(u===0&&(oi=null),Io(n),e=e.stateNode,Le&&typeof Le.onCommitFiberRoot=="function")try{Le.onCommitFiberRoot(ja,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=j.T,u=Z.p,Z.p=2,j.T=null;try{for(var d=t.onRecoverableError,A=0;A<a.length;A++){var w=a[A];d(w.value,{componentStack:w.stack})}}finally{j.T=e,Z.p=u}}(Yn&3)!==0&&Ks(),Sn(t),u=t.pendingLanes,(n&261930)!==0&&(u&42)!==0?t===Ou?Tl++:(Tl=0,Ou=t):Tl=0,bl(0)}}function qd(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,nl(e)))}function Ks(){return Yd(),Pd(),Xd(),Fd()}function Fd(){if(ae!==5)return!1;var t=ri,e=Bu;Bu=0;var n=Io(Yn),a=j.T,u=Z.p;try{Z.p=32>n?32:n,j.T=null,n=zu,zu=null;var d=ri,A=Yn;if(ae=0,ba=ri=null,Yn=0,(Bt&6)!==0)throw Error(r(331));var w=Bt;if(Bt|=4,Cd(d.current),Ad(d,d.current,A,n),Bt=w,bl(0,!1),Le&&typeof Le.onPostCommitFiberRoot=="function")try{Le.onPostCommitFiberRoot(ja,d)}catch{}return!0}finally{Z.p=u,j.T=a,qd(t,e)}}function Qd(t,e,n){e=Ie(n,e),e=cu(t.stateNode,e,2),t=ei(t,e,2),t!==null&&(Pa(t,2),Sn(t))}function Vt(t,e,n){if(t.tag===3)Qd(t,t,n);else for(;e!==null;){if(e.tag===3){Qd(e,t,n);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(oi===null||!oi.has(a))){t=Ie(n,t),n=Zh(2),a=ei(e,n,2),a!==null&&(Kh(n,a,e,t),Pa(a,2),Sn(a));break}}e=e.return}}function Lu(t,e,n){var a=t.pingCache;if(a===null){a=t.pingCache=new xv;var u=new Set;a.set(e,u)}else u=a.get(e),u===void 0&&(u=new Set,a.set(e,u));u.has(n)||(Du=!0,u.add(n),t=Mv.bind(null,t,e,n),e.then(t,t))}function Mv(t,e,n){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,_t===t&&(At&n)===n&&(Ft===4||Ft===3&&(At&62914560)===At&&300>zt()-Ps?(Bt&2)===0&&Aa(t,0):wu|=n,Ta===At&&(Ta=0)),Sn(t)}function Zd(t,e){e===0&&(e=Yf()),t=Ei(t,e),t!==null&&(Pa(t,e),Sn(t))}function Ev(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Zd(t,n)}function Cv(t,e){var n=0;switch(t.tag){case 31:case 13:var a=t.stateNode,u=t.memoizedState;u!==null&&(n=u.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(e),Zd(t,n)}function Dv(t,e){return bt(t,e)}var ks=null,Ea=null,Nu=!1,Js=!1,Hu=!1,ci=0;function Sn(t){t!==Ea&&t.next===null&&(Ea===null?ks=Ea=t:Ea=Ea.next=t),Js=!0,Nu||(Nu=!0,Rv())}function bl(t,e){if(!Hu&&Js){Hu=!0;do for(var n=!1,a=ks;a!==null;){if(t!==0){var u=a.pendingLanes;if(u===0)var d=0;else{var A=a.suspendedLanes,w=a.pingedLanes;d=(1<<31-Ne(42|t)+1)-1,d&=u&~(A&~w),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(n=!0,Wd(a,d))}else d=At,d=ts(a,a===_t?d:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(d&3)===0||Ya(a,d)||(n=!0,Wd(a,d));a=a.next}while(n);Hu=!1}}function wv(){Kd()}function Kd(){Js=Nu=!1;var t=0;ci!==0&&Gv()&&(t=ci);for(var e=zt(),n=null,a=ks;a!==null;){var u=a.next,d=kd(a,e);d===0?(a.next=null,n===null?ks=u:n.next=u,u===null&&(Ea=n)):(n=a,(t!==0||(d&3)!==0)&&(Js=!0)),a=u}ae!==0&&ae!==5||bl(t),ci!==0&&(ci=0)}function kd(t,e){for(var n=t.suspendedLanes,a=t.pingedLanes,u=t.expirationTimes,d=t.pendingLanes&-62914561;0<d;){var A=31-Ne(d),w=1<<A,N=u[A];N===-1?((w&n)===0||(w&a)!==0)&&(u[A]=eg(w,e)):N<=e&&(t.expiredLanes|=w),d&=~w}if(e=_t,n=At,n=ts(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,n===0||t===e&&(Ot===2||Ot===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&It(a),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||Ya(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(a!==null&&It(a),Io(n)){case 2:case 8:n=Se;break;case 32:n=Ce;break;case 268435456:n=gn;break;default:n=Ce}return a=Jd.bind(null,t),n=bt(n,a),t.callbackPriority=e,t.callbackNode=n,e}return a!==null&&a!==null&&It(a),t.callbackPriority=2,t.callbackNode=null,2}function Jd(t,e){if(ae!==0&&ae!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Ks()&&t.callbackNode!==n)return null;var a=At;return a=ts(t,t===_t?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(zd(t,a,e),kd(t,zt()),t.callbackNode!=null&&t.callbackNode===n?Jd.bind(null,t):null)}function Wd(t,e){if(Ks())return null;zd(t,e,!0)}function Rv(){Yv(function(){(Bt&6)!==0?bt(xe,wv):Kd()})}function _u(){if(ci===0){var t=ca;t===0&&(t=Wl,Wl<<=1,(Wl&261888)===0&&(Wl=256)),ci=t}return ci}function Id(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:as(""+t)}function $d(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function Bv(t,e,n,a,u){if(e==="submit"&&n&&n.stateNode===u){var d=Id((u[De]||null).action),A=a.submitter;A&&(e=(e=A[De]||null)?Id(e.formAction):A.getAttribute("formAction"),e!==null&&(d=e,A=null));var w=new rs("action","action",null,a,u);t.push({event:w,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(ci!==0){var N=A?$d(u,A):new FormData(u);au(n,{pending:!0,data:N,method:u.method,action:d},null,N)}}else typeof d=="function"&&(w.preventDefault(),N=A?$d(u,A):new FormData(u),au(n,{pending:!0,data:N,method:u.method,action:d},d,N))},currentTarget:u}]})}}for(var Gu=0;Gu<Tr.length;Gu++){var ju=Tr[Gu],zv=ju.toLowerCase(),Ov=ju[0].toUpperCase()+ju.slice(1);rn(zv,"on"+Ov)}rn(B0,"onAnimationEnd"),rn(z0,"onAnimationIteration"),rn(O0,"onAnimationStart"),rn("dblclick","onDoubleClick"),rn("focusin","onFocus"),rn("focusout","onBlur"),rn(Kg,"onTransitionRun"),rn(kg,"onTransitionStart"),rn(Jg,"onTransitionCancel"),rn(V0,"onTransitionEnd"),Ji("onMouseEnter",["mouseout","mouseover"]),Ji("onMouseLeave",["mouseout","mouseover"]),Ji("onPointerEnter",["pointerout","pointerover"]),Ji("onPointerLeave",["pointerout","pointerover"]),Ti("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ti("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ti("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ti("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ti("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ti("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Al="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Vv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Al));function t2(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var a=t[n],u=a.event;a=a.listeners;t:{var d=void 0;if(e)for(var A=a.length-1;0<=A;A--){var w=a[A],N=w.instance,q=w.currentTarget;if(w=w.listener,N!==d&&u.isPropagationStopped())break t;d=w,u.currentTarget=q;try{d(u)}catch(J){fs(J)}u.currentTarget=null,d=N}else for(A=0;A<a.length;A++){if(w=a[A],N=w.instance,q=w.currentTarget,w=w.listener,N!==d&&u.isPropagationStopped())break t;d=w,u.currentTarget=q;try{d(u)}catch(J){fs(J)}u.currentTarget=null,d=N}}}}function Tt(t,e){var n=e[$o];n===void 0&&(n=e[$o]=new Set);var a=t+"__bubble";n.has(a)||(e2(e,t,2,!1),n.add(a))}function Yu(t,e,n){var a=0;e&&(a|=4),e2(n,t,a,e)}var Ws="_reactListening"+Math.random().toString(36).slice(2);function Pu(t){if(!t[Ws]){t[Ws]=!0,Kf.forEach(function(n){n!=="selectionchange"&&(Vv.has(n)||Yu(n,!1,t),Yu(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Ws]||(e[Ws]=!0,Yu("selectionchange",!1,e))}}function e2(t,e,n,a){switch(B2(e)){case 2:var u=oy;break;case 8:u=ry;break;default:u=ic}n=u.bind(null,e,n,t),u=void 0,!rr||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(u=!0),a?u!==void 0?t.addEventListener(e,n,{capture:!0,passive:u}):t.addEventListener(e,n,!0):u!==void 0?t.addEventListener(e,n,{passive:u}):t.addEventListener(e,n,!1)}function Xu(t,e,n,a,u){var d=a;if((e&1)===0&&(e&2)===0&&a!==null)t:for(;;){if(a===null)return;var A=a.tag;if(A===3||A===4){var w=a.stateNode.containerInfo;if(w===u)break;if(A===4)for(A=a.return;A!==null;){var N=A.tag;if((N===3||N===4)&&A.stateNode.containerInfo===u)return;A=A.return}for(;w!==null;){if(A=Zi(w),A===null)return;if(N=A.tag,N===5||N===6||N===26||N===27){a=d=A;continue t}w=w.parentNode}}a=a.return}s0(function(){var q=d,J=sr(n),I=[];t:{var F=U0.get(t);if(F!==void 0){var K=rs,ot=t;switch(t){case"keypress":if(ss(n)===0)break t;case"keydown":case"keyup":K=Cg;break;case"focusin":ot="focus",K=hr;break;case"focusout":ot="blur",K=hr;break;case"beforeblur":case"afterblur":K=hr;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":K=u0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":K=mg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":K=Rg;break;case B0:case z0:case O0:K=vg;break;case V0:K=zg;break;case"scroll":case"scrollend":K=hg;break;case"wheel":K=Vg;break;case"copy":case"cut":case"paste":K=xg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":K=f0;break;case"toggle":case"beforetoggle":K=Lg}var dt=(e&4)!==0,Nt=!dt&&(t==="scroll"||t==="scrollend"),P=dt?F!==null?F+"Capture":null:F;dt=[];for(var G=q,X;G!==null;){var W=G;if(X=W.stateNode,W=W.tag,W!==5&&W!==26&&W!==27||X===null||P===null||(W=Fa(G,P),W!=null&&dt.push(Ml(G,W,X))),Nt)break;G=G.return}0<dt.length&&(F=new K(F,ot,null,n,J),I.push({event:F,listeners:dt}))}}if((e&7)===0){t:{if(F=t==="mouseover"||t==="pointerover",K=t==="mouseout"||t==="pointerout",F&&n!==lr&&(ot=n.relatedTarget||n.fromElement)&&(Zi(ot)||ot[Qi]))break t;if((K||F)&&(F=J.window===J?J:(F=J.ownerDocument)?F.defaultView||F.parentWindow:window,K?(ot=n.relatedTarget||n.toElement,K=q,ot=ot?Zi(ot):null,ot!==null&&(Nt=s(ot),dt=ot.tag,ot!==Nt||dt!==5&&dt!==27&&dt!==6)&&(ot=null)):(K=null,ot=q),K!==ot)){if(dt=u0,W="onMouseLeave",P="onMouseEnter",G="mouse",(t==="pointerout"||t==="pointerover")&&(dt=f0,W="onPointerLeave",P="onPointerEnter",G="pointer"),Nt=K==null?F:qa(K),X=ot==null?F:qa(ot),F=new dt(W,G+"leave",K,n,J),F.target=Nt,F.relatedTarget=X,W=null,Zi(J)===q&&(dt=new dt(P,G+"enter",ot,n,J),dt.target=X,dt.relatedTarget=Nt,W=dt),Nt=W,K&&ot)e:{for(dt=Uv,P=K,G=ot,X=0,W=P;W;W=dt(W))X++;W=0;for(var ht=G;ht;ht=dt(ht))W++;for(;0<X-W;)P=dt(P),X--;for(;0<W-X;)G=dt(G),W--;for(;X--;){if(P===G||G!==null&&P===G.alternate){dt=P;break e}P=dt(P),G=dt(G)}dt=null}else dt=null;K!==null&&n2(I,F,K,dt,!1),ot!==null&&Nt!==null&&n2(I,Nt,ot,dt,!0)}}t:{if(F=q?qa(q):window,K=F.nodeName&&F.nodeName.toLowerCase(),K==="select"||K==="input"&&F.type==="file")var Dt=x0;else if(v0(F))if(S0)Dt=Fg;else{Dt=Xg;var ut=Pg}else K=F.nodeName,!K||K.toLowerCase()!=="input"||F.type!=="checkbox"&&F.type!=="radio"?q&&ar(q.elementType)&&(Dt=x0):Dt=qg;if(Dt&&(Dt=Dt(t,q))){y0(I,Dt,n,J);break t}ut&&ut(t,F,q),t==="focusout"&&q&&F.type==="number"&&q.memoizedProps.value!=null&&ir(F,"number",F.value)}switch(ut=q?qa(q):window,t){case"focusin":(v0(ut)||ut.contentEditable==="true")&&(na=ut,yr=q,$a=null);break;case"focusout":$a=yr=na=null;break;case"mousedown":xr=!0;break;case"contextmenu":case"mouseup":case"dragend":xr=!1,w0(I,n,J);break;case"selectionchange":if(Zg)break;case"keydown":case"keyup":w0(I,n,J)}var xt;if(mr)t:{switch(t){case"compositionstart":var Mt="onCompositionStart";break t;case"compositionend":Mt="onCompositionEnd";break t;case"compositionupdate":Mt="onCompositionUpdate";break t}Mt=void 0}else ea?p0(t,n)&&(Mt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(Mt="onCompositionStart");Mt&&(h0&&n.locale!=="ko"&&(ea||Mt!=="onCompositionStart"?Mt==="onCompositionEnd"&&ea&&(xt=o0()):(Kn=J,ur="value"in Kn?Kn.value:Kn.textContent,ea=!0)),ut=Is(q,Mt),0<ut.length&&(Mt=new c0(Mt,t,null,n,J),I.push({event:Mt,listeners:ut}),xt?Mt.data=xt:(xt=g0(n),xt!==null&&(Mt.data=xt)))),(xt=Hg?_g(t,n):Gg(t,n))&&(Mt=Is(q,"onBeforeInput"),0<Mt.length&&(ut=new c0("onBeforeInput","beforeinput",null,n,J),I.push({event:ut,listeners:Mt}),ut.data=xt)),Bv(I,t,q,n,J)}t2(I,e)})}function Ml(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Is(t,e){for(var n=e+"Capture",a=[];t!==null;){var u=t,d=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||d===null||(u=Fa(t,n),u!=null&&a.unshift(Ml(t,u,d)),u=Fa(t,e),u!=null&&a.push(Ml(t,u,d))),t.tag===3)return a;t=t.return}return[]}function Uv(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function n2(t,e,n,a,u){for(var d=e._reactName,A=[];n!==null&&n!==a;){var w=n,N=w.alternate,q=w.stateNode;if(w=w.tag,N!==null&&N===a)break;w!==5&&w!==26&&w!==27||q===null||(N=q,u?(q=Fa(n,d),q!=null&&A.unshift(Ml(n,q,N))):u||(q=Fa(n,d),q!=null&&A.push(Ml(n,q,N)))),n=n.return}A.length!==0&&t.push({event:e,listeners:A})}var Lv=/\r\n?/g,Nv=/\u0000|\uFFFD/g;function i2(t){return(typeof t=="string"?t:""+t).replace(Lv,`
`).replace(Nv,"")}function a2(t,e){return e=i2(e),i2(t)===e}function Lt(t,e,n,a,u,d){switch(n){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||Ii(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&Ii(t,""+a);break;case"className":ns(t,"class",a);break;case"tabIndex":ns(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":ns(t,n,a);break;case"style":a0(t,a,d);break;case"data":if(e!=="object"){ns(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=as(""+a),t.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof d=="function"&&(n==="formAction"?(e!=="input"&&Lt(t,e,"name",u.name,u,null),Lt(t,e,"formEncType",u.formEncType,u,null),Lt(t,e,"formMethod",u.formMethod,u,null),Lt(t,e,"formTarget",u.formTarget,u,null)):(Lt(t,e,"encType",u.encType,u,null),Lt(t,e,"method",u.method,u,null),Lt(t,e,"target",u.target,u,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=as(""+a),t.setAttribute(n,a);break;case"onClick":a!=null&&(t.onclick=Cn);break;case"onScroll":a!=null&&Tt("scroll",t);break;case"onScrollEnd":a!=null&&Tt("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(n=a.__html,n!=null){if(u.children!=null)throw Error(r(60));t.innerHTML=n}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}n=as(""+a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,""+a):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":a===!0?t.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,a):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(n,a):t.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(n):t.setAttribute(n,a);break;case"popover":Tt("beforetoggle",t),Tt("toggle",t),es(t,"popover",a);break;case"xlinkActuate":En(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":En(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":En(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":En(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":En(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":En(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":En(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":En(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":En(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":es(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=cg.get(n)||n,es(t,n,a))}}function qu(t,e,n,a,u,d){switch(n){case"style":a0(t,a,d);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(n=a.__html,n!=null){if(u.children!=null)throw Error(r(60));t.innerHTML=n}}break;case"children":typeof a=="string"?Ii(t,a):(typeof a=="number"||typeof a=="bigint")&&Ii(t,""+a);break;case"onScroll":a!=null&&Tt("scroll",t);break;case"onScrollEnd":a!=null&&Tt("scrollend",t);break;case"onClick":a!=null&&(t.onclick=Cn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!kf.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(u=n.endsWith("Capture"),e=n.slice(2,u?n.length-7:void 0),d=t[De]||null,d=d!=null?d[n]:null,typeof d=="function"&&t.removeEventListener(e,d,u),typeof a=="function")){typeof d!="function"&&d!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,a,u);break t}n in t?t[n]=a:a===!0?t.setAttribute(n,""):es(t,n,a)}}}function me(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Tt("error",t),Tt("load",t);var a=!1,u=!1,d;for(d in n)if(n.hasOwnProperty(d)){var A=n[d];if(A!=null)switch(d){case"src":a=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Lt(t,e,d,A,n,null)}}u&&Lt(t,e,"srcSet",n.srcSet,n,null),a&&Lt(t,e,"src",n.src,n,null);return;case"input":Tt("invalid",t);var w=d=A=u=null,N=null,q=null;for(a in n)if(n.hasOwnProperty(a)){var J=n[a];if(J!=null)switch(a){case"name":u=J;break;case"type":A=J;break;case"checked":N=J;break;case"defaultChecked":q=J;break;case"value":d=J;break;case"defaultValue":w=J;break;case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(r(137,e));break;default:Lt(t,e,a,J,n,null)}}t0(t,d,w,N,q,A,u,!1);return;case"select":Tt("invalid",t),a=A=d=null;for(u in n)if(n.hasOwnProperty(u)&&(w=n[u],w!=null))switch(u){case"value":d=w;break;case"defaultValue":A=w;break;case"multiple":a=w;default:Lt(t,e,u,w,n,null)}e=d,n=A,t.multiple=!!a,e!=null?Wi(t,!!a,e,!1):n!=null&&Wi(t,!!a,n,!0);return;case"textarea":Tt("invalid",t),d=u=a=null;for(A in n)if(n.hasOwnProperty(A)&&(w=n[A],w!=null))switch(A){case"value":a=w;break;case"defaultValue":u=w;break;case"children":d=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(r(91));break;default:Lt(t,e,A,w,n,null)}n0(t,a,u,d);return;case"option":for(N in n)n.hasOwnProperty(N)&&(a=n[N],a!=null)&&(N==="selected"?t.selected=a&&typeof a!="function"&&typeof a!="symbol":Lt(t,e,N,a,n,null));return;case"dialog":Tt("beforetoggle",t),Tt("toggle",t),Tt("cancel",t),Tt("close",t);break;case"iframe":case"object":Tt("load",t);break;case"video":case"audio":for(a=0;a<Al.length;a++)Tt(Al[a],t);break;case"image":Tt("error",t),Tt("load",t);break;case"details":Tt("toggle",t);break;case"embed":case"source":case"link":Tt("error",t),Tt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(q in n)if(n.hasOwnProperty(q)&&(a=n[q],a!=null))switch(q){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Lt(t,e,q,a,n,null)}return;default:if(ar(e)){for(J in n)n.hasOwnProperty(J)&&(a=n[J],a!==void 0&&qu(t,e,J,a,n,void 0));return}}for(w in n)n.hasOwnProperty(w)&&(a=n[w],a!=null&&Lt(t,e,w,a,n,null))}function Hv(t,e,n,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,d=null,A=null,w=null,N=null,q=null,J=null;for(K in n){var I=n[K];if(n.hasOwnProperty(K)&&I!=null)switch(K){case"checked":break;case"value":break;case"defaultValue":N=I;default:a.hasOwnProperty(K)||Lt(t,e,K,null,a,I)}}for(var F in a){var K=a[F];if(I=n[F],a.hasOwnProperty(F)&&(K!=null||I!=null))switch(F){case"type":d=K;break;case"name":u=K;break;case"checked":q=K;break;case"defaultChecked":J=K;break;case"value":A=K;break;case"defaultValue":w=K;break;case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(r(137,e));break;default:K!==I&&Lt(t,e,F,K,a,I)}}nr(t,A,w,N,q,J,d,u);return;case"select":K=A=w=F=null;for(d in n)if(N=n[d],n.hasOwnProperty(d)&&N!=null)switch(d){case"value":break;case"multiple":K=N;default:a.hasOwnProperty(d)||Lt(t,e,d,null,a,N)}for(u in a)if(d=a[u],N=n[u],a.hasOwnProperty(u)&&(d!=null||N!=null))switch(u){case"value":F=d;break;case"defaultValue":w=d;break;case"multiple":A=d;default:d!==N&&Lt(t,e,u,d,a,N)}e=w,n=A,a=K,F!=null?Wi(t,!!n,F,!1):!!a!=!!n&&(e!=null?Wi(t,!!n,e,!0):Wi(t,!!n,n?[]:"",!1));return;case"textarea":K=F=null;for(w in n)if(u=n[w],n.hasOwnProperty(w)&&u!=null&&!a.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:Lt(t,e,w,null,a,u)}for(A in a)if(u=a[A],d=n[A],a.hasOwnProperty(A)&&(u!=null||d!=null))switch(A){case"value":F=u;break;case"defaultValue":K=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(r(91));break;default:u!==d&&Lt(t,e,A,u,a,d)}e0(t,F,K);return;case"option":for(var ot in n)F=n[ot],n.hasOwnProperty(ot)&&F!=null&&!a.hasOwnProperty(ot)&&(ot==="selected"?t.selected=!1:Lt(t,e,ot,null,a,F));for(N in a)F=a[N],K=n[N],a.hasOwnProperty(N)&&F!==K&&(F!=null||K!=null)&&(N==="selected"?t.selected=F&&typeof F!="function"&&typeof F!="symbol":Lt(t,e,N,F,a,K));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var dt in n)F=n[dt],n.hasOwnProperty(dt)&&F!=null&&!a.hasOwnProperty(dt)&&Lt(t,e,dt,null,a,F);for(q in a)if(F=a[q],K=n[q],a.hasOwnProperty(q)&&F!==K&&(F!=null||K!=null))switch(q){case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(r(137,e));break;default:Lt(t,e,q,F,a,K)}return;default:if(ar(e)){for(var Nt in n)F=n[Nt],n.hasOwnProperty(Nt)&&F!==void 0&&!a.hasOwnProperty(Nt)&&qu(t,e,Nt,void 0,a,F);for(J in a)F=a[J],K=n[J],!a.hasOwnProperty(J)||F===K||F===void 0&&K===void 0||qu(t,e,J,F,a,K);return}}for(var P in n)F=n[P],n.hasOwnProperty(P)&&F!=null&&!a.hasOwnProperty(P)&&Lt(t,e,P,null,a,F);for(I in a)F=a[I],K=n[I],!a.hasOwnProperty(I)||F===K||F==null&&K==null||Lt(t,e,I,F,a,K)}function l2(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function _v(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var u=n[a],d=u.transferSize,A=u.initiatorType,w=u.duration;if(d&&w&&l2(A)){for(A=0,w=u.responseEnd,a+=1;a<n.length;a++){var N=n[a],q=N.startTime;if(q>w)break;var J=N.transferSize,I=N.initiatorType;J&&l2(I)&&(N=N.responseEnd,A+=J*(N<w?1:(w-q)/(N-q)))}if(--a,e+=8*(d+A)/(u.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Fu=null,Qu=null;function $s(t){return t.nodeType===9?t:t.ownerDocument}function s2(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function o2(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Zu(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Ku=null;function Gv(){var t=window.event;return t&&t.type==="popstate"?t===Ku?!1:(Ku=t,!0):(Ku=null,!1)}var r2=typeof setTimeout=="function"?setTimeout:void 0,jv=typeof clearTimeout=="function"?clearTimeout:void 0,u2=typeof Promise=="function"?Promise:void 0,Yv=typeof queueMicrotask=="function"?queueMicrotask:typeof u2<"u"?function(t){return u2.resolve(null).then(t).catch(Pv)}:r2;function Pv(t){setTimeout(function(){throw t})}function fi(t){return t==="head"}function c2(t,e){var n=e,a=0;do{var u=n.nextSibling;if(t.removeChild(n),u&&u.nodeType===8)if(n=u.data,n==="/$"||n==="/&"){if(a===0){t.removeChild(u),Ra(e);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")El(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,El(n);for(var d=n.firstChild;d;){var A=d.nextSibling,w=d.nodeName;d[Xa]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&d.rel.toLowerCase()==="stylesheet"||n.removeChild(d),d=A}}else n==="body"&&El(t.ownerDocument.body);n=u}while(n);Ra(e)}function f2(t,e){var n=t;t=0;do{var a=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=a}while(n)}function ku(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":ku(n),tr(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function Xv(t,e,n,a){for(;t.nodeType===1;){var u=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[Xa])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(d=t.getAttribute("rel"),d==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(d!==u.rel||t.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||t.getAttribute("title")!==(u.title==null?null:u.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(d=t.getAttribute("src"),(d!==(u.src==null?null:u.src)||t.getAttribute("type")!==(u.type==null?null:u.type)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&d&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var d=u.name==null?null:""+u.name;if(u.type==="hidden"&&t.getAttribute("name")===d)return t}else return t;if(t=an(t.nextSibling),t===null)break}return null}function qv(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=an(t.nextSibling),t===null))return null;return t}function h2(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=an(t.nextSibling),t===null))return null;return t}function Ju(t){return t.data==="$?"||t.data==="$~"}function Wu(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Fv(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var a=function(){e(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function an(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Iu=null;function d2(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return an(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function m2(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function p2(t,e,n){switch(e=$s(n),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function El(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);tr(t)}var ln=new Map,g2=new Set;function to(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Pn=Z.d;Z.d={f:Qv,r:Zv,D:Kv,C:kv,L:Jv,m:Wv,X:$v,S:Iv,M:ty};function Qv(){var t=Pn.f(),e=Fs();return t||e}function Zv(t){var e=Ki(t);e!==null&&e.tag===5&&e.type==="form"?Vh(e):Pn.r(t)}var Ca=typeof document>"u"?null:document;function v2(t,e,n){var a=Ca;if(a&&typeof e=="string"&&e){var u=Je(e);u='link[rel="'+t+'"][href="'+u+'"]',typeof n=="string"&&(u+='[crossorigin="'+n+'"]'),g2.has(u)||(g2.add(u),t={rel:t,crossOrigin:n,href:e},a.querySelector(u)===null&&(e=a.createElement("link"),me(e,"link",t),oe(e),a.head.appendChild(e)))}}function Kv(t){Pn.D(t),v2("dns-prefetch",t,null)}function kv(t,e){Pn.C(t,e),v2("preconnect",t,e)}function Jv(t,e,n){Pn.L(t,e,n);var a=Ca;if(a&&t&&e){var u='link[rel="preload"][as="'+Je(e)+'"]';e==="image"&&n&&n.imageSrcSet?(u+='[imagesrcset="'+Je(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(u+='[imagesizes="'+Je(n.imageSizes)+'"]')):u+='[href="'+Je(t)+'"]';var d=u;switch(e){case"style":d=Da(t);break;case"script":d=wa(t)}ln.has(d)||(t=x({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),ln.set(d,t),a.querySelector(u)!==null||e==="style"&&a.querySelector(Cl(d))||e==="script"&&a.querySelector(Dl(d))||(e=a.createElement("link"),me(e,"link",t),oe(e),a.head.appendChild(e)))}}function Wv(t,e){Pn.m(t,e);var n=Ca;if(n&&t){var a=e&&typeof e.as=="string"?e.as:"script",u='link[rel="modulepreload"][as="'+Je(a)+'"][href="'+Je(t)+'"]',d=u;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=wa(t)}if(!ln.has(d)&&(t=x({rel:"modulepreload",href:t},e),ln.set(d,t),n.querySelector(u)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Dl(d)))return}a=n.createElement("link"),me(a,"link",t),oe(a),n.head.appendChild(a)}}}function Iv(t,e,n){Pn.S(t,e,n);var a=Ca;if(a&&t){var u=ki(a).hoistableStyles,d=Da(t);e=e||"default";var A=u.get(d);if(!A){var w={loading:0,preload:null};if(A=a.querySelector(Cl(d)))w.loading=5;else{t=x({rel:"stylesheet",href:t,"data-precedence":e},n),(n=ln.get(d))&&$u(t,n);var N=A=a.createElement("link");oe(N),me(N,"link",t),N._p=new Promise(function(q,J){N.onload=q,N.onerror=J}),N.addEventListener("load",function(){w.loading|=1}),N.addEventListener("error",function(){w.loading|=2}),w.loading|=4,eo(A,e,a)}A={type:"stylesheet",instance:A,count:1,state:w},u.set(d,A)}}}function $v(t,e){Pn.X(t,e);var n=Ca;if(n&&t){var a=ki(n).hoistableScripts,u=wa(t),d=a.get(u);d||(d=n.querySelector(Dl(u)),d||(t=x({src:t,async:!0},e),(e=ln.get(u))&&tc(t,e),d=n.createElement("script"),oe(d),me(d,"link",t),n.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},a.set(u,d))}}function ty(t,e){Pn.M(t,e);var n=Ca;if(n&&t){var a=ki(n).hoistableScripts,u=wa(t),d=a.get(u);d||(d=n.querySelector(Dl(u)),d||(t=x({src:t,async:!0,type:"module"},e),(e=ln.get(u))&&tc(t,e),d=n.createElement("script"),oe(d),me(d,"link",t),n.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},a.set(u,d))}}function y2(t,e,n,a){var u=(u=at.current)?to(u):null;if(!u)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=Da(n.href),n=ki(u).hoistableStyles,a=n.get(e),a||(a={type:"style",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=Da(n.href);var d=ki(u).hoistableStyles,A=d.get(t);if(A||(u=u.ownerDocument||u,A={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(t,A),(d=u.querySelector(Cl(t)))&&!d._p&&(A.instance=d,A.state.loading=5),ln.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},ln.set(t,n),d||ey(u,t,n,A.state))),e&&a===null)throw Error(r(528,""));return A}if(e&&a!==null)throw Error(r(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=wa(n),n=ki(u).hoistableScripts,a=n.get(e),a||(a={type:"script",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function Da(t){return'href="'+Je(t)+'"'}function Cl(t){return'link[rel="stylesheet"]['+t+"]"}function x2(t){return x({},t,{"data-precedence":t.precedence,precedence:null})}function ey(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}),me(e,"link",n),oe(e),t.head.appendChild(e))}function wa(t){return'[src="'+Je(t)+'"]'}function Dl(t){return"script[async]"+t}function S2(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+Je(n.href)+'"]');if(a)return e.instance=a,oe(a),a;var u=x({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),oe(a),me(a,"style",u),eo(a,n.precedence,t),e.instance=a;case"stylesheet":u=Da(n.href);var d=t.querySelector(Cl(u));if(d)return e.state.loading|=4,e.instance=d,oe(d),d;a=x2(n),(u=ln.get(u))&&$u(a,u),d=(t.ownerDocument||t).createElement("link"),oe(d);var A=d;return A._p=new Promise(function(w,N){A.onload=w,A.onerror=N}),me(d,"link",a),e.state.loading|=4,eo(d,n.precedence,t),e.instance=d;case"script":return d=wa(n.src),(u=t.querySelector(Dl(d)))?(e.instance=u,oe(u),u):(a=n,(u=ln.get(d))&&(a=x({},n),tc(a,u)),t=t.ownerDocument||t,u=t.createElement("script"),oe(u),me(u,"link",a),t.head.appendChild(u),e.instance=u);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,eo(a,n.precedence,t));return e.instance}function eo(t,e,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=a.length?a[a.length-1]:null,d=u,A=0;A<a.length;A++){var w=a[A];if(w.dataset.precedence===e)d=w;else if(d!==u)break}d?d.parentNode.insertBefore(t,d.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function $u(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function tc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var no=null;function T2(t,e,n){if(no===null){var a=new Map,u=no=new Map;u.set(n,a)}else u=no,a=u.get(n),a||(a=new Map,u.set(n,a));if(a.has(t))return a;for(a.set(t,null),n=n.getElementsByTagName(t),u=0;u<n.length;u++){var d=n[u];if(!(d[Xa]||d[ce]||t==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var A=d.getAttribute(e)||"";A=t+A;var w=a.get(A);w?w.push(d):a.set(A,[d])}}return a}function b2(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function ny(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 A2(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function iy(t,e,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var u=Da(a.href),d=e.querySelector(Cl(u));if(d){e=d._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=io.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=d,oe(d);return}d=e.ownerDocument||e,a=x2(a),(u=ln.get(u))&&$u(a,u),d=d.createElement("link"),oe(d);var A=d;A._p=new Promise(function(w,N){A.onload=w,A.onerror=N}),me(d,"link",a),n.instance=d}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=io.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var ec=0;function ay(t,e){return t.stylesheets&&t.count===0&&lo(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var a=setTimeout(function(){if(t.stylesheets&&lo(t,t.stylesheets),t.unsuspend){var d=t.unsuspend;t.unsuspend=null,d()}},6e4+e);0<t.imgBytes&&ec===0&&(ec=62500*_v());var u=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&lo(t,t.stylesheets),t.unsuspend)){var d=t.unsuspend;t.unsuspend=null,d()}},(t.imgBytes>ec?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(u)}}:null}function io(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)lo(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var ao=null;function lo(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,ao=new Map,e.forEach(ly,t),ao=null,io.call(t))}function ly(t,e){if(!(e.state.loading&4)){var n=ao.get(t);if(n)var a=n.get(null);else{n=new Map,ao.set(t,n);for(var u=t.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<u.length;d++){var A=u[d];(A.nodeName==="LINK"||A.getAttribute("media")!=="not all")&&(n.set(A.dataset.precedence,A),a=A)}a&&n.set(null,a)}u=e.instance,A=u.getAttribute("data-precedence"),d=n.get(A)||a,d===a&&n.set(null,u),n.set(A,u),this.count++,a=io.bind(this),u.addEventListener("load",a),u.addEventListener("error",a),d?d.parentNode.insertBefore(u,d.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(u,t.firstChild)),e.state.loading|=4}}var wl={$$typeof:z,Provider:null,Consumer:null,_currentValue:$,_currentValue2:$,_threadCount:0};function sy(t,e,n,a,u,d,A,w,N){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Jo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Jo(0),this.hiddenUpdates=Jo(null),this.identifierPrefix=a,this.onUncaughtError=u,this.onCaughtError=d,this.onRecoverableError=A,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=N,this.incompleteTransitions=new Map}function M2(t,e,n,a,u,d,A,w,N,q,J,I){return t=new sy(t,e,n,A,N,q,J,I,w),e=1,d===!0&&(e|=24),d=_e(3,null,null,e),t.current=d,d.stateNode=t,e=Ur(),e.refCount++,t.pooledCache=e,e.refCount++,d.memoizedState={element:a,isDehydrated:n,cache:e},_r(d),t}function E2(t){return t?(t=la,t):la}function C2(t,e,n,a,u,d){u=E2(u),a.context===null?a.context=u:a.pendingContext=u,a=ti(e),a.payload={element:n},d=d===void 0?null:d,d!==null&&(a.callback=d),n=ei(t,a,e),n!==null&&(Ve(n,t,e),sl(n,t,e))}function D2(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function nc(t,e){D2(t,e),(t=t.alternate)&&D2(t,e)}function w2(t){if(t.tag===13||t.tag===31){var e=Ei(t,67108864);e!==null&&Ve(e,t,67108864),nc(t,67108864)}}function R2(t){if(t.tag===13||t.tag===31){var e=Xe();e=Wo(e);var n=Ei(t,e);n!==null&&Ve(n,t,e),nc(t,e)}}var so=!0;function oy(t,e,n,a){var u=j.T;j.T=null;var d=Z.p;try{Z.p=2,ic(t,e,n,a)}finally{Z.p=d,j.T=u}}function ry(t,e,n,a){var u=j.T;j.T=null;var d=Z.p;try{Z.p=8,ic(t,e,n,a)}finally{Z.p=d,j.T=u}}function ic(t,e,n,a){if(so){var u=ac(a);if(u===null)Xu(t,e,a,oo,n),z2(t,a);else if(cy(u,t,e,n,a))a.stopPropagation();else if(z2(t,a),e&4&&-1<uy.indexOf(t)){for(;u!==null;){var d=Ki(u);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var A=Si(d.pendingLanes);if(A!==0){var w=d;for(w.pendingLanes|=2,w.entangledLanes|=2;A;){var N=1<<31-Ne(A);w.entanglements[1]|=N,A&=~N}Sn(d),(Bt&6)===0&&(Xs=zt()+500,bl(0))}}break;case 31:case 13:w=Ei(d,2),w!==null&&Ve(w,d,2),Fs(),nc(d,2)}if(d=ac(a),d===null&&Xu(t,e,a,oo,n),d===u)break;u=d}u!==null&&a.stopPropagation()}else Xu(t,e,a,null,n)}}function ac(t){return t=sr(t),lc(t)}var oo=null;function lc(t){if(oo=null,t=Zi(t),t!==null){var e=s(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=f(e),t!==null)return t;t=null}else if(n===31){if(t=h(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return oo=t,null}function B2(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ye()){case xe:return 2;case Se:return 8;case Ce:case on:return 32;case gn:return 268435456;default:return 32}default:return 32}}var sc=!1,hi=null,di=null,mi=null,Rl=new Map,Bl=new Map,pi=[],uy="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function z2(t,e){switch(t){case"focusin":case"focusout":hi=null;break;case"dragenter":case"dragleave":di=null;break;case"mouseover":case"mouseout":mi=null;break;case"pointerover":case"pointerout":Rl.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bl.delete(e.pointerId)}}function zl(t,e,n,a,u,d){return t===null||t.nativeEvent!==d?(t={blockedOn:e,domEventName:n,eventSystemFlags:a,nativeEvent:d,targetContainers:[u]},e!==null&&(e=Ki(e),e!==null&&w2(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,u!==null&&e.indexOf(u)===-1&&e.push(u),t)}function cy(t,e,n,a,u){switch(e){case"focusin":return hi=zl(hi,t,e,n,a,u),!0;case"dragenter":return di=zl(di,t,e,n,a,u),!0;case"mouseover":return mi=zl(mi,t,e,n,a,u),!0;case"pointerover":var d=u.pointerId;return Rl.set(d,zl(Rl.get(d)||null,t,e,n,a,u)),!0;case"gotpointercapture":return d=u.pointerId,Bl.set(d,zl(Bl.get(d)||null,t,e,n,a,u)),!0}return!1}function O2(t){var e=Zi(t.target);if(e!==null){var n=s(e);if(n!==null){if(e=n.tag,e===13){if(e=f(n),e!==null){t.blockedOn=e,Qf(t.priority,function(){R2(n)});return}}else if(e===31){if(e=h(n),e!==null){t.blockedOn=e,Qf(t.priority,function(){R2(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function ro(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=ac(t.nativeEvent);if(n===null){n=t.nativeEvent;var a=new n.constructor(n.type,n);lr=a,n.target.dispatchEvent(a),lr=null}else return e=Ki(n),e!==null&&w2(e),t.blockedOn=n,!1;e.shift()}return!0}function V2(t,e,n){ro(t)&&n.delete(e)}function fy(){sc=!1,hi!==null&&ro(hi)&&(hi=null),di!==null&&ro(di)&&(di=null),mi!==null&&ro(mi)&&(mi=null),Rl.forEach(V2),Bl.forEach(V2)}function uo(t,e){t.blockedOn===e&&(t.blockedOn=null,sc||(sc=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,fy)))}var co=null;function U2(t){co!==t&&(co=t,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){co===t&&(co=null);for(var e=0;e<t.length;e+=3){var n=t[e],a=t[e+1],u=t[e+2];if(typeof a!="function"){if(lc(a||n)===null)continue;break}var d=Ki(n);d!==null&&(t.splice(e,3),e-=3,au(d,{pending:!0,data:u,method:n.method,action:a},a,u))}}))}function Ra(t){function e(N){return uo(N,t)}hi!==null&&uo(hi,t),di!==null&&uo(di,t),mi!==null&&uo(mi,t),Rl.forEach(e),Bl.forEach(e);for(var n=0;n<pi.length;n++){var a=pi[n];a.blockedOn===t&&(a.blockedOn=null)}for(;0<pi.length&&(n=pi[0],n.blockedOn===null);)O2(n),n.blockedOn===null&&pi.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var u=n[a],d=n[a+1],A=u[De]||null;if(typeof d=="function")A||U2(n);else if(A){var w=null;if(d&&d.hasAttribute("formAction")){if(u=d,A=d[De]||null)w=A.formAction;else if(lc(u)!==null)continue}else w=A.action;typeof w=="function"?n[a+1]=w:(n.splice(a,3),a-=3),U2(n)}}}function L2(){function t(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(A){return u=A})},focusReset:"manual",scroll:"manual"})}function e(){u!==null&&(u(),u=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,u=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),u!==null&&(u(),u=null)}}}function oc(t){this._internalRoot=t}fo.prototype.render=oc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var n=e.current,a=Xe();C2(n,a,t,e,null,null)},fo.prototype.unmount=oc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;C2(t.current,2,null,t,null,null),Fs(),e[Qi]=null}};function fo(t){this._internalRoot=t}fo.prototype.unstable_scheduleHydration=function(t){if(t){var e=Ff();t={blockedOn:null,target:t,priority:e};for(var n=0;n<pi.length&&e!==0&&e<pi[n].priority;n++);pi.splice(n,0,t),n===0&&O2(t)}};var N2=l.version;if(N2!=="19.2.6")throw Error(r(527,N2,"19.2.6"));Z.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=v(e),t=t!==null?p(t):null,t=t===null?null:t.stateNode,t};var hy={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ho=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ho.isDisabled&&ho.supportsFiber)try{ja=ho.inject(hy),Le=ho}catch{}}return Vl.createRoot=function(t,e){if(!c(t))throw Error(r(299));var n=!1,a="",u=Xh,d=qh,A=Fh;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(u=e.onUncaughtError),e.onCaughtError!==void 0&&(d=e.onCaughtError),e.onRecoverableError!==void 0&&(A=e.onRecoverableError)),e=M2(t,1,!1,null,null,n,a,null,u,d,A,L2),t[Qi]=e.current,Pu(t),new oc(e)},Vl.hydrateRoot=function(t,e,n){if(!c(t))throw Error(r(299));var a=!1,u="",d=Xh,A=qh,w=Fh,N=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onUncaughtError!==void 0&&(d=n.onUncaughtError),n.onCaughtError!==void 0&&(A=n.onCaughtError),n.onRecoverableError!==void 0&&(w=n.onRecoverableError),n.formState!==void 0&&(N=n.formState)),e=M2(t,1,!0,e,n??null,a,u,N,d,A,w,L2),e.context=E2(null),n=e.current,a=Xe(),a=Wo(a),u=ti(a),u.callback=null,ei(n,u,a),n=a,e.current.lanes=n,Pa(e,n),Sn(e),t[Qi]=e.current,Pu(t),new fo(e)},Vl.version="19.2.6",Vl}var Z2;function Ay(){if(Z2)return cc.exports;Z2=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(l){console.error(l)}}return i(),cc.exports=by(),cc.exports}var My=Ay(),To={exports:{}};var Ey=To.exports,K2;function Cy(){return K2||(K2=1,(function(i,l){(function(r,c){i.exports=c()})(Ey,function(){return(function(o){var r={};function c(s){if(r[s])return r[s].exports;var f=r[s]={i:s,l:!1,exports:{}};return o[s].call(f.exports,f,f.exports,c),f.l=!0,f.exports}return c.m=o,c.c=r,c.d=function(s,f,h){c.o(s,f)||Object.defineProperty(s,f,{enumerable:!0,get:h})},c.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},c.t=function(s,f){if(f&1&&(s=c(s)),f&8||f&4&&typeof s=="object"&&s&&s.__esModule)return s;var h=Object.create(null);if(c.r(h),Object.defineProperty(h,"default",{enumerable:!0,value:s}),f&2&&typeof s!="string")for(var g in s)c.d(h,g,(function(v){return s[v]}).bind(null,g));return h},c.n=function(s){var f=s&&s.__esModule?function(){return s.default}:function(){return s};return c.d(f,"a",f),f},c.o=function(s,f){return Object.prototype.hasOwnProperty.call(s,f)},c.p="",c(c.s=20)})([(function(o,r){var c={};o.exports=c,(function(){c._baseDelta=1e3/60,c._nextId=0,c._seed=0,c._nowStartTime=+new Date,c._warnedOnce={},c._decomp=null,c.extend=function(f,h){var g,v;typeof h=="boolean"?(g=2,v=h):(g=1,v=!0);for(var p=g;p<arguments.length;p++){var x=arguments[p];if(x)for(var y in x)v&&x[y]&&x[y].constructor===Object&&(!f[y]||f[y].constructor===Object)?(f[y]=f[y]||{},c.extend(f[y],v,x[y])):f[y]=x[y]}return f},c.clone=function(f,h){return c.extend({},h,f)},c.keys=function(f){if(Object.keys)return Object.keys(f);var h=[];for(var g in f)h.push(g);return h},c.values=function(f){var h=[];if(Object.keys){for(var g=Object.keys(f),v=0;v<g.length;v++)h.push(f[g[v]]);return h}for(var p in f)h.push(f[p]);return h},c.get=function(f,h,g,v){h=h.split(".").slice(g,v);for(var p=0;p<h.length;p+=1)f=f[h[p]];return f},c.set=function(f,h,g,v,p){var x=h.split(".").slice(v,p);return c.get(f,h,0,-1)[x[x.length-1]]=g,g},c.shuffle=function(f){for(var h=f.length-1;h>0;h--){var g=Math.floor(c.random()*(h+1)),v=f[h];f[h]=f[g],f[g]=v}return f},c.choose=function(f){return f[Math.floor(c.random()*f.length)]},c.isElement=function(f){return typeof HTMLElement<"u"?f instanceof HTMLElement:!!(f&&f.nodeType&&f.nodeName)},c.isArray=function(f){return Object.prototype.toString.call(f)==="[object Array]"},c.isFunction=function(f){return typeof f=="function"},c.isPlainObject=function(f){return typeof f=="object"&&f.constructor===Object},c.isString=function(f){return toString.call(f)==="[object String]"},c.clamp=function(f,h,g){return f<h?h:f>g?g:f},c.sign=function(f){return f<0?-1:1},c.now=function(){if(typeof window<"u"&&window.performance){if(window.performance.now)return window.performance.now();if(window.performance.webkitNow)return window.performance.webkitNow()}return Date.now?Date.now():new Date-c._nowStartTime},c.random=function(f,h){return f=typeof f<"u"?f:0,h=typeof h<"u"?h:1,f+s()*(h-f)};var s=function(){return c._seed=(c._seed*9301+49297)%233280,c._seed/233280};c.colorToNumber=function(f){return f=f.replace("#",""),f.length==3&&(f=f.charAt(0)+f.charAt(0)+f.charAt(1)+f.charAt(1)+f.charAt(2)+f.charAt(2)),parseInt(f,16)},c.logLevel=1,c.log=function(){console&&c.logLevel>0&&c.logLevel<=3&&console.log.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},c.info=function(){console&&c.logLevel>0&&c.logLevel<=2&&console.info.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},c.warn=function(){console&&c.logLevel>0&&c.logLevel<=3&&console.warn.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},c.warnOnce=function(){var f=Array.prototype.slice.call(arguments).join(" ");c._warnedOnce[f]||(c.warn(f),c._warnedOnce[f]=!0)},c.deprecated=function(f,h,g){f[h]=c.chain(function(){c.warnOnce("🔅 deprecated 🔅",g)},f[h])},c.nextId=function(){return c._nextId++},c.indexOf=function(f,h){if(f.indexOf)return f.indexOf(h);for(var g=0;g<f.length;g++)if(f[g]===h)return g;return-1},c.map=function(f,h){if(f.map)return f.map(h);for(var g=[],v=0;v<f.length;v+=1)g.push(h(f[v]));return g},c.topologicalSort=function(f){var h=[],g=[],v=[];for(var p in f)!g[p]&&!v[p]&&c._topologicalSort(p,g,v,f,h);return h},c._topologicalSort=function(f,h,g,v,p){var x=v[f]||[];g[f]=!0;for(var y=0;y<x.length;y+=1){var m=x[y];g[m]||h[m]||c._topologicalSort(m,h,g,v,p)}g[f]=!1,h[f]=!0,p.push(f)},c.chain=function(){for(var f=[],h=0;h<arguments.length;h+=1){var g=arguments[h];g._chained?f.push.apply(f,g._chained):f.push(g)}var v=function(){for(var p,x=new Array(arguments.length),y=0,m=arguments.length;y<m;y++)x[y]=arguments[y];for(y=0;y<f.length;y+=1){var S=f[y].apply(p,x);typeof S<"u"&&(p=S)}return p};return v._chained=f,v},c.chainPathBefore=function(f,h,g){return c.set(f,h,c.chain(g,c.get(f,h)))},c.chainPathAfter=function(f,h,g){return c.set(f,h,c.chain(c.get(f,h),g))},c.setDecomp=function(f){c._decomp=f},c.getDecomp=function(){var f=c._decomp;try{!f&&typeof window<"u"&&(f=window.decomp),!f&&typeof H2<"u"&&(f=H2.decomp)}catch{f=null}return f}})()}),(function(o,r){var c={};o.exports=c,(function(){c.create=function(s){var f={min:{x:0,y:0},max:{x:0,y:0}};return s&&c.update(f,s),f},c.update=function(s,f,h){s.min.x=1/0,s.max.x=-1/0,s.min.y=1/0,s.max.y=-1/0;for(var g=0;g<f.length;g++){var v=f[g];v.x>s.max.x&&(s.max.x=v.x),v.x<s.min.x&&(s.min.x=v.x),v.y>s.max.y&&(s.max.y=v.y),v.y<s.min.y&&(s.min.y=v.y)}h&&(h.x>0?s.max.x+=h.x:s.min.x+=h.x,h.y>0?s.max.y+=h.y:s.min.y+=h.y)},c.contains=function(s,f){return f.x>=s.min.x&&f.x<=s.max.x&&f.y>=s.min.y&&f.y<=s.max.y},c.overlaps=function(s,f){return s.min.x<=f.max.x&&s.max.x>=f.min.x&&s.max.y>=f.min.y&&s.min.y<=f.max.y},c.translate=function(s,f){s.min.x+=f.x,s.max.x+=f.x,s.min.y+=f.y,s.max.y+=f.y},c.shift=function(s,f){var h=s.max.x-s.min.x,g=s.max.y-s.min.y;s.min.x=f.x,s.max.x=f.x+h,s.min.y=f.y,s.max.y=f.y+g}})()}),(function(o,r){var c={};o.exports=c,(function(){c.create=function(s,f){return{x:s||0,y:f||0}},c.clone=function(s){return{x:s.x,y:s.y}},c.magnitude=function(s){return Math.sqrt(s.x*s.x+s.y*s.y)},c.magnitudeSquared=function(s){return s.x*s.x+s.y*s.y},c.rotate=function(s,f,h){var g=Math.cos(f),v=Math.sin(f);h||(h={});var p=s.x*g-s.y*v;return h.y=s.x*v+s.y*g,h.x=p,h},c.rotateAbout=function(s,f,h,g){var v=Math.cos(f),p=Math.sin(f);g||(g={});var x=h.x+((s.x-h.x)*v-(s.y-h.y)*p);return g.y=h.y+((s.x-h.x)*p+(s.y-h.y)*v),g.x=x,g},c.normalise=function(s){var f=c.magnitude(s);return f===0?{x:0,y:0}:{x:s.x/f,y:s.y/f}},c.dot=function(s,f){return s.x*f.x+s.y*f.y},c.cross=function(s,f){return s.x*f.y-s.y*f.x},c.cross3=function(s,f,h){return(f.x-s.x)*(h.y-s.y)-(f.y-s.y)*(h.x-s.x)},c.add=function(s,f,h){return h||(h={}),h.x=s.x+f.x,h.y=s.y+f.y,h},c.sub=function(s,f,h){return h||(h={}),h.x=s.x-f.x,h.y=s.y-f.y,h},c.mult=function(s,f){return{x:s.x*f,y:s.y*f}},c.div=function(s,f){return{x:s.x/f,y:s.y/f}},c.perp=function(s,f){return f=f===!0?-1:1,{x:f*-s.y,y:f*s.x}},c.neg=function(s){return{x:-s.x,y:-s.y}},c.angle=function(s,f){return Math.atan2(f.y-s.y,f.x-s.x)},c._temp=[c.create(),c.create(),c.create(),c.create(),c.create(),c.create()]})()}),(function(o,r,c){var s={};o.exports=s;var f=c(2),h=c(0);(function(){s.create=function(g,v){for(var p=[],x=0;x<g.length;x++){var y=g[x],m={x:y.x,y:y.y,index:x,body:v,isInternal:!1};p.push(m)}return p},s.fromPath=function(g,v){var p=/L?\s*([-\d.e]+)[\s,]*([-\d.e]+)*/ig,x=[];return g.replace(p,function(y,m,S){x.push({x:parseFloat(m),y:parseFloat(S)})}),s.create(x,v)},s.centre=function(g){for(var v=s.area(g,!0),p={x:0,y:0},x,y,m,S=0;S<g.length;S++)m=(S+1)%g.length,x=f.cross(g[S],g[m]),y=f.mult(f.add(g[S],g[m]),x),p=f.add(p,y);return f.div(p,6*v)},s.mean=function(g){for(var v={x:0,y:0},p=0;p<g.length;p++)v.x+=g[p].x,v.y+=g[p].y;return f.div(v,g.length)},s.area=function(g,v){for(var p=0,x=g.length-1,y=0;y<g.length;y++)p+=(g[x].x-g[y].x)*(g[x].y+g[y].y),x=y;return v?p/2:Math.abs(p)/2},s.inertia=function(g,v){for(var p=0,x=0,y=g,m,S,T=0;T<y.length;T++)S=(T+1)%y.length,m=Math.abs(f.cross(y[S],y[T])),p+=m*(f.dot(y[S],y[S])+f.dot(y[S],y[T])+f.dot(y[T],y[T])),x+=m;return v/6*(p/x)},s.translate=function(g,v,p){p=typeof p<"u"?p:1;var x=g.length,y=v.x*p,m=v.y*p,S;for(S=0;S<x;S++)g[S].x+=y,g[S].y+=m;return g},s.rotate=function(g,v,p){if(v!==0){var x=Math.cos(v),y=Math.sin(v),m=p.x,S=p.y,T=g.length,b,C,R,z;for(z=0;z<T;z++)b=g[z],C=b.x-m,R=b.y-S,b.x=m+(C*x-R*y),b.y=S+(C*y+R*x);return g}},s.contains=function(g,v){for(var p=v.x,x=v.y,y=g.length,m=g[y-1],S,T=0;T<y;T++){if(S=g[T],(p-m.x)*(S.y-m.y)+(x-m.y)*(m.x-S.x)>0)return!1;m=S}return!0},s.scale=function(g,v,p,x){if(v===1&&p===1)return g;x=x||s.centre(g);for(var y,m,S=0;S<g.length;S++)y=g[S],m=f.sub(y,x),g[S].x=x.x+m.x*v,g[S].y=x.y+m.y*p;return g},s.chamfer=function(g,v,p,x,y){typeof v=="number"?v=[v]:v=v||[8],p=typeof p<"u"?p:-1,x=x||2,y=y||14;for(var m=[],S=0;S<g.length;S++){var T=g[S-1>=0?S-1:g.length-1],b=g[S],C=g[(S+1)%g.length],R=v[S<v.length?S:v.length-1];if(R===0){m.push(b);continue}var z=f.normalise({x:b.y-T.y,y:T.x-b.x}),U=f.normalise({x:C.y-b.y,y:b.x-C.x}),M=Math.sqrt(2*Math.pow(R,2)),B=f.mult(h.clone(z),R),D=f.normalise(f.mult(f.add(z,U),.5)),E=f.sub(b,f.mult(D,M)),V=p;p===-1&&(V=Math.pow(R,.32)*1.75),V=h.clamp(V,x,y),V%2===1&&(V+=1);for(var O=Math.acos(f.dot(z,U)),L=O/V,H=0;H<V;H++)m.push(f.add(f.rotate(B,L*H),E))}return m},s.clockwiseSort=function(g){var v=s.mean(g);return g.sort(function(p,x){return f.angle(v,p)-f.angle(v,x)}),g},s.isConvex=function(g){var v=0,p=g.length,x,y,m,S;if(p<3)return null;for(x=0;x<p;x++)if(y=(x+1)%p,m=(x+2)%p,S=(g[y].x-g[x].x)*(g[m].y-g[y].y),S-=(g[y].y-g[x].y)*(g[m].x-g[y].x),S<0?v|=1:S>0&&(v|=2),v===3)return!1;return v!==0?!0:null},s.hull=function(g){var v=[],p=[],x,y;for(g=g.slice(0),g.sort(function(m,S){var T=m.x-S.x;return T!==0?T:m.y-S.y}),y=0;y<g.length;y+=1){for(x=g[y];p.length>=2&&f.cross3(p[p.length-2],p[p.length-1],x)<=0;)p.pop();p.push(x)}for(y=g.length-1;y>=0;y-=1){for(x=g[y];v.length>=2&&f.cross3(v[v.length-2],v[v.length-1],x)<=0;)v.pop();v.push(x)}return v.pop(),p.pop(),v.concat(p)}})()}),(function(o,r,c){var s={};o.exports=s;var f=c(3),h=c(2),g=c(7),v=c(0),p=c(1),x=c(11);(function(){s._timeCorrection=!0,s._inertiaScale=4,s._nextCollidingGroupId=1,s._nextNonCollidingGroupId=-1,s._nextCategory=1,s._baseDelta=1e3/60,s.create=function(m){var S={id:v.nextId(),type:"body",label:"Body",parts:[],plugin:{},angle:0,vertices:f.fromPath("L 0 0 L 40 0 L 40 40 L 0 40"),position:{x:0,y:0},force:{x:0,y:0},torque:0,positionImpulse:{x:0,y:0},constraintImpulse:{x:0,y:0,angle:0},totalContacts:0,speed:0,angularSpeed:0,velocity:{x:0,y:0},angularVelocity:0,isSensor:!1,isStatic:!1,isSleeping:!1,motion:0,sleepThreshold:60,density:.001,restitution:0,friction:.1,frictionStatic:.5,frictionAir:.01,collisionFilter:{category:1,mask:4294967295,group:0},slop:.05,timeScale:1,render:{visible:!0,opacity:1,strokeStyle:null,fillStyle:null,lineWidth:null,sprite:{xScale:1,yScale:1,xOffset:0,yOffset:0}},events:null,bounds:null,chamfer:null,circleRadius:0,positionPrev:null,anglePrev:0,parent:null,axes:null,area:0,mass:0,inertia:0,deltaTime:16.666666666666668,_original:null},T=v.extend(S,m);return y(T,m),T},s.nextGroup=function(m){return m?s._nextNonCollidingGroupId--:s._nextCollidingGroupId++},s.nextCategory=function(){return s._nextCategory=s._nextCategory<<1,s._nextCategory};var y=function(m,S){S=S||{},s.set(m,{bounds:m.bounds||p.create(m.vertices),positionPrev:m.positionPrev||h.clone(m.position),anglePrev:m.anglePrev||m.angle,vertices:m.vertices,parts:m.parts||[m],isStatic:m.isStatic,isSleeping:m.isSleeping,parent:m.parent||m}),f.rotate(m.vertices,m.angle,m.position),x.rotate(m.axes,m.angle),p.update(m.bounds,m.vertices,m.velocity),s.set(m,{axes:S.axes||m.axes,area:S.area||m.area,mass:S.mass||m.mass,inertia:S.inertia||m.inertia});var T=m.isStatic?"#14151f":v.choose(["#f19648","#f5d259","#f55a3c","#063e7b","#ececd1"]),b=m.isStatic?"#555":"#ccc",C=m.isStatic&&m.render.fillStyle===null?1:0;m.render.fillStyle=m.render.fillStyle||T,m.render.strokeStyle=m.render.strokeStyle||b,m.render.lineWidth=m.render.lineWidth||C,m.render.sprite.xOffset+=-(m.bounds.min.x-m.position.x)/(m.bounds.max.x-m.bounds.min.x),m.render.sprite.yOffset+=-(m.bounds.min.y-m.position.y)/(m.bounds.max.y-m.bounds.min.y)};s.set=function(m,S,T){var b;typeof S=="string"&&(b=S,S={},S[b]=T);for(b in S)if(Object.prototype.hasOwnProperty.call(S,b))switch(T=S[b],b){case"isStatic":s.setStatic(m,T);break;case"isSleeping":g.set(m,T);break;case"mass":s.setMass(m,T);break;case"density":s.setDensity(m,T);break;case"inertia":s.setInertia(m,T);break;case"vertices":s.setVertices(m,T);break;case"position":s.setPosition(m,T);break;case"angle":s.setAngle(m,T);break;case"velocity":s.setVelocity(m,T);break;case"angularVelocity":s.setAngularVelocity(m,T);break;case"speed":s.setSpeed(m,T);break;case"angularSpeed":s.setAngularSpeed(m,T);break;case"parts":s.setParts(m,T);break;case"centre":s.setCentre(m,T);break;default:m[b]=T}},s.setStatic=function(m,S){for(var T=0;T<m.parts.length;T++){var b=m.parts[T];S?(b.isStatic||(b._original={restitution:b.restitution,friction:b.friction,mass:b.mass,inertia:b.inertia,density:b.density,inverseMass:b.inverseMass,inverseInertia:b.inverseInertia}),b.restitution=0,b.friction=1,b.mass=b.inertia=b.density=1/0,b.inverseMass=b.inverseInertia=0,b.positionPrev.x=b.position.x,b.positionPrev.y=b.position.y,b.anglePrev=b.angle,b.angularVelocity=0,b.speed=0,b.angularSpeed=0,b.motion=0):b._original&&(b.restitution=b._original.restitution,b.friction=b._original.friction,b.mass=b._original.mass,b.inertia=b._original.inertia,b.density=b._original.density,b.inverseMass=b._original.inverseMass,b.inverseInertia=b._original.inverseInertia,b._original=null),b.isStatic=S}},s.setMass=function(m,S){var T=m.inertia/(m.mass/6);m.inertia=T*(S/6),m.inverseInertia=1/m.inertia,m.mass=S,m.inverseMass=1/m.mass,m.density=m.mass/m.area},s.setDensity=function(m,S){s.setMass(m,S*m.area),m.density=S},s.setInertia=function(m,S){m.inertia=S,m.inverseInertia=1/m.inertia},s.setVertices=function(m,S){S[0].body===m?m.vertices=S:m.vertices=f.create(S,m),m.axes=x.fromVertices(m.vertices),m.area=f.area(m.vertices),s.setMass(m,m.density*m.area);var T=f.centre(m.vertices);f.translate(m.vertices,T,-1),s.setInertia(m,s._inertiaScale*f.inertia(m.vertices,m.mass)),f.translate(m.vertices,m.position),p.update(m.bounds,m.vertices,m.velocity)},s.setParts=function(m,S,T){var b;for(S=S.slice(0),m.parts.length=0,m.parts.push(m),m.parent=m,b=0;b<S.length;b++){var C=S[b];C!==m&&(C.parent=m,m.parts.push(C))}if(m.parts.length!==1){if(T=typeof T<"u"?T:!0,T){var R=[];for(b=0;b<S.length;b++)R=R.concat(S[b].vertices);f.clockwiseSort(R);var z=f.hull(R),U=f.centre(z);s.setVertices(m,z),f.translate(m.vertices,U)}var M=s._totalProperties(m);m.area=M.area,m.parent=m,m.position.x=M.centre.x,m.position.y=M.centre.y,m.positionPrev.x=M.centre.x,m.positionPrev.y=M.centre.y,s.setMass(m,M.mass),s.setInertia(m,M.inertia),s.setPosition(m,M.centre)}},s.setCentre=function(m,S,T){T?(m.positionPrev.x+=S.x,m.positionPrev.y+=S.y,m.position.x+=S.x,m.position.y+=S.y):(m.positionPrev.x=S.x-(m.position.x-m.positionPrev.x),m.positionPrev.y=S.y-(m.position.y-m.positionPrev.y),m.position.x=S.x,m.position.y=S.y)},s.setPosition=function(m,S,T){var b=h.sub(S,m.position);T?(m.positionPrev.x=m.position.x,m.positionPrev.y=m.position.y,m.velocity.x=b.x,m.velocity.y=b.y,m.speed=h.magnitude(b)):(m.positionPrev.x+=b.x,m.positionPrev.y+=b.y);for(var C=0;C<m.parts.length;C++){var R=m.parts[C];R.position.x+=b.x,R.position.y+=b.y,f.translate(R.vertices,b),p.update(R.bounds,R.vertices,m.velocity)}},s.setAngle=function(m,S,T){var b=S-m.angle;T?(m.anglePrev=m.angle,m.angularVelocity=b,m.angularSpeed=Math.abs(b)):m.anglePrev+=b;for(var C=0;C<m.parts.length;C++){var R=m.parts[C];R.angle+=b,f.rotate(R.vertices,b,m.position),x.rotate(R.axes,b),p.update(R.bounds,R.vertices,m.velocity),C>0&&h.rotateAbout(R.position,b,m.position,R.position)}},s.setVelocity=function(m,S){var T=m.deltaTime/s._baseDelta;m.positionPrev.x=m.position.x-S.x*T,m.positionPrev.y=m.position.y-S.y*T,m.velocity.x=(m.position.x-m.positionPrev.x)/T,m.velocity.y=(m.position.y-m.positionPrev.y)/T,m.speed=h.magnitude(m.velocity)},s.getVelocity=function(m){var S=s._baseDelta/m.deltaTime;return{x:(m.position.x-m.positionPrev.x)*S,y:(m.position.y-m.positionPrev.y)*S}},s.getSpeed=function(m){return h.magnitude(s.getVelocity(m))},s.setSpeed=function(m,S){s.setVelocity(m,h.mult(h.normalise(s.getVelocity(m)),S))},s.setAngularVelocity=function(m,S){var T=m.deltaTime/s._baseDelta;m.anglePrev=m.angle-S*T,m.angularVelocity=(m.angle-m.anglePrev)/T,m.angularSpeed=Math.abs(m.angularVelocity)},s.getAngularVelocity=function(m){return(m.angle-m.anglePrev)*s._baseDelta/m.deltaTime},s.getAngularSpeed=function(m){return Math.abs(s.getAngularVelocity(m))},s.setAngularSpeed=function(m,S){s.setAngularVelocity(m,v.sign(s.getAngularVelocity(m))*S)},s.translate=function(m,S,T){s.setPosition(m,h.add(m.position,S),T)},s.rotate=function(m,S,T,b){if(!T)s.setAngle(m,m.angle+S,b);else{var C=Math.cos(S),R=Math.sin(S),z=m.position.x-T.x,U=m.position.y-T.y;s.setPosition(m,{x:T.x+(z*C-U*R),y:T.y+(z*R+U*C)},b),s.setAngle(m,m.angle+S,b)}},s.scale=function(m,S,T,b){var C=0,R=0;b=b||m.position;for(var z=0;z<m.parts.length;z++){var U=m.parts[z];f.scale(U.vertices,S,T,b),U.axes=x.fromVertices(U.vertices),U.area=f.area(U.vertices),s.setMass(U,m.density*U.area),f.translate(U.vertices,{x:-U.position.x,y:-U.position.y}),s.setInertia(U,s._inertiaScale*f.inertia(U.vertices,U.mass)),f.translate(U.vertices,{x:U.position.x,y:U.position.y}),z>0&&(C+=U.area,R+=U.inertia),U.position.x=b.x+(U.position.x-b.x)*S,U.position.y=b.y+(U.position.y-b.y)*T,p.update(U.bounds,U.vertices,m.velocity)}m.parts.length>1&&(m.area=C,m.isStatic||(s.setMass(m,m.density*C),s.setInertia(m,R))),m.circleRadius&&(S===T?m.circleRadius*=S:m.circleRadius=null)},s.update=function(m,S){S=(typeof S<"u"?S:1e3/60)*m.timeScale;var T=S*S,b=s._timeCorrection?S/(m.deltaTime||S):1,C=1-m.frictionAir*(S/v._baseDelta),R=(m.position.x-m.positionPrev.x)*b,z=(m.position.y-m.positionPrev.y)*b;m.velocity.x=R*C+m.force.x/m.mass*T,m.velocity.y=z*C+m.force.y/m.mass*T,m.positionPrev.x=m.position.x,m.positionPrev.y=m.position.y,m.position.x+=m.velocity.x,m.position.y+=m.velocity.y,m.deltaTime=S,m.angularVelocity=(m.angle-m.anglePrev)*C*b+m.torque/m.inertia*T,m.anglePrev=m.angle,m.angle+=m.angularVelocity;for(var U=0;U<m.parts.length;U++){var M=m.parts[U];f.translate(M.vertices,m.velocity),U>0&&(M.position.x+=m.velocity.x,M.position.y+=m.velocity.y),m.angularVelocity!==0&&(f.rotate(M.vertices,m.angularVelocity,m.position),x.rotate(M.axes,m.angularVelocity),U>0&&h.rotateAbout(M.position,m.angularVelocity,m.position,M.position)),p.update(M.bounds,M.vertices,m.velocity)}},s.updateVelocities=function(m){var S=s._baseDelta/m.deltaTime,T=m.velocity;T.x=(m.position.x-m.positionPrev.x)*S,T.y=(m.position.y-m.positionPrev.y)*S,m.speed=Math.sqrt(T.x*T.x+T.y*T.y),m.angularVelocity=(m.angle-m.anglePrev)*S,m.angularSpeed=Math.abs(m.angularVelocity)},s.applyForce=function(m,S,T){var b={x:S.x-m.position.x,y:S.y-m.position.y};m.force.x+=T.x,m.force.y+=T.y,m.torque+=b.x*T.y-b.y*T.x},s._totalProperties=function(m){for(var S={mass:0,area:0,inertia:0,centre:{x:0,y:0}},T=m.parts.length===1?0:1;T<m.parts.length;T++){var b=m.parts[T],C=b.mass!==1/0?b.mass:1;S.mass+=C,S.area+=b.area,S.inertia+=b.inertia,S.centre=h.add(S.centre,h.mult(b.position,C))}return S.centre=h.div(S.centre,S.mass),S}})()}),(function(o,r,c){var s={};o.exports=s;var f=c(0);(function(){s.on=function(h,g,v){for(var p=g.split(" "),x,y=0;y<p.length;y++)x=p[y],h.events=h.events||{},h.events[x]=h.events[x]||[],h.events[x].push(v);return v},s.off=function(h,g,v){if(!g){h.events={};return}typeof g=="function"&&(v=g,g=f.keys(h.events).join(" "));for(var p=g.split(" "),x=0;x<p.length;x++){var y=h.events[p[x]],m=[];if(v&&y)for(var S=0;S<y.length;S++)y[S]!==v&&m.push(y[S]);h.events[p[x]]=m}},s.trigger=function(h,g,v){var p,x,y,m,S=h.events;if(S&&f.keys(S).length>0){v||(v={}),p=g.split(" ");for(var T=0;T<p.length;T++)if(x=p[T],y=S[x],y){m=f.clone(v,!1),m.name=x,m.source=h;for(var b=0;b<y.length;b++)y[b].apply(h,[m])}}}})()}),(function(o,r,c){var s={};o.exports=s;var f=c(5),h=c(0),g=c(1),v=c(4);(function(){s.create=function(p){return h.extend({id:h.nextId(),type:"composite",parent:null,isModified:!1,bodies:[],constraints:[],composites:[],label:"Composite",plugin:{},cache:{allBodies:null,allConstraints:null,allComposites:null}},p)},s.setModified=function(p,x,y,m){if(p.isModified=x,x&&p.cache&&(p.cache.allBodies=null,p.cache.allConstraints=null,p.cache.allComposites=null),y&&p.parent&&s.setModified(p.parent,x,y,m),m)for(var S=0;S<p.composites.length;S++){var T=p.composites[S];s.setModified(T,x,y,m)}},s.add=function(p,x){var y=[].concat(x);f.trigger(p,"beforeAdd",{object:x});for(var m=0;m<y.length;m++){var S=y[m];switch(S.type){case"body":if(S.parent!==S){h.warn("Composite.add: skipped adding a compound body part (you must add its parent instead)");break}s.addBody(p,S);break;case"constraint":s.addConstraint(p,S);break;case"composite":s.addComposite(p,S);break;case"mouseConstraint":s.addConstraint(p,S.constraint);break}}return f.trigger(p,"afterAdd",{object:x}),p},s.remove=function(p,x,y){var m=[].concat(x);f.trigger(p,"beforeRemove",{object:x});for(var S=0;S<m.length;S++){var T=m[S];switch(T.type){case"body":s.removeBody(p,T,y);break;case"constraint":s.removeConstraint(p,T,y);break;case"composite":s.removeComposite(p,T,y);break;case"mouseConstraint":s.removeConstraint(p,T.constraint);break}}return f.trigger(p,"afterRemove",{object:x}),p},s.addComposite=function(p,x){return p.composites.push(x),x.parent=p,s.setModified(p,!0,!0,!1),p},s.removeComposite=function(p,x,y){var m=h.indexOf(p.composites,x);if(m!==-1){var S=s.allBodies(x);s.removeCompositeAt(p,m);for(var T=0;T<S.length;T++)S[T].sleepCounter=0}if(y)for(var T=0;T<p.composites.length;T++)s.removeComposite(p.composites[T],x,!0);return p},s.removeCompositeAt=function(p,x){return p.composites.splice(x,1),s.setModified(p,!0,!0,!1),p},s.addBody=function(p,x){return p.bodies.push(x),s.setModified(p,!0,!0,!1),p},s.removeBody=function(p,x,y){var m=h.indexOf(p.bodies,x);if(m!==-1&&(s.removeBodyAt(p,m),x.sleepCounter=0),y)for(var S=0;S<p.composites.length;S++)s.removeBody(p.composites[S],x,!0);return p},s.removeBodyAt=function(p,x){return p.bodies.splice(x,1),s.setModified(p,!0,!0,!1),p},s.addConstraint=function(p,x){return p.constraints.push(x),s.setModified(p,!0,!0,!1),p},s.removeConstraint=function(p,x,y){var m=h.indexOf(p.constraints,x);if(m!==-1&&s.removeConstraintAt(p,m),y)for(var S=0;S<p.composites.length;S++)s.removeConstraint(p.composites[S],x,!0);return p},s.removeConstraintAt=function(p,x){return p.constraints.splice(x,1),s.setModified(p,!0,!0,!1),p},s.clear=function(p,x,y){if(y)for(var m=0;m<p.composites.length;m++)s.clear(p.composites[m],x,!0);return x?p.bodies=p.bodies.filter(function(S){return S.isStatic}):p.bodies.length=0,p.constraints.length=0,p.composites.length=0,s.setModified(p,!0,!0,!1),p},s.allBodies=function(p){if(p.cache&&p.cache.allBodies)return p.cache.allBodies;for(var x=[].concat(p.bodies),y=0;y<p.composites.length;y++)x=x.concat(s.allBodies(p.composites[y]));return p.cache&&(p.cache.allBodies=x),x},s.allConstraints=function(p){if(p.cache&&p.cache.allConstraints)return p.cache.allConstraints;for(var x=[].concat(p.constraints),y=0;y<p.composites.length;y++)x=x.concat(s.allConstraints(p.composites[y]));return p.cache&&(p.cache.allConstraints=x),x},s.allComposites=function(p){if(p.cache&&p.cache.allComposites)return p.cache.allComposites;for(var x=[].concat(p.composites),y=0;y<p.composites.length;y++)x=x.concat(s.allComposites(p.composites[y]));return p.cache&&(p.cache.allComposites=x),x},s.get=function(p,x,y){var m,S;switch(y){case"body":m=s.allBodies(p);break;case"constraint":m=s.allConstraints(p);break;case"composite":m=s.allComposites(p).concat(p);break}return m?(S=m.filter(function(T){return T.id.toString()===x.toString()}),S.length===0?null:S[0]):null},s.move=function(p,x,y){return s.remove(p,x),s.add(y,x),p},s.rebase=function(p){for(var x=s.allBodies(p).concat(s.allConstraints(p)).concat(s.allComposites(p)),y=0;y<x.length;y++)x[y].id=h.nextId();return p},s.translate=function(p,x,y){for(var m=y?s.allBodies(p):p.bodies,S=0;S<m.length;S++)v.translate(m[S],x);return p},s.rotate=function(p,x,y,m){for(var S=Math.cos(x),T=Math.sin(x),b=m?s.allBodies(p):p.bodies,C=0;C<b.length;C++){var R=b[C],z=R.position.x-y.x,U=R.position.y-y.y;v.setPosition(R,{x:y.x+(z*S-U*T),y:y.y+(z*T+U*S)}),v.rotate(R,x)}return p},s.scale=function(p,x,y,m,S){for(var T=S?s.allBodies(p):p.bodies,b=0;b<T.length;b++){var C=T[b],R=C.position.x-m.x,z=C.position.y-m.y;v.setPosition(C,{x:m.x+R*x,y:m.y+z*y}),v.scale(C,x,y)}return p},s.bounds=function(p){for(var x=s.allBodies(p),y=[],m=0;m<x.length;m+=1){var S=x[m];y.push(S.bounds.min,S.bounds.max)}return g.create(y)}})()}),(function(o,r,c){var s={};o.exports=s;var f=c(4),h=c(5),g=c(0);(function(){s._motionWakeThreshold=.18,s._motionSleepThreshold=.08,s._minBias=.9,s.update=function(v,p){for(var x=p/g._baseDelta,y=s._motionSleepThreshold,m=0;m<v.length;m++){var S=v[m],T=f.getSpeed(S),b=f.getAngularSpeed(S),C=T*T+b*b;if(S.force.x!==0||S.force.y!==0){s.set(S,!1);continue}var R=Math.min(S.motion,C),z=Math.max(S.motion,C);S.motion=s._minBias*R+(1-s._minBias)*z,S.sleepThreshold>0&&S.motion<y?(S.sleepCounter+=1,S.sleepCounter>=S.sleepThreshold/x&&s.set(S,!0)):S.sleepCounter>0&&(S.sleepCounter-=1)}},s.afterCollisions=function(v){for(var p=s._motionSleepThreshold,x=0;x<v.length;x++){var y=v[x];if(y.isActive){var m=y.collision,S=m.bodyA.parent,T=m.bodyB.parent;if(!(S.isSleeping&&T.isSleeping||S.isStatic||T.isStatic)&&(S.isSleeping||T.isSleeping)){var b=S.isSleeping&&!S.isStatic?S:T,C=b===S?T:S;!b.isStatic&&C.motion>p&&s.set(b,!1)}}}},s.set=function(v,p){var x=v.isSleeping;p?(v.isSleeping=!0,v.sleepCounter=v.sleepThreshold,v.positionImpulse.x=0,v.positionImpulse.y=0,v.positionPrev.x=v.position.x,v.positionPrev.y=v.position.y,v.anglePrev=v.angle,v.speed=0,v.angularSpeed=0,v.motion=0,x||h.trigger(v,"sleepStart")):(v.isSleeping=!1,v.sleepCounter=0,x&&h.trigger(v,"sleepEnd"))}})()}),(function(o,r,c){var s={};o.exports=s;var f=c(3),h=c(9);(function(){var g=[],v={overlap:0,axis:null},p={overlap:0,axis:null};s.create=function(x,y){return{pair:null,collided:!1,bodyA:x,bodyB:y,parentA:x.parent,parentB:y.parent,depth:0,normal:{x:0,y:0},tangent:{x:0,y:0},penetration:{x:0,y:0},supports:[null,null],supportCount:0}},s.collides=function(x,y,m){if(s._overlapAxes(v,x.vertices,y.vertices,x.axes),v.overlap<=0||(s._overlapAxes(p,y.vertices,x.vertices,y.axes),p.overlap<=0))return null;var S=m&&m.table[h.id(x,y)],T;S?T=S.collision:(T=s.create(x,y),T.collided=!0,T.bodyA=x.id<y.id?x:y,T.bodyB=x.id<y.id?y:x,T.parentA=T.bodyA.parent,T.parentB=T.bodyB.parent),x=T.bodyA,y=T.bodyB;var b;v.overlap<p.overlap?b=v:b=p;var C=T.normal,R=T.tangent,z=T.penetration,U=T.supports,M=b.overlap,B=b.axis,D=B.x,E=B.y,V=y.position.x-x.position.x,O=y.position.y-x.position.y;D*V+E*O>=0&&(D=-D,E=-E),C.x=D,C.y=E,R.x=-E,R.y=D,z.x=D*M,z.y=E*M,T.depth=M;var L=s._findSupports(x,y,C,1),H=0;if(f.contains(x.vertices,L[0])&&(U[H++]=L[0]),f.contains(x.vertices,L[1])&&(U[H++]=L[1]),H<2){var Q=s._findSupports(y,x,C,-1);f.contains(y.vertices,Q[0])&&(U[H++]=Q[0]),H<2&&f.contains(y.vertices,Q[1])&&(U[H++]=Q[1])}return H===0&&(U[H++]=L[0]),T.supportCount=H,T},s._overlapAxes=function(x,y,m,S){var T=y.length,b=m.length,C=y[0].x,R=y[0].y,z=m[0].x,U=m[0].y,M=S.length,B=Number.MAX_VALUE,D=0,E,V,O,L,H,Q;for(H=0;H<M;H++){var nt=S[H],et=nt.x,j=nt.y,Z=C*et+R*j,$=z*et+U*j,lt=Z,ft=$;for(Q=1;Q<T;Q+=1)L=y[Q].x*et+y[Q].y*j,L>lt?lt=L:L<Z&&(Z=L);for(Q=1;Q<b;Q+=1)L=m[Q].x*et+m[Q].y*j,L>ft?ft=L:L<$&&($=L);if(V=lt-$,O=ft-Z,E=V<O?V:O,E<B&&(B=E,D=H,E<=0))break}x.axis=S[D],x.overlap=B},s._findSupports=function(x,y,m,S){var T=y.vertices,b=T.length,C=x.position.x,R=x.position.y,z=m.x*S,U=m.y*S,M=T[0],B=M,D=z*(C-B.x)+U*(R-B.y),E,V,O;for(O=1;O<b;O+=1)B=T[O],V=z*(C-B.x)+U*(R-B.y),V<D&&(D=V,M=B);return E=T[(b+M.index-1)%b],D=z*(C-E.x)+U*(R-E.y),B=T[(M.index+1)%b],z*(C-B.x)+U*(R-B.y)<D?(g[0]=M,g[1]=B,g):(g[0]=M,g[1]=E,g)}})()}),(function(o,r,c){var s={};o.exports=s;var f=c(16);(function(){s.create=function(h,g){var v=h.bodyA,p=h.bodyB,x={id:s.id(v,p),bodyA:v,bodyB:p,collision:h,contacts:[f.create(),f.create()],contactCount:0,separation:0,isActive:!0,isSensor:v.isSensor||p.isSensor,timeCreated:g,timeUpdated:g,inverseMass:0,friction:0,frictionStatic:0,restitution:0,slop:0};return s.update(x,h,g),x},s.update=function(h,g,v){var p=g.supports,x=g.supportCount,y=h.contacts,m=g.parentA,S=g.parentB;h.isActive=!0,h.timeUpdated=v,h.collision=g,h.separation=g.depth,h.inverseMass=m.inverseMass+S.inverseMass,h.friction=m.friction<S.friction?m.friction:S.friction,h.frictionStatic=m.frictionStatic>S.frictionStatic?m.frictionStatic:S.frictionStatic,h.restitution=m.restitution>S.restitution?m.restitution:S.restitution,h.slop=m.slop>S.slop?m.slop:S.slop,h.contactCount=x,g.pair=h;var T=p[0],b=y[0],C=p[1],R=y[1];(R.vertex===T||b.vertex===C)&&(y[1]=b,y[0]=b=R,R=y[1]),b.vertex=T,R.vertex=C},s.setActive=function(h,g,v){g?(h.isActive=!0,h.timeUpdated=v):(h.isActive=!1,h.contactCount=0)},s.id=function(h,g){return h.id<g.id?h.id.toString(36)+":"+g.id.toString(36):g.id.toString(36)+":"+h.id.toString(36)}})()}),(function(o,r,c){var s={};o.exports=s;var f=c(3),h=c(2),g=c(7),v=c(1),p=c(11),x=c(0);(function(){s._warming=.4,s._torqueDampen=1,s._minLength=1e-6,s.create=function(y){var m=y;m.bodyA&&!m.pointA&&(m.pointA={x:0,y:0}),m.bodyB&&!m.pointB&&(m.pointB={x:0,y:0});var S=m.bodyA?h.add(m.bodyA.position,m.pointA):m.pointA,T=m.bodyB?h.add(m.bodyB.position,m.pointB):m.pointB,b=h.magnitude(h.sub(S,T));m.length=typeof m.length<"u"?m.length:b,m.id=m.id||x.nextId(),m.label=m.label||"Constraint",m.type="constraint",m.stiffness=m.stiffness||(m.length>0?1:.7),m.damping=m.damping||0,m.angularStiffness=m.angularStiffness||0,m.angleA=m.bodyA?m.bodyA.angle:m.angleA,m.angleB=m.bodyB?m.bodyB.angle:m.angleB,m.plugin={};var C={visible:!0,lineWidth:2,strokeStyle:"#ffffff",type:"line",anchors:!0};return m.length===0&&m.stiffness>.1?(C.type="pin",C.anchors=!1):m.stiffness<.9&&(C.type="spring"),m.render=x.extend(C,m.render),m},s.preSolveAll=function(y){for(var m=0;m<y.length;m+=1){var S=y[m],T=S.constraintImpulse;S.isStatic||T.x===0&&T.y===0&&T.angle===0||(S.position.x+=T.x,S.position.y+=T.y,S.angle+=T.angle)}},s.solveAll=function(y,m){for(var S=x.clamp(m/x._baseDelta,0,1),T=0;T<y.length;T+=1){var b=y[T],C=!b.bodyA||b.bodyA&&b.bodyA.isStatic,R=!b.bodyB||b.bodyB&&b.bodyB.isStatic;(C||R)&&s.solve(y[T],S)}for(T=0;T<y.length;T+=1)b=y[T],C=!b.bodyA||b.bodyA&&b.bodyA.isStatic,R=!b.bodyB||b.bodyB&&b.bodyB.isStatic,!C&&!R&&s.solve(y[T],S)},s.solve=function(y,m){var S=y.bodyA,T=y.bodyB,b=y.pointA,C=y.pointB;if(!(!S&&!T)){S&&!S.isStatic&&(h.rotate(b,S.angle-y.angleA,b),y.angleA=S.angle),T&&!T.isStatic&&(h.rotate(C,T.angle-y.angleB,C),y.angleB=T.angle);var R=b,z=C;if(S&&(R=h.add(S.position,b)),T&&(z=h.add(T.position,C)),!(!R||!z)){var U=h.sub(R,z),M=h.magnitude(U);M<s._minLength&&(M=s._minLength);var B=(M-y.length)/M,D=y.stiffness>=1||y.length===0,E=D?y.stiffness*m:y.stiffness*m*m,V=y.damping*m,O=h.mult(U,B*E),L=(S?S.inverseMass:0)+(T?T.inverseMass:0),H=(S?S.inverseInertia:0)+(T?T.inverseInertia:0),Q=L+H,nt,et,j,Z,$;if(V>0){var lt=h.create();j=h.div(U,M),$=h.sub(T&&h.sub(T.position,T.positionPrev)||lt,S&&h.sub(S.position,S.positionPrev)||lt),Z=h.dot(j,$)}S&&!S.isStatic&&(et=S.inverseMass/L,S.constraintImpulse.x-=O.x*et,S.constraintImpulse.y-=O.y*et,S.position.x-=O.x*et,S.position.y-=O.y*et,V>0&&(S.positionPrev.x-=V*j.x*Z*et,S.positionPrev.y-=V*j.y*Z*et),nt=h.cross(b,O)/Q*s._torqueDampen*S.inverseInertia*(1-y.angularStiffness),S.constraintImpulse.angle-=nt,S.angle-=nt),T&&!T.isStatic&&(et=T.inverseMass/L,T.constraintImpulse.x+=O.x*et,T.constraintImpulse.y+=O.y*et,T.position.x+=O.x*et,T.position.y+=O.y*et,V>0&&(T.positionPrev.x+=V*j.x*Z*et,T.positionPrev.y+=V*j.y*Z*et),nt=h.cross(C,O)/Q*s._torqueDampen*T.inverseInertia*(1-y.angularStiffness),T.constraintImpulse.angle+=nt,T.angle+=nt)}}},s.postSolveAll=function(y){for(var m=0;m<y.length;m++){var S=y[m],T=S.constraintImpulse;if(!(S.isStatic||T.x===0&&T.y===0&&T.angle===0)){g.set(S,!1);for(var b=0;b<S.parts.length;b++){var C=S.parts[b];f.translate(C.vertices,T),b>0&&(C.position.x+=T.x,C.position.y+=T.y),T.angle!==0&&(f.rotate(C.vertices,T.angle,S.position),p.rotate(C.axes,T.angle),b>0&&h.rotateAbout(C.position,T.angle,S.position,C.position)),v.update(C.bounds,C.vertices,S.velocity)}T.angle*=s._warming,T.x*=s._warming,T.y*=s._warming}}},s.pointAWorld=function(y){return{x:(y.bodyA?y.bodyA.position.x:0)+(y.pointA?y.pointA.x:0),y:(y.bodyA?y.bodyA.position.y:0)+(y.pointA?y.pointA.y:0)}},s.pointBWorld=function(y){return{x:(y.bodyB?y.bodyB.position.x:0)+(y.pointB?y.pointB.x:0),y:(y.bodyB?y.bodyB.position.y:0)+(y.pointB?y.pointB.y:0)}},s.currentLength=function(y){var m=(y.bodyA?y.bodyA.position.x:0)+(y.pointA?y.pointA.x:0),S=(y.bodyA?y.bodyA.position.y:0)+(y.pointA?y.pointA.y:0),T=(y.bodyB?y.bodyB.position.x:0)+(y.pointB?y.pointB.x:0),b=(y.bodyB?y.bodyB.position.y:0)+(y.pointB?y.pointB.y:0),C=m-T,R=S-b;return Math.sqrt(C*C+R*R)}})()}),(function(o,r,c){var s={};o.exports=s;var f=c(2),h=c(0);(function(){s.fromVertices=function(g){for(var v={},p=0;p<g.length;p++){var x=(p+1)%g.length,y=f.normalise({x:g[x].y-g[p].y,y:g[p].x-g[x].x}),m=y.y===0?1/0:y.x/y.y;m=m.toFixed(3).toString(),v[m]=y}return h.values(v)},s.rotate=function(g,v){if(v!==0)for(var p=Math.cos(v),x=Math.sin(v),y=0;y<g.length;y++){var m=g[y],S;S=m.x*p-m.y*x,m.y=m.x*x+m.y*p,m.x=S}}})()}),(function(o,r,c){var s={};o.exports=s;var f=c(3),h=c(0),g=c(4),v=c(1),p=c(2);(function(){s.rectangle=function(x,y,m,S,T){T=T||{};var b={label:"Rectangle Body",position:{x,y},vertices:f.fromPath("L 0 0 L "+m+" 0 L "+m+" "+S+" L 0 "+S)};if(T.chamfer){var C=T.chamfer;b.vertices=f.chamfer(b.vertices,C.radius,C.quality,C.qualityMin,C.qualityMax),delete T.chamfer}return g.create(h.extend({},b,T))},s.trapezoid=function(x,y,m,S,T,b){b=b||{},T>=1&&h.warn("Bodies.trapezoid: slope parameter must be < 1."),T*=.5;var C=(1-T*2)*m,R=m*T,z=R+C,U=z+R,M;T<.5?M="L 0 0 L "+R+" "+-S+" L "+z+" "+-S+" L "+U+" 0":M="L 0 0 L "+z+" "+-S+" L "+U+" 0";var B={label:"Trapezoid Body",position:{x,y},vertices:f.fromPath(M)};if(b.chamfer){var D=b.chamfer;B.vertices=f.chamfer(B.vertices,D.radius,D.quality,D.qualityMin,D.qualityMax),delete b.chamfer}return g.create(h.extend({},B,b))},s.circle=function(x,y,m,S,T){S=S||{};var b={label:"Circle Body",circleRadius:m};T=T||25;var C=Math.ceil(Math.max(10,Math.min(T,m)));return C%2===1&&(C+=1),s.polygon(x,y,C,m,h.extend({},b,S))},s.polygon=function(x,y,m,S,T){if(T=T||{},m<3)return s.circle(x,y,S,T);for(var b=2*Math.PI/m,C="",R=b*.5,z=0;z<m;z+=1){var U=R+z*b,M=Math.cos(U)*S,B=Math.sin(U)*S;C+="L "+M.toFixed(3)+" "+B.toFixed(3)+" "}var D={label:"Polygon Body",position:{x,y},vertices:f.fromPath(C)};if(T.chamfer){var E=T.chamfer;D.vertices=f.chamfer(D.vertices,E.radius,E.quality,E.qualityMin,E.qualityMax),delete T.chamfer}return g.create(h.extend({},D,T))},s.fromVertices=function(x,y,m,S,T,b,C,R){var z=h.getDecomp(),U,M,B,D,E,V,O,L,H,Q,nt;for(U=!!(z&&z.quickDecomp),S=S||{},B=[],T=typeof T<"u"?T:!1,b=typeof b<"u"?b:.01,C=typeof C<"u"?C:10,R=typeof R<"u"?R:.01,h.isArray(m[0])||(m=[m]),Q=0;Q<m.length;Q+=1)if(V=m[Q],D=f.isConvex(V),E=!D,E&&!U&&h.warnOnce("Bodies.fromVertices: Install the 'poly-decomp' library and use Common.setDecomp or provide 'decomp' as a global to decompose concave vertices."),D||!U)D?V=f.clockwiseSort(V):V=f.hull(V),B.push({position:{x,y},vertices:V});else{var et=V.map(function(at){return[at.x,at.y]});z.makeCCW(et),b!==!1&&z.removeCollinearPoints(et,b),R!==!1&&z.removeDuplicatePoints&&z.removeDuplicatePoints(et,R);var j=z.quickDecomp(et);for(O=0;O<j.length;O++){var Z=j[O],$=Z.map(function(at){return{x:at[0],y:at[1]}});C>0&&f.area($)<C||B.push({position:f.centre($),vertices:$})}}for(O=0;O<B.length;O++)B[O]=g.create(h.extend(B[O],S));if(T){var lt=5;for(O=0;O<B.length;O++){var ft=B[O];for(L=O+1;L<B.length;L++){var _=B[L];if(v.overlaps(ft.bounds,_.bounds)){var Y=ft.vertices,k=_.vertices;for(H=0;H<ft.vertices.length;H++)for(nt=0;nt<_.vertices.length;nt++){var it=p.magnitudeSquared(p.sub(Y[(H+1)%Y.length],k[nt])),st=p.magnitudeSquared(p.sub(Y[H],k[(nt+1)%k.length]));it<lt&&st<lt&&(Y[H].isInternal=!0,k[nt].isInternal=!0)}}}}}return B.length>1?(M=g.create(h.extend({parts:B.slice(0)},S)),g.setPosition(M,{x,y}),M):B[0]}})()}),(function(o,r,c){var s={};o.exports=s;var f=c(0),h=c(8);(function(){s.create=function(g){var v={bodies:[],collisions:[],pairs:null};return f.extend(v,g)},s.setBodies=function(g,v){g.bodies=v.slice(0)},s.clear=function(g){g.bodies=[],g.collisions=[]},s.collisions=function(g){var v=g.pairs,p=g.bodies,x=p.length,y=s.canCollide,m=h.collides,S=g.collisions,T=0,b,C;for(p.sort(s._compareBoundsX),b=0;b<x;b++){var R=p[b],z=R.bounds,U=R.bounds.max.x,M=R.bounds.max.y,B=R.bounds.min.y,D=R.isStatic||R.isSleeping,E=R.parts.length,V=E===1;for(C=b+1;C<x;C++){var O=p[C],L=O.bounds;if(L.min.x>U)break;if(!(M<L.min.y||B>L.max.y)&&!(D&&(O.isStatic||O.isSleeping))&&y(R.collisionFilter,O.collisionFilter)){var H=O.parts.length;if(V&&H===1){var Q=m(R,O,v);Q&&(S[T++]=Q)}else for(var nt=E>1?1:0,et=H>1?1:0,j=nt;j<E;j++)for(var Z=R.parts[j],z=Z.bounds,$=et;$<H;$++){var lt=O.parts[$],L=lt.bounds;if(!(z.min.x>L.max.x||z.max.x<L.min.x||z.max.y<L.min.y||z.min.y>L.max.y)){var Q=m(Z,lt,v);Q&&(S[T++]=Q)}}}}}return S.length!==T&&(S.length=T),S},s.canCollide=function(g,v){return g.group===v.group&&g.group!==0?g.group>0:(g.mask&v.category)!==0&&(v.mask&g.category)!==0},s._compareBoundsX=function(g,v){return g.bounds.min.x-v.bounds.min.x}})()}),(function(o,r,c){var s={};o.exports=s;var f=c(0);(function(){s.create=function(h){var g={};return h||f.log("Mouse.create: element was undefined, defaulting to document.body","warn"),g.element=h||document.body,g.absolute={x:0,y:0},g.position={x:0,y:0},g.mousedownPosition={x:0,y:0},g.mouseupPosition={x:0,y:0},g.offset={x:0,y:0},g.scale={x:1,y:1},g.wheelDelta=0,g.button=-1,g.pixelRatio=parseInt(g.element.getAttribute("data-pixel-ratio"),10)||1,g.sourceEvents={mousemove:null,mousedown:null,mouseup:null,mousewheel:null},g.mousemove=function(v){var p=s._getRelativeMousePosition(v,g.element,g.pixelRatio),x=v.changedTouches;x&&(g.button=0,v.preventDefault()),g.absolute.x=p.x,g.absolute.y=p.y,g.position.x=g.absolute.x*g.scale.x+g.offset.x,g.position.y=g.absolute.y*g.scale.y+g.offset.y,g.sourceEvents.mousemove=v},g.mousedown=function(v){var p=s._getRelativeMousePosition(v,g.element,g.pixelRatio),x=v.changedTouches;x?(g.button=0,v.preventDefault()):g.button=v.button,g.absolute.x=p.x,g.absolute.y=p.y,g.position.x=g.absolute.x*g.scale.x+g.offset.x,g.position.y=g.absolute.y*g.scale.y+g.offset.y,g.mousedownPosition.x=g.position.x,g.mousedownPosition.y=g.position.y,g.sourceEvents.mousedown=v},g.mouseup=function(v){var p=s._getRelativeMousePosition(v,g.element,g.pixelRatio),x=v.changedTouches;x&&v.preventDefault(),g.button=-1,g.absolute.x=p.x,g.absolute.y=p.y,g.position.x=g.absolute.x*g.scale.x+g.offset.x,g.position.y=g.absolute.y*g.scale.y+g.offset.y,g.mouseupPosition.x=g.position.x,g.mouseupPosition.y=g.position.y,g.sourceEvents.mouseup=v},g.mousewheel=function(v){g.wheelDelta=Math.max(-1,Math.min(1,v.wheelDelta||-v.detail)),v.preventDefault(),g.sourceEvents.mousewheel=v},s.setElement(g,g.element),g},s.setElement=function(h,g){h.element=g,g.addEventListener("mousemove",h.mousemove,{passive:!0}),g.addEventListener("mousedown",h.mousedown,{passive:!0}),g.addEventListener("mouseup",h.mouseup,{passive:!0}),g.addEventListener("wheel",h.mousewheel,{passive:!1}),g.addEventListener("touchmove",h.mousemove,{passive:!1}),g.addEventListener("touchstart",h.mousedown,{passive:!1}),g.addEventListener("touchend",h.mouseup,{passive:!1})},s.clearSourceEvents=function(h){h.sourceEvents.mousemove=null,h.sourceEvents.mousedown=null,h.sourceEvents.mouseup=null,h.sourceEvents.mousewheel=null,h.wheelDelta=0},s.setOffset=function(h,g){h.offset.x=g.x,h.offset.y=g.y,h.position.x=h.absolute.x*h.scale.x+h.offset.x,h.position.y=h.absolute.y*h.scale.y+h.offset.y},s.setScale=function(h,g){h.scale.x=g.x,h.scale.y=g.y,h.position.x=h.absolute.x*h.scale.x+h.offset.x,h.position.y=h.absolute.y*h.scale.y+h.offset.y},s._getRelativeMousePosition=function(h,g,v){var p=g.getBoundingClientRect(),x=document.documentElement||document.body.parentNode||document.body,y=window.pageXOffset!==void 0?window.pageXOffset:x.scrollLeft,m=window.pageYOffset!==void 0?window.pageYOffset:x.scrollTop,S=h.changedTouches,T,b;return S?(T=S[0].pageX-p.left-y,b=S[0].pageY-p.top-m):(T=h.pageX-p.left-y,b=h.pageY-p.top-m),{x:T/(g.clientWidth/(g.width||g.clientWidth)*v),y:b/(g.clientHeight/(g.height||g.clientHeight)*v)}}})()}),(function(o,r,c){var s={};o.exports=s;var f=c(0);(function(){s._registry={},s.register=function(h){if(s.isPlugin(h)||f.warn("Plugin.register:",s.toString(h),"does not implement all required fields."),h.name in s._registry){var g=s._registry[h.name],v=s.versionParse(h.version).number,p=s.versionParse(g.version).number;v>p?(f.warn("Plugin.register:",s.toString(g),"was upgraded to",s.toString(h)),s._registry[h.name]=h):v<p?f.warn("Plugin.register:",s.toString(g),"can not be downgraded to",s.toString(h)):h!==g&&f.warn("Plugin.register:",s.toString(h),"is already registered to different plugin object")}else s._registry[h.name]=h;return h},s.resolve=function(h){return s._registry[s.dependencyParse(h).name]},s.toString=function(h){return typeof h=="string"?h:(h.name||"anonymous")+"@"+(h.version||h.range||"0.0.0")},s.isPlugin=function(h){return h&&h.name&&h.version&&h.install},s.isUsed=function(h,g){return h.used.indexOf(g)>-1},s.isFor=function(h,g){var v=h.for&&s.dependencyParse(h.for);return!h.for||g.name===v.name&&s.versionSatisfies(g.version,v.range)},s.use=function(h,g){if(h.uses=(h.uses||[]).concat(g||[]),h.uses.length===0){f.warn("Plugin.use:",s.toString(h),"does not specify any dependencies to install.");return}for(var v=s.dependencies(h),p=f.topologicalSort(v),x=[],y=0;y<p.length;y+=1)if(p[y]!==h.name){var m=s.resolve(p[y]);if(!m){x.push("❌ "+p[y]);continue}s.isUsed(h,m.name)||(s.isFor(m,h)||(f.warn("Plugin.use:",s.toString(m),"is for",m.for,"but installed on",s.toString(h)+"."),m._warned=!0),m.install?m.install(h):(f.warn("Plugin.use:",s.toString(m),"does not specify an install function."),m._warned=!0),m._warned?(x.push("🔶 "+s.toString(m)),delete m._warned):x.push("✅ "+s.toString(m)),h.used.push(m.name))}x.length>0&&f.info(x.join(" "))},s.dependencies=function(h,g){var v=s.dependencyParse(h),p=v.name;if(g=g||{},!(p in g)){h=s.resolve(h)||h,g[p]=f.map(h.uses||[],function(y){s.isPlugin(y)&&s.register(y);var m=s.dependencyParse(y),S=s.resolve(y);return S&&!s.versionSatisfies(S.version,m.range)?(f.warn("Plugin.dependencies:",s.toString(S),"does not satisfy",s.toString(m),"used by",s.toString(v)+"."),S._warned=!0,h._warned=!0):S||(f.warn("Plugin.dependencies:",s.toString(y),"used by",s.toString(v),"could not be resolved."),h._warned=!0),m.name});for(var x=0;x<g[p].length;x+=1)s.dependencies(g[p][x],g);return g}},s.dependencyParse=function(h){if(f.isString(h)){var g=/^[\w-]+(@(\*|[\^~]?\d+\.\d+\.\d+(-[0-9A-Za-z-+]+)?))?$/;return g.test(h)||f.warn("Plugin.dependencyParse:",h,"is not a valid dependency string."),{name:h.split("@")[0],range:h.split("@")[1]||"*"}}return{name:h.name,range:h.range||h.version}},s.versionParse=function(h){var g=/^(\*)|(\^|~|>=|>)?\s*((\d+)\.(\d+)\.(\d+))(-[0-9A-Za-z-+]+)?$/;g.test(h)||f.warn("Plugin.versionParse:",h,"is not a valid version or range.");var v=g.exec(h),p=Number(v[4]),x=Number(v[5]),y=Number(v[6]);return{isRange:!!(v[1]||v[2]),version:v[3],range:h,operator:v[1]||v[2]||"",major:p,minor:x,patch:y,parts:[p,x,y],prerelease:v[7],number:p*1e8+x*1e4+y}},s.versionSatisfies=function(h,g){g=g||"*";var v=s.versionParse(g),p=s.versionParse(h);if(v.isRange){if(v.operator==="*"||h==="*")return!0;if(v.operator===">")return p.number>v.number;if(v.operator===">=")return p.number>=v.number;if(v.operator==="~")return p.major===v.major&&p.minor===v.minor&&p.patch>=v.patch;if(v.operator==="^")return v.major>0?p.major===v.major&&p.number>=v.number:v.minor>0?p.minor===v.minor&&p.patch>=v.patch:p.patch===v.patch}return h===g||h==="*"}})()}),(function(o,r){var c={};o.exports=c,(function(){c.create=function(s){return{vertex:s,normalImpulse:0,tangentImpulse:0}}})()}),(function(o,r,c){var s={};o.exports=s;var f=c(7),h=c(18),g=c(13),v=c(19),p=c(5),x=c(6),y=c(10),m=c(0),S=c(4);(function(){s._deltaMax=1e3/60,s.create=function(T){T=T||{};var b={positionIterations:6,velocityIterations:4,constraintIterations:2,enableSleeping:!1,events:[],plugin:{},gravity:{x:0,y:1,scale:.001},timing:{timestamp:0,timeScale:1,lastDelta:0,lastElapsed:0,lastUpdatesPerFrame:0}},C=m.extend(b,T);return C.world=T.world||x.create({label:"World"}),C.pairs=T.pairs||v.create(),C.detector=T.detector||g.create(),C.detector.pairs=C.pairs,C.grid={buckets:[]},C.world.gravity=C.gravity,C.broadphase=C.grid,C.metrics={},C},s.update=function(T,b){var C=m.now(),R=T.world,z=T.detector,U=T.pairs,M=T.timing,B=M.timestamp,D;b>s._deltaMax&&m.warnOnce("Matter.Engine.update: delta argument is recommended to be less than or equal to",s._deltaMax.toFixed(3),"ms."),b=typeof b<"u"?b:m._baseDelta,b*=M.timeScale,M.timestamp+=b,M.lastDelta=b;var E={timestamp:M.timestamp,delta:b};p.trigger(T,"beforeUpdate",E);var V=x.allBodies(R),O=x.allConstraints(R);for(R.isModified&&(g.setBodies(z,V),x.setModified(R,!1,!1,!0)),T.enableSleeping&&f.update(V,b),s._bodiesApplyGravity(V,T.gravity),b>0&&s._bodiesUpdate(V,b),p.trigger(T,"beforeSolve",E),y.preSolveAll(V),D=0;D<T.constraintIterations;D++)y.solveAll(O,b);y.postSolveAll(V);var L=g.collisions(z);v.update(U,L,B),T.enableSleeping&&f.afterCollisions(U.list),U.collisionStart.length>0&&p.trigger(T,"collisionStart",{pairs:U.collisionStart,timestamp:M.timestamp,delta:b});var H=m.clamp(20/T.positionIterations,0,1);for(h.preSolvePosition(U.list),D=0;D<T.positionIterations;D++)h.solvePosition(U.list,b,H);for(h.postSolvePosition(V),y.preSolveAll(V),D=0;D<T.constraintIterations;D++)y.solveAll(O,b);for(y.postSolveAll(V),h.preSolveVelocity(U.list),D=0;D<T.velocityIterations;D++)h.solveVelocity(U.list,b);return s._bodiesUpdateVelocities(V),U.collisionActive.length>0&&p.trigger(T,"collisionActive",{pairs:U.collisionActive,timestamp:M.timestamp,delta:b}),U.collisionEnd.length>0&&p.trigger(T,"collisionEnd",{pairs:U.collisionEnd,timestamp:M.timestamp,delta:b}),s._bodiesClearForces(V),p.trigger(T,"afterUpdate",E),T.timing.lastElapsed=m.now()-C,T},s.merge=function(T,b){if(m.extend(T,b),b.world){T.world=b.world,s.clear(T);for(var C=x.allBodies(T.world),R=0;R<C.length;R++){var z=C[R];f.set(z,!1),z.id=m.nextId()}}},s.clear=function(T){v.clear(T.pairs),g.clear(T.detector)},s._bodiesClearForces=function(T){for(var b=T.length,C=0;C<b;C++){var R=T[C];R.force.x=0,R.force.y=0,R.torque=0}},s._bodiesApplyGravity=function(T,b){var C=typeof b.scale<"u"?b.scale:.001,R=T.length;if(!(b.x===0&&b.y===0||C===0))for(var z=0;z<R;z++){var U=T[z];U.isStatic||U.isSleeping||(U.force.y+=U.mass*b.y*C,U.force.x+=U.mass*b.x*C)}},s._bodiesUpdate=function(T,b){for(var C=T.length,R=0;R<C;R++){var z=T[R];z.isStatic||z.isSleeping||S.update(z,b)}},s._bodiesUpdateVelocities=function(T){for(var b=T.length,C=0;C<b;C++)S.updateVelocities(T[C])}})()}),(function(o,r,c){var s={};o.exports=s;var f=c(3),h=c(0),g=c(1);(function(){s._restingThresh=2,s._restingThreshTangent=Math.sqrt(6),s._positionDampen=.9,s._positionWarming=.8,s._frictionNormalMultiplier=5,s._frictionMaxStatic=Number.MAX_VALUE,s.preSolvePosition=function(v){var p,x,y,m=v.length;for(p=0;p<m;p++)x=v[p],x.isActive&&(y=x.contactCount,x.collision.parentA.totalContacts+=y,x.collision.parentB.totalContacts+=y)},s.solvePosition=function(v,p,x){var y,m,S,T,b,C,R,z,U=s._positionDampen*(x||1),M=h.clamp(p/h._baseDelta,0,1),B=v.length;for(y=0;y<B;y++)m=v[y],!(!m.isActive||m.isSensor)&&(S=m.collision,T=S.parentA,b=S.parentB,C=S.normal,m.separation=S.depth+C.x*(b.positionImpulse.x-T.positionImpulse.x)+C.y*(b.positionImpulse.y-T.positionImpulse.y));for(y=0;y<B;y++)m=v[y],!(!m.isActive||m.isSensor)&&(S=m.collision,T=S.parentA,b=S.parentB,C=S.normal,z=m.separation-m.slop*M,(T.isStatic||b.isStatic)&&(z*=2),T.isStatic||T.isSleeping||(R=U/T.totalContacts,T.positionImpulse.x+=C.x*z*R,T.positionImpulse.y+=C.y*z*R),b.isStatic||b.isSleeping||(R=U/b.totalContacts,b.positionImpulse.x-=C.x*z*R,b.positionImpulse.y-=C.y*z*R))},s.postSolvePosition=function(v){for(var p=s._positionWarming,x=v.length,y=f.translate,m=g.update,S=0;S<x;S++){var T=v[S],b=T.positionImpulse,C=b.x,R=b.y,z=T.velocity;if(T.totalContacts=0,C!==0||R!==0){for(var U=0;U<T.parts.length;U++){var M=T.parts[U];y(M.vertices,b),m(M.bounds,M.vertices,z),M.position.x+=C,M.position.y+=R}T.positionPrev.x+=C,T.positionPrev.y+=R,C*z.x+R*z.y<0?(b.x=0,b.y=0):(b.x*=p,b.y*=p)}}},s.preSolveVelocity=function(v){var p=v.length,x,y;for(x=0;x<p;x++){var m=v[x];if(!(!m.isActive||m.isSensor)){var S=m.contacts,T=m.contactCount,b=m.collision,C=b.parentA,R=b.parentB,z=b.normal,U=b.tangent;for(y=0;y<T;y++){var M=S[y],B=M.vertex,D=M.normalImpulse,E=M.tangentImpulse;if(D!==0||E!==0){var V=z.x*D+U.x*E,O=z.y*D+U.y*E;C.isStatic||C.isSleeping||(C.positionPrev.x+=V*C.inverseMass,C.positionPrev.y+=O*C.inverseMass,C.anglePrev+=C.inverseInertia*((B.x-C.position.x)*O-(B.y-C.position.y)*V)),R.isStatic||R.isSleeping||(R.positionPrev.x-=V*R.inverseMass,R.positionPrev.y-=O*R.inverseMass,R.anglePrev-=R.inverseInertia*((B.x-R.position.x)*O-(B.y-R.position.y)*V))}}}}},s.solveVelocity=function(v,p){var x=p/h._baseDelta,y=x*x,m=y*x,S=-s._restingThresh*x,T=s._restingThreshTangent,b=s._frictionNormalMultiplier*x,C=s._frictionMaxStatic,R=v.length,z,U,M,B;for(M=0;M<R;M++){var D=v[M];if(!(!D.isActive||D.isSensor)){var E=D.collision,V=E.parentA,O=E.parentB,L=E.normal.x,H=E.normal.y,Q=E.tangent.x,nt=E.tangent.y,et=D.inverseMass,j=D.friction*D.frictionStatic*b,Z=D.contacts,$=D.contactCount,lt=1/$,ft=V.position.x-V.positionPrev.x,_=V.position.y-V.positionPrev.y,Y=V.angle-V.anglePrev,k=O.position.x-O.positionPrev.x,it=O.position.y-O.positionPrev.y,st=O.angle-O.anglePrev;for(B=0;B<$;B++){var at=Z[B],ct=at.vertex,Et=ct.x-V.position.x,mt=ct.y-V.position.y,ie=ct.x-O.position.x,Jt=ct.y-O.position.y,Wt=ft-mt*Y,pn=_+Et*Y,Ze=k-Jt*st,xi=it+ie*st,Ke=Wt-Ze,Qt=pn-xi,Fn=L*Ke+H*Qt,ve=Q*Ke+nt*Qt,bt=D.separation+Fn,It=Math.min(bt,1);It=bt<0?0:It;var Rt=It*j;ve<-Rt||ve>Rt?(U=ve>0?ve:-ve,z=D.friction*(ve>0?1:-1)*m,z<-U?z=-U:z>U&&(z=U)):(z=ve,U=C);var vt=Et*H-mt*L,zt=ie*H-Jt*L,ye=lt/(et+V.inverseInertia*vt*vt+O.inverseInertia*zt*zt),xe=(1+D.restitution)*Fn*ye;if(z*=ye,Fn<S)at.normalImpulse=0;else{var Se=at.normalImpulse;at.normalImpulse+=xe,at.normalImpulse>0&&(at.normalImpulse=0),xe=at.normalImpulse-Se}if(ve<-T||ve>T)at.tangentImpulse=0;else{var Ce=at.tangentImpulse;at.tangentImpulse+=z,at.tangentImpulse<-U&&(at.tangentImpulse=-U),at.tangentImpulse>U&&(at.tangentImpulse=U),z=at.tangentImpulse-Ce}var on=L*xe+Q*z,gn=H*xe+nt*z;V.isStatic||V.isSleeping||(V.positionPrev.x+=on*V.inverseMass,V.positionPrev.y+=gn*V.inverseMass,V.anglePrev+=(Et*gn-mt*on)*V.inverseInertia),O.isStatic||O.isSleeping||(O.positionPrev.x-=on*O.inverseMass,O.positionPrev.y-=gn*O.inverseMass,O.anglePrev-=(ie*gn-Jt*on)*O.inverseInertia)}}}}})()}),(function(o,r,c){var s={};o.exports=s;var f=c(9),h=c(0);(function(){s.create=function(g){return h.extend({table:{},list:[],collisionStart:[],collisionActive:[],collisionEnd:[]},g)},s.update=function(g,v,p){var x=f.update,y=f.create,m=f.setActive,S=g.table,T=g.list,b=T.length,C=b,R=g.collisionStart,z=g.collisionEnd,U=g.collisionActive,M=v.length,B=0,D=0,E=0,V,O,L;for(L=0;L<M;L++)V=v[L],O=V.pair,O?(O.isActive&&(U[E++]=O),x(O,V,p)):(O=y(V,p),S[O.id]=O,R[B++]=O,T[C++]=O);for(C=0,b=T.length,L=0;L<b;L++)O=T[L],O.timeUpdated>=p?T[C++]=O:(m(O,!1,p),O.collision.bodyA.sleepCounter>0&&O.collision.bodyB.sleepCounter>0?T[C++]=O:(z[D++]=O,delete S[O.id]));T.length!==C&&(T.length=C),R.length!==B&&(R.length=B),z.length!==D&&(z.length=D),U.length!==E&&(U.length=E)},s.clear=function(g){return g.table={},g.list.length=0,g.collisionStart.length=0,g.collisionActive.length=0,g.collisionEnd.length=0,g}})()}),(function(o,r,c){var s=o.exports=c(21);s.Axes=c(11),s.Bodies=c(12),s.Body=c(4),s.Bounds=c(1),s.Collision=c(8),s.Common=c(0),s.Composite=c(6),s.Composites=c(22),s.Constraint=c(10),s.Contact=c(16),s.Detector=c(13),s.Engine=c(17),s.Events=c(5),s.Grid=c(23),s.Mouse=c(14),s.MouseConstraint=c(24),s.Pair=c(9),s.Pairs=c(19),s.Plugin=c(15),s.Query=c(25),s.Render=c(26),s.Resolver=c(18),s.Runner=c(27),s.SAT=c(28),s.Sleeping=c(7),s.Svg=c(29),s.Vector=c(2),s.Vertices=c(3),s.World=c(30),s.Engine.run=s.Runner.run,s.Common.deprecated(s.Engine,"run","Engine.run ➤ use Matter.Runner.run(engine) instead")}),(function(o,r,c){var s={};o.exports=s;var f=c(15),h=c(0);(function(){s.name="matter-js",s.version="0.20.0",s.uses=[],s.used=[],s.use=function(){f.use(s,Array.prototype.slice.call(arguments))},s.before=function(g,v){return g=g.replace(/^Matter./,""),h.chainPathBefore(s,g,v)},s.after=function(g,v){return g=g.replace(/^Matter./,""),h.chainPathAfter(s,g,v)}})()}),(function(o,r,c){var s={};o.exports=s;var f=c(6),h=c(10),g=c(0),v=c(4),p=c(12),x=g.deprecated;(function(){s.stack=function(y,m,S,T,b,C,R){for(var z=f.create({label:"Stack"}),U=y,M=m,B,D=0,E=0;E<T;E++){for(var V=0,O=0;O<S;O++){var L=R(U,M,O,E,B,D);if(L){var H=L.bounds.max.y-L.bounds.min.y,Q=L.bounds.max.x-L.bounds.min.x;H>V&&(V=H),v.translate(L,{x:Q*.5,y:H*.5}),U=L.bounds.max.x+b,f.addBody(z,L),B=L,D+=1}else U+=b}M+=V+C,U=y}return z},s.chain=function(y,m,S,T,b,C){for(var R=y.bodies,z=1;z<R.length;z++){var U=R[z-1],M=R[z],B=U.bounds.max.y-U.bounds.min.y,D=U.bounds.max.x-U.bounds.min.x,E=M.bounds.max.y-M.bounds.min.y,V=M.bounds.max.x-M.bounds.min.x,O={bodyA:U,pointA:{x:D*m,y:B*S},bodyB:M,pointB:{x:V*T,y:E*b}},L=g.extend(O,C);f.addConstraint(y,h.create(L))}return y.label+=" Chain",y},s.mesh=function(y,m,S,T,b){var C=y.bodies,R,z,U,M,B;for(R=0;R<S;R++){for(z=1;z<m;z++)U=C[z-1+R*m],M=C[z+R*m],f.addConstraint(y,h.create(g.extend({bodyA:U,bodyB:M},b)));if(R>0)for(z=0;z<m;z++)U=C[z+(R-1)*m],M=C[z+R*m],f.addConstraint(y,h.create(g.extend({bodyA:U,bodyB:M},b))),T&&z>0&&(B=C[z-1+(R-1)*m],f.addConstraint(y,h.create(g.extend({bodyA:B,bodyB:M},b)))),T&&z<m-1&&(B=C[z+1+(R-1)*m],f.addConstraint(y,h.create(g.extend({bodyA:B,bodyB:M},b))))}return y.label+=" Mesh",y},s.pyramid=function(y,m,S,T,b,C,R){return s.stack(y,m,S,T,b,C,function(z,U,M,B,D,E){var V=Math.min(T,Math.ceil(S/2)),O=D?D.bounds.max.x-D.bounds.min.x:0;if(!(B>V)){B=V-B;var L=B,H=S-1-B;if(!(M<L||M>H)){E===1&&v.translate(D,{x:(M+(S%2===1?1:-1))*O,y:0});var Q=D?M*O:0;return R(y+Q+M*b,U,M,B,D,E)}}})},s.newtonsCradle=function(y,m,S,T,b){for(var C=f.create({label:"Newtons Cradle"}),R=0;R<S;R++){var z=1.9,U=p.circle(y+R*(T*z),m+b,T,{inertia:1/0,restitution:1,friction:0,frictionAir:1e-4,slop:1}),M=h.create({pointA:{x:y+R*(T*z),y:m},bodyB:U});f.addBody(C,U),f.addConstraint(C,M)}return C},x(s,"newtonsCradle","Composites.newtonsCradle ➤ moved to newtonsCradle example"),s.car=function(y,m,S,T,b){var C=v.nextGroup(!0),R=20,z=-S*.5+R,U=S*.5-R,M=0,B=f.create({label:"Car"}),D=p.rectangle(y,m,S,T,{collisionFilter:{group:C},chamfer:{radius:T*.5},density:2e-4}),E=p.circle(y+z,m+M,b,{collisionFilter:{group:C},friction:.8}),V=p.circle(y+U,m+M,b,{collisionFilter:{group:C},friction:.8}),O=h.create({bodyB:D,pointB:{x:z,y:M},bodyA:E,stiffness:1,length:0}),L=h.create({bodyB:D,pointB:{x:U,y:M},bodyA:V,stiffness:1,length:0});return f.addBody(B,D),f.addBody(B,E),f.addBody(B,V),f.addConstraint(B,O),f.addConstraint(B,L),B},x(s,"car","Composites.car ➤ moved to car example"),s.softBody=function(y,m,S,T,b,C,R,z,U,M){U=g.extend({inertia:1/0},U),M=g.extend({stiffness:.2,render:{type:"line",anchors:!1}},M);var B=s.stack(y,m,S,T,b,C,function(D,E){return p.circle(D,E,z,U)});return s.mesh(B,S,T,R,M),B.label="Soft Body",B},x(s,"softBody","Composites.softBody ➤ moved to softBody and cloth examples")})()}),(function(o,r,c){var s={};o.exports=s;var f=c(9),h=c(0),g=h.deprecated;(function(){s.create=function(v){var p={buckets:{},pairs:{},pairsList:[],bucketWidth:48,bucketHeight:48};return h.extend(p,v)},s.update=function(v,p,x,y){var m,S,T,b=x.world,C=v.buckets,R,z,U=!1;for(m=0;m<p.length;m++){var M=p[m];if(!(M.isSleeping&&!y)&&!(b.bounds&&(M.bounds.max.x<b.bounds.min.x||M.bounds.min.x>b.bounds.max.x||M.bounds.max.y<b.bounds.min.y||M.bounds.min.y>b.bounds.max.y))){var B=s._getRegion(v,M);if(!M.region||B.id!==M.region.id||y){(!M.region||y)&&(M.region=B);var D=s._regionUnion(B,M.region);for(S=D.startCol;S<=D.endCol;S++)for(T=D.startRow;T<=D.endRow;T++){z=s._getBucketId(S,T),R=C[z];var E=S>=B.startCol&&S<=B.endCol&&T>=B.startRow&&T<=B.endRow,V=S>=M.region.startCol&&S<=M.region.endCol&&T>=M.region.startRow&&T<=M.region.endRow;!E&&V&&V&&R&&s._bucketRemoveBody(v,R,M),(M.region===B||E&&!V||y)&&(R||(R=s._createBucket(C,z)),s._bucketAddBody(v,R,M))}M.region=B,U=!0}}}U&&(v.pairsList=s._createActivePairsList(v))},g(s,"update","Grid.update ➤ replaced by Matter.Detector"),s.clear=function(v){v.buckets={},v.pairs={},v.pairsList=[]},g(s,"clear","Grid.clear ➤ replaced by Matter.Detector"),s._regionUnion=function(v,p){var x=Math.min(v.startCol,p.startCol),y=Math.max(v.endCol,p.endCol),m=Math.min(v.startRow,p.startRow),S=Math.max(v.endRow,p.endRow);return s._createRegion(x,y,m,S)},s._getRegion=function(v,p){var x=p.bounds,y=Math.floor(x.min.x/v.bucketWidth),m=Math.floor(x.max.x/v.bucketWidth),S=Math.floor(x.min.y/v.bucketHeight),T=Math.floor(x.max.y/v.bucketHeight);return s._createRegion(y,m,S,T)},s._createRegion=function(v,p,x,y){return{id:v+","+p+","+x+","+y,startCol:v,endCol:p,startRow:x,endRow:y}},s._getBucketId=function(v,p){return"C"+v+"R"+p},s._createBucket=function(v,p){var x=v[p]=[];return x},s._bucketAddBody=function(v,p,x){var y=v.pairs,m=f.id,S=p.length,T;for(T=0;T<S;T++){var b=p[T];if(!(x.id===b.id||x.isStatic&&b.isStatic)){var C=m(x,b),R=y[C];R?R[2]+=1:y[C]=[x,b,1]}}p.push(x)},s._bucketRemoveBody=function(v,p,x){var y=v.pairs,m=f.id,S;p.splice(h.indexOf(p,x),1);var T=p.length;for(S=0;S<T;S++){var b=y[m(x,p[S])];b&&(b[2]-=1)}},s._createActivePairsList=function(v){var p,x=v.pairs,y=h.keys(x),m=y.length,S=[],T;for(T=0;T<m;T++)p=x[y[T]],p[2]>0?S.push(p):delete x[y[T]];return S}})()}),(function(o,r,c){var s={};o.exports=s;var f=c(3),h=c(7),g=c(14),v=c(5),p=c(13),x=c(10),y=c(6),m=c(0),S=c(1);(function(){s.create=function(T,b){var C=(T?T.mouse:null)||(b?b.mouse:null);C||(T&&T.render&&T.render.canvas?C=g.create(T.render.canvas):b&&b.element?C=g.create(b.element):(C=g.create(),m.warn("MouseConstraint.create: options.mouse was undefined, options.element was undefined, may not function as expected")));var R=x.create({label:"Mouse Constraint",pointA:C.position,pointB:{x:0,y:0},length:.01,stiffness:.1,angularStiffness:1,render:{strokeStyle:"#90EE90",lineWidth:3}}),z={type:"mouseConstraint",mouse:C,element:null,body:null,constraint:R,collisionFilter:{category:1,mask:4294967295,group:0}},U=m.extend(z,b);return v.on(T,"beforeUpdate",function(){var M=y.allBodies(T.world);s.update(U,M),s._triggerEvents(U)}),U},s.update=function(T,b){var C=T.mouse,R=T.constraint,z=T.body;if(C.button===0){if(R.bodyB)h.set(R.bodyB,!1),R.pointA=C.position;else for(var U=0;U<b.length;U++)if(z=b[U],S.contains(z.bounds,C.position)&&p.canCollide(z.collisionFilter,T.collisionFilter))for(var M=z.parts.length>1?1:0;M<z.parts.length;M++){var B=z.parts[M];if(f.contains(B.vertices,C.position)){R.pointA=C.position,R.bodyB=T.body=z,R.pointB={x:C.position.x-z.position.x,y:C.position.y-z.position.y},R.angleB=z.angle,h.set(z,!1),v.trigger(T,"startdrag",{mouse:C,body:z});break}}}else R.bodyB=T.body=null,R.pointB=null,z&&v.trigger(T,"enddrag",{mouse:C,body:z})},s._triggerEvents=function(T){var b=T.mouse,C=b.sourceEvents;C.mousemove&&v.trigger(T,"mousemove",{mouse:b}),C.mousedown&&v.trigger(T,"mousedown",{mouse:b}),C.mouseup&&v.trigger(T,"mouseup",{mouse:b}),g.clearSourceEvents(b)}})()}),(function(o,r,c){var s={};o.exports=s;var f=c(2),h=c(8),g=c(1),v=c(12),p=c(3);(function(){s.collides=function(x,y){for(var m=[],S=y.length,T=x.bounds,b=h.collides,C=g.overlaps,R=0;R<S;R++){var z=y[R],U=z.parts.length,M=U===1?0:1;if(C(z.bounds,T))for(var B=M;B<U;B++){var D=z.parts[B];if(C(D.bounds,T)){var E=b(D,x);if(E){m.push(E);break}}}}return m},s.ray=function(x,y,m,S){S=S||1e-100;for(var T=f.angle(y,m),b=f.magnitude(f.sub(y,m)),C=(m.x+y.x)*.5,R=(m.y+y.y)*.5,z=v.rectangle(C,R,b,S,{angle:T}),U=s.collides(z,x),M=0;M<U.length;M+=1){var B=U[M];B.body=B.bodyB=B.bodyA}return U},s.region=function(x,y,m){for(var S=[],T=0;T<x.length;T++){var b=x[T],C=g.overlaps(b.bounds,y);(C&&!m||!C&&m)&&S.push(b)}return S},s.point=function(x,y){for(var m=[],S=0;S<x.length;S++){var T=x[S];if(g.contains(T.bounds,y))for(var b=T.parts.length===1?0:1;b<T.parts.length;b++){var C=T.parts[b];if(g.contains(C.bounds,y)&&p.contains(C.vertices,y)){m.push(T);break}}}return m}})()}),(function(o,r,c){var s={};o.exports=s;var f=c(4),h=c(0),g=c(6),v=c(1),p=c(5),x=c(2),y=c(14);(function(){var m,S;typeof window<"u"&&(m=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(M){window.setTimeout(function(){M(h.now())},1e3/60)},S=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame),s._goodFps=30,s._goodDelta=1e3/60,s.create=function(M){var B={engine:null,element:null,canvas:null,mouse:null,frameRequestId:null,timing:{historySize:60,delta:0,deltaHistory:[],lastTime:0,lastTimestamp:0,lastElapsed:0,timestampElapsed:0,timestampElapsedHistory:[],engineDeltaHistory:[],engineElapsedHistory:[],engineUpdatesHistory:[],elapsedHistory:[]},options:{width:800,height:600,pixelRatio:1,background:"#14151f",wireframeBackground:"#14151f",wireframeStrokeStyle:"#bbb",hasBounds:!!M.bounds,enabled:!0,wireframes:!0,showSleeping:!0,showDebug:!1,showStats:!1,showPerformance:!1,showBounds:!1,showVelocity:!1,showCollisions:!1,showSeparations:!1,showAxes:!1,showPositions:!1,showAngleIndicator:!1,showIds:!1,showVertexNumbers:!1,showConvexHulls:!1,showInternalEdges:!1,showMousePosition:!1}},D=h.extend(B,M);return D.canvas&&(D.canvas.width=D.options.width||D.canvas.width,D.canvas.height=D.options.height||D.canvas.height),D.mouse=M.mouse,D.engine=M.engine,D.canvas=D.canvas||C(D.options.width,D.options.height),D.context=D.canvas.getContext("2d"),D.textures={},D.bounds=D.bounds||{min:{x:0,y:0},max:{x:D.canvas.width,y:D.canvas.height}},D.controller=s,D.options.showBroadphase=!1,D.options.pixelRatio!==1&&s.setPixelRatio(D,D.options.pixelRatio),h.isElement(D.element)&&D.element.appendChild(D.canvas),D},s.run=function(M){(function B(D){M.frameRequestId=m(B),T(M,D),s.world(M,D),M.context.setTransform(M.options.pixelRatio,0,0,M.options.pixelRatio,0,0),(M.options.showStats||M.options.showDebug)&&s.stats(M,M.context,D),(M.options.showPerformance||M.options.showDebug)&&s.performance(M,M.context,D),M.context.setTransform(1,0,0,1,0,0)})()},s.stop=function(M){S(M.frameRequestId)},s.setPixelRatio=function(M,B){var D=M.options,E=M.canvas;B==="auto"&&(B=R(E)),D.pixelRatio=B,E.setAttribute("data-pixel-ratio",B),E.width=D.width*B,E.height=D.height*B,E.style.width=D.width+"px",E.style.height=D.height+"px"},s.setSize=function(M,B,D){M.options.width=B,M.options.height=D,M.bounds.max.x=M.bounds.min.x+B,M.bounds.max.y=M.bounds.min.y+D,M.options.pixelRatio!==1?s.setPixelRatio(M,M.options.pixelRatio):(M.canvas.width=B,M.canvas.height=D)},s.lookAt=function(M,B,D,E){E=typeof E<"u"?E:!0,B=h.isArray(B)?B:[B],D=D||{x:0,y:0};for(var V={min:{x:1/0,y:1/0},max:{x:-1/0,y:-1/0}},O=0;O<B.length;O+=1){var L=B[O],H=L.bounds?L.bounds.min:L.min||L.position||L,Q=L.bounds?L.bounds.max:L.max||L.position||L;H&&Q&&(H.x<V.min.x&&(V.min.x=H.x),Q.x>V.max.x&&(V.max.x=Q.x),H.y<V.min.y&&(V.min.y=H.y),Q.y>V.max.y&&(V.max.y=Q.y))}var nt=V.max.x-V.min.x+2*D.x,et=V.max.y-V.min.y+2*D.y,j=M.canvas.height,Z=M.canvas.width,$=Z/j,lt=nt/et,ft=1,_=1;lt>$?_=lt/$:ft=$/lt,M.options.hasBounds=!0,M.bounds.min.x=V.min.x,M.bounds.max.x=V.min.x+nt*ft,M.bounds.min.y=V.min.y,M.bounds.max.y=V.min.y+et*_,E&&(M.bounds.min.x+=nt*.5-nt*ft*.5,M.bounds.max.x+=nt*.5-nt*ft*.5,M.bounds.min.y+=et*.5-et*_*.5,M.bounds.max.y+=et*.5-et*_*.5),M.bounds.min.x-=D.x,M.bounds.max.x-=D.x,M.bounds.min.y-=D.y,M.bounds.max.y-=D.y,M.mouse&&(y.setScale(M.mouse,{x:(M.bounds.max.x-M.bounds.min.x)/M.canvas.width,y:(M.bounds.max.y-M.bounds.min.y)/M.canvas.height}),y.setOffset(M.mouse,M.bounds.min))},s.startViewTransform=function(M){var B=M.bounds.max.x-M.bounds.min.x,D=M.bounds.max.y-M.bounds.min.y,E=B/M.options.width,V=D/M.options.height;M.context.setTransform(M.options.pixelRatio/E,0,0,M.options.pixelRatio/V,0,0),M.context.translate(-M.bounds.min.x,-M.bounds.min.y)},s.endViewTransform=function(M){M.context.setTransform(M.options.pixelRatio,0,0,M.options.pixelRatio,0,0)},s.world=function(M,B){var D=h.now(),E=M.engine,V=E.world,O=M.canvas,L=M.context,H=M.options,Q=M.timing,nt=g.allBodies(V),et=g.allConstraints(V),j=H.wireframes?H.wireframeBackground:H.background,Z=[],$=[],lt,ft={timestamp:E.timing.timestamp};if(p.trigger(M,"beforeRender",ft),M.currentBackground!==j&&U(M,j),L.globalCompositeOperation="source-in",L.fillStyle="transparent",L.fillRect(0,0,O.width,O.height),L.globalCompositeOperation="source-over",H.hasBounds){for(lt=0;lt<nt.length;lt++){var _=nt[lt];v.overlaps(_.bounds,M.bounds)&&Z.push(_)}for(lt=0;lt<et.length;lt++){var Y=et[lt],k=Y.bodyA,it=Y.bodyB,st=Y.pointA,at=Y.pointB;k&&(st=x.add(k.position,Y.pointA)),it&&(at=x.add(it.position,Y.pointB)),!(!st||!at)&&(v.contains(M.bounds,st)||v.contains(M.bounds,at))&&$.push(Y)}s.startViewTransform(M),M.mouse&&(y.setScale(M.mouse,{x:(M.bounds.max.x-M.bounds.min.x)/M.options.width,y:(M.bounds.max.y-M.bounds.min.y)/M.options.height}),y.setOffset(M.mouse,M.bounds.min))}else $=et,Z=nt,M.options.pixelRatio!==1&&M.context.setTransform(M.options.pixelRatio,0,0,M.options.pixelRatio,0,0);!H.wireframes||E.enableSleeping&&H.showSleeping?s.bodies(M,Z,L):(H.showConvexHulls&&s.bodyConvexHulls(M,Z,L),s.bodyWireframes(M,Z,L)),H.showBounds&&s.bodyBounds(M,Z,L),(H.showAxes||H.showAngleIndicator)&&s.bodyAxes(M,Z,L),H.showPositions&&s.bodyPositions(M,Z,L),H.showVelocity&&s.bodyVelocity(M,Z,L),H.showIds&&s.bodyIds(M,Z,L),H.showSeparations&&s.separations(M,E.pairs.list,L),H.showCollisions&&s.collisions(M,E.pairs.list,L),H.showVertexNumbers&&s.vertexNumbers(M,Z,L),H.showMousePosition&&s.mousePosition(M,M.mouse,L),s.constraints($,L),H.hasBounds&&s.endViewTransform(M),p.trigger(M,"afterRender",ft),Q.lastElapsed=h.now()-D},s.stats=function(M,B,D){for(var E=M.engine,V=E.world,O=g.allBodies(V),L=0,H=55,Q=44,nt=0,et=0,j=0;j<O.length;j+=1)L+=O[j].parts.length;var Z={Part:L,Body:O.length,Cons:g.allConstraints(V).length,Comp:g.allComposites(V).length,Pair:E.pairs.list.length};B.fillStyle="#0e0f19",B.fillRect(nt,et,H*5.5,Q),B.font="12px Arial",B.textBaseline="top",B.textAlign="right";for(var $ in Z){var lt=Z[$];B.fillStyle="#aaa",B.fillText($,nt+H,et+8),B.fillStyle="#eee",B.fillText(lt,nt+H,et+26),nt+=H}},s.performance=function(M,B){var D=M.engine,E=M.timing,V=E.deltaHistory,O=E.elapsedHistory,L=E.timestampElapsedHistory,H=E.engineDeltaHistory,Q=E.engineUpdatesHistory,nt=E.engineElapsedHistory,et=D.timing.lastUpdatesPerFrame,j=D.timing.lastDelta,Z=b(V),$=b(O),lt=b(H),ft=b(Q),_=b(nt),Y=b(L),k=Y/Z||0,it=Math.round(Z/j),st=1e3/Z||0,at=4,ct=12,Et=60,mt=34,ie=10,Jt=69;B.fillStyle="#0e0f19",B.fillRect(0,50,ct*5+Et*6+22,mt),s.status(B,ie,Jt,Et,at,V.length,Math.round(st)+" fps",st/s._goodFps,function(Wt){return V[Wt]/Z-1}),s.status(B,ie+ct+Et,Jt,Et,at,H.length,j.toFixed(2)+" dt",s._goodDelta/j,function(Wt){return H[Wt]/lt-1}),s.status(B,ie+(ct+Et)*2,Jt,Et,at,Q.length,et+" upf",Math.pow(h.clamp(ft/it||1,0,1),4),function(Wt){return Q[Wt]/ft-1}),s.status(B,ie+(ct+Et)*3,Jt,Et,at,nt.length,_.toFixed(2)+" ut",1-et*_/s._goodFps,function(Wt){return nt[Wt]/_-1}),s.status(B,ie+(ct+Et)*4,Jt,Et,at,O.length,$.toFixed(2)+" rt",1-$/s._goodFps,function(Wt){return O[Wt]/$-1}),s.status(B,ie+(ct+Et)*5,Jt,Et,at,L.length,k.toFixed(2)+" x",k*k*k,function(Wt){return(L[Wt]/V[Wt]/k||0)-1})},s.status=function(M,B,D,E,V,O,L,H,Q){M.strokeStyle="#888",M.fillStyle="#444",M.lineWidth=1,M.fillRect(B,D+7,E,1),M.beginPath(),M.moveTo(B,D+7-V*h.clamp(.4*Q(0),-2,2));for(var nt=0;nt<E;nt+=1)M.lineTo(B+nt,D+7-(nt<O?V*h.clamp(.4*Q(nt),-2,2):0));M.stroke(),M.fillStyle="hsl("+h.clamp(25+95*H,0,120)+",100%,60%)",M.fillRect(B,D-7,4,4),M.font="12px Arial",M.textBaseline="middle",M.textAlign="right",M.fillStyle="#eee",M.fillText(L,B+E,D-5)},s.constraints=function(M,B){for(var D=B,E=0;E<M.length;E++){var V=M[E];if(!(!V.render.visible||!V.pointA||!V.pointB)){var O=V.bodyA,L=V.bodyB,H,Q;if(O?H=x.add(O.position,V.pointA):H=V.pointA,V.render.type==="pin")D.beginPath(),D.arc(H.x,H.y,3,0,2*Math.PI),D.closePath();else{if(L?Q=x.add(L.position,V.pointB):Q=V.pointB,D.beginPath(),D.moveTo(H.x,H.y),V.render.type==="spring")for(var nt=x.sub(Q,H),et=x.perp(x.normalise(nt)),j=Math.ceil(h.clamp(V.length/5,12,20)),Z,$=1;$<j;$+=1)Z=$%2===0?1:-1,D.lineTo(H.x+nt.x*($/j)+et.x*Z*4,H.y+nt.y*($/j)+et.y*Z*4);D.lineTo(Q.x,Q.y)}V.render.lineWidth&&(D.lineWidth=V.render.lineWidth,D.strokeStyle=V.render.strokeStyle,D.stroke()),V.render.anchors&&(D.fillStyle=V.render.strokeStyle,D.beginPath(),D.arc(H.x,H.y,3,0,2*Math.PI),D.arc(Q.x,Q.y,3,0,2*Math.PI),D.closePath(),D.fill())}}},s.bodies=function(M,B,D){var E=D;M.engine;var V=M.options,O=V.showInternalEdges||!V.wireframes,L,H,Q,nt;for(Q=0;Q<B.length;Q++)if(L=B[Q],!!L.render.visible){for(nt=L.parts.length>1?1:0;nt<L.parts.length;nt++)if(H=L.parts[nt],!!H.render.visible){if(V.showSleeping&&L.isSleeping?E.globalAlpha=.5*H.render.opacity:H.render.opacity!==1&&(E.globalAlpha=H.render.opacity),H.render.sprite&&H.render.sprite.texture&&!V.wireframes){var et=H.render.sprite,j=z(M,et.texture);E.translate(H.position.x,H.position.y),E.rotate(H.angle),E.drawImage(j,j.width*-et.xOffset*et.xScale,j.height*-et.yOffset*et.yScale,j.width*et.xScale,j.height*et.yScale),E.rotate(-H.angle),E.translate(-H.position.x,-H.position.y)}else{if(H.circleRadius)E.beginPath(),E.arc(H.position.x,H.position.y,H.circleRadius,0,2*Math.PI);else{E.beginPath(),E.moveTo(H.vertices[0].x,H.vertices[0].y);for(var Z=1;Z<H.vertices.length;Z++)!H.vertices[Z-1].isInternal||O?E.lineTo(H.vertices[Z].x,H.vertices[Z].y):E.moveTo(H.vertices[Z].x,H.vertices[Z].y),H.vertices[Z].isInternal&&!O&&E.moveTo(H.vertices[(Z+1)%H.vertices.length].x,H.vertices[(Z+1)%H.vertices.length].y);E.lineTo(H.vertices[0].x,H.vertices[0].y),E.closePath()}V.wireframes?(E.lineWidth=1,E.strokeStyle=M.options.wireframeStrokeStyle,E.stroke()):(E.fillStyle=H.render.fillStyle,H.render.lineWidth&&(E.lineWidth=H.render.lineWidth,E.strokeStyle=H.render.strokeStyle,E.stroke()),E.fill())}E.globalAlpha=1}}},s.bodyWireframes=function(M,B,D){var E=D,V=M.options.showInternalEdges,O,L,H,Q,nt;for(E.beginPath(),H=0;H<B.length;H++)if(O=B[H],!!O.render.visible)for(nt=O.parts.length>1?1:0;nt<O.parts.length;nt++){for(L=O.parts[nt],E.moveTo(L.vertices[0].x,L.vertices[0].y),Q=1;Q<L.vertices.length;Q++)!L.vertices[Q-1].isInternal||V?E.lineTo(L.vertices[Q].x,L.vertices[Q].y):E.moveTo(L.vertices[Q].x,L.vertices[Q].y),L.vertices[Q].isInternal&&!V&&E.moveTo(L.vertices[(Q+1)%L.vertices.length].x,L.vertices[(Q+1)%L.vertices.length].y);E.lineTo(L.vertices[0].x,L.vertices[0].y)}E.lineWidth=1,E.strokeStyle=M.options.wireframeStrokeStyle,E.stroke()},s.bodyConvexHulls=function(M,B,D){var E=D,V,O,L;for(E.beginPath(),O=0;O<B.length;O++)if(V=B[O],!(!V.render.visible||V.parts.length===1)){for(E.moveTo(V.vertices[0].x,V.vertices[0].y),L=1;L<V.vertices.length;L++)E.lineTo(V.vertices[L].x,V.vertices[L].y);E.lineTo(V.vertices[0].x,V.vertices[0].y)}E.lineWidth=1,E.strokeStyle="rgba(255,255,255,0.2)",E.stroke()},s.vertexNumbers=function(M,B,D){var E=D,V,O,L;for(V=0;V<B.length;V++){var H=B[V].parts;for(L=H.length>1?1:0;L<H.length;L++){var Q=H[L];for(O=0;O<Q.vertices.length;O++)E.fillStyle="rgba(255,255,255,0.2)",E.fillText(V+"_"+O,Q.position.x+(Q.vertices[O].x-Q.position.x)*.8,Q.position.y+(Q.vertices[O].y-Q.position.y)*.8)}}},s.mousePosition=function(M,B,D){var E=D;E.fillStyle="rgba(255,255,255,0.8)",E.fillText(B.position.x+" "+B.position.y,B.position.x+5,B.position.y-5)},s.bodyBounds=function(M,B,D){var E=D;M.engine;var V=M.options;E.beginPath();for(var O=0;O<B.length;O++){var L=B[O];if(L.render.visible)for(var H=B[O].parts,Q=H.length>1?1:0;Q<H.length;Q++){var nt=H[Q];E.rect(nt.bounds.min.x,nt.bounds.min.y,nt.bounds.max.x-nt.bounds.min.x,nt.bounds.max.y-nt.bounds.min.y)}}V.wireframes?E.strokeStyle="rgba(255,255,255,0.08)":E.strokeStyle="rgba(0,0,0,0.1)",E.lineWidth=1,E.stroke()},s.bodyAxes=function(M,B,D){var E=D;M.engine;var V=M.options,O,L,H,Q;for(E.beginPath(),L=0;L<B.length;L++){var nt=B[L],et=nt.parts;if(nt.render.visible)if(V.showAxes)for(H=et.length>1?1:0;H<et.length;H++)for(O=et[H],Q=0;Q<O.axes.length;Q++){var j=O.axes[Q];E.moveTo(O.position.x,O.position.y),E.lineTo(O.position.x+j.x*20,O.position.y+j.y*20)}else for(H=et.length>1?1:0;H<et.length;H++)for(O=et[H],Q=0;Q<O.axes.length;Q++)E.moveTo(O.position.x,O.position.y),E.lineTo((O.vertices[0].x+O.vertices[O.vertices.length-1].x)/2,(O.vertices[0].y+O.vertices[O.vertices.length-1].y)/2)}V.wireframes?(E.strokeStyle="indianred",E.lineWidth=1):(E.strokeStyle="rgba(255, 255, 255, 0.4)",E.globalCompositeOperation="overlay",E.lineWidth=2),E.stroke(),E.globalCompositeOperation="source-over"},s.bodyPositions=function(M,B,D){var E=D;M.engine;var V=M.options,O,L,H,Q;for(E.beginPath(),H=0;H<B.length;H++)if(O=B[H],!!O.render.visible)for(Q=0;Q<O.parts.length;Q++)L=O.parts[Q],E.arc(L.position.x,L.position.y,3,0,2*Math.PI,!1),E.closePath();for(V.wireframes?E.fillStyle="indianred":E.fillStyle="rgba(0,0,0,0.5)",E.fill(),E.beginPath(),H=0;H<B.length;H++)O=B[H],O.render.visible&&(E.arc(O.positionPrev.x,O.positionPrev.y,2,0,2*Math.PI,!1),E.closePath());E.fillStyle="rgba(255,165,0,0.8)",E.fill()},s.bodyVelocity=function(M,B,D){var E=D;E.beginPath();for(var V=0;V<B.length;V++){var O=B[V];if(O.render.visible){var L=f.getVelocity(O);E.moveTo(O.position.x,O.position.y),E.lineTo(O.position.x+L.x,O.position.y+L.y)}}E.lineWidth=3,E.strokeStyle="cornflowerblue",E.stroke()},s.bodyIds=function(M,B,D){var E=D,V,O;for(V=0;V<B.length;V++)if(B[V].render.visible){var L=B[V].parts;for(O=L.length>1?1:0;O<L.length;O++){var H=L[O];E.font="12px Arial",E.fillStyle="rgba(255,255,255,0.5)",E.fillText(H.id,H.position.x+10,H.position.y-10)}}},s.collisions=function(M,B,D){var E=D,V=M.options,O,L,H,Q;for(E.beginPath(),H=0;H<B.length;H++)if(O=B[H],!!O.isActive)for(L=O.collision,Q=0;Q<O.contactCount;Q++){var nt=O.contacts[Q],et=nt.vertex;E.rect(et.x-1.5,et.y-1.5,3.5,3.5)}for(V.wireframes?E.fillStyle="rgba(255,255,255,0.7)":E.fillStyle="orange",E.fill(),E.beginPath(),H=0;H<B.length;H++)if(O=B[H],!!O.isActive&&(L=O.collision,O.contactCount>0)){var j=O.contacts[0].vertex.x,Z=O.contacts[0].vertex.y;O.contactCount===2&&(j=(O.contacts[0].vertex.x+O.contacts[1].vertex.x)/2,Z=(O.contacts[0].vertex.y+O.contacts[1].vertex.y)/2),L.bodyB===L.supports[0].body||L.bodyA.isStatic===!0?E.moveTo(j-L.normal.x*8,Z-L.normal.y*8):E.moveTo(j+L.normal.x*8,Z+L.normal.y*8),E.lineTo(j,Z)}V.wireframes?E.strokeStyle="rgba(255,165,0,0.7)":E.strokeStyle="orange",E.lineWidth=1,E.stroke()},s.separations=function(M,B,D){var E=D,V=M.options,O,L,H,Q,nt;for(E.beginPath(),nt=0;nt<B.length;nt++)if(O=B[nt],!!O.isActive){L=O.collision,H=L.bodyA,Q=L.bodyB;var et=1;!Q.isStatic&&!H.isStatic&&(et=.5),Q.isStatic&&(et=0),E.moveTo(Q.position.x,Q.position.y),E.lineTo(Q.position.x-L.penetration.x*et,Q.position.y-L.penetration.y*et),et=1,!Q.isStatic&&!H.isStatic&&(et=.5),H.isStatic&&(et=0),E.moveTo(H.position.x,H.position.y),E.lineTo(H.position.x+L.penetration.x*et,H.position.y+L.penetration.y*et)}V.wireframes?E.strokeStyle="rgba(255,165,0,0.5)":E.strokeStyle="orange",E.stroke()},s.inspector=function(M,B){M.engine;var D=M.selected,E=M.render,V=E.options,O;if(V.hasBounds){var L=E.bounds.max.x-E.bounds.min.x,H=E.bounds.max.y-E.bounds.min.y,Q=L/E.options.width,nt=H/E.options.height;B.scale(1/Q,1/nt),B.translate(-E.bounds.min.x,-E.bounds.min.y)}for(var et=0;et<D.length;et++){var j=D[et].data;switch(B.translate(.5,.5),B.lineWidth=1,B.strokeStyle="rgba(255,165,0,0.9)",B.setLineDash([1,2]),j.type){case"body":O=j.bounds,B.beginPath(),B.rect(Math.floor(O.min.x-3),Math.floor(O.min.y-3),Math.floor(O.max.x-O.min.x+6),Math.floor(O.max.y-O.min.y+6)),B.closePath(),B.stroke();break;case"constraint":var Z=j.pointA;j.bodyA&&(Z=j.pointB),B.beginPath(),B.arc(Z.x,Z.y,10,0,2*Math.PI),B.closePath(),B.stroke();break}B.setLineDash([]),B.translate(-.5,-.5)}M.selectStart!==null&&(B.translate(.5,.5),B.lineWidth=1,B.strokeStyle="rgba(255,165,0,0.6)",B.fillStyle="rgba(255,165,0,0.1)",O=M.selectBounds,B.beginPath(),B.rect(Math.floor(O.min.x),Math.floor(O.min.y),Math.floor(O.max.x-O.min.x),Math.floor(O.max.y-O.min.y)),B.closePath(),B.stroke(),B.fill(),B.translate(-.5,-.5)),V.hasBounds&&B.setTransform(1,0,0,1,0,0)};var T=function(M,B){var D=M.engine,E=M.timing,V=E.historySize,O=D.timing.timestamp;E.delta=B-E.lastTime||s._goodDelta,E.lastTime=B,E.timestampElapsed=O-E.lastTimestamp||0,E.lastTimestamp=O,E.deltaHistory.unshift(E.delta),E.deltaHistory.length=Math.min(E.deltaHistory.length,V),E.engineDeltaHistory.unshift(D.timing.lastDelta),E.engineDeltaHistory.length=Math.min(E.engineDeltaHistory.length,V),E.timestampElapsedHistory.unshift(E.timestampElapsed),E.timestampElapsedHistory.length=Math.min(E.timestampElapsedHistory.length,V),E.engineUpdatesHistory.unshift(D.timing.lastUpdatesPerFrame),E.engineUpdatesHistory.length=Math.min(E.engineUpdatesHistory.length,V),E.engineElapsedHistory.unshift(D.timing.lastElapsed),E.engineElapsedHistory.length=Math.min(E.engineElapsedHistory.length,V),E.elapsedHistory.unshift(E.lastElapsed),E.elapsedHistory.length=Math.min(E.elapsedHistory.length,V)},b=function(M){for(var B=0,D=0;D<M.length;D+=1)B+=M[D];return B/M.length||0},C=function(M,B){var D=document.createElement("canvas");return D.width=M,D.height=B,D.oncontextmenu=function(){return!1},D.onselectstart=function(){return!1},D},R=function(M){var B=M.getContext("2d"),D=window.devicePixelRatio||1,E=B.webkitBackingStorePixelRatio||B.mozBackingStorePixelRatio||B.msBackingStorePixelRatio||B.oBackingStorePixelRatio||B.backingStorePixelRatio||1;return D/E},z=function(M,B){var D=M.textures[B];return D||(D=M.textures[B]=new Image,D.src=B,D)},U=function(M,B){var D=B;/(jpg|gif|png)$/.test(B)&&(D="url("+B+")"),M.canvas.style.background=D,M.canvas.style.backgroundSize="contain",M.currentBackground=B}})()}),(function(o,r,c){var s={};o.exports=s;var f=c(5),h=c(17),g=c(0);(function(){s._maxFrameDelta=1e3/15,s._frameDeltaFallback=1e3/60,s._timeBufferMargin=1.5,s._elapsedNextEstimate=1,s._smoothingLowerBound=.1,s._smoothingUpperBound=.9,s.create=function(p){var x={delta:16.666666666666668,frameDelta:null,frameDeltaSmoothing:!0,frameDeltaSnapping:!0,frameDeltaHistory:[],frameDeltaHistorySize:100,frameRequestId:null,timeBuffer:0,timeLastTick:null,maxUpdates:null,maxFrameTime:33.333333333333336,lastUpdatesDeferred:0,enabled:!0},y=g.extend(x,p);return y.fps=0,y},s.run=function(p,x){return p.timeBuffer=s._frameDeltaFallback,(function y(m){p.frameRequestId=s._onNextFrame(p,y),m&&p.enabled&&s.tick(p,x,m)})(),p},s.tick=function(p,x,y){var m=g.now(),S=p.delta,T=0,b=y-p.timeLastTick;if((!b||!p.timeLastTick||b>Math.max(s._maxFrameDelta,p.maxFrameTime))&&(b=p.frameDelta||s._frameDeltaFallback),p.frameDeltaSmoothing){p.frameDeltaHistory.push(b),p.frameDeltaHistory=p.frameDeltaHistory.slice(-p.frameDeltaHistorySize);var C=p.frameDeltaHistory.slice(0).sort(),R=p.frameDeltaHistory.slice(C.length*s._smoothingLowerBound,C.length*s._smoothingUpperBound),z=v(R);b=z||b}p.frameDeltaSnapping&&(b=1e3/Math.round(1e3/b)),p.frameDelta=b,p.timeLastTick=y,p.timeBuffer+=p.frameDelta,p.timeBuffer=g.clamp(p.timeBuffer,0,p.frameDelta+S*s._timeBufferMargin),p.lastUpdatesDeferred=0;var U=p.maxUpdates||Math.ceil(p.maxFrameTime/S),M={timestamp:x.timing.timestamp};f.trigger(p,"beforeTick",M),f.trigger(p,"tick",M);for(var B=g.now();S>0&&p.timeBuffer>=S*s._timeBufferMargin;){f.trigger(p,"beforeUpdate",M),h.update(x,S),f.trigger(p,"afterUpdate",M),p.timeBuffer-=S,T+=1;var D=g.now()-m,E=g.now()-B,V=D+s._elapsedNextEstimate*E/T;if(T>=U||V>p.maxFrameTime){p.lastUpdatesDeferred=Math.round(Math.max(0,p.timeBuffer/S-s._timeBufferMargin));break}}x.timing.lastUpdatesPerFrame=T,f.trigger(p,"afterTick",M),p.frameDeltaHistory.length>=100&&(p.lastUpdatesDeferred&&Math.round(p.frameDelta/S)>U?g.warnOnce("Matter.Runner: runner reached runner.maxUpdates, see docs."):p.lastUpdatesDeferred&&g.warnOnce("Matter.Runner: runner reached runner.maxFrameTime, see docs."),typeof p.isFixed<"u"&&g.warnOnce("Matter.Runner: runner.isFixed is now redundant, see docs."),(p.deltaMin||p.deltaMax)&&g.warnOnce("Matter.Runner: runner.deltaMin and runner.deltaMax were removed, see docs."),p.fps!==0&&g.warnOnce("Matter.Runner: runner.fps was replaced by runner.delta, see docs."))},s.stop=function(p){s._cancelNextFrame(p)},s._onNextFrame=function(p,x){if(typeof window<"u"&&window.requestAnimationFrame)p.frameRequestId=window.requestAnimationFrame(x);else throw new Error("Matter.Runner: missing required global window.requestAnimationFrame.");return p.frameRequestId},s._cancelNextFrame=function(p){if(typeof window<"u"&&window.cancelAnimationFrame)window.cancelAnimationFrame(p.frameRequestId);else throw new Error("Matter.Runner: missing required global window.cancelAnimationFrame.")};var v=function(p){for(var x=0,y=p.length,m=0;m<y;m+=1)x+=p[m];return x/y||0}})()}),(function(o,r,c){var s={};o.exports=s;var f=c(8),h=c(0),g=h.deprecated;(function(){s.collides=function(v,p){return f.collides(v,p)},g(s,"collides","SAT.collides ➤ replaced by Collision.collides")})()}),(function(o,r,c){var s={};o.exports=s,c(1);var f=c(0);(function(){s.pathToVertices=function(h,g){typeof window<"u"&&!("SVGPathSeg"in window)&&f.warn("Svg.pathToVertices: SVGPathSeg not defined, a polyfill is required.");var v,p,x,y,m,S,T,b,C,R,z=[],U,M,B=0,D=0,E=0;g=g||15;var V=function(L,H,Q){var nt=Q%2===1&&Q>1;if(!C||L!=C.x||H!=C.y){C&&nt?(U=C.x,M=C.y):(U=0,M=0);var et={x:U+L,y:M+H};(nt||!C)&&(C=et),z.push(et),D=U+L,E=M+H}},O=function(L){var H=L.pathSegTypeAsLetter.toUpperCase();if(H!=="Z"){switch(H){case"M":case"L":case"T":case"C":case"S":case"Q":D=L.x,E=L.y;break;case"H":D=L.x;break;case"V":E=L.y;break}V(D,E,L.pathSegType)}};for(s._svgPathToAbsolute(h),x=h.getTotalLength(),S=[],v=0;v<h.pathSegList.numberOfItems;v+=1)S.push(h.pathSegList.getItem(v));for(T=S.concat();B<x;){if(R=h.getPathSegAtLength(B),m=S[R],m!=b){for(;T.length&&T[0]!=m;)O(T.shift());b=m}switch(m.pathSegTypeAsLetter.toUpperCase()){case"C":case"T":case"S":case"Q":case"A":y=h.getPointAtLength(B),V(y.x,y.y,0);break}B+=g}for(v=0,p=T.length;v<p;++v)O(T[v]);return z},s._svgPathToAbsolute=function(h){for(var g,v,p,x,y,m,S=h.pathSegList,T=0,b=0,C=S.numberOfItems,R=0;R<C;++R){var z=S.getItem(R),U=z.pathSegTypeAsLetter;if(/[MLHVCSQTA]/.test(U))"x"in z&&(T=z.x),"y"in z&&(b=z.y);else switch("x1"in z&&(p=T+z.x1),"x2"in z&&(y=T+z.x2),"y1"in z&&(x=b+z.y1),"y2"in z&&(m=b+z.y2),"x"in z&&(T+=z.x),"y"in z&&(b+=z.y),U){case"m":S.replaceItem(h.createSVGPathSegMovetoAbs(T,b),R);break;case"l":S.replaceItem(h.createSVGPathSegLinetoAbs(T,b),R);break;case"h":S.replaceItem(h.createSVGPathSegLinetoHorizontalAbs(T),R);break;case"v":S.replaceItem(h.createSVGPathSegLinetoVerticalAbs(b),R);break;case"c":S.replaceItem(h.createSVGPathSegCurvetoCubicAbs(T,b,p,x,y,m),R);break;case"s":S.replaceItem(h.createSVGPathSegCurvetoCubicSmoothAbs(T,b,y,m),R);break;case"q":S.replaceItem(h.createSVGPathSegCurvetoQuadraticAbs(T,b,p,x),R);break;case"t":S.replaceItem(h.createSVGPathSegCurvetoQuadraticSmoothAbs(T,b),R);break;case"a":S.replaceItem(h.createSVGPathSegArcAbs(T,b,z.r1,z.r2,z.angle,z.largeArcFlag,z.sweepFlag),R);break;case"z":case"Z":T=g,b=v;break}(U=="M"||U=="m")&&(g=T,v=b)}}})()}),(function(o,r,c){var s={};o.exports=s;var f=c(6);c(0),(function(){s.create=f.create,s.add=f.add,s.remove=f.remove,s.clear=f.clear,s.addComposite=f.addComposite,s.addBody=f.addBody,s.addConstraint=f.addConstraint})()})])})})(To)),To.exports}var Dy=Cy();const kt=my(Dy),uf=tt.createContext({});function cf(i){const l=tt.useRef(null);return l.current===null&&(l.current=i()),l.current}const wy=typeof window<"u",jl=wy?tt.useLayoutEffect:tt.useEffect,Xo=tt.createContext(null);function ff(i,l){i.indexOf(l)===-1&&i.push(l)}function Oo(i,l){const o=i.indexOf(l);o>-1&&i.splice(o,1)}const mn=(i,l,o)=>o>l?l:o<i?i:o;let qo=()=>{};const qn={},hf=i=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(i),g1=i=>typeof i=="object"&&i!==null,df=i=>/^0[^.\s]+$/u.test(i);function v1(i){let l;return()=>(l===void 0&&(l=i()),l)}const dn=i=>i,Zl=(...i)=>i.reduce((l,o)=>r=>o(l(r))),Yl=(i,l,o)=>{const r=l-i;return r?(o-i)/r:1};class Vo{constructor(){this.subscriptions=[]}add(l){return ff(this.subscriptions,l),()=>this.remove(l)}remove(l){Oo(this.subscriptions,l)}notify(l,o,r){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](l,o,r);else for(let s=0;s<c;s++){const f=this.subscriptions[s];f&&f(l,o,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const sn=i=>i*1e3,Fe=i=>i/1e3,y1=(i,l)=>l?i*(1e3/l):0,x1=(i,l,o)=>(((1-3*o+3*l)*i+(3*o-6*l))*i+3*l)*i,Ry=1e-7,By=12;function zy(i,l,o,r,c){let s,f,h=0;do f=l+(o-l)/2,s=x1(f,r,c)-i,s>0?o=f:l=f;while(Math.abs(s)>Ry&&++h<By);return f}function Kl(i,l,o,r){if(i===l&&o===r)return dn;const c=s=>zy(s,0,1,i,o);return s=>s===0||s===1?s:x1(c(s),l,r)}const S1=i=>l=>l<=.5?i(2*l)/2:(2-i(2*(1-l)))/2,T1=i=>l=>1-i(1-l),b1=Kl(.33,1.53,.69,.99),mf=T1(b1),A1=S1(mf),M1=i=>i>=1?1:(i*=2)<1?.5*mf(i):.5*(2-Math.pow(2,-10*(i-1))),pf=i=>1-Math.sin(Math.acos(i)),E1=T1(pf),C1=S1(pf),Oy=Kl(.42,0,1,1),Vy=Kl(0,0,.58,1),gf=Kl(.42,0,.58,1),Uy=i=>Array.isArray(i)&&typeof i[0]!="number",D1=i=>Array.isArray(i)&&typeof i[0]=="number",Ly={linear:dn,easeIn:Oy,easeInOut:gf,easeOut:Vy,circIn:pf,circInOut:C1,circOut:E1,backIn:mf,backInOut:A1,backOut:b1,anticipate:M1},Ny=i=>typeof i=="string",k2=i=>{if(D1(i)){qo(i.length===4);const[l,o,r,c]=i;return Kl(l,o,r,c)}else if(Ny(i))return Ly[i];return i},mo=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Hy(i){let l=new Set,o=new Set,r=!1,c=!1;const s=new Set;let f={delta:0,timestamp:0,isProcessing:!1};function h(v){s.has(v)&&(o.add(v),i()),v(f)}const g={schedule:(v,p=!1,x=!1)=>{const m=x&&r?l:o;return p&&s.add(v),m.add(v),v},cancel:v=>{o.delete(v),s.delete(v)},process:v=>{if(f=v,r){c=!0;return}r=!0;const p=l;l=o,o=p,l.forEach(h),l.clear(),r=!1,c&&(c=!1,g.process(v))}};return g}const _y=40;function w1(i,l){let o=!1,r=!0;const c={delta:0,timestamp:0,isProcessing:!1},s=()=>o=!0,f=mo.reduce((z,U)=>(z[U]=Hy(s),z),{}),{setup:h,read:g,resolveKeyframes:v,preUpdate:p,update:x,preRender:y,render:m,postRender:S}=f,T=()=>{const z=qn.useManualTiming,U=z?c.timestamp:performance.now();o=!1,z||(c.delta=r?1e3/60:Math.max(Math.min(U-c.timestamp,_y),1)),c.timestamp=U,c.isProcessing=!0,h.process(c),g.process(c),v.process(c),p.process(c),x.process(c),y.process(c),m.process(c),S.process(c),c.isProcessing=!1,o&&l&&(r=!1,i(T))},b=()=>{o=!0,r=!0,c.isProcessing||i(T)};return{schedule:mo.reduce((z,U)=>{const M=f[U];return z[U]=(B,D=!1,E=!1)=>(o||b(),M.schedule(B,D,E)),z},{}),cancel:z=>{for(let U=0;U<mo.length;U++)f[mo[U]].cancel(z)},state:c,steps:f}}const{schedule:Gt,cancel:vi,state:ue,steps:mc}=w1(typeof requestAnimationFrame<"u"?requestAnimationFrame:dn,!0);let bo;function Gy(){bo=void 0}const pe={now:()=>(bo===void 0&&pe.set(ue.isProcessing||qn.useManualTiming?ue.timestamp:performance.now()),bo),set:i=>{bo=i,queueMicrotask(Gy)}},La=i=>Math.round(i*1e5)/1e5,R1=i=>l=>typeof l=="string"&&l.startsWith(i),B1=R1("--"),jy=R1("var(--"),vf=i=>jy(i)?Yy.test(i.split("/*")[0].trim()):!1,Yy=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function J2(i){return typeof i!="string"?!1:i.split("/*")[0].includes("var(--")}const Ha={test:i=>typeof i=="number",parse:parseFloat,transform:i=>i},Pl={...Ha,transform:i=>mn(0,1,i)},po={...Ha,default:1},yf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Py(i){return i==null}const Xy=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,xf=(i,l)=>o=>!!(typeof o=="string"&&Xy.test(o)&&o.startsWith(i)||l&&!Py(o)&&Object.prototype.hasOwnProperty.call(o,l)),z1=(i,l,o)=>r=>{if(typeof r!="string")return r;const[c,s,f,h]=r.match(yf);return{[i]:parseFloat(c),[l]:parseFloat(s),[o]:parseFloat(f),alpha:h!==void 0?parseFloat(h):1}},qy=i=>mn(0,255,i),pc={...Ha,transform:i=>Math.round(qy(i))},ji={test:xf("rgb","red"),parse:z1("red","green","blue"),transform:({red:i,green:l,blue:o,alpha:r=1})=>"rgba("+pc.transform(i)+", "+pc.transform(l)+", "+pc.transform(o)+", "+La(Pl.transform(r))+")"};function Fy(i){let l="",o="",r="",c="";return i.length>5?(l=i.substring(1,3),o=i.substring(3,5),r=i.substring(5,7),c=i.substring(7,9)):(l=i.substring(1,2),o=i.substring(2,3),r=i.substring(3,4),c=i.substring(4,5),l+=l,o+=o,r+=r,c+=c),{red:parseInt(l,16),green:parseInt(o,16),blue:parseInt(r,16),alpha:c?parseInt(c,16)/255:1}}const Vc={test:xf("#"),parse:Fy,transform:ji.transform},kl=i=>({test:l=>typeof l=="string"&&l.endsWith(i)&&l.split(" ").length===1,parse:parseFloat,transform:l=>`${l}${i}`}),Xn=kl("deg"),Mn=kl("%"),rt=kl("px"),Qy=kl("vh"),Zy=kl("vw"),W2={...Mn,parse:i=>Mn.parse(i)/100,transform:i=>Mn.transform(i*100)},Oa={test:xf("hsl","hue"),parse:z1("hue","saturation","lightness"),transform:({hue:i,saturation:l,lightness:o,alpha:r=1})=>"hsla("+Math.round(i)+", "+Mn.transform(La(l))+", "+Mn.transform(La(o))+", "+La(Pl.transform(r))+")"},se={test:i=>ji.test(i)||Vc.test(i)||Oa.test(i),parse:i=>ji.test(i)?ji.parse(i):Oa.test(i)?Oa.parse(i):Vc.parse(i),transform:i=>typeof i=="string"?i:i.hasOwnProperty("red")?ji.transform(i):Oa.transform(i),getAnimatableNone:i=>{const l=se.parse(i);return l.alpha=0,se.transform(l)}},Ky=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,O1=new RegExp(yf.source),V1=new RegExp(Ky.source,"i");function ky(i){return isNaN(i)&&typeof i=="string"&&(O1.test(i)||V1.test(i))}const U1="number",L1="color",Jy="var",Wy="var(",I2="${}",Iy=/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 $y(i){const l=i.toString();return O1.test(l)||V1.test(l)}function Xl(i){const l=i.toString(),o=[],r={color:[],number:[],var:[]},c=[];let s=0;const h=l.replace(Iy,g=>(se.test(g)?(r.color.push(s),c.push(L1),o.push(se.parse(g))):g.startsWith(Wy)?(r.var.push(s),c.push(Jy),o.push(g)):(r.number.push(s),c.push(U1),o.push(parseFloat(g))),++s,I2)).split(I2);return{values:o,split:h,indexes:r,types:c}}function t3(i){return Xl(i).values}function N1({split:i,types:l}){const o=i.length;return r=>{let c="";for(let s=0;s<o;s++)if(c+=i[s],r[s]!==void 0){const f=l[s];f===U1?c+=La(r[s]):f===L1?c+=se.transform(r[s]):c+=r[s]}return c}}function e3(i){return N1(Xl(i))}const n3=i=>typeof i=="number"?0:se.test(i)?se.getAnimatableNone(i):i,i3=(i,l)=>typeof i=="number"?l?.trim().endsWith("/")?i:0:n3(i);function a3(i){const l=Xl(i);return N1(l)(l.values.map((r,c)=>i3(r,l.split[c])))}const Qe={test:ky,parse:t3,createTransformer:e3,getAnimatableNone:a3};function gc(i,l,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?i+(l-i)*6*o:o<1/2?l:o<2/3?i+(l-i)*(2/3-o)*6:i}function l3({hue:i,saturation:l,lightness:o,alpha:r}){i/=360,l/=100,o/=100;let c=0,s=0,f=0;if(!l)c=s=f=o;else{const h=o<.5?o*(1+l):o+l-o*l,g=2*o-h;c=gc(g,h,i+1/3),s=gc(g,h,i),f=gc(g,h,i-1/3)}return{red:Math.round(c*255),green:Math.round(s*255),blue:Math.round(f*255),alpha:r}}function Uo(i,l){return o=>o>0?l:i}const Ht=(i,l,o)=>i+(l-i)*o,vc=(i,l,o)=>{const r=i*i,c=o*(l*l-r)+r;return c<0?0:Math.sqrt(c)},s3=[Vc,ji,Oa],o3=i=>s3.find(l=>l.test(i));function $2(i){const l=o3(i);if(!l)return!1;let o=l.parse(i);return l===Oa&&(o=l3(o)),o}const tm=(i,l)=>{const o=$2(i),r=$2(l);if(!o||!r)return Uo(i,l);const c={...o};return s=>(c.red=vc(o.red,r.red,s),c.green=vc(o.green,r.green,s),c.blue=vc(o.blue,r.blue,s),c.alpha=Ht(o.alpha,r.alpha,s),ji.transform(c))},Uc=new Set(["none","hidden"]);function r3(i,l){return Uc.has(i)?o=>o<=0?i:l:o=>o>=1?l:i}function u3(i,l){return o=>Ht(i,l,o)}function Sf(i){return typeof i=="number"?u3:typeof i=="string"?vf(i)?Uo:se.test(i)?tm:h3:Array.isArray(i)?H1:typeof i=="object"?se.test(i)?tm:c3:Uo}function H1(i,l){const o=[...i],r=o.length,c=i.map((s,f)=>Sf(s)(s,l[f]));return s=>{for(let f=0;f<r;f++)o[f]=c[f](s);return o}}function c3(i,l){const o={...i,...l},r={};for(const c in o)i[c]!==void 0&&l[c]!==void 0&&(r[c]=Sf(i[c])(i[c],l[c]));return c=>{for(const s in r)o[s]=r[s](c);return o}}function f3(i,l){const o=[],r={color:0,var:0,number:0};for(let c=0;c<l.values.length;c++){const s=l.types[c],f=i.indexes[s][r[s]],h=i.values[f]??0;o[c]=h,r[s]++}return o}const h3=(i,l)=>{const o=Qe.createTransformer(l),r=Xl(i),c=Xl(l);return r.indexes.var.length===c.indexes.var.length&&r.indexes.color.length===c.indexes.color.length&&r.indexes.number.length>=c.indexes.number.length?Uc.has(i)&&!c.values.length||Uc.has(l)&&!r.values.length?r3(i,l):Zl(H1(f3(r,c),c.values),o):Uo(i,l)},em=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function d3(i,l){const o=em.exec(i);if(!o)return;const r=em.exec(l);if(!r||o[2]!==r[2])return;const c=o[2],s=parseFloat(o[1]),f=parseFloat(r[1]);return h=>La(Ht(s,f,h))+c}function Tf(i,l,o){if(typeof i=="number"&&typeof l=="number"&&typeof o=="number")return Ht(i,l,o);if(typeof i=="string"&&typeof l=="string"){const c=d3(i,l);if(c)return c}return Sf(i)(i,l)}const m3=i=>{const l=({timestamp:o})=>i(o);return{start:(o=!0)=>Gt.update(l,o),stop:()=>vi(l),now:()=>ue.isProcessing?ue.timestamp:pe.now()}},_1=(i,l,o=10)=>{let r="";const c=Math.max(Math.round(l/o),2);for(let s=0;s<c;s++)r+=Math.round(i(s/(c-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},bf=2e4;function Af(i,l=50,o=bf,r){let c=0,s=i.next(c);for(;!s.done&&c<o;)c+=l,s=i.next(c);return c>=o?1/0:c}function p3(i,l=100,o){const r=o({...i,keyframes:[0,l]}),c=Math.min(Af(r),bf);return{type:"keyframes",ease:s=>r.next(c*s).value/l,duration:Fe(c)}}const Xt={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};function Lc(i,l){return i*Math.sqrt(1-l*l)}const g3=12;function v3(i,l,o){let r=o;for(let c=1;c<g3;c++)r=r-i(r)/l(r);return r}const yc=.001;function y3({duration:i=Xt.duration,bounce:l=Xt.bounce,velocity:o=Xt.velocity,mass:r=Xt.mass}){let c,s,f=1-l;f=mn(Xt.minDamping,Xt.maxDamping,f),i=mn(Xt.minDuration,Xt.maxDuration,Fe(i)),f<1?(c=v=>{const p=v*f,x=p*i,y=p-o,m=Lc(v,f),S=Math.exp(-x);return yc-y/m*S},s=v=>{const x=v*f*i,y=x*o+o,m=f*f*v*v*i,S=Math.exp(-x),T=Lc(v*v,f);return(-c(v)+yc>0?-1:1)*((y-m)*S)/T}):(c=v=>{const p=Math.exp(-v*i),x=(v-o)*i+1;return-yc+p*x},s=v=>{const p=Math.exp(-v*i),x=(o-v)*(i*i);return p*x});const h=5/i,g=v3(c,s,h);if(i=sn(i),isNaN(g))return{stiffness:Xt.stiffness,damping:Xt.damping,duration:i};{const v=g*g*r;return{stiffness:v,damping:f*2*Math.sqrt(r*v),duration:i}}}const x3=["duration","bounce"];function S3(i,l){return l.some(o=>i[o]!==void 0)}const Nc=(i,l)=>(l?i>=0:i>0)&&i<1/0;function xc(i,l){if(Nc(i,l))return i}function T3(i){const l=xc(i.stiffness),o=xc(i.damping,!0),r=xc(i.mass);let c={...i,stiffness:l??Xt.stiffness,damping:o??Xt.damping,mass:r??Xt.mass,isResolvedFromDuration:!1,isTimeDefined:(l??o??r)===void 0&&S3(i,x3)};if(c.isTimeDefined){if(c.velocity=0,i.visualDuration){const s=i.visualDuration,f=2*Math.PI/(s*1.2),h=f*f,g=2*mn(.05,1,1-(i.bounce||0))*Math.sqrt(h);c={...c,mass:Xt.mass,stiffness:h,damping:g}}else{const s=y3(c);c={...c,...s,mass:Xt.mass},c.isResolvedFromDuration=!0}(!Nc(c.stiffness)||!Nc(c.damping,!0))&&(c.stiffness=Xt.stiffness,c.damping=Xt.damping)}return c}function Lo(i=Xt.visualDuration,l=Xt.bounce){const o=typeof i!="object"?{visualDuration:i,keyframes:[0,1],bounce:l}:i,r=o.keyframes[0],c=o.keyframes[o.keyframes.length-1],s={done:!1,value:r},{stiffness:f,damping:h,mass:g,duration:v,velocity:p,isResolvedFromDuration:x,isTimeDefined:y}=T3({...o,velocity:-Fe(o.velocity||0)}),m=h/(2*Math.sqrt(f*g)),S=Fe(Math.sqrt(f/g)),T=m*S,b={target:c,delta:c-r,velocity:p||0,restSpeed:0,restDelta:0},C=()=>{const D=Math.abs(b.delta)<5;b.restSpeed=o.restSpeed||(D?Xt.restSpeed.granular:Xt.restSpeed.default),b.restDelta=o.restDelta||(D?Xt.restDelta.granular:Xt.restDelta.default)};C();let R,z,U;if(m<1){const D=Lc(S,m),E={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};U=()=>{E.A=(b.velocity+T*b.delta)/D,E.sinC=T*E.A+b.delta*D,E.cosC=T*b.delta-E.A*D};const V=O=>{O!==E.t&&(E.t=O,E.env=Math.exp(-T*O),E.sin=Math.sin(D*O),E.cos=Math.cos(D*O))};R=O=>(V(O),b.target-E.env*(E.A*E.sin+b.delta*E.cos)),z=O=>(V(O),E.env*(E.sinC*E.sin+E.cosC*E.cos))}else if(m===1){R=E=>b.target-Math.exp(-S*E)*(b.delta+(b.velocity+S*b.delta)*E);const D={C:0};U=()=>{D.C=b.velocity+S*b.delta},z=E=>Math.exp(-S*E)*(S*D.C*E-b.velocity)}else{const D=S*Math.sqrt(m*m-1);R=V=>{const O=Math.exp(-T*V),L=Math.min(D*V,300);return b.target-O*((b.velocity+T*b.delta)*Math.sinh(L)+D*b.delta*Math.cosh(L))/D};const E={P:0,sinh:0,cosh:0};U=()=>{E.P=(b.velocity+T*b.delta)/D,E.sinh=T*E.P-b.delta*D,E.cosh=T*b.delta-E.P*D},z=V=>{const O=Math.exp(-T*V),L=Math.min(D*V,300);return O*(E.sinh*Math.sinh(L)+E.cosh*Math.cosh(L))}}U();const M=x&&v||null,B={calculatedDuration:M,retarget:(D,E)=>{b.target=D[D.length-1],b.delta=b.target-D[0],b.velocity=y?0:-Fe(E),o.restSpeed&&o.restDelta||C(),B.calculatedDuration=M,s.done=!1,U()},velocity:D=>sn(z(D)),next:D=>{const E=R(D);if(x)s.done=D>=v;else{const V=sn(z(D));s.done=Math.abs(V)<=b.restSpeed&&Math.abs(b.target-E)<=b.restDelta}return s.value=s.done?b.target:E,s},toString:()=>{const D=Math.min(Af(B),bf),E=_1(V=>B.next(D*V).value,D,30);return D+"ms "+E},toTransition:()=>{}};return B}Lo.applyToOptions=i=>{const l=p3(i,100,Lo);return i.ease=l.ease,i.duration=sn(l.duration),i.type="keyframes",i};function Hc({keyframes:i,velocity:l=0,power:o=.8,timeConstant:r=325,bounceDamping:c=10,bounceStiffness:s=500,modifyTarget:f,min:h,max:g,restDelta:v=.5,restSpeed:p}){const x=i[0],y={done:!1,value:x},m=D=>D<h||D>g,S=D=>h===void 0?g:g===void 0||Math.abs(h-D)<Math.abs(g-D)?h:g;let T=o*l;const b=x+T,C=f===void 0?b:f(b);C!==b&&(T=C-x);const R=D=>-T*Math.exp(-D/r),z=D=>{const E=R(D);y.done=Math.abs(E)<=v,y.value=y.done?C:C+E};let U,M;const B=D=>{m(y.value)&&(U=D,M=Lo({keyframes:[y.value,S(y.value)],velocity:-R(D)/r*1e3,damping:c,stiffness:s,restDelta:v,restSpeed:p}))};return B(0),{calculatedDuration:null,next:D=>{let E=!1;return!M&&U===void 0&&(E=!0,z(D),B(D)),U!==void 0&&D>=U?M.next(D-U):(!E&&z(D),y)}}}function b3(i,l,o){const r=[],c=o||qn.mix||Tf,s=i.length-1;for(let f=0;f<s;f++){let h=c(i[f],i[f+1]);if(l){const g=Array.isArray(l)?l[f]||dn:l;h=Zl(g,h)}r.push(h)}return r}function A3(i,l,{clamp:o=!0,ease:r,mixer:c}={}){const s=i.length;if(qo(s===l.length),s===1)return()=>l[0];if(s===2&&l[0]===l[1])return()=>l[1];const f=i[0]===i[1];i[0]>i[s-1]&&(i=[...i].reverse(),l=[...l].reverse());const h=b3(l,r,c),g=h.length,v=p=>{if(f&&p<i[0])return l[0];let x=0;if(g>1)for(;x<i.length-2&&!(p<i[x+1]);x++);const y=Yl(i[x],i[x+1],p);return h[x](y)};return o?p=>v(mn(i[0],i[s-1],p)):v}function M3(i,l){const o=i[i.length-1];for(let r=1;r<=l;r++){const c=Yl(0,l,r);i.push(Ht(o,1,c))}}function E3(i){const l=[0];return M3(l,i.length-1),l}function C3(i,l){return i.map(o=>o*l)}function D3(i,l){return i.map(()=>l||gf).splice(0,i.length-1)}function Hl({duration:i=300,keyframes:l,times:o,ease:r="easeInOut"}){const c=Uy(r)?r.map(k2):k2(r)||gf,s={done:!1,value:l[0]};if(l.length===2&&!Array.isArray(c)&&(!o||o.length!==2||o[0]===0&&o[1]===1)){const[g,v]=l,p=g===v?void 0:(qn.mix||Tf)(g,v);return{calculatedDuration:i,next:x=>(s.value=p?p(c(i>0?mn(0,1,x/i):1)):v,s.done=x>=i,s)}}const f=C3(o&&o.length===l.length?o:E3(l),i),h=A3(f,l,{ease:Array.isArray(c)?c:D3(l,c)});return{calculatedDuration:i,next:g=>(s.value=h(g),s.done=g>=i,s)}}const w3=5;function R3(i,l,o){const r=Math.max(l-w3,0);return y1(o-i(r),l-r)}function B3(i,l,o=0){return l<=0?o:i.velocity?i.velocity(l):R3(r=>i.next(r).value,l,i.next(l).value)}const z3=i=>i!==null;function Fo(i,{repeat:l,repeatType:o="loop"},r,c=1){const s=i.filter(z3),h=c<0||l&&o!=="loop"&&l%2===1?0:s.length-1;return!h||r===void 0?s[h]:r}const O3={decay:Hc,inertia:Hc,tween:Hl,keyframes:Hl,spring:Lo};function G1(i){typeof i.type=="string"&&(i.type=O3[i.type])}function j1(i,l){return{kind:i,animation:l,timestamp:pe.now(),frameTimestamp:ue.timestamp,frameIsProcessing:ue.isProcessing}}function Y1(i,l,o){const r=globalThis.__MOTION_INSPECT__;if(r)try{r({...j1("animation-start",i),options:o?{...l,...o}:l})}catch{}}function V3(i,l){const o=globalThis.__MOTION_INSPECT__;if(o)try{o({...j1("layout-animation-start",i),node:l})}catch{}}class Mf{constructor(){this.isResolved=!1}get finished(){return this._finished||(this._finished=this.isResolved?Promise.resolve():new Promise(l=>{this._resolve=l})),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(l,o){return this.finished.then(l,o)}}const U3=i=>i/100;class No extends Mf{constructor(l){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:o}=this.options;o&&o.updatedAt!==pe.now()&&this.tick(pe.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=l,this.initAnimation(),this.play(),l.autoplay===!1&&this.pause(),Y1(this,this.options)}initAnimation(){const{options:l}=this;G1(l);const{type:o=Hl,repeat:r=0,repeatDelay:c=0,repeatType:s,velocity:f=0}=l;let{keyframes:h}=l;const g=o||Hl;g!==Hl&&typeof h[0]!="number"&&(this.mixKeyframes=Zl(U3,Tf(h[0],h[1])),h=[0,100]);const v=g(h===l.keyframes?l:{...l,keyframes:h});s==="mirror"&&(this.mirroredGenerator=g({...l,keyframes:[...h].reverse(),velocity:-f})),v.calculatedDuration===null&&(v.calculatedDuration=Af(v));const{calculatedDuration:p}=v;this.calculatedDuration=p,this.resolvedDuration=p+c,this.totalDuration=this.resolvedDuration*(r+1)-c,this.generator=v}updateTime(l){const o=Math.round(l-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=o}tick(l,o=!1){const{generator:r,totalDuration:c,mixKeyframes:s,mirroredGenerator:f,resolvedDuration:h,calculatedDuration:g}=this;if(this.startTime===null)return r.next(0);const{delay:v=0,keyframes:p,repeat:x,repeatType:y,repeatDelay:m,type:S,onUpdate:T,finalKeyframe:b}=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)),o?this.currentTime=l:this.updateTime(l);const C=this.currentTime-v*(this.playbackSpeed>=0?1:-1),R=this.playbackSpeed>=0?C<0:C>c;this.currentTime=Math.max(C,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let z=this.currentTime,U=r;if(x){const E=Math.min(this.currentTime,c)/h;let V=Math.floor(E),O=E%1;!O&&E>=1&&(O=1),O===1&&V--,V=Math.min(V,x+1),V%2&&(y==="reverse"?(O=1-O,m&&(O-=m/h)):y==="mirror"&&(U=f)),z=mn(0,1,O)*h}let M;R?(this.delayState.value=p[0],M=this.delayState):M=U.next(z),s&&!R&&(M.value=s(M.value));let{done:B}=M;!R&&g!==null&&(B=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&B);return D&&S!==Hc&&(M.value=Fo(p,this.options,b,this.speed)),T&&T(M.value),D&&this.finish(),M}then(l,o){return this.finished.then(l,o)}get duration(){return Fe(this.calculatedDuration)}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+Fe(l)}get time(){return Fe(this.currentTime)}set time(l){l=sn(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?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=l,this.tick(l))}getGeneratorVelocity(){return B3(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(l){const o=this.playbackSpeed!==l;o&&this.driver&&this.updateTime(pe.now()),this.playbackSpeed=l,o&&this.driver&&(this.time=Fe(this.currentTime))}play(){if(this.isStopped)return;const{driver:l=m3,startTime:o}=this.options;this.driver||(this.driver=l(c=>this.tick(c))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=o??r),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(pe.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)}}const L3=new Set(["brightness","contrast","saturate","opacity"]);function N3(i){const[l,o]=i.slice(0,-1).split("(");if(l==="drop-shadow")return i;const[r]=o.match(yf)||[];if(!r)return i;const c=o.replace(r,"");let s=L3.has(l)?1:0;return r!==o&&(s*=100),l+"("+s+c+")"}const H3=/\b([a-z-]*)\(.*?\)/gu,_c={...Qe,getAnimatableNone:i=>{const l=i.match(H3);return l?l.map(N3).join(" "):i}},Gc={...Qe,getAnimatableNone:i=>{const l=Qe.parse(i);return Qe.createTransformer(i)(l.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},nm={...Ha,transform:Math.round},_3={rotate:Xn,pathRotation:Xn,rotateX:Xn,rotateY:Xn,rotateZ:Xn,scale:po,scaleX:po,scaleY:po,scaleZ:po,skew:Xn,skewX:Xn,skewY:Xn,distance:rt,translateX:rt,translateY:rt,translateZ:rt,x:rt,y:rt,z:rt,perspective:rt,transformPerspective:rt,opacity:Pl,originX:W2,originY:W2,originZ:rt},Ho={borderWidth:rt,borderTopWidth:rt,borderRightWidth:rt,borderBottomWidth:rt,borderLeftWidth:rt,borderRadius:rt,borderTopLeftRadius:rt,borderTopRightRadius:rt,borderBottomRightRadius:rt,borderBottomLeftRadius:rt,width:rt,maxWidth:rt,height:rt,maxHeight:rt,top:rt,right:rt,bottom:rt,left:rt,inset:rt,insetBlock:rt,insetBlockStart:rt,insetBlockEnd:rt,insetInline:rt,insetInlineStart:rt,insetInlineEnd:rt,padding:rt,paddingTop:rt,paddingRight:rt,paddingBottom:rt,paddingLeft:rt,paddingBlock:rt,paddingBlockStart:rt,paddingBlockEnd:rt,paddingInline:rt,paddingInlineStart:rt,paddingInlineEnd:rt,margin:rt,marginTop:rt,marginRight:rt,marginBottom:rt,marginLeft:rt,marginBlock:rt,marginBlockStart:rt,marginBlockEnd:rt,marginInline:rt,marginInlineStart:rt,marginInlineEnd:rt,fontSize:rt,backgroundPositionX:rt,backgroundPositionY:rt,..._3,zIndex:nm,fillOpacity:Pl,strokeOpacity:Pl,numOctaves:nm},G3={...Ho,color:se,backgroundColor:se,outlineColor:se,fill:se,stroke:se,borderColor:se,borderTopColor:se,borderRightColor:se,borderBottomColor:se,borderLeftColor:se,filter:_c,WebkitFilter:_c,mask:Gc,WebkitMask:Gc},P1=i=>G3[i],j3=new Set([_c,Gc]);function Ef(i,l){let o=P1(i);return j3.has(o)||(o=Qe),o.getAnimatableNone?o.getAnimatableNone(l):void 0}function Y3(i){for(let l=1;l<i.length;l++)i[l]??(i[l]=i[l-1])}const Yi=i=>i*180/Math.PI,jc=i=>{const l=Yi(Math.atan2(i[1],i[0]));return Yc(l)},P3={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:i=>(Math.abs(i[0])+Math.abs(i[3]))/2,rotate:jc,rotateZ:jc,skewX:i=>Yi(Math.atan(i[1])),skewY:i=>Yi(Math.atan(i[2])),skew:i=>(Math.abs(i[1])+Math.abs(i[2]))/2},Yc=i=>(i=i%360,i<0&&(i+=360),i),im=jc,am=i=>Math.sqrt(i[0]*i[0]+i[1]*i[1]),lm=i=>Math.sqrt(i[4]*i[4]+i[5]*i[5]),X3={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:am,scaleY:lm,scale:i=>(am(i)+lm(i))/2,rotateX:i=>Yc(Yi(Math.atan2(i[6],i[5]))),rotateY:i=>Yc(Yi(Math.atan2(-i[2],i[0]))),rotateZ:im,rotate:im,skewX:i=>Yi(Math.atan(i[4])),skewY:i=>Yi(Math.atan(i[1])),skew:i=>(Math.abs(i[1])+Math.abs(i[4]))/2};function Pc(i){return i.includes("scale")?1:0}function Xc(i,l){if(!i||i==="none")return Pc(l);const o=i.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,c;if(o)r=X3,c=o;else{const h=i.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=P3,c=h}if(!c)return Pc(l);const s=r[l],f=c[1].split(",").map(F3);return typeof s=="function"?s(f):f[s]}const q3=(i,l)=>{const{transform:o="none"}=getComputedStyle(i);return Xc(o,l)};function F3(i){return parseFloat(i.trim())}const _a=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ga=new Set([..._a,"pathRotation"]),sm=i=>i===Ha||i===rt,Q3=new Set(["x","y","z"]),Z3=_a.filter(i=>!Q3.has(i));function K3(i){const l=[];return Z3.forEach(o=>{const r=i.getValue(o);if(r!==void 0){const c=r.get(),s=o.startsWith("scale")?1:0;if(c===s)return;l.push([o,c]),r.set(s)}}),l}const k3=new Set(["bottom","right"]);function om(i,l,o,r,c,s){const f=parseFloat(i);if(!isNaN(f))return f;const{min:h,max:g}=l()[o],v=g-h;return s==="border-box"?v:v-parseFloat(r)-parseFloat(c)}const Pi={width:({width:i,paddingLeft:l="0",paddingRight:o="0",boxSizing:r},c)=>om(i,c,"x",l,o,r),height:({height:i,paddingTop:l="0",paddingBottom:o="0",boxSizing:r},c)=>om(i,c,"y",l,o,r),top:({top:i})=>parseFloat(i),left:({left:i})=>parseFloat(i),bottom:({top:i},l)=>{const{y:o}=l();return parseFloat(i)+(o.max-o.min)},right:({left:i},l)=>{const{x:o}=l();return parseFloat(i)+(o.max-o.min)},x:({transform:i})=>Xc(i,"x"),y:({transform:i})=>Xc(i,"y")};Pi.translateX=Pi.x;Pi.translateY=Pi.y;const Xi=new Set;let qc=!1,Fc=!1,Qc=!1;function X1(){if(Fc){const i=[],l=new Set,o=new Set;Xi.forEach(c=>{c.needsMeasurement&&(i.push(c),l.add(c.element),k3.has(c.name)&&o.add(c.element))});const r=new Map;o.forEach(c=>{const s=K3(c);s.length&&(r.set(c,s),c.render())}),i.forEach(c=>c.measureInitialState()),l.forEach(c=>{c.render();const s=r.get(c);s&&s.forEach(([f,h])=>{c.getValue(f)?.set(h)})}),i.forEach(c=>c.measureEndState()),i.forEach(c=>{c.suspendedScrollY!==void 0&&window.scrollTo(0,c.suspendedScrollY)})}Fc=!1,qc=!1,Xi.forEach(i=>i.complete(Qc)),Xi.clear()}function q1(){Xi.forEach(i=>{i.readKeyframes(),i.needsMeasurement&&(Fc=!0)})}function J3(){Qc=!0,q1(),X1(),Qc=!1}function W3(i,l,o){if(typeof i=="string"){if(hf(i)||df(i))return parseFloat(i);if(!Qe.test(i)&&Qe.test(o))return Ef(l,o)}return i??void 0}class Cf{constructor(l,o,r,c,s,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...l],this.onComplete=o,this.name=r,this.motionValue=c,this.element=s,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?(Xi.add(this),qc||(qc=!0,Gt.read(q1),Gt.resolveKeyframes(X1))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:l,name:o,element:r,motionValue:c}=this;if(l[0]===null){const s=c?.get(),f=l[l.length-1];if(s!==void 0)l[0]=s;else if(r&&o){const h=W3(r.readValue(o,f),o,f);h!==void 0&&(l[0]=h)}l[0]===void 0&&(l[0]=f),c&&s===void 0&&c.set(l[0])}Y3(l)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(l=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,l),Xi.delete(this)}cancel(){this.state==="scheduled"&&(Xi.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const I3=i=>i.startsWith("--");function F1(i,l,o){I3(l)?i.style.setProperty(l,o):i.style[l]=o}const $3={};function Q1(i,l){const o=v1(i);return()=>$3[l]??o()}const tx=Q1(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Z1=Q1(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ll=([i,l,o,r])=>`cubic-bezier(${i}, ${l}, ${o}, ${r})`,rm={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ll([0,.65,.55,1]),circOut:Ll([.55,0,1,.45]),backIn:Ll([.31,.01,.66,-.59]),backOut:Ll([.33,1.53,.69,.99])};function K1(i,l){if(i)return typeof i=="function"?Z1()?_1(i,l):"ease-out":D1(i)?Ll(i):Array.isArray(i)?i.map(o=>K1(o,l)||rm.easeOut):rm[i]}function ex(i,l,o,{delay:r=0,duration:c=300,repeat:s=0,repeatType:f="loop",ease:h="easeOut",times:g}={},v=void 0){const p={[l]:o};g&&(p.offset=g);const x=K1(h,c);Array.isArray(x)&&(p.easing=x);const y={delay:r,duration:c,easing:Array.isArray(x)?"linear":x,fill:"both",iterations:s+1,direction:f==="reverse"?"alternate":"normal"};return v&&(y.pseudoElement=v),i.animate(p,y)}function k1(i){return typeof i=="function"&&"applyToOptions"in i}function nx({type:i,...l}){return k1(i)&&Z1()?i.applyToOptions(l):(l.duration??(l.duration=300),l.ease??(l.ease="easeOut"),l)}class J1 extends Mf{constructor(l){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!l)return;const{element:o,name:r,keyframes:c,pseudoElement:s,allowFlatten:f=!1,finalKeyframe:h,onComplete:g}=l;this.isPseudoElement=!!s,this.allowFlatten=f,this.options=l,qo(typeof l.type!="string");const v=nx(l);this.animation=ex(o,r,c,v,s),v.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const p=Fo(c,this.options,h,this.speed);this.updateMotionValue&&this.updateMotionValue(p),F1(o,r,p),this.animation.cancel()}g?.(),this.notifyFinished()},Y1(this,l,v)}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(){const l=this.options?.element;!this.isPseudoElement&&l?.isConnected&&this.animation.commitStyles?.()}get duration(){const l=this.animation.effect?.getComputedTiming?.().duration||0;return Fe(Number(l))}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+Fe(l)}get time(){return Fe(Number(this.animation.currentTime)||0)}set time(l){const o=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=sn(l),o&&this.animation.pause()}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,rangeStart:o,rangeEnd:r,observe:c}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,l&&tx()?(this.animation.timeline=l,o&&(this.animation.rangeStart=o),r&&(this.animation.rangeEnd=r),dn):c(this)}}const W1={anticipate:M1,backInOut:A1,circInOut:C1};function ix(i){return i in W1}function ax(i){typeof i.ease=="string"&&ix(i.ease)&&(i.ease=W1[i.ease])}const Sc=10;class lx extends J1{constructor(l){ax(l),G1(l),super(l),l.startTime!==void 0&&l.autoplay!==!1&&(this.startTime=l.startTime),this.options=l}updateMotionValue(l){const{motionValue:o,onUpdate:r,onComplete:c,element:s,...f}=this.options;if(!o)return;if(l!==void 0){o.set(l);return}const h=new No({...f,autoplay:!1}),g=Math.max(Sc,pe.now()-this.startTime),v=mn(0,Sc,g-Sc),p=h.sample(g).value,{name:x}=this.options;s&&x&&F1(s,x,p),o.setWithVelocity(h.sample(Math.max(0,g-v)).value,p,v),h.stop()}}const um=(i,l)=>l==="zIndex"?!1:!!(typeof i=="number"||Array.isArray(i)||typeof i=="string"&&(Qe.test(i)||i==="0")&&!i.startsWith("url("));function sx(i){const l=i[0];if(i.length===1)return!0;for(let o=0;o<i.length;o++)if(i[o]!==l)return!0}function ox(i,l,o,r){const c=i[0];if(c===null)return!1;if(l==="display"||l==="visibility")return!0;const s=i[i.length-1],f=um(c,l),h=um(s,l);return!f||!h?!1:sx(i)||(o==="spring"||k1(o))&&r}function Zc(i){i.duration=0,i.type="keyframes"}const Kc=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),rx=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function ux(i){for(let l=0;l<i.length;l++)if(typeof i[l]=="string"&&rx.test(i[l]))return!0;return!1}const cm=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),cx=v1(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function fx(i){const{motionValue:l,name:o,repeatDelay:r,repeatType:c,damping:s,type:f,keyframes:h}=i;if(!o||!(Kc.has(o)||cm.has(o)))return!1;const g=l?.owner?.current;if(!(g instanceof HTMLElement)&&!(g instanceof SVGElement))return!1;const{onUpdate:v,transformTemplate:p}=l.owner.getProps();return cx()&&(Kc.has(o)||cm.has(o)&&ux(h))&&(o!=="transform"||!p)&&!v&&!r&&c!=="mirror"&&s!==0&&f!=="inertia"}const hx=40;class dx extends Mf{constructor(l){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=pe.now();const{keyframes:o,name:r,motionValue:c,element:s}=l,f=l;f.autoplay??(f.autoplay=!0),f.delay??(f.delay=0),f.type??(f.type="keyframes"),f.repeat??(f.repeat=0),f.repeatDelay??(f.repeatDelay=0),f.repeatType??(f.repeatType="loop");const h=s?.KeyframeResolver||Cf;this.keyframeResolver=new h(o,(g,v,p)=>this.onKeyframesResolved(g,v,f,!p),r,c,s),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(l,o,r,c){this.keyframeResolver=void 0;const{name:s,type:f,velocity:h,delay:g,isHandoff:v,onUpdate:p}=r;this.resolvedAt=pe.now();let x=!0;ox(l,s,f,h)||(x=!1,(qn.instantAnimations||!g)&&p?.(Fo(l,r,o)),l[0]=l[l.length-1],Zc(r),r.repeat=0);const y=c?this.resolvedAt?this.resolvedAt-this.createdAt>hx?this.resolvedAt:this.createdAt:this.createdAt:void 0,{onComplete:m}=r;r.startTime??(r.startTime=y),r.finalKeyframe=o,r.keyframes=l,r.onComplete=()=>{m?.(),this.notifyFinished()};const S=x&&!v&&fx(r);let T;if(S){r.element=r.motionValue?.owner?.current;try{T=new lx(r)}catch{T=new No(r)}}else T=new No(r);this.pendingTimeline&&(this.stopTimeline=T.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=T}get finished(){return this._animation?this._animation.finished:super.finished}then(l,o){return this.finished.finally(l).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),J3()),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 I1(i,l,o,r=0,c=1){const s=Array.from(i).sort((v,p)=>v.sortNodePosition(p)).indexOf(l),f=i.size,h=(f-1)*r;return typeof o=="function"?o(s,f):c===1?s*r:h-s*r}const fm=30,mx=i=>!isNaN(parseFloat(i));class px{constructor(l,o={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const c=pe.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.notifyChange(),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(l),this.owner=o.owner}setCurrent(l){this.current=l,this.updatedAt=pe.now(),this.canTrackVelocity===null&&l!==void 0&&(this.canTrackVelocity=mx(this.current))}setPrevFrameValue(l=this.current){this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt}onChange(l){return this.on("change",l)}on(l,o){var r;return l==="change"?this.onChangeSubscribe(o):((r=this.events)[l]||(r[l]=new Vo)).add(o)}onChangeSubscribe(l){const{events:o}=this;return!o.change&&!this.changeSubscriber?this.changeSubscriber=l:(o.change||(o.change=new Vo,o.change.add(this.changeSubscriber),this.changeSubscriber=void 0),o.change.add(l)),()=>{this.changeSubscriber===l?this.changeSubscriber=void 0:o.change?.remove(l),this.stopIfUnobserved()}}stopIfUnobserved(){Gt.read(()=>{!this.changeSubscriber&&!this.events.change?.getSize()&&this.stop()})}clearListeners(){this.changeSubscriber=void 0;for(const l in this.events)this.events[l].clear()}attach(l,o){this.passiveEffect=l,this.stopPassiveEffect=o}set(l){this.passiveEffect?this.passiveEffect(l,this.updateAndNotify):this.updateAndNotify(l)}setWithVelocity(l,o,r){this.set(o),this.prev=void 0,this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt-r}jump(l,o=!0){this.updateAndNotify(l),this.prev=l,this.prevUpdatedAt=this.prevFrameValue=void 0,o&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.notifyChange()}notifyChange(){const{current:l,changeSubscriber:o}=this;o?o(l):this.events.change?.notify(l)}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=pe.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||l-this.updatedAt>fm)return 0;const o=Math.min(this.updatedAt-this.prevUpdatedAt,fm);return y1(parseFloat(this.current)-parseFloat(this.prevFrameValue),o)}start(l){return this.stop(),new Promise(o=>{this.hasAnimated=!0;let r=!1,c;c=l(()=>{r=!0,this.events.animationComplete?.notify(),this.animation===c&&this.clearAnimation(),o()}),r||(this.animation=c),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=void 0}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Na(i,l){return new px(i,l)}function $1(i,l){if(i?.inherit&&l){const{inherit:o,...r}=i;return{...l,...r}}return i}function Df(i,l){const o=i?.[l]??i?.default??i;return o!==i?$1(o,i):o}const gx={type:"spring",stiffness:500,damping:25,restSpeed:10},vx=i=>({type:"spring",stiffness:550,damping:i===0?2*Math.sqrt(550):30,restSpeed:10}),yx={type:"keyframes",duration:.8},xx={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Sx=(i,{keyframes:l})=>l.length>2?yx:Ga.has(i)?i.startsWith("scale")?vx(l[1]):gx:xx,Tx=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function bx(i){for(const l in i)if(!Tx.has(l))return!0;return!1}const wf=(i,l,o,r={},c,s)=>f=>{const h=Df(r,i)||{},g=h.delay||r.delay||0;let{elapsed:v=0}=r;v=v-sn(g);const p={keyframes:Array.isArray(o)?o:[null,o],ease:"easeOut",velocity:l.getVelocity(),...h,delay:-v,onUpdate:y=>{l.set(y),h.onUpdate&&h.onUpdate(y)},onComplete:()=>{f(),h.onComplete&&h.onComplete()},name:i,motionValue:l,element:s?void 0:c};bx(h)||Object.assign(p,Sx(i,p)),p.duration&&(p.duration=sn(p.duration)),p.repeatDelay&&(p.repeatDelay=sn(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let x=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(Zc(p),p.delay===0&&(x=!0)),(qn.instantAnimations||qn.skipAnimations||c?.shouldSkipAnimations||h.skipAnimations)&&(x=!0,Zc(p),p.delay=0),p.allowFlatten=!h.type&&!h.ease,x&&!s&&l.get()!==void 0){const y=Fo(p.keyframes,h);if(y!==void 0){Gt.update(()=>{p.onUpdate(y),p.onComplete()});return}}return h.isSync?new No(p):new dx(p)},Ax=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Mx(i){const l=Ax.exec(i);if(!l)return[,];const[,o,r,c]=l;return[`--${o??r}`,c]}function tp(i,l,o=1){const[r,c]=Mx(i);if(!r)return;const s=window.getComputedStyle(l).getPropertyValue(r);if(s){const f=s.trim();return hf(f)?parseFloat(f):f}return vf(c)?tp(c,l,o+1):c}function hm(i){const l=[{},{}];return i?.values.forEach((o,r)=>{l[0][r]=o.get(),l[1][r]=o.getVelocity()}),l}function Rf(i,l,o,r){if(typeof l=="function"){const[c,s]=hm(r);l=l(o!==void 0?o:i.custom,c,s)}if(typeof l=="string"&&(l=i.variants&&i.variants[l]),typeof l=="function"){const[c,s]=hm(r);l=l(o!==void 0?o:i.custom,c,s)}return l}function qi(i,l,o){const r=i.getProps();return Rf(r,l,o!==void 0?o:r.custom,i)}const ep=new Set(["width","height","top","left","right","bottom",..._a]),kc=i=>Array.isArray(i);function Ex(i,l,o){i.hasValue(l)?i.getValue(l).set(o):i.addValue(l,Na(o))}function Cx(i){return kc(i)?i[i.length-1]||0:i}function Dx(i,l){const o=qi(i,l);let{transitionEnd:r={},transition:c={},...s}=o||{};s={...s,...r};for(const f in s){const h=Cx(s[f]);Ex(i,f,h)}}const ge=i=>!!(i&&i.getVelocity);function wx(i){return!!(ge(i)&&i.add)}function Jc(i,l){const o=i.getValue("willChange");if(wx(o))return o.add(l);if(!o&&qn.WillChange){const r=new qn.WillChange("auto");i.addValue("willChange",r),r.add(l)}}function Bf(i){return i.replace(/([A-Z])/g,l=>`-${l.toLowerCase()}`)}const Rx="framerAppearId",np="data-"+Bf(Rx);function ip(i){return i.props[np]}const Bx=typeof window<"u";function zx({protectedKeys:i,needsAnimating:l},o){const r=i.hasOwnProperty(o)&&l[o]!==!0;return l[o]=!1,r}function ap(i,l,{delay:o=0,transitionOverride:r,type:c}={}){let{transition:s,transitionEnd:f,...h}=l;const g=i.getDefaultTransition();s=s?$1(s,g):g;const v=s?.reduceMotion,p=s?.skipAnimations;r&&(s=r);const x=[],y=c&&i.animationState&&i.animationState.getState()[c],m=s?.path;m&&m.animateVisualElement(i,h,s,o,x);for(const S in h){const T=i.getValue(S,i.latestValues[S]??null),b=h[S];if(b===void 0||y&&zx(y,S))continue;const C={delay:o,...Df(s||{},S)};p&&(C.skipAnimations=!0);const R=T.get();if(R!==void 0&&!T.isAnimating()&&!Array.isArray(b)&&b===R&&!C.velocity){Gt.update(()=>T.set(b));continue}let z=!1;if(Bx&&window.MotionHandoffAnimation){const B=ip(i);if(B){const D=window.MotionHandoffAnimation(B,S,Gt);D!==null&&(C.startTime=D,z=!0)}}Jc(i,S);const U=v??i.shouldReduceMotion;T.start(wf(S,T,b,U&&ep.has(S)?{type:!1}:C,i,z));const M=T.animation;M&&x.push(M)}if(f){const S=()=>Gt.update(()=>{f&&Dx(i,f)});x.length?Promise.all(x).then(S):S()}return x}function Wc(i,l,o={}){const r=qi(i,l,o.type==="exit"?i.presenceContext?.custom:void 0);let{transition:c=i.getDefaultTransition()||{}}=r||{};o.transitionOverride&&(c=o.transitionOverride);const s=r?()=>Promise.all(ap(i,r,o)):()=>Promise.resolve(),f=i.variantChildren&&i.variantChildren.size?(g=0)=>{const{delayChildren:v=0,staggerChildren:p,staggerDirection:x}=c;return Ox(i,l,g,v,p,x,o)}:()=>Promise.resolve(),{when:h}=c;if(h){const[g,v]=h==="beforeChildren"?[s,f]:[f,s];return g().then(()=>v())}else return Promise.all([s(),f(o.delay)])}function Ox(i,l,o=0,r=0,c=0,s=1,f){const h=[];for(const g of i.variantChildren)g.notify("AnimationStart",l),h.push(Wc(g,l,{...f,delay:o+(typeof r=="function"?0:r)+I1(i.variantChildren,g,r,c,s)}).then(()=>g.notify("AnimationComplete",l)));return Promise.all(h)}function Vx(i,l,o={}){i.notify("AnimationStart",l);let r;if(Array.isArray(l)){const c=l.map(s=>Wc(i,s,o));r=Promise.all(c)}else if(typeof l=="string")r=Wc(i,l,o);else{const c=typeof l=="function"?qi(i,l,o.custom):l;r=Promise.all(ap(i,c,o))}return r.then(()=>{i.notify("AnimationComplete",l)})}const Ux={test:i=>i==="auto",parse:i=>i},Lx=i=>l=>l.test(i),Nx=[Ha,rt,Mn,Xn,Zy,Qy,Ux],dm=i=>Nx.find(Lx(i));function Hx(i){return typeof i=="number"?i===0:i!==null?i==="none"||i==="0"||df(i):!0}const _x=new Set(["auto","none","0"]);function Gx(i,l,o){let r=0,c;for(;r<i.length&&!c;){const s=i[r];typeof s=="string"&&!_x.has(s)&&$y(s)&&(c=i[r]),r++}if(c&&o)for(const s of l)i[s]!==c&&(i[s]=Ef(o,c))}class jx extends Cf{constructor(l,o,r,c,s){super(l,o,r,c,s,!0)}readKeyframes(){const{unresolvedKeyframes:l,element:o,name:r}=this;if(!o||!o.current)return;super.readKeyframes();for(let p=0;p<l.length;p++){let x=l[p];if(typeof x=="string"&&(x=x.trim(),vf(x))){const y=tp(x,o.current);y!==void 0&&(l[p]=y),p===l.length-1&&(this.finalKeyframe=x)}}if(this.resolveNoneKeyframes(),!ep.has(r)||l.length!==2)return;const[c,s]=l;if(typeof c=="number"&&typeof s=="number")return;const f=dm(c),h=dm(s),g=J2(c),v=J2(s);if(g!==v&&Pi[r]){this.needsMeasurement=!0;return}if(f!==h)if(sm(f)&&sm(h))for(let p=0;p<l.length;p++){const x=l[p];typeof x=="string"&&(l[p]=parseFloat(x))}else Pi[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:l,name:o}=this,r=[];for(let c=0;c<l.length;c++)(l[c]===null||Hx(l[c]))&&r.push(c);r.length&&Gx(l,r,o)}measure(){const{element:l,name:o}=this;return Pi[o](window.getComputedStyle(l.current),()=>l.measureViewportBox())}measureInitialState(){const{element:l,unresolvedKeyframes:o,name:r}=this;if(!l||!l.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),o[0]=this.measuredOrigin;const c=o[o.length-1];c!==void 0&&this.motionValue?.jump(c,!1)}measureEndState(){const{element:l,unresolvedKeyframes:o}=this;if(!l||!l.current)return;this.motionValue?.jump(this.measuredOrigin,!1);const r=o.length-1,c=o[r];o[r]=this.measure(),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),this.removedTransforms?.length&&this.removedTransforms.forEach(([s,f])=>{l.getValue(s).set(f)}),this.resolveNoneKeyframes()}}const zf=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function Ao(i){return g1(i)&&"offsetHeight"in i&&!("ownerSVGElement"in i)}function Of(i){return g1(i)&&"ownerSVGElement"in i}const Ic=(i,l)=>l&&typeof i=="number"?l.transform(i):i;function lp(i,l,o){if(i==null)return[];if(i instanceof EventTarget)return[i];if(typeof i=="string"){let r=document;const c=o?.[i]??r.querySelectorAll(i);return c?Array.from(c):[]}return Array.from(i).filter(r=>r!=null)}const Yx={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Px=_a.length;function Xx(i,l,o){let r="",c=!0;for(let f=0;f<Px;f++){const h=_a[f],g=i[h];if(g===void 0)continue;let v=!0;if(typeof g=="number")v=g===(h.startsWith("scale")?1:0);else{const p=parseFloat(g);v=h.startsWith("scale")?p===1:p===0}if(!v||o){const p=Ic(g,Ho[h]);if(!v){c=!1;const x=Yx[h]||h;r+=`${x}(${p}) `}o&&(l[h]=p)}}const s=i.pathRotation;return s&&(c=!1,r+=`rotate(${Ic(s,Ho.pathRotation)}) `),r=r.trim(),o?r=o(l,c?"":r):c&&(r="none"),r}function Vf(i,l,o){const{style:r,vars:c,transformOrigin:s}=i;let f=!1,h=!1;for(const g in l){const v=l[g];if(Ga.has(g)){f=!0;continue}else if(B1(g)){c[g]=v;continue}else{const p=Ic(v,Ho[g]);g.startsWith("origin")?(h=!0,s[g]=p):r[g]=p}}if(l.transform||(f||o?r.transform=Xx(l,i.transform,o):r.transform&&(r.transform="none")),h){const{originX:g="50%",originY:v="50%",originZ:p=0}=s;r.transformOrigin=`${g} ${v} ${p}`}}const qx={offset:"stroke-dashoffset",array:"stroke-dasharray"},Fx={offset:"strokeDashoffset",array:"strokeDasharray"};function Qx(i,l,o=1,r=0,c=!0){i.pathLength=1;const s=c?qx:Fx;i[s.offset]=`${-r}`,i[s.array]=`${l} ${o}`}const sp=["transform","opacity","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function op(i,{attrX:l,attrY:o,attrScale:r,pathLength:c,pathSpacing:s=1,pathOffset:f=0,...h},g,v,p){if(Vf(i,h,v),g){i.style.viewBox&&(i.attrs.viewBox=i.style.viewBox);return}i.attrs=i.style,i.style={};const{attrs:x,style:y}=i;for(const m of sp)x[m]!==void 0&&(y[m]=x[m],delete x[m]);(y.transform||x.transformOrigin)&&(y.transformOrigin=x.transformOrigin??"50% 50%",delete x.transformOrigin),y.transform&&(y.transformBox=p?.transformBox??"fill-box",delete x.transformBox),l!==void 0&&(x.x=l),o!==void 0&&(x.y=o),r!==void 0&&(x.scale=r),c!==void 0&&Qx(x,c,s,f,!1)}function rp({top:i,left:l,right:o,bottom:r}){return{x:{min:l,max:o},y:{min:i,max:r}}}function Zx({x:i,y:l}){return{top:l.min,right:i.max,bottom:l.max,left:i.min}}function Kx(i,l){if(!l)return i;const o=l({x:i.left,y:i.top}),r=l({x:i.right,y:i.bottom});return{top:o.y,left:o.x,bottom:r.y,right:r.x}}function Tc(i){return i===void 0||i===1}function $c({scale:i,scaleX:l,scaleY:o}){return!Tc(i)||!Tc(l)||!Tc(o)}function Gi(i){return $c(i)||up(i)||i.z||i.rotate||i.rotateX||i.rotateY||i.skewX||i.skewY}function up(i){return mm(i.x)||mm(i.y)}function mm(i){return i&&i!=="0%"}function _o(i,l,o){const r=i-o,c=l*r;return o+c}function pm(i,l,o,r,c){return c!==void 0&&(i=_o(i,c,r)),_o(i,o,r)+l}function tf(i,l=0,o=1,r,c){i.min=pm(i.min,l,o,r,c),i.max=pm(i.max,l,o,r,c)}function cp(i,{x:l,y:o}){tf(i.x,l.translate,l.scale,l.originPoint),tf(i.y,o.translate,o.scale,o.originPoint)}const gm=.999999999999,vm=1.0000000000001;function kx(i,l,o,r=!1){const c=o.length;if(!c)return;l.x=l.y=1;let s,f;for(let h=0;h<c;h++){s=o[h],f=s.projectionDelta;const{visualElement:g}=s.options;g&&g.props.style&&g.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(An(i.x,-s.scroll.offset.x),An(i.y,-s.scroll.offset.y)),f&&(l.x*=f.x.scale,l.y*=f.y.scale,cp(i,f)),r&&Gi(s.latestValues)&&Mo(i,s.latestValues,s.layout?.layoutBox))}l.x<vm&&l.x>gm&&(l.x=1),l.y<vm&&l.y>gm&&(l.y=1)}function An(i,l){i.min+=l,i.max+=l}function ym(i,l,o,r,c=.5){const s=Ht(i.min,i.max,c);tf(i,l,o,s,r)}function xm(i,l){return typeof i=="string"?parseFloat(i)/100*(l.max-l.min):i}function Mo(i,l,o){const r=o??i;ym(i.x,xm(l.x,r.x),l.scaleX,l.scale,l.originX),ym(i.y,xm(l.y,r.y),l.scaleY,l.scale,l.originY)}function fp(i,l){return rp(Kx(i.getBoundingClientRect(),l))}function Jx(i,l,o){const r=fp(i,o),{scroll:c}=l;return c&&(An(r.x,c.offset.x),An(r.y,c.offset.y)),r}const{schedule:Uf}=w1(queueMicrotask,!1),hn={x:!1,y:!1};function hp(){return hn.x||hn.y}function Wx(i){return i==="x"||i==="y"?hn[i]?null:(hn[i]=!0,()=>{hn[i]=!1}):hn.x||hn.y?null:(hn.x=hn.y=!0,()=>{hn.x=hn.y=!1})}function dp(i,l){const o=lp(i),r=new AbortController,c={passive:!0,...l,signal:r.signal};return[o,c,()=>r.abort()]}function Ix(i){return!(i.pointerType==="touch"||hp())}function $x(i,l,o={}){const[r,c,s]=dp(i,o);return r.forEach(f=>{let h=!1,g=!1,v;const p=()=>{f.removeEventListener("pointerleave",S)},x=b=>{v&&(v(b),v=void 0),p()},y=b=>{h=!1,window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",y),g&&(g=!1,x(b))},m=()=>{h=!0,window.addEventListener("pointerup",y,c),window.addEventListener("pointercancel",y,c)},S=b=>{if(b.pointerType!=="touch"){if(h){g=!0;return}x(b)}},T=b=>{if(!Ix(b))return;g=!1;const C=l(f,b);typeof C=="function"&&(v=C,f.addEventListener("pointerleave",S,c))};f.addEventListener("pointerenter",T,c),f.addEventListener("pointerdown",m,c)}),s}const mp=(i,l)=>l?i===l?!0:mp(i,l.parentElement):!1,Lf=i=>i.pointerType==="mouse"?typeof i.button!="number"||i.button<=0:i.isPrimary!==!1,t5=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function e5(i){return t5.has(i.tagName)||i.isContentEditable===!0}const n5=new Set(["INPUT","SELECT","TEXTAREA"]);function i5(i){return n5.has(i.tagName)||i.isContentEditable===!0}const Eo=new WeakSet;function Sm(i){return l=>{l.key==="Enter"&&i(l)}}function bc(i,l){i.dispatchEvent(new PointerEvent("pointer"+l,{isPrimary:!0,bubbles:!0}))}const a5=(i,l)=>{const o=i.currentTarget;if(!o)return;const r=Sm(()=>{if(Eo.has(o))return;bc(o,"down");const c=Sm(()=>{bc(o,"up")}),s=()=>bc(o,"cancel");o.addEventListener("keyup",c,l),o.addEventListener("blur",s,l)});o.addEventListener("keydown",r,l),o.addEventListener("blur",()=>o.removeEventListener("keydown",r),l)};function Tm(i){return Lf(i)&&!hp()}const bm=new WeakSet;function l5(i,l,o={}){const[r,c,s]=dp(i,o),f=h=>{const g=h.currentTarget;if(!Tm(h)||bm.has(h))return;Eo.add(g),o.stopPropagation&&bm.add(h);const v=l(g,h),p={...c,capture:!0},x=(S,T)=>{window.removeEventListener("pointerup",y,p),window.removeEventListener("pointercancel",m,p),Eo.has(g)&&Eo.delete(g),Tm(S)&&typeof v=="function"&&v(S,{success:T})},y=S=>{x(S,g===window||g===document||o.useGlobalTarget||mp(g,S.target))},m=S=>{x(S,!1)};window.addEventListener("pointerup",y,p),window.addEventListener("pointercancel",m,p)};return r.forEach(h=>{(o.useGlobalTarget?window:h).addEventListener("pointerdown",f,c),Ao(h)&&(h.addEventListener("focus",v=>a5(v,c)),!e5(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),s}const Co=new WeakMap;let Do;const pp=(i,l,o)=>(r,c)=>c&&c[0]?c[0][i+"Size"]:Of(r)&&"getBBox"in r?r.getBBox()[l]:r[o],s5=pp("inline","width","offsetWidth"),o5=pp("block","height","offsetHeight");function r5({target:i,borderBoxSize:l}){Co.get(i)?.forEach(o=>{o(i,{get width(){return s5(i,l)},get height(){return o5(i,l)}})})}function u5(i){i.forEach(r5)}function c5(){typeof ResizeObserver>"u"||(Do=new ResizeObserver(u5))}function f5(i,l){Do||c5();const o=lp(i);return o.forEach(r=>{let c=Co.get(r);c||(c=new Set,Co.set(r,c)),c.add(l),Do?.observe(r)}),()=>{o.forEach(r=>{const c=Co.get(r);c?.delete(l),c?.size||Do?.unobserve(r)})}}const wo=new Set;let Va;function h5(){Va=()=>{const i={get width(){return window.innerWidth},get height(){return window.innerHeight}};wo.forEach(l=>l(i))},window.addEventListener("resize",Va)}function d5(i){return wo.add(i),Va||h5(),()=>{wo.delete(i),!wo.size&&typeof Va=="function"&&(window.removeEventListener("resize",Va),Va=void 0)}}function Am(i,l){return typeof i=="function"?d5(i):f5(i,l)}function m5(i){return Of(i)&&i.tagName==="svg"}const Mm=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ua=()=>({x:Mm(),y:Mm()}),Em=()=>({min:0,max:0}),le=()=>({x:Em(),y:Em()}),p5=new WeakMap;function Qo(i){return i!==null&&typeof i=="object"&&typeof i.start=="function"}function ql(i){return typeof i=="string"||Array.isArray(i)}const Nf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Go=["initial",...Nf];function Zo(i){if(Qo(i.animate))return!0;for(let l=0;l<Go.length;l++)if(ql(i[Go[l]]))return!0;return!1}function gp(i){return!!(Zo(i)||i.variants)}function g5(i,l,o){for(const r in l){const c=l[r],s=o[r];if(ge(c))i.addValue(r,c);else if(ge(s))i.addValue(r,Na(c,{owner:i}));else if(s!==c)if(i.hasValue(r)){const f=i.getValue(r);f.liveStyle===!0?f.jump(c):f.hasAnimated||f.set(c)}else{const f=i.getStaticValue(r);i.addValue(r,Na(f!==void 0?f:c,{owner:i}))}}for(const r in o)l[r]===void 0&&i.removeValue(r);return l}const ef={current:null},vp={current:!1},v5=typeof window<"u";function y5(){if(vp.current=!0,!!v5)if(window.matchMedia){const i=window.matchMedia("(prefers-reduced-motion)"),l=()=>ef.current=i.matches;i.addEventListener("change",l),l()}else ef.current=!1}const Cm=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let jo={};function yp(i){jo=i}function x5(){return jo}class S5{scrapeMotionValuesFromProps(l,o,r){return{}}constructor({parent:l,props:o,presenceContext:r,reducedMotionConfig:c,skipAnimations:s,blockInitialAnimation:f,visualState:h},g={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Cf,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=pe.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,Gt.render(this.render,!1,!0))};const{latestValues:v,renderState:p}=h;this.latestValues=v,this.baseTarget={...v},this.initialValues=o.initial?{...v}:{},this.renderState=p,this.parent=l,this.props=o,this.presenceContext=r,this.depth=l?l.depth+1:0,this.reducedMotionConfig=c,this.skipAnimationsConfig=s,this.options=g,this.blockInitialAnimation=!!f,this.isControllingVariants=Zo(o),this.isVariantNode=gp(o),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(l&&l.current);const{willChange:x,...y}=this.scrapeMotionValuesFromProps(o,{},this);for(const m in y){const S=y[m];v[m]!==void 0&&ge(S)&&S.set(v[m])}}mount(l){if(this.hasBeenMounted)for(const o in this.initialValues)this.values.get(o)?.jump(this.initialValues[o]),this.latestValues[o]=this.initialValues[o];this.current=l,p5.set(l,this),this.projection&&!this.projection.instance&&this.projection.mount(l),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((o,r)=>this.bindToMotionValue(r,o)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(vp.current||y5(),this.shouldReduceMotion=ef.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),vi(this.notifyUpdate),vi(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 o=this.features[l];o&&(o.unmount(),o.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,o){if(this.valueSubscriptions.has(l)&&this.valueSubscriptions.get(l)(),o.accelerate&&Kc.has(l)&&this.current instanceof HTMLElement){const{factory:f,keyframes:h,times:g,ease:v,duration:p}=o.accelerate,x=new J1({element:this.current,name:l,keyframes:h,times:g,ease:v,duration:sn(p)}),y=f(x);this.valueSubscriptions.set(l,()=>{y(),x.cancel()});return}const r=Ga.has(l);r&&this.onBindTransform&&this.onBindTransform();const c=o.on("change",f=>{this.latestValues[l]=f,this.props.onUpdate&&Gt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;typeof window<"u"&&window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,l,o)),this.valueSubscriptions.set(l,()=>{c(),s&&s()})}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 jo){const o=jo[l];if(!o)continue;const{isEnabled:r,Feature:c}=o;if(!this.features[l]&&c&&r(this.props)&&(this.features[l]=new c(this)),this.features[l]){const s=this.features[l];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):le()}getStaticValue(l){return this.latestValues[l]}setStaticValue(l,o){this.latestValues[l]=o}update(l,o){(l.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=l,this.prevPresenceContext=this.presenceContext,this.presenceContext=o;for(let r=0;r<Cm.length;r++){const c=Cm[r];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const s="on"+c,f=l[s];f&&(this.propEventSubscriptions[c]=this.on(c,f))}this.prevMotionValues=g5(this,this.scrapeMotionValuesFromProps(l,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(l){return this.props.variants?this.props.variants[l]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(l){const o=this.getClosestVariantNode();if(o)return o.variantChildren&&o.variantChildren.add(l),()=>o.variantChildren.delete(l)}addValue(l,o){const r=this.values.get(l);o!==r&&(r&&this.removeValue(l),this.bindToMotionValue(l,o),this.values.set(l,o),this.latestValues[l]=o.get())}removeValue(l){this.values.delete(l);const o=this.valueSubscriptions.get(l);o&&(o(),this.valueSubscriptions.delete(l)),delete this.latestValues[l],this.removeValueFromRenderState(l,this.renderState)}hasValue(l){return this.values.has(l)}getValue(l,o){if(this.props.values&&this.props.values[l])return this.props.values[l];let r=this.values.get(l);return r===void 0&&o!==void 0&&(r=Na(o===null?void 0:o,{owner:this}),this.addValue(l,r)),r}readValue(l,o){let r=this.latestValues[l]!==void 0||!this.current?this.latestValues[l]:this.getBaseTargetFromProps(this.props,l)??this.readValueFromInstance(this.current,l,this.options);return r!=null&&(typeof r=="string"&&(hf(r)||df(r))?r=parseFloat(r):typeof r!="number"&&!Qe.test(r)&&Qe.test(o)&&(r=Ef(l,o)),this.setBaseTarget(l,ge(r)?r.get():r)),ge(r)?r.get():r}setBaseTarget(l,o){this.baseTarget[l]=o}getBaseTarget(l){const{initial:o}=this.props;let r;if(typeof o=="string"||typeof o=="object"){const s=Rf(this.props,o,this.presenceContext?.custom);s&&(r=s[l])}if(o&&r!==void 0)return r;const c=this.getBaseTargetFromProps(this.props,l);return c!==void 0&&!ge(c)?c:this.initialValues[l]!==void 0&&r===void 0?void 0:this.baseTarget[l]}on(l,o){return this.events[l]||(this.events[l]=new Vo),this.events[l].add(o)}notify(l,...o){this.events[l]&&this.events[l].notify(...o)}scheduleRenderMicrotask(){Uf.render(this.render)}}class xp extends S5{constructor(){super(...arguments),this.KeyframeResolver=jx}sortInstanceNodePosition(l,o){return l.compareDocumentPosition(o)&2?1:-1}getBaseTargetFromProps(l,o){const r=l.style;return r?r[o]:void 0}removeValueFromRenderState(l,{vars:o,style:r}){delete o[l],delete r[l]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:l}=this.props;ge(l)&&(this.childSubscription=l.on("change",o=>{this.current&&(this.current.textContent=`${o}`)}))}}class yi{constructor(l){this.isMounted=!1,this.node=l}update(){}}function Sp(i,{style:l,vars:o},r,c){const s=i.style;let f;for(f in l)s[f]=l[f];c?.applyProjectionStyles(s,r);for(f in o)s.setProperty(f,o[f])}function Dm(i,l){return l.max===l.min?0:i/(l.max-l.min)*100}const Ul={correct:(i,l)=>{if(!l.target)return i;if(typeof i=="string")if(rt.test(i))i=parseFloat(i);else return i;const o=Dm(i,l.target.x),r=Dm(i,l.target.y);return`${o}% ${r}%`}},T5={correct:(i,{treeScale:l,projectionDelta:o})=>{const r=i,c=Qe.parse(i);if(c.length>5)return r;const s=Qe.createTransformer(i),f=typeof c[0]!="number"?1:0,h=o.x.scale*l.x,g=o.y.scale*l.y;c[0+f]/=h,c[1+f]/=g;const v=Ht(h,g,.5);return typeof c[2+f]=="number"&&(c[2+f]/=v),typeof c[3+f]=="number"&&(c[3+f]/=v),s(c)}},nf={borderRadius:{...Ul,applyTo:[...zf]},borderTopLeftRadius:Ul,borderTopRightRadius:Ul,borderBottomLeftRadius:Ul,borderBottomRightRadius:Ul,boxShadow:T5};function Tp(i,{layout:l,layoutId:o}){return Ga.has(i)||i.startsWith("origin")||(l||o!==void 0)&&(!!nf[i]||i==="opacity")}function Hf(i,l,o){const r=i.style,c=l?.style,s={};if(!r)return s;for(const f in r)(ge(r[f])||c&&ge(c[f])||Tp(f,i)||o?.getValue(f)?.liveStyle!==void 0)&&(s[f]=r[f]);return s}function b5(i){return window.getComputedStyle(i)}class A5 extends xp{constructor(){super(...arguments),this.type="html",this.renderInstance=Sp}mount(l){qo(!!l.style),super.mount(l)}readValueFromInstance(l,o){if(Ga.has(o))return this.projection?.isProjecting?Pc(o):q3(l,o);{const r=b5(l),c=(B1(o)?r.getPropertyValue(o):r[o])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(l,{transformPagePoint:o}){return fp(l,o)}build(l,o,r){Vf(l,o,r.transformTemplate)}scrapeMotionValuesFromProps(l,o,r){return Hf(l,o,r)}}const bp=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"]),Ap=i=>typeof i=="string"&&i.toLowerCase()==="svg";function M5(i,l,o,r){Sp(i,l,void 0,r);for(const c in l.attrs)i.setAttribute(bp.has(c)?c:Bf(c),l.attrs[c])}function Mp(i,l,o){const r=Hf(i,l,o);for(const c in i)if(ge(i[c])||ge(l[c])){const s=_a.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;r[s]=i[c]}return r}class E5 extends xp{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=le}getBaseTargetFromProps(l,o){return l[o]}readValueFromInstance(l,o){if(Ga.has(o)){const r=P1(o);return r&&r.default||0}if(sp.includes(o)){const c=getComputedStyle(l)[o];if(typeof c=="string"&&c)return c.trim()}return o=bp.has(o)?o:Bf(o),l.getAttribute(o)}scrapeMotionValuesFromProps(l,o,r){return Mp(l,o,r)}build(l,o,r){op(l,o,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(l,o,r,c){M5(l,o,r,c)}mount(l){this.isSVGTag=Ap(l.tagName),super.mount(l)}}const C5=Go.length;function Ep(i){if(!i)return;if(!i.isControllingVariants){const o=i.parent?Ep(i.parent)||{}:{};return i.props.initial!==void 0&&(o.initial=i.props.initial),o}const l={};for(let o=0;o<C5;o++){const r=Go[o],c=i.props[r];(ql(c)||c===!1)&&(l[r]=c)}return l}function Cp(i,l){if(!Array.isArray(l))return!1;const o=l.length;if(o!==i.length)return!1;for(let r=0;r<o;r++)if(l[r]!==i[r])return!1;return!0}const D5=[...Nf].reverse(),w5=Nf.length;function R5(i){return l=>Promise.all(l.map(({animation:o,options:r})=>Vx(i,o,r)))}function B5(i){let l=R5(i),o=wm(),r=!0,c=!1;const s=v=>(p,x)=>{const y=qi(i,x,v==="exit"?i.presenceContext?.custom:void 0);if(y){const{transition:m,transitionEnd:S,...T}=y;p={...p,...T,...S}}return p};function f(v){l=v(i)}function h(v){const{props:p}=i,x=Ep(i.parent)||{},y=[],m=new Set;let S={},T=1/0;for(let C=0;C<w5;C++){const R=D5[C],z=o[R],U=p[R]!==void 0?p[R]:x[R],M=ql(U),B=R===v?z.isActive:null;B===!1&&(T=C);let D=U===x[R]&&U!==p[R]&&M;if(D&&(r||c)&&i.manuallyAnimateOnMount&&(D=!1),z.protectedKeys={...S},!z.isActive&&B===null||!U&&!z.prevProp||Qo(U)||typeof U=="boolean")continue;if(R==="exit"&&z.isActive&&B!==!0){z.prevResolvedValues&&(S={...S,...z.prevResolvedValues});continue}const E=z5(z.prevProp,U);let V=E||R===v&&z.isActive&&!D&&M||C>T&&M,O=!1;const L=Array.isArray(U)?U:[U];let H=L.reduce(s(R),{});B===!1&&(H={});const{prevResolvedValues:Q={}}=z,nt={...Q,...H},et=$=>{V=!0,m.has($)&&(O=!0,m.delete($)),z.needsAnimating[$]=!0;const lt=i.getValue($);lt&&(lt.liveStyle=!1)};for(const $ in nt){const lt=H[$],ft=Q[$];if(S.hasOwnProperty($))continue;let _=!1;kc(lt)&&kc(ft)?_=!Cp(lt,ft)||E:_=lt!==ft,_?lt!=null?et($):m.add($):lt!==void 0&&m.has($)?et($):z.protectedKeys[$]=!0}z.prevProp=U,z.prevResolvedValues=H,z.isActive&&(S={...S,...H}),(r||c)&&i.blockInitialAnimation&&(V=!1);const j=D&&E;V&&(!j||O)&&y.push(...L.map($=>{const lt={type:R};if(typeof $=="string"&&(r||c)&&!j&&i.manuallyAnimateOnMount&&i.parent){const{parent:ft}=i,_=qi(ft,$);if(ft.enteringChildren&&_){const{delayChildren:Y}=_.transition||{};lt.delay=I1(ft.enteringChildren,i,Y)}}return{animation:$,options:lt}}))}if(m.size){const C={};if(typeof p.initial!="boolean"){const R=qi(i,Array.isArray(p.initial)?p.initial[0]:p.initial);R&&R.transition&&(C.transition=R.transition)}m.forEach(R=>{const z=i.getBaseTarget(R),U=i.getValue(R);U&&(U.liveStyle=!0),C[R]=z??null}),y.push({animation:C})}let b=!!y.length;return r&&(p.initial===!1||p.initial===p.animate)&&!i.manuallyAnimateOnMount&&(b=!1),r=!1,c=!1,b?l(y):Promise.resolve()}function g(v,p){if(o[v].isActive===p)return Promise.resolve();i.variantChildren?.forEach(y=>y.animationState?.setActive(v,p)),o[v].isActive=p;const x=h(v);for(const y in o)o[y].protectedKeys={};return x}return{animateChanges:h,setActive:g,setAnimateFunction:f,getState:()=>o,reset:()=>{o=wm(),c=!0}}}function z5(i,l){return typeof l=="string"?l!==i:Array.isArray(l)?!Cp(l,i):!1}function _i(i=!1){return{isActive:i,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function wm(){return{animate:_i(!0),whileInView:_i(),whileHover:_i(),whileTap:_i(),whileDrag:_i(),whileFocus:_i(),exit:_i()}}function af(i,l){i.min=l.min,i.max=l.max}function fn(i,l){af(i.x,l.x),af(i.y,l.y)}function Rm(i,l){i.translate=l.translate,i.scale=l.scale,i.originPoint=l.originPoint,i.origin=l.origin}const Dp=1e-4,O5=1-Dp,V5=1+Dp,wp=.01,U5=0-wp,L5=0+wp;function Ee(i){return i.max-i.min}function N5(i,l,o){return Math.abs(i-l)<=o}function Bm(i,l,o,r=.5){i.origin=r,i.originPoint=Ht(l.min,l.max,i.origin),i.scale=Ee(o)/Ee(l),i.translate=Ht(o.min,o.max,i.origin)-i.originPoint,(i.scale>=O5&&i.scale<=V5||isNaN(i.scale))&&(i.scale=1),(i.translate>=U5&&i.translate<=L5||isNaN(i.translate))&&(i.translate=0)}function _l(i,l,o,r){Bm(i.x,l.x,o.x,r?r.originX:void 0),Bm(i.y,l.y,o.y,r?r.originY:void 0)}function zm(i,l,o,r=0){const c=r?Ht(o.min,o.max,r):o.min;i.min=c+l.min,i.max=i.min+Ee(l)}function H5(i,l,o,r){zm(i.x,l.x,o.x,r?.x),zm(i.y,l.y,o.y,r?.y)}function Om(i,l,o,r=0){const c=r?Ht(o.min,o.max,r):o.min;i.min=l.min-c,i.max=i.min+Ee(l)}function Yo(i,l,o,r){Om(i.x,l.x,o.x,r?.x),Om(i.y,l.y,o.y,r?.y)}function Vm(i,l,o,r,c){return i-=l,i=_o(i,1/o,r),c!==void 0&&(i=_o(i,1/c,r)),i}function _5(i,l=0,o=1,r=.5,c,s=i,f=i){if(Mn.test(l)&&(l=parseFloat(l),l=Ht(f.min,f.max,l/100)-f.min),typeof l!="number")return;let h=Ht(s.min,s.max,r);i===s&&(h-=l),i.min=Vm(i.min,l,o,h,c),i.max=Vm(i.max,l,o,h,c)}function Um(i,l,[o,r,c],s,f){_5(i,l[o],l[r],l[c],l.scale,s,f)}const G5=["x","scaleX","originX"],j5=["y","scaleY","originY"];function Lm(i,l,o,r){Um(i.x,l,G5,o?o.x:void 0,r?r.x:void 0),Um(i.y,l,j5,o?o.y:void 0,r?r.y:void 0)}function Nm(i){return i.translate===0&&i.scale===1}function Rp(i){return Nm(i.x)&&Nm(i.y)}function Hm(i,l){return i.min===l.min&&i.max===l.max}function Y5(i,l){return Hm(i.x,l.x)&&Hm(i.y,l.y)}function _m(i,l){return Math.round(i.min)===Math.round(l.min)&&Math.round(i.max)===Math.round(l.max)}function Bp(i,l){return _m(i.x,l.x)&&_m(i.y,l.y)}function Gm(i){return Ee(i.x)/Ee(i.y)}function jm(i,l){return i.translate===l.translate&&i.scale===l.scale&&i.originPoint===l.originPoint}function bn(i){return[i("x"),i("y")]}function P5(i,l,o){let r="";const c=i.x.translate/l.x,s=i.y.translate/l.y,f=o?.z||0;if((c||s||f)&&(r=`translate3d(${c}px, ${s}px, ${f}px) `),(l.x!==1||l.y!==1)&&(r+=`scale(${1/l.x}, ${1/l.y}) `),o){const{transformPerspective:v,rotate:p,pathRotation:x,rotateX:y,rotateY:m,skewX:S,skewY:T}=o;v&&(r=`perspective(${v}px) ${r}`),p&&(r+=`rotate(${p}deg) `),x&&(r+=`rotate(${x}deg) `),y&&(r+=`rotateX(${y}deg) `),m&&(r+=`rotateY(${m}deg) `),S&&(r+=`skewX(${S}deg) `),T&&(r+=`skewY(${T}deg) `)}const h=i.x.scale*l.x,g=i.y.scale*l.y;return(h!==1||g!==1)&&(r+=`scale(${h}, ${g})`),r||"none"}const X5=zf.length,Ym=i=>typeof i=="string"?parseFloat(i):i,Pm=i=>typeof i=="number"||rt.test(i);function q5(i,l,o,r,c,s){c?(i.opacity=Ht(0,o.opacity??1,F5(r)),i.opacityExit=Ht(l.opacity??1,0,Q5(r))):s&&(i.opacity=Ht(l.opacity??1,o.opacity??1,r));for(let f=0;f<X5;f++){const h=zf[f];let g=Xm(l,h),v=Xm(o,h);if(g===void 0&&v===void 0)continue;g||(g=0),v||(v=0),g===0||v===0||Pm(g)===Pm(v)?(i[h]=Math.max(Ht(Ym(g),Ym(v),r),0),(Mn.test(v)||Mn.test(g))&&(i[h]+="%")):i[h]=v}(l.rotate||o.rotate)&&(i.rotate=Ht(l.rotate||0,o.rotate||0,r))}function Xm(i,l){return i[l]!==void 0?i[l]:i.borderRadius}const F5=zp(0,.5,E1),Q5=zp(.5,.95,dn);function zp(i,l,o){return r=>r<i?0:r>l?1:o(Yl(i,l,r))}function Z5(i,l,o){const r=ge(i)?i:Na(i);return r.start(wf("",r,l,o)),r.animation}function Fl(i,l,o,r={passive:!0}){return i.addEventListener(l,o,r),()=>i.removeEventListener(l,o,r)}const K5=(i,l)=>i.depth-l.depth;class k5{constructor(){this.children=[],this.isDirty=!1}add(l){ff(this.children,l),this.isDirty=!0}remove(l){Oo(this.children,l),this.isDirty=!0}forEach(l){this.isDirty&&this.children.sort(K5),this.isDirty=!1,this.children.forEach(l)}}function J5(i,l){const o=pe.now(),r=({timestamp:c})=>{const s=c-o;s>=l&&(vi(r),i(s-l))};return Gt.setup(r,!0),()=>vi(r)}function Ro(i){return ge(i)?i.get():i}class W5{constructor(){this.members=[]}add(l){ff(this.members,l);for(let o=this.members.length-1;o>=0;o--){const r=this.members[o];if(r===l||r===this.lead||r===this.prevLead)continue;const c=r.instance;(!c||c.isConnected===!1)&&!r.snapshot&&(Oo(this.members,r),r.unmount())}l.scheduleRender()}remove(l){if(Oo(this.members,l),l===this.prevLead&&(this.prevLead=void 0),l===this.lead){const o=this.members[this.members.length-1];o&&this.promote(o)}}relegate(l){for(let o=this.members.indexOf(l)-1;o>=0;o--){const r=this.members[o];if(r.isPresent!==!1&&r.instance?.isConnected!==!1)return this.promote(r),!0}return!1}promote(l,o){const r=this.lead;if(l!==r&&(this.prevLead=r,this.lead=l,l.show(),r)){r.updateSnapshot(),l.scheduleRender();const{layoutDependency:c}=r.options,{layoutDependency:s}=l.options;(c===void 0||c!==s)&&(l.resumeFrom=r,o&&(r.preserveOpacity=!0),r.snapshot&&(l.snapshot=r.snapshot,l.snapshot.latestValues=r.animationValues||r.latestValues),l.root?.isUpdating&&(l.isLayoutDirty=!0)),l.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(l=>{l.options.onExitComplete?.(),l.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(l=>l.instance&&l.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const Bo={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Ac=["","X","Y","Z"],I5=1e3;let $5=0;function Mc(i,l,o,r){const{latestValues:c}=l;c[i]&&(o[i]=c[i],l.setStaticValue(i,0),r&&(r[i]=0))}function Op(i){if(i.hasCheckedOptimisedAppear=!0,i.root===i)return;const{visualElement:l}=i.options;if(!l)return;const o=ip(l);if(window.MotionHasOptimisedAnimation(o,"transform")){const{layout:c,layoutId:s}=i.options;window.MotionCancelOptimisedAnimation(o,"transform",Gt,!(c||s))}const{parent:r}=i;r&&!r.hasCheckedOptimisedAppear&&Op(r)}function Vp({attachResizeListener:i,defaultParent:l,measureScroll:o,checkIsScrollRoot:r,resetTransform:c}){return class{constructor(f={},h=l?.()){this.id=$5++,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(n4),this.nodes.forEach(r4),this.nodes.forEach(u4),this.nodes.forEach(i4)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,this.root=h?h.root||h:this,this.path=h?[...h.path,h]:[],this.parent=h,this.depth=h?h.depth+1:0;for(let g=0;g<this.path.length;g++)this.path[g].shouldResetTransform=!0;this.root===this&&(this.nodes=new k5)}addEventListener(f,h){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new Vo),this.eventHandlers.get(f).add(h)}notifyListeners(f,...h){const g=this.eventHandlers.get(f);g&&g.notify(...h)}hasListeners(f){return this.eventHandlers.has(f)}mount(f){if(this.instance)return;this.isSVG=Of(f)&&!m5(f),this.instance=f;const{layoutId:h,layout:g,visualElement:v}=this.options;if(v&&!v.current&&v.mount(f),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(g||h)&&(this.isLayoutDirty=!0),i){let p,x=0;const y=()=>this.root.updateBlockedByResize=!1;Gt.read(()=>{x=window.innerWidth}),i(f,()=>{const m=window.innerWidth;m!==x&&(x=m,this.root.updateBlockedByResize=!0,p&&p(),p=J5(y,250),Bo.hasAnimatedSinceResize&&(Bo.hasAnimatedSinceResize=!1,this.nodes.forEach(Qm)))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&v&&(h||g)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:x,hasRelativeLayoutChanged:y,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const S=this.options.transition||v.getDefaultTransition()||m4,{onLayoutAnimationStart:T,onLayoutAnimationComplete:b}=v.getProps(),C=!this.targetLayout||!Bp(this.targetLayout,m),R=!x&&y;if(this.options.layoutRoot||this.resumeFrom||R||x&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const z={...Df(S,"layout"),onPlay:T,onComplete:b};(v.shouldReduceMotion||this.options.layoutRoot)&&(z.delay=0,z.type=!1),this.startAnimation(z),this.setAnimationOrigin(p,R,z.path)}else x||Qm(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const f=this.getStack();f&&f.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),vi(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(c4),this.animationId++)}getTransformTemplate(){const{visualElement:f}=this.options;return f&&f.getProps().transformTemplate}willUpdate(f=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Op(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){const x=this.path[p];x.shouldResetTransform=!0,(typeof x.latestValues.x=="string"||typeof x.latestValues.y=="string")&&(x.isLayoutDirty=!0),x.updateScroll("snapshot"),x.options.layoutRoot&&x.willUpdate(!1)}const{layoutId:h,layout:g}=this.options;if(h===void 0&&!g)return;const v=this.getTransformTemplate();this.prevTransformTemplateValue=v?v(this.latestValues,""):void 0,this.updateSnapshot(),f&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const g=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),g&&this.nodes.forEach(l4),this.nodes.forEach(qm);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Fm);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(s4),this.nodes.forEach(o4),this.nodes.forEach(t4),this.nodes.forEach(e4)):this.nodes.forEach(Fm),this.clearAllSnapshots();const h=pe.now();ue.delta=mn(0,1e3/60,h-ue.timestamp),ue.timestamp=h,ue.isProcessing=!0,mc.update.process(ue),mc.preRender.process(ue),mc.render.process(ue),ue.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Uf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(a4),this.sharedNodes.forEach(f4)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ee(this.snapshot.measuredBox.x)&&!Ee(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 g=0;g<this.path.length;g++)this.path[g].updateScroll();const f=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=le()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:h}=this.options;h&&h.notify("LayoutMeasure",this.layout.layoutBox,f?f.layoutBox:void 0)}updateScroll(f="measure"){let h=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===f&&(h=!1),h&&this.instance){const g=r(this.instance);this.scroll={animationId:this.root.animationId,phase:f,isRoot:g,offset:o(this.instance),wasRoot:this.scroll?this.scroll.isRoot:g}}}resetTransform(){if(!c)return;const f=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!Rp(this.projectionDelta),g=this.getTransformTemplate(),v=g?g(this.latestValues,""):void 0,p=v!==this.prevTransformTemplateValue;f&&this.instance&&(h||Gi(this.latestValues)||p)&&(c(this.instance,v),this.shouldResetTransform=!1,this.scheduleRender())}measure(f=!0){const h=this.measurePageBox();let g=this.removeElementScroll(h);return f&&(g=this.removeTransform(g)),p4(g),{animationId:this.root.animationId,measuredBox:h,layoutBox:g,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:f}=this.options;if(!f)return le();const h=f.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(g4))){const{scroll:v}=this.root;v&&(An(h.x,v.offset.x),An(h.y,v.offset.y))}return h}removeElementScroll(f){const h=le();if(fn(h,f),this.scroll?.wasRoot)return h;for(let g=0;g<this.path.length;g++){const v=this.path[g],{scroll:p,options:x}=v;v!==this.root&&p&&x.layoutScroll&&(p.wasRoot&&fn(h,f),An(h.x,p.offset.x),An(h.y,p.offset.y))}return h}applyTransform(f,h=!1,g){const v=g||le();fn(v,f);for(let p=0;p<this.path.length;p++){const x=this.path[p];!h&&x.options.layoutScroll&&x.scroll&&x!==x.root&&(An(v.x,-x.scroll.offset.x),An(v.y,-x.scroll.offset.y)),Gi(x.latestValues)&&Mo(v,x.latestValues,x.layout?.layoutBox)}return Gi(this.latestValues)&&Mo(v,this.latestValues,this.layout?.layoutBox),v}removeTransform(f){const h=le();fn(h,f);for(let g=0;g<this.path.length;g++){const v=this.path[g];if(!Gi(v.latestValues))continue;let p;v.instance&&($c(v.latestValues)&&v.updateSnapshot(),p=le(),fn(p,v.measurePageBox())),Lm(h,v.latestValues,v.snapshot?.layoutBox,p)}return Gi(this.latestValues)&&Lm(h,this.latestValues),h}setTargetDelta(f){this.targetDelta=f,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(f){this.options={...this.options,...f,crossfade:f.crossfade!==void 0?f.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ue.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(f=!1){const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const g=!!this.resumingFrom||this!==h;if(!(f||g&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:p,layoutId:x}=this.options;if(!this.layout||!(p||x))return;this.resolvedRelativeTargetAt=ue.timestamp;const y=this.getClosestProjectingParent();y&&this.linkedParentVersion!==y.layoutVersion&&!y.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&y&&y.layout?this.createRelativeTarget(y,this.layout.layoutBox,y.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=le(),this.targetWithTransforms=le()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),H5(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):fn(this.target,this.layout.layoutBox),cp(this.target,this.targetDelta)):fn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?this.createRelativeTarget(y,this.target,y.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||$c(this.parent.latestValues)||up(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(f,h,g){this.relativeParent=f,this.linkedParentVersion=f.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=le(),this.relativeTargetOrigin=le(),Yo(this.relativeTargetOrigin,h,g,this.options.layoutAnchor||void 0),fn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const f=this.getLead(),h=!!this.resumingFrom||this!==f;let g=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(g=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(g=!1),this.resolvedRelativeTargetAt===ue.timestamp&&(g=!1),g)return;const{layout:v,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(v||p))return;fn(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,y=this.treeScale.y;kx(this.layoutCorrected,this.treeScale,this.path,h),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=le());const{target:m}=f;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Rm(this.prevProjectionDelta.x,this.projectionDelta.x),Rm(this.prevProjectionDelta.y,this.projectionDelta.y)),_l(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==y||!jm(this.projectionDelta.x,this.prevProjectionDelta.x)||!jm(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(f=!0){if(this.options.visualElement?.scheduleRender(),f){const h=this.getStack();h&&h.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ua(),this.projectionDelta=Ua(),this.projectionDeltaWithTransform=Ua()}setAnimationOrigin(f,h=!1,g){const v=this.snapshot,p=v?v.latestValues:{},x={...this.latestValues},y=Ua();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const m=le(),S=v?v.source:void 0,T=this.layout?this.layout.source:void 0,b=S!==T,C=this.getStack(),R=!C||C.members.length<=1,z=!!(b&&!R&&this.options.crossfade===!0&&!this.path.some(d4));this.animationProgress=0;let U;const M=g?.interpolateProjection(f);this.mixTargetDelta=B=>{const D=B/1e3,E=M?.(D);E?(y.x.translate=E.x,y.x.scale=Ht(f.x.scale,1,D),y.x.origin=f.x.origin,y.x.originPoint=f.x.originPoint,y.y.translate=E.y,y.y.scale=Ht(f.y.scale,1,D),y.y.origin=f.y.origin,y.y.originPoint=f.y.originPoint):(Zm(y.x,f.x,D),Zm(y.y,f.y,D)),this.setTargetDelta(y),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Yo(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),h4(this.relativeTarget,this.relativeTargetOrigin,m,D),U&&Y5(this.relativeTarget,U)&&(this.isProjectionDirty=!1),U||(U=le()),fn(U,this.relativeTarget)),b&&(this.animationValues=x,q5(x,p,this.latestValues,D,z,R)),E&&E.rotate!==void 0&&(this.animationValues||(this.animationValues=x),this.animationValues.pathRotation=E.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=D},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(vi(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Gt.update(()=>{Bo.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Na(0)),this.motionValue.jump(0,!1),this.currentAnimation=Z5(this.motionValue,[0,1e3],{...f,velocity:0,isSync:!0,onUpdate:h=>{this.mixTargetDelta(h),f.onUpdate&&f.onUpdate(h)},onComplete:()=>{f.onComplete&&f.onComplete(),this.completeAnimation()}}),V3(this.currentAnimation,this),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const f=this.getStack();f&&f.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(I5),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead(),{targetWithTransforms:h,layout:g,latestValues:v}=f;let{target:p}=f;if(!(!h||!p||!g)){if(this!==f&&this.layout&&g&&Up(this.options.animationType,this.layout.layoutBox,g.layoutBox)){p=this.target||le();const x=Ee(this.layout.layoutBox.x);p.x.min=f.target.x.min,p.x.max=p.x.min+x;const y=Ee(this.layout.layoutBox.y);p.y.min=f.target.y.min,p.y.max=p.y.min+y}fn(h,p),Mo(h,v),_l(this.projectionDeltaWithTransform,this.layoutCorrected,h,v)}}registerSharedNode(f,h){this.sharedNodes.has(f)||this.sharedNodes.set(f,new W5),this.sharedNodes.get(f).add(h);const v=h.options.initialPromotionConfig;h.promote({transition:v?v.transition:void 0,preserveFollowOpacity:v&&v.shouldPreserveFollowOpacity?v.shouldPreserveFollowOpacity(h):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){const{layoutId:f}=this.options;return f?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:f}=this.options;return f?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:h,preserveFollowOpacity:g}={}){const v=this.getStack();v&&v.promote(this,g),f&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let h=!1;const{latestValues:g}=f;if((g.z||g.rotate||g.rotateX||g.rotateY||g.rotateZ||g.skewX||g.skewY)&&(h=!0),!h)return;const v={};g.z&&Mc("z",f,v,this.animationValues);for(let p=0;p<Ac.length;p++)Mc(`rotate${Ac[p]}`,f,v,this.animationValues),Mc(`skew${Ac[p]}`,f,v,this.animationValues);f.render();for(const p in v)f.setStaticValue(p,v[p]),this.animationValues&&(this.animationValues[p]=v[p]);f.scheduleRender()}applyProjectionStyles(f,h){if(!this.instance||this.isSVG)return;if(!this.isVisible){f.visibility="hidden";return}const g=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,f.visibility="",f.opacity="",f.pointerEvents=Ro(h?.pointerEvents)||"",f.transform=g?g(this.latestValues,""):"none";return}const v=this.getLead();if(!this.projectionDelta||!this.layout||!v.target){this.options.layoutId&&(f.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,f.pointerEvents=Ro(h?.pointerEvents)||""),this.hasProjected&&!Gi(this.latestValues)&&(f.transform=g?g({},""):"none",this.hasProjected=!1);return}f.visibility="";const p=v.animationValues||v.latestValues;this.applyTransformsToTarget();let x=P5(this.projectionDeltaWithTransform,this.treeScale,p);g&&(x=g(p,x)),f.transform=x;const{x:y,y:m}=this.projectionDelta;f.transformOrigin=`${y.origin*100}% ${m.origin*100}% 0`,v.animationValues?f.opacity=v===this?p.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:f.opacity=v===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const S in nf){if(p[S]===void 0)continue;const{correct:T,applyTo:b,isCSSVariable:C}=nf[S],R=x==="none"?p[S]:T(p[S],v);if(b){const z=b.length;for(let U=0;U<z;U++)f[b[U]]=R}else C?this.options.visualElement.renderState.vars[S]=R:f[S]=R}this.options.layoutId&&(f.pointerEvents=v===this?Ro(h?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(f=>f.currentAnimation?.stop()),this.root.nodes.forEach(qm),this.root.sharedNodes.clear()}}}function t4(i){i.updateLayout()}function e4(i){const l=i.resumeFrom?.snapshot||i.snapshot;if(i.isLead()&&i.layout&&l&&i.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:r}=i.layout,{animationType:c}=i.options,s=l.source!==i.layout.source;if(c==="size")bn(p=>{const x=s?l.measuredBox[p]:l.layoutBox[p],y=Ee(x);x.min=o[p].min,x.max=x.min+y});else if(c==="x"||c==="y"){const p=c==="x"?"y":"x";af(s?l.measuredBox[p]:l.layoutBox[p],o[p])}else Up(c,l.layoutBox,o)&&bn(p=>{const x=s?l.measuredBox[p]:l.layoutBox[p],y=Ee(o[p]);x.max=x.min+y,i.relativeTarget&&!i.currentAnimation&&(i.isProjectionDirty=!0,i.relativeTarget[p].max=i.relativeTarget[p].min+y)});const f=Ua();_l(f,o,l.layoutBox);const h=Ua();s?_l(h,i.applyTransform(r,!0),l.measuredBox):_l(h,o,l.layoutBox);const g=!Rp(f);let v=!1;if(!i.resumeFrom){const p=i.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:x,layout:y}=p;if(x&&y){const m=i.options.layoutAnchor||void 0,S=le();Yo(S,l.layoutBox,x.layoutBox,m);const T=le();Yo(T,o,y.layoutBox,m),Bp(S,T)||(v=!0),p.options.layoutRoot&&(i.relativeTarget=T,i.relativeTargetOrigin=S,i.relativeParent=p)}}}i.notifyListeners("didUpdate",{layout:o,snapshot:l,delta:h,layoutDelta:f,hasLayoutChanged:g,hasRelativeLayoutChanged:v})}else if(i.isLead()){const{onExitComplete:o}=i.options;o&&o()}i.options.transition=void 0}function n4(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 i4(i){i.isProjectionDirty=i.isSharedProjectionDirty=i.isTransformDirty=!1}function a4(i){i.clearSnapshot()}function qm(i){i.clearMeasurements()}function l4(i){i.isLayoutDirty=!0,i.updateLayout()}function Fm(i){i.isLayoutDirty=!1}function s4(i){i.isAnimationBlocked&&i.layout&&!i.isLayoutDirty&&(i.snapshot=i.layout,i.isLayoutDirty=!0)}function o4(i){const{visualElement:l}=i.options;l&&l.getProps().onBeforeLayoutMeasure&&l.notify("BeforeLayoutMeasure"),i.resetTransform()}function Qm(i){i.finishAnimation(),i.targetDelta=i.relativeTarget=i.target=void 0,i.isProjectionDirty=!0}function r4(i){i.resolveTargetDelta()}function u4(i){i.calcProjection()}function c4(i){i.resetSkewAndRotation()}function f4(i){i.removeLeadSnapshot()}function Zm(i,l,o){i.translate=Ht(l.translate,0,o),i.scale=Ht(l.scale,1,o),i.origin=l.origin,i.originPoint=l.originPoint}function Km(i,l,o,r){i.min=Ht(l.min,o.min,r),i.max=Ht(l.max,o.max,r)}function h4(i,l,o,r){Km(i.x,l.x,o.x,r),Km(i.y,l.y,o.y,r)}function d4(i){return i.animationValues&&i.animationValues.opacityExit!==void 0}const m4={duration:.45,ease:[.4,0,.1,1]},km=i=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(i),Jm=km("applewebkit/")&&!km("chrome/")?Math.round:dn;function Wm(i){i.min=Jm(i.min),i.max=Jm(i.max)}function p4(i){Wm(i.x),Wm(i.y)}function Up(i,l,o){return i==="position"||i==="preserve-aspect"&&!N5(Gm(l),Gm(o),.2)}function g4(i){return i!==i.root&&i.scroll?.wasRoot}const v4=Vp({attachResizeListener:(i,l)=>Fl(i,"resize",l),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Ec={current:void 0},Lp=Vp({measureScroll:i=>({x:i.scrollLeft,y:i.scrollTop}),defaultParent:()=>{if(!Ec.current){const i=new v4({});i.mount(window),i.setOptions({layoutScroll:!0}),Ec.current=i}return Ec.current},resetTransform:(i,l)=>{i.style.transform=l!==void 0?l:"none"},checkIsScrollRoot:i=>window.getComputedStyle(i).position==="fixed"}),_f=tt.createContext({transformPagePoint:i=>i,isStatic:!1,reducedMotion:"never"});function Im(i,l){if(typeof i=="function")return i(l);i!=null&&(i.current=l)}function y4(...i){return l=>{let o=!1;const r=i.map(c=>{const s=Im(c,l);return!o&&typeof s=="function"&&(o=!0),s});if(o)return()=>{for(let c=0;c<r.length;c++){const s=r[c];typeof s=="function"?s():Im(i[c],null)}}}}function x4(...i){return tt.useCallback(y4(...i),i)}class S4 extends tt.Component{getSnapshotBeforeUpdate(l){const o=this.props.childRef.current;if(Ao(o)&&l.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=o.offsetParent,c=Ao(r)&&r.offsetWidth||0,s=Ao(r)&&r.offsetHeight||0,f=getComputedStyle(o),h=this.props.sizeRef.current;h.height=parseFloat(f.height),h.width=parseFloat(f.width),h.top=o.offsetTop,h.left=o.offsetLeft,h.right=c-h.width-h.left,h.bottom=s-h.height-h.top,h.direction=f.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function T4({children:i,isPresent:l,anchorX:o,anchorY:r,root:c,pop:s}){const f=tt.useId(),h=tt.useRef(null),g=tt.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:v}=tt.useContext(_f),p=s!==!1?i.props?.ref??i?.ref:void 0,x=x4(h,p);return tt.useInsertionEffect(()=>{const{width:y,height:m,top:S,left:T,right:b,bottom:C,direction:R}=g.current;if(l||s===!1||!h.current||!y||!m)return;const z=R==="rtl",U=o==="left"?z?`right: ${b}`:`left: ${T}`:z?`left: ${T}`:`right: ${b}`,M=r==="bottom"?`bottom: ${C}`:`top: ${S}`;h.current.dataset.motionPopId=f;const B=document.createElement("style");v&&(B.nonce=v);const D=c??document.head;return D.appendChild(B),B.sheet&&B.sheet.insertRule(`
[data-motion-pop-id="${f}"] {
position: absolute !important;
width: ${y}px !important;
height: ${m}px !important;
${U}px !important;
${M}px !important;
}
`),()=>{h.current?.removeAttribute("data-motion-pop-id"),D.contains(B)&&D.removeChild(B)}},[l]),gt.jsx(S4,{isPresent:l,childRef:h,sizeRef:g,pop:s,children:s===!1?i:tt.cloneElement(i,{ref:x})})}const b4=({children:i,initial:l,isPresent:o,onExitComplete:r,custom:c,presenceAffectsLayout:s,mode:f,anchorX:h,anchorY:g,root:v})=>{const p=cf(A4),x=tt.useId(),y=tt.useRef(o),m=tt.useRef(r);jl(()=>{y.current=o,m.current=r});let S=!0,T=tt.useMemo(()=>(S=!1,{id:x,initial:l,isPresent:o,custom:c,onExitComplete:b=>{p.set(b,!0);for(const C of p.values())if(!C)return;r&&r()},register:b=>(p.set(b,!1),()=>{p.delete(b),!y.current&&!p.size&&m.current?.()})}),[o,p,r]);return s&&S&&(T={...T}),tt.useMemo(()=>{p.forEach((b,C)=>p.set(C,!1))},[o]),tt.useEffect(()=>{!o&&!p.size&&r&&r()},[o]),i=gt.jsx(T4,{pop:f==="popLayout",isPresent:o,anchorX:h,anchorY:g,root:v,children:i}),gt.jsx(Xo.Provider,{value:T,children:i})};function A4(){return new Map}function Np(i=!0){const l=tt.useContext(Xo);if(l===null)return[!0,null];const{isPresent:o,onExitComplete:r,register:c}=l,s=tt.useId();tt.useEffect(()=>{if(i)return c(s)},[i]);const f=tt.useCallback(()=>i&&r&&r(s),[s,r,i]);return!o&&r?[!1,f]:[!0]}const go=i=>i.key||"";function $m(i){const l=[];return tt.Children.forEach(i,o=>{tt.isValidElement(o)&&l.push(o)}),l}const Cc=({children:i,custom:l,initial:o=!0,onExitComplete:r,presenceAffectsLayout:c=!0,mode:s="sync",propagate:f=!1,anchorX:h="left",anchorY:g="top",root:v})=>{const[p,x]=Np(f),y=tt.useMemo(()=>$m(i),[i]),m=f&&!p?[]:y.map(go),S=tt.useRef(!0),T=tt.useRef(y),b=cf(()=>new Map),C=tt.useRef(new Set),[R,z]=tt.useState(y),[U,M]=tt.useState(y);jl(()=>{f&&!p&&!U.length&&x?.()},[p,f,U.length,x]),jl(()=>{S.current=!1,T.current=y;for(let E=0;E<U.length;E++){const V=go(U[E]);m.includes(V)?(b.delete(V),C.current.delete(V)):b.get(V)!==!0&&b.set(V,!1)}},[U,m.length,m.join("-")]);const B=[];if(y!==R){let E=[...y],V=0;for(const O of U){const L=m.indexOf(go(O));L===-1?(E.splice(V++,0,O),B.push(O)):V=L+B.length+1}return s==="wait"&&B.length&&(E=B),M($m(E)),z(y),null}const{forceRender:D}=tt.useContext(uf);return gt.jsx(gt.Fragment,{children:U.map(E=>{const V=go(E),O=f&&!p?!1:y===U||m.includes(V),L=()=>{if(C.current.has(V))return;if(b.has(V))C.current.add(V),b.set(V,!0);else return;let H=!0;b.forEach(Q=>{Q||(H=!1)}),H&&(D?.(),M(T.current),f&&x?.(),r&&r())};return gt.jsx(b4,{isPresent:O,initial:!S.current||o?void 0:!1,custom:l,presenceAffectsLayout:c,mode:s,root:v,onExitComplete:O?void 0:L,anchorX:h,anchorY:g,children:E},V)})})},Hp=tt.createContext({strict:!1}),t1={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 e1=!1;function M4(){if(e1)return;const i={};for(const l in t1)i[l]={isEnabled:o=>t1[l].some(r=>!!o[r])};yp(i),e1=!0}function _p(){return M4(),x5()}function E4(i){const l=_p();for(const o in i)l[o]={...l[o],...i[o]};yp(l)}const Ko=tt.createContext({});function C4(i,l){if(Zo(i)){const{initial:o,animate:r}=i;return{initial:o===!1||ql(o)?o:void 0,animate:ql(r)?r:void 0}}return i.inherit!==!1?l:{}}function D4(i){const{initial:l,animate:o}=C4(i,tt.useContext(Ko));return tt.useMemo(()=>({initial:l,animate:o}),[n1(l),n1(o)])}function n1(i){return Array.isArray(i)?i.join(" "):i}const Gf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Gp(i,l,o){for(const r in l)!ge(l[r])&&!Tp(r,o)&&(i[r]=l[r])}function w4({transformTemplate:i},l){return tt.useMemo(()=>{const o=Gf();return Vf(o,l,i),Object.assign({},o.vars,o.style)},[l])}function R4(i,l){const o=i.style||{},r={};return Gp(r,o,i),Object.assign(r,w4(i,l)),r}function B4(i,l){const o={},r=R4(i,l);return i.drag&&i.dragListener!==!1&&(o.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=i.drag===!0?"none":`pan-${i.drag==="x"?"y":"x"}`),i.tabIndex===void 0&&(i.onTap||i.onTapStart||i.whileTap)&&(o.tabIndex=0),o.style=r,o}const jp=()=>({...Gf(),attrs:{}});function z4(i,l,o,r){const c=tt.useMemo(()=>{const s=jp();return op(s,l,Ap(r),i.transformTemplate,i.style),{...s.attrs,style:{...s.style}}},[l]);if(i.style){const s={};Gp(s,i.style,i),c.style={...s,...c.style}}return c}const O4=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Po(i){return i.startsWith("while")||i.startsWith("drag")&&i!=="draggable"||i.startsWith("layout")||i.startsWith("onTap")||i.startsWith("onPan")||i.startsWith("onLayout")||O4.has(i)}function V4(i,l){return i.startsWith("on")?!Po(i):l?.(i)??!Po(i)}function U4(i,l,o,r){const c={};for(const s in i)s==="values"&&typeof i.values=="object"||ge(i[s])||(V4(s,r)||o===!0&&Po(s)||!l&&!Po(s)||i.draggable&&s.startsWith("onDrag"))&&(c[s]=i[s]);return c}const L4=["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 jf(i){return typeof i!="string"||i.includes("-")?!1:!!(L4.indexOf(i)>-1||/[A-Z]/u.test(i))}function N4(i,l,o,{latestValues:r},c,s=!1,f,h){const v=(f??jf(i)?z4:B4)(l,r,c,i),p=U4(l,typeof i=="string",s,h),x=i!==tt.Fragment?{...p,...v,ref:o}:{},{children:y}=l,m=tt.useMemo(()=>ge(y)?y.get():y,[y]);return tt.createElement(i,{...x,children:m})}function H4({scrapeMotionValuesFromProps:i,createRenderState:l},o,r,c){return{latestValues:_4(o,r,c,i),renderState:l()}}function _4(i,l,o,r){const c={},s=r(i,{});for(const y in s)c[y]=Ro(s[y]);let{initial:f,animate:h}=i;const g=Zo(i),v=gp(i);l&&v&&!g&&i.inherit!==!1&&(f===void 0&&(f=l.initial),h===void 0&&(h=l.animate));let p=o?o.initial===!1:!1;p=p||f===!1;const x=p?h:f;if(x&&typeof x!="boolean"&&!Qo(x)){const y=Array.isArray(x)?x:[x];for(let m=0;m<y.length;m++){const S=Rf(i,y[m]);if(S){const{transitionEnd:T,transition:b,...C}=S;for(const R in C){let z=C[R];if(Array.isArray(z)){const U=p?z.length-1:0;z=z[U]}z!==null&&(c[R]=z)}for(const R in T)c[R]=T[R]}}}return c}const Yp=i=>(l,o)=>{const r=tt.useContext(Ko),c=tt.useContext(Xo),s=()=>H4(i,l,r,c);return o?s():cf(s)},G4=Yp({scrapeMotionValuesFromProps:Hf,createRenderState:Gf}),j4=Yp({scrapeMotionValuesFromProps:Mp,createRenderState:jp}),Y4=Symbol.for("motionComponentSymbol");function P4(i,l,o){const r=tt.useRef(o);tt.useInsertionEffect(()=>{r.current=o});const c=tt.useRef(null);return tt.useCallback(s=>{s&&i.onMount?.(s),l&&(s?l.mount(s):l.unmount());const f=r.current;if(typeof f=="function")if(s){const h=f(s);typeof h=="function"&&(c.current=h)}else c.current?(c.current(),c.current=null):f(s);else f&&(f.current=s)},[l])}const Pp=tt.createContext({});function za(i){return i&&typeof i=="object"&&Object.prototype.hasOwnProperty.call(i,"current")}function X4(i,l,o,r,c,s){const{visualElement:f}=tt.useContext(Ko),h=tt.useContext(Hp),g=tt.useContext(Xo),v=tt.useContext(_f),p=v.reducedMotion,x=v.skipAnimations,y=tt.useRef(null),m=tt.useRef(!1);r=r||h.renderer,!y.current&&r&&(y.current=r(i,{visualState:l,parent:f,props:o,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:p,skipAnimations:x,isSVG:s}),m.current&&y.current&&(y.current.manuallyAnimateOnMount=!0));const S=y.current,T=tt.useContext(Pp);S&&!S.projection&&c&&(S.type==="html"||S.type==="svg")&&q4(y.current,o,c,T);const b=tt.useRef(!1);tt.useInsertionEffect(()=>{S&&b.current&&S.update(o,g)});const C=o[np],R=tt.useRef(!!C&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(C)&&window.MotionHasOptimisedAnimation?.(C));return jl(()=>{!m.current||!S||(S.animationState?.animateChanges(),S.enteringChildren=void 0)},[]),jl(()=>{m.current=!0,S&&(b.current=!0,window.MotionIsMounted=!0,S.updateFeatures(),S.scheduleRenderMicrotask(),R.current&&S.animationState&&S.animationState.animateChanges())}),tt.useEffect(()=>{S&&(!R.current&&S.animationState&&S.animationState.animateChanges(),R.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(C)}),R.current=!1),S.enteringChildren=void 0)}),S}function q4(i,l,o,r){const{layoutId:c,layout:s,drag:f,dragConstraints:h,layoutScroll:g,layoutRoot:v,layoutAnchor:p,layoutCrossfade:x}=l;i.projection=new o(i.latestValues,l["data-framer-portal-id"]?void 0:Xp(i.parent)),i.projection.setOptions({layoutId:c,layout:s,alwaysMeasureLayout:!!f||h&&za(h),visualElement:i,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:x,layoutScroll:g,layoutRoot:v,layoutAnchor:p})}function Xp(i){if(i)return i.options.allowProjection!==!1?i.projection:Xp(i.parent)}function Dc(i,{forwardMotionProps:l=!1,type:o}={},r,c){r&&E4(r);const s=o?o==="svg":jf(i),f=s?j4:G4;function h(v,p){let x;const y={...tt.useContext(_f),...v,layoutId:F4(v)},{isStatic:m,isValidProp:S}=y,T=D4(v),b=f(v,m);if(!m&&typeof window<"u"){Q4();const C=Z4(y);x=C.MeasureLayout,T.visualElement=X4(i,b,y,c,C.ProjectionNode,s)}return gt.jsxs(Ko.Provider,{value:T,children:[x&&T.visualElement?gt.jsx(x,{visualElement:T.visualElement,...y}):null,N4(i,v,P4(b,T.visualElement,p),b,m,l,s,S)]})}h.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const g=tt.forwardRef(h);return g[Y4]=i,g}function F4({layoutId:i}){const l=tt.useContext(uf).id;return l&&i!==void 0?l+"-"+i:i}function Q4(i,l){tt.useContext(Hp).strict}function Z4(i){const l=_p(),{drag:o,layout:r}=l;if(!o&&!r)return{};const c={...o,...r};return{MeasureLayout:o?.isEnabled(i)||r?.isEnabled(i)?c.MeasureLayout:void 0,ProjectionNode:c.ProjectionNode}}function K4(i,l){if(typeof Proxy>"u")return Dc;const o=new Map,r=(s,f)=>Dc(s,f,i,l),c=(s,f)=>r(s,f);return new Proxy(c,{get:(s,f)=>f==="create"?r:(o.has(f)||o.set(f,Dc(f,void 0,i,l)),o.get(f))})}const k4=(i,l)=>l.isSVG??jf(i)?new E5(l):new A5(l,{allowProjection:i!==tt.Fragment});class J4 extends yi{constructor(l){super(l),l.animationState||(l.animationState=B5(l))}updateAnimationControlsSubscription(){const{animate:l}=this.node.getProps();Qo(l)&&(this.unmountControls=l.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:l}=this.node.getProps(),{animate:o}=this.node.prevProps||{};l!==o&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let W4=0;class I4 extends yi{constructor(){super(...arguments),this.id=W4++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:l,onExitComplete:o}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||l===r)return;if(l&&r===!1){if(this.isExitComplete){const{initial:s,custom:f}=this.node.getProps();if(typeof s=="string"||typeof s=="object"&&s!==null&&!Array.isArray(s)){const h=qi(this.node,s,f);if(h){const{transition:g,transitionEnd:v,...p}=h;for(const x in p)this.node.getValue(x)?.jump(p[x])}}this.node.blockInitialAnimation=!1,this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1,this.exitAnimation=void 0;return}const c=this.exitAnimation=this.node.animationState.setActive("exit",!l);o&&!l&&c.then(()=>{this.exitAnimation===c&&(this.isExitComplete=!0,o(this.id))})}mount(){const{register:l,onExitComplete:o}=this.node.presenceContext||{};o&&o(this.id),l&&(this.unmount=l(this.id))}unmount(){}}const $4={animation:{Feature:J4},exit:{Feature:I4}};function ko(i){return{point:{x:i.pageX,y:i.pageY}}}const tS=i=>l=>Lf(l)&&i(l,ko(l));function Gl(i,l,o,r){return Fl(i,l,tS(o),r)}const qp=({current:i})=>i?i.ownerDocument.defaultView:null,i1=(i,l)=>Math.abs(i-l);function eS(i,l){const o=i1(i.x,l.x),r=i1(i.y,l.y);return Math.sqrt(o**2+r**2)}const a1=new Set(["auto","scroll"]);class Fp{constructor(l,o,{transformPagePoint:r,contextWindow:c=window,dragSnapToOrigin:s=!1,distanceThreshold:f=3,element:h}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=S=>{this.handleScroll(S.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.hasPendingMove=!1,this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=vo(this.lastRawMoveEventInfo,this.transformPagePoint));const S=wc(this.lastMoveEventInfo,this.history),T=this.startEvent!==null,b=eS(S.offset,{x:0,y:0})>=this.distanceThreshold;if(!T&&!b)return;const{point:C}=S;this.history.push({...C,timestamp:pe.now()});const{onStart:R,onMove:z}=this.handlers;T||(R&&R(this.lastMoveEvent,S),this.startEvent=this.lastMoveEvent),z&&z(this.lastMoveEvent,S)},this.handlePointerMove=(S,T)=>{this.lastMoveEvent=S,this.lastRawMoveEventInfo=T,this.lastMoveEventInfo=vo(T,this.transformPagePoint),this.hasPendingMove=!0,Gt.update(this.updatePoint,!0)},this.handlePointerUp=(S,T)=>{this.hasPendingMove&&this.updatePoint(),this.end();const{onEnd:b,onSessionEnd:C,resumeAnimation:R}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&R&&R(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const z=wc(S.type==="pointercancel"?this.lastMoveEventInfo:vo(T,this.transformPagePoint),this.history);this.startEvent&&b&&b(S,z),C&&C(S,z)},!Lf(l))return;this.dragSnapToOrigin=s,this.handlers=o,this.transformPagePoint=r,this.distanceThreshold=f,this.contextWindow=c||window;const g=ko(l),v=vo(g,this.transformPagePoint),{point:p}=v,{timestamp:x}=ue;this.history=[{...p,timestamp:x}];const{onSessionStart:y}=o;y&&y(l,wc(v,this.history));const m={passive:!0,capture:!0};this.removeListeners=Zl(Gl(this.contextWindow,"pointermove",this.handlePointerMove,m),Gl(this.contextWindow,"pointerup",this.handlePointerUp,m),Gl(this.contextWindow,"pointercancel",this.handlePointerUp,m)),h&&this.startScrollTracking(h)}startScrollTracking(l){let o=l.parentElement;for(;o;){const r=getComputedStyle(o);(a1.has(r.overflowX)||a1.has(r.overflowY))&&this.scrollPositions.set(o,{x:o.scrollLeft,y:o.scrollTop}),o=o.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(l){const o=this.scrollPositions.get(l);if(!o)return;const r=l===window,c=r?{x:window.scrollX,y:window.scrollY}:{x:l.scrollLeft,y:l.scrollTop},s={x:c.x-o.x,y:c.y-o.y};s.x===0&&s.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(l,c),Gt.update(this.updatePoint,!0))}updateHandlers(l){this.handlers=l}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),vi(this.updatePoint)}}function vo(i,l){return l?{point:l(i.point)}:i}function l1(i,l){return{x:i.x-l.x,y:i.y-l.y}}function wc({point:i},l){return{point:i,delta:l1(i,Qp(l)),offset:l1(i,nS(l)),velocity:iS(l,.1)}}function nS(i){return i[0]}function Qp(i){return i[i.length-1]}function iS(i,l){if(i.length<2)return{x:0,y:0};let o=i.length-1,r=null;const c=Qp(i);for(;o>=0&&(r=i[o],!(c.timestamp-r.timestamp>sn(l)));)o--;if(!r)return{x:0,y:0};r===i[0]&&i.length>2&&c.timestamp-r.timestamp>sn(l)*2&&(r=i[1]);const s=Fe(c.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const f={x:(c.x-r.x)/s,y:(c.y-r.y)/s};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}function aS(i,{min:l,max:o},r){return l!==void 0&&i<l?i=r?Ht(l,i,r.min):Math.max(i,l):o!==void 0&&i>o&&(i=r?Ht(o,i,r.max):Math.min(i,o)),i}function s1(i,l,o){return{min:l!==void 0?i.min+l:void 0,max:o!==void 0?i.max+o-(i.max-i.min):void 0}}function lS(i,{top:l,left:o,bottom:r,right:c}){return{x:s1(i.x,o,c),y:s1(i.y,l,r)}}function o1(i,l){let o=l.min-i.min,r=l.max-i.max;return l.max-l.min<i.max-i.min&&([o,r]=[r,o]),{min:o,max:r}}function sS(i,l){return{x:o1(i.x,l.x),y:o1(i.y,l.y)}}function oS(i,l){let o=.5;const r=Ee(i),c=Ee(l);return c>r?o=Yl(l.min,l.max-r,i.min):r>c&&(o=Yl(i.min,i.max-c,l.min)),mn(0,1,o)}function rS(i,l){const o={};return l.min!==void 0&&(o.min=l.min-i.min),l.max!==void 0&&(o.max=l.max-i.min),o}const lf=.35;function uS(i=lf){return i===!1?i=0:i===!0&&(i=lf),{x:r1(i,"left","right"),y:r1(i,"top","bottom")}}function r1(i,l,o){return{min:u1(i,l),max:u1(i,o)}}function u1(i,l){return typeof i=="number"?i:i[l]||0}const cS=new WeakMap;class fS{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=le(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=l}start(l,{snapToCursor:o=!1,distanceThreshold:r}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const s=x=>{o&&this.snapToCursor(x),this.stopAnimation()},f=(x,y)=>{const{drag:m,dragPropagation:S,onDragStart:T}=this.getProps();if(m&&!S&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Wx(m),!this.openDragLock))return;this.latestPointerEvent=x,this.latestPanInfo=y,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),bn(C=>{let R=this.getAxisMotionValue(C).get()||0;if(Mn.test(R)){const{projection:z}=this.visualElement;if(z&&z.layout){const U=z.layout.layoutBox[C];U&&(R=Ee(U)*(parseFloat(R)/100))}}this.originPoint[C]=R}),T&&Gt.update(()=>T(x,y),!1,!0),Jc(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},h=(x,y)=>{this.latestPointerEvent=x,this.latestPanInfo=y;const{dragPropagation:m,dragDirectionLock:S,onDirectionLock:T,onDrag:b}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:C}=y;if(S&&this.currentDirection===null){this.currentDirection=dS(C),this.currentDirection!==null&&T&&T(this.currentDirection);return}this.updateAxis("x",y.point,C),this.updateAxis("y",y.point,C),this.visualElement.render(),b&&Gt.update(()=>b(x,y),!1,!0)},g=(x,y)=>{this.latestPointerEvent=x,this.latestPanInfo=y,this.stop(x,y),this.latestPointerEvent=null,this.latestPanInfo=null},v=()=>{const{dragSnapToOrigin:x}=this.getProps();(x||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:p}=this.getProps();this.panSession=new Fp(l,{onSessionStart:s,onStart:f,onMove:h,onSessionEnd:g,resumeAnimation:v},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,distanceThreshold:r,contextWindow:qp(this.visualElement),element:this.visualElement.current})}stop(l,o){const r=l||this.latestPointerEvent,c=o||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!c||!r)return;const{velocity:f}=c;this.startAnimation(f);const{onDragEnd:h}=this.getProps();h&&Gt.postRender(()=>h(r,c))}cancel(){this.isDragging=!1;const{projection:l,animationState:o}=this.visualElement;l&&(l.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),o&&o.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(l,o,r){const{drag:c}=this.getProps();if(!r||!yo(l,c,this.currentDirection))return;const s=this.getAxisMotionValue(l);let f=this.originPoint[l]+r[l];this.constraints&&this.constraints[l]&&(f=aS(f,this.constraints[l],this.elastic[l])),s.set(f)}resolveConstraints(){const{dragConstraints:l,dragElastic:o}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,c=this.constraints;l&&za(l)?this.constraints||(this.constraints=this.resolveRefConstraints()):l&&r?this.constraints=lS(r.layoutBox,l):this.constraints=!1,this.elastic=uS(o),c!==this.constraints&&!za(l)&&r&&this.constraints&&!this.hasMutatedConstraints&&bn(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=rS(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:l,onMeasureDragConstraints:o}=this.getProps();if(!l||!za(l))return!1;const r=l.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;c.root&&(c.root.scroll=void 0,c.root.updateScroll());const s=Jx(r,c.root,this.visualElement.getTransformPagePoint());let f=sS(c.layout.layoutBox,s);if(o){const h=o(Zx(f));this.hasMutatedConstraints=!!h,h&&(f=rp(h))}return f}startAnimation(l){const{drag:o,dragMomentum:r,dragElastic:c,dragTransition:s,dragSnapToOrigin:f,onDragTransitionEnd:h}=this.getProps(),g=this.constraints||{},v=bn(p=>{if(!yo(p,o,this.currentDirection))return;let x=g&&g[p]||{};(f===!0||f===p)&&(x={min:0,max:0});const y=c?200:1e6,m=c?40:1e7,S={type:"inertia",velocity:r?l[p]:0,bounceStiffness:y,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...s,...x};return this.startAxisValueAnimation(p,S)});return Promise.all(v).then(h)}startAxisValueAnimation(l,o){const r=this.getAxisMotionValue(l);return Jc(this.visualElement,l),r.start(wf(l,r,0,o,this.visualElement,!1))}stopAnimation(){bn(l=>this.getAxisMotionValue(l).stop())}getAxisMotionValue(l){const o=`_drag${l.toUpperCase()}`,c=this.visualElement.getProps()[o];return c||this.visualElement.getValue(l,this.visualElement.latestValues[l]??0)}snapToCursor({clientX:l,clientY:o}){const{drag:r}=this.getProps(),c={x:l,y:o},s=this.visualElement.getTransformPagePoint()?.(c)||c,f=this.visualElement.measureViewportBox();bn(h=>{if(!yo(h,r,this.currentDirection))return;const g=this.getAxisMotionValue(h),{min:v,max:p}=f[h];g.set((g.get()||0)+s[h]-Ht(v,p,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:l,dragConstraints:o}=this.getProps(),{projection:r}=this.visualElement;if(!za(o)||!r||!this.constraints)return;this.stopAnimation();const c=this.constraints,s={x:0,y:0};bn(h=>{const g=this.getAxisMotionValue(h).get();s[h]=oS({min:g,max:g},c[h])});const{transformTemplate:f}=this.visualElement.getProps();this.visualElement.current.style.transform=f?f({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),bn(h=>{const g=this.getAxisMotionValue(h);if(!yo(h,l,null)||!g.get())return;const{min:v,max:p}=this.constraints[h];g.set(Ht(v,p,s[h]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;cS.set(this.visualElement,this);const l=this.visualElement.current,o=Gl(l,"pointerdown",v=>{const{drag:p,dragListener:x=!0}=this.getProps(),y=v.target,m=y!==l&&i5(y);p&&x&&!m&&this.start(v)});let r;const c=()=>{const{dragConstraints:v}=this.getProps();za(v)&&v.current&&(this.constraints=this.resolveRefConstraints(),r||(r=hS(l,v.current,()=>this.scalePositionWithinConstraints())))},{projection:s}=this.visualElement,f=s.addEventListener("measure",c);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),Gt.read(c);const h=Fl(window,"resize",()=>this.scalePositionWithinConstraints()),g=s.addEventListener("didUpdate",(({delta:v,hasLayoutChanged:p})=>{this.isDragging&&p&&(bn(x=>{const y=this.getAxisMotionValue(x);y&&(this.originPoint[x]+=v[x].translate,y.set(y.get()+v[x].translate))}),this.visualElement.render())}));return()=>{h(),o(),f(),g&&g(),r&&r()}}getProps(){const l=this.visualElement.getProps(),{drag:o=!1,dragDirectionLock:r=!1,dragPropagation:c=!1,dragConstraints:s=!1,dragElastic:f=lf,dragMomentum:h=!0}=l;return{...l,drag:o,dragDirectionLock:r,dragPropagation:c,dragConstraints:s,dragElastic:f,dragMomentum:h}}}function c1(i){let l=!0;return()=>{if(l){l=!1;return}i()}}function hS(i,l,o){const r=Am(i,c1(o)),c=Am(l,c1(o));return()=>{r(),c()}}function yo(i,l,o){return(l===!0||l===i)&&(o===null||o===i)}function dS(i,l=10){let o=null;return Math.abs(i.y)>l?o="y":Math.abs(i.x)>l&&(o="x"),o}class mS extends yi{constructor(l){super(l),this.removeGroupControls=dn,this.removeListeners=dn,this.controls=new fS(l)}mount(){const{dragControls:l}=this.node.getProps();l&&(this.removeGroupControls=l.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||dn}update(){const{dragControls:l}=this.node.getProps(),{dragControls:o}=this.node.prevProps||{};l!==o&&(this.removeGroupControls(),l&&(this.removeGroupControls=l.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Rc=i=>(l,o)=>{i&&Gt.update(()=>i(l,o),!1,!0)};class pS extends yi{constructor(){super(...arguments),this.removePointerDownListener=dn}onPointerDown(l){this.session=new Fp(l,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:qp(this.node)})}createPanHandlers(){const{onPanSessionStart:l,onPanStart:o,onPan:r,onPanEnd:c}=this.node.getProps();return{onSessionStart:Rc(l),onStart:Rc(o),onMove:Rc(r),onEnd:(s,f)=>{delete this.session,c&&Gt.postRender(()=>c(s,f))}}}mount(){this.removePointerDownListener=Gl(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 Bc=!1;class gS extends tt.Component{componentDidMount(){const{visualElement:l,layoutGroup:o,switchLayoutGroup:r,layoutId:c}=this.props,{projection:s}=l;s&&(o.group&&o.group.add(s),r&&r.register&&c&&r.register(s),Bc&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Bo.hasEverUpdated=!0}getSnapshotBeforeUpdate(l){const{layoutDependency:o,visualElement:r,drag:c,isPresent:s}=this.props,{projection:f}=r;return f&&(f.isPresent=s,l.layoutDependency!==o&&f.setOptions({...f.options,layoutDependency:o}),Bc=!0,c||l.layoutDependency!==o||o===void 0||l.isPresent!==s?f.willUpdate():this.safeToRemove(),l.isPresent!==s&&(s?f.promote():f.relegate()||Gt.postRender(()=>{const h=f.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:l,layoutAnchor:o}=this.props,{projection:r}=l;r&&(r.options.layoutAnchor=o,r.root.didUpdate(),Uf.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:l,layoutGroup:o,switchLayoutGroup:r}=this.props,{projection:c}=l;Bc=!0,c&&(c.scheduleCheckAfterUnmount(),o&&o.group&&o.group.remove(c),r&&r.deregister&&r.deregister(c))}safeToRemove(){const{safeToRemove:l}=this.props;l&&l()}render(){return null}}function Zp(i){const[l,o]=Np(),r=tt.useContext(uf);return gt.jsx(gS,{...i,layoutGroup:r,switchLayoutGroup:tt.useContext(Pp),isPresent:l,safeToRemove:o})}const vS={pan:{Feature:pS},drag:{Feature:mS,ProjectionNode:Lp,MeasureLayout:Zp}};function f1(i,l,o){const{props:r}=i;i.animationState&&r.whileHover&&i.animationState.setActive("whileHover",o==="Start");const c="onHover"+o,s=r[c];s&&Gt.postRender(()=>s(l,ko(l)))}class yS extends yi{mount(){const{current:l}=this.node;l&&(this.unmount=$x(l,(o,r)=>(f1(this.node,r,"Start"),c=>f1(this.node,c,"End"))))}unmount(){}}class xS extends yi{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=Zl(Fl(this.node.current,"focus",()=>this.onFocus()),Fl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function h1(i,l,o){const{props:r}=i;if(i.current instanceof HTMLButtonElement&&i.current.disabled)return;i.animationState&&r.whileTap&&i.animationState.setActive("whileTap",o==="Start");const c="onTap"+(o==="End"?"":o),s=r[c];s&&Gt.postRender(()=>s(l,ko(l)))}class SS extends yi{mount(){const{current:l}=this.node;if(!l)return;const{globalTapTarget:o,propagate:r}=this.node.props;this.unmount=l5(l,(c,s)=>(h1(this.node,s,"Start"),(f,{success:h})=>h1(this.node,f,h?"End":"Cancel")),{useGlobalTarget:o,stopPropagation:r?.tap===!1})}unmount(){}}const sf=new WeakMap,zc=new WeakMap,TS=i=>{const l=sf.get(i.target);l&&l(i)},bS=i=>{i.forEach(TS)};function AS({root:i,...l}){const o=i||document;zc.has(o)||zc.set(o,{});const r=zc.get(o),c=JSON.stringify(l);return r[c]||(r[c]=new IntersectionObserver(bS,{root:i,...l})),r[c]}function MS(i,l,o){const r=AS(l);return sf.set(i,o),r.observe(i),()=>{sf.delete(i),r.unobserve(i)}}const ES={some:0,all:1};class CS extends yi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:l={}}=this.node.getProps(),{root:o,margin:r,amount:c="some",once:s}=l,f={root:o?o.current:void 0,rootMargin:r,threshold:typeof c=="number"?c:ES[c]},h=g=>{const{isIntersecting:v}=g;if(this.isInView===v||(this.isInView=v,s&&!v&&this.hasEnteredView))return;v&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",v);const{onViewportEnter:p,onViewportLeave:x}=this.node.getProps(),y=v?p:x;y&&y(g)};this.stopObserver=MS(this.node.current,f,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:l,prevProps:o}=this.node;["amount","margin","root"].some(DS(l,o))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function DS({viewport:i={}},{viewport:l={}}={}){return o=>i[o]!==l[o]}const wS={inView:{Feature:CS},tap:{Feature:SS},focus:{Feature:xS},hover:{Feature:yS}},RS={layout:{ProjectionNode:Lp,MeasureLayout:Zp}},BS={...$4,...wS,...vS,...RS},xo=K4(BS,k4),zS=`
attribute vec2 aPosition;
varying vec2 vUv;
void main() {
vUv = aPosition * 0.5 + 0.5;
gl_Position = vec4(aPosition, 0.0, 1.0);
}
`,OS=`
precision highp float;
varying vec2 vUv;
uniform vec2 uResolution;
uniform float uTime;
uniform vec3 uColor1;
uniform vec3 uColor2;
uniform vec3 uBase;
uniform sampler2D uTouch;
float hash(vec2 p) {
return fract(sin(dot(p, vec2(12.9898, 78.233))) * 43758.5453);
}
float blob(vec2 p, vec2 c, float r) {
float w = 1.0 - smoothstep(0.0, r, distance(p, c));
return w * w;
}
void main() {
vec2 uv = vUv;
vec4 touch = texture2D(uTouch, uv);
float vx = -(touch.r * 2.0 - 1.0);
float vy = -(touch.g * 2.0 - 1.0);
float intensity = touch.b;
uv.x += vx * 0.2 * intensity;
uv.y += vy * 0.2 * intensity;
float aspect = uResolution.x / uResolution.y;
vec2 p = vec2(uv.x * aspect, uv.y);
float t = uTime * 0.3;
// Liquid domain warp.
p += 0.085 * vec2(sin(p.y * 3.1 + t * 1.7), cos(p.x * 2.7 - t * 1.3));
p += 0.04 * vec2(sin(p.y * 6.3 - t * 2.1), cos(p.x * 5.9 + t * 1.9));
vec2 c1 = vec2(aspect * (0.5 + 0.42 * sin(t * 0.9)), 0.5 + 0.38 * cos(t * 0.7));
vec2 c2 = vec2(aspect * (0.5 + 0.40 * cos(t * 0.6 + 1.3)), 0.5 + 0.40 * sin(t * 0.8 + 0.4));
vec2 c3 = vec2(aspect * (0.5 + 0.36 * sin(t * 0.5 + 2.4)), 0.5 + 0.30 * sin(t * 1.1 + 1.7));
vec2 c4 = vec2(aspect * (0.5 + 0.45 * cos(t * 0.75 + 3.1)), 0.5 + 0.42 * cos(t * 0.55 + 2.2));
vec2 c5 = vec2(aspect * (0.5 + 0.30 * sin(t * 1.2 + 4.0)), 0.5 + 0.35 * cos(t * 0.95 + 0.9));
vec2 c6 = vec2(aspect * (0.5 + 0.38 * cos(t * 0.85 + 5.2)), 0.5 + 0.33 * sin(t * 0.65 + 3.3));
float r = 0.62 * aspect * 0.62;
float w1 = blob(p, c1, r);
float w2 = blob(p, c2, r * 1.1);
float w3 = blob(p, c3, r * 0.85);
float w4 = blob(p, c4, r * 1.05);
float w5 = blob(p, c5, r * 0.8);
float w6 = blob(p, c6, r * 0.95);
float sum1 = w1 + w3 + w5;
float sum2 = w2 + w4 + w6;
float total = sum1 + sum2;
vec3 liquid = (uColor1 * sum1 + uColor2 * sum2) / max(total, 0.0001);
float cover = clamp(total * 0.95, 0.0, 1.0);
vec3 color = mix(uBase, liquid, cover);
// Soft center white lightness pool so center stays mostly clean/bright white
vec2 centerDist = vUv - vec2(0.5, 0.5);
float centerWhiteFactor = 1.0 - smoothstep(0.0, 0.55, length(centerDist));
color = mix(color, vec3(0.98, 0.98, 1.0), centerWhiteFactor * 0.45);
// Gentle high-contrast curve and ripple glow.
color = mix(color, smoothstep(0.0, 1.0, color), 0.25);
color += intensity * 0.05;
// Vignette.
vec2 q = vUv - 0.5;
color *= 1.0 - dot(q, q) * 0.4;
// Film grain.
color += (hash(gl_FragCoord.xy + fract(uTime) * 91.0) - 0.5) * 0.05;
gl_FragColor = vec4(color, 1.0);
}
`;class VS{size=64;canvas;context;maxAge=64;radius=.25*64;trail=[];last=null;constructor(){this.canvas=document.createElement("canvas"),this.canvas.width=this.size,this.canvas.height=this.size,this.context=this.canvas.getContext("2d"),this.clear()}clear(){this.context.fillStyle="black",this.context.fillRect(0,0,this.size,this.size)}addTouch(l,o){let r=0,c=0,s=0;if(this.last){const f=l-this.last.x,h=o-this.last.y;if(f===0&&h===0)return;const g=f*f+h*h,v=Math.sqrt(g);c=f/v,s=h/v,r=Math.min(g*2e4,2)}this.last={x:l,y:o},this.trail.push({x:l,y:o,age:0,force:r,vx:c,vy:s})}update(){this.clear();const l=1/this.maxAge;for(let o=this.trail.length-1;o>=0;o-=1){const r=this.trail[o],c=r.force*l*(1-r.age/this.maxAge);r.x+=r.vx*c,r.y+=r.vy*c,r.age+=1,r.age>this.maxAge&&this.trail.splice(o,1)}this.trail.forEach(o=>this.drawPoint(o))}drawPoint(l){const o=l.x*this.size,r=(1-l.y)*this.size,c=l.age/this.maxAge;let s=l.age<this.maxAge*.3?Math.sin(l.age/(this.maxAge*.3)*(Math.PI/2)):1-(l.age-this.maxAge*.3)/(this.maxAge*.7);s*=l.force,s=Math.max(0,Math.min(s,1))*(1-c*.2);const f=`${Math.round((l.vx+1)/2*255)}, ${Math.round((l.vy+1)/2*255)}, ${Math.round(s*255)}`,h=this.size*5,g=this.context;g.shadowOffsetX=h,g.shadowOffsetY=h,g.shadowBlur=this.radius,g.shadowColor=`rgba(${f}, ${.2*s})`,g.beginPath(),g.fillStyle="rgba(255, 0, 0, 1)",g.arc(o-h,r-h,this.radius,0,Math.PI*2),g.fill()}}function Ba(i){const l=i.replace("#",""),o=l.length===3?l.split("").map(c=>c+c).join(""):l,r=parseInt(o,16);return[(r>>16&255)/255,(r>>8&255)/255,(r&255)/255]}function d1(i,l,o){const r=i.createShader(l);return i.shaderSource(r,o),i.compileShader(r),i.getShaderParameter(r,i.COMPILE_STATUS)?r:(console.warn(i.getShaderInfoLog(r)),i.deleteShader(r),null)}function US({scheme:i,isLight:l=!1,className:o=""}){const r=tt.useRef(null),c=l?i.baseLight:i.base,s=tt.useRef({c1:Ba(i.c1),c2:Ba(i.c2),base:Ba(c)});return tt.useEffect(()=>{const f=l?i.baseLight:i.base;s.current={c1:Ba(i.c1),c2:Ba(i.c2),base:Ba(f)}},[i,l]),tt.useEffect(()=>{const f=r.current;if(!f)return;const h=f.getContext("webgl",{antialias:!1,depth:!1,stencil:!1,premultipliedAlpha:!1});if(!h)return;const g=d1(h,h.VERTEX_SHADER,zS),v=d1(h,h.FRAGMENT_SHADER,OS);if(!g||!v)return;const p=h.createProgram();h.attachShader(p,g),h.attachShader(p,v),h.linkProgram(p),h.useProgram(p);const x=h.createBuffer();h.bindBuffer(h.ARRAY_BUFFER,x),h.bufferData(h.ARRAY_BUFFER,new Float32Array([-1,-1,3,-1,-1,3]),h.STATIC_DRAW);const y=h.getAttribLocation(p,"aPosition");h.enableVertexAttribArray(y),h.vertexAttribPointer(y,2,h.FLOAT,!1,0,0);const m={resolution:h.getUniformLocation(p,"uResolution"),time:h.getUniformLocation(p,"uTime"),color1:h.getUniformLocation(p,"uColor1"),color2:h.getUniformLocation(p,"uColor2"),base:h.getUniformLocation(p,"uBase"),touch:h.getUniformLocation(p,"uTouch")},S=new VS,T=h.createTexture();h.activeTexture(h.TEXTURE0),h.bindTexture(h.TEXTURE_2D,T),h.pixelStorei(h.UNPACK_FLIP_Y_WEBGL,!0),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,h.LINEAR),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,h.LINEAR),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.CLAMP_TO_EDGE),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,h.CLAMP_TO_EDGE),h.uniform1i(m.touch,0);const b=()=>{const E=Math.min(window.devicePixelRatio||1,1.5),V=Math.max(1,Math.round(f.clientWidth*E)),O=Math.max(1,Math.round(f.clientHeight*E));(f.width!==V||f.height!==O)&&(f.width=V,f.height=O),h.viewport(0,0,V,O),h.uniform2f(m.resolution,V,O)};b();const C=new ResizeObserver(b);C.observe(f);const R=E=>{const V=f.getBoundingClientRect(),O=(E.clientX-V.left)/V.width,L=1-(E.clientY-V.top)/V.height;O<0||O>1||L<0||L>1||S.addTouch(O,L)};window.addEventListener("pointermove",R);const z={c1:[...s.current.c1],c2:[...s.current.c2],base:[...s.current.base]};let U=0,M=performance.now();const B=M,D=E=>{const V=Math.min((E-M)/1e3,.1);M=E;const O=1-Math.exp(-V*2.4),L=s.current;["c1","c2","base"].forEach(H=>{for(let Q=0;Q<3;Q+=1)z[H][Q]+=(L[H][Q]-z[H][Q])*O}),S.update(),h.bindTexture(h.TEXTURE_2D,T),h.texImage2D(h.TEXTURE_2D,0,h.RGBA,h.RGBA,h.UNSIGNED_BYTE,S.canvas),h.uniform1f(m.time,(E-B)/1e3),h.uniform3fv(m.color1,z.c1),h.uniform3fv(m.color2,z.c2),h.uniform3fv(m.base,z.base),h.drawArrays(h.TRIANGLES,0,3),U=requestAnimationFrame(D)};return U=requestAnimationFrame(D),()=>{cancelAnimationFrame(U),C.disconnect(),window.removeEventListener("pointermove",R),h.deleteTexture(T),h.deleteBuffer(x),h.deleteProgram(p),h.deleteShader(g),h.deleteShader(v)}},[]),gt.jsxs("div",{className:`absolute inset-0 overflow-hidden ${o}`,children:[gt.jsx("div",{className:"absolute inset-0 transition-[background] duration-1000",style:{background:`radial-gradient(60% 70% at 30% 40%, ${i.c1} 0%, transparent 70%), radial-gradient(60% 70% at 70% 60%, ${i.c2} 0%, transparent 70%), ${i.base}`}}),gt.jsx("canvas",{ref:r,className:"absolute inset-0 h-full w-full"})]})}const qe=[{id:0,tag:"Presentation Series 2026",title:"AI AGENT ECOSYSTEM",subtitle:"A physics-driven interactive visualization of autonomous intelligence and agent models.",scheme:{c1:"#ff4d00",c2:"#ff9900",base:"#080302",baseLight:"#fff8f5",glow:"#ff8000",glowLight:"#e63b00"}},{id:1,tag:"Autonomous core",title:"Perception & Reasoning",subtitle:"Continuous multimodal sensemaking that turns raw signals into decisions.",scheme:{c1:"#f15a22",c2:"#00193f",base:"#050816",baseLight:"#f4f6fc",glow:"#ffc9a8",glowLight:"#d63800"}},{id:2,tag:"Dynamic planning",title:"Rollouts Before Action",subtitle:"Branching trajectories are simulated and scored before a single step is taken.",scheme:{c1:"#9a4de6",c2:"#33cce6",base:"#070517",baseLight:"#f7f2fc",glow:"#bff4ff",glowLight:"#6e1bb8"}},{id:3,tag:"Tool discovery",title:"Self-Synthesizing Tools",subtitle:"Agents draft, sandbox and register the tools they are missing — on demand.",scheme:{c1:"#ff3d7f",c2:"#ffb347",base:"#16060d",baseLight:"#fdf2f6",glow:"#ffe0b8",glowLight:"#c90044"}},{id:4,tag:"Memory topology",title:"Episodic Vector Mesh",subtitle:"Long-horizon memory that consolidates experience into reusable priors.",scheme:{c1:"#00d4a8",c2:"#0b3d91",base:"#03111a",baseLight:"#f0faf7",glow:"#b6fff0",glowLight:"#008a6d"}},{id:5,tag:"Multi-agent swarm",title:"Consensus Orchestration",subtitle:"Specialist peers debate, critique and converge on a verified answer.",scheme:{c1:"#e63946",c2:"#1d3557",base:"#0a0c18",baseLight:"#fbf2f3",glow:"#ffc2c7",glowLight:"#b51a27"}},{id:6,tag:"Safety & alignment",title:"Runtime Guardrails",subtitle:"Policy checks intercept unsafe outputs before they are ever committed.",scheme:{c1:"#7b61ff",c2:"#00e0ff",base:"#060a1d",baseLight:"#f4f3ff",glow:"#d4f9ff",glowLight:"#4c2de0"}},{id:7,tag:"Recursive refinement",title:"Self-Play Feedback",subtitle:"Adversarial self-evaluation surfaces edge cases and sharpens the policy.",scheme:{c1:"#ff6b35",c2:"#ffd23f",base:"#170a04",baseLight:"#fdf5f0",glow:"#fff3c4",glowLight:"#d4440c"}},{id:8,tag:"Embodied action",title:"Physics-Aware Control",subtitle:"Plans become forces, torques and motion grounded in rigid-body reality.",scheme:{c1:"#3ddc97",c2:"#256eff",base:"#040f1b",baseLight:"#f0fbf6",glow:"#c8ffe6",glowLight:"#129e61"}},{id:9,tag:"Ecosystem adaptation",title:"Zero-Shot Integration",subtitle:"New APIs, schemas and protocols are understood without hand-written glue.",scheme:{c1:"#c77dff",c2:"#ff5d8f",base:"#11061b",baseLight:"#faf2fd",glow:"#ffd6e5",glowLight:"#953bd9"}},{id:10,tag:"Frontier horizon",title:"Agents at Scale",subtitle:"Collaborative autonomy across physical, digital and cognitive domains.",scheme:{c1:"#f15a22",c2:"#6a4cff",base:"#070612",baseLight:"#f6f4fe",glow:"#ffd2bd",glowLight:"#d63800"}},{id:11,tag:"The End",title:"THANK YOU",subtitle:"Exploring the boundary where agentic software meets living physical dynamics.",scheme:{c1:"#ff3a00",c2:"#ffaa00",base:"#060201",baseLight:"#fff7f2",glow:"#ff8800",glowLight:"#e62e00"}}],LS="data:image/svg+xml,%3csvg%20fill='currentColor'%20fill-rule='evenodd'%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eAnthropic%3c/title%3e%3cpath%20d='M13.827%203.52h3.603L24%2020h-3.603l-6.57-16.48zm-7.258%200h3.767L16.906%2020h-3.674l-1.343-3.461H5.017l-1.344%203.46H0L6.57%203.522zm4.132%209.959L8.453%207.687%206.205%2013.48H10.7z'%3e%3c/path%3e%3c/svg%3e",NS="data:image/svg+xml,%3csvg%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eAntigravity%3c/title%3e%3cmask%20height='23'%20id='lobe-icons-antigravity-0-_R_0_'%20maskUnits='userSpaceOnUse'%20width='24'%20x='0'%20y='1'%3e%3cpath%20d='M21.751%2022.607c1.34%201.005%203.35.335%201.508-1.508C17.73%2015.74%2018.904%201%2012.037%201%205.17%201%206.342%2015.74.815%2021.1c-2.01%202.009.167%202.511%201.507%201.506%205.192-3.517%204.857-9.714%209.715-9.714%204.857%200%204.522%206.197%209.714%209.715z'%20fill='%23fff'%3e%3c/path%3e%3c/mask%3e%3cg%20mask='url(%23lobe-icons-antigravity-0-_R_0_)'%3e%3cg%20filter='url(%23lobe-icons-antigravity-1-_R_0_)'%3e%3cpath%20d='M-1.018-3.992c-.408%203.591%202.686%206.89%206.91%207.37%204.225.48%207.98-2.043%208.387-5.633.408-3.59-2.686-6.89-6.91-7.37-4.225-.479-7.98%202.043-8.387%205.633z'%20fill='%23FFE432'%3e%3c/path%3e%3c/g%3e%3cg%20filter='url(%23lobe-icons-antigravity-2-_R_0_)'%3e%3cpath%20d='M15.269%207.747c1.058%204.557%205.691%207.374%2010.348%206.293%204.657-1.082%207.575-5.653%206.516-10.21-1.058-4.556-5.691-7.374-10.348-6.292-4.657%201.082-7.575%205.653-6.516%2010.21z'%20fill='%23FC413D'%3e%3c/path%3e%3c/g%3e%3cg%20filter='url(%23lobe-icons-antigravity-3-_R_0_)'%3e%3cpath%20d='M-12.443%2010.804c1.338%204.703%207.36%207.11%2013.453%205.378%206.092-1.733%209.947-6.95%208.61-11.652C8.282-.173%202.26-2.58-3.833-.848-9.925.884-13.78%206.1-12.443%2010.804z'%20fill='%2300B95C'%3e%3c/path%3e%3c/g%3e%3cg%20filter='url(%23lobe-icons-antigravity-4-_R_0_)'%3e%3cpath%20d='M-12.443%2010.804c1.338%204.703%207.36%207.11%2013.453%205.378%206.092-1.733%209.947-6.95%208.61-11.652C8.282-.173%202.26-2.58-3.833-.848-9.925.884-13.78%206.1-12.443%2010.804z'%20fill='%2300B95C'%3e%3c/path%3e%3c/g%3e%3cg%20filter='url(%23lobe-icons-antigravity-5-_R_0_)'%3e%3cpath%20d='M-7.608%2014.703c3.352%203.424%209.126%203.208%2012.896-.483%203.77-3.69%204.108-9.459.756-12.883C2.69-2.087-3.083-1.871-6.853%201.82c-3.77%203.69-4.108%209.458-.755%2012.883z'%20fill='%2300B95C'%3e%3c/path%3e%3c/g%3e%3cg%20filter='url(%23lobe-icons-antigravity-6-_R_0_)'%3e%3cpath%20d='M9.932%2027.617c1.04%204.482%205.384%207.303%209.7%206.3%204.316-1.002%206.971-5.448%205.93-9.93-1.04-4.483-5.384-7.304-9.7-6.301-4.316%201.002-6.971%205.448-5.93%209.93z'%20fill='%233186FF'%3e%3c/path%3e%3c/g%3e%3cg%20filter='url(%23lobe-icons-antigravity-7-_R_0_)'%3e%3cpath%20d='M2.572-8.185C.392-3.329%202.778%202.472%207.9%204.771c5.122%202.3%2011.042.227%2013.222-4.63%202.18-4.855-.205-10.656-5.327-12.955-5.122-2.3-11.042-.227-13.222%204.63z'%20fill='%23FBBC04'%3e%3c/path%3e%3c/g%3e%3cg%20filter='url(%23lobe-icons-antigravity-8-_R_0_)'%3e%3cpath%20d='M-3.267%2038.686c-5.277-2.072%203.742-19.117%205.984-24.83%202.243-5.712%208.34-8.664%2013.616-6.592%205.278%202.071%2011.533%2013.482%209.29%2019.195-2.242%205.713-23.613%2014.298-28.89%2012.227z'%20fill='%233186FF'%3e%3c/path%3e%3c/g%3e%3cg%20filter='url(%23lobe-icons-antigravity-9-_R_0_)'%3e%3cpath%20d='M28.71%2017.471c-1.413%201.649-5.1.808-8.236-1.878-3.135-2.687-4.531-6.201-3.118-7.85%201.412-1.649%205.1-.808%208.235%201.878s4.532%206.2%203.119%207.85z'%20fill='%23749BFF'%3e%3c/path%3e%3c/g%3e%3cg%20filter='url(%23lobe-icons-antigravity-10-_R_0_)'%3e%3cpath%20d='M18.163%209.077c5.81%203.93%2012.502%204.19%2014.946.577%202.443-3.612-.287-9.727-6.098-13.658-5.81-3.931-12.502-4.19-14.946-.577-2.443%203.612.287%209.727%206.098%2013.658z'%20fill='%23FC413D'%3e%3c/path%3e%3c/g%3e%3cg%20filter='url(%23lobe-icons-antigravity-11-_R_0_)'%3e%3cpath%20d='M-.915%202.684c-1.44%203.473-.97%206.967%201.05%207.804%202.02.837%204.824-1.3%206.264-4.772%201.44-3.473.97-6.967-1.05-7.804-2.02-.837-4.824%201.3-6.264%204.772z'%20fill='%23FFEE48'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cfilter%20color-interpolation-filters='sRGB'%20filterUnits='userSpaceOnUse'%20height='17.587'%20id='lobe-icons-antigravity-1-_R_0_'%20width='19.838'%20x='-3.288'%20y='-11.917'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'%3e%3c/feFlood%3e%3cfeBlend%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'%3e%3c/feBlend%3e%3cfeGaussianBlur%20result='effect1_foregroundBlur_977_115'%20stdDeviation='1.117'%3e%3c/feGaussianBlur%3e%3c/filter%3e%3cfilter%20color-interpolation-filters='sRGB'%20filterUnits='userSpaceOnUse'%20height='38.565'%20id='lobe-icons-antigravity-2-_R_0_'%20width='38.9'%20x='4.251'%20y='-13.493'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'%3e%3c/feFlood%3e%3cfeBlend%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'%3e%3c/feBlend%3e%3cfeGaussianBlur%20result='effect1_foregroundBlur_977_115'%20stdDeviation='5.4'%3e%3c/feGaussianBlur%3e%3c/filter%3e%3cfilter%20color-interpolation-filters='sRGB'%20filterUnits='userSpaceOnUse'%20height='36.517'%20id='lobe-icons-antigravity-3-_R_0_'%20width='40.955'%20x='-21.889'%20y='-10.592'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'%3e%3c/feFlood%3e%3cfeBlend%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'%3e%3c/feBlend%3e%3cfeGaussianBlur%20result='effect1_foregroundBlur_977_115'%20stdDeviation='4.591'%3e%3c/feGaussianBlur%3e%3c/filter%3e%3cfilter%20color-interpolation-filters='sRGB'%20filterUnits='userSpaceOnUse'%20height='36.517'%20id='lobe-icons-antigravity-4-_R_0_'%20width='40.955'%20x='-21.889'%20y='-10.592'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'%3e%3c/feFlood%3e%3cfeBlend%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'%3e%3c/feBlend%3e%3cfeGaussianBlur%20result='effect1_foregroundBlur_977_115'%20stdDeviation='4.591'%3e%3c/feGaussianBlur%3e%3c/filter%3e%3cfilter%20color-interpolation-filters='sRGB'%20filterUnits='userSpaceOnUse'%20height='36.595'%20id='lobe-icons-antigravity-5-_R_0_'%20width='36.632'%20x='-19.099'%20y='-10.278'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'%3e%3c/feFlood%3e%3cfeBlend%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'%3e%3c/feBlend%3e%3cfeGaussianBlur%20result='effect1_foregroundBlur_977_115'%20stdDeviation='4.591'%3e%3c/feGaussianBlur%3e%3c/filter%3e%3cfilter%20color-interpolation-filters='sRGB'%20filterUnits='userSpaceOnUse'%20height='34.087'%20id='lobe-icons-antigravity-6-_R_0_'%20width='33.533'%20x='.981'%20y='8.758'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'%3e%3c/feFlood%3e%3cfeBlend%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'%3e%3c/feBlend%3e%3cfeGaussianBlur%20result='effect1_foregroundBlur_977_115'%20stdDeviation='4.363'%3e%3c/feGaussianBlur%3e%3c/filter%3e%3cfilter%20color-interpolation-filters='sRGB'%20filterUnits='userSpaceOnUse'%20height='35.276'%20id='lobe-icons-antigravity-7-_R_0_'%20width='35.978'%20x='-6.143'%20y='-21.659'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'%3e%3c/feFlood%3e%3cfeBlend%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'%3e%3c/feBlend%3e%3cfeGaussianBlur%20result='effect1_foregroundBlur_977_115'%20stdDeviation='3.954'%3e%3c/feGaussianBlur%3e%3c/filter%3e%3cfilter%20color-interpolation-filters='sRGB'%20filterUnits='userSpaceOnUse'%20height='46.523'%20id='lobe-icons-antigravity-8-_R_0_'%20width='45.114'%20x='-11.96'%20y='-.46'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'%3e%3c/feFlood%3e%3cfeBlend%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'%3e%3c/feBlend%3e%3cfeGaussianBlur%20result='effect1_foregroundBlur_977_115'%20stdDeviation='3.531'%3e%3c/feGaussianBlur%3e%3c/filter%3e%3cfilter%20color-interpolation-filters='sRGB'%20filterUnits='userSpaceOnUse'%20height='24.054'%20id='lobe-icons-antigravity-9-_R_0_'%20width='25.094'%20x='10.485'%20y='.58'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'%3e%3c/feFlood%3e%3cfeBlend%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'%3e%3c/feBlend%3e%3cfeGaussianBlur%20result='effect1_foregroundBlur_977_115'%20stdDeviation='3.159'%3e%3c/feGaussianBlur%3e%3c/filter%3e%3cfilter%20color-interpolation-filters='sRGB'%20filterUnits='userSpaceOnUse'%20height='30.007'%20id='lobe-icons-antigravity-10-_R_0_'%20width='33.508'%20x='5.833'%20y='-12.467'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'%3e%3c/feFlood%3e%3cfeBlend%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'%3e%3c/feBlend%3e%3cfeGaussianBlur%20result='effect1_foregroundBlur_977_115'%20stdDeviation='2.669'%3e%3c/feGaussianBlur%3e%3c/filter%3e%3cfilter%20color-interpolation-filters='sRGB'%20filterUnits='userSpaceOnUse'%20height='26.151'%20id='lobe-icons-antigravity-11-_R_0_'%20width='22.194'%20x='-8.355'%20y='-8.876'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'%3e%3c/feFlood%3e%3cfeBlend%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'%3e%3c/feBlend%3e%3cfeGaussianBlur%20result='effect1_foregroundBlur_977_115'%20stdDeviation='3.303'%3e%3c/feGaussianBlur%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",HS="data:image/svg+xml,%3csvg%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eClaude%3c/title%3e%3cpath%20d='M4.709%2015.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0%2011.784l.055-.352.48-.321.686.06%201.52.103%202.278.158%201.652.097%202.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686%201.908%201.476%202.491%201.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97%202.97%200%2001-.104-.729L6.283.134%206.696%200l.996.134.42.364.62%201.414%201.002%202.229%201.555%203.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286%201.851-.559%202.903-.364%201.942h.212l.243-.242.985-1.306%201.652-2.064.73-.82.85-.904.547-.431h1.033l.76%201.129-.34%201.166-1.064%201.347-.881%201.142-1.264%201.7-.79%201.36.073.11.188-.02%202.856-.606%201.543-.28%201.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061%201.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093%201.068%202.006%201.81%202.509%202.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649%202.345%203.521.122%201.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674%207.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434%201.967-2.18%202.945-1.726%201.845-.414.164-.717-.37.067-.662.401-.589%202.388-3.036%201.44-1.882.93-1.086-.006-.158h-.055L4.132%2018.56l-1.13.146-.487-.456.061-.746.231-.243%201.908-1.312-.006.006z'%20fill='%23E25822'%20fill-rule='nonzero'%3e%3c/path%3e%3c/svg%3e",_S="data:image/svg+xml,%3csvg%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eCodex%3c/title%3e%3cpath%20d='M9.064%203.344a4.578%204.578%200%20012.285-.312c1%20.115%201.891.54%202.673%201.275.01.01.024.017.037.021a.09.09%200%2000.043%200%204.55%204.55%200%20013.046.275l.047.022.116.057a4.581%204.581%200%20012.188%202.399c.209.51.313%201.041.315%201.595a4.24%204.24%200%2001-.134%201.223.123.123%200%2000.03.115c.594.607.988%201.33%201.183%202.17.289%201.425-.007%202.71-.887%203.854l-.136.166a4.548%204.548%200%2001-2.201%201.388.123.123%200%2000-.081.076c-.191.551-.383%201.023-.74%201.494-.9%201.187-2.222%201.846-3.711%201.838-1.187-.006-2.239-.44-3.157-1.302a.107.107%200%2000-.105-.024c-.388.125-.78.143-1.204.138a4.441%204.441%200%2001-1.945-.466%204.544%204.544%200%2001-1.61-1.335c-.152-.202-.303-.392-.414-.617a5.81%205.81%200%2001-.37-.961%204.582%204.582%200%2001-.014-2.298.124.124%200%2000.006-.056.085.085%200%2000-.027-.048%204.467%204.467%200%2001-1.034-1.651%203.896%203.896%200%2001-.251-1.192%205.189%205.189%200%2001.141-1.6c.337-1.112.982-1.985%201.933-2.618.212-.141.413-.251.601-.33.215-.089.43-.164.646-.227a.098.098%200%2000.065-.066%204.51%204.51%200%2001.829-1.615%204.535%204.535%200%20011.837-1.388zm3.482%2010.565a.637.637%200%20000%201.272h3.636a.637.637%200%20100-1.272h-3.636zM8.462%209.23a.637.637%200%2000-1.106.631l1.272%202.224-1.266%202.136a.636.636%200%20101.095.649l1.454-2.455a.636.636%200%2000.005-.64L8.462%209.23z'%20fill='url(%23lobe-icons-codex-_R_0_)'%3e%3c/path%3e%3cdefs%3e%3clinearGradient%20gradientUnits='userSpaceOnUse'%20id='lobe-icons-codex-_R_0_'%20x1='12'%20x2='12'%20y1='3'%20y2='21'%3e%3cstop%20stop-color='%23B1A7FF'%3e%3c/stop%3e%3cstop%20offset='.5'%20stop-color='%237A9DFF'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%233941FF'%3e%3c/stop%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",GS="data:image/svg+xml,%3csvg%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eDeepSeek%3c/title%3e%3cpath%20d='M23.748%204.482c-.254-.124-.364.113-.512.234-.051.039-.094.09-.137.136-.372.397-.806.657-1.373.626-.829-.046-1.537.214-2.163.848-.133-.782-.575-1.248-1.247-1.548-.352-.156-.708-.311-.955-.65-.172-.241-.219-.51-.305-.774-.055-.16-.11-.323-.293-.35-.2-.031-.278.136-.356.276-.313.572-.434%201.202-.422%201.84.027%201.436.633%202.58%201.838%203.393.137.093.172.187.129.323-.082.28-.18.552-.266.833-.055.179-.137.217-.329.14a5.526%205.526%200%2001-1.736-1.18c-.857-.828-1.631-1.742-2.597-2.458a11.365%2011.365%200%2000-.689-.471c-.985-.957.13-1.743.388-1.836.27-.098.093-.432-.779-.428-.872.004-1.67.295-2.687.684a3.055%203.055%200%2001-.465.137%209.597%209.597%200%2000-2.883-.102c-1.885.21-3.39%201.102-4.497%202.623C.082%208.606-.231%2010.684.152%2012.85c.403%202.284%201.569%204.175%203.36%205.653%201.858%201.533%203.997%202.284%206.438%202.14%201.482-.085%203.133-.284%204.994-1.86.47.234.962.327%201.78.397.63.059%201.236-.03%201.705-.128.735-.156.684-.837.419-.961-2.155-1.004-1.682-.595-2.113-.926%201.096-1.296%202.746-2.642%203.392-7.003.05-.347.007-.565%200-.845-.004-.17.035-.237.23-.256a4.173%204.173%200%20001.545-.475c1.396-.763%201.96-2.015%202.093-3.517.02-.23-.004-.467-.247-.588zM11.581%2018c-2.089-1.642-3.102-2.183-3.52-2.16-.392.024-.321.471-.235.763.09.288.207.486.371.739.114.167.192.416-.113.603-.673.416-1.842-.14-1.897-.167-1.361-.802-2.5-1.86-3.301-3.307-.774-1.393-1.224-2.887-1.298-4.482-.02-.386.093-.522.477-.592a4.696%204.696%200%20011.529-.039c2.132.312%203.946%201.265%205.468%202.774.868.86%201.525%201.887%202.202%202.891.72%201.066%201.494%202.082%202.48%202.914.348.292.625.514.891.677-.802.09-2.14.11-3.054-.614zm1-6.44a.306.306%200%2001.415-.287.302.302%200%2001.2.288.306.306%200%2001-.31.307.303.303%200%2001-.304-.308zm3.11%201.596c-.2.081-.399.151-.59.16a1.245%201.245%200%2001-.798-.254c-.274-.23-.47-.358-.552-.758a1.73%201.73%200%2001.016-.588c.07-.327-.008-.537-.239-.727-.187-.156-.426-.199-.688-.199a.559.559%200%2001-.254-.078c-.11-.054-.2-.19-.114-.358.028-.054.16-.186.192-.21.356-.202.767-.136%201.146.016.352.144.618.408%201.001.782.391.451.462.576.685.914.176.265.336.537.445.848.067.195-.019.354-.25.452z'%20fill='%234D6BFE'%3e%3c/path%3e%3c/svg%3e",jS="data:image/svg+xml,%3csvg%20fill='currentColor'%20fill-rule='evenodd'%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eGrok%3c/title%3e%3cpath%20d='M9.27%2015.29l7.978-5.897c.391-.29.95-.177%201.137.272.98%202.369.542%205.215-1.41%207.169-1.951%201.954-4.667%202.382-7.149%201.406l-2.711%201.257c3.889%202.661%208.611%202.003%2011.562-.953%202.341-2.344%203.066-5.539%202.388-8.42l.006.007c-.983-4.232.242-5.924%202.75-9.383.06-.082.12-.164.179-.248l-3.301%203.305v-.01L9.267%2015.292M7.623%2016.723c-2.792-2.67-2.31-6.801.071-9.184%201.761-1.763%204.647-2.483%207.166-1.425l2.705-1.25a7.808%207.808%200%2000-1.829-1A8.975%208.975%200%20005.984%205.83c-2.533%202.536-3.33%206.436-1.962%209.764%201.022%202.487-.653%204.246-2.34%206.022-.599.63-1.199%201.259-1.682%201.925l7.62-6.815'%3e%3c/path%3e%3c/svg%3e",YS="data:image/svg+xml,%3csvg%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eHuggingFace%3c/title%3e%3cpath%20d='M2.25%2011.535c0-3.407%201.847-6.554%204.844-8.258a9.822%209.822%200%20019.687%200c2.997%201.704%204.844%204.851%204.844%208.258%200%205.266-4.337%209.535-9.687%209.535S2.25%2016.8%202.25%2011.535z'%20fill='%23FF9D0B'%3e%3c/path%3e%3cpath%20d='M11.938%2020.086c4.797%200%208.687-3.829%208.687-8.551%200-4.722-3.89-8.55-8.687-8.55-4.798%200-8.688%203.828-8.688%208.55%200%204.722%203.89%208.55%208.688%208.55z'%20fill='%23FFD21E'%3e%3c/path%3e%3cpath%20d='M11.875%2015.113c2.457%200%203.25-2.156%203.25-3.263%200-.576-.393-.394-1.023-.089-.582.283-1.365.675-2.224.675-1.798%200-3.25-1.693-3.25-.586%200%201.107.79%203.263%203.25%203.263h-.003z'%20fill='%23FF323D'%3e%3c/path%3e%3cpath%20d='M14.76%209.21c.32.108.445.753.767.585.447-.233.707-.708.659-1.204a1.235%201.235%200%2000-.879-1.059%201.262%201.262%200%2000-1.33.394c-.322.384-.377.92-.14%201.36.153.283.638-.177.925-.079l-.002.003zm-5.887%200c-.32.108-.448.753-.768.585a1.226%201.226%200%2001-.658-1.204c.048-.495.395-.913.878-1.059a1.262%201.262%200%20011.33.394c.322.384.377.92.14%201.36-.152.283-.64-.177-.925-.079l.003.003zm1.12%205.34a2.166%202.166%200%20011.325-1.106c.07-.02.144.06.219.171l.192.306c.069.1.139.175.209.175.074%200%20.15-.074.223-.172l.205-.302c.08-.11.157-.188.234-.165.537.168.986.536%201.25%201.026.932-.724%201.275-1.905%201.275-2.633%200-.508-.306-.426-.81-.19l-.616.296c-.52.24-1.148.48-1.824.48-.676%200-1.302-.24-1.823-.48l-.589-.283c-.52-.248-.838-.342-.838.177%200%20.703.32%201.831%201.187%202.56l.18.14z'%20fill='%233A3B45'%3e%3c/path%3e%3cpath%20d='M17.812%2010.366a.806.806%200%2000.813-.8c0-.441-.364-.8-.813-.8a.806.806%200%2000-.812.8c0%20.442.364.8.812.8zm-11.624%200a.806.806%200%2000.812-.8c0-.441-.364-.8-.812-.8a.806.806%200%2000-.813.8c0%20.442.364.8.813.8zM4.515%2013.073c-.405%200-.765.162-1.017.46a1.455%201.455%200%2000-.333.925%201.801%201.801%200%2000-.485-.074c-.387%200-.737.146-.985.409a1.41%201.41%200%2000-.2%201.722%201.302%201.302%200%2000-.447.694c-.06.222-.12.69.2%201.166a1.267%201.267%200%2000-.093%201.236c.238.533.81.958%201.89%201.405l.24.096c.768.3%201.473.492%201.478.494.89.243%201.808.375%202.732.394%201.465%200%202.513-.443%203.115-1.314.93-1.342.842-2.575-.274-3.763l-.151-.154c-.692-.684-1.155-1.69-1.25-1.912-.195-.655-.71-1.383-1.562-1.383-.46.007-.889.233-1.15.605-.25-.31-.495-.553-.715-.694a1.87%201.87%200%2000-.993-.312zm14.97%200c.405%200%20.767.162%201.017.46.216.262.333.588.333.925.158-.047.322-.071.487-.074.388%200%20.738.146.985.409a1.41%201.41%200%2001.2%201.722c.22.178.377.422.445.694.06.222.12.69-.2%201.166.244.37.279.836.093%201.236-.238.533-.81.958-1.889%201.405l-.239.096c-.77.3-1.475.492-1.48.494-.89.243-1.808.375-2.732.394-1.465%200-2.513-.443-3.115-1.314-.93-1.342-.842-2.575.274-3.763l.151-.154c.695-.684%201.157-1.69%201.252-1.912.195-.655.708-1.383%201.56-1.383.46.007.889.233%201.15.605.25-.31.495-.553.718-.694.244-.162.523-.265.814-.3l.176-.012z'%20fill='%23FF9D0B'%3e%3c/path%3e%3cpath%20d='M9.785%2020.132c.688-.994.638-1.74-.305-2.667-.945-.928-1.495-2.288-1.495-2.288s-.205-.788-.672-.714c-.468.074-.81%201.25.17%201.971.977.721-.195%201.21-.573.534-.375-.677-1.405-2.416-1.94-2.751-.532-.332-.907-.148-.782.541.125.687%202.357%202.35%202.14%202.707-.218.362-.983-.42-.983-.42S2.953%2014.9%202.43%2015.46c-.52.558.398%201.026%201.7%201.803%201.308.778%201.41.985%201.225%201.28-.187.295-3.07-2.1-3.34-1.083-.27%201.011%202.943%201.304%202.745%202.006-.2.7-2.265-1.324-2.685-.537-.425.79%202.913%201.718%202.94%201.725%201.075.276%203.813.859%204.77-.522zm4.432%200c-.687-.994-.64-1.74.305-2.667.943-.928%201.493-2.288%201.493-2.288s.205-.788.675-.714c.465.074.807%201.25-.17%201.971-.98.721.195%201.21.57.534.377-.677%201.407-2.416%201.94-2.751.532-.332.91-.148.782.541-.125.687-2.355%202.35-2.137%202.707.215.362.98-.42.98-.42S21.05%2014.9%2021.57%2015.46c.52.558-.395%201.026-1.7%201.803-1.308.778-1.408.985-1.225%201.28.187.295%203.07-2.1%203.34-1.083.27%201.011-2.94%201.304-2.743%202.006.2.7%202.263-1.324%202.685-.537.423.79-2.912%201.718-2.94%201.725-1.077.276-3.815.859-4.77-.522z'%20fill='%23FFD21E'%3e%3c/path%3e%3c/svg%3e",PS="data:image/svg+xml,%3csvg%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eKimi%3c/title%3e%3cpath%20d='M21.846%200a1.923%201.923%200%20110%203.846H20.15a.226.226%200%2001-.227-.226V1.923C19.923.861%2020.784%200%2021.846%200z'%20fill='%231783FF'%3e%3c/path%3e%3cpath%20d='M11.065%2011.199l7.257-7.2c.137-.136.06-.41-.116-.41H14.3a.164.164%200%2000-.117.051l-7.82%207.756c-.122.12-.302.013-.302-.179V3.82c0-.127-.083-.23-.185-.23H3.186c-.103%200-.186.103-.186.23V19.77c0%20.128.083.23.186.23h2.69c.103%200%20.186-.102.186-.23v-3.25c0-.069.025-.135.069-.178l2.424-2.406a.158.158%200%2001.205-.023l6.484%204.772a7.677%207.677%200%20003.453%201.283c.108.012.2-.095.2-.23v-3.06c0-.117-.07-.212-.164-.227a5.028%205.028%200%2001-2.027-.807l-5.613-4.064c-.117-.078-.132-.279-.028-.381z'%20fill='%23fff'%3e%3c/path%3e%3c/svg%3e",XS="data:image/svg+xml,%3csvg%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eMinimax%3c/title%3e%3cdefs%3e%3clinearGradient%20id='lobe-icons-minimax-_R_0_'%20x1='0%25'%20x2='100.182%25'%20y1='50.057%25'%20y2='50.057%25'%3e%3cstop%20offset='0%25'%20stop-color='%23FF0066'%3e%3c/stop%3e%3cstop%20offset='100%25'%20stop-color='%23FF3300'%3e%3c/stop%3e%3c/linearGradient%3e%3c/defs%3e%3cpath%20d='M16.278%202c1.156%200%202.093.927%202.093%202.07v12.501a.74.74%200%2000.744.709.74.74%200%2000.743-.709V9.099a2.06%202.06%200%20012.071-2.049A2.06%202.06%200%200124%209.1v6.561a.649.649%200%2001-.652.645.649.649%200%2001-.653-.645V9.1a.762.762%200%2000-.766-.758.762.762%200%2000-.766.758v7.472a2.037%202.037%200%2001-2.048%202.026%202.037%202.037%200%2001-2.048-2.026v-12.5a.785.785%200%2000-.788-.753.785.785%200%2000-.789.752l-.001%2015.904A2.037%202.037%200%200113.441%2022a2.037%202.037%200%2001-2.048-2.026V18.04c0-.356.292-.645.652-.645.36%200%20.652.289.652.645v1.934c0%20.263.142.506.372.638.23.131.514.131.744%200a.734.734%200%2000.372-.638V4.07c0-1.143.937-2.07%202.093-2.07zm-5.674%200c1.156%200%202.093.927%202.093%202.07v11.523a.648.648%200%2001-.652.645.648.648%200%2001-.652-.645V4.07a.785.785%200%2000-.789-.78.785.785%200%2000-.789.78v14.013a2.06%202.06%200%2001-2.07%202.048%202.06%202.06%200%2001-2.071-2.048V9.1a.762.762%200%2000-.766-.758.762.762%200%2000-.766.758v3.8a2.06%202.06%200%2001-2.071%202.049A2.06%202.06%200%20010%2012.9v-1.378c0-.357.292-.646.652-.646.36%200%20.653.29.653.646V12.9c0%20.418.343.757.766.757s.766-.339.766-.757V9.099a2.06%202.06%200%20012.07-2.048%202.06%202.06%200%20012.071%202.048v8.984c0%20.419.343.758.767.758.423%200%20.766-.339.766-.758V4.07c0-1.143.937-2.07%202.093-2.07z'%20fill='url(%23lobe-icons-minimax-_R_0_)'%20fill-rule='nonzero'%3e%3c/path%3e%3c/svg%3e",qS="data:image/svg+xml,%3csvg%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eMistral%3c/title%3e%3cpath%20d='M3.428%203.4h3.429v3.428H3.428V3.4zm13.714%200h3.43v3.428h-3.43V3.4z'%20fill='gold'%3e%3c/path%3e%3cpath%20d='M3.428%206.828h6.857v3.429H3.429V6.828zm10.286%200h6.857v3.429h-6.857V6.828z'%20fill='%23FFAF00'%3e%3c/path%3e%3cpath%20d='M3.428%2010.258h17.144v3.428H3.428v-3.428z'%20fill='%23FF8205'%3e%3c/path%3e%3cpath%20d='M3.428%2013.686h3.429v3.428H3.428v-3.428zm6.858%200h3.429v3.428h-3.429v-3.428zm6.856%200h3.43v3.428h-3.43v-3.428z'%20fill='%23FA500F'%3e%3c/path%3e%3cpath%20d='M0%2017.114h10.286v3.429H0v-3.429zm13.714%200H24v3.429H13.714v-3.429z'%20fill='%23E10500'%3e%3c/path%3e%3c/svg%3e",FS="data:image/svg+xml,%3csvg%20fill='%23FFFFFF'%20fill-rule='evenodd'%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eOpenAI%3c/title%3e%3cpath%20d='M9.205%208.658v-2.26c0-.19.072-.333.238-.428l4.543-2.616c.619-.357%201.356-.523%202.117-.523%202.854%200%204.662%202.212%204.662%204.566%200%20.167%200%20.357-.024.547l-4.71-2.759a.797.797%200%2000-.856%200l-5.97%203.473zm10.609%208.8V12.06c0-.333-.143-.57-.429-.737l-5.97-3.473%201.95-1.118a.433.433%200%2001.476%200l4.543%202.617c1.309.76%202.189%202.378%202.189%203.948%200%201.808-1.07%203.473-2.76%204.163zM7.802%2012.703l-1.95-1.142c-.167-.095-.239-.238-.239-.428V5.899c0-2.545%201.95-4.472%204.591-4.472%201%200%201.927.333%202.712.928L8.23%205.067c-.285.166-.428.404-.428.737v6.898zM12%2015.128l-2.795-1.57v-3.33L12%208.658l2.795%201.57v3.33L12%2015.128zm1.796%207.23c-1%200-1.927-.332-2.712-.927l4.686-2.712c.285-.166.428-.404.428-.737v-6.898l1.974%201.142c.167.095.238.238.238.428v5.233c0%202.545-1.974%204.472-4.614%204.472zm-5.637-5.303l-4.544-2.617c-1.308-.761-2.188-2.378-2.188-3.948A4.482%204.482%200%20014.21%206.327v5.423c0%20.333.143.571.428.738l5.947%203.449-1.95%201.118a.432.432%200%2001-.476%200zm-.262%203.9c-2.688%200-4.662-2.021-4.662-4.519%200-.19.024-.38.047-.57l4.686%202.71c.286.167.571.167.856%200l5.97-3.448v2.26c0%20.19-.07.333-.237.428l-4.543%202.616c-.619.357-1.356.523-2.117.523zm5.899%202.83a5.947%205.947%200%20005.827-4.756C22.287%2018.339%2024%2015.84%2024%2013.296c0-1.665-.713-3.282-1.998-4.448.119-.5.19-.999.19-1.498%200-3.401-2.759-5.947-5.946-5.946-.642%200-1.26.095-1.88.31A5.962%205.962%200%200010.205%200a5.947%205.947%200%2000-5.827%204.757C1.713%205.447%200%207.945%200%2010.49c0%201.666.713%203.283%201.998%204.448-.119.5-.19%201-.19%201.499%200%203.401%202.759%205.946%205.946%205.946.642%200%201.26-.095%201.88-.309a5.96%205.96%200%20004.162%201.713z'%3e%3c/path%3e%3c/svg%3e",QS="data:image/svg+xml,%3csvg%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eQwen%3c/title%3e%3cpath%20d='M12.604%201.34c.393.69.784%201.382%201.174%202.075a.18.18%200%2000.157.091h5.552c.174%200%20.322.11.446.327l1.454%202.57c.19.337.24.478.024.837-.26.43-.513.864-.76%201.3l-.367.658c-.106.196-.223.28-.04.512l2.652%204.637c.172.301.111.494-.043.77-.437.785-.882%201.564-1.335%202.34-.159.272-.352.375-.68.37-.777-.016-1.552-.01-2.327.016a.099.099%200%2000-.081.05%20575.097%20575.097%200%2001-2.705%204.74c-.169.293-.38.363-.725.364-.997.003-2.002.004-3.017.002a.537.537%200%2001-.465-.271l-1.335-2.323a.09.09%200%2000-.083-.049H4.982c-.285.03-.553-.001-.805-.092l-1.603-2.77a.543.543%200%2001-.002-.54l1.207-2.12a.198.198%200%20000-.197%20550.951%20550.951%200%2001-1.875-3.272l-.79-1.395c-.16-.31-.173-.496.095-.965.465-.813.927-1.625%201.387-2.436.132-.234.304-.334.584-.335a338.3%20338.3%200%20012.589-.001.124.124%200%2000.107-.063l2.806-4.895a.488.488%200%2001.422-.246c.524-.001%201.053%200%201.583-.006L11.704%201c.341-.003.724.032.9.34zm-3.432.403a.06.06%200%2000-.052.03L6.254%206.788a.157.157%200%2001-.135.078H3.253c-.056%200-.07.025-.041.074l5.81%2010.156c.025.042.013.062-.034.063l-2.795.015a.218.218%200%2000-.2.116l-1.32%202.31c-.044.078-.021.118.068.118l5.716.008c.046%200%20.08.02.104.061l1.403%202.454c.046.081.092.082.139%200l5.006-8.76.783-1.382a.055.055%200%2001.096%200l1.424%202.53a.122.122%200%2000.107.062l2.763-.02a.04.04%200%2000.035-.02.041.041%200%20000-.04l-2.9-5.086a.108.108%200%20010-.113l.293-.507%201.12-1.977c.024-.041.012-.062-.035-.062H9.2c-.059%200-.073-.026-.043-.077l1.434-2.505a.107.107%200%20000-.114L9.225%201.774a.06.06%200%2000-.053-.031zm6.29%208.02c.046%200%20.058.02.034.06l-.832%201.465-2.613%204.585a.056.056%200%2001-.05.029.058.058%200%2001-.05-.029L8.498%209.841c-.02-.034-.01-.052.028-.054l.216-.012%206.722-.012z'%20fill='url(%23lobe-icons-qwen-_R_0_)'%20fill-rule='nonzero'%3e%3c/path%3e%3cdefs%3e%3clinearGradient%20id='lobe-icons-qwen-_R_0_'%20x1='0%25'%20x2='100%25'%20y1='0%25'%20y2='0%25'%3e%3cstop%20offset='0%25'%20stop-color='%235B11E5'%3e%3c/stop%3e%3cstop%20offset='100%25'%20stop-color='%233A82FF'%3e%3c/stop%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",ZS=[{id:"logo-anthropic",label:"Anthropic",url:LS},{id:"logo-antigravity",label:"Antigravity",url:NS},{id:"logo-claude",label:"Claude",url:HS},{id:"logo-codex",label:"Codex",url:_S},{id:"logo-deepseek",label:"DeepSeek",url:GS},{id:"logo-grok",label:"Grok",url:jS},{id:"logo-huggingface",label:"Hugging Face",url:YS},{id:"logo-kimi",label:"Kimi",url:PS},{id:"logo-minimax",label:"MiniMax",url:XS},{id:"logo-mistral",label:"Mistral",url:qS},{id:"logo-openai",label:"OpenAI",url:FS},{id:"logo-qwen",label:"Qwen",url:QS}],be=128,KS=28,kS=16,m1=new Map;function JS(i){const l=m1.get(i);if(l)return l;const o=IS(i).catch(()=>zo(0,0,be,be));return m1.set(i,o),o}function WS(i){return new Promise((l,o)=>{const r=new Image;r.decoding="async",r.onload=()=>l(r),r.onerror=()=>o(new Error(`Could not load ${i}`)),r.src=i})}async function IS(i){const l=await WS(i),o=l.naturalWidth||be,r=l.naturalHeight||be,c=Math.min(be/o,be/r),s=o*c,f=r*c,h=(be-s)/2,g=(be-f)/2,v=document.createElement("canvas");v.width=be,v.height=be;const p=v.getContext("2d",{willReadFrequently:!0});if(!p)return zo(h,g,s,f);p.drawImage(l,h,g,s,f);let x;try{x=p.getImageData(0,0,be,be)}catch{return zo(h,g,s,f)}const y=x.data,m=[];for(let T=0;T<be;T+=1){let b=-1,C=-1;for(let R=0;R<be;R+=1)y[(T*be+R)*4+3]>KS&&(b===-1&&(b=R),C=R);b!==-1&&m.push({x:b,y:T},{x:b,y:T+1},{x:C+1,y:T},{x:C+1,y:T+1})}if(m.length<3)return zo(h,g,s,f);const S=t6($S(m),kS);return Kp(S)}function zo(i,l,o,r){return Kp([{x:i,y:l},{x:i+o,y:l},{x:i+o,y:l+r},{x:i,y:l+r}])}function Kp(i){let l=1/0,o=1/0,r=-1/0,c=-1/0;i.forEach(g=>{l=Math.min(l,g.x),o=Math.min(o,g.y),r=Math.max(r,g.x),c=Math.max(c,g.y)});const s=Math.max(r-l,1),f=Math.max(c-o,1),h=Math.max(s,f);return{hull:i.map(g=>({x:(g.x-l)/h,y:(g.y-o)/h})),width:s/h,height:f/h,imgLeft:-l/h,imgTop:-o/h,imgSize:be/h}}function of(i,l,o){return(l.x-i.x)*(o.y-i.y)-(l.y-i.y)*(o.x-i.x)}function $S(i){const l=[...i].sort((c,s)=>c.x-s.x||c.y-s.y),o=[],r=[];for(const c of l){for(;o.length>=2&&of(o[o.length-2],o[o.length-1],c)<=0;)o.pop();o.push(c)}for(let c=l.length-1;c>=0;c-=1){const s=l[c];for(;r.length>=2&&of(r[r.length-2],r[r.length-1],s)<=0;)r.pop();r.push(s)}return r.pop(),o.pop(),o.concat(r)}function t6(i,l){const o=[...i],r=c=>{const s=o[(c-1+o.length)%o.length],f=o[(c+1)%o.length];return Math.abs(of(s,o[c],f))/2};for(;o.length>3;){let c=0,s=1/0;for(let f=0;f<o.length;f+=1){const h=r(f);h<s&&(s=h,c=f)}if(o.length<=l&&s>6)break;o.splice(c,1)}return o}const Me=1600,Ue=900;function e6(i,l){return l==="inner"?{mode:l,midY:Ue+i*.35,edgeY:Ue-150-i*.5,dipWidth:360}:{mode:l,midY:Ue-i*.05,edgeY:Ue+30+i*.4,dipWidth:360}}function Ql(i,l){const{midY:o,edgeY:r,dipWidth:c}=i,s=r-o,f=c,h=Me-c,g=v=>{const p=Math.min(Math.max(v,0),1);return r-s*Math.sqrt(Math.max(1-p*p,0))};return l<f?g((f-l)/c):l>h?g((l-h)/c):o}function kp(i,l){return(Ql(i,l+2)-Ql(i,l-2))/4}function Jp(i,l){const o=kp(i,l),r=Math.hypot(o,1);return{x:o/r,y:-1/r}}function n6(i,l){return Math.atan(kp(i,l))}function i6(i){const l=[],c=Me+140,s=80;for(let f=0;f<56;f+=1){const h=-140+(c- -140)*f/56,g=-140+(c- -140)*(f+1)/56,v=Ql(i,h),p=Ql(i,g),x=(h+g)/2,y=(v+p)/2,m=Jp(i,x);l.push({x:x-m.x*(s/2),y:y-m.y*(s/2),length:Math.hypot(g-h,p-v)+6,thickness:s,angle:Math.atan2(p-v,g-h)})}return l}function a6(i){let l=i>>>0;return()=>{l+=1831565813;let o=l;return o=Math.imul(o^o>>>15,o|1),o^=o+Math.imul(o^o>>>7,o|61),((o^o>>>14)>>>0)/4294967296}}function l6(i,l,o){const r=a6(7919+i*131),c=Math.min(Math.max(Math.floor(Me/(l*1.15)),6),i),s=Array.from({length:c},(m,S)=>(S+.5)/c*Me),f=s.map(m=>Math.abs(m-Me/2)/(Me/2)),h=f.map(m=>{const S=o.mode==="inner"?1-m:m;return .42+Math.pow(Math.max(S-.25,0),2)*7}),g=h.reduce((m,S)=>m+S,0),v=new Array(c).fill(1),p=i-c;if(p>0){const m=h.map(b=>b/g*p);let S=p;m.forEach((b,C)=>{const R=Math.floor(b);v[C]+=R,S-=R});const T=m.map((b,C)=>({index:C,remainder:b-Math.floor(b)})).sort((b,C)=>C.remainder-b.remainder);for(let b=0;S>0;b=(b+1)%T.length)v[T[b].index]+=1,S-=1}const x=[],y=l*.9;return s.forEach((m,S)=>{for(let T=0;T<v[S];T+=1){const b=m+(r()-.5)*l*.3,C=Ql(o,b),R=Jp(o,b),z=l*.5+T*y+(r()-.5)*l*.1,U=(r()-.5)*l*.22;x.push({x:Math.min(Math.max(b+R.x*z-R.y*U,l*.5),Me-l*.5),y:C+R.y*z+R.x*U,angle:n6(o,b)+(r()-.5)*.34,layer:T,edge:f[S]})}}),x}const Oc=1e3/120,s6=900,o6={count:90,gravity:100,density:100,bounce:91,air:100,wind:100,friction:100},Nl=(i,l,o)=>Math.min(Math.max(i,l),o);function r6(i){let l=i>>>0;return()=>{l+=1831565813;let o=l;return o=Math.imul(o^o>>>15,o|1),o^=o+Math.imul(o^o>>>7,o|61),((o^o>>>14)>>>0)/4294967296}}const Tn=(i,l,o)=>l+(o-l)*i();function u6(i,l){const o=[...i];for(let r=o.length-1;r>0;r-=1){const c=Math.floor(l()*(r+1));[o[r],o[c]]=[o[c],o[r]]}return o}const c6=i=>Nl(90-Math.sqrt(i)*4.8,36,72);function Wp(i,l){kt.Body.setDensity(i.body,i.densityBase*(.58+l.density*.012)),i.body.restitution=.17+l.bounce*.0043,i.body.friction=.07+l.friction*.006,i.body.frictionStatic=.24+l.friction*.0072,i.body.frictionAir=.0025+l.air*7e-5}function p1(i,l){i.engine.gravity.y=1,i.engine.gravity.scale=(900+l.gravity*13)/1e6,i.blocks.forEach(o=>{o.released&&Wp(o,l)})}const So={initial:{opacity:0,y:26,filter:"blur(12px)"},animate:{opacity:1,y:0,filter:"blur(0px)",transition:{duration:.8,delay:.25,ease:[.22,1,.36,1]}},exit:{opacity:0,y:-18,filter:"blur(10px)",transition:{duration:.4,ease:[.4,0,1,1]}}};function f6(){const[i,l]=tt.useState(o6),[o,r]=tt.useState([]),[c,s]=tt.useState(0),[f,h]=tt.useState(0),[g,v]=tt.useState([]),[p,x]=tt.useState(.5),[y,m]=tt.useState(!1),[S,T]=tt.useState(!1),[b,C]=tt.useState("outer"),[R,z]=tt.useState("light"),[U,M]=tt.useState(!0),[B,D]=tt.useState(!1);tt.useEffect(()=>{const Y=window.matchMedia("(prefers-color-scheme: dark)");M(Y.matches);const k=it=>M(it.matches);return Y.addEventListener("change",k),()=>Y.removeEventListener("change",k)},[]);const E=R==="light"||R==="system"&&!U,V=tt.useRef(i),O=tt.useRef(null),L=tt.useRef(new Map),H=tt.useRef(null),Q=tt.useRef(null),nt=tt.useRef([]),et=tt.useRef(!1),j=qe[f],Z=o.length>0?o:ZS;tt.useCallback((Y,k)=>{l(it=>({...it,[Y]:k}))},[]),tt.useCallback(()=>s(Y=>Y+1),[]);const $=tt.useCallback(Y=>{if(et.current)return;et.current=!0,T(!0),h(Y);const k=O.current;k&&(k.draining=!0,kt.Composite.remove(k.engine.world,k.floor),k.blocks.forEach(it=>{it.released&&kt.Body.setVelocity(it.body,{x:it.body.velocity.x*.4,y:Math.max(it.body.velocity.y,1.2+Math.random()*1.4)})})),window.setTimeout(()=>{s(it=>it+1),et.current=!1,T(!1)},s6)},[]),lt=tt.useCallback(()=>$((f+1)%qe.length),[$,f]),ft=tt.useCallback(()=>$((f-1+qe.length)%qe.length),[$,f]);tt.useCallback(Y=>{const k=Array.from(Y.target.files??[]).filter(st=>st.type==="image/png"||st.type==="image/svg+xml"||/\.(png|svg)$/i.test(st.name));if(k.length===0)return;const it=k.map((st,at)=>{const ct=URL.createObjectURL(st);return nt.current.push(ct),{id:`${st.name}-${Date.now()}-${at}`,label:st.name.replace(/\.(png|svg)$/i,""),url:ct}});r(st=>[...st,...it]),Y.target.value=""},[]),tt.useCallback(()=>{nt.current.forEach(Y=>URL.revokeObjectURL(Y)),nt.current=[],r([])},[]),tt.useCallback(()=>{document.fullscreenElement?document.exitFullscreen():document.documentElement.requestFullscreen?.()},[]),tt.useEffect(()=>{V.current=i,O.current&&p1(O.current,i)},[i]),tt.useEffect(()=>{const Y=H.current;if(!Y)return;const k=()=>{const st=Y.clientWidth/Me,at=Y.clientHeight/Ue;x(Math.min(st,at))};k();const it=new ResizeObserver(k);return it.observe(Y),()=>it.disconnect()},[B]),tt.useEffect(()=>{const Y=k=>{k.target instanceof HTMLInputElement||(k.key==="ArrowRight"||k.key==="PageDown"||k.key===" "?(k.preventDefault(),lt()):k.key==="ArrowLeft"||k.key==="PageUp"?(k.preventDefault(),ft()):k.key==="Escape"&&m(!1))};return window.addEventListener("keydown",Y),()=>window.removeEventListener("keydown",Y)},[lt,ft]),tt.useEffect(()=>{if(!y)return;const Y=k=>{Q.current&&!Q.current.contains(k.target)&&m(!1)};return window.addEventListener("pointerdown",Y),()=>window.removeEventListener("pointerdown",Y)},[y]),tt.useEffect(()=>()=>nt.current.forEach(Y=>URL.revokeObjectURL(Y)),[]),tt.useEffect(()=>{let Y=!1,k=null;const it=V.current.count;return Promise.all(Z.map(st=>JS(st.url))).then(st=>{if(Y)return;const at=f===0||f===qe.length-1,ct=r6(4001+c*977+it*31),Et=c6(it),mt=at?Et*1.55:Et,ie=at?{mode:"outer",midY:Ue+mt*.5,edgeY:Ue+mt*.5,dipWidth:0}:e6(mt,b);let Jt;if(at){const bt=Math.floor(Me/(mt*.98)),It=Math.ceil(Ue/(mt*.78))+3,Rt=[];for(let vt=0;vt<bt*It;vt+=1){const zt=vt%bt,ye=Math.floor(vt/bt),xe=(zt+.5)/bt*Me+(ct()-.5)*mt*.35,Se=Ue-ye*mt*.78-mt*.3;(!(xe>340&&xe<1260&&Se>240&&Se<500)||ct()>.7)&&Rt.push({x:xe,y:Se,angle:(ct()-.5)*.5,layer:ye,edge:Math.abs(xe-Me/2)/(Me/2)})}Jt=Rt}else Jt=l6(it,mt,ie);const Wt=u6(Array.from({length:Jt.length},(bt,It)=>It%Z.length),ct),pn=kt.Engine.create({positionIterations:10,velocityIterations:8,constraintIterations:4}),Ze=i6(ie).map(bt=>kt.Bodies.rectangle(bt.x,bt.y,bt.length,bt.thickness,{isStatic:!0,angle:bt.angle,friction:.9,frictionStatic:1,restitution:.3})),xi=[kt.Bodies.rectangle(-60,Ue/2,120,Ue*3,{isStatic:!0,friction:.4}),kt.Bodies.rectangle(Me+60,Ue/2,120,Ue*3,{isStatic:!0,friction:.4})],Ke=Jt.map((bt,It)=>{const Rt=Wt[It],vt=st[Rt],zt=vt.hull.map(on=>({x:on.x*mt,y:on.y*mt})),ye=kt.Vertices.centre(zt),xe=Nl(bt.x+Tn(ct,-180,180),mt,Me-mt),Se=-mt*Tn(ct,.8,4.5)-bt.layer*mt*.6,Ce=kt.Bodies.fromVertices(xe,Se,[zt],{friction:.4,frictionStatic:.7,frictionAir:.006,restitution:.4});return kt.Body.setAngle(Ce,Tn(ct,-.3,.3)),kt.Body.setStatic(Ce,!0),Ce.collisionFilter.mask=0,{view:{id:`r${c}-b${It}`,url:Z[Rt].url,shape:vt,size:mt},body:Ce,target:bt,releaseAt:.05+bt.layer*.18+Tn(ct,0,.6),released:!1,densityBase:Tn(ct,.00225,.0032),dragFactor:Tn(ct,.82,1.17),windPhase:Tn(ct,0,Math.PI*2),cx:ye.x,cy:ye.y}}),Qt={engine:pn,blocks:Ke,floor:Ze,draining:!1,disposed:!1,raf:0,startedAt:performance.now(),lastTime:performance.now(),accumulator:0};kt.Composite.add(pn.world,[...Ze,...xi,...Ke.map(bt=>bt.body)]),p1(Qt,V.current),O.current=Qt,v(Ke.map(bt=>bt.view));const Fn=bt=>{const It=V.current;for(const Rt of Ke){const vt=Rt.body;if(!Rt.released){!Qt.draining&&bt>=Rt.releaseAt&&(Rt.released=!0,kt.Body.setStatic(vt,!1),vt.collisionFilter.mask=4294967295,Wp(Rt,It),kt.Body.setVelocity(vt,{x:Tn(ct,-.35,.35),y:Tn(ct,0,.2)}),kt.Body.setAngularVelocity(vt,Tn(ct,-.02,.02)));continue}const zt=vt.velocity,ye=(25e-8+It.air*12e-9)*Rt.dragFactor;kt.Body.applyForce(vt,vt.position,{x:-zt.x*Math.abs(zt.x)*ye*vt.mass,y:-zt.y*Math.abs(zt.y)*ye*vt.mass});const xe=(Math.sin(bt*1.18+Rt.windPhase)*.72+Math.sin(bt*.47+Rt.windPhase*.61)*.28)*(It.wind/100)*36e-7;if(kt.Body.applyForce(vt,vt.position,{x:xe*vt.mass,y:0}),Qt.draining)continue;const Se=Nl((bt-Rt.releaseAt-.5)/3,0,1);if(Se>0&&vt.position.y>Rt.target.y-260){const Ce=Nl(Rt.target.x-vt.position.x,-260,260),on=Nl(Rt.target.y-vt.position.y,-220,220),gn=1e-6+Se*24e-7,Jl=16e-6+Se*3e-5;kt.Body.applyForce(vt,vt.position,{x:(Ce*gn-zt.x*Jl)*vt.mass,y:(on*gn-zt.y*Jl)*vt.mass});let Fi=Rt.target.angle-vt.angle;Fi=Math.atan2(Math.sin(Fi),Math.cos(Fi)),vt.torque+=Fi*vt.inertia*(3e-6+Se*6e-6)-vt.angularVelocity*vt.inertia*(12e-6+Se*21e-6)}}kt.Engine.update(pn,Oc)},ve=bt=>{if(Qt.disposed)return;Qt.accumulator+=Math.min(bt-Qt.lastTime,40),Qt.lastTime=bt;const It=(bt-Qt.startedAt)/1e3;for(;Qt.accumulator>=Oc;)Fn(It),Qt.accumulator-=Oc;for(const Rt of Ke){if(!Rt.released)continue;const vt=L.current.get(Rt.view.id);if(!vt)continue;const{x:zt,y:ye}=Rt.body.position;vt.style.visibility="visible",vt.style.zIndex=String(Math.round(ye/6)+200),vt.style.transform=`translate3d(${zt}px, ${ye}px, 0) rotate(${Rt.body.angle}rad) translate(${-Rt.cx}px, ${-Rt.cy}px)`}Qt.raf=requestAnimationFrame(ve)};Qt.raf=requestAnimationFrame(ve),k=()=>{Qt.disposed=!0,cancelAnimationFrame(Qt.raf),kt.Composite.clear(pn.world,!1,!0),kt.Engine.clear(pn),O.current===Qt&&(O.current=null)}}),()=>{Y=!0,k?.()}},[Z,c,i.count,b]),tt.useEffect(()=>{const Y=()=>{D(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",Y),()=>document.removeEventListener("fullscreenchange",Y)},[]);const _={"--ag-a":j.scheme.c1,"--ag-b":E?j.scheme.glowLight:j.scheme.glow};return gt.jsx("main",{className:`fixed inset-0 overflow-hidden font-display transition-colors duration-700 ${E?"light-theme":""}`,children:gt.jsxs("div",{className:"slide-frame relative overflow-hidden w-screen h-screen",ref:H,style:{width:"100vw",height:"100vh"},children:[gt.jsx(US,{isLight:E,scheme:j.scheme}),gt.jsxs("div",{className:"pointer-events-none absolute",style:{width:Me,height:Ue,left:"50%",top:"50%",transformOrigin:"center center",transform:`translate(-50%, -50%) scale(${p})`},children:[f>0&&f<qe.length-1&>.jsxs(gt.Fragment,{children:[gt.jsxs("div",{className:`absolute left-[64px] top-[52px] z-10 flex items-center gap-4 ${E?"text-slate-900":"text-white"}`,children:[gt.jsx("span",{className:"text-[26px] font-bold tracking-[-0.02em]",children:"Dropform"}),gt.jsx("span",{className:`h-[18px] w-px ${E?"bg-slate-900/25":"bg-white/30"}`}),gt.jsx("span",{className:`text-[15px] font-medium uppercase tracking-[0.22em] ${E?"text-slate-600":"text-white/60"}`,children:"AI Agent Series"})]}),gt.jsxs("div",{className:`absolute right-[64px] top-[52px] z-10 text-[22px] font-semibold tabular-nums ${E?"text-slate-900":"text-white"}`,children:[String(f).padStart(2,"0"),gt.jsxs("span",{className:E?"text-slate-400":"text-white/40",children:[" / ",String(qe.length-2).padStart(2,"0")]})]})]}),(f===0||f===qe.length-1)&>.jsx("div",{className:`pointer-events-none absolute inset-0 z-25 transition-opacity duration-700 ${E?"bg-white/15":"bg-[#040612]/12"}`}),gt.jsxs("div",{className:`absolute inset-x-0 z-30 flex flex-col items-center text-center ${f===0||f===qe.length-1?"top-[270px]":"top-[140px]"}`,children:[f>0&&f<qe.length-1&>.jsx(Cc,{mode:"wait",children:gt.jsx(xo.span,{className:`mb-5 rounded-full border px-6 py-2 text-[15px] font-semibold uppercase tracking-[0.28em] backdrop-blur-md ${E?"border-slate-900/15 bg-white/75 text-slate-900 shadow-md":"border-white/25 bg-black/40 text-white/90 shadow-md"}`,...So,children:j.tag},`tag-${j.id}`)}),gt.jsx(Cc,{mode:"wait",children:f===0||f===qe.length-1?gt.jsx(xo.div,{className:"flex flex-col items-center",...So,children:gt.jsx("h1",{className:"ai-agent-title hero-title text-center",style:_,children:j.title})},`title-hero-${j.id}`):gt.jsxs(xo.div,{className:"flex flex-col items-center",...So,children:[gt.jsx("h1",{className:"ai-agent-title",style:_,children:"AI AGENT"}),gt.jsx("h2",{className:`mt-6 text-[52px] font-bold leading-none tracking-[-0.03em] ${E?"text-slate-900":"text-white"}`,children:j.title})]},`title-standard-${j.id}`)}),f>0&&f<qe.length-1&>.jsx(Cc,{mode:"wait",children:gt.jsx(xo.div,{className:"mt-5 flex flex-col items-center",...So,children:gt.jsx("p",{className:`max-w-[760px] rounded-2xl px-6 py-2 backdrop-blur-sm text-[22px] font-medium leading-snug ${E?"text-slate-800 bg-white/40":"text-white/80 bg-black/20"}`,children:j.subtitle})},`copy-${j.id}`)})]}),gt.jsx("div",{className:"blocks-layer absolute inset-0 z-20",style:{opacity:S?0:1},children:g.map(Y=>gt.jsx("div",{className:"icon-block",ref:k=>{k?L.current.set(Y.id,k):L.current.delete(Y.id)},style:{width:Y.shape.width*Y.size,height:Y.shape.height*Y.size,visibility:"hidden"},children:gt.jsx("img",{alt:"",draggable:!1,src:Y.url,style:{left:Y.shape.imgLeft*Y.size,top:Y.shape.imgTop*Y.size,width:Y.shape.imgSize*Y.size,height:Y.shape.imgSize*Y.size}})},Y.id))})]}),gt.jsx("div",{className:"slide-indicators absolute bottom-3 left-1/2 z-40 flex -translate-x-1/2 items-center sm:bottom-4",children:qe.slice(1,-1).map((Y,k)=>{const it=k+1;return gt.jsx("button",{"aria-label":`Go to slide ${it+1}: ${Y.title}`,className:`slide-indicator h-1 cursor-pointer rounded-full transition-all duration-500 ${it===f?E?"w-8 bg-slate-900":"w-8 bg-white":E?"w-2 bg-slate-900/20 hover:bg-slate-900/50":"w-2 bg-white/25 hover:bg-white/60"}`,onClick:()=>it!==f&&$(it),type:"button"},Y.id)})})]})})}My.createRoot(document.getElementById("root")).render(gt.jsx(tt.StrictMode,{children:gt.jsx(f6,{})}));</script>
<style rel="stylesheet" crossorigin>@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){:root,:host{--ag-a:#f15a22;--ag-b:#ffc9a8}*,: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-leading:initial;--tw-font-weight:initial;--tw-tracking: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-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:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-slate-400:oklch(70.4% .04 256.788);--color-slate-600:oklch(44.6% .043 257.281);--color-slate-800:oklch(27.9% .041 260.031);--color-slate-900:oklch(20.8% .042 265.755);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-normal:0em;--leading-snug:1.375;--radius-md:.375rem;--radius-lg:.5rem;--radius-2xl:1rem;--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-sm:8px;--blur-md:12px;--blur-xl:24px;--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);--font-display:"Syne",ui-sans-serif,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}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.inset-x-0{inset-inline:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.top-\[52px\]{top:52px}.top-\[140px\]{top:140px}.top-\[270px\]{top:270px}.right-\[64px\]{right:64px}.bottom-3{bottom:calc(var(--spacing)*3)}.left-0{left:calc(var(--spacing)*0)}.left-1{left:calc(var(--spacing)*1)}.left-1\/2{left:50%}.left-\[64px\]{left:64px}.z-10{z-index:10}.z-20{z-index:20}.z-25{z-index:25}.z-30{z-index:30}.z-40{z-index:40}.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}}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-1\.5{margin-top:calc(var(--spacing)*1.5)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-5{margin-top:calc(var(--spacing)*5)}.mt-6{margin-top:calc(var(--spacing)*6)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-1\.5{margin-bottom:calc(var(--spacing)*1.5)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-2\.5{margin-bottom:calc(var(--spacing)*2.5)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-5{margin-bottom:calc(var(--spacing)*5)}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.table{display:table}.h-1{height:calc(var(--spacing)*1)}.h-5{height:calc(var(--spacing)*5)}.h-7{height:calc(var(--spacing)*7)}.h-\[18px\]{height:18px}.h-full{height:100%}.h-screen{height:100vh}.w-2{width:calc(var(--spacing)*2)}.w-5{width:calc(var(--spacing)*5)}.w-7{width:calc(var(--spacing)*7)}.w-8{width:calc(var(--spacing)*8)}.w-\[288px\]{width:288px}.w-full{width:100%}.w-px{width:1px}.w-screen{width:100vw}.max-w-\[760px\]{max-width:760px}.origin-top-left{transform-origin:0 0}.-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)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.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-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-4{gap:calc(var(--spacing)*4)}: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)))}.overflow-hidden{overflow:hidden}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-none{border-radius:0}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-slate-900{border-color:var(--color-slate-900)}.border-slate-900\/15{border-color:#0f172b26}@supports (color:color-mix(in lab,red,red)){.border-slate-900\/15{border-color:color-mix(in oklab,var(--color-slate-900)15%,transparent)}}.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\/15{border-color:#ffffff26}@supports (color:color-mix(in lab,red,red)){.border-white\/15{border-color:color-mix(in oklab,var(--color-white)15%,transparent)}}.border-white\/25{border-color:#ffffff40}@supports (color:color-mix(in lab,red,red)){.border-white\/25{border-color:color-mix(in oklab,var(--color-white)25%,transparent)}}.bg-\[\#0b0d18\]\/80{background-color:#0b0d18cc}.bg-\[\#040612\]\/12{background-color:#0406121f}.bg-black{background-color:var(--color-black)}.bg-black\/20{background-color:#0003}@supports (color:color-mix(in lab,red,red)){.bg-black\/20{background-color:color-mix(in oklab,var(--color-black)20%,transparent)}}.bg-black\/40{background-color:#0006}@supports (color:color-mix(in lab,red,red)){.bg-black\/40{background-color:color-mix(in oklab,var(--color-black)40%,transparent)}}.bg-slate-900{background-color:var(--color-slate-900)}.bg-slate-900\/20{background-color:#0f172b33}@supports (color:color-mix(in lab,red,red)){.bg-slate-900\/20{background-color:color-mix(in oklab,var(--color-slate-900)20%,transparent)}}.bg-slate-900\/25{background-color:#0f172b40}@supports (color:color-mix(in lab,red,red)){.bg-slate-900\/25{background-color:color-mix(in oklab,var(--color-slate-900)25%,transparent)}}.bg-white{background-color:var(--color-white)}.bg-white\/5{background-color:#ffffff0d}@supports (color:color-mix(in lab,red,red)){.bg-white\/5{background-color:color-mix(in oklab,var(--color-white)5%,transparent)}}.bg-white\/10{background-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.bg-white\/10{background-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.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-white\/25{background-color:#ffffff40}@supports (color:color-mix(in lab,red,red)){.bg-white\/25{background-color:color-mix(in oklab,var(--color-white)25%,transparent)}}.bg-white\/30{background-color:#ffffff4d}@supports (color:color-mix(in lab,red,red)){.bg-white\/30{background-color:color-mix(in oklab,var(--color-white)30%,transparent)}}.bg-white\/40{background-color:#fff6}@supports (color:color-mix(in lab,red,red)){.bg-white\/40{background-color:color-mix(in oklab,var(--color-white)40%,transparent)}}.bg-white\/75{background-color:#ffffffbf}@supports (color:color-mix(in lab,red,red)){.bg-white\/75{background-color:color-mix(in oklab,var(--color-white)75%,transparent)}}.object-contain{object-fit:contain}.p-1{padding:calc(var(--spacing)*1)}.p-4{padding:calc(var(--spacing)*4)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-1\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\.5{padding-inline:calc(var(--spacing)*2.5)}.px-6{padding-inline:calc(var(--spacing)*6)}.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)}.pt-3{padding-top:calc(var(--spacing)*3)}.text-center{text-align:center}.font-display{font-family:var(--font-display)}.font-mono{font-family:var(--font-mono)}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-\[9\.5px\]{font-size:9.5px}.text-\[9px\]{font-size:9px}.text-\[10px\]{font-size:10px}.text-\[15px\]{font-size:15px}.text-\[22px\]{font-size:22px}.text-\[26px\]{font-size:26px}.text-\[52px\]{font-size:52px}.leading-none{--tw-leading:1;line-height:1}.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-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\[-0\.02em\]{--tw-tracking:-.02em;letter-spacing:-.02em}.tracking-\[-0\.03em\]{--tw-tracking:-.03em;letter-spacing:-.03em}.tracking-\[0\.1em\]{--tw-tracking:.1em;letter-spacing:.1em}.tracking-\[0\.08em\]{--tw-tracking:.08em;letter-spacing:.08em}.tracking-\[0\.12em\]{--tw-tracking:.12em;letter-spacing:.12em}.tracking-\[0\.14em\]{--tw-tracking:.14em;letter-spacing:.14em}.tracking-\[0\.16em\]{--tw-tracking:.16em;letter-spacing:.16em}.tracking-\[0\.22em\]{--tw-tracking:.22em;letter-spacing:.22em}.tracking-\[0\.28em\]{--tw-tracking:.28em;letter-spacing:.28em}.tracking-normal{--tw-tracking:var(--tracking-normal);letter-spacing:var(--tracking-normal)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.text-black{color:var(--color-black)}.text-slate-400{color:var(--color-slate-400)}.text-slate-600{color:var(--color-slate-600)}.text-slate-800{color:var(--color-slate-800)}.text-slate-900{color:var(--color-slate-900)}.text-white{color:var(--color-white)}.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\/60{color:#fff9}@supports (color:color-mix(in lab,red,red)){.text-white\/60{color:color-mix(in oklab,var(--color-white)60%,transparent)}}.text-white\/70{color:#ffffffb3}@supports (color:color-mix(in lab,red,red)){.text-white\/70{color:color-mix(in oklab,var(--color-white)70%,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)}}.text-white\/85{color:#ffffffd9}@supports (color:color-mix(in lab,red,red)){.text-white\/85{color:color-mix(in oklab,var(--color-white)85%,transparent)}}.text-white\/90{color:#ffffffe6}@supports (color:color-mix(in lab,red,red)){.text-white\/90{color:color-mix(in oklab,var(--color-white)90%,transparent)}}.normal-case{text-transform:none}.uppercase{text-transform:uppercase}.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,)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px 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)}.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,)}.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-md{--tw-backdrop-blur:blur(var(--blur-md));-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,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-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,)}.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\]{transition-property:background;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-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.duration-700{--tw-duration:.7s;transition-duration:.7s}.duration-1000{--tw-duration:1s;transition-duration:1s}.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){.hover\:border-white\/50:hover{border-color:#ffffff80}@supports (color:color-mix(in lab,red,red)){.hover\:border-white\/50:hover{border-color:color-mix(in oklab,var(--color-white)50%,transparent)}}.hover\:bg-slate-900\/50:hover{background-color:#0f172b80}@supports (color:color-mix(in lab,red,red)){.hover\:bg-slate-900\/50:hover{background-color:color-mix(in oklab,var(--color-slate-900)50%,transparent)}}.hover\:bg-white\/5:hover{background-color:#ffffff0d}@supports (color:color-mix(in lab,red,red)){.hover\:bg-white\/5:hover{background-color:color-mix(in oklab,var(--color-white)5%,transparent)}}.hover\:bg-white\/20:hover{background-color:#fff3}@supports (color:color-mix(in lab,red,red)){.hover\:bg-white\/20:hover{background-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.hover\:bg-white\/60:hover{background-color:#fff9}@supports (color:color-mix(in lab,red,red)){.hover\:bg-white\/60:hover{background-color:color-mix(in oklab,var(--color-white)60%,transparent)}}.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-white:hover{color:var(--color-white)}}@media(min-width:40rem){.sm\:bottom-4{bottom:calc(var(--spacing)*4)}}}@property --ag-a{syntax:"<color>";inherits:true;initial-value:#f15a22}@property --ag-b{syntax:"<color>";inherits:true;initial-value:#ffc9a8}html,body,#root{background:#030307;height:100%;margin:0;overflow:hidden}body{-webkit-font-smoothing:antialiased;font-family:Syne,ui-sans-serif,system-ui,sans-serif}.slide-frame{isolation:isolate;box-shadow:0 30px 80px #0000008c,0 0 0 1px #ffffff14}.slide-indicators{gap:clamp(3px,.45vw,8px);max-width:calc(100vw - 32px)}.slide-indicator{flex:0 auto}@media(max-width:640px){.slide-indicator.w-8{width:clamp(18px,6vw,32px)}.slide-indicator.w-2{width:clamp(3px,1.4vw,8px)}}.ai-agent-title{letter-spacing:-.03em;background-image:linear-gradient(100deg,var(--ag-title-0,#fff)0%,var(--ag-b)28%,var(--ag-a)52%,var(--ag-b)76%,var(--ag-title-0,#fff)100%);color:#0000;-webkit-text-fill-color:transparent;filter:drop-shadow(0 0 25px var(--ag-a))drop-shadow(0 0 50px var(--ag-b))drop-shadow(0 8px 30px #000000f2);background-size:240% 100%;-webkit-background-clip:text;background-clip:text;margin:0;font-family:Syne,ui-sans-serif,system-ui,sans-serif;font-size:200px;font-weight:800;line-height:.88;transition:--ag-a 1.2s,--ag-b 1.2s;animation:9s ease-in-out infinite alternate title-flow}.hero-title{word-break:normal;overflow-wrap:break-word;max-width:1450px;padding:0 40px;letter-spacing:-.02em!important;font-size:112px!important;line-height:.95!important}.light-theme .ai-agent-title{--ag-title-0:#080a14;filter:drop-shadow(0 0 35px var(--ag-b))drop-shadow(0 0 65px #fff)drop-shadow(0 4px 18px #00000080)}@keyframes title-flow{0%{background-position:0%}to{background-position:100%}}.blocks-layer{transition:opacity .75s cubic-bezier(.55,0,.9,.4)}.icon-block{transform-origin:0 0;will-change:transform;backface-visibility:hidden;position:absolute;top:0;left:0}.icon-block img{object-fit:contain;-webkit-user-select:none;user-select:none;pointer-events:none;filter:drop-shadow(0 6px 8px #00000052);max-width:none;position:absolute}.nav-btn,.icon-btn{color:#fff;border-radius:999px;place-items:center;transition:background .2s,color .2s,transform .2s;display:grid}.nav-btn{width:30px;height:30px}.nav-btn:hover{background:#ffffff29}.icon-btn{-webkit-backdrop-filter:blur(12px);opacity:.75;background:#0003;border:1px solid #ffffff29;width:28px;height:28px}.light-theme .icon-btn{color:#0f172a;background:#fff6;border-color:#0000001f}.icon-btn:hover{opacity:1;background:#ffffff40}.light-theme .icon-btn:hover{background:#ffffffb3}.icon-btn:active,.nav-btn:active{transform:scale(.94)}button:focus-visible{outline-offset:2px;outline:2px solid #fff}.physics-range{--range-progress:50%;appearance:none;cursor:pointer;background:0 0;width:100%;height:14px;display:block}.physics-range::-webkit-slider-runnable-track{background:linear-gradient(to right,#fff 0 var(--range-progress),#ffffff2e var(--range-progress)100%);border-radius:999px;height:3px}.physics-range::-webkit-slider-thumb{appearance:none;background:#fff;border-radius:50%;width:13px;height:13px;margin-top:-5px;box-shadow:0 1px 4px #0006}.physics-range::-moz-range-track{background:#ffffff2e;border-radius:999px;height:3px}.physics-range::-moz-range-progress{background:#fff;border-radius:999px;height:3px}.physics-range::-moz-range-thumb{background:#fff;border:0;border-radius:50%;width:12px;height:12px}.physics-range:focus-visible{outline-offset:3px;border-radius:999px;outline:2px solid #fff}@media(prefers-reduced-motion:reduce){.ai-agent-title{animation:none}}@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-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{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:"<percentage>";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:"<percentage>";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:"<length>";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-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:"<percentage>";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}</style>
</head>
<body>
<div id="root"></div>
</body>
</html>
|