@openloaf/openspeech-frontend 0.2.33 → 0.2.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +0,0 @@
1
- function Z1(i,l){for(var u=0;u<l.length;u++){const o=l[u];if(typeof o!="string"&&!Array.isArray(o)){for(const c in o)if(c!=="default"&&!(c in i)){const d=Object.getOwnPropertyDescriptor(o,c);d&&Object.defineProperty(i,c,d.get?d:{enumerable:!0,get:()=>o[c]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))o(c);new MutationObserver(c=>{for(const d of c)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&o(h)}).observe(document,{childList:!0,subtree:!0});function u(c){const d={};return c.integrity&&(d.integrity=c.integrity),c.referrerPolicy&&(d.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?d.credentials="include":c.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function o(c){if(c.ep)return;c.ep=!0;const d=u(c);fetch(c.href,d)}})();var rE=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function By(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Ur={exports:{}},sl={};var sp;function Q1(){if(sp)return sl;sp=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function u(o,c,d){var h=null;if(d!==void 0&&(h=""+d),c.key!==void 0&&(h=""+c.key),"key"in c){d={};for(var p in c)p!=="key"&&(d[p]=c[p])}else d=c;return c=d.ref,{$$typeof:i,type:o,key:h,ref:c!==void 0?c:null,props:d}}return sl.Fragment=l,sl.jsx=u,sl.jsxs=u,sl}var up;function K1(){return up||(up=1,Ur.exports=Q1()),Ur.exports}var vn=K1(),Br={exports:{}},it={};var op;function J1(){if(op)return it;op=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),b=Symbol.iterator;function z(E){return E===null||typeof E!="object"?null:(E=b&&E[b]||E["@@iterator"],typeof E=="function"?E:null)}var V={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,L={};function j(E,N,Z){this.props=E,this.context=N,this.refs=L,this.updater=Z||V}j.prototype.isReactComponent={},j.prototype.setState=function(E,N){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,N,"setState")},j.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function q(){}q.prototype=j.prototype;function H(E,N,Z){this.props=E,this.context=N,this.refs=L,this.updater=Z||V}var Y=H.prototype=new q;Y.constructor=H,w(Y,j.prototype),Y.isPureReactComponent=!0;var P=Array.isArray;function ot(){}var tt={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function nt(E,N,Z){var k=Z.ref;return{$$typeof:i,type:E,key:N,ref:k!==void 0?k:null,props:Z}}function $(E,N){return nt(E.type,N,E.props)}function mt(E){return typeof E=="object"&&E!==null&&E.$$typeof===i}function gt(E){var N={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(Z){return N[Z]})}var Wt=/\/+/g;function Yt(E,N){return typeof E=="object"&&E!==null&&E.key!=null?gt(""+E.key):N.toString(36)}function wt(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(ot,ot):(E.status="pending",E.then(function(N){E.status==="pending"&&(E.status="fulfilled",E.value=N)},function(N){E.status==="pending"&&(E.status="rejected",E.reason=N)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function O(E,N,Z,k,at){var rt=typeof E;(rt==="undefined"||rt==="boolean")&&(E=null);var bt=!1;if(E===null)bt=!0;else switch(rt){case"bigint":case"string":case"number":bt=!0;break;case"object":switch(E.$$typeof){case i:case l:bt=!0;break;case v:return bt=E._init,O(bt(E._payload),N,Z,k,at)}}if(bt)return at=at(E),bt=k===""?"."+Yt(E,0):k,P(at)?(Z="",bt!=null&&(Z=bt.replace(Wt,"$&/")+"/"),O(at,N,Z,"",function(da){return da})):at!=null&&(mt(at)&&(at=$(at,Z+(at.key==null||E&&E.key===at.key?"":(""+at.key).replace(Wt,"$&/")+"/")+bt)),N.push(at)),1;bt=0;var le=k===""?".":k+":";if(P(E))for(var Lt=0;Lt<E.length;Lt++)k=E[Lt],rt=le+Yt(k,Lt),bt+=O(k,N,Z,rt,at);else if(Lt=z(E),typeof Lt=="function")for(E=Lt.call(E),Lt=0;!(k=E.next()).done;)k=k.value,rt=le+Yt(k,Lt++),bt+=O(k,N,Z,rt,at);else if(rt==="object"){if(typeof E.then=="function")return O(wt(E),N,Z,k,at);throw N=String(E),Error("Objects are not valid as a React child (found: "+(N==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":N)+"). If you meant to render a collection of children, use an array instead.")}return bt}function G(E,N,Z){if(E==null)return E;var k=[],at=0;return O(E,k,"","",function(rt){return N.call(Z,rt,at++)}),k}function Q(E){if(E._status===-1){var N=E._result;N=N(),N.then(function(Z){(E._status===0||E._status===-1)&&(E._status=1,E._result=Z)},function(Z){(E._status===0||E._status===-1)&&(E._status=2,E._result=Z)}),E._status===-1&&(E._status=0,E._result=N)}if(E._status===1)return E._result.default;throw E._result}var st=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var N=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(N))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},pt={map:G,forEach:function(E,N,Z){G(E,function(){N.apply(this,arguments)},Z)},count:function(E){var N=0;return G(E,function(){N++}),N},toArray:function(E){return G(E,function(N){return N})||[]},only:function(E){if(!mt(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return it.Activity=S,it.Children=pt,it.Component=j,it.Fragment=u,it.Profiler=c,it.PureComponent=H,it.StrictMode=o,it.Suspense=g,it.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=tt,it.__COMPILER_RUNTIME={__proto__:null,c:function(E){return tt.H.useMemoCache(E)}},it.cache=function(E){return function(){return E.apply(null,arguments)}},it.cacheSignal=function(){return null},it.cloneElement=function(E,N,Z){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var k=w({},E.props),at=E.key;if(N!=null)for(rt in N.key!==void 0&&(at=""+N.key),N)!W.call(N,rt)||rt==="key"||rt==="__self"||rt==="__source"||rt==="ref"&&N.ref===void 0||(k[rt]=N[rt]);var rt=arguments.length-2;if(rt===1)k.children=Z;else if(1<rt){for(var bt=Array(rt),le=0;le<rt;le++)bt[le]=arguments[le+2];k.children=bt}return nt(E.type,at,k)},it.createContext=function(E){return E={$$typeof:h,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:d,_context:E},E},it.createElement=function(E,N,Z){var k,at={},rt=null;if(N!=null)for(k in N.key!==void 0&&(rt=""+N.key),N)W.call(N,k)&&k!=="key"&&k!=="__self"&&k!=="__source"&&(at[k]=N[k]);var bt=arguments.length-2;if(bt===1)at.children=Z;else if(1<bt){for(var le=Array(bt),Lt=0;Lt<bt;Lt++)le[Lt]=arguments[Lt+2];at.children=le}if(E&&E.defaultProps)for(k in bt=E.defaultProps,bt)at[k]===void 0&&(at[k]=bt[k]);return nt(E,rt,at)},it.createRef=function(){return{current:null}},it.forwardRef=function(E){return{$$typeof:p,render:E}},it.isValidElement=mt,it.lazy=function(E){return{$$typeof:v,_payload:{_status:-1,_result:E},_init:Q}},it.memo=function(E,N){return{$$typeof:m,type:E,compare:N===void 0?null:N}},it.startTransition=function(E){var N=tt.T,Z={};tt.T=Z;try{var k=E(),at=tt.S;at!==null&&at(Z,k),typeof k=="object"&&k!==null&&typeof k.then=="function"&&k.then(ot,st)}catch(rt){st(rt)}finally{N!==null&&Z.types!==null&&(N.types=Z.types),tt.T=N}},it.unstable_useCacheRefresh=function(){return tt.H.useCacheRefresh()},it.use=function(E){return tt.H.use(E)},it.useActionState=function(E,N,Z){return tt.H.useActionState(E,N,Z)},it.useCallback=function(E,N){return tt.H.useCallback(E,N)},it.useContext=function(E){return tt.H.useContext(E)},it.useDebugValue=function(){},it.useDeferredValue=function(E,N){return tt.H.useDeferredValue(E,N)},it.useEffect=function(E,N){return tt.H.useEffect(E,N)},it.useEffectEvent=function(E){return tt.H.useEffectEvent(E)},it.useId=function(){return tt.H.useId()},it.useImperativeHandle=function(E,N,Z){return tt.H.useImperativeHandle(E,N,Z)},it.useInsertionEffect=function(E,N){return tt.H.useInsertionEffect(E,N)},it.useLayoutEffect=function(E,N){return tt.H.useLayoutEffect(E,N)},it.useMemo=function(E,N){return tt.H.useMemo(E,N)},it.useOptimistic=function(E,N){return tt.H.useOptimistic(E,N)},it.useReducer=function(E,N,Z){return tt.H.useReducer(E,N,Z)},it.useRef=function(E){return tt.H.useRef(E)},it.useState=function(E){return tt.H.useState(E)},it.useSyncExternalStore=function(E,N,Z){return tt.H.useSyncExternalStore(E,N,Z)},it.useTransition=function(){return tt.H.useTransition()},it.version="19.2.5",it}var rp;function xc(){return rp||(rp=1,Br.exports=J1()),Br.exports}var X=xc();const k1=By(X),cE=Z1({__proto__:null,default:k1},[X]);var Nr={exports:{}},ul={},wr={exports:{}},Lr={};var cp;function F1(){return cp||(cp=1,(function(i){function l(O,G){var Q=O.length;O.push(G);t:for(;0<Q;){var st=Q-1>>>1,pt=O[st];if(0<c(pt,G))O[st]=G,O[Q]=pt,Q=st;else break t}}function u(O){return O.length===0?null:O[0]}function o(O){if(O.length===0)return null;var G=O[0],Q=O.pop();if(Q!==G){O[0]=Q;t:for(var st=0,pt=O.length,E=pt>>>1;st<E;){var N=2*(st+1)-1,Z=O[N],k=N+1,at=O[k];if(0>c(Z,Q))k<pt&&0>c(at,Z)?(O[st]=at,O[k]=Q,st=k):(O[st]=Z,O[N]=Q,st=N);else if(k<pt&&0>c(at,Q))O[st]=at,O[k]=Q,st=k;else break t}}return G}function c(O,G){var Q=O.sortIndex-G.sortIndex;return Q!==0?Q:O.id-G.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;i.unstable_now=function(){return d.now()}}else{var h=Date,p=h.now();i.unstable_now=function(){return h.now()-p}}var g=[],m=[],v=1,S=null,b=3,z=!1,V=!1,w=!1,L=!1,j=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;function Y(O){for(var G=u(m);G!==null;){if(G.callback===null)o(m);else if(G.startTime<=O)o(m),G.sortIndex=G.expirationTime,l(g,G);else break;G=u(m)}}function P(O){if(w=!1,Y(O),!V)if(u(g)!==null)V=!0,ot||(ot=!0,gt());else{var G=u(m);G!==null&&wt(P,G.startTime-O)}}var ot=!1,tt=-1,W=5,nt=-1;function $(){return L?!0:!(i.unstable_now()-nt<W)}function mt(){if(L=!1,ot){var O=i.unstable_now();nt=O;var G=!0;try{t:{V=!1,w&&(w=!1,q(tt),tt=-1),z=!0;var Q=b;try{e:{for(Y(O),S=u(g);S!==null&&!(S.expirationTime>O&&$());){var st=S.callback;if(typeof st=="function"){S.callback=null,b=S.priorityLevel;var pt=st(S.expirationTime<=O);if(O=i.unstable_now(),typeof pt=="function"){S.callback=pt,Y(O),G=!0;break e}S===u(g)&&o(g),Y(O)}else o(g);S=u(g)}if(S!==null)G=!0;else{var E=u(m);E!==null&&wt(P,E.startTime-O),G=!1}}break t}finally{S=null,b=Q,z=!1}G=void 0}}finally{G?gt():ot=!1}}}var gt;if(typeof H=="function")gt=function(){H(mt)};else if(typeof MessageChannel<"u"){var Wt=new MessageChannel,Yt=Wt.port2;Wt.port1.onmessage=mt,gt=function(){Yt.postMessage(null)}}else gt=function(){j(mt,0)};function wt(O,G){tt=j(function(){O(i.unstable_now())},G)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(O){O.callback=null},i.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<O?Math.floor(1e3/O):5},i.unstable_getCurrentPriorityLevel=function(){return b},i.unstable_next=function(O){switch(b){case 1:case 2:case 3:var G=3;break;default:G=b}var Q=b;b=G;try{return O()}finally{b=Q}},i.unstable_requestPaint=function(){L=!0},i.unstable_runWithPriority=function(O,G){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var Q=b;b=O;try{return G()}finally{b=Q}},i.unstable_scheduleCallback=function(O,G,Q){var st=i.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?st+Q:st):Q=st,O){case 1:var pt=-1;break;case 2:pt=250;break;case 5:pt=1073741823;break;case 4:pt=1e4;break;default:pt=5e3}return pt=Q+pt,O={id:v++,callback:G,priorityLevel:O,startTime:Q,expirationTime:pt,sortIndex:-1},Q>st?(O.sortIndex=Q,l(m,O),u(g)===null&&O===u(m)&&(w?(q(tt),tt=-1):w=!0,wt(P,Q-st))):(O.sortIndex=pt,l(g,O),V||z||(V=!0,ot||(ot=!0,gt()))),O},i.unstable_shouldYield=$,i.unstable_wrapCallback=function(O){var G=b;return function(){var Q=b;b=G;try{return O.apply(this,arguments)}finally{b=Q}}}})(Lr)),Lr}var fp;function W1(){return fp||(fp=1,wr.exports=F1()),wr.exports}var jr={exports:{}},ae={};var hp;function P1(){if(hp)return ae;hp=1;var i=xc();function l(g){var m="https://react.dev/errors/"+g;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)m+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+g+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var o={d:{f:u,r:function(){throw Error(l(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},c=Symbol.for("react.portal");function d(g,m,v){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:S==null?null:""+S,children:g,containerInfo:m,implementation:v}}var h=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(g,m){if(g==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return ae.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,ae.createPortal=function(g,m){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(l(299));return d(g,m,null,v)},ae.flushSync=function(g){var m=h.T,v=o.p;try{if(h.T=null,o.p=2,g)return g()}finally{h.T=m,o.p=v,o.d.f()}},ae.preconnect=function(g,m){typeof g=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,o.d.C(g,m))},ae.prefetchDNS=function(g){typeof g=="string"&&o.d.D(g)},ae.preinit=function(g,m){if(typeof g=="string"&&m&&typeof m.as=="string"){var v=m.as,S=p(v,m.crossOrigin),b=typeof m.integrity=="string"?m.integrity:void 0,z=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;v==="style"?o.d.S(g,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:S,integrity:b,fetchPriority:z}):v==="script"&&o.d.X(g,{crossOrigin:S,integrity:b,fetchPriority:z,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},ae.preinitModule=function(g,m){if(typeof g=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var v=p(m.as,m.crossOrigin);o.d.M(g,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&o.d.M(g)},ae.preload=function(g,m){if(typeof g=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var v=m.as,S=p(v,m.crossOrigin);o.d.L(g,v,{crossOrigin:S,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},ae.preloadModule=function(g,m){if(typeof g=="string")if(m){var v=p(m.as,m.crossOrigin);o.d.m(g,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else o.d.m(g)},ae.requestFormReset=function(g){o.d.r(g)},ae.unstable_batchedUpdates=function(g,m){return g(m)},ae.useFormState=function(g,m,v){return h.H.useFormState(g,m,v)},ae.useFormStatus=function(){return h.H.useHostTransitionStatus()},ae.version="19.2.5",ae}var dp;function $1(){if(dp)return jr.exports;dp=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(),jr.exports=P1(),jr.exports}var mp;function I1(){if(mp)return ul;mp=1;var i=W1(),l=xc(),u=$1();function o(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 d(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 h(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 p(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(d(t)!==t)throw Error(o(188))}function m(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(o(188));return e!==t?null:t}for(var n=t,a=e;;){var s=n.return;if(s===null)break;var r=s.alternate;if(r===null){if(a=s.return,a!==null){n=a;continue}break}if(s.child===r.child){for(r=s.child;r;){if(r===n)return g(s),t;if(r===a)return g(s),e;r=r.sibling}throw Error(o(188))}if(n.return!==a.return)n=s,a=r;else{for(var f=!1,y=s.child;y;){if(y===n){f=!0,n=s,a=r;break}if(y===a){f=!0,a=s,n=r;break}y=y.sibling}if(!f){for(y=r.child;y;){if(y===n){f=!0,n=r,a=s;break}if(y===a){f=!0,a=r,n=s;break}y=y.sibling}if(!f)throw Error(o(189))}}if(n.alternate!==a)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?t:e}function v(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=v(t),e!==null)return e;t=t.sibling}return null}var S=Object.assign,b=Symbol.for("react.element"),z=Symbol.for("react.transitional.element"),V=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),H=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),ot=Symbol.for("react.suspense_list"),tt=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),nt=Symbol.for("react.activity"),$=Symbol.for("react.memo_cache_sentinel"),mt=Symbol.iterator;function gt(t){return t===null||typeof t!="object"?null:(t=mt&&t[mt]||t["@@iterator"],typeof t=="function"?t:null)}var Wt=Symbol.for("react.client.reference");function Yt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Wt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case w:return"Fragment";case j:return"Profiler";case L:return"StrictMode";case P:return"Suspense";case ot:return"SuspenseList";case nt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case V:return"Portal";case H:return t.displayName||"Context";case q:return(t._context.displayName||"Context")+".Consumer";case Y:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case tt:return e=t.displayName||null,e!==null?e:Yt(t.type)||"Memo";case W:e=t._payload,t=t._init;try{return Yt(t(e))}catch{}}return null}var wt=Array.isArray,O=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},st=[],pt=-1;function E(t){return{current:t}}function N(t){0>pt||(t.current=st[pt],st[pt]=null,pt--)}function Z(t,e){pt++,st[pt]=t.current,t.current=e}var k=E(null),at=E(null),rt=E(null),bt=E(null);function le(t,e){switch(Z(rt,e),Z(at,t),Z(k,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Rm(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Rm(e),t=Om(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}N(k),Z(k,t)}function Lt(){N(k),N(at),N(rt)}function da(t){t.memoizedState!==null&&Z(bt,t);var e=k.current,n=Om(e,t.type);e!==n&&(Z(at,t),Z(k,n))}function Al(t){at.current===t&&(N(k),N(at)),bt.current===t&&(N(bt),nl._currentValue=Q)}var mu,lf;function Fn(t){if(mu===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);mu=e&&e[1]||"",lf=-1<n.stack.indexOf(`
2
- at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+mu+t+lf}var pu=!1;function yu(t,e){if(!t||pu)return"";pu=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(R){var C=R}Reflect.construct(t,[],B)}else{try{B.call()}catch(R){C=R}t.call(B.prototype)}}else{try{throw Error()}catch(R){C=R}(B=t())&&typeof B.catch=="function"&&B.catch(function(){})}}catch(R){if(R&&C&&typeof R.stack=="string")return[R.stack,C.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=a.DetermineComponentFrameRoot(),f=r[0],y=r[1];if(f&&y){var T=f.split(`
4
- `),x=y.split(`
5
- `);for(s=a=0;a<T.length&&!T[a].includes("DetermineComponentFrameRoot");)a++;for(;s<x.length&&!x[s].includes("DetermineComponentFrameRoot");)s++;if(a===T.length||s===x.length)for(a=T.length-1,s=x.length-1;1<=a&&0<=s&&T[a]!==x[s];)s--;for(;1<=a&&0<=s;a--,s--)if(T[a]!==x[s]){if(a!==1||s!==1)do if(a--,s--,0>s||T[a]!==x[s]){var _=`
6
- `+T[a].replace(" at new "," at ");return t.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",t.displayName)),_}while(1<=a&&0<=s);break}}}finally{pu=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Fn(n):""}function b0(t,e){switch(t.tag){case 26:case 27:case 5:return Fn(t.type);case 16:return Fn("Lazy");case 13:return t.child!==e&&e!==null?Fn("Suspense Fallback"):Fn("Suspense");case 19:return Fn("SuspenseList");case 0:case 15:return yu(t.type,!1);case 11:return yu(t.type.render,!1);case 1:return yu(t.type,!0);case 31:return Fn("Activity");default:return""}}function sf(t){try{var e="",n=null;do e+=b0(t,n),n=t,t=t.return;while(t);return e}catch(a){return`
7
- Error generating stack: `+a.message+`
8
- `+a.stack}}var gu=Object.prototype.hasOwnProperty,vu=i.unstable_scheduleCallback,Su=i.unstable_cancelCallback,A0=i.unstable_shouldYield,E0=i.unstable_requestPaint,ye=i.unstable_now,M0=i.unstable_getCurrentPriorityLevel,uf=i.unstable_ImmediatePriority,of=i.unstable_UserBlockingPriority,El=i.unstable_NormalPriority,D0=i.unstable_LowPriority,rf=i.unstable_IdlePriority,x0=i.log,C0=i.unstable_setDisableYieldValue,ma=null,ge=null;function Sn(t){if(typeof x0=="function"&&C0(t),ge&&typeof ge.setStrictMode=="function")try{ge.setStrictMode(ma,t)}catch{}}var ve=Math.clz32?Math.clz32:O0,z0=Math.log,R0=Math.LN2;function O0(t){return t>>>=0,t===0?32:31-(z0(t)/R0|0)|0}var Ml=256,Dl=262144,xl=4194304;function Wn(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 Cl(t,e,n){var a=t.pendingLanes;if(a===0)return 0;var s=0,r=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var y=a&134217727;return y!==0?(a=y&~r,a!==0?s=Wn(a):(f&=y,f!==0?s=Wn(f):n||(n=y&~t,n!==0&&(s=Wn(n))))):(y=a&~r,y!==0?s=Wn(y):f!==0?s=Wn(f):n||(n=a&~t,n!==0&&(s=Wn(n)))),s===0?0:e!==0&&e!==s&&(e&r)===0&&(r=s&-s,n=e&-e,r>=n||r===32&&(n&4194048)!==0)?e:s}function pa(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function V0(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 cf(){var t=xl;return xl<<=1,(xl&62914560)===0&&(xl=4194304),t}function Tu(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function ya(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function _0(t,e,n,a,s,r){var f=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var y=t.entanglements,T=t.expirationTimes,x=t.hiddenUpdates;for(n=f&~n;0<n;){var _=31-ve(n),B=1<<_;y[_]=0,T[_]=-1;var C=x[_];if(C!==null)for(x[_]=null,_=0;_<C.length;_++){var R=C[_];R!==null&&(R.lane&=-536870913)}n&=~B}a!==0&&ff(t,a,0),r!==0&&s===0&&t.tag!==0&&(t.suspendedLanes|=r&~(f&~e))}function ff(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-ve(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|n&261930}function hf(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var a=31-ve(n),s=1<<a;s&e|t[a]&e&&(t[a]|=e),n&=~s}}function df(t,e){var n=e&-e;return n=(n&42)!==0?1:bu(n),(n&(t.suspendedLanes|e))!==0?0:n}function bu(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 Au(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function mf(){var t=G.p;return t!==0?t:(t=window.event,t===void 0?32:Im(t.type))}function pf(t,e){var n=G.p;try{return G.p=t,e()}finally{G.p=n}}var Tn=Math.random().toString(36).slice(2),Pt="__reactFiber$"+Tn,re="__reactProps$"+Tn,Ti="__reactContainer$"+Tn,Eu="__reactEvents$"+Tn,U0="__reactListeners$"+Tn,B0="__reactHandles$"+Tn,yf="__reactResources$"+Tn,ga="__reactMarker$"+Tn;function Mu(t){delete t[Pt],delete t[re],delete t[Eu],delete t[U0],delete t[B0]}function bi(t){var e=t[Pt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Ti]||n[Pt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Lm(t);t!==null;){if(n=t[Pt])return n;t=Lm(t)}return e}t=n,n=t.parentNode}return null}function Ai(t){if(t=t[Pt]||t[Ti]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function va(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(o(33))}function Ei(t){var e=t[yf];return e||(e=t[yf]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function kt(t){t[ga]=!0}var gf=new Set,vf={};function Pn(t,e){Mi(t,e),Mi(t+"Capture",e)}function Mi(t,e){for(vf[t]=e,t=0;t<e.length;t++)gf.add(e[t])}var N0=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]*$"),Sf={},Tf={};function w0(t){return gu.call(Tf,t)?!0:gu.call(Sf,t)?!1:N0.test(t)?Tf[t]=!0:(Sf[t]=!0,!1)}function zl(t,e,n){if(w0(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 Rl(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 Ie(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 Ce(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function bf(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function L0(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 s=a.get,r=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(f){n=""+f,r.call(this,f)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Du(t){if(!t._valueTracker){var e=bf(t)?"checked":"value";t._valueTracker=L0(t,e,""+t[e])}}function Af(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),a="";return t&&(a=bf(t)?t.checked?"true":"false":t.value),t=a,t!==n?(e.setValue(t),!0):!1}function Ol(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 j0=/[\n"\\]/g;function ze(t){return t.replace(j0,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function xu(t,e,n,a,s,r,f,y){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Ce(e)):t.value!==""+Ce(e)&&(t.value=""+Ce(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?Cu(t,f,Ce(e)):n!=null?Cu(t,f,Ce(n)):a!=null&&t.removeAttribute("value"),s==null&&r!=null&&(t.defaultChecked=!!r),s!=null&&(t.checked=s&&typeof s!="function"&&typeof s!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?t.name=""+Ce(y):t.removeAttribute("name")}function Ef(t,e,n,a,s,r,f,y){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(t.type=r),e!=null||n!=null){if(!(r!=="submit"&&r!=="reset"||e!=null)){Du(t);return}n=n!=null?""+Ce(n):"",e=e!=null?""+Ce(e):n,y||e===t.value||(t.value=e),t.defaultValue=e}a=a??s,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=y?t.checked:!!a,t.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f),Du(t)}function Cu(t,e,n){e==="number"&&Ol(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Di(t,e,n,a){if(t=t.options,e){e={};for(var s=0;s<n.length;s++)e["$"+n[s]]=!0;for(n=0;n<t.length;n++)s=e.hasOwnProperty("$"+t[n].value),t[n].selected!==s&&(t[n].selected=s),s&&a&&(t[n].defaultSelected=!0)}else{for(n=""+Ce(n),e=null,s=0;s<t.length;s++){if(t[s].value===n){t[s].selected=!0,a&&(t[s].defaultSelected=!0);return}e!==null||t[s].disabled||(e=t[s])}e!==null&&(e.selected=!0)}}function Mf(t,e,n){if(e!=null&&(e=""+Ce(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Ce(n):""}function Df(t,e,n,a){if(e==null){if(a!=null){if(n!=null)throw Error(o(92));if(wt(a)){if(1<a.length)throw Error(o(93));a=a[0]}n=a}n==null&&(n=""),e=n}n=Ce(e),t.defaultValue=n,a=t.textContent,a===n&&a!==""&&a!==null&&(t.value=a),Du(t)}function xi(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var H0=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 xf(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||H0.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Cf(t,e,n){if(e!=null&&typeof e!="object")throw Error(o(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 s in e)a=e[s],e.hasOwnProperty(s)&&n[s]!==a&&xf(t,s,a)}else for(var r in e)e.hasOwnProperty(r)&&xf(t,r,e[r])}function zu(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 Y0=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"]]),q0=/^[\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 Vl(t){return q0.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function tn(){}var Ru=null;function Ou(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ci=null,zi=null;function zf(t){var e=Ai(t);if(e&&(t=e.stateNode)){var n=t[re]||null;t:switch(t=e.stateNode,e.type){case"input":if(xu(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="'+ze(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var a=n[e];if(a!==t&&a.form===t.form){var s=a[re]||null;if(!s)throw Error(o(90));xu(a,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(e=0;e<n.length;e++)a=n[e],a.form===t.form&&Af(a)}break t;case"textarea":Mf(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Di(t,!!n.multiple,e,!1)}}}var Vu=!1;function Rf(t,e,n){if(Vu)return t(e,n);Vu=!0;try{var a=t(e);return a}finally{if(Vu=!1,(Ci!==null||zi!==null)&&(vs(),Ci&&(e=Ci,t=zi,zi=Ci=null,zf(e),t)))for(e=0;e<t.length;e++)zf(t[e])}}function Sa(t,e){var n=t.stateNode;if(n===null)return null;var a=n[re]||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(o(231,e,typeof n));return n}var en=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_u=!1;if(en)try{var Ta={};Object.defineProperty(Ta,"passive",{get:function(){_u=!0}}),window.addEventListener("test",Ta,Ta),window.removeEventListener("test",Ta,Ta)}catch{_u=!1}var bn=null,Uu=null,_l=null;function Of(){if(_l)return _l;var t,e=Uu,n=e.length,a,s="value"in bn?bn.value:bn.textContent,r=s.length;for(t=0;t<n&&e[t]===s[t];t++);var f=n-t;for(a=1;a<=f&&e[n-a]===s[r-a];a++);return _l=s.slice(t,1<a?1-a:void 0)}function Ul(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 Bl(){return!0}function Vf(){return!1}function ce(t){function e(n,a,s,r,f){this._reactName=n,this._targetInst=s,this.type=a,this.nativeEvent=r,this.target=f,this.currentTarget=null;for(var y in t)t.hasOwnProperty(y)&&(n=t[y],this[y]=n?n(r):r[y]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?Bl:Vf,this.isPropagationStopped=Vf,this}return S(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=Bl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Bl)},persist:function(){},isPersistent:Bl}),e}var $n={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Nl=ce($n),ba=S({},$n,{view:0,detail:0}),G0=ce(ba),Bu,Nu,Aa,wl=S({},ba,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Lu,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!==Aa&&(Aa&&t.type==="mousemove"?(Bu=t.screenX-Aa.screenX,Nu=t.screenY-Aa.screenY):Nu=Bu=0,Aa=t),Bu)},movementY:function(t){return"movementY"in t?t.movementY:Nu}}),_f=ce(wl),X0=S({},wl,{dataTransfer:0}),Z0=ce(X0),Q0=S({},ba,{relatedTarget:0}),wu=ce(Q0),K0=S({},$n,{animationName:0,elapsedTime:0,pseudoElement:0}),J0=ce(K0),k0=S({},$n,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),F0=ce(k0),W0=S({},$n,{data:0}),Uf=ce(W0),P0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$0={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"},I0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function tv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=I0[t])?!!e[t]:!1}function Lu(){return tv}var ev=S({},ba,{key:function(t){if(t.key){var e=P0[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Ul(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?$0[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Lu,charCode:function(t){return t.type==="keypress"?Ul(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ul(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),nv=ce(ev),iv=S({},wl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Bf=ce(iv),av=S({},ba,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Lu}),lv=ce(av),sv=S({},$n,{propertyName:0,elapsedTime:0,pseudoElement:0}),uv=ce(sv),ov=S({},wl,{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}),rv=ce(ov),cv=S({},$n,{newState:0,oldState:0}),fv=ce(cv),hv=[9,13,27,32],ju=en&&"CompositionEvent"in window,Ea=null;en&&"documentMode"in document&&(Ea=document.documentMode);var dv=en&&"TextEvent"in window&&!Ea,Nf=en&&(!ju||Ea&&8<Ea&&11>=Ea),wf=" ",Lf=!1;function jf(t,e){switch(t){case"keyup":return hv.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hf(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ri=!1;function mv(t,e){switch(t){case"compositionend":return Hf(e);case"keypress":return e.which!==32?null:(Lf=!0,wf);case"textInput":return t=e.data,t===wf&&Lf?null:t;default:return null}}function pv(t,e){if(Ri)return t==="compositionend"||!ju&&jf(t,e)?(t=Of(),_l=Uu=bn=null,Ri=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Nf&&e.locale!=="ko"?null:e.data;default:return null}}var yv={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 Yf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!yv[t.type]:e==="textarea"}function qf(t,e,n,a){Ci?zi?zi.push(a):zi=[a]:Ci=a,e=Ds(e,"onChange"),0<e.length&&(n=new Nl("onChange","change",null,n,a),t.push({event:n,listeners:e}))}var Ma=null,Da=null;function gv(t){Em(t,0)}function Ll(t){var e=va(t);if(Af(e))return t}function Gf(t,e){if(t==="change")return e}var Xf=!1;if(en){var Hu;if(en){var Yu="oninput"in document;if(!Yu){var Zf=document.createElement("div");Zf.setAttribute("oninput","return;"),Yu=typeof Zf.oninput=="function"}Hu=Yu}else Hu=!1;Xf=Hu&&(!document.documentMode||9<document.documentMode)}function Qf(){Ma&&(Ma.detachEvent("onpropertychange",Kf),Da=Ma=null)}function Kf(t){if(t.propertyName==="value"&&Ll(Da)){var e=[];qf(e,Da,t,Ou(t)),Rf(gv,e)}}function vv(t,e,n){t==="focusin"?(Qf(),Ma=e,Da=n,Ma.attachEvent("onpropertychange",Kf)):t==="focusout"&&Qf()}function Sv(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ll(Da)}function Tv(t,e){if(t==="click")return Ll(e)}function bv(t,e){if(t==="input"||t==="change")return Ll(e)}function Av(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Se=typeof Object.is=="function"?Object.is:Av;function xa(t,e){if(Se(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 s=n[a];if(!gu.call(e,s)||!Se(t[s],e[s]))return!1}return!0}function Jf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function kf(t,e){var n=Jf(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=Jf(n)}}function Ff(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Ff(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Wf(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Ol(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=Ol(t.document)}return e}function qu(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 Ev=en&&"documentMode"in document&&11>=document.documentMode,Oi=null,Gu=null,Ca=null,Xu=!1;function Pf(t,e,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Xu||Oi==null||Oi!==Ol(a)||(a=Oi,"selectionStart"in a&&qu(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}),Ca&&xa(Ca,a)||(Ca=a,a=Ds(Gu,"onSelect"),0<a.length&&(e=new Nl("onSelect","select",null,e,n),t.push({event:e,listeners:a}),e.target=Oi)))}function In(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Vi={animationend:In("Animation","AnimationEnd"),animationiteration:In("Animation","AnimationIteration"),animationstart:In("Animation","AnimationStart"),transitionrun:In("Transition","TransitionRun"),transitionstart:In("Transition","TransitionStart"),transitioncancel:In("Transition","TransitionCancel"),transitionend:In("Transition","TransitionEnd")},Zu={},$f={};en&&($f=document.createElement("div").style,"AnimationEvent"in window||(delete Vi.animationend.animation,delete Vi.animationiteration.animation,delete Vi.animationstart.animation),"TransitionEvent"in window||delete Vi.transitionend.transition);function ti(t){if(Zu[t])return Zu[t];if(!Vi[t])return t;var e=Vi[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in $f)return Zu[t]=e[n];return t}var If=ti("animationend"),th=ti("animationiteration"),eh=ti("animationstart"),Mv=ti("transitionrun"),Dv=ti("transitionstart"),xv=ti("transitioncancel"),nh=ti("transitionend"),ih=new Map,Qu="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(" ");Qu.push("scrollEnd");function He(t,e){ih.set(t,e),Pn(e,[t])}var jl=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)},Re=[],_i=0,Ku=0;function Hl(){for(var t=_i,e=Ku=_i=0;e<t;){var n=Re[e];Re[e++]=null;var a=Re[e];Re[e++]=null;var s=Re[e];Re[e++]=null;var r=Re[e];if(Re[e++]=null,a!==null&&s!==null){var f=a.pending;f===null?s.next=s:(s.next=f.next,f.next=s),a.pending=s}r!==0&&ah(n,s,r)}}function Yl(t,e,n,a){Re[_i++]=t,Re[_i++]=e,Re[_i++]=n,Re[_i++]=a,Ku|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function Ju(t,e,n,a){return Yl(t,e,n,a),ql(t)}function ei(t,e){return Yl(t,null,null,e),ql(t)}function ah(t,e,n){t.lanes|=n;var a=t.alternate;a!==null&&(a.lanes|=n);for(var s=!1,r=t.return;r!==null;)r.childLanes|=n,a=r.alternate,a!==null&&(a.childLanes|=n),r.tag===22&&(t=r.stateNode,t===null||t._visibility&1||(s=!0)),t=r,r=r.return;return t.tag===3?(r=t.stateNode,s&&e!==null&&(s=31-ve(n),t=r.hiddenUpdates,a=t[s],a===null?t[s]=[e]:a.push(e),e.lane=n|536870912),r):null}function ql(t){if(50<Fa)throw Fa=0,ir=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Ui={};function Cv(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 Te(t,e,n,a){return new Cv(t,e,n,a)}function ku(t){return t=t.prototype,!(!t||!t.isReactComponent)}function nn(t,e){var n=t.alternate;return n===null?(n=Te(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 lh(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 Gl(t,e,n,a,s,r){var f=0;if(a=t,typeof t=="function")ku(t)&&(f=1);else if(typeof t=="string")f=_1(t,n,k.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case nt:return t=Te(31,n,e,s),t.elementType=nt,t.lanes=r,t;case w:return ni(n.children,s,r,e);case L:f=8,s|=24;break;case j:return t=Te(12,n,e,s|2),t.elementType=j,t.lanes=r,t;case P:return t=Te(13,n,e,s),t.elementType=P,t.lanes=r,t;case ot:return t=Te(19,n,e,s),t.elementType=ot,t.lanes=r,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case H:f=10;break t;case q:f=9;break t;case Y:f=11;break t;case tt:f=14;break t;case W:f=16,a=null;break t}f=29,n=Error(o(130,t===null?"null":typeof t,"")),a=null}return e=Te(f,n,e,s),e.elementType=t,e.type=a,e.lanes=r,e}function ni(t,e,n,a){return t=Te(7,t,a,e),t.lanes=n,t}function Fu(t,e,n){return t=Te(6,t,null,e),t.lanes=n,t}function sh(t){var e=Te(18,null,null,0);return e.stateNode=t,e}function Wu(t,e,n){return e=Te(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var uh=new WeakMap;function Oe(t,e){if(typeof t=="object"&&t!==null){var n=uh.get(t);return n!==void 0?n:(e={value:t,source:e,stack:sf(e)},uh.set(t,e),e)}return{value:t,source:e,stack:sf(e)}}var Bi=[],Ni=0,Xl=null,za=0,Ve=[],_e=0,An=null,Qe=1,Ke="";function an(t,e){Bi[Ni++]=za,Bi[Ni++]=Xl,Xl=t,za=e}function oh(t,e,n){Ve[_e++]=Qe,Ve[_e++]=Ke,Ve[_e++]=An,An=t;var a=Qe;t=Ke;var s=32-ve(a)-1;a&=~(1<<s),n+=1;var r=32-ve(e)+s;if(30<r){var f=s-s%5;r=(a&(1<<f)-1).toString(32),a>>=f,s-=f,Qe=1<<32-ve(e)+s|n<<s|a,Ke=r+t}else Qe=1<<r|n<<s|a,Ke=t}function Pu(t){t.return!==null&&(an(t,1),oh(t,1,0))}function $u(t){for(;t===Xl;)Xl=Bi[--Ni],Bi[Ni]=null,za=Bi[--Ni],Bi[Ni]=null;for(;t===An;)An=Ve[--_e],Ve[_e]=null,Ke=Ve[--_e],Ve[_e]=null,Qe=Ve[--_e],Ve[_e]=null}function rh(t,e){Ve[_e++]=Qe,Ve[_e++]=Ke,Ve[_e++]=An,Qe=e.id,Ke=e.overflow,An=t}var $t=null,Rt=null,yt=!1,En=null,Ue=!1,Iu=Error(o(519));function Mn(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ra(Oe(e,t)),Iu}function ch(t){var e=t.stateNode,n=t.type,a=t.memoizedProps;switch(e[Pt]=t,e[re]=a,n){case"dialog":ft("cancel",e),ft("close",e);break;case"iframe":case"object":case"embed":ft("load",e);break;case"video":case"audio":for(n=0;n<Pa.length;n++)ft(Pa[n],e);break;case"source":ft("error",e);break;case"img":case"image":case"link":ft("error",e),ft("load",e);break;case"details":ft("toggle",e);break;case"input":ft("invalid",e),Ef(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ft("invalid",e);break;case"textarea":ft("invalid",e),Df(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||Cm(e.textContent,n)?(a.popover!=null&&(ft("beforetoggle",e),ft("toggle",e)),a.onScroll!=null&&ft("scroll",e),a.onScrollEnd!=null&&ft("scrollend",e),a.onClick!=null&&(e.onclick=tn),e=!0):e=!1,e||Mn(t,!0)}function fh(t){for($t=t.return;$t;)switch($t.tag){case 5:case 31:case 13:Ue=!1;return;case 27:case 3:Ue=!0;return;default:$t=$t.return}}function wi(t){if(t!==$t)return!1;if(!yt)return fh(t),yt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||vr(t.type,t.memoizedProps)),n=!n),n&&Rt&&Mn(t),fh(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Rt=wm(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Rt=wm(t)}else e===27?(e=Rt,jn(t.type)?(t=Er,Er=null,Rt=t):Rt=e):Rt=$t?Ne(t.stateNode.nextSibling):null;return!0}function ii(){Rt=$t=null,yt=!1}function to(){var t=En;return t!==null&&(me===null?me=t:me.push.apply(me,t),En=null),t}function Ra(t){En===null?En=[t]:En.push(t)}var eo=E(null),ai=null,ln=null;function Dn(t,e,n){Z(eo,e._currentValue),e._currentValue=n}function sn(t){t._currentValue=eo.current,N(eo)}function no(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 io(t,e,n,a){var s=t.child;for(s!==null&&(s.return=t);s!==null;){var r=s.dependencies;if(r!==null){var f=s.child;r=r.firstContext;t:for(;r!==null;){var y=r;r=s;for(var T=0;T<e.length;T++)if(y.context===e[T]){r.lanes|=n,y=r.alternate,y!==null&&(y.lanes|=n),no(r.return,n,t),a||(f=null);break t}r=y.next}}else if(s.tag===18){if(f=s.return,f===null)throw Error(o(341));f.lanes|=n,r=f.alternate,r!==null&&(r.lanes|=n),no(f,n,t),f=null}else f=s.child;if(f!==null)f.return=s;else for(f=s;f!==null;){if(f===t){f=null;break}if(s=f.sibling,s!==null){s.return=f.return,f=s;break}f=f.return}s=f}}function Li(t,e,n,a){t=null;for(var s=e,r=!1;s!==null;){if(!r){if((s.flags&524288)!==0)r=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var f=s.alternate;if(f===null)throw Error(o(387));if(f=f.memoizedProps,f!==null){var y=s.type;Se(s.pendingProps.value,f.value)||(t!==null?t.push(y):t=[y])}}else if(s===bt.current){if(f=s.alternate,f===null)throw Error(o(387));f.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(t!==null?t.push(nl):t=[nl])}s=s.return}t!==null&&io(e,t,n,a),e.flags|=262144}function Zl(t){for(t=t.firstContext;t!==null;){if(!Se(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function li(t){ai=t,ln=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function It(t){return hh(ai,t)}function Ql(t,e){return ai===null&&li(t),hh(t,e)}function hh(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},ln===null){if(t===null)throw Error(o(308));ln=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else ln=ln.next=e;return n}var zv=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()})}},Rv=i.unstable_scheduleCallback,Ov=i.unstable_NormalPriority,qt={$$typeof:H,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ao(){return{controller:new zv,data:new Map,refCount:0}}function Oa(t){t.refCount--,t.refCount===0&&Rv(Ov,function(){t.controller.abort()})}var Va=null,lo=0,ji=0,Hi=null;function Vv(t,e){if(Va===null){var n=Va=[];lo=0,ji=rr(),Hi={status:"pending",value:void 0,then:function(a){n.push(a)}}}return lo++,e.then(dh,dh),e}function dh(){if(--lo===0&&Va!==null){Hi!==null&&(Hi.status="fulfilled");var t=Va;Va=null,ji=0,Hi=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function _v(t,e){var n=[],a={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var s=0;s<n.length;s++)(0,n[s])(e)},function(s){for(a.status="rejected",a.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),a}var mh=O.S;O.S=function(t,e){Pd=ye(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Vv(t,e),mh!==null&&mh(t,e)};var si=E(null);function so(){var t=si.current;return t!==null?t:Ct.pooledCache}function Kl(t,e){e===null?Z(si,si.current):Z(si,e.pool)}function ph(){var t=so();return t===null?null:{parent:qt._currentValue,pool:t}}var Yi=Error(o(460)),uo=Error(o(474)),Jl=Error(o(542)),kl={then:function(){}};function yh(t){return t=t.status,t==="fulfilled"||t==="rejected"}function gh(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(tn,tn),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Sh(t),t;default:if(typeof e.status=="string")e.then(tn,tn);else{if(t=Ct,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var s=e;s.status="fulfilled",s.value=a}},function(a){if(e.status==="pending"){var s=e;s.status="rejected",s.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Sh(t),t}throw oi=e,Yi}}function ui(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(oi=n,Yi):n}}var oi=null;function vh(){if(oi===null)throw Error(o(459));var t=oi;return oi=null,t}function Sh(t){if(t===Yi||t===Jl)throw Error(o(483))}var qi=null,_a=0;function Fl(t){var e=_a;return _a+=1,qi===null&&(qi=[]),gh(qi,t,e)}function Ua(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Wl(t,e){throw e.$$typeof===b?Error(o(525)):(t=Object.prototype.toString.call(e),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Th(t){function e(M,A){if(t){var D=M.deletions;D===null?(M.deletions=[A],M.flags|=16):D.push(A)}}function n(M,A){if(!t)return null;for(;A!==null;)e(M,A),A=A.sibling;return null}function a(M){for(var A=new Map;M!==null;)M.key!==null?A.set(M.key,M):A.set(M.index,M),M=M.sibling;return A}function s(M,A){return M=nn(M,A),M.index=0,M.sibling=null,M}function r(M,A,D){return M.index=D,t?(D=M.alternate,D!==null?(D=D.index,D<A?(M.flags|=67108866,A):D):(M.flags|=67108866,A)):(M.flags|=1048576,A)}function f(M){return t&&M.alternate===null&&(M.flags|=67108866),M}function y(M,A,D,U){return A===null||A.tag!==6?(A=Fu(D,M.mode,U),A.return=M,A):(A=s(A,D),A.return=M,A)}function T(M,A,D,U){var I=D.type;return I===w?_(M,A,D.props.children,U,D.key):A!==null&&(A.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===W&&ui(I)===A.type)?(A=s(A,D.props),Ua(A,D),A.return=M,A):(A=Gl(D.type,D.key,D.props,null,M.mode,U),Ua(A,D),A.return=M,A)}function x(M,A,D,U){return A===null||A.tag!==4||A.stateNode.containerInfo!==D.containerInfo||A.stateNode.implementation!==D.implementation?(A=Wu(D,M.mode,U),A.return=M,A):(A=s(A,D.children||[]),A.return=M,A)}function _(M,A,D,U,I){return A===null||A.tag!==7?(A=ni(D,M.mode,U,I),A.return=M,A):(A=s(A,D),A.return=M,A)}function B(M,A,D){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=Fu(""+A,M.mode,D),A.return=M,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case z:return D=Gl(A.type,A.key,A.props,null,M.mode,D),Ua(D,A),D.return=M,D;case V:return A=Wu(A,M.mode,D),A.return=M,A;case W:return A=ui(A),B(M,A,D)}if(wt(A)||gt(A))return A=ni(A,M.mode,D,null),A.return=M,A;if(typeof A.then=="function")return B(M,Fl(A),D);if(A.$$typeof===H)return B(M,Ql(M,A),D);Wl(M,A)}return null}function C(M,A,D,U){var I=A!==null?A.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return I!==null?null:y(M,A,""+D,U);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case z:return D.key===I?T(M,A,D,U):null;case V:return D.key===I?x(M,A,D,U):null;case W:return D=ui(D),C(M,A,D,U)}if(wt(D)||gt(D))return I!==null?null:_(M,A,D,U,null);if(typeof D.then=="function")return C(M,A,Fl(D),U);if(D.$$typeof===H)return C(M,A,Ql(M,D),U);Wl(M,D)}return null}function R(M,A,D,U,I){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return M=M.get(D)||null,y(A,M,""+U,I);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case z:return M=M.get(U.key===null?D:U.key)||null,T(A,M,U,I);case V:return M=M.get(U.key===null?D:U.key)||null,x(A,M,U,I);case W:return U=ui(U),R(M,A,D,U,I)}if(wt(U)||gt(U))return M=M.get(D)||null,_(A,M,U,I,null);if(typeof U.then=="function")return R(M,A,D,Fl(U),I);if(U.$$typeof===H)return R(M,A,D,Ql(A,U),I);Wl(A,U)}return null}function K(M,A,D,U){for(var I=null,vt=null,F=A,ut=A=0,dt=null;F!==null&&ut<D.length;ut++){F.index>ut?(dt=F,F=null):dt=F.sibling;var St=C(M,F,D[ut],U);if(St===null){F===null&&(F=dt);break}t&&F&&St.alternate===null&&e(M,F),A=r(St,A,ut),vt===null?I=St:vt.sibling=St,vt=St,F=dt}if(ut===D.length)return n(M,F),yt&&an(M,ut),I;if(F===null){for(;ut<D.length;ut++)F=B(M,D[ut],U),F!==null&&(A=r(F,A,ut),vt===null?I=F:vt.sibling=F,vt=F);return yt&&an(M,ut),I}for(F=a(F);ut<D.length;ut++)dt=R(F,M,ut,D[ut],U),dt!==null&&(t&&dt.alternate!==null&&F.delete(dt.key===null?ut:dt.key),A=r(dt,A,ut),vt===null?I=dt:vt.sibling=dt,vt=dt);return t&&F.forEach(function(Xn){return e(M,Xn)}),yt&&an(M,ut),I}function et(M,A,D,U){if(D==null)throw Error(o(151));for(var I=null,vt=null,F=A,ut=A=0,dt=null,St=D.next();F!==null&&!St.done;ut++,St=D.next()){F.index>ut?(dt=F,F=null):dt=F.sibling;var Xn=C(M,F,St.value,U);if(Xn===null){F===null&&(F=dt);break}t&&F&&Xn.alternate===null&&e(M,F),A=r(Xn,A,ut),vt===null?I=Xn:vt.sibling=Xn,vt=Xn,F=dt}if(St.done)return n(M,F),yt&&an(M,ut),I;if(F===null){for(;!St.done;ut++,St=D.next())St=B(M,St.value,U),St!==null&&(A=r(St,A,ut),vt===null?I=St:vt.sibling=St,vt=St);return yt&&an(M,ut),I}for(F=a(F);!St.done;ut++,St=D.next())St=R(F,M,ut,St.value,U),St!==null&&(t&&St.alternate!==null&&F.delete(St.key===null?ut:St.key),A=r(St,A,ut),vt===null?I=St:vt.sibling=St,vt=St);return t&&F.forEach(function(X1){return e(M,X1)}),yt&&an(M,ut),I}function xt(M,A,D,U){if(typeof D=="object"&&D!==null&&D.type===w&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case z:t:{for(var I=D.key;A!==null;){if(A.key===I){if(I=D.type,I===w){if(A.tag===7){n(M,A.sibling),U=s(A,D.props.children),U.return=M,M=U;break t}}else if(A.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===W&&ui(I)===A.type){n(M,A.sibling),U=s(A,D.props),Ua(U,D),U.return=M,M=U;break t}n(M,A);break}else e(M,A);A=A.sibling}D.type===w?(U=ni(D.props.children,M.mode,U,D.key),U.return=M,M=U):(U=Gl(D.type,D.key,D.props,null,M.mode,U),Ua(U,D),U.return=M,M=U)}return f(M);case V:t:{for(I=D.key;A!==null;){if(A.key===I)if(A.tag===4&&A.stateNode.containerInfo===D.containerInfo&&A.stateNode.implementation===D.implementation){n(M,A.sibling),U=s(A,D.children||[]),U.return=M,M=U;break t}else{n(M,A);break}else e(M,A);A=A.sibling}U=Wu(D,M.mode,U),U.return=M,M=U}return f(M);case W:return D=ui(D),xt(M,A,D,U)}if(wt(D))return K(M,A,D,U);if(gt(D)){if(I=gt(D),typeof I!="function")throw Error(o(150));return D=I.call(D),et(M,A,D,U)}if(typeof D.then=="function")return xt(M,A,Fl(D),U);if(D.$$typeof===H)return xt(M,A,Ql(M,D),U);Wl(M,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,A!==null&&A.tag===6?(n(M,A.sibling),U=s(A,D),U.return=M,M=U):(n(M,A),U=Fu(D,M.mode,U),U.return=M,M=U),f(M)):n(M,A)}return function(M,A,D,U){try{_a=0;var I=xt(M,A,D,U);return qi=null,I}catch(F){if(F===Yi||F===Jl)throw F;var vt=Te(29,F,null,M.mode);return vt.lanes=U,vt.return=M,vt}}}var ri=Th(!0),bh=Th(!1),xn=!1;function oo(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ro(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 Cn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function zn(t,e,n){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(Tt&2)!==0){var s=a.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),a.pending=e,e=ql(t),ah(t,null,n),e}return Yl(t,a,e,n),ql(t)}function Ba(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,hf(t,n)}}function co(t,e){var n=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var s=null,r=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};r===null?s=r=f:r=r.next=f,n=n.next}while(n!==null);r===null?s=r=e:r=r.next=e}else s=r=e;n={baseState:a.baseState,firstBaseUpdate:s,lastBaseUpdate:r,shared:a.shared,callbacks:a.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var fo=!1;function Na(){if(fo){var t=Hi;if(t!==null)throw t}}function wa(t,e,n,a){fo=!1;var s=t.updateQueue;xn=!1;var r=s.firstBaseUpdate,f=s.lastBaseUpdate,y=s.shared.pending;if(y!==null){s.shared.pending=null;var T=y,x=T.next;T.next=null,f===null?r=x:f.next=x,f=T;var _=t.alternate;_!==null&&(_=_.updateQueue,y=_.lastBaseUpdate,y!==f&&(y===null?_.firstBaseUpdate=x:y.next=x,_.lastBaseUpdate=T))}if(r!==null){var B=s.baseState;f=0,_=x=T=null,y=r;do{var C=y.lane&-536870913,R=C!==y.lane;if(R?(ht&C)===C:(a&C)===C){C!==0&&C===ji&&(fo=!0),_!==null&&(_=_.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});t:{var K=t,et=y;C=e;var xt=n;switch(et.tag){case 1:if(K=et.payload,typeof K=="function"){B=K.call(xt,B,C);break t}B=K;break t;case 3:K.flags=K.flags&-65537|128;case 0:if(K=et.payload,C=typeof K=="function"?K.call(xt,B,C):K,C==null)break t;B=S({},B,C);break t;case 2:xn=!0}}C=y.callback,C!==null&&(t.flags|=64,R&&(t.flags|=8192),R=s.callbacks,R===null?s.callbacks=[C]:R.push(C))}else R={lane:C,tag:y.tag,payload:y.payload,callback:y.callback,next:null},_===null?(x=_=R,T=B):_=_.next=R,f|=C;if(y=y.next,y===null){if(y=s.shared.pending,y===null)break;R=y,y=R.next,R.next=null,s.lastBaseUpdate=R,s.shared.pending=null}}while(!0);_===null&&(T=B),s.baseState=T,s.firstBaseUpdate=x,s.lastBaseUpdate=_,r===null&&(s.shared.lanes=0),Un|=f,t.lanes=f,t.memoizedState=B}}function Ah(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function Eh(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Ah(n[t],e)}var Gi=E(null),Pl=E(0);function Mh(t,e){t=pn,Z(Pl,t),Z(Gi,e),pn=t|e.baseLanes}function ho(){Z(Pl,pn),Z(Gi,Gi.current)}function mo(){pn=Pl.current,N(Gi),N(Pl)}var be=E(null),Be=null;function Rn(t){var e=t.alternate;Z(jt,jt.current&1),Z(be,t),Be===null&&(e===null||Gi.current!==null||e.memoizedState!==null)&&(Be=t)}function po(t){Z(jt,jt.current),Z(be,t),Be===null&&(Be=t)}function Dh(t){t.tag===22?(Z(jt,jt.current),Z(be,t),Be===null&&(Be=t)):On()}function On(){Z(jt,jt.current),Z(be,be.current)}function Ae(t){N(be),Be===t&&(Be=null),N(jt)}var jt=E(0);function $l(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||br(n)||Ar(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 un=0,lt=null,Mt=null,Gt=null,Il=!1,Xi=!1,ci=!1,ts=0,La=0,Zi=null,Uv=0;function Ut(){throw Error(o(321))}function yo(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Se(t[n],e[n]))return!1;return!0}function go(t,e,n,a,s,r){return un=r,lt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,O.H=t===null||t.memoizedState===null?od:_o,ci=!1,r=n(a,s),ci=!1,Xi&&(r=Ch(e,n,a,s)),xh(t),r}function xh(t){O.H=Ya;var e=Mt!==null&&Mt.next!==null;if(un=0,Gt=Mt=lt=null,Il=!1,La=0,Zi=null,e)throw Error(o(300));t===null||Xt||(t=t.dependencies,t!==null&&Zl(t)&&(Xt=!0))}function Ch(t,e,n,a){lt=t;var s=0;do{if(Xi&&(Zi=null),La=0,Xi=!1,25<=s)throw Error(o(301));if(s+=1,Gt=Mt=null,t.updateQueue!=null){var r=t.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}O.H=rd,r=e(n,a)}while(Xi);return r}function Bv(){var t=O.H,e=t.useState()[0];return e=typeof e.then=="function"?ja(e):e,t=t.useState()[0],(Mt!==null?Mt.memoizedState:null)!==t&&(lt.flags|=1024),e}function vo(){var t=ts!==0;return ts=0,t}function So(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function To(t){if(Il){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Il=!1}un=0,Gt=Mt=lt=null,Xi=!1,La=ts=0,Zi=null}function se(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Gt===null?lt.memoizedState=Gt=t:Gt=Gt.next=t,Gt}function Ht(){if(Mt===null){var t=lt.alternate;t=t!==null?t.memoizedState:null}else t=Mt.next;var e=Gt===null?lt.memoizedState:Gt.next;if(e!==null)Gt=e,Mt=t;else{if(t===null)throw lt.alternate===null?Error(o(467)):Error(o(310));Mt=t,t={memoizedState:Mt.memoizedState,baseState:Mt.baseState,baseQueue:Mt.baseQueue,queue:Mt.queue,next:null},Gt===null?lt.memoizedState=Gt=t:Gt=Gt.next=t}return Gt}function es(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ja(t){var e=La;return La+=1,Zi===null&&(Zi=[]),t=gh(Zi,t,e),e=lt,(Gt===null?e.memoizedState:Gt.next)===null&&(e=e.alternate,O.H=e===null||e.memoizedState===null?od:_o),t}function ns(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return ja(t);if(t.$$typeof===H)return It(t)}throw Error(o(438,String(t)))}function bo(t){var e=null,n=lt.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var a=lt.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(s){return s.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=es(),lt.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]=$;return e.index++,n}function on(t,e){return typeof e=="function"?e(t):e}function is(t){var e=Ht();return Ao(e,Mt,t)}function Ao(t,e,n){var a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=n;var s=t.baseQueue,r=a.pending;if(r!==null){if(s!==null){var f=s.next;s.next=r.next,r.next=f}e.baseQueue=s=r,a.pending=null}if(r=t.baseState,s===null)t.memoizedState=r;else{e=s.next;var y=f=null,T=null,x=e,_=!1;do{var B=x.lane&-536870913;if(B!==x.lane?(ht&B)===B:(un&B)===B){var C=x.revertLane;if(C===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null}),B===ji&&(_=!0);else if((un&C)===C){x=x.next,C===ji&&(_=!0);continue}else B={lane:0,revertLane:x.revertLane,gesture:null,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},T===null?(y=T=B,f=r):T=T.next=B,lt.lanes|=C,Un|=C;B=x.action,ci&&n(r,B),r=x.hasEagerState?x.eagerState:n(r,B)}else C={lane:B,revertLane:x.revertLane,gesture:x.gesture,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},T===null?(y=T=C,f=r):T=T.next=C,lt.lanes|=B,Un|=B;x=x.next}while(x!==null&&x!==e);if(T===null?f=r:T.next=y,!Se(r,t.memoizedState)&&(Xt=!0,_&&(n=Hi,n!==null)))throw n;t.memoizedState=r,t.baseState=f,t.baseQueue=T,a.lastRenderedState=r}return s===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function Eo(t){var e=Ht(),n=e.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=t;var a=n.dispatch,s=n.pending,r=e.memoizedState;if(s!==null){n.pending=null;var f=s=s.next;do r=t(r,f.action),f=f.next;while(f!==s);Se(r,e.memoizedState)||(Xt=!0),e.memoizedState=r,e.baseQueue===null&&(e.baseState=r),n.lastRenderedState=r}return[r,a]}function zh(t,e,n){var a=lt,s=Ht(),r=yt;if(r){if(n===void 0)throw Error(o(407));n=n()}else n=e();var f=!Se((Mt||s).memoizedState,n);if(f&&(s.memoizedState=n,Xt=!0),s=s.queue,xo(Vh.bind(null,a,s,t),[t]),s.getSnapshot!==e||f||Gt!==null&&Gt.memoizedState.tag&1){if(a.flags|=2048,Qi(9,{destroy:void 0},Oh.bind(null,a,s,n,e),null),Ct===null)throw Error(o(349));r||(un&127)!==0||Rh(a,e,n)}return n}function Rh(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=lt.updateQueue,e===null?(e=es(),lt.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,_h(e)&&Uh(t)}function Vh(t,e,n){return n(function(){_h(e)&&Uh(t)})}function _h(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Se(t,n)}catch{return!0}}function Uh(t){var e=ei(t,2);e!==null&&pe(e,t,2)}function Mo(t){var e=se();if(typeof t=="function"){var n=t;if(t=n(),ci){Sn(!0);try{n()}finally{Sn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:on,lastRenderedState:t},e}function Bh(t,e,n,a){return t.baseState=n,Ao(t,Mt,typeof a=="function"?a:on)}function Nv(t,e,n,a,s){if(ss(t))throw Error(o(485));if(t=e.action,t!==null){var r={payload:s,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){r.listeners.push(f)}};O.T!==null?n(!0):r.isTransition=!1,a(r),n=e.pending,n===null?(r.next=e.pending=r,Nh(e,r)):(r.next=n.next,e.pending=n.next=r)}}function Nh(t,e){var n=e.action,a=e.payload,s=t.state;if(e.isTransition){var r=O.T,f={};O.T=f;try{var y=n(s,a),T=O.S;T!==null&&T(f,y),wh(t,e,y)}catch(x){Do(t,e,x)}finally{r!==null&&f.types!==null&&(r.types=f.types),O.T=r}}else try{r=n(s,a),wh(t,e,r)}catch(x){Do(t,e,x)}}function wh(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Lh(t,e,a)},function(a){return Do(t,e,a)}):Lh(t,e,n)}function Lh(t,e,n){e.status="fulfilled",e.value=n,jh(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,Nh(t,n)))}function Do(t,e,n){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=n,jh(e),e=e.next;while(e!==a)}t.action=null}function jh(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Hh(t,e){return e}function Yh(t,e){if(yt){var n=Ct.formState;if(n!==null){t:{var a=lt;if(yt){if(Rt){e:{for(var s=Rt,r=Ue;s.nodeType!==8;){if(!r){s=null;break e}if(s=Ne(s.nextSibling),s===null){s=null;break e}}r=s.data,s=r==="F!"||r==="F"?s:null}if(s){Rt=Ne(s.nextSibling),a=s.data==="F!";break t}}Mn(a)}a=!1}a&&(e=n[0])}}return n=se(),n.memoizedState=n.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hh,lastRenderedState:e},n.queue=a,n=ld.bind(null,lt,a),a.dispatch=n,a=Mo(!1),r=Vo.bind(null,lt,!1,a.queue),a=se(),s={state:e,dispatch:null,action:t,pending:null},a.queue=s,n=Nv.bind(null,lt,s,r,n),s.dispatch=n,a.memoizedState=t,[e,n,!1]}function qh(t){var e=Ht();return Gh(e,Mt,t)}function Gh(t,e,n){if(e=Ao(t,e,Hh)[0],t=is(on)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=ja(e)}catch(f){throw f===Yi?Jl:f}else a=e;e=Ht();var s=e.queue,r=s.dispatch;return n!==e.memoizedState&&(lt.flags|=2048,Qi(9,{destroy:void 0},wv.bind(null,s,n),null)),[a,r,t]}function wv(t,e){t.action=e}function Xh(t){var e=Ht(),n=Mt;if(n!==null)return Gh(e,n,t);Ht(),e=e.memoizedState,n=Ht();var a=n.queue.dispatch;return n.memoizedState=t,[e,a,!1]}function Qi(t,e,n,a){return t={tag:t,create:n,deps:a,inst:e,next:null},e=lt.updateQueue,e===null&&(e=es(),lt.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 Zh(){return Ht().memoizedState}function as(t,e,n,a){var s=se();lt.flags|=t,s.memoizedState=Qi(1|e,{destroy:void 0},n,a===void 0?null:a)}function ls(t,e,n,a){var s=Ht();a=a===void 0?null:a;var r=s.memoizedState.inst;Mt!==null&&a!==null&&yo(a,Mt.memoizedState.deps)?s.memoizedState=Qi(e,r,n,a):(lt.flags|=t,s.memoizedState=Qi(1|e,r,n,a))}function Qh(t,e){as(8390656,8,t,e)}function xo(t,e){ls(2048,8,t,e)}function Lv(t){lt.flags|=4;var e=lt.updateQueue;if(e===null)e=es(),lt.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function Kh(t){var e=Ht().memoizedState;return Lv({ref:e,nextImpl:t}),function(){if((Tt&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function Jh(t,e){return ls(4,2,t,e)}function kh(t,e){return ls(4,4,t,e)}function Fh(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 Wh(t,e,n){n=n!=null?n.concat([t]):null,ls(4,4,Fh.bind(null,e,t),n)}function Co(){}function Ph(t,e){var n=Ht();e=e===void 0?null:e;var a=n.memoizedState;return e!==null&&yo(e,a[1])?a[0]:(n.memoizedState=[t,e],t)}function $h(t,e){var n=Ht();e=e===void 0?null:e;var a=n.memoizedState;if(e!==null&&yo(e,a[1]))return a[0];if(a=t(),ci){Sn(!0);try{t()}finally{Sn(!1)}}return n.memoizedState=[a,e],a}function zo(t,e,n){return n===void 0||(un&1073741824)!==0&&(ht&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=Id(),lt.lanes|=t,Un|=t,n)}function Ih(t,e,n,a){return Se(n,e)?n:Gi.current!==null?(t=zo(t,n,a),Se(t,e)||(Xt=!0),t):(un&42)===0||(un&1073741824)!==0&&(ht&261930)===0?(Xt=!0,t.memoizedState=n):(t=Id(),lt.lanes|=t,Un|=t,e)}function td(t,e,n,a,s){var r=G.p;G.p=r!==0&&8>r?r:8;var f=O.T,y={};O.T=y,Vo(t,!1,e,n);try{var T=s(),x=O.S;if(x!==null&&x(y,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var _=_v(T,a);Ha(t,e,_,De(t))}else Ha(t,e,a,De(t))}catch(B){Ha(t,e,{then:function(){},status:"rejected",reason:B},De())}finally{G.p=r,f!==null&&y.types!==null&&(f.types=y.types),O.T=f}}function jv(){}function Ro(t,e,n,a){if(t.tag!==5)throw Error(o(476));var s=ed(t).queue;td(t,s,e,Q,n===null?jv:function(){return nd(t),n(a)})}function ed(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:on,lastRenderedState:Q},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:on,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function nd(t){var e=ed(t);e.next===null&&(e=t.alternate.memoizedState),Ha(t,e.next.queue,{},De())}function Oo(){return It(nl)}function id(){return Ht().memoizedState}function ad(){return Ht().memoizedState}function Hv(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=De();t=Cn(n);var a=zn(e,t,n);a!==null&&(pe(a,e,n),Ba(a,e,n)),e={cache:ao()},t.payload=e;return}e=e.return}}function Yv(t,e,n){var a=De();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ss(t)?sd(e,n):(n=Ju(t,e,n,a),n!==null&&(pe(n,t,a),ud(n,e,a)))}function ld(t,e,n){var a=De();Ha(t,e,n,a)}function Ha(t,e,n,a){var s={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ss(t))sd(e,s);else{var r=t.alternate;if(t.lanes===0&&(r===null||r.lanes===0)&&(r=e.lastRenderedReducer,r!==null))try{var f=e.lastRenderedState,y=r(f,n);if(s.hasEagerState=!0,s.eagerState=y,Se(y,f))return Yl(t,e,s,0),Ct===null&&Hl(),!1}catch{}if(n=Ju(t,e,s,a),n!==null)return pe(n,t,a),ud(n,e,a),!0}return!1}function Vo(t,e,n,a){if(a={lane:2,revertLane:rr(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ss(t)){if(e)throw Error(o(479))}else e=Ju(t,n,a,2),e!==null&&pe(e,t,2)}function ss(t){var e=t.alternate;return t===lt||e!==null&&e===lt}function sd(t,e){Xi=Il=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function ud(t,e,n){if((n&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,hf(t,n)}}var Ya={readContext:It,use:ns,useCallback:Ut,useContext:Ut,useEffect:Ut,useImperativeHandle:Ut,useLayoutEffect:Ut,useInsertionEffect:Ut,useMemo:Ut,useReducer:Ut,useRef:Ut,useState:Ut,useDebugValue:Ut,useDeferredValue:Ut,useTransition:Ut,useSyncExternalStore:Ut,useId:Ut,useHostTransitionStatus:Ut,useFormState:Ut,useActionState:Ut,useOptimistic:Ut,useMemoCache:Ut,useCacheRefresh:Ut};Ya.useEffectEvent=Ut;var od={readContext:It,use:ns,useCallback:function(t,e){return se().memoizedState=[t,e===void 0?null:e],t},useContext:It,useEffect:Qh,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,as(4194308,4,Fh.bind(null,e,t),n)},useLayoutEffect:function(t,e){return as(4194308,4,t,e)},useInsertionEffect:function(t,e){as(4,2,t,e)},useMemo:function(t,e){var n=se();e=e===void 0?null:e;var a=t();if(ci){Sn(!0);try{t()}finally{Sn(!1)}}return n.memoizedState=[a,e],a},useReducer:function(t,e,n){var a=se();if(n!==void 0){var s=n(e);if(ci){Sn(!0);try{n(e)}finally{Sn(!1)}}}else s=e;return a.memoizedState=a.baseState=s,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:s},a.queue=t,t=t.dispatch=Yv.bind(null,lt,t),[a.memoizedState,t]},useRef:function(t){var e=se();return t={current:t},e.memoizedState=t},useState:function(t){t=Mo(t);var e=t.queue,n=ld.bind(null,lt,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Co,useDeferredValue:function(t,e){var n=se();return zo(n,t,e)},useTransition:function(){var t=Mo(!1);return t=td.bind(null,lt,t.queue,!0,!1),se().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var a=lt,s=se();if(yt){if(n===void 0)throw Error(o(407));n=n()}else{if(n=e(),Ct===null)throw Error(o(349));(ht&127)!==0||Rh(a,e,n)}s.memoizedState=n;var r={value:n,getSnapshot:e};return s.queue=r,Qh(Vh.bind(null,a,r,t),[t]),a.flags|=2048,Qi(9,{destroy:void 0},Oh.bind(null,a,r,n,e),null),n},useId:function(){var t=se(),e=Ct.identifierPrefix;if(yt){var n=Ke,a=Qe;n=(a&~(1<<32-ve(a)-1)).toString(32)+n,e="_"+e+"R_"+n,n=ts++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=Uv++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Oo,useFormState:Yh,useActionState:Yh,useOptimistic:function(t){var e=se();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Vo.bind(null,lt,!0,n),n.dispatch=e,[t,e]},useMemoCache:bo,useCacheRefresh:function(){return se().memoizedState=Hv.bind(null,lt)},useEffectEvent:function(t){var e=se(),n={impl:t};return e.memoizedState=n,function(){if((Tt&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},_o={readContext:It,use:ns,useCallback:Ph,useContext:It,useEffect:xo,useImperativeHandle:Wh,useInsertionEffect:Jh,useLayoutEffect:kh,useMemo:$h,useReducer:is,useRef:Zh,useState:function(){return is(on)},useDebugValue:Co,useDeferredValue:function(t,e){var n=Ht();return Ih(n,Mt.memoizedState,t,e)},useTransition:function(){var t=is(on)[0],e=Ht().memoizedState;return[typeof t=="boolean"?t:ja(t),e]},useSyncExternalStore:zh,useId:id,useHostTransitionStatus:Oo,useFormState:qh,useActionState:qh,useOptimistic:function(t,e){var n=Ht();return Bh(n,Mt,t,e)},useMemoCache:bo,useCacheRefresh:ad};_o.useEffectEvent=Kh;var rd={readContext:It,use:ns,useCallback:Ph,useContext:It,useEffect:xo,useImperativeHandle:Wh,useInsertionEffect:Jh,useLayoutEffect:kh,useMemo:$h,useReducer:Eo,useRef:Zh,useState:function(){return Eo(on)},useDebugValue:Co,useDeferredValue:function(t,e){var n=Ht();return Mt===null?zo(n,t,e):Ih(n,Mt.memoizedState,t,e)},useTransition:function(){var t=Eo(on)[0],e=Ht().memoizedState;return[typeof t=="boolean"?t:ja(t),e]},useSyncExternalStore:zh,useId:id,useHostTransitionStatus:Oo,useFormState:Xh,useActionState:Xh,useOptimistic:function(t,e){var n=Ht();return Mt!==null?Bh(n,Mt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:bo,useCacheRefresh:ad};rd.useEffectEvent=Kh;function Uo(t,e,n,a){e=t.memoizedState,n=n(a,e),n=n==null?e:S({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Bo={enqueueSetState:function(t,e,n){t=t._reactInternals;var a=De(),s=Cn(a);s.payload=e,n!=null&&(s.callback=n),e=zn(t,s,a),e!==null&&(pe(e,t,a),Ba(e,t,a))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var a=De(),s=Cn(a);s.tag=1,s.payload=e,n!=null&&(s.callback=n),e=zn(t,s,a),e!==null&&(pe(e,t,a),Ba(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=De(),a=Cn(n);a.tag=2,e!=null&&(a.callback=e),e=zn(t,a,n),e!==null&&(pe(e,t,n),Ba(e,t,n))}};function cd(t,e,n,a,s,r,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,r,f):e.prototype&&e.prototype.isPureReactComponent?!xa(n,a)||!xa(s,r):!0}function fd(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&&Bo.enqueueReplaceState(e,e.state,null)}function fi(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=S({},n));for(var s in t)n[s]===void 0&&(n[s]=t[s])}return n}function hd(t){jl(t)}function dd(t){console.error(t)}function md(t){jl(t)}function us(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function pd(t,e,n){try{var a=t.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function No(t,e,n){return n=Cn(n),n.tag=3,n.payload={element:null},n.callback=function(){us(t,e)},n}function yd(t){return t=Cn(t),t.tag=3,t}function gd(t,e,n,a){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var r=a.value;t.payload=function(){return s(r)},t.callback=function(){pd(e,n,a)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){pd(e,n,a),typeof s!="function"&&(Bn===null?Bn=new Set([this]):Bn.add(this));var y=a.stack;this.componentDidCatch(a.value,{componentStack:y!==null?y:""})})}function qv(t,e,n,a,s){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=n.alternate,e!==null&&Li(e,n,s,!0),n=be.current,n!==null){switch(n.tag){case 31:case 13:return Be===null?Ss():n.alternate===null&&Bt===0&&(Bt=3),n.flags&=-257,n.flags|=65536,n.lanes=s,a===kl?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([a]):e.add(a),sr(t,a,s)),!1;case 22:return n.flags|=65536,a===kl?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)),sr(t,a,s)),!1}throw Error(o(435,n.tag))}return sr(t,a,s),Ss(),!1}if(yt)return e=be.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=s,a!==Iu&&(t=Error(o(422),{cause:a}),Ra(Oe(t,n)))):(a!==Iu&&(e=Error(o(423),{cause:a}),Ra(Oe(e,n))),t=t.current.alternate,t.flags|=65536,s&=-s,t.lanes|=s,a=Oe(a,n),s=No(t.stateNode,a,s),co(t,s),Bt!==4&&(Bt=2)),!1;var r=Error(o(520),{cause:a});if(r=Oe(r,n),ka===null?ka=[r]:ka.push(r),Bt!==4&&(Bt=2),e===null)return!0;a=Oe(a,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=s&-s,n.lanes|=t,t=No(n.stateNode,a,t),co(n,t),!1;case 1:if(e=n.type,r=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(Bn===null||!Bn.has(r))))return n.flags|=65536,s&=-s,n.lanes|=s,s=yd(s),gd(s,t,n,a),co(n,s),!1}n=n.return}while(n!==null);return!1}var wo=Error(o(461)),Xt=!1;function te(t,e,n,a){e.child=t===null?bh(e,null,n,a):ri(e,t.child,n,a)}function vd(t,e,n,a,s){n=n.render;var r=e.ref;if("ref"in a){var f={};for(var y in a)y!=="ref"&&(f[y]=a[y])}else f=a;return li(e),a=go(t,e,n,f,r,s),y=vo(),t!==null&&!Xt?(So(t,e,s),rn(t,e,s)):(yt&&y&&Pu(e),e.flags|=1,te(t,e,a,s),e.child)}function Sd(t,e,n,a,s){if(t===null){var r=n.type;return typeof r=="function"&&!ku(r)&&r.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=r,Td(t,e,r,a,s)):(t=Gl(n.type,null,a,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(r=t.child,!Zo(t,s)){var f=r.memoizedProps;if(n=n.compare,n=n!==null?n:xa,n(f,a)&&t.ref===e.ref)return rn(t,e,s)}return e.flags|=1,t=nn(r,a),t.ref=e.ref,t.return=e,e.child=t}function Td(t,e,n,a,s){if(t!==null){var r=t.memoizedProps;if(xa(r,a)&&t.ref===e.ref)if(Xt=!1,e.pendingProps=a=r,Zo(t,s))(t.flags&131072)!==0&&(Xt=!0);else return e.lanes=t.lanes,rn(t,e,s)}return Lo(t,e,n,a,s)}function bd(t,e,n,a){var s=a.children,r=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(r=r!==null?r.baseLanes|n:n,t!==null){for(a=e.child=t.child,s=0;a!==null;)s=s|a.lanes|a.childLanes,a=a.sibling;a=s&~r}else a=0,e.child=null;return Ad(t,e,r,n,a)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Kl(e,r!==null?r.cachePool:null),r!==null?Mh(e,r):ho(),Dh(e);else return a=e.lanes=536870912,Ad(t,e,r!==null?r.baseLanes|n:n,n,a)}else r!==null?(Kl(e,r.cachePool),Mh(e,r),On(),e.memoizedState=null):(t!==null&&Kl(e,null),ho(),On());return te(t,e,s,n),e.child}function qa(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Ad(t,e,n,a,s){var r=so();return r=r===null?null:{parent:qt._currentValue,pool:r},e.memoizedState={baseLanes:n,cachePool:r},t!==null&&Kl(e,null),ho(),Dh(e),t!==null&&Li(t,e,a,!0),e.childLanes=s,null}function os(t,e){return e=cs({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Ed(t,e,n){return ri(e,t.child,null,n),t=os(e,e.pendingProps),t.flags|=2,Ae(e),e.memoizedState=null,t}function Gv(t,e,n){var a=e.pendingProps,s=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(yt){if(a.mode==="hidden")return t=os(e,a),e.lanes=536870912,qa(null,t);if(po(e),(t=Rt)?(t=Nm(t,Ue),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:An!==null?{id:Qe,overflow:Ke}:null,retryLane:536870912,hydrationErrors:null},n=sh(t),n.return=e,e.child=n,$t=e,Rt=null)):t=null,t===null)throw Mn(e);return e.lanes=536870912,null}return os(e,a)}var r=t.memoizedState;if(r!==null){var f=r.dehydrated;if(po(e),s)if(e.flags&256)e.flags&=-257,e=Ed(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(o(558));else if(Xt||Li(t,e,n,!1),s=(n&t.childLanes)!==0,Xt||s){if(a=Ct,a!==null&&(f=df(a,n),f!==0&&f!==r.retryLane))throw r.retryLane=f,ei(t,f),pe(a,t,f),wo;Ss(),e=Ed(t,e,n)}else t=r.treeContext,Rt=Ne(f.nextSibling),$t=e,yt=!0,En=null,Ue=!1,t!==null&&rh(e,t),e=os(e,a),e.flags|=4096;return e}return t=nn(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function rs(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(o(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function Lo(t,e,n,a,s){return li(e),n=go(t,e,n,a,void 0,s),a=vo(),t!==null&&!Xt?(So(t,e,s),rn(t,e,s)):(yt&&a&&Pu(e),e.flags|=1,te(t,e,n,s),e.child)}function Md(t,e,n,a,s,r){return li(e),e.updateQueue=null,n=Ch(e,a,n,s),xh(t),a=vo(),t!==null&&!Xt?(So(t,e,r),rn(t,e,r)):(yt&&a&&Pu(e),e.flags|=1,te(t,e,n,r),e.child)}function Dd(t,e,n,a,s){if(li(e),e.stateNode===null){var r=Ui,f=n.contextType;typeof f=="object"&&f!==null&&(r=It(f)),r=new n(a,r),e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Bo,e.stateNode=r,r._reactInternals=e,r=e.stateNode,r.props=a,r.state=e.memoizedState,r.refs={},oo(e),f=n.contextType,r.context=typeof f=="object"&&f!==null?It(f):Ui,r.state=e.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(Uo(e,n,f,a),r.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(f=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),f!==r.state&&Bo.enqueueReplaceState(r,r.state,null),wa(e,a,r,s),Na(),r.state=e.memoizedState),typeof r.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){r=e.stateNode;var y=e.memoizedProps,T=fi(n,y);r.props=T;var x=r.context,_=n.contextType;f=Ui,typeof _=="object"&&_!==null&&(f=It(_));var B=n.getDerivedStateFromProps;_=typeof B=="function"||typeof r.getSnapshotBeforeUpdate=="function",y=e.pendingProps!==y,_||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(y||x!==f)&&fd(e,r,a,f),xn=!1;var C=e.memoizedState;r.state=C,wa(e,a,r,s),Na(),x=e.memoizedState,y||C!==x||xn?(typeof B=="function"&&(Uo(e,n,B,a),x=e.memoizedState),(T=xn||cd(e,n,T,a,C,x,f))?(_||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(e.flags|=4194308)):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=x),r.props=a,r.state=x,r.context=f,a=T):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{r=e.stateNode,ro(t,e),f=e.memoizedProps,_=fi(n,f),r.props=_,B=e.pendingProps,C=r.context,x=n.contextType,T=Ui,typeof x=="object"&&x!==null&&(T=It(x)),y=n.getDerivedStateFromProps,(x=typeof y=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(f!==B||C!==T)&&fd(e,r,a,T),xn=!1,C=e.memoizedState,r.state=C,wa(e,a,r,s),Na();var R=e.memoizedState;f!==B||C!==R||xn||t!==null&&t.dependencies!==null&&Zl(t.dependencies)?(typeof y=="function"&&(Uo(e,n,y,a),R=e.memoizedState),(_=xn||cd(e,n,_,a,C,R,T)||t!==null&&t.dependencies!==null&&Zl(t.dependencies))?(x||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(a,R,T),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(a,R,T)),typeof r.componentDidUpdate=="function"&&(e.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof r.componentDidUpdate!="function"||f===t.memoizedProps&&C===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&C===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=R),r.props=a,r.state=R,r.context=T,a=_):(typeof r.componentDidUpdate!="function"||f===t.memoizedProps&&C===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&C===t.memoizedState||(e.flags|=1024),a=!1)}return r=a,rs(t,e),a=(e.flags&128)!==0,r||a?(r=e.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:r.render(),e.flags|=1,t!==null&&a?(e.child=ri(e,t.child,null,s),e.child=ri(e,null,n,s)):te(t,e,n,s),e.memoizedState=r.state,t=e.child):t=rn(t,e,s),t}function xd(t,e,n,a){return ii(),e.flags|=256,te(t,e,n,a),e.child}var jo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ho(t){return{baseLanes:t,cachePool:ph()}}function Yo(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Me),t}function Cd(t,e,n){var a=e.pendingProps,s=!1,r=(e.flags&128)!==0,f;if((f=r)||(f=t!==null&&t.memoizedState===null?!1:(jt.current&2)!==0),f&&(s=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(yt){if(s?Rn(e):On(),(t=Rt)?(t=Nm(t,Ue),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:An!==null?{id:Qe,overflow:Ke}:null,retryLane:536870912,hydrationErrors:null},n=sh(t),n.return=e,e.child=n,$t=e,Rt=null)):t=null,t===null)throw Mn(e);return Ar(t)?e.lanes=32:e.lanes=536870912,null}var y=a.children;return a=a.fallback,s?(On(),s=e.mode,y=cs({mode:"hidden",children:y},s),a=ni(a,s,n,null),y.return=e,a.return=e,y.sibling=a,e.child=y,a=e.child,a.memoizedState=Ho(n),a.childLanes=Yo(t,f,n),e.memoizedState=jo,qa(null,a)):(Rn(e),qo(e,y))}var T=t.memoizedState;if(T!==null&&(y=T.dehydrated,y!==null)){if(r)e.flags&256?(Rn(e),e.flags&=-257,e=Go(t,e,n)):e.memoizedState!==null?(On(),e.child=t.child,e.flags|=128,e=null):(On(),y=a.fallback,s=e.mode,a=cs({mode:"visible",children:a.children},s),y=ni(y,s,n,null),y.flags|=2,a.return=e,y.return=e,a.sibling=y,e.child=a,ri(e,t.child,null,n),a=e.child,a.memoizedState=Ho(n),a.childLanes=Yo(t,f,n),e.memoizedState=jo,e=qa(null,a));else if(Rn(e),Ar(y)){if(f=y.nextSibling&&y.nextSibling.dataset,f)var x=f.dgst;f=x,a=Error(o(419)),a.stack="",a.digest=f,Ra({value:a,source:null,stack:null}),e=Go(t,e,n)}else if(Xt||Li(t,e,n,!1),f=(n&t.childLanes)!==0,Xt||f){if(f=Ct,f!==null&&(a=df(f,n),a!==0&&a!==T.retryLane))throw T.retryLane=a,ei(t,a),pe(f,t,a),wo;br(y)||Ss(),e=Go(t,e,n)}else br(y)?(e.flags|=192,e.child=t.child,e=null):(t=T.treeContext,Rt=Ne(y.nextSibling),$t=e,yt=!0,En=null,Ue=!1,t!==null&&rh(e,t),e=qo(e,a.children),e.flags|=4096);return e}return s?(On(),y=a.fallback,s=e.mode,T=t.child,x=T.sibling,a=nn(T,{mode:"hidden",children:a.children}),a.subtreeFlags=T.subtreeFlags&65011712,x!==null?y=nn(x,y):(y=ni(y,s,n,null),y.flags|=2),y.return=e,a.return=e,a.sibling=y,e.child=a,qa(null,a),a=e.child,y=t.child.memoizedState,y===null?y=Ho(n):(s=y.cachePool,s!==null?(T=qt._currentValue,s=s.parent!==T?{parent:T,pool:T}:s):s=ph(),y={baseLanes:y.baseLanes|n,cachePool:s}),a.memoizedState=y,a.childLanes=Yo(t,f,n),e.memoizedState=jo,qa(t.child,a)):(Rn(e),n=t.child,t=n.sibling,n=nn(n,{mode:"visible",children:a.children}),n.return=e,n.sibling=null,t!==null&&(f=e.deletions,f===null?(e.deletions=[t],e.flags|=16):f.push(t)),e.child=n,e.memoizedState=null,n)}function qo(t,e){return e=cs({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function cs(t,e){return t=Te(22,t,null,e),t.lanes=0,t}function Go(t,e,n){return ri(e,t.child,null,n),t=qo(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function zd(t,e,n){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),no(t.return,e,n)}function Xo(t,e,n,a,s,r){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:s,treeForkCount:r}:(f.isBackwards=e,f.rendering=null,f.renderingStartTime=0,f.last=a,f.tail=n,f.tailMode=s,f.treeForkCount=r)}function Rd(t,e,n){var a=e.pendingProps,s=a.revealOrder,r=a.tail;a=a.children;var f=jt.current,y=(f&2)!==0;if(y?(f=f&1|2,e.flags|=128):f&=1,Z(jt,f),te(t,e,a,n),a=yt?za:0,!y&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&zd(t,n,e);else if(t.tag===19)zd(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(s){case"forwards":for(n=e.child,s=null;n!==null;)t=n.alternate,t!==null&&$l(t)===null&&(s=n),n=n.sibling;n=s,n===null?(s=e.child,e.child=null):(s=n.sibling,n.sibling=null),Xo(e,!1,s,n,r,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,s=e.child,e.child=null;s!==null;){if(t=s.alternate,t!==null&&$l(t)===null){e.child=s;break}t=s.sibling,s.sibling=n,n=s,s=t}Xo(e,!0,n,null,r,a);break;case"together":Xo(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function rn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Un|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Li(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(o(153));if(e.child!==null){for(t=e.child,n=nn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=nn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Zo(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Zl(t)))}function Xv(t,e,n){switch(e.tag){case 3:le(e,e.stateNode.containerInfo),Dn(e,qt,t.memoizedState.cache),ii();break;case 27:case 5:da(e);break;case 4:le(e,e.stateNode.containerInfo);break;case 10:Dn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,po(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(Rn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?Cd(t,e,n):(Rn(e),t=rn(t,e,n),t!==null?t.sibling:null);Rn(e);break;case 19:var s=(t.flags&128)!==0;if(a=(n&e.childLanes)!==0,a||(Li(t,e,n,!1),a=(n&e.childLanes)!==0),s){if(a)return Rd(t,e,n);e.flags|=128}if(s=e.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Z(jt,jt.current),a)break;return null;case 22:return e.lanes=0,bd(t,e,n,e.pendingProps);case 24:Dn(e,qt,t.memoizedState.cache)}return rn(t,e,n)}function Od(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Xt=!0;else{if(!Zo(t,n)&&(e.flags&128)===0)return Xt=!1,Xv(t,e,n);Xt=(t.flags&131072)!==0}else Xt=!1,yt&&(e.flags&1048576)!==0&&oh(e,za,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=ui(e.elementType),e.type=t,typeof t=="function")ku(t)?(a=fi(t,a),e.tag=1,e=Dd(null,e,t,a,n)):(e.tag=0,e=Lo(null,e,t,a,n));else{if(t!=null){var s=t.$$typeof;if(s===Y){e.tag=11,e=vd(null,e,t,a,n);break t}else if(s===tt){e.tag=14,e=Sd(null,e,t,a,n);break t}}throw e=Yt(t)||t,Error(o(306,e,""))}}return e;case 0:return Lo(t,e,e.type,e.pendingProps,n);case 1:return a=e.type,s=fi(a,e.pendingProps),Dd(t,e,a,s,n);case 3:t:{if(le(e,e.stateNode.containerInfo),t===null)throw Error(o(387));a=e.pendingProps;var r=e.memoizedState;s=r.element,ro(t,e),wa(e,a,null,n);var f=e.memoizedState;if(a=f.cache,Dn(e,qt,a),a!==r.cache&&io(e,[qt],n,!0),Na(),a=f.element,r.isDehydrated)if(r={element:a,isDehydrated:!1,cache:f.cache},e.updateQueue.baseState=r,e.memoizedState=r,e.flags&256){e=xd(t,e,a,n);break t}else if(a!==s){s=Oe(Error(o(424)),e),Ra(s),e=xd(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,Rt=Ne(t.firstChild),$t=e,yt=!0,En=null,Ue=!0,n=bh(e,null,a,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ii(),a===s){e=rn(t,e,n);break t}te(t,e,a,n)}e=e.child}return e;case 26:return rs(t,e),t===null?(n=qm(e.type,null,e.pendingProps,null))?e.memoizedState=n:yt||(n=e.type,t=e.pendingProps,a=xs(rt.current).createElement(n),a[Pt]=e,a[re]=t,ee(a,n,t),kt(a),e.stateNode=a):e.memoizedState=qm(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return da(e),t===null&&yt&&(a=e.stateNode=jm(e.type,e.pendingProps,rt.current),$t=e,Ue=!0,s=Rt,jn(e.type)?(Er=s,Rt=Ne(a.firstChild)):Rt=s),te(t,e,e.pendingProps.children,n),rs(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&yt&&((s=a=Rt)&&(a=S1(a,e.type,e.pendingProps,Ue),a!==null?(e.stateNode=a,$t=e,Rt=Ne(a.firstChild),Ue=!1,s=!0):s=!1),s||Mn(e)),da(e),s=e.type,r=e.pendingProps,f=t!==null?t.memoizedProps:null,a=r.children,vr(s,r)?a=null:f!==null&&vr(s,f)&&(e.flags|=32),e.memoizedState!==null&&(s=go(t,e,Bv,null,null,n),nl._currentValue=s),rs(t,e),te(t,e,a,n),e.child;case 6:return t===null&&yt&&((t=n=Rt)&&(n=T1(n,e.pendingProps,Ue),n!==null?(e.stateNode=n,$t=e,Rt=null,t=!0):t=!1),t||Mn(e)),null;case 13:return Cd(t,e,n);case 4:return le(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=ri(e,null,a,n):te(t,e,a,n),e.child;case 11:return vd(t,e,e.type,e.pendingProps,n);case 7:return te(t,e,e.pendingProps,n),e.child;case 8:return te(t,e,e.pendingProps.children,n),e.child;case 12:return te(t,e,e.pendingProps.children,n),e.child;case 10:return a=e.pendingProps,Dn(e,e.type,a.value),te(t,e,a.children,n),e.child;case 9:return s=e.type._context,a=e.pendingProps.children,li(e),s=It(s),a=a(s),e.flags|=1,te(t,e,a,n),e.child;case 14:return Sd(t,e,e.type,e.pendingProps,n);case 15:return Td(t,e,e.type,e.pendingProps,n);case 19:return Rd(t,e,n);case 31:return Gv(t,e,n);case 22:return bd(t,e,n,e.pendingProps);case 24:return li(e),a=It(qt),t===null?(s=so(),s===null&&(s=Ct,r=ao(),s.pooledCache=r,r.refCount++,r!==null&&(s.pooledCacheLanes|=n),s=r),e.memoizedState={parent:a,cache:s},oo(e),Dn(e,qt,s)):((t.lanes&n)!==0&&(ro(t,e),wa(e,null,null,n),Na()),s=t.memoizedState,r=e.memoizedState,s.parent!==a?(s={parent:a,cache:a},e.memoizedState=s,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=s),Dn(e,qt,a)):(a=r.cache,Dn(e,qt,a),a!==s.cache&&io(e,[qt],n,!0))),te(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function cn(t){t.flags|=4}function Qo(t,e,n,a,s){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(s&335544128)===s)if(t.stateNode.complete)t.flags|=8192;else if(im())t.flags|=8192;else throw oi=kl,uo}else t.flags&=-16777217}function Vd(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Km(e))if(im())t.flags|=8192;else throw oi=kl,uo}function fs(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?cf():536870912,t.lanes|=e,Fi|=e)}function Ga(t,e){if(!yt)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 Ot(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,a=0;if(e)for(var s=t.child;s!==null;)n|=s.lanes|s.childLanes,a|=s.subtreeFlags&65011712,a|=s.flags&65011712,s.return=t,s=s.sibling;else for(s=t.child;s!==null;)n|=s.lanes|s.childLanes,a|=s.subtreeFlags,a|=s.flags,s.return=t,s=s.sibling;return t.subtreeFlags|=a,t.childLanes=n,e}function Zv(t,e,n){var a=e.pendingProps;switch($u(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ot(e),null;case 1:return Ot(e),null;case 3:return n=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),sn(qt),Lt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(wi(e)?cn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,to())),Ot(e),null;case 26:var s=e.type,r=e.memoizedState;return t===null?(cn(e),r!==null?(Ot(e),Vd(e,r)):(Ot(e),Qo(e,s,null,a,n))):r?r!==t.memoizedState?(cn(e),Ot(e),Vd(e,r)):(Ot(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&cn(e),Ot(e),Qo(e,s,t,a,n)),null;case 27:if(Al(e),n=rt.current,s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&cn(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return Ot(e),null}t=k.current,wi(e)?ch(e):(t=jm(s,a,n),e.stateNode=t,cn(e))}return Ot(e),null;case 5:if(Al(e),s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&cn(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return Ot(e),null}if(r=k.current,wi(e))ch(e);else{var f=xs(rt.current);switch(r){case 1:r=f.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:r=f.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":r=f.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":r=f.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":r=f.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof a.is=="string"?f.createElement("select",{is:a.is}):f.createElement("select"),a.multiple?r.multiple=!0:a.size&&(r.size=a.size);break;default:r=typeof a.is=="string"?f.createElement(s,{is:a.is}):f.createElement(s)}}r[Pt]=e,r[re]=a;t:for(f=e.child;f!==null;){if(f.tag===5||f.tag===6)r.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break t;for(;f.sibling===null;){if(f.return===null||f.return===e)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}e.stateNode=r;t:switch(ee(r,s,a),s){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&cn(e)}}return Ot(e),Qo(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&cn(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(o(166));if(t=rt.current,wi(e)){if(t=e.stateNode,n=e.memoizedProps,a=null,s=$t,s!==null)switch(s.tag){case 27:case 5:a=s.memoizedProps}t[Pt]=e,t=!!(t.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Cm(t.nodeValue,n)),t||Mn(e,!0)}else t=xs(t).createTextNode(a),t[Pt]=e,e.stateNode=t}return Ot(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(a=wi(e),n!==null){if(t===null){if(!a)throw Error(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[Pt]=e}else ii(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ot(e),t=!1}else n=to(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Ae(e),e):(Ae(e),null);if((e.flags&128)!==0)throw Error(o(558))}return Ot(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(s=wi(e),a!==null&&a.dehydrated!==null){if(t===null){if(!s)throw Error(o(318));if(s=e.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(o(317));s[Pt]=e}else ii(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ot(e),s=!1}else s=to(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=s),s=!0;if(!s)return e.flags&256?(Ae(e),e):(Ae(e),null)}return Ae(e),(e.flags&128)!==0?(e.lanes=n,e):(n=a!==null,t=t!==null&&t.memoizedState!==null,n&&(a=e.child,s=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(s=a.alternate.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==s&&(a.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),fs(e,e.updateQueue),Ot(e),null);case 4:return Lt(),t===null&&dr(e.stateNode.containerInfo),Ot(e),null;case 10:return sn(e.type),Ot(e),null;case 19:if(N(jt),a=e.memoizedState,a===null)return Ot(e),null;if(s=(e.flags&128)!==0,r=a.rendering,r===null)if(s)Ga(a,!1);else{if(Bt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(r=$l(t),r!==null){for(e.flags|=128,Ga(a,!1),t=r.updateQueue,e.updateQueue=t,fs(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)lh(n,t),n=n.sibling;return Z(jt,jt.current&1|2),yt&&an(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&ye()>ys&&(e.flags|=128,s=!0,Ga(a,!1),e.lanes=4194304)}else{if(!s)if(t=$l(r),t!==null){if(e.flags|=128,s=!0,t=t.updateQueue,e.updateQueue=t,fs(e,t),Ga(a,!0),a.tail===null&&a.tailMode==="hidden"&&!r.alternate&&!yt)return Ot(e),null}else 2*ye()-a.renderingStartTime>ys&&n!==536870912&&(e.flags|=128,s=!0,Ga(a,!1),e.lanes=4194304);a.isBackwards?(r.sibling=e.child,e.child=r):(t=a.last,t!==null?t.sibling=r:e.child=r,a.last=r)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=ye(),t.sibling=null,n=jt.current,Z(jt,s?n&1|2:n&1),yt&&an(e,a.treeForkCount),t):(Ot(e),null);case 22:case 23:return Ae(e),mo(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(n&536870912)!==0&&(e.flags&128)===0&&(Ot(e),e.subtreeFlags&6&&(e.flags|=8192)):Ot(e),n=e.updateQueue,n!==null&&fs(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&&N(si),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),sn(qt),Ot(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function Qv(t,e){switch($u(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return sn(qt),Lt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Al(e),null;case 31:if(e.memoizedState!==null){if(Ae(e),e.alternate===null)throw Error(o(340));ii()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Ae(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));ii()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return N(jt),null;case 4:return Lt(),null;case 10:return sn(e.type),null;case 22:case 23:return Ae(e),mo(),t!==null&&N(si),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return sn(qt),null;case 25:return null;default:return null}}function _d(t,e){switch($u(e),e.tag){case 3:sn(qt),Lt();break;case 26:case 27:case 5:Al(e);break;case 4:Lt();break;case 31:e.memoizedState!==null&&Ae(e);break;case 13:Ae(e);break;case 19:N(jt);break;case 10:sn(e.type);break;case 22:case 23:Ae(e),mo(),t!==null&&N(si);break;case 24:sn(qt)}}function Xa(t,e){try{var n=e.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var s=a.next;n=s;do{if((n.tag&t)===t){a=void 0;var r=n.create,f=n.inst;a=r(),f.destroy=a}n=n.next}while(n!==s)}}catch(y){Et(e,e.return,y)}}function Vn(t,e,n){try{var a=e.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var r=s.next;a=r;do{if((a.tag&t)===t){var f=a.inst,y=f.destroy;if(y!==void 0){f.destroy=void 0,s=e;var T=n,x=y;try{x()}catch(_){Et(s,T,_)}}}a=a.next}while(a!==r)}}catch(_){Et(e,e.return,_)}}function Ud(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Eh(e,n)}catch(a){Et(t,t.return,a)}}}function Bd(t,e,n){n.props=fi(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(a){Et(t,e,a)}}function Za(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof n=="function"?t.refCleanup=n(a):n.current=a}}catch(s){Et(t,e,s)}}function Je(t,e){var n=t.ref,a=t.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(s){Et(t,e,s)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(s){Et(t,e,s)}else n.current=null}function Nd(t){var e=t.type,n=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break t;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(s){Et(t,t.return,s)}}function Ko(t,e,n){try{var a=t.stateNode;d1(a,t.type,n,e),a[re]=e}catch(s){Et(t,t.return,s)}}function wd(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&jn(t.type)||t.tag===4}function Jo(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||wd(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&&jn(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 ko(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=tn));else if(a!==4&&(a===27&&jn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(ko(t,e,n),t=t.sibling;t!==null;)ko(t,e,n),t=t.sibling}function hs(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&&jn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(hs(t,e,n),t=t.sibling;t!==null;)hs(t,e,n),t=t.sibling}function Ld(t){var e=t.stateNode,n=t.memoizedProps;try{for(var a=t.type,s=e.attributes;s.length;)e.removeAttributeNode(s[0]);ee(e,a,n),e[Pt]=t,e[re]=n}catch(r){Et(t,t.return,r)}}var fn=!1,Zt=!1,Fo=!1,jd=typeof WeakSet=="function"?WeakSet:Set,Ft=null;function Kv(t,e){if(t=t.containerInfo,yr=Us,t=Wf(t),qu(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var s=a.anchorOffset,r=a.focusNode;a=a.focusOffset;try{n.nodeType,r.nodeType}catch{n=null;break t}var f=0,y=-1,T=-1,x=0,_=0,B=t,C=null;e:for(;;){for(var R;B!==n||s!==0&&B.nodeType!==3||(y=f+s),B!==r||a!==0&&B.nodeType!==3||(T=f+a),B.nodeType===3&&(f+=B.nodeValue.length),(R=B.firstChild)!==null;)C=B,B=R;for(;;){if(B===t)break e;if(C===n&&++x===s&&(y=f),C===r&&++_===a&&(T=f),(R=B.nextSibling)!==null)break;B=C,C=B.parentNode}B=R}n=y===-1||T===-1?null:{start:y,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;for(gr={focusedElem:t,selectionRange:n},Us=!1,Ft=e;Ft!==null;)if(e=Ft,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Ft=t;else for(;Ft!==null;){switch(e=Ft,r=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)s=t[n],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&r!==null){t=void 0,n=e,s=r.memoizedProps,r=r.memoizedState,a=n.stateNode;try{var K=fi(n.type,s);t=a.getSnapshotBeforeUpdate(K,r),a.__reactInternalSnapshotBeforeUpdate=t}catch(et){Et(n,n.return,et)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)Tr(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Tr(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(o(163))}if(t=e.sibling,t!==null){t.return=e.return,Ft=t;break}Ft=e.return}}function Hd(t,e,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:dn(t,n),a&4&&Xa(5,n);break;case 1:if(dn(t,n),a&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(f){Et(n,n.return,f)}else{var s=fi(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(s,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){Et(n,n.return,f)}}a&64&&Ud(n),a&512&&Za(n,n.return);break;case 3:if(dn(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{Eh(t,e)}catch(f){Et(n,n.return,f)}}break;case 27:e===null&&a&4&&Ld(n);case 26:case 5:dn(t,n),e===null&&a&4&&Nd(n),a&512&&Za(n,n.return);break;case 12:dn(t,n);break;case 31:dn(t,n),a&4&&Gd(t,n);break;case 13:dn(t,n),a&4&&Xd(t,n),a&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=e1.bind(null,n),b1(t,n))));break;case 22:if(a=n.memoizedState!==null||fn,!a){e=e!==null&&e.memoizedState!==null||Zt,s=fn;var r=Zt;fn=a,(Zt=e)&&!r?mn(t,n,(n.subtreeFlags&8772)!==0):dn(t,n),fn=s,Zt=r}break;case 30:break;default:dn(t,n)}}function Yd(t){var e=t.alternate;e!==null&&(t.alternate=null,Yd(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Mu(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 _t=null,fe=!1;function hn(t,e,n){for(n=n.child;n!==null;)qd(t,e,n),n=n.sibling}function qd(t,e,n){if(ge&&typeof ge.onCommitFiberUnmount=="function")try{ge.onCommitFiberUnmount(ma,n)}catch{}switch(n.tag){case 26:Zt||Je(n,e),hn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Zt||Je(n,e);var a=_t,s=fe;jn(n.type)&&(_t=n.stateNode,fe=!1),hn(t,e,n),Ia(n.stateNode),_t=a,fe=s;break;case 5:Zt||Je(n,e);case 6:if(a=_t,s=fe,_t=null,hn(t,e,n),_t=a,fe=s,_t!==null)if(fe)try{(_t.nodeType===9?_t.body:_t.nodeName==="HTML"?_t.ownerDocument.body:_t).removeChild(n.stateNode)}catch(r){Et(n,e,r)}else try{_t.removeChild(n.stateNode)}catch(r){Et(n,e,r)}break;case 18:_t!==null&&(fe?(t=_t,Um(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),ia(t)):Um(_t,n.stateNode));break;case 4:a=_t,s=fe,_t=n.stateNode.containerInfo,fe=!0,hn(t,e,n),_t=a,fe=s;break;case 0:case 11:case 14:case 15:Vn(2,n,e),Zt||Vn(4,n,e),hn(t,e,n);break;case 1:Zt||(Je(n,e),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Bd(n,e,a)),hn(t,e,n);break;case 21:hn(t,e,n);break;case 22:Zt=(a=Zt)||n.memoizedState!==null,hn(t,e,n),Zt=a;break;default:hn(t,e,n)}}function Gd(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ia(t)}catch(n){Et(e,e.return,n)}}}function Xd(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ia(t)}catch(n){Et(e,e.return,n)}}function Jv(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new jd),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new jd),e;default:throw Error(o(435,t.tag))}}function ds(t,e){var n=Jv(t);e.forEach(function(a){if(!n.has(a)){n.add(a);var s=n1.bind(null,t,a);a.then(s,s)}})}function he(t,e){var n=e.deletions;if(n!==null)for(var a=0;a<n.length;a++){var s=n[a],r=t,f=e,y=f;t:for(;y!==null;){switch(y.tag){case 27:if(jn(y.type)){_t=y.stateNode,fe=!1;break t}break;case 5:_t=y.stateNode,fe=!1;break t;case 3:case 4:_t=y.stateNode.containerInfo,fe=!0;break t}y=y.return}if(_t===null)throw Error(o(160));qd(r,f,s),_t=null,fe=!1,r=s.alternate,r!==null&&(r.return=null),s.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Zd(e,t),e=e.sibling}var Ye=null;function Zd(t,e){var n=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:he(e,t),de(t),a&4&&(Vn(3,t,t.return),Xa(3,t),Vn(5,t,t.return));break;case 1:he(e,t),de(t),a&512&&(Zt||n===null||Je(n,n.return)),a&64&&fn&&(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 s=Ye;if(he(e,t),de(t),a&512&&(Zt||n===null||Je(n,n.return)),a&4){var r=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,s=s.ownerDocument||s;e:switch(a){case"title":r=s.getElementsByTagName("title")[0],(!r||r[ga]||r[Pt]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=s.createElement(a),s.head.insertBefore(r,s.querySelector("head > title"))),ee(r,a,n),r[Pt]=t,kt(r),a=r;break t;case"link":var f=Zm("link","href",s).get(a+(n.href||""));if(f){for(var y=0;y<f.length;y++)if(r=f[y],r.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&r.getAttribute("rel")===(n.rel==null?null:n.rel)&&r.getAttribute("title")===(n.title==null?null:n.title)&&r.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){f.splice(y,1);break e}}r=s.createElement(a),ee(r,a,n),s.head.appendChild(r);break;case"meta":if(f=Zm("meta","content",s).get(a+(n.content||""))){for(y=0;y<f.length;y++)if(r=f[y],r.getAttribute("content")===(n.content==null?null:""+n.content)&&r.getAttribute("name")===(n.name==null?null:n.name)&&r.getAttribute("property")===(n.property==null?null:n.property)&&r.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute("charset")===(n.charSet==null?null:n.charSet)){f.splice(y,1);break e}}r=s.createElement(a),ee(r,a,n),s.head.appendChild(r);break;default:throw Error(o(468,a))}r[Pt]=t,kt(r),a=r}t.stateNode=a}else Qm(s,t.type,t.stateNode);else t.stateNode=Xm(s,a,t.memoizedProps);else r!==a?(r===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):r.count--,a===null?Qm(s,t.type,t.stateNode):Xm(s,a,t.memoizedProps)):a===null&&t.stateNode!==null&&Ko(t,t.memoizedProps,n.memoizedProps)}break;case 27:he(e,t),de(t),a&512&&(Zt||n===null||Je(n,n.return)),n!==null&&a&4&&Ko(t,t.memoizedProps,n.memoizedProps);break;case 5:if(he(e,t),de(t),a&512&&(Zt||n===null||Je(n,n.return)),t.flags&32){s=t.stateNode;try{xi(s,"")}catch(K){Et(t,t.return,K)}}a&4&&t.stateNode!=null&&(s=t.memoizedProps,Ko(t,s,n!==null?n.memoizedProps:s)),a&1024&&(Fo=!0);break;case 6:if(he(e,t),de(t),a&4){if(t.stateNode===null)throw Error(o(162));a=t.memoizedProps,n=t.stateNode;try{n.nodeValue=a}catch(K){Et(t,t.return,K)}}break;case 3:if(Rs=null,s=Ye,Ye=Cs(e.containerInfo),he(e,t),Ye=s,de(t),a&4&&n!==null&&n.memoizedState.isDehydrated)try{ia(e.containerInfo)}catch(K){Et(t,t.return,K)}Fo&&(Fo=!1,Qd(t));break;case 4:a=Ye,Ye=Cs(t.stateNode.containerInfo),he(e,t),de(t),Ye=a;break;case 12:he(e,t),de(t);break;case 31:he(e,t),de(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,ds(t,a)));break;case 13:he(e,t),de(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(ps=ye()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,ds(t,a)));break;case 22:s=t.memoizedState!==null;var T=n!==null&&n.memoizedState!==null,x=fn,_=Zt;if(fn=x||s,Zt=_||T,he(e,t),Zt=_,fn=x,de(t),a&8192)t:for(e=t.stateNode,e._visibility=s?e._visibility&-2:e._visibility|1,s&&(n===null||T||fn||Zt||hi(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){T=n=e;try{if(r=T.stateNode,s)f=r.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{y=T.stateNode;var B=T.memoizedProps.style,C=B!=null&&B.hasOwnProperty("display")?B.display:null;y.style.display=C==null||typeof C=="boolean"?"":(""+C).trim()}}catch(K){Et(T,T.return,K)}}}else if(e.tag===6){if(n===null){T=e;try{T.stateNode.nodeValue=s?"":T.memoizedProps}catch(K){Et(T,T.return,K)}}}else if(e.tag===18){if(n===null){T=e;try{var R=T.stateNode;s?Bm(R,!0):Bm(T.stateNode,!1)}catch(K){Et(T,T.return,K)}}}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,ds(t,n))));break;case 19:he(e,t),de(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,ds(t,a)));break;case 30:break;case 21:break;default:he(e,t),de(t)}}function de(t){var e=t.flags;if(e&2){try{for(var n,a=t.return;a!==null;){if(wd(a)){n=a;break}a=a.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var s=n.stateNode,r=Jo(t);hs(t,r,s);break;case 5:var f=n.stateNode;n.flags&32&&(xi(f,""),n.flags&=-33);var y=Jo(t);hs(t,y,f);break;case 3:case 4:var T=n.stateNode.containerInfo,x=Jo(t);ko(t,x,T);break;default:throw Error(o(161))}}catch(_){Et(t,t.return,_)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Qd(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Qd(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function dn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Hd(t,e.alternate,e),e=e.sibling}function hi(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Vn(4,e,e.return),hi(e);break;case 1:Je(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Bd(e,e.return,n),hi(e);break;case 27:Ia(e.stateNode);case 26:case 5:Je(e,e.return),hi(e);break;case 22:e.memoizedState===null&&hi(e);break;case 30:hi(e);break;default:hi(e)}t=t.sibling}}function mn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,s=t,r=e,f=r.flags;switch(r.tag){case 0:case 11:case 15:mn(s,r,n),Xa(4,r);break;case 1:if(mn(s,r,n),a=r,s=a.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(x){Et(a,a.return,x)}if(a=r,s=a.updateQueue,s!==null){var y=a.stateNode;try{var T=s.shared.hiddenCallbacks;if(T!==null)for(s.shared.hiddenCallbacks=null,s=0;s<T.length;s++)Ah(T[s],y)}catch(x){Et(a,a.return,x)}}n&&f&64&&Ud(r),Za(r,r.return);break;case 27:Ld(r);case 26:case 5:mn(s,r,n),n&&a===null&&f&4&&Nd(r),Za(r,r.return);break;case 12:mn(s,r,n);break;case 31:mn(s,r,n),n&&f&4&&Gd(s,r);break;case 13:mn(s,r,n),n&&f&4&&Xd(s,r);break;case 22:r.memoizedState===null&&mn(s,r,n),Za(r,r.return);break;case 30:break;default:mn(s,r,n)}e=e.sibling}}function Wo(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&&Oa(n))}function Po(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Oa(t))}function qe(t,e,n,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Kd(t,e,n,a),e=e.sibling}function Kd(t,e,n,a){var s=e.flags;switch(e.tag){case 0:case 11:case 15:qe(t,e,n,a),s&2048&&Xa(9,e);break;case 1:qe(t,e,n,a);break;case 3:qe(t,e,n,a),s&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Oa(t)));break;case 12:if(s&2048){qe(t,e,n,a),t=e.stateNode;try{var r=e.memoizedProps,f=r.id,y=r.onPostCommit;typeof y=="function"&&y(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(T){Et(e,e.return,T)}}else qe(t,e,n,a);break;case 31:qe(t,e,n,a);break;case 13:qe(t,e,n,a);break;case 23:break;case 22:r=e.stateNode,f=e.alternate,e.memoizedState!==null?r._visibility&2?qe(t,e,n,a):Qa(t,e):r._visibility&2?qe(t,e,n,a):(r._visibility|=2,Ki(t,e,n,a,(e.subtreeFlags&10256)!==0||!1)),s&2048&&Wo(f,e);break;case 24:qe(t,e,n,a),s&2048&&Po(e.alternate,e);break;default:qe(t,e,n,a)}}function Ki(t,e,n,a,s){for(s=s&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var r=t,f=e,y=n,T=a,x=f.flags;switch(f.tag){case 0:case 11:case 15:Ki(r,f,y,T,s),Xa(8,f);break;case 23:break;case 22:var _=f.stateNode;f.memoizedState!==null?_._visibility&2?Ki(r,f,y,T,s):Qa(r,f):(_._visibility|=2,Ki(r,f,y,T,s)),s&&x&2048&&Wo(f.alternate,f);break;case 24:Ki(r,f,y,T,s),s&&x&2048&&Po(f.alternate,f);break;default:Ki(r,f,y,T,s)}e=e.sibling}}function Qa(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,a=e,s=a.flags;switch(a.tag){case 22:Qa(n,a),s&2048&&Wo(a.alternate,a);break;case 24:Qa(n,a),s&2048&&Po(a.alternate,a);break;default:Qa(n,a)}e=e.sibling}}var Ka=8192;function Ji(t,e,n){if(t.subtreeFlags&Ka)for(t=t.child;t!==null;)Jd(t,e,n),t=t.sibling}function Jd(t,e,n){switch(t.tag){case 26:Ji(t,e,n),t.flags&Ka&&t.memoizedState!==null&&U1(n,Ye,t.memoizedState,t.memoizedProps);break;case 5:Ji(t,e,n);break;case 3:case 4:var a=Ye;Ye=Cs(t.stateNode.containerInfo),Ji(t,e,n),Ye=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=Ka,Ka=16777216,Ji(t,e,n),Ka=a):Ji(t,e,n));break;default:Ji(t,e,n)}}function kd(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 Ja(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];Ft=a,Wd(a,t)}kd(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Fd(t),t=t.sibling}function Fd(t){switch(t.tag){case 0:case 11:case 15:Ja(t),t.flags&2048&&Vn(9,t,t.return);break;case 3:Ja(t);break;case 12:Ja(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,ms(t)):Ja(t);break;default:Ja(t)}}function ms(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];Ft=a,Wd(a,t)}kd(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Vn(8,e,e.return),ms(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,ms(e));break;default:ms(e)}t=t.sibling}}function Wd(t,e){for(;Ft!==null;){var n=Ft;switch(n.tag){case 0:case 11:case 15:Vn(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:Oa(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,Ft=a;else t:for(n=t;Ft!==null;){a=Ft;var s=a.sibling,r=a.return;if(Yd(a),a===n){Ft=null;break t}if(s!==null){s.return=r,Ft=s;break t}Ft=r}}}var kv={getCacheForType:function(t){var e=It(qt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return It(qt).controller.signal}},Fv=typeof WeakMap=="function"?WeakMap:Map,Tt=0,Ct=null,ct=null,ht=0,At=0,Ee=null,_n=!1,ki=!1,$o=!1,pn=0,Bt=0,Un=0,di=0,Io=0,Me=0,Fi=0,ka=null,me=null,tr=!1,ps=0,Pd=0,ys=1/0,gs=null,Bn=null,Kt=0,Nn=null,Wi=null,yn=0,er=0,nr=null,$d=null,Fa=0,ir=null;function De(){return(Tt&2)!==0&&ht!==0?ht&-ht:O.T!==null?rr():mf()}function Id(){if(Me===0)if((ht&536870912)===0||yt){var t=Dl;Dl<<=1,(Dl&3932160)===0&&(Dl=262144),Me=t}else Me=536870912;return t=be.current,t!==null&&(t.flags|=32),Me}function pe(t,e,n){(t===Ct&&(At===2||At===9)||t.cancelPendingCommit!==null)&&(Pi(t,0),wn(t,ht,Me,!1)),ya(t,n),((Tt&2)===0||t!==Ct)&&(t===Ct&&((Tt&2)===0&&(di|=n),Bt===4&&wn(t,ht,Me,!1)),ke(t))}function tm(t,e,n){if((Tt&6)!==0)throw Error(o(327));var a=!n&&(e&127)===0&&(e&t.expiredLanes)===0||pa(t,e),s=a?$v(t,e):lr(t,e,!0),r=a;do{if(s===0){ki&&!a&&wn(t,e,0,!1);break}else{if(n=t.current.alternate,r&&!Wv(n)){s=lr(t,e,!1),r=!1;continue}if(s===2){if(r=e,t.errorRecoveryDisabledLanes&r)var f=0;else f=t.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){e=f;t:{var y=t;s=ka;var T=y.current.memoizedState.isDehydrated;if(T&&(Pi(y,f).flags|=256),f=lr(y,f,!1),f!==2){if($o&&!T){y.errorRecoveryDisabledLanes|=r,di|=r,s=4;break t}r=me,me=s,r!==null&&(me===null?me=r:me.push.apply(me,r))}s=f}if(r=!1,s!==2)continue}}if(s===1){Pi(t,0),wn(t,e,0,!0);break}t:{switch(a=t,r=s,r){case 0:case 1:throw Error(o(345));case 4:if((e&4194048)!==e)break;case 6:wn(a,e,Me,!_n);break t;case 2:me=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(s=ps+300-ye(),10<s)){if(wn(a,e,Me,!_n),Cl(a,0,!0)!==0)break t;yn=e,a.timeoutHandle=Vm(em.bind(null,a,n,me,gs,tr,e,Me,di,Fi,_n,r,"Throttled",-0,0),s);break t}em(a,n,me,gs,tr,e,Me,di,Fi,_n,r,null,-0,0)}}break}while(!0);ke(t)}function em(t,e,n,a,s,r,f,y,T,x,_,B,C,R){if(t.timeoutHandle=-1,B=e.subtreeFlags,B&8192||(B&16785408)===16785408){B={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:tn},Jd(e,r,B);var K=(r&62914560)===r?ps-ye():(r&4194048)===r?Pd-ye():0;if(K=B1(B,K),K!==null){yn=r,t.cancelPendingCommit=K(rm.bind(null,t,e,r,n,a,s,f,y,T,_,B,null,C,R)),wn(t,r,f,!x);return}}rm(t,e,r,n,a,s,f,y,T)}function Wv(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 s=n[a],r=s.getSnapshot;s=s.value;try{if(!Se(r(),s))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 wn(t,e,n,a){e&=~Io,e&=~di,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var s=e;0<s;){var r=31-ve(s),f=1<<r;a[r]=-1,s&=~f}n!==0&&ff(t,n,e)}function vs(){return(Tt&6)===0?(Wa(0),!1):!0}function ar(){if(ct!==null){if(At===0)var t=ct.return;else t=ct,ln=ai=null,To(t),qi=null,_a=0,t=ct;for(;t!==null;)_d(t.alternate,t),t=t.return;ct=null}}function Pi(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,y1(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),yn=0,ar(),Ct=t,ct=n=nn(t.current,null),ht=e,At=0,Ee=null,_n=!1,ki=pa(t,e),$o=!1,Fi=Me=Io=di=Un=Bt=0,me=ka=null,tr=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var s=31-ve(a),r=1<<s;e|=t[s],a&=~r}return pn=e,Hl(),n}function nm(t,e){lt=null,O.H=Ya,e===Yi||e===Jl?(e=vh(),At=3):e===uo?(e=vh(),At=4):At=e===wo?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ee=e,ct===null&&(Bt=1,us(t,Oe(e,t.current)))}function im(){var t=be.current;return t===null?!0:(ht&4194048)===ht?Be===null:(ht&62914560)===ht||(ht&536870912)!==0?t===Be:!1}function am(){var t=O.H;return O.H=Ya,t===null?Ya:t}function lm(){var t=O.A;return O.A=kv,t}function Ss(){Bt=4,_n||(ht&4194048)!==ht&&be.current!==null||(ki=!0),(Un&134217727)===0&&(di&134217727)===0||Ct===null||wn(Ct,ht,Me,!1)}function lr(t,e,n){var a=Tt;Tt|=2;var s=am(),r=lm();(Ct!==t||ht!==e)&&(gs=null,Pi(t,e)),e=!1;var f=Bt;t:do try{if(At!==0&&ct!==null){var y=ct,T=Ee;switch(At){case 8:ar(),f=6;break t;case 3:case 2:case 9:case 6:be.current===null&&(e=!0);var x=At;if(At=0,Ee=null,$i(t,y,T,x),n&&ki){f=0;break t}break;default:x=At,At=0,Ee=null,$i(t,y,T,x)}}Pv(),f=Bt;break}catch(_){nm(t,_)}while(!0);return e&&t.shellSuspendCounter++,ln=ai=null,Tt=a,O.H=s,O.A=r,ct===null&&(Ct=null,ht=0,Hl()),f}function Pv(){for(;ct!==null;)sm(ct)}function $v(t,e){var n=Tt;Tt|=2;var a=am(),s=lm();Ct!==t||ht!==e?(gs=null,ys=ye()+500,Pi(t,e)):ki=pa(t,e);t:do try{if(At!==0&&ct!==null){e=ct;var r=Ee;e:switch(At){case 1:At=0,Ee=null,$i(t,e,r,1);break;case 2:case 9:if(yh(r)){At=0,Ee=null,um(e);break}e=function(){At!==2&&At!==9||Ct!==t||(At=7),ke(t)},r.then(e,e);break t;case 3:At=7;break t;case 4:At=5;break t;case 7:yh(r)?(At=0,Ee=null,um(e)):(At=0,Ee=null,$i(t,e,r,7));break;case 5:var f=null;switch(ct.tag){case 26:f=ct.memoizedState;case 5:case 27:var y=ct;if(f?Km(f):y.stateNode.complete){At=0,Ee=null;var T=y.sibling;if(T!==null)ct=T;else{var x=y.return;x!==null?(ct=x,Ts(x)):ct=null}break e}}At=0,Ee=null,$i(t,e,r,5);break;case 6:At=0,Ee=null,$i(t,e,r,6);break;case 8:ar(),Bt=6;break t;default:throw Error(o(462))}}Iv();break}catch(_){nm(t,_)}while(!0);return ln=ai=null,O.H=a,O.A=s,Tt=n,ct!==null?0:(Ct=null,ht=0,Hl(),Bt)}function Iv(){for(;ct!==null&&!A0();)sm(ct)}function sm(t){var e=Od(t.alternate,t,pn);t.memoizedProps=t.pendingProps,e===null?Ts(t):ct=e}function um(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Md(n,e,e.pendingProps,e.type,void 0,ht);break;case 11:e=Md(n,e,e.pendingProps,e.type.render,e.ref,ht);break;case 5:To(e);default:_d(n,e),e=ct=lh(e,pn),e=Od(n,e,pn)}t.memoizedProps=t.pendingProps,e===null?Ts(t):ct=e}function $i(t,e,n,a){ln=ai=null,To(e),qi=null,_a=0;var s=e.return;try{if(qv(t,s,e,n,ht)){Bt=1,us(t,Oe(n,t.current)),ct=null;return}}catch(r){if(s!==null)throw ct=s,r;Bt=1,us(t,Oe(n,t.current)),ct=null;return}e.flags&32768?(yt||a===1?t=!0:ki||(ht&536870912)!==0?t=!1:(_n=t=!0,(a===2||a===9||a===3||a===6)&&(a=be.current,a!==null&&a.tag===13&&(a.flags|=16384))),om(e,t)):Ts(e)}function Ts(t){var e=t;do{if((e.flags&32768)!==0){om(e,_n);return}t=e.return;var n=Zv(e.alternate,e,pn);if(n!==null){ct=n;return}if(e=e.sibling,e!==null){ct=e;return}ct=e=t}while(e!==null);Bt===0&&(Bt=5)}function om(t,e){do{var n=Qv(t.alternate,t);if(n!==null){n.flags&=32767,ct=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){ct=t;return}ct=t=n}while(t!==null);Bt=6,ct=null}function rm(t,e,n,a,s,r,f,y,T){t.cancelPendingCommit=null;do bs();while(Kt!==0);if((Tt&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));if(r=e.lanes|e.childLanes,r|=Ku,_0(t,n,r,f,y,T),t===Ct&&(ct=Ct=null,ht=0),Wi=e,Nn=t,yn=n,er=r,nr=s,$d=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,i1(El,function(){return mm(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=O.T,O.T=null,s=G.p,G.p=2,f=Tt,Tt|=4;try{Kv(t,e,n)}finally{Tt=f,G.p=s,O.T=a}}Kt=1,cm(),fm(),hm()}}function cm(){if(Kt===1){Kt=0;var t=Nn,e=Wi,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=O.T,O.T=null;var a=G.p;G.p=2;var s=Tt;Tt|=4;try{Zd(e,t);var r=gr,f=Wf(t.containerInfo),y=r.focusedElem,T=r.selectionRange;if(f!==y&&y&&y.ownerDocument&&Ff(y.ownerDocument.documentElement,y)){if(T!==null&&qu(y)){var x=T.start,_=T.end;if(_===void 0&&(_=x),"selectionStart"in y)y.selectionStart=x,y.selectionEnd=Math.min(_,y.value.length);else{var B=y.ownerDocument||document,C=B&&B.defaultView||window;if(C.getSelection){var R=C.getSelection(),K=y.textContent.length,et=Math.min(T.start,K),xt=T.end===void 0?et:Math.min(T.end,K);!R.extend&&et>xt&&(f=xt,xt=et,et=f);var M=kf(y,et),A=kf(y,xt);if(M&&A&&(R.rangeCount!==1||R.anchorNode!==M.node||R.anchorOffset!==M.offset||R.focusNode!==A.node||R.focusOffset!==A.offset)){var D=B.createRange();D.setStart(M.node,M.offset),R.removeAllRanges(),et>xt?(R.addRange(D),R.extend(A.node,A.offset)):(D.setEnd(A.node,A.offset),R.addRange(D))}}}}for(B=[],R=y;R=R.parentNode;)R.nodeType===1&&B.push({element:R,left:R.scrollLeft,top:R.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<B.length;y++){var U=B[y];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}Us=!!yr,gr=yr=null}finally{Tt=s,G.p=a,O.T=n}}t.current=e,Kt=2}}function fm(){if(Kt===2){Kt=0;var t=Nn,e=Wi,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=O.T,O.T=null;var a=G.p;G.p=2;var s=Tt;Tt|=4;try{Hd(t,e.alternate,e)}finally{Tt=s,G.p=a,O.T=n}}Kt=3}}function hm(){if(Kt===4||Kt===3){Kt=0,E0();var t=Nn,e=Wi,n=yn,a=$d;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Kt=5:(Kt=0,Wi=Nn=null,dm(t,t.pendingLanes));var s=t.pendingLanes;if(s===0&&(Bn=null),Au(n),e=e.stateNode,ge&&typeof ge.onCommitFiberRoot=="function")try{ge.onCommitFiberRoot(ma,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=O.T,s=G.p,G.p=2,O.T=null;try{for(var r=t.onRecoverableError,f=0;f<a.length;f++){var y=a[f];r(y.value,{componentStack:y.stack})}}finally{O.T=e,G.p=s}}(yn&3)!==0&&bs(),ke(t),s=t.pendingLanes,(n&261930)!==0&&(s&42)!==0?t===ir?Fa++:(Fa=0,ir=t):Fa=0,Wa(0)}}function dm(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Oa(e)))}function bs(){return cm(),fm(),hm(),mm()}function mm(){if(Kt!==5)return!1;var t=Nn,e=er;er=0;var n=Au(yn),a=O.T,s=G.p;try{G.p=32>n?32:n,O.T=null,n=nr,nr=null;var r=Nn,f=yn;if(Kt=0,Wi=Nn=null,yn=0,(Tt&6)!==0)throw Error(o(331));var y=Tt;if(Tt|=4,Fd(r.current),Kd(r,r.current,f,n),Tt=y,Wa(0,!1),ge&&typeof ge.onPostCommitFiberRoot=="function")try{ge.onPostCommitFiberRoot(ma,r)}catch{}return!0}finally{G.p=s,O.T=a,dm(t,e)}}function pm(t,e,n){e=Oe(n,e),e=No(t.stateNode,e,2),t=zn(t,e,2),t!==null&&(ya(t,2),ke(t))}function Et(t,e,n){if(t.tag===3)pm(t,t,n);else for(;e!==null;){if(e.tag===3){pm(e,t,n);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Bn===null||!Bn.has(a))){t=Oe(n,t),n=yd(2),a=zn(e,n,2),a!==null&&(gd(n,a,e,t),ya(a,2),ke(a));break}}e=e.return}}function sr(t,e,n){var a=t.pingCache;if(a===null){a=t.pingCache=new Fv;var s=new Set;a.set(e,s)}else s=a.get(e),s===void 0&&(s=new Set,a.set(e,s));s.has(n)||($o=!0,s.add(n),t=t1.bind(null,t,e,n),e.then(t,t))}function t1(t,e,n){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Ct===t&&(ht&n)===n&&(Bt===4||Bt===3&&(ht&62914560)===ht&&300>ye()-ps?(Tt&2)===0&&Pi(t,0):Io|=n,Fi===ht&&(Fi=0)),ke(t)}function ym(t,e){e===0&&(e=cf()),t=ei(t,e),t!==null&&(ya(t,e),ke(t))}function e1(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),ym(t,n)}function n1(t,e){var n=0;switch(t.tag){case 31:case 13:var a=t.stateNode,s=t.memoizedState;s!==null&&(n=s.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(e),ym(t,n)}function i1(t,e){return vu(t,e)}var As=null,Ii=null,ur=!1,Es=!1,or=!1,Ln=0;function ke(t){t!==Ii&&t.next===null&&(Ii===null?As=Ii=t:Ii=Ii.next=t),Es=!0,ur||(ur=!0,l1())}function Wa(t,e){if(!or&&Es){or=!0;do for(var n=!1,a=As;a!==null;){if(t!==0){var s=a.pendingLanes;if(s===0)var r=0;else{var f=a.suspendedLanes,y=a.pingedLanes;r=(1<<31-ve(42|t)+1)-1,r&=s&~(f&~y),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,Tm(a,r))}else r=ht,r=Cl(a,a===Ct?r:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(r&3)===0||pa(a,r)||(n=!0,Tm(a,r));a=a.next}while(n);or=!1}}function a1(){gm()}function gm(){Es=ur=!1;var t=0;Ln!==0&&p1()&&(t=Ln);for(var e=ye(),n=null,a=As;a!==null;){var s=a.next,r=vm(a,e);r===0?(a.next=null,n===null?As=s:n.next=s,s===null&&(Ii=n)):(n=a,(t!==0||(r&3)!==0)&&(Es=!0)),a=s}Kt!==0&&Kt!==5||Wa(t),Ln!==0&&(Ln=0)}function vm(t,e){for(var n=t.suspendedLanes,a=t.pingedLanes,s=t.expirationTimes,r=t.pendingLanes&-62914561;0<r;){var f=31-ve(r),y=1<<f,T=s[f];T===-1?((y&n)===0||(y&a)!==0)&&(s[f]=V0(y,e)):T<=e&&(t.expiredLanes|=y),r&=~y}if(e=Ct,n=ht,n=Cl(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,n===0||t===e&&(At===2||At===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&Su(a),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||pa(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(a!==null&&Su(a),Au(n)){case 2:case 8:n=of;break;case 32:n=El;break;case 268435456:n=rf;break;default:n=El}return a=Sm.bind(null,t),n=vu(n,a),t.callbackPriority=e,t.callbackNode=n,e}return a!==null&&a!==null&&Su(a),t.callbackPriority=2,t.callbackNode=null,2}function Sm(t,e){if(Kt!==0&&Kt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(bs()&&t.callbackNode!==n)return null;var a=ht;return a=Cl(t,t===Ct?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(tm(t,a,e),vm(t,ye()),t.callbackNode!=null&&t.callbackNode===n?Sm.bind(null,t):null)}function Tm(t,e){if(bs())return null;tm(t,e,!0)}function l1(){g1(function(){(Tt&6)!==0?vu(uf,a1):gm()})}function rr(){if(Ln===0){var t=ji;t===0&&(t=Ml,Ml<<=1,(Ml&261888)===0&&(Ml=256)),Ln=t}return Ln}function bm(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Vl(""+t)}function Am(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 s1(t,e,n,a,s){if(e==="submit"&&n&&n.stateNode===s){var r=bm((s[re]||null).action),f=a.submitter;f&&(e=(e=f[re]||null)?bm(e.formAction):f.getAttribute("formAction"),e!==null&&(r=e,f=null));var y=new Nl("action","action",null,a,s);t.push({event:y,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Ln!==0){var T=f?Am(s,f):new FormData(s);Ro(n,{pending:!0,data:T,method:s.method,action:r},null,T)}}else typeof r=="function"&&(y.preventDefault(),T=f?Am(s,f):new FormData(s),Ro(n,{pending:!0,data:T,method:s.method,action:r},r,T))},currentTarget:s}]})}}for(var cr=0;cr<Qu.length;cr++){var fr=Qu[cr],u1=fr.toLowerCase(),o1=fr[0].toUpperCase()+fr.slice(1);He(u1,"on"+o1)}He(If,"onAnimationEnd"),He(th,"onAnimationIteration"),He(eh,"onAnimationStart"),He("dblclick","onDoubleClick"),He("focusin","onFocus"),He("focusout","onBlur"),He(Mv,"onTransitionRun"),He(Dv,"onTransitionStart"),He(xv,"onTransitionCancel"),He(nh,"onTransitionEnd"),Mi("onMouseEnter",["mouseout","mouseover"]),Mi("onMouseLeave",["mouseout","mouseover"]),Mi("onPointerEnter",["pointerout","pointerover"]),Mi("onPointerLeave",["pointerout","pointerover"]),Pn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Pn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Pn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Pn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Pn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Pn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Pa="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(" "),r1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Pa));function Em(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var a=t[n],s=a.event;a=a.listeners;t:{var r=void 0;if(e)for(var f=a.length-1;0<=f;f--){var y=a[f],T=y.instance,x=y.currentTarget;if(y=y.listener,T!==r&&s.isPropagationStopped())break t;r=y,s.currentTarget=x;try{r(s)}catch(_){jl(_)}s.currentTarget=null,r=T}else for(f=0;f<a.length;f++){if(y=a[f],T=y.instance,x=y.currentTarget,y=y.listener,T!==r&&s.isPropagationStopped())break t;r=y,s.currentTarget=x;try{r(s)}catch(_){jl(_)}s.currentTarget=null,r=T}}}}function ft(t,e){var n=e[Eu];n===void 0&&(n=e[Eu]=new Set);var a=t+"__bubble";n.has(a)||(Mm(e,t,2,!1),n.add(a))}function hr(t,e,n){var a=0;e&&(a|=4),Mm(n,t,a,e)}var Ms="_reactListening"+Math.random().toString(36).slice(2);function dr(t){if(!t[Ms]){t[Ms]=!0,gf.forEach(function(n){n!=="selectionchange"&&(r1.has(n)||hr(n,!1,t),hr(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Ms]||(e[Ms]=!0,hr("selectionchange",!1,e))}}function Mm(t,e,n,a){switch(Im(e)){case 2:var s=L1;break;case 8:s=j1;break;default:s=zr}n=s.bind(null,e,n,t),s=void 0,!_u||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(s=!0),a?s!==void 0?t.addEventListener(e,n,{capture:!0,passive:s}):t.addEventListener(e,n,!0):s!==void 0?t.addEventListener(e,n,{passive:s}):t.addEventListener(e,n,!1)}function mr(t,e,n,a,s){var r=a;if((e&1)===0&&(e&2)===0&&a!==null)t:for(;;){if(a===null)return;var f=a.tag;if(f===3||f===4){var y=a.stateNode.containerInfo;if(y===s)break;if(f===4)for(f=a.return;f!==null;){var T=f.tag;if((T===3||T===4)&&f.stateNode.containerInfo===s)return;f=f.return}for(;y!==null;){if(f=bi(y),f===null)return;if(T=f.tag,T===5||T===6||T===26||T===27){a=r=f;continue t}y=y.parentNode}}a=a.return}Rf(function(){var x=r,_=Ou(n),B=[];t:{var C=ih.get(t);if(C!==void 0){var R=Nl,K=t;switch(t){case"keypress":if(Ul(n)===0)break t;case"keydown":case"keyup":R=nv;break;case"focusin":K="focus",R=wu;break;case"focusout":K="blur",R=wu;break;case"beforeblur":case"afterblur":R=wu;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":R=_f;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":R=Z0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":R=lv;break;case If:case th:case eh:R=J0;break;case nh:R=uv;break;case"scroll":case"scrollend":R=G0;break;case"wheel":R=rv;break;case"copy":case"cut":case"paste":R=F0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":R=Bf;break;case"toggle":case"beforetoggle":R=fv}var et=(e&4)!==0,xt=!et&&(t==="scroll"||t==="scrollend"),M=et?C!==null?C+"Capture":null:C;et=[];for(var A=x,D;A!==null;){var U=A;if(D=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||D===null||M===null||(U=Sa(A,M),U!=null&&et.push($a(A,U,D))),xt)break;A=A.return}0<et.length&&(C=new R(C,K,null,n,_),B.push({event:C,listeners:et}))}}if((e&7)===0){t:{if(C=t==="mouseover"||t==="pointerover",R=t==="mouseout"||t==="pointerout",C&&n!==Ru&&(K=n.relatedTarget||n.fromElement)&&(bi(K)||K[Ti]))break t;if((R||C)&&(C=_.window===_?_:(C=_.ownerDocument)?C.defaultView||C.parentWindow:window,R?(K=n.relatedTarget||n.toElement,R=x,K=K?bi(K):null,K!==null&&(xt=d(K),et=K.tag,K!==xt||et!==5&&et!==27&&et!==6)&&(K=null)):(R=null,K=x),R!==K)){if(et=_f,U="onMouseLeave",M="onMouseEnter",A="mouse",(t==="pointerout"||t==="pointerover")&&(et=Bf,U="onPointerLeave",M="onPointerEnter",A="pointer"),xt=R==null?C:va(R),D=K==null?C:va(K),C=new et(U,A+"leave",R,n,_),C.target=xt,C.relatedTarget=D,U=null,bi(_)===x&&(et=new et(M,A+"enter",K,n,_),et.target=D,et.relatedTarget=xt,U=et),xt=U,R&&K)e:{for(et=c1,M=R,A=K,D=0,U=M;U;U=et(U))D++;U=0;for(var I=A;I;I=et(I))U++;for(;0<D-U;)M=et(M),D--;for(;0<U-D;)A=et(A),U--;for(;D--;){if(M===A||A!==null&&M===A.alternate){et=M;break e}M=et(M),A=et(A)}et=null}else et=null;R!==null&&Dm(B,C,R,et,!1),K!==null&&xt!==null&&Dm(B,xt,K,et,!0)}}t:{if(C=x?va(x):window,R=C.nodeName&&C.nodeName.toLowerCase(),R==="select"||R==="input"&&C.type==="file")var vt=Gf;else if(Yf(C))if(Xf)vt=bv;else{vt=Sv;var F=vv}else R=C.nodeName,!R||R.toLowerCase()!=="input"||C.type!=="checkbox"&&C.type!=="radio"?x&&zu(x.elementType)&&(vt=Gf):vt=Tv;if(vt&&(vt=vt(t,x))){qf(B,vt,n,_);break t}F&&F(t,C,x),t==="focusout"&&x&&C.type==="number"&&x.memoizedProps.value!=null&&Cu(C,"number",C.value)}switch(F=x?va(x):window,t){case"focusin":(Yf(F)||F.contentEditable==="true")&&(Oi=F,Gu=x,Ca=null);break;case"focusout":Ca=Gu=Oi=null;break;case"mousedown":Xu=!0;break;case"contextmenu":case"mouseup":case"dragend":Xu=!1,Pf(B,n,_);break;case"selectionchange":if(Ev)break;case"keydown":case"keyup":Pf(B,n,_)}var ut;if(ju)t:{switch(t){case"compositionstart":var dt="onCompositionStart";break t;case"compositionend":dt="onCompositionEnd";break t;case"compositionupdate":dt="onCompositionUpdate";break t}dt=void 0}else Ri?jf(t,n)&&(dt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(dt="onCompositionStart");dt&&(Nf&&n.locale!=="ko"&&(Ri||dt!=="onCompositionStart"?dt==="onCompositionEnd"&&Ri&&(ut=Of()):(bn=_,Uu="value"in bn?bn.value:bn.textContent,Ri=!0)),F=Ds(x,dt),0<F.length&&(dt=new Uf(dt,t,null,n,_),B.push({event:dt,listeners:F}),ut?dt.data=ut:(ut=Hf(n),ut!==null&&(dt.data=ut)))),(ut=dv?mv(t,n):pv(t,n))&&(dt=Ds(x,"onBeforeInput"),0<dt.length&&(F=new Uf("onBeforeInput","beforeinput",null,n,_),B.push({event:F,listeners:dt}),F.data=ut)),s1(B,t,x,n,_)}Em(B,e)})}function $a(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Ds(t,e){for(var n=e+"Capture",a=[];t!==null;){var s=t,r=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||r===null||(s=Sa(t,n),s!=null&&a.unshift($a(t,s,r)),s=Sa(t,e),s!=null&&a.push($a(t,s,r))),t.tag===3)return a;t=t.return}return[]}function c1(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Dm(t,e,n,a,s){for(var r=e._reactName,f=[];n!==null&&n!==a;){var y=n,T=y.alternate,x=y.stateNode;if(y=y.tag,T!==null&&T===a)break;y!==5&&y!==26&&y!==27||x===null||(T=x,s?(x=Sa(n,r),x!=null&&f.unshift($a(n,x,T))):s||(x=Sa(n,r),x!=null&&f.push($a(n,x,T)))),n=n.return}f.length!==0&&t.push({event:e,listeners:f})}var f1=/\r\n?/g,h1=/\u0000|\uFFFD/g;function xm(t){return(typeof t=="string"?t:""+t).replace(f1,`
9
- `).replace(h1,"")}function Cm(t,e){return e=xm(e),xm(t)===e}function Dt(t,e,n,a,s,r){switch(n){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||xi(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&xi(t,""+a);break;case"className":Rl(t,"class",a);break;case"tabIndex":Rl(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Rl(t,n,a);break;case"style":Cf(t,a,r);break;case"data":if(e!=="object"){Rl(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=Vl(""+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 r=="function"&&(n==="formAction"?(e!=="input"&&Dt(t,e,"name",s.name,s,null),Dt(t,e,"formEncType",s.formEncType,s,null),Dt(t,e,"formMethod",s.formMethod,s,null),Dt(t,e,"formTarget",s.formTarget,s,null)):(Dt(t,e,"encType",s.encType,s,null),Dt(t,e,"method",s.method,s,null),Dt(t,e,"target",s.target,s,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=Vl(""+a),t.setAttribute(n,a);break;case"onClick":a!=null&&(t.onclick=tn);break;case"onScroll":a!=null&&ft("scroll",t);break;case"onScrollEnd":a!=null&&ft("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(o(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=Vl(""+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":ft("beforetoggle",t),ft("toggle",t),zl(t,"popover",a);break;case"xlinkActuate":Ie(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Ie(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Ie(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Ie(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Ie(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Ie(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Ie(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Ie(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Ie(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":zl(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=Y0.get(n)||n,zl(t,n,a))}}function pr(t,e,n,a,s,r){switch(n){case"style":Cf(t,a,r);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"children":typeof a=="string"?xi(t,a):(typeof a=="number"||typeof a=="bigint")&&xi(t,""+a);break;case"onScroll":a!=null&&ft("scroll",t);break;case"onScrollEnd":a!=null&&ft("scrollend",t);break;case"onClick":a!=null&&(t.onclick=tn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!vf.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),e=n.slice(2,s?n.length-7:void 0),r=t[re]||null,r=r!=null?r[n]:null,typeof r=="function"&&t.removeEventListener(e,r,s),typeof a=="function")){typeof r!="function"&&r!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,a,s);break t}n in t?t[n]=a:a===!0?t.setAttribute(n,""):zl(t,n,a)}}}function ee(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ft("error",t),ft("load",t);var a=!1,s=!1,r;for(r in n)if(n.hasOwnProperty(r)){var f=n[r];if(f!=null)switch(r){case"src":a=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Dt(t,e,r,f,n,null)}}s&&Dt(t,e,"srcSet",n.srcSet,n,null),a&&Dt(t,e,"src",n.src,n,null);return;case"input":ft("invalid",t);var y=r=f=s=null,T=null,x=null;for(a in n)if(n.hasOwnProperty(a)){var _=n[a];if(_!=null)switch(a){case"name":s=_;break;case"type":f=_;break;case"checked":T=_;break;case"defaultChecked":x=_;break;case"value":r=_;break;case"defaultValue":y=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(o(137,e));break;default:Dt(t,e,a,_,n,null)}}Ef(t,r,y,T,x,f,s,!1);return;case"select":ft("invalid",t),a=f=r=null;for(s in n)if(n.hasOwnProperty(s)&&(y=n[s],y!=null))switch(s){case"value":r=y;break;case"defaultValue":f=y;break;case"multiple":a=y;default:Dt(t,e,s,y,n,null)}e=r,n=f,t.multiple=!!a,e!=null?Di(t,!!a,e,!1):n!=null&&Di(t,!!a,n,!0);return;case"textarea":ft("invalid",t),r=s=a=null;for(f in n)if(n.hasOwnProperty(f)&&(y=n[f],y!=null))switch(f){case"value":a=y;break;case"defaultValue":s=y;break;case"children":r=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(o(91));break;default:Dt(t,e,f,y,n,null)}Df(t,a,s,r);return;case"option":for(T in n)n.hasOwnProperty(T)&&(a=n[T],a!=null)&&(T==="selected"?t.selected=a&&typeof a!="function"&&typeof a!="symbol":Dt(t,e,T,a,n,null));return;case"dialog":ft("beforetoggle",t),ft("toggle",t),ft("cancel",t),ft("close",t);break;case"iframe":case"object":ft("load",t);break;case"video":case"audio":for(a=0;a<Pa.length;a++)ft(Pa[a],t);break;case"image":ft("error",t),ft("load",t);break;case"details":ft("toggle",t);break;case"embed":case"source":case"link":ft("error",t),ft("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(x in n)if(n.hasOwnProperty(x)&&(a=n[x],a!=null))switch(x){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Dt(t,e,x,a,n,null)}return;default:if(zu(e)){for(_ in n)n.hasOwnProperty(_)&&(a=n[_],a!==void 0&&pr(t,e,_,a,n,void 0));return}}for(y in n)n.hasOwnProperty(y)&&(a=n[y],a!=null&&Dt(t,e,y,a,n,null))}function d1(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 s=null,r=null,f=null,y=null,T=null,x=null,_=null;for(R in n){var B=n[R];if(n.hasOwnProperty(R)&&B!=null)switch(R){case"checked":break;case"value":break;case"defaultValue":T=B;default:a.hasOwnProperty(R)||Dt(t,e,R,null,a,B)}}for(var C in a){var R=a[C];if(B=n[C],a.hasOwnProperty(C)&&(R!=null||B!=null))switch(C){case"type":r=R;break;case"name":s=R;break;case"checked":x=R;break;case"defaultChecked":_=R;break;case"value":f=R;break;case"defaultValue":y=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(o(137,e));break;default:R!==B&&Dt(t,e,C,R,a,B)}}xu(t,f,y,T,x,_,r,s);return;case"select":R=f=y=C=null;for(r in n)if(T=n[r],n.hasOwnProperty(r)&&T!=null)switch(r){case"value":break;case"multiple":R=T;default:a.hasOwnProperty(r)||Dt(t,e,r,null,a,T)}for(s in a)if(r=a[s],T=n[s],a.hasOwnProperty(s)&&(r!=null||T!=null))switch(s){case"value":C=r;break;case"defaultValue":y=r;break;case"multiple":f=r;default:r!==T&&Dt(t,e,s,r,a,T)}e=y,n=f,a=R,C!=null?Di(t,!!n,C,!1):!!a!=!!n&&(e!=null?Di(t,!!n,e,!0):Di(t,!!n,n?[]:"",!1));return;case"textarea":R=C=null;for(y in n)if(s=n[y],n.hasOwnProperty(y)&&s!=null&&!a.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:Dt(t,e,y,null,a,s)}for(f in a)if(s=a[f],r=n[f],a.hasOwnProperty(f)&&(s!=null||r!=null))switch(f){case"value":C=s;break;case"defaultValue":R=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(o(91));break;default:s!==r&&Dt(t,e,f,s,a,r)}Mf(t,C,R);return;case"option":for(var K in n)C=n[K],n.hasOwnProperty(K)&&C!=null&&!a.hasOwnProperty(K)&&(K==="selected"?t.selected=!1:Dt(t,e,K,null,a,C));for(T in a)C=a[T],R=n[T],a.hasOwnProperty(T)&&C!==R&&(C!=null||R!=null)&&(T==="selected"?t.selected=C&&typeof C!="function"&&typeof C!="symbol":Dt(t,e,T,C,a,R));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 et in n)C=n[et],n.hasOwnProperty(et)&&C!=null&&!a.hasOwnProperty(et)&&Dt(t,e,et,null,a,C);for(x in a)if(C=a[x],R=n[x],a.hasOwnProperty(x)&&C!==R&&(C!=null||R!=null))switch(x){case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(o(137,e));break;default:Dt(t,e,x,C,a,R)}return;default:if(zu(e)){for(var xt in n)C=n[xt],n.hasOwnProperty(xt)&&C!==void 0&&!a.hasOwnProperty(xt)&&pr(t,e,xt,void 0,a,C);for(_ in a)C=a[_],R=n[_],!a.hasOwnProperty(_)||C===R||C===void 0&&R===void 0||pr(t,e,_,C,a,R);return}}for(var M in n)C=n[M],n.hasOwnProperty(M)&&C!=null&&!a.hasOwnProperty(M)&&Dt(t,e,M,null,a,C);for(B in a)C=a[B],R=n[B],!a.hasOwnProperty(B)||C===R||C==null&&R==null||Dt(t,e,B,C,a,R)}function zm(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function m1(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var s=n[a],r=s.transferSize,f=s.initiatorType,y=s.duration;if(r&&y&&zm(f)){for(f=0,y=s.responseEnd,a+=1;a<n.length;a++){var T=n[a],x=T.startTime;if(x>y)break;var _=T.transferSize,B=T.initiatorType;_&&zm(B)&&(T=T.responseEnd,f+=_*(T<y?1:(y-x)/(T-x)))}if(--a,e+=8*(r+f)/(s.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 yr=null,gr=null;function xs(t){return t.nodeType===9?t:t.ownerDocument}function Rm(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 Om(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 vr(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 Sr=null;function p1(){var t=window.event;return t&&t.type==="popstate"?t===Sr?!1:(Sr=t,!0):(Sr=null,!1)}var Vm=typeof setTimeout=="function"?setTimeout:void 0,y1=typeof clearTimeout=="function"?clearTimeout:void 0,_m=typeof Promise=="function"?Promise:void 0,g1=typeof queueMicrotask=="function"?queueMicrotask:typeof _m<"u"?function(t){return _m.resolve(null).then(t).catch(v1)}:Vm;function v1(t){setTimeout(function(){throw t})}function jn(t){return t==="head"}function Um(t,e){var n=e,a=0;do{var s=n.nextSibling;if(t.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"||n==="/&"){if(a===0){t.removeChild(s),ia(e);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")Ia(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,Ia(n);for(var r=n.firstChild;r;){var f=r.nextSibling,y=r.nodeName;r[ga]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&r.rel.toLowerCase()==="stylesheet"||n.removeChild(r),r=f}}else n==="body"&&Ia(t.ownerDocument.body);n=s}while(n);ia(e)}function Bm(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 Tr(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":Tr(n),Mu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function S1(t,e,n,a){for(;t.nodeType===1;){var s=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[ga])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(r=t.getAttribute("rel"),r==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(r!==s.rel||t.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||t.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||t.getAttribute("title")!==(s.title==null?null:s.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(r=t.getAttribute("src"),(r!==(s.src==null?null:s.src)||t.getAttribute("type")!==(s.type==null?null:s.type)||t.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&r&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var r=s.name==null?null:""+s.name;if(s.type==="hidden"&&t.getAttribute("name")===r)return t}else return t;if(t=Ne(t.nextSibling),t===null)break}return null}function T1(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Ne(t.nextSibling),t===null))return null;return t}function Nm(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ne(t.nextSibling),t===null))return null;return t}function br(t){return t.data==="$?"||t.data==="$~"}function Ar(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function b1(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 Ne(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 Er=null;function wm(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Ne(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function Lm(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 jm(t,e,n){switch(e=xs(n),t){case"html":if(t=e.documentElement,!t)throw Error(o(452));return t;case"head":if(t=e.head,!t)throw Error(o(453));return t;case"body":if(t=e.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function Ia(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Mu(t)}var we=new Map,Hm=new Set;function Cs(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var gn=G.d;G.d={f:A1,r:E1,D:M1,C:D1,L:x1,m:C1,X:R1,S:z1,M:O1};function A1(){var t=gn.f(),e=vs();return t||e}function E1(t){var e=Ai(t);e!==null&&e.tag===5&&e.type==="form"?nd(e):gn.r(t)}var ta=typeof document>"u"?null:document;function Ym(t,e,n){var a=ta;if(a&&typeof e=="string"&&e){var s=ze(e);s='link[rel="'+t+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),Hm.has(s)||(Hm.add(s),t={rel:t,crossOrigin:n,href:e},a.querySelector(s)===null&&(e=a.createElement("link"),ee(e,"link",t),kt(e),a.head.appendChild(e)))}}function M1(t){gn.D(t),Ym("dns-prefetch",t,null)}function D1(t,e){gn.C(t,e),Ym("preconnect",t,e)}function x1(t,e,n){gn.L(t,e,n);var a=ta;if(a&&t&&e){var s='link[rel="preload"][as="'+ze(e)+'"]';e==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+ze(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+ze(n.imageSizes)+'"]')):s+='[href="'+ze(t)+'"]';var r=s;switch(e){case"style":r=ea(t);break;case"script":r=na(t)}we.has(r)||(t=S({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),we.set(r,t),a.querySelector(s)!==null||e==="style"&&a.querySelector(tl(r))||e==="script"&&a.querySelector(el(r))||(e=a.createElement("link"),ee(e,"link",t),kt(e),a.head.appendChild(e)))}}function C1(t,e){gn.m(t,e);var n=ta;if(n&&t){var a=e&&typeof e.as=="string"?e.as:"script",s='link[rel="modulepreload"][as="'+ze(a)+'"][href="'+ze(t)+'"]',r=s;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=na(t)}if(!we.has(r)&&(t=S({rel:"modulepreload",href:t},e),we.set(r,t),n.querySelector(s)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(el(r)))return}a=n.createElement("link"),ee(a,"link",t),kt(a),n.head.appendChild(a)}}}function z1(t,e,n){gn.S(t,e,n);var a=ta;if(a&&t){var s=Ei(a).hoistableStyles,r=ea(t);e=e||"default";var f=s.get(r);if(!f){var y={loading:0,preload:null};if(f=a.querySelector(tl(r)))y.loading=5;else{t=S({rel:"stylesheet",href:t,"data-precedence":e},n),(n=we.get(r))&&Mr(t,n);var T=f=a.createElement("link");kt(T),ee(T,"link",t),T._p=new Promise(function(x,_){T.onload=x,T.onerror=_}),T.addEventListener("load",function(){y.loading|=1}),T.addEventListener("error",function(){y.loading|=2}),y.loading|=4,zs(f,e,a)}f={type:"stylesheet",instance:f,count:1,state:y},s.set(r,f)}}}function R1(t,e){gn.X(t,e);var n=ta;if(n&&t){var a=Ei(n).hoistableScripts,s=na(t),r=a.get(s);r||(r=n.querySelector(el(s)),r||(t=S({src:t,async:!0},e),(e=we.get(s))&&Dr(t,e),r=n.createElement("script"),kt(r),ee(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(s,r))}}function O1(t,e){gn.M(t,e);var n=ta;if(n&&t){var a=Ei(n).hoistableScripts,s=na(t),r=a.get(s);r||(r=n.querySelector(el(s)),r||(t=S({src:t,async:!0,type:"module"},e),(e=we.get(s))&&Dr(t,e),r=n.createElement("script"),kt(r),ee(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(s,r))}}function qm(t,e,n,a){var s=(s=rt.current)?Cs(s):null;if(!s)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=ea(n.href),n=Ei(s).hoistableStyles,a=n.get(e),a||(a={type:"style",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=ea(n.href);var r=Ei(s).hoistableStyles,f=r.get(t);if(f||(s=s.ownerDocument||s,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(t,f),(r=s.querySelector(tl(t)))&&!r._p&&(f.instance=r,f.state.loading=5),we.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},we.set(t,n),r||V1(s,t,n,f.state))),e&&a===null)throw Error(o(528,""));return f}if(e&&a!==null)throw Error(o(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=na(n),n=Ei(s).hoistableScripts,a=n.get(e),a||(a={type:"script",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function ea(t){return'href="'+ze(t)+'"'}function tl(t){return'link[rel="stylesheet"]['+t+"]"}function Gm(t){return S({},t,{"data-precedence":t.precedence,precedence:null})}function V1(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}),ee(e,"link",n),kt(e),t.head.appendChild(e))}function na(t){return'[src="'+ze(t)+'"]'}function el(t){return"script[async]"+t}function Xm(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+ze(n.href)+'"]');if(a)return e.instance=a,kt(a),a;var s=S({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),kt(a),ee(a,"style",s),zs(a,n.precedence,t),e.instance=a;case"stylesheet":s=ea(n.href);var r=t.querySelector(tl(s));if(r)return e.state.loading|=4,e.instance=r,kt(r),r;a=Gm(n),(s=we.get(s))&&Mr(a,s),r=(t.ownerDocument||t).createElement("link"),kt(r);var f=r;return f._p=new Promise(function(y,T){f.onload=y,f.onerror=T}),ee(r,"link",a),e.state.loading|=4,zs(r,n.precedence,t),e.instance=r;case"script":return r=na(n.src),(s=t.querySelector(el(r)))?(e.instance=s,kt(s),s):(a=n,(s=we.get(r))&&(a=S({},n),Dr(a,s)),t=t.ownerDocument||t,s=t.createElement("script"),kt(s),ee(s,"link",a),t.head.appendChild(s),e.instance=s);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,zs(a,n.precedence,t));return e.instance}function zs(t,e,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=a.length?a[a.length-1]:null,r=s,f=0;f<a.length;f++){var y=a[f];if(y.dataset.precedence===e)r=y;else if(r!==s)break}r?r.parentNode.insertBefore(t,r.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function Mr(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Dr(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Rs=null;function Zm(t,e,n){if(Rs===null){var a=new Map,s=Rs=new Map;s.set(n,a)}else s=Rs,a=s.get(n),a||(a=new Map,s.set(n,a));if(a.has(t))return a;for(a.set(t,null),n=n.getElementsByTagName(t),s=0;s<n.length;s++){var r=n[s];if(!(r[ga]||r[Pt]||t==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var f=r.getAttribute(e)||"";f=t+f;var y=a.get(f);y?y.push(r):a.set(f,[r])}}return a}function Qm(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function _1(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 Km(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function U1(t,e,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var s=ea(a.href),r=e.querySelector(tl(s));if(r){e=r._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Os.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=r,kt(r);return}r=e.ownerDocument||e,a=Gm(a),(s=we.get(s))&&Mr(a,s),r=r.createElement("link"),kt(r);var f=r;f._p=new Promise(function(y,T){f.onload=y,f.onerror=T}),ee(r,"link",a),n.instance=r}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=Os.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var xr=0;function B1(t,e){return t.stylesheets&&t.count===0&&_s(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var a=setTimeout(function(){if(t.stylesheets&&_s(t,t.stylesheets),t.unsuspend){var r=t.unsuspend;t.unsuspend=null,r()}},6e4+e);0<t.imgBytes&&xr===0&&(xr=62500*m1());var s=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&_s(t,t.stylesheets),t.unsuspend)){var r=t.unsuspend;t.unsuspend=null,r()}},(t.imgBytes>xr?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(s)}}:null}function Os(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)_s(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Vs=null;function _s(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Vs=new Map,e.forEach(N1,t),Vs=null,Os.call(t))}function N1(t,e){if(!(e.state.loading&4)){var n=Vs.get(t);if(n)var a=n.get(null);else{n=new Map,Vs.set(t,n);for(var s=t.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<s.length;r++){var f=s[r];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(n.set(f.dataset.precedence,f),a=f)}a&&n.set(null,a)}s=e.instance,f=s.getAttribute("data-precedence"),r=n.get(f)||a,r===a&&n.set(null,s),n.set(f,s),this.count++,a=Os.bind(this),s.addEventListener("load",a),s.addEventListener("error",a),r?r.parentNode.insertBefore(s,r.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(s,t.firstChild)),e.state.loading|=4}}var nl={$$typeof:H,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function w1(t,e,n,a,s,r,f,y,T){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=Tu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Tu(0),this.hiddenUpdates=Tu(null),this.identifierPrefix=a,this.onUncaughtError=s,this.onCaughtError=r,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function Jm(t,e,n,a,s,r,f,y,T,x,_,B){return t=new w1(t,e,n,f,T,x,_,B,y),e=1,r===!0&&(e|=24),r=Te(3,null,null,e),t.current=r,r.stateNode=t,e=ao(),e.refCount++,t.pooledCache=e,e.refCount++,r.memoizedState={element:a,isDehydrated:n,cache:e},oo(r),t}function km(t){return t?(t=Ui,t):Ui}function Fm(t,e,n,a,s,r){s=km(s),a.context===null?a.context=s:a.pendingContext=s,a=Cn(e),a.payload={element:n},r=r===void 0?null:r,r!==null&&(a.callback=r),n=zn(t,a,e),n!==null&&(pe(n,t,e),Ba(n,t,e))}function Wm(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Cr(t,e){Wm(t,e),(t=t.alternate)&&Wm(t,e)}function Pm(t){if(t.tag===13||t.tag===31){var e=ei(t,67108864);e!==null&&pe(e,t,67108864),Cr(t,67108864)}}function $m(t){if(t.tag===13||t.tag===31){var e=De();e=bu(e);var n=ei(t,e);n!==null&&pe(n,t,e),Cr(t,e)}}var Us=!0;function L1(t,e,n,a){var s=O.T;O.T=null;var r=G.p;try{G.p=2,zr(t,e,n,a)}finally{G.p=r,O.T=s}}function j1(t,e,n,a){var s=O.T;O.T=null;var r=G.p;try{G.p=8,zr(t,e,n,a)}finally{G.p=r,O.T=s}}function zr(t,e,n,a){if(Us){var s=Rr(a);if(s===null)mr(t,e,a,Bs,n),tp(t,a);else if(Y1(s,t,e,n,a))a.stopPropagation();else if(tp(t,a),e&4&&-1<H1.indexOf(t)){for(;s!==null;){var r=Ai(s);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var f=Wn(r.pendingLanes);if(f!==0){var y=r;for(y.pendingLanes|=2,y.entangledLanes|=2;f;){var T=1<<31-ve(f);y.entanglements[1]|=T,f&=~T}ke(r),(Tt&6)===0&&(ys=ye()+500,Wa(0))}}break;case 31:case 13:y=ei(r,2),y!==null&&pe(y,r,2),vs(),Cr(r,2)}if(r=Rr(a),r===null&&mr(t,e,a,Bs,n),r===s)break;s=r}s!==null&&a.stopPropagation()}else mr(t,e,a,null,n)}}function Rr(t){return t=Ou(t),Or(t)}var Bs=null;function Or(t){if(Bs=null,t=bi(t),t!==null){var e=d(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=h(e),t!==null)return t;t=null}else if(n===31){if(t=p(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 Bs=t,null}function Im(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(M0()){case uf:return 2;case of:return 8;case El:case D0:return 32;case rf:return 268435456;default:return 32}default:return 32}}var Vr=!1,Hn=null,Yn=null,qn=null,il=new Map,al=new Map,Gn=[],H1="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 tp(t,e){switch(t){case"focusin":case"focusout":Hn=null;break;case"dragenter":case"dragleave":Yn=null;break;case"mouseover":case"mouseout":qn=null;break;case"pointerover":case"pointerout":il.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":al.delete(e.pointerId)}}function ll(t,e,n,a,s,r){return t===null||t.nativeEvent!==r?(t={blockedOn:e,domEventName:n,eventSystemFlags:a,nativeEvent:r,targetContainers:[s]},e!==null&&(e=Ai(e),e!==null&&Pm(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,s!==null&&e.indexOf(s)===-1&&e.push(s),t)}function Y1(t,e,n,a,s){switch(e){case"focusin":return Hn=ll(Hn,t,e,n,a,s),!0;case"dragenter":return Yn=ll(Yn,t,e,n,a,s),!0;case"mouseover":return qn=ll(qn,t,e,n,a,s),!0;case"pointerover":var r=s.pointerId;return il.set(r,ll(il.get(r)||null,t,e,n,a,s)),!0;case"gotpointercapture":return r=s.pointerId,al.set(r,ll(al.get(r)||null,t,e,n,a,s)),!0}return!1}function ep(t){var e=bi(t.target);if(e!==null){var n=d(e);if(n!==null){if(e=n.tag,e===13){if(e=h(n),e!==null){t.blockedOn=e,pf(t.priority,function(){$m(n)});return}}else if(e===31){if(e=p(n),e!==null){t.blockedOn=e,pf(t.priority,function(){$m(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 Ns(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Rr(t.nativeEvent);if(n===null){n=t.nativeEvent;var a=new n.constructor(n.type,n);Ru=a,n.target.dispatchEvent(a),Ru=null}else return e=Ai(n),e!==null&&Pm(e),t.blockedOn=n,!1;e.shift()}return!0}function np(t,e,n){Ns(t)&&n.delete(e)}function q1(){Vr=!1,Hn!==null&&Ns(Hn)&&(Hn=null),Yn!==null&&Ns(Yn)&&(Yn=null),qn!==null&&Ns(qn)&&(qn=null),il.forEach(np),al.forEach(np)}function ws(t,e){t.blockedOn===e&&(t.blockedOn=null,Vr||(Vr=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,q1)))}var Ls=null;function ip(t){Ls!==t&&(Ls=t,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Ls===t&&(Ls=null);for(var e=0;e<t.length;e+=3){var n=t[e],a=t[e+1],s=t[e+2];if(typeof a!="function"){if(Or(a||n)===null)continue;break}var r=Ai(n);r!==null&&(t.splice(e,3),e-=3,Ro(r,{pending:!0,data:s,method:n.method,action:a},a,s))}}))}function ia(t){function e(T){return ws(T,t)}Hn!==null&&ws(Hn,t),Yn!==null&&ws(Yn,t),qn!==null&&ws(qn,t),il.forEach(e),al.forEach(e);for(var n=0;n<Gn.length;n++){var a=Gn[n];a.blockedOn===t&&(a.blockedOn=null)}for(;0<Gn.length&&(n=Gn[0],n.blockedOn===null);)ep(n),n.blockedOn===null&&Gn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var s=n[a],r=n[a+1],f=s[re]||null;if(typeof r=="function")f||ip(n);else if(f){var y=null;if(r&&r.hasAttribute("formAction")){if(s=r,f=r[re]||null)y=f.formAction;else if(Or(s)!==null)continue}else y=f.action;typeof y=="function"?n[a+1]=y:(n.splice(a,3),a-=3),ip(n)}}}function ap(){function t(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(f){return s=f})},focusReset:"manual",scroll:"manual"})}function e(){s!==null&&(s(),s=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,s=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),s!==null&&(s(),s=null)}}}function _r(t){this._internalRoot=t}js.prototype.render=_r.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var n=e.current,a=De();Fm(n,a,t,e,null,null)},js.prototype.unmount=_r.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Fm(t.current,2,null,t,null,null),vs(),e[Ti]=null}};function js(t){this._internalRoot=t}js.prototype.unstable_scheduleHydration=function(t){if(t){var e=mf();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Gn.length&&e!==0&&e<Gn[n].priority;n++);Gn.splice(n,0,t),n===0&&ep(t)}};var lp=l.version;if(lp!=="19.2.5")throw Error(o(527,lp,"19.2.5"));G.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=m(e),t=t!==null?v(t):null,t=t===null?null:t.stateNode,t};var G1={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Hs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Hs.isDisabled&&Hs.supportsFiber)try{ma=Hs.inject(G1),ge=Hs}catch{}}return ul.createRoot=function(t,e){if(!c(t))throw Error(o(299));var n=!1,a="",s=hd,r=dd,f=md;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(s=e.onUncaughtError),e.onCaughtError!==void 0&&(r=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError)),e=Jm(t,1,!1,null,null,n,a,null,s,r,f,ap),t[Ti]=e.current,dr(t),new _r(e)},ul.hydrateRoot=function(t,e,n){if(!c(t))throw Error(o(299));var a=!1,s="",r=hd,f=dd,y=md,T=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(r=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(y=n.onRecoverableError),n.formState!==void 0&&(T=n.formState)),e=Jm(t,1,!0,e,n??null,a,s,T,r,f,y,ap),e.context=km(null),n=e.current,a=De(),a=bu(a),s=Cn(a),s.callback=null,zn(n,s,a),n=a,e.current.lanes=n,ya(e,n),ke(e),t[Ti]=e.current,dr(t),new js(e)},ul.version="19.2.5",ul}var pp;function tS(){if(pp)return Nr.exports;pp=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(),Nr.exports=I1(),Nr.exports}var eS=tS();const fE=By(eS);const Ny=(...i)=>i.filter((l,u,o)=>!!l&&l.trim()!==""&&o.indexOf(l)===u).join(" ").trim();const nS=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const iS=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,u,o)=>o?o.toUpperCase():u.toLowerCase());const yp=i=>{const l=iS(i);return l.charAt(0).toUpperCase()+l.slice(1)};var Hr={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const aS=i=>{for(const l in i)if(l.startsWith("aria-")||l==="role"||l==="title")return!0;return!1},lS=X.createContext({}),sS=()=>X.useContext(lS),uS=X.forwardRef(({color:i,size:l,strokeWidth:u,absoluteStrokeWidth:o,className:c="",children:d,iconNode:h,...p},g)=>{const{size:m=24,strokeWidth:v=2,absoluteStrokeWidth:S=!1,color:b="currentColor",className:z=""}=sS()??{},V=o??S?Number(u??v)*24/Number(l??m):u??v;return X.createElement("svg",{ref:g,...Hr,width:l??m??Hr.width,height:l??m??Hr.height,stroke:i??b,strokeWidth:V,className:Ny("lucide",z,c),...!d&&!aS(p)&&{"aria-hidden":"true"},...p},[...h.map(([w,L])=>X.createElement(w,L)),...Array.isArray(d)?d:[d]])});const Cc=(i,l)=>{const u=X.forwardRef(({className:o,...c},d)=>X.createElement(uS,{ref:d,iconNode:l,className:Ny(`lucide-${nS(yp(i))}`,`lucide-${i}`,o),...c}));return u.displayName=yp(i),u};const oS=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],hE=Cc("key-round",oS);const rS=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],dE=Cc("sparkles",rS);const cS=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],mE=Cc("x",cS),zc=X.createContext({});function Rc(i){const l=X.useRef(null);return l.current===null&&(l.current=i()),l.current}const fS=typeof window<"u",wy=fS?X.useLayoutEffect:X.useEffect,ru=X.createContext(null);function Oc(i,l){i.indexOf(l)===-1&&i.push(l)}function tu(i,l){const u=i.indexOf(l);u>-1&&i.splice(u,1)}const $e=(i,l,u)=>u>l?l:u<i?i:u;let Vc=()=>{};const Kn={},Ly=i=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(i);function jy(i){return typeof i=="object"&&i!==null}const Hy=i=>/^0[^.\s]+$/u.test(i);function Yy(i){let l;return()=>(l===void 0&&(l=i()),l)}const je=i=>i,hS=(i,l)=>u=>l(i(u)),vl=(...i)=>i.reduce(hS),ml=(i,l,u)=>{const o=l-i;return o===0?1:(u-i)/o};class _c{constructor(){this.subscriptions=[]}add(l){return Oc(this.subscriptions,l),()=>tu(this.subscriptions,l)}notify(l,u,o){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](l,u,o);else for(let d=0;d<c;d++){const h=this.subscriptions[d];h&&h(l,u,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const xe=i=>i*1e3,Le=i=>i/1e3;function qy(i,l){return l?i*(1e3/l):0}const Gy=(i,l,u)=>(((1-3*u+3*l)*i+(3*u-6*l))*i+3*l)*i,dS=1e-7,mS=12;function pS(i,l,u,o,c){let d,h,p=0;do h=l+(u-l)/2,d=Gy(h,o,c)-i,d>0?u=h:l=h;while(Math.abs(d)>dS&&++p<mS);return h}function Sl(i,l,u,o){if(i===l&&u===o)return je;const c=d=>pS(d,0,1,i,u);return d=>d===0||d===1?d:Gy(c(d),l,o)}const Xy=i=>l=>l<=.5?i(2*l)/2:(2-i(2*(1-l)))/2,Zy=i=>l=>1-i(1-l),Qy=Sl(.33,1.53,.69,.99),Uc=Zy(Qy),Ky=Xy(Uc),Jy=i=>i>=1?1:(i*=2)<1?.5*Uc(i):.5*(2-Math.pow(2,-10*(i-1))),Bc=i=>1-Math.sin(Math.acos(i)),ky=Zy(Bc),Fy=Xy(Bc),yS=Sl(.42,0,1,1),gS=Sl(0,0,.58,1),Wy=Sl(.42,0,.58,1),vS=i=>Array.isArray(i)&&typeof i[0]!="number",Py=i=>Array.isArray(i)&&typeof i[0]=="number",SS={linear:je,easeIn:yS,easeInOut:Wy,easeOut:gS,circIn:Bc,circInOut:Fy,circOut:ky,backIn:Uc,backInOut:Ky,backOut:Qy,anticipate:Jy},TS=i=>typeof i=="string",gp=i=>{if(Py(i)){Vc(i.length===4);const[l,u,o,c]=i;return Sl(l,u,o,c)}else if(TS(i))return SS[i];return i},Ys=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function bS(i,l){let u=new Set,o=new Set,c=!1,d=!1;const h=new WeakSet;let p={delta:0,timestamp:0,isProcessing:!1};function g(v){h.has(v)&&(m.schedule(v),i()),v(p)}const m={schedule:(v,S=!1,b=!1)=>{const V=b&&c?u:o;return S&&h.add(v),V.add(v),v},cancel:v=>{o.delete(v),h.delete(v)},process:v=>{if(p=v,c){d=!0;return}c=!0;const S=u;u=o,o=S,u.forEach(g),u.clear(),c=!1,d&&(d=!1,m.process(v))}};return m}const AS=40;function $y(i,l){let u=!1,o=!0;const c={delta:0,timestamp:0,isProcessing:!1},d=()=>u=!0,h=Ys.reduce((H,Y)=>(H[Y]=bS(d),H),{}),{setup:p,read:g,resolveKeyframes:m,preUpdate:v,update:S,preRender:b,render:z,postRender:V}=h,w=()=>{const H=Kn.useManualTiming,Y=H?c.timestamp:performance.now();u=!1,H||(c.delta=o?1e3/60:Math.max(Math.min(Y-c.timestamp,AS),1)),c.timestamp=Y,c.isProcessing=!0,p.process(c),g.process(c),m.process(c),v.process(c),S.process(c),b.process(c),z.process(c),V.process(c),c.isProcessing=!1,u&&l&&(o=!1,i(w))},L=()=>{u=!0,o=!0,c.isProcessing||i(w)};return{schedule:Ys.reduce((H,Y)=>{const P=h[Y];return H[Y]=(ot,tt=!1,W=!1)=>(u||L(),P.schedule(ot,tt,W)),H},{}),cancel:H=>{for(let Y=0;Y<Ys.length;Y++)h[Ys[Y]].cancel(H)},state:c,steps:h}}const{schedule:zt,cancel:Jn,state:ne,steps:Yr}=$y(typeof requestAnimationFrame<"u"?requestAnimationFrame:je,!0);let Qs;function ES(){Qs=void 0}const ue={now:()=>(Qs===void 0&&ue.set(ne.isProcessing||Kn.useManualTiming?ne.timestamp:performance.now()),Qs),set:i=>{Qs=i,queueMicrotask(ES)}},Iy=i=>l=>typeof l=="string"&&l.startsWith(i),tg=Iy("--"),MS=Iy("var(--"),Nc=i=>MS(i)?DS.test(i.split("/*")[0].trim()):!1,DS=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function vp(i){return typeof i!="string"?!1:i.split("/*")[0].includes("var(--")}const ca={test:i=>typeof i=="number",parse:parseFloat,transform:i=>i},pl={...ca,transform:i=>$e(0,1,i)},qs={...ca,default:1},cl=i=>Math.round(i*1e5)/1e5,wc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function xS(i){return i==null}const CS=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Lc=(i,l)=>u=>!!(typeof u=="string"&&CS.test(u)&&u.startsWith(i)||l&&!xS(u)&&Object.prototype.hasOwnProperty.call(u,l)),eg=(i,l,u)=>o=>{if(typeof o!="string")return o;const[c,d,h,p]=o.match(wc);return{[i]:parseFloat(c),[l]:parseFloat(d),[u]:parseFloat(h),alpha:p!==void 0?parseFloat(p):1}},zS=i=>$e(0,255,i),qr={...ca,transform:i=>Math.round(zS(i))},yi={test:Lc("rgb","red"),parse:eg("red","green","blue"),transform:({red:i,green:l,blue:u,alpha:o=1})=>"rgba("+qr.transform(i)+", "+qr.transform(l)+", "+qr.transform(u)+", "+cl(pl.transform(o))+")"};function RS(i){let l="",u="",o="",c="";return i.length>5?(l=i.substring(1,3),u=i.substring(3,5),o=i.substring(5,7),c=i.substring(7,9)):(l=i.substring(1,2),u=i.substring(2,3),o=i.substring(3,4),c=i.substring(4,5),l+=l,u+=u,o+=o,c+=c),{red:parseInt(l,16),green:parseInt(u,16),blue:parseInt(o,16),alpha:c?parseInt(c,16)/255:1}}const nc={test:Lc("#"),parse:RS,transform:yi.transform},Tl=i=>({test:l=>typeof l=="string"&&l.endsWith(i)&&l.split(" ").length===1,parse:parseFloat,transform:l=>`${l}${i}`}),Zn=Tl("deg"),Pe=Tl("%"),J=Tl("px"),OS=Tl("vh"),VS=Tl("vw"),Sp={...Pe,parse:i=>Pe.parse(i)/100,transform:i=>Pe.transform(i*100)},la={test:Lc("hsl","hue"),parse:eg("hue","saturation","lightness"),transform:({hue:i,saturation:l,lightness:u,alpha:o=1})=>"hsla("+Math.round(i)+", "+Pe.transform(cl(l))+", "+Pe.transform(cl(u))+", "+cl(pl.transform(o))+")"},Qt={test:i=>yi.test(i)||nc.test(i)||la.test(i),parse:i=>yi.test(i)?yi.parse(i):la.test(i)?la.parse(i):nc.parse(i),transform:i=>typeof i=="string"?i:i.hasOwnProperty("red")?yi.transform(i):la.transform(i),getAnimatableNone:i=>{const l=Qt.parse(i);return l.alpha=0,Qt.transform(l)}},_S=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function US(i){return isNaN(i)&&typeof i=="string"&&(i.match(wc)?.length||0)+(i.match(_S)?.length||0)>0}const ng="number",ig="color",BS="var",NS="var(",Tp="${}",wS=/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 oa(i){const l=i.toString(),u=[],o={color:[],number:[],var:[]},c=[];let d=0;const p=l.replace(wS,g=>(Qt.test(g)?(o.color.push(d),c.push(ig),u.push(Qt.parse(g))):g.startsWith(NS)?(o.var.push(d),c.push(BS),u.push(g)):(o.number.push(d),c.push(ng),u.push(parseFloat(g))),++d,Tp)).split(Tp);return{values:u,split:p,indexes:o,types:c}}function LS(i){return oa(i).values}function ag({split:i,types:l}){const u=i.length;return o=>{let c="";for(let d=0;d<u;d++)if(c+=i[d],o[d]!==void 0){const h=l[d];h===ng?c+=cl(o[d]):h===ig?c+=Qt.transform(o[d]):c+=o[d]}return c}}function jS(i){return ag(oa(i))}const HS=i=>typeof i=="number"?0:Qt.test(i)?Qt.getAnimatableNone(i):i,YS=(i,l)=>typeof i=="number"?l?.trim().endsWith("/")?i:0:HS(i);function qS(i){const l=oa(i);return ag(l)(l.values.map((o,c)=>YS(o,l.split[c])))}const Ze={test:US,parse:LS,createTransformer:jS,getAnimatableNone:qS};function Gr(i,l,u){return u<0&&(u+=1),u>1&&(u-=1),u<1/6?i+(l-i)*6*u:u<1/2?l:u<2/3?i+(l-i)*(2/3-u)*6:i}function GS({hue:i,saturation:l,lightness:u,alpha:o}){i/=360,l/=100,u/=100;let c=0,d=0,h=0;if(!l)c=d=h=u;else{const p=u<.5?u*(1+l):u+l-u*l,g=2*u-p;c=Gr(g,p,i+1/3),d=Gr(g,p,i),h=Gr(g,p,i-1/3)}return{red:Math.round(c*255),green:Math.round(d*255),blue:Math.round(h*255),alpha:o}}function eu(i,l){return u=>u>0?l:i}const Vt=(i,l,u)=>i+(l-i)*u,Xr=(i,l,u)=>{const o=i*i,c=u*(l*l-o)+o;return c<0?0:Math.sqrt(c)},XS=[nc,yi,la],ZS=i=>XS.find(l=>l.test(i));function bp(i){const l=ZS(i);if(!l)return!1;let u=l.parse(i);return l===la&&(u=GS(u)),u}const Ap=(i,l)=>{const u=bp(i),o=bp(l);if(!u||!o)return eu(i,l);const c={...u};return d=>(c.red=Xr(u.red,o.red,d),c.green=Xr(u.green,o.green,d),c.blue=Xr(u.blue,o.blue,d),c.alpha=Vt(u.alpha,o.alpha,d),yi.transform(c))},ic=new Set(["none","hidden"]);function QS(i,l){return ic.has(i)?u=>u<=0?i:l:u=>u>=1?l:i}function KS(i,l){return u=>Vt(i,l,u)}function jc(i){return typeof i=="number"?KS:typeof i=="string"?Nc(i)?eu:Qt.test(i)?Ap:FS:Array.isArray(i)?lg:typeof i=="object"?Qt.test(i)?Ap:JS:eu}function lg(i,l){const u=[...i],o=u.length,c=i.map((d,h)=>jc(d)(d,l[h]));return d=>{for(let h=0;h<o;h++)u[h]=c[h](d);return u}}function JS(i,l){const u={...i,...l},o={};for(const c in u)i[c]!==void 0&&l[c]!==void 0&&(o[c]=jc(i[c])(i[c],l[c]));return c=>{for(const d in o)u[d]=o[d](c);return u}}function kS(i,l){const u=[],o={color:0,var:0,number:0};for(let c=0;c<l.values.length;c++){const d=l.types[c],h=i.indexes[d][o[d]],p=i.values[h]??0;u[c]=p,o[d]++}return u}const FS=(i,l)=>{const u=Ze.createTransformer(l),o=oa(i),c=oa(l);return o.indexes.var.length===c.indexes.var.length&&o.indexes.color.length===c.indexes.color.length&&o.indexes.number.length>=c.indexes.number.length?ic.has(i)&&!c.values.length||ic.has(l)&&!o.values.length?QS(i,l):vl(lg(kS(o,c),c.values),u):eu(i,l)};function sg(i,l,u){return typeof i=="number"&&typeof l=="number"&&typeof u=="number"?Vt(i,l,u):jc(i)(i,l)}const WS=i=>{const l=({timestamp:u})=>i(u);return{start:(u=!0)=>zt.update(l,u),stop:()=>Jn(l),now:()=>ne.isProcessing?ne.timestamp:ue.now()}},ug=(i,l,u=10)=>{let o="";const c=Math.max(Math.round(l/u),2);for(let d=0;d<c;d++)o+=Math.round(i(d/(c-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},nu=2e4;function Hc(i){let l=0;const u=50;let o=i.next(l);for(;!o.done&&l<nu;)l+=u,o=i.next(l);return l>=nu?1/0:l}function PS(i,l=100,u){const o=u({...i,keyframes:[0,l]}),c=Math.min(Hc(o),nu);return{type:"keyframes",ease:d=>o.next(c*d).value/l,duration:Le(c)}}const Nt={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 ac(i,l){return i*Math.sqrt(1-l*l)}const $S=12;function IS(i,l,u){let o=u;for(let c=1;c<$S;c++)o=o-i(o)/l(o);return o}const Zr=.001;function tT({duration:i=Nt.duration,bounce:l=Nt.bounce,velocity:u=Nt.velocity,mass:o=Nt.mass}){let c,d,h=1-l;h=$e(Nt.minDamping,Nt.maxDamping,h),i=$e(Nt.minDuration,Nt.maxDuration,Le(i)),h<1?(c=m=>{const v=m*h,S=v*i,b=v-u,z=ac(m,h),V=Math.exp(-S);return Zr-b/z*V},d=m=>{const S=m*h*i,b=S*u+u,z=Math.pow(h,2)*Math.pow(m,2)*i,V=Math.exp(-S),w=ac(Math.pow(m,2),h);return(-c(m)+Zr>0?-1:1)*((b-z)*V)/w}):(c=m=>{const v=Math.exp(-m*i),S=(m-u)*i+1;return-Zr+v*S},d=m=>{const v=Math.exp(-m*i),S=(u-m)*(i*i);return v*S});const p=5/i,g=IS(c,d,p);if(i=xe(i),isNaN(g))return{stiffness:Nt.stiffness,damping:Nt.damping,duration:i};{const m=Math.pow(g,2)*o;return{stiffness:m,damping:h*2*Math.sqrt(o*m),duration:i}}}const eT=["duration","bounce"],nT=["stiffness","damping","mass"];function Ep(i,l){return l.some(u=>i[u]!==void 0)}function iT(i){let l={velocity:Nt.velocity,stiffness:Nt.stiffness,damping:Nt.damping,mass:Nt.mass,isResolvedFromDuration:!1,...i};if(!Ep(i,nT)&&Ep(i,eT))if(l.velocity=0,i.visualDuration){const u=i.visualDuration,o=2*Math.PI/(u*1.2),c=o*o,d=2*$e(.05,1,1-(i.bounce||0))*Math.sqrt(c);l={...l,mass:Nt.mass,stiffness:c,damping:d}}else{const u=tT({...i,velocity:0});l={...l,...u,mass:Nt.mass},l.isResolvedFromDuration=!0}return l}function iu(i=Nt.visualDuration,l=Nt.bounce){const u=typeof i!="object"?{visualDuration:i,keyframes:[0,1],bounce:l}:i;let{restSpeed:o,restDelta:c}=u;const d=u.keyframes[0],h=u.keyframes[u.keyframes.length-1],p={done:!1,value:d},{stiffness:g,damping:m,mass:v,duration:S,velocity:b,isResolvedFromDuration:z}=iT({...u,velocity:-Le(u.velocity||0)}),V=b||0,w=m/(2*Math.sqrt(g*v)),L=h-d,j=Le(Math.sqrt(g/v)),q=Math.abs(L)<5;o||(o=q?Nt.restSpeed.granular:Nt.restSpeed.default),c||(c=q?Nt.restDelta.granular:Nt.restDelta.default);let H,Y,P,ot,tt,W;if(w<1)P=ac(j,w),ot=(V+w*j*L)/P,H=$=>{const mt=Math.exp(-w*j*$);return h-mt*(ot*Math.sin(P*$)+L*Math.cos(P*$))},tt=w*j*ot+L*P,W=w*j*L-ot*P,Y=$=>Math.exp(-w*j*$)*(tt*Math.sin(P*$)+W*Math.cos(P*$));else if(w===1){H=mt=>h-Math.exp(-j*mt)*(L+(V+j*L)*mt);const $=V+j*L;Y=mt=>Math.exp(-j*mt)*(j*$*mt-V)}else{const $=j*Math.sqrt(w*w-1);H=Yt=>{const wt=Math.exp(-w*j*Yt),O=Math.min($*Yt,300);return h-wt*((V+w*j*L)*Math.sinh(O)+$*L*Math.cosh(O))/$};const mt=(V+w*j*L)/$,gt=w*j*mt-L*$,Wt=w*j*L-mt*$;Y=Yt=>{const wt=Math.exp(-w*j*Yt),O=Math.min($*Yt,300);return wt*(gt*Math.sinh(O)+Wt*Math.cosh(O))}}const nt={calculatedDuration:z&&S||null,velocity:$=>xe(Y($)),next:$=>{if(!z&&w<1){const gt=Math.exp(-w*j*$),Wt=Math.sin(P*$),Yt=Math.cos(P*$),wt=h-gt*(ot*Wt+L*Yt),O=xe(gt*(tt*Wt+W*Yt));return p.done=Math.abs(O)<=o&&Math.abs(h-wt)<=c,p.value=p.done?h:wt,p}const mt=H($);if(z)p.done=$>=S;else{const gt=xe(Y($));p.done=Math.abs(gt)<=o&&Math.abs(h-mt)<=c}return p.value=p.done?h:mt,p},toString:()=>{const $=Math.min(Hc(nt),nu),mt=ug(gt=>nt.next($*gt).value,$,30);return $+"ms "+mt},toTransition:()=>{}};return nt}iu.applyToOptions=i=>{const l=PS(i,100,iu);return i.ease=l.ease,i.duration=xe(l.duration),i.type="keyframes",i};const aT=5;function og(i,l,u){const o=Math.max(l-aT,0);return qy(u-i(o),l-o)}function lc({keyframes:i,velocity:l=0,power:u=.8,timeConstant:o=325,bounceDamping:c=10,bounceStiffness:d=500,modifyTarget:h,min:p,max:g,restDelta:m=.5,restSpeed:v}){const S=i[0],b={done:!1,value:S},z=W=>p!==void 0&&W<p||g!==void 0&&W>g,V=W=>p===void 0?g:g===void 0||Math.abs(p-W)<Math.abs(g-W)?p:g;let w=u*l;const L=S+w,j=h===void 0?L:h(L);j!==L&&(w=j-S);const q=W=>-w*Math.exp(-W/o),H=W=>j+q(W),Y=W=>{const nt=q(W),$=H(W);b.done=Math.abs(nt)<=m,b.value=b.done?j:$};let P,ot;const tt=W=>{z(b.value)&&(P=W,ot=iu({keyframes:[b.value,V(b.value)],velocity:og(H,W,b.value),damping:c,stiffness:d,restDelta:m,restSpeed:v}))};return tt(0),{calculatedDuration:null,next:W=>{let nt=!1;return!ot&&P===void 0&&(nt=!0,Y(W),tt(W)),P!==void 0&&W>=P?ot.next(W-P):(!nt&&Y(W),b)}}}function lT(i,l,u){const o=[],c=u||Kn.mix||sg,d=i.length-1;for(let h=0;h<d;h++){let p=c(i[h],i[h+1]);if(l){const g=Array.isArray(l)?l[h]||je:l;p=vl(g,p)}o.push(p)}return o}function sT(i,l,{clamp:u=!0,ease:o,mixer:c}={}){const d=i.length;if(Vc(d===l.length),d===1)return()=>l[0];if(d===2&&l[0]===l[1])return()=>l[1];const h=i[0]===i[1];i[0]>i[d-1]&&(i=[...i].reverse(),l=[...l].reverse());const p=lT(l,o,c),g=p.length,m=v=>{if(h&&v<i[0])return l[0];let S=0;if(g>1)for(;S<i.length-2&&!(v<i[S+1]);S++);const b=ml(i[S],i[S+1],v);return p[S](b)};return u?v=>m($e(i[0],i[d-1],v)):m}function uT(i,l){const u=i[i.length-1];for(let o=1;o<=l;o++){const c=ml(0,l,o);i.push(Vt(u,1,c))}}function oT(i){const l=[0];return uT(l,i.length-1),l}function rT(i,l){return i.map(u=>u*l)}function cT(i,l){return i.map(()=>l||Wy).splice(0,i.length-1)}function fl({duration:i=300,keyframes:l,times:u,ease:o="easeInOut"}){const c=vS(o)?o.map(gp):gp(o),d={done:!1,value:l[0]},h=rT(u&&u.length===l.length?u:oT(l),i),p=sT(h,l,{ease:Array.isArray(c)?c:cT(l,c)});return{calculatedDuration:i,next:g=>(d.value=p(g),d.done=g>=i,d)}}const fT=i=>i!==null;function cu(i,{repeat:l,repeatType:u="loop"},o,c=1){const d=i.filter(fT),p=c<0||l&&u!=="loop"&&l%2===1?0:d.length-1;return!p||o===void 0?d[p]:o}const hT={decay:lc,inertia:lc,tween:fl,keyframes:fl,spring:iu};function rg(i){typeof i.type=="string"&&(i.type=hT[i.type])}class Yc{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(l=>{this.resolve=l})}notifyFinished(){this.resolve()}then(l,u){return this.finished.then(l,u)}}const dT=i=>i/100;class au extends Yc{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:u}=this.options;u&&u.updatedAt!==ue.now()&&this.tick(ue.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=l,this.initAnimation(),this.play(),l.autoplay===!1&&this.pause()}initAnimation(){const{options:l}=this;rg(l);const{type:u=fl,repeat:o=0,repeatDelay:c=0,repeatType:d,velocity:h=0}=l;let{keyframes:p}=l;const g=u||fl;g!==fl&&typeof p[0]!="number"&&(this.mixKeyframes=vl(dT,sg(p[0],p[1])),p=[0,100]);const m=g({...l,keyframes:p});d==="mirror"&&(this.mirroredGenerator=g({...l,keyframes:[...p].reverse(),velocity:-h})),m.calculatedDuration===null&&(m.calculatedDuration=Hc(m));const{calculatedDuration:v}=m;this.calculatedDuration=v,this.resolvedDuration=v+c,this.totalDuration=this.resolvedDuration*(o+1)-c,this.generator=m}updateTime(l){const u=Math.round(l-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=u}tick(l,u=!1){const{generator:o,totalDuration:c,mixKeyframes:d,mirroredGenerator:h,resolvedDuration:p,calculatedDuration:g}=this;if(this.startTime===null)return o.next(0);const{delay:m=0,keyframes:v,repeat:S,repeatType:b,repeatDelay:z,type:V,onUpdate:w,finalKeyframe:L}=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)),u?this.currentTime=l:this.updateTime(l);const j=this.currentTime-m*(this.playbackSpeed>=0?1:-1),q=this.playbackSpeed>=0?j<0:j>c;this.currentTime=Math.max(j,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let H=this.currentTime,Y=o;if(S){const W=Math.min(this.currentTime,c)/p;let nt=Math.floor(W),$=W%1;!$&&W>=1&&($=1),$===1&&nt--,nt=Math.min(nt,S+1),nt%2&&(b==="reverse"?($=1-$,z&&($-=z/p)):b==="mirror"&&(Y=h)),H=$e(0,1,$)*p}let P;q?(this.delayState.value=v[0],P=this.delayState):P=Y.next(H),d&&!q&&(P.value=d(P.value));let{done:ot}=P;!q&&g!==null&&(ot=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const tt=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&ot);return tt&&V!==lc&&(P.value=cu(v,this.options,L,this.speed)),w&&w(P.value),tt&&this.finish(),P}then(l,u){return this.finished.then(l,u)}get duration(){return Le(this.calculatedDuration)}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+Le(l)}get time(){return Le(this.currentTime)}set time(l){l=xe(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(){const l=this.currentTime;if(l<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(l);const u=this.generator.next(l).value;return og(o=>this.generator.next(o).value,l,u)}get speed(){return this.playbackSpeed}set speed(l){const u=this.playbackSpeed!==l;u&&this.driver&&this.updateTime(ue.now()),this.playbackSpeed=l,u&&this.driver&&(this.time=Le(this.currentTime))}play(){if(this.isStopped)return;const{driver:l=WS,startTime:u}=this.options;this.driver||(this.driver=l(c=>this.tick(c))),this.options.onPlay?.();const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=u??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ue.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(l){return this.startTime=0,this.tick(l,!0)}attachTimeline(l){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),l.observe(this)}}function mT(i){for(let l=1;l<i.length;l++)i[l]??(i[l]=i[l-1])}const gi=i=>i*180/Math.PI,sc=i=>{const l=gi(Math.atan2(i[1],i[0]));return uc(l)},pT={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:i=>(Math.abs(i[0])+Math.abs(i[3]))/2,rotate:sc,rotateZ:sc,skewX:i=>gi(Math.atan(i[1])),skewY:i=>gi(Math.atan(i[2])),skew:i=>(Math.abs(i[1])+Math.abs(i[2]))/2},uc=i=>(i=i%360,i<0&&(i+=360),i),Mp=sc,Dp=i=>Math.sqrt(i[0]*i[0]+i[1]*i[1]),xp=i=>Math.sqrt(i[4]*i[4]+i[5]*i[5]),yT={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Dp,scaleY:xp,scale:i=>(Dp(i)+xp(i))/2,rotateX:i=>uc(gi(Math.atan2(i[6],i[5]))),rotateY:i=>uc(gi(Math.atan2(-i[2],i[0]))),rotateZ:Mp,rotate:Mp,skewX:i=>gi(Math.atan(i[4])),skewY:i=>gi(Math.atan(i[1])),skew:i=>(Math.abs(i[1])+Math.abs(i[4]))/2};function oc(i){return i.includes("scale")?1:0}function rc(i,l){if(!i||i==="none")return oc(l);const u=i.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,c;if(u)o=yT,c=u;else{const p=i.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=pT,c=p}if(!c)return oc(l);const d=o[l],h=c[1].split(",").map(vT);return typeof d=="function"?d(h):h[d]}const gT=(i,l)=>{const{transform:u="none"}=getComputedStyle(i);return rc(u,l)};function vT(i){return parseFloat(i.trim())}const fa=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ha=new Set(fa),Cp=i=>i===ca||i===J,ST=new Set(["x","y","z"]),TT=fa.filter(i=>!ST.has(i));function bT(i){const l=[];return TT.forEach(u=>{const o=i.getValue(u);o!==void 0&&(l.push([u,o.get()]),o.set(u.startsWith("scale")?1:0))}),l}const Qn={width:({x:i},{paddingLeft:l="0",paddingRight:u="0",boxSizing:o})=>{const c=i.max-i.min;return o==="border-box"?c:c-parseFloat(l)-parseFloat(u)},height:({y:i},{paddingTop:l="0",paddingBottom:u="0",boxSizing:o})=>{const c=i.max-i.min;return o==="border-box"?c:c-parseFloat(l)-parseFloat(u)},top:(i,{top:l})=>parseFloat(l),left:(i,{left:l})=>parseFloat(l),bottom:({y:i},{top:l})=>parseFloat(l)+(i.max-i.min),right:({x:i},{left:l})=>parseFloat(l)+(i.max-i.min),x:(i,{transform:l})=>rc(l,"x"),y:(i,{transform:l})=>rc(l,"y")};Qn.translateX=Qn.x;Qn.translateY=Qn.y;const vi=new Set;let cc=!1,fc=!1,hc=!1;function cg(){if(fc){const i=Array.from(vi).filter(o=>o.needsMeasurement),l=new Set(i.map(o=>o.element)),u=new Map;l.forEach(o=>{const c=bT(o);c.length&&(u.set(o,c),o.render())}),i.forEach(o=>o.measureInitialState()),l.forEach(o=>{o.render();const c=u.get(o);c&&c.forEach(([d,h])=>{o.getValue(d)?.set(h)})}),i.forEach(o=>o.measureEndState()),i.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}fc=!1,cc=!1,vi.forEach(i=>i.complete(hc)),vi.clear()}function fg(){vi.forEach(i=>{i.readKeyframes(),i.needsMeasurement&&(fc=!0)})}function AT(){hc=!0,fg(),cg(),hc=!1}class qc{constructor(l,u,o,c,d,h=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...l],this.onComplete=u,this.name=o,this.motionValue=c,this.element=d,this.isAsync=h}scheduleResolve(){this.state="scheduled",this.isAsync?(vi.add(this),cc||(cc=!0,zt.read(fg),zt.resolveKeyframes(cg))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:l,name:u,element:o,motionValue:c}=this;if(l[0]===null){const d=c?.get(),h=l[l.length-1];if(d!==void 0)l[0]=d;else if(o&&u){const p=o.readValue(u,h);p!=null&&(l[0]=p)}l[0]===void 0&&(l[0]=h),c&&d===void 0&&c.set(l[0])}mT(l)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(l=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,l),vi.delete(this)}cancel(){this.state==="scheduled"&&(vi.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const ET=i=>i.startsWith("--");function hg(i,l,u){ET(l)?i.style.setProperty(l,u):i.style[l]=u}const MT={};function Gc(i,l){const u=Yy(i);return()=>MT[l]??u()}const DT=Gc(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),pE=Gc(()=>window.ViewTimeline!==void 0,"viewTimeline"),dg=Gc(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),rl=([i,l,u,o])=>`cubic-bezier(${i}, ${l}, ${u}, ${o})`,zp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:rl([0,.65,.55,1]),circOut:rl([.55,0,1,.45]),backIn:rl([.31,.01,.66,-.59]),backOut:rl([.33,1.53,.69,.99])};function mg(i,l){if(i)return typeof i=="function"?dg()?ug(i,l):"ease-out":Py(i)?rl(i):Array.isArray(i)?i.map(u=>mg(u,l)||zp.easeOut):zp[i]}function xT(i,l,u,{delay:o=0,duration:c=300,repeat:d=0,repeatType:h="loop",ease:p="easeOut",times:g}={},m=void 0){const v={[l]:u};g&&(v.offset=g);const S=mg(p,c);Array.isArray(S)&&(v.easing=S);const b={delay:o,duration:c,easing:Array.isArray(S)?"linear":S,fill:"both",iterations:d+1,direction:h==="reverse"?"alternate":"normal"};return m&&(b.pseudoElement=m),i.animate(v,b)}function pg(i){return typeof i=="function"&&"applyToOptions"in i}function CT({type:i,...l}){return pg(i)&&dg()?i.applyToOptions(l):(l.duration??(l.duration=300),l.ease??(l.ease="easeOut"),l)}class yg extends Yc{constructor(l){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!l)return;const{element:u,name:o,keyframes:c,pseudoElement:d,allowFlatten:h=!1,finalKeyframe:p,onComplete:g}=l;this.isPseudoElement=!!d,this.allowFlatten=h,this.options=l,Vc(typeof l.type!="string");const m=CT(l);this.animation=xT(u,o,c,m,d),m.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!d){const v=cu(c,this.options,p,this.speed);this.updateMotionValue&&this.updateMotionValue(v),hg(u,o,v),this.animation.cancel()}g?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:l}=this;l==="idle"||l==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const l=this.options?.element;!this.isPseudoElement&&l?.isConnected&&this.animation.commitStyles?.()}get duration(){const l=this.animation.effect?.getComputedTiming?.().duration||0;return Le(Number(l))}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+Le(l)}get time(){return Le(Number(this.animation.currentTime)||0)}set time(l){const u=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=xe(l),u&&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:u,rangeEnd:o,observe:c}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,l&&DT()?(this.animation.timeline=l,u&&(this.animation.rangeStart=u),o&&(this.animation.rangeEnd=o),je):c(this)}}const gg={anticipate:Jy,backInOut:Ky,circInOut:Fy};function zT(i){return i in gg}function RT(i){typeof i.ease=="string"&&zT(i.ease)&&(i.ease=gg[i.ease])}const Qr=10;class OT extends yg{constructor(l){RT(l),rg(l),super(l),l.startTime!==void 0&&l.autoplay!==!1&&(this.startTime=l.startTime),this.options=l}updateMotionValue(l){const{motionValue:u,onUpdate:o,onComplete:c,element:d,...h}=this.options;if(!u)return;if(l!==void 0){u.set(l);return}const p=new au({...h,autoplay:!1}),g=Math.max(Qr,ue.now()-this.startTime),m=$e(0,Qr,g-Qr),v=p.sample(g).value,{name:S}=this.options;d&&S&&hg(d,S,v),u.setWithVelocity(p.sample(Math.max(0,g-m)).value,v,m),p.stop()}}const Rp=(i,l)=>l==="zIndex"?!1:!!(typeof i=="number"||Array.isArray(i)||typeof i=="string"&&(Ze.test(i)||i==="0")&&!i.startsWith("url("));function VT(i){const l=i[0];if(i.length===1)return!0;for(let u=0;u<i.length;u++)if(i[u]!==l)return!0}function _T(i,l,u,o){const c=i[0];if(c===null)return!1;if(l==="display"||l==="visibility")return!0;const d=i[i.length-1],h=Rp(c,l),p=Rp(d,l);return!h||!p?!1:VT(i)||(u==="spring"||pg(u))&&o}function dc(i){i.duration=0,i.type="keyframes"}const vg=new Set(["opacity","clipPath","filter","transform"]),UT=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function BT(i){for(let l=0;l<i.length;l++)if(typeof i[l]=="string"&&UT.test(i[l]))return!0;return!1}const NT=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),wT=Yy(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function LT(i){const{motionValue:l,name:u,repeatDelay:o,repeatType:c,damping:d,type:h,keyframes:p}=i;if(!(l?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:m,transformTemplate:v}=l.owner.getProps();return wT()&&u&&(vg.has(u)||NT.has(u)&&BT(p))&&(u!=="transform"||!v)&&!m&&!o&&c!=="mirror"&&d!==0&&h!=="inertia"}const jT=40;class HT extends Yc{constructor({autoplay:l=!0,delay:u=0,type:o="keyframes",repeat:c=0,repeatDelay:d=0,repeatType:h="loop",keyframes:p,name:g,motionValue:m,element:v,...S}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ue.now();const b={autoplay:l,delay:u,type:o,repeat:c,repeatDelay:d,repeatType:h,name:g,motionValue:m,element:v,...S},z=v?.KeyframeResolver||qc;this.keyframeResolver=new z(p,(V,w,L)=>this.onKeyframesResolved(V,w,b,!L),g,m,v),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(l,u,o,c){this.keyframeResolver=void 0;const{name:d,type:h,velocity:p,delay:g,isHandoff:m,onUpdate:v}=o;this.resolvedAt=ue.now();let S=!0;_T(l,d,h,p)||(S=!1,(Kn.instantAnimations||!g)&&v?.(cu(l,o,u)),l[0]=l[l.length-1],dc(o),o.repeat=0);const z={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>jT?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:u,...o,keyframes:l},V=S&&!m&&LT(z),w=z.motionValue?.owner?.current;let L;if(V)try{L=new OT({...z,element:w})}catch{L=new au(z)}else L=new au(z);L.finished.then(()=>{this.notifyFinished()}).catch(je),this.pendingTimeline&&(this.stopTimeline=L.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=L}get finished(){return this._animation?this.animation.finished:this._finished}then(l,u){return this.finished.finally(l).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),AT()),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 Sg(i,l,u,o=0,c=1){const d=Array.from(i).sort((m,v)=>m.sortNodePosition(v)).indexOf(l),h=i.size,p=(h-1)*o;return typeof u=="function"?u(d,h):c===1?d*o:p-d*o}const YT=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function qT(i){const l=YT.exec(i);if(!l)return[,];const[,u,o,c]=l;return[`--${u??o}`,c]}function Tg(i,l,u=1){const[o,c]=qT(i);if(!o)return;const d=window.getComputedStyle(l).getPropertyValue(o);if(d){const h=d.trim();return Ly(h)?parseFloat(h):h}return Nc(c)?Tg(c,l,u+1):c}const GT={type:"spring",stiffness:500,damping:25,restSpeed:10},XT=i=>({type:"spring",stiffness:550,damping:i===0?2*Math.sqrt(550):30,restSpeed:10}),ZT={type:"keyframes",duration:.8},QT={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},KT=(i,{keyframes:l})=>l.length>2?ZT:ha.has(i)?i.startsWith("scale")?XT(l[1]):GT:QT;function bg(i,l){if(i?.inherit&&l){const{inherit:u,...o}=i;return{...l,...o}}return i}function Xc(i,l){const u=i?.[l]??i?.default??i;return u!==i?bg(u,i):u}const JT=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function kT(i){for(const l in i)if(!JT.has(l))return!0;return!1}const Zc=(i,l,u,o={},c,d)=>h=>{const p=Xc(o,i)||{},g=p.delay||o.delay||0;let{elapsed:m=0}=o;m=m-xe(g);const v={keyframes:Array.isArray(u)?u:[null,u],ease:"easeOut",velocity:l.getVelocity(),...p,delay:-m,onUpdate:b=>{l.set(b),p.onUpdate&&p.onUpdate(b)},onComplete:()=>{h(),p.onComplete&&p.onComplete()},name:i,motionValue:l,element:d?void 0:c};kT(p)||Object.assign(v,KT(i,v)),v.duration&&(v.duration=xe(v.duration)),v.repeatDelay&&(v.repeatDelay=xe(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let S=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(dc(v),v.delay===0&&(S=!0)),(Kn.instantAnimations||Kn.skipAnimations||c?.shouldSkipAnimations)&&(S=!0,dc(v),v.delay=0),v.allowFlatten=!p.type&&!p.ease,S&&!d&&l.get()!==void 0){const b=cu(v.keyframes,p);if(b!==void 0){zt.update(()=>{v.onUpdate(b),v.onComplete()});return}}return p.isSync?new au(v):new HT(v)};function Op(i){const l=[{},{}];return i?.values.forEach((u,o)=>{l[0][o]=u.get(),l[1][o]=u.getVelocity()}),l}function Qc(i,l,u,o){if(typeof l=="function"){const[c,d]=Op(o);l=l(u!==void 0?u:i.custom,c,d)}if(typeof l=="string"&&(l=i.variants&&i.variants[l]),typeof l=="function"){const[c,d]=Op(o);l=l(u!==void 0?u:i.custom,c,d)}return l}function Si(i,l,u){const o=i.getProps();return Qc(o,l,u!==void 0?u:o.custom,i)}const Ag=new Set(["width","height","top","left","right","bottom",...fa]),Vp=30,FT=i=>!isNaN(parseFloat(i)),_p={current:void 0};class WT{constructor(l,u={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{const c=ue.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const d of this.dependents)d.dirty()},this.hasAnimated=!1,this.setCurrent(l),this.owner=u.owner}setCurrent(l){this.current=l,this.updatedAt=ue.now(),this.canTrackVelocity===null&&l!==void 0&&(this.canTrackVelocity=FT(this.current))}setPrevFrameValue(l=this.current){this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt}onChange(l){return this.on("change",l)}on(l,u){this.events[l]||(this.events[l]=new _c);const o=this.events[l].add(u);return l==="change"?()=>{o(),zt.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const l in this.events)this.events[l].clear()}attach(l,u){this.passiveEffect=l,this.stopPassiveEffect=u}set(l){this.passiveEffect?this.passiveEffect(l,this.updateAndNotify):this.updateAndNotify(l)}setWithVelocity(l,u,o){this.set(u),this.prev=void 0,this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt-o}jump(l,u=!0){this.updateAndNotify(l),this.prev=l,this.prevUpdatedAt=this.prevFrameValue=void 0,u&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(l){this.dependents||(this.dependents=new Set),this.dependents.add(l)}removeDependent(l){this.dependents&&this.dependents.delete(l)}get(){return _p.current&&_p.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const l=ue.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||l-this.updatedAt>Vp)return 0;const u=Math.min(this.updatedAt-this.prevUpdatedAt,Vp);return qy(parseFloat(this.current)-parseFloat(this.prevFrameValue),u)}start(l){return this.stop(),new Promise(u=>{this.hasAnimated=!0,this.animation=l(u),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ra(i,l){return new WT(i,l)}const mc=i=>Array.isArray(i);function PT(i,l,u){i.hasValue(l)?i.getValue(l).set(u):i.addValue(l,ra(u))}function $T(i){return mc(i)?i[i.length-1]||0:i}function IT(i,l){const u=Si(i,l);let{transitionEnd:o={},transition:c={},...d}=u||{};d={...d,...o};for(const h in d){const p=$T(d[h]);PT(i,h,p)}}const ie=i=>!!(i&&i.getVelocity);function tb(i){return!!(ie(i)&&i.add)}function pc(i,l){const u=i.getValue("willChange");if(tb(u))return u.add(l);if(!u&&Kn.WillChange){const o=new Kn.WillChange("auto");i.addValue("willChange",o),o.add(l)}}function Kc(i){return i.replace(/([A-Z])/g,l=>`-${l.toLowerCase()}`)}const eb="framerAppearId",Eg="data-"+Kc(eb);function Mg(i){return i.props[Eg]}function nb({protectedKeys:i,needsAnimating:l},u){const o=i.hasOwnProperty(u)&&l[u]!==!0;return l[u]=!1,o}function Dg(i,l,{delay:u=0,transitionOverride:o,type:c}={}){let{transition:d,transitionEnd:h,...p}=l;const g=i.getDefaultTransition();d=d?bg(d,g):g;const m=d?.reduceMotion;o&&(d=o);const v=[],S=c&&i.animationState&&i.animationState.getState()[c];for(const b in p){const z=i.getValue(b,i.latestValues[b]??null),V=p[b];if(V===void 0||S&&nb(S,b))continue;const w={delay:u,...Xc(d||{},b)},L=z.get();if(L!==void 0&&!z.isAnimating()&&!Array.isArray(V)&&V===L&&!w.velocity){zt.update(()=>z.set(V));continue}let j=!1;if(window.MotionHandoffAnimation){const Y=Mg(i);if(Y){const P=window.MotionHandoffAnimation(Y,b,zt);P!==null&&(w.startTime=P,j=!0)}}pc(i,b);const q=m??i.shouldReduceMotion;z.start(Zc(b,z,V,q&&Ag.has(b)?{type:!1}:w,i,j));const H=z.animation;H&&v.push(H)}if(h){const b=()=>zt.update(()=>{h&&IT(i,h)});v.length?Promise.all(v).then(b):b()}return v}function yc(i,l,u={}){const o=Si(i,l,u.type==="exit"?i.presenceContext?.custom:void 0);let{transition:c=i.getDefaultTransition()||{}}=o||{};u.transitionOverride&&(c=u.transitionOverride);const d=o?()=>Promise.all(Dg(i,o,u)):()=>Promise.resolve(),h=i.variantChildren&&i.variantChildren.size?(g=0)=>{const{delayChildren:m=0,staggerChildren:v,staggerDirection:S}=c;return ib(i,l,g,m,v,S,u)}:()=>Promise.resolve(),{when:p}=c;if(p){const[g,m]=p==="beforeChildren"?[d,h]:[h,d];return g().then(()=>m())}else return Promise.all([d(),h(u.delay)])}function ib(i,l,u=0,o=0,c=0,d=1,h){const p=[];for(const g of i.variantChildren)g.notify("AnimationStart",l),p.push(yc(g,l,{...h,delay:u+(typeof o=="function"?0:o)+Sg(i.variantChildren,g,o,c,d)}).then(()=>g.notify("AnimationComplete",l)));return Promise.all(p)}function ab(i,l,u={}){i.notify("AnimationStart",l);let o;if(Array.isArray(l)){const c=l.map(d=>yc(i,d,u));o=Promise.all(c)}else if(typeof l=="string")o=yc(i,l,u);else{const c=typeof l=="function"?Si(i,l,u.custom):l;o=Promise.all(Dg(i,c,u))}return o.then(()=>{i.notify("AnimationComplete",l)})}const lb={test:i=>i==="auto",parse:i=>i},xg=i=>l=>l.test(i),Cg=[ca,J,Pe,Zn,VS,OS,lb],Up=i=>Cg.find(xg(i));function sb(i){return typeof i=="number"?i===0:i!==null?i==="none"||i==="0"||Hy(i):!0}const ub=new Set(["brightness","contrast","saturate","opacity"]);function ob(i){const[l,u]=i.slice(0,-1).split("(");if(l==="drop-shadow")return i;const[o]=u.match(wc)||[];if(!o)return i;const c=u.replace(o,"");let d=ub.has(l)?1:0;return o!==u&&(d*=100),l+"("+d+c+")"}const rb=/\b([a-z-]*)\(.*?\)/gu,gc={...Ze,getAnimatableNone:i=>{const l=i.match(rb);return l?l.map(ob).join(" "):i}},vc={...Ze,getAnimatableNone:i=>{const l=Ze.parse(i);return Ze.createTransformer(i)(l.map(o=>typeof o=="number"?0:typeof o=="object"?{...o,alpha:1}:o))}},Bp={...ca,transform:Math.round},cb={rotate:Zn,rotateX:Zn,rotateY:Zn,rotateZ:Zn,scale:qs,scaleX:qs,scaleY:qs,scaleZ:qs,skew:Zn,skewX:Zn,skewY:Zn,distance:J,translateX:J,translateY:J,translateZ:J,x:J,y:J,z:J,perspective:J,transformPerspective:J,opacity:pl,originX:Sp,originY:Sp,originZ:J},Jc={borderWidth:J,borderTopWidth:J,borderRightWidth:J,borderBottomWidth:J,borderLeftWidth:J,borderRadius:J,borderTopLeftRadius:J,borderTopRightRadius:J,borderBottomRightRadius:J,borderBottomLeftRadius:J,width:J,maxWidth:J,height:J,maxHeight:J,top:J,right:J,bottom:J,left:J,inset:J,insetBlock:J,insetBlockStart:J,insetBlockEnd:J,insetInline:J,insetInlineStart:J,insetInlineEnd:J,padding:J,paddingTop:J,paddingRight:J,paddingBottom:J,paddingLeft:J,paddingBlock:J,paddingBlockStart:J,paddingBlockEnd:J,paddingInline:J,paddingInlineStart:J,paddingInlineEnd:J,margin:J,marginTop:J,marginRight:J,marginBottom:J,marginLeft:J,marginBlock:J,marginBlockStart:J,marginBlockEnd:J,marginInline:J,marginInlineStart:J,marginInlineEnd:J,fontSize:J,backgroundPositionX:J,backgroundPositionY:J,...cb,zIndex:Bp,fillOpacity:pl,strokeOpacity:pl,numOctaves:Bp},fb={...Jc,color:Qt,backgroundColor:Qt,outlineColor:Qt,fill:Qt,stroke:Qt,borderColor:Qt,borderTopColor:Qt,borderRightColor:Qt,borderBottomColor:Qt,borderLeftColor:Qt,filter:gc,WebkitFilter:gc,mask:vc,WebkitMask:vc},zg=i=>fb[i],hb=new Set([gc,vc]);function Rg(i,l){let u=zg(i);return hb.has(u)||(u=Ze),u.getAnimatableNone?u.getAnimatableNone(l):void 0}const db=new Set(["auto","none","0"]);function mb(i,l,u){let o=0,c;for(;o<i.length&&!c;){const d=i[o];typeof d=="string"&&!db.has(d)&&oa(d).values.length&&(c=i[o]),o++}if(c&&u)for(const d of l)i[d]=Rg(u,c)}class pb extends qc{constructor(l,u,o,c,d){super(l,u,o,c,d,!0)}readKeyframes(){const{unresolvedKeyframes:l,element:u,name:o}=this;if(!u||!u.current)return;super.readKeyframes();for(let v=0;v<l.length;v++){let S=l[v];if(typeof S=="string"&&(S=S.trim(),Nc(S))){const b=Tg(S,u.current);b!==void 0&&(l[v]=b),v===l.length-1&&(this.finalKeyframe=S)}}if(this.resolveNoneKeyframes(),!Ag.has(o)||l.length!==2)return;const[c,d]=l,h=Up(c),p=Up(d),g=vp(c),m=vp(d);if(g!==m&&Qn[o]){this.needsMeasurement=!0;return}if(h!==p)if(Cp(h)&&Cp(p))for(let v=0;v<l.length;v++){const S=l[v];typeof S=="string"&&(l[v]=parseFloat(S))}else Qn[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:l,name:u}=this,o=[];for(let c=0;c<l.length;c++)(l[c]===null||sb(l[c]))&&o.push(c);o.length&&mb(l,o,u)}measureInitialState(){const{element:l,unresolvedKeyframes:u,name:o}=this;if(!l||!l.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Qn[o](l.measureViewportBox(),window.getComputedStyle(l.current)),u[0]=this.measuredOrigin;const c=u[u.length-1];c!==void 0&&l.getValue(o,c).jump(c,!1)}measureEndState(){const{element:l,name:u,unresolvedKeyframes:o}=this;if(!l||!l.current)return;const c=l.getValue(u);c&&c.jump(this.measuredOrigin,!1);const d=o.length-1,h=o[d];o[d]=Qn[u](l.measureViewportBox(),window.getComputedStyle(l.current)),h!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=h),this.removedTransforms?.length&&this.removedTransforms.forEach(([p,g])=>{l.getValue(p).set(g)}),this.resolveNoneKeyframes()}}function Og(i,l,u){if(i==null)return[];if(i instanceof EventTarget)return[i];if(typeof i=="string"){const c=document.querySelectorAll(i);return c?Array.from(c):[]}return Array.from(i).filter(o=>o!=null)}const Vg=(i,l)=>l&&typeof i=="number"?l.transform(i):i;function Ks(i){return jy(i)&&"offsetHeight"in i&&!("ownerSVGElement"in i)}const{schedule:kc}=$y(queueMicrotask,!1),Xe={x:!1,y:!1};function _g(){return Xe.x||Xe.y}function yb(i){return i==="x"||i==="y"?Xe[i]?null:(Xe[i]=!0,()=>{Xe[i]=!1}):Xe.x||Xe.y?null:(Xe.x=Xe.y=!0,()=>{Xe.x=Xe.y=!1})}function Ug(i,l){const u=Og(i),o=new AbortController,c={passive:!0,...l,signal:o.signal};return[u,c,()=>o.abort()]}function gb(i){return!(i.pointerType==="touch"||_g())}function vb(i,l,u={}){const[o,c,d]=Ug(i,u);return o.forEach(h=>{let p=!1,g=!1,m;const v=()=>{h.removeEventListener("pointerleave",V)},S=L=>{m&&(m(L),m=void 0),v()},b=L=>{p=!1,window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",b),g&&(g=!1,S(L))},z=()=>{p=!0,window.addEventListener("pointerup",b,c),window.addEventListener("pointercancel",b,c)},V=L=>{if(L.pointerType!=="touch"){if(p){g=!0;return}S(L)}},w=L=>{if(!gb(L))return;g=!1;const j=l(h,L);typeof j=="function"&&(m=j,h.addEventListener("pointerleave",V,c))};h.addEventListener("pointerenter",w,c),h.addEventListener("pointerdown",z,c)}),d}const Bg=(i,l)=>l?i===l?!0:Bg(i,l.parentElement):!1,Fc=i=>i.pointerType==="mouse"?typeof i.button!="number"||i.button<=0:i.isPrimary!==!1,Sb=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Tb(i){return Sb.has(i.tagName)||i.isContentEditable===!0}const bb=new Set(["INPUT","SELECT","TEXTAREA"]);function Ab(i){return bb.has(i.tagName)||i.isContentEditable===!0}const Js=new WeakSet;function Np(i){return l=>{l.key==="Enter"&&i(l)}}function Kr(i,l){i.dispatchEvent(new PointerEvent("pointer"+l,{isPrimary:!0,bubbles:!0}))}const Eb=(i,l)=>{const u=i.currentTarget;if(!u)return;const o=Np(()=>{if(Js.has(u))return;Kr(u,"down");const c=Np(()=>{Kr(u,"up")}),d=()=>Kr(u,"cancel");u.addEventListener("keyup",c,l),u.addEventListener("blur",d,l)});u.addEventListener("keydown",o,l),u.addEventListener("blur",()=>u.removeEventListener("keydown",o),l)};function wp(i){return Fc(i)&&!_g()}const Lp=new WeakSet;function Mb(i,l,u={}){const[o,c,d]=Ug(i,u),h=p=>{const g=p.currentTarget;if(!wp(p)||Lp.has(p))return;Js.add(g),u.stopPropagation&&Lp.add(p);const m=l(g,p),v=(z,V)=>{window.removeEventListener("pointerup",S),window.removeEventListener("pointercancel",b),Js.has(g)&&Js.delete(g),wp(z)&&typeof m=="function"&&m(z,{success:V})},S=z=>{v(z,g===window||g===document||u.useGlobalTarget||Bg(g,z.target))},b=z=>{v(z,!1)};window.addEventListener("pointerup",S,c),window.addEventListener("pointercancel",b,c)};return o.forEach(p=>{(u.useGlobalTarget?window:p).addEventListener("pointerdown",h,c),Ks(p)&&(p.addEventListener("focus",m=>Eb(m,c)),!Tb(p)&&!p.hasAttribute("tabindex")&&(p.tabIndex=0))}),d}function Wc(i){return jy(i)&&"ownerSVGElement"in i}const ks=new WeakMap;let Fs;const Ng=(i,l,u)=>(o,c)=>c&&c[0]?c[0][i+"Size"]:Wc(o)&&"getBBox"in o?o.getBBox()[l]:o[u],Db=Ng("inline","width","offsetWidth"),xb=Ng("block","height","offsetHeight");function Cb({target:i,borderBoxSize:l}){ks.get(i)?.forEach(u=>{u(i,{get width(){return Db(i,l)},get height(){return xb(i,l)}})})}function zb(i){i.forEach(Cb)}function Rb(){typeof ResizeObserver>"u"||(Fs=new ResizeObserver(zb))}function Ob(i,l){Fs||Rb();const u=Og(i);return u.forEach(o=>{let c=ks.get(o);c||(c=new Set,ks.set(o,c)),c.add(l),Fs?.observe(o)}),()=>{u.forEach(o=>{const c=ks.get(o);c?.delete(l),c?.size||Fs?.unobserve(o)})}}const Ws=new Set;let sa;function Vb(){sa=()=>{const i={get width(){return window.innerWidth},get height(){return window.innerHeight}};Ws.forEach(l=>l(i))},window.addEventListener("resize",sa)}function _b(i){return Ws.add(i),sa||Vb(),()=>{Ws.delete(i),!Ws.size&&typeof sa=="function"&&(window.removeEventListener("resize",sa),sa=void 0)}}function jp(i,l){return typeof i=="function"?_b(i):Ob(i,l)}function Ub(i){return Wc(i)&&i.tagName==="svg"}const Bb=[...Cg,Qt,Ze],Nb=i=>Bb.find(xg(i)),Hp=()=>({translate:0,scale:1,origin:0,originPoint:0}),ua=()=>({x:Hp(),y:Hp()}),Yp=()=>({min:0,max:0}),Jt=()=>({x:Yp(),y:Yp()}),wb=new WeakMap;function fu(i){return i!==null&&typeof i=="object"&&typeof i.start=="function"}function yl(i){return typeof i=="string"||Array.isArray(i)}const Pc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],$c=["initial",...Pc];function hu(i){return fu(i.animate)||$c.some(l=>yl(i[l]))}function wg(i){return!!(hu(i)||i.variants)}function Lb(i,l,u){for(const o in l){const c=l[o],d=u[o];if(ie(c))i.addValue(o,c);else if(ie(d))i.addValue(o,ra(c,{owner:i}));else if(d!==c)if(i.hasValue(o)){const h=i.getValue(o);h.liveStyle===!0?h.jump(c):h.hasAnimated||h.set(c)}else{const h=i.getStaticValue(o);i.addValue(o,ra(h!==void 0?h:c,{owner:i}))}}for(const o in u)l[o]===void 0&&i.removeValue(o);return l}const Sc={current:null},Lg={current:!1},jb=typeof window<"u";function Hb(){if(Lg.current=!0,!!jb)if(window.matchMedia){const i=window.matchMedia("(prefers-reduced-motion)"),l=()=>Sc.current=i.matches;i.addEventListener("change",l),l()}else Sc.current=!1}const qp=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let lu={};function jg(i){lu=i}function Yb(){return lu}class qb{scrapeMotionValuesFromProps(l,u,o){return{}}constructor({parent:l,props:u,presenceContext:o,reducedMotionConfig:c,skipAnimations:d,blockInitialAnimation:h,visualState:p},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=qc,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 z=ue.now();this.renderScheduledAt<z&&(this.renderScheduledAt=z,zt.render(this.render,!1,!0))};const{latestValues:m,renderState:v}=p;this.latestValues=m,this.baseTarget={...m},this.initialValues=u.initial?{...m}:{},this.renderState=v,this.parent=l,this.props=u,this.presenceContext=o,this.depth=l?l.depth+1:0,this.reducedMotionConfig=c,this.skipAnimationsConfig=d,this.options=g,this.blockInitialAnimation=!!h,this.isControllingVariants=hu(u),this.isVariantNode=wg(u),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(l&&l.current);const{willChange:S,...b}=this.scrapeMotionValuesFromProps(u,{},this);for(const z in b){const V=b[z];m[z]!==void 0&&ie(V)&&V.set(m[z])}}mount(l){if(this.hasBeenMounted)for(const u in this.initialValues)this.values.get(u)?.jump(this.initialValues[u]),this.latestValues[u]=this.initialValues[u];this.current=l,wb.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((u,o)=>this.bindToMotionValue(o,u)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Lg.current||Hb(),this.shouldReduceMotion=Sc.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(),Jn(this.notifyUpdate),Jn(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 u=this.features[l];u&&(u.unmount(),u.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,u){if(this.valueSubscriptions.has(l)&&this.valueSubscriptions.get(l)(),u.accelerate&&vg.has(l)&&this.current instanceof HTMLElement){const{factory:h,keyframes:p,times:g,ease:m,duration:v}=u.accelerate,S=new yg({element:this.current,name:l,keyframes:p,times:g,ease:m,duration:xe(v)}),b=h(S);this.valueSubscriptions.set(l,()=>{b(),S.cancel()});return}const o=ha.has(l);o&&this.onBindTransform&&this.onBindTransform();const c=u.on("change",h=>{this.latestValues[l]=h,this.props.onUpdate&&zt.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let d;typeof window<"u"&&window.MotionCheckAppearSync&&(d=window.MotionCheckAppearSync(this,l,u)),this.valueSubscriptions.set(l,()=>{c(),d&&d(),u.owner&&u.stop()})}sortNodePosition(l){return!this.current||!this.sortInstanceNodePosition||this.type!==l.type?0:this.sortInstanceNodePosition(this.current,l.current)}updateFeatures(){let l="animation";for(l in lu){const u=lu[l];if(!u)continue;const{isEnabled:o,Feature:c}=u;if(!this.features[l]&&c&&o(this.props)&&(this.features[l]=new c(this)),this.features[l]){const d=this.features[l];d.isMounted?d.update():(d.mount(),d.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Jt()}getStaticValue(l){return this.latestValues[l]}setStaticValue(l,u){this.latestValues[l]=u}update(l,u){(l.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=l,this.prevPresenceContext=this.presenceContext,this.presenceContext=u;for(let o=0;o<qp.length;o++){const c=qp[o];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const d="on"+c,h=l[d];h&&(this.propEventSubscriptions[c]=this.on(c,h))}this.prevMotionValues=Lb(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 u=this.getClosestVariantNode();if(u)return u.variantChildren&&u.variantChildren.add(l),()=>u.variantChildren.delete(l)}addValue(l,u){const o=this.values.get(l);u!==o&&(o&&this.removeValue(l),this.bindToMotionValue(l,u),this.values.set(l,u),this.latestValues[l]=u.get())}removeValue(l){this.values.delete(l);const u=this.valueSubscriptions.get(l);u&&(u(),this.valueSubscriptions.delete(l)),delete this.latestValues[l],this.removeValueFromRenderState(l,this.renderState)}hasValue(l){return this.values.has(l)}getValue(l,u){if(this.props.values&&this.props.values[l])return this.props.values[l];let o=this.values.get(l);return o===void 0&&u!==void 0&&(o=ra(u===null?void 0:u,{owner:this}),this.addValue(l,o)),o}readValue(l,u){let o=this.latestValues[l]!==void 0||!this.current?this.latestValues[l]:this.getBaseTargetFromProps(this.props,l)??this.readValueFromInstance(this.current,l,this.options);return o!=null&&(typeof o=="string"&&(Ly(o)||Hy(o))?o=parseFloat(o):!Nb(o)&&Ze.test(u)&&(o=Rg(l,u)),this.setBaseTarget(l,ie(o)?o.get():o)),ie(o)?o.get():o}setBaseTarget(l,u){this.baseTarget[l]=u}getBaseTarget(l){const{initial:u}=this.props;let o;if(typeof u=="string"||typeof u=="object"){const d=Qc(this.props,u,this.presenceContext?.custom);d&&(o=d[l])}if(u&&o!==void 0)return o;const c=this.getBaseTargetFromProps(this.props,l);return c!==void 0&&!ie(c)?c:this.initialValues[l]!==void 0&&o===void 0?void 0:this.baseTarget[l]}on(l,u){return this.events[l]||(this.events[l]=new _c),this.events[l].add(u)}notify(l,...u){this.events[l]&&this.events[l].notify(...u)}scheduleRenderMicrotask(){kc.render(this.render)}}class Hg extends qb{constructor(){super(...arguments),this.KeyframeResolver=pb}sortInstanceNodePosition(l,u){return l.compareDocumentPosition(u)&2?1:-1}getBaseTargetFromProps(l,u){const o=l.style;return o?o[u]:void 0}removeValueFromRenderState(l,{vars:u,style:o}){delete u[l],delete o[l]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:l}=this.props;ie(l)&&(this.childSubscription=l.on("change",u=>{this.current&&(this.current.textContent=`${u}`)}))}}class kn{constructor(l){this.isMounted=!1,this.node=l}update(){}}function Yg({top:i,left:l,right:u,bottom:o}){return{x:{min:l,max:u},y:{min:i,max:o}}}function Gb({x:i,y:l}){return{top:l.min,right:i.max,bottom:l.max,left:i.min}}function Xb(i,l){if(!l)return i;const u=l({x:i.left,y:i.top}),o=l({x:i.right,y:i.bottom});return{top:u.y,left:u.x,bottom:o.y,right:o.x}}function Jr(i){return i===void 0||i===1}function Tc({scale:i,scaleX:l,scaleY:u}){return!Jr(i)||!Jr(l)||!Jr(u)}function pi(i){return Tc(i)||qg(i)||i.z||i.rotate||i.rotateX||i.rotateY||i.skewX||i.skewY}function qg(i){return Gp(i.x)||Gp(i.y)}function Gp(i){return i&&i!=="0%"}function su(i,l,u){const o=i-u,c=l*o;return u+c}function Xp(i,l,u,o,c){return c!==void 0&&(i=su(i,c,o)),su(i,u,o)+l}function bc(i,l=0,u=1,o,c){i.min=Xp(i.min,l,u,o,c),i.max=Xp(i.max,l,u,o,c)}function Gg(i,{x:l,y:u}){bc(i.x,l.translate,l.scale,l.originPoint),bc(i.y,u.translate,u.scale,u.originPoint)}const Zp=.999999999999,Qp=1.0000000000001;function Zb(i,l,u,o=!1){const c=u.length;if(!c)return;l.x=l.y=1;let d,h;for(let p=0;p<c;p++){d=u[p],h=d.projectionDelta;const{visualElement:g}=d.options;g&&g.props.style&&g.props.style.display==="contents"||(o&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(We(i.x,-d.scroll.offset.x),We(i.y,-d.scroll.offset.y)),h&&(l.x*=h.x.scale,l.y*=h.y.scale,Gg(i,h)),o&&pi(d.latestValues)&&Ps(i,d.latestValues,d.layout?.layoutBox))}l.x<Qp&&l.x>Zp&&(l.x=1),l.y<Qp&&l.y>Zp&&(l.y=1)}function We(i,l){i.min+=l,i.max+=l}function Kp(i,l,u,o,c=.5){const d=Vt(i.min,i.max,c);bc(i,l,u,d,o)}function Jp(i,l){return typeof i=="string"?parseFloat(i)/100*(l.max-l.min):i}function Ps(i,l,u){const o=u??i;Kp(i.x,Jp(l.x,o.x),l.scaleX,l.scale,l.originX),Kp(i.y,Jp(l.y,o.y),l.scaleY,l.scale,l.originY)}function Xg(i,l){return Yg(Xb(i.getBoundingClientRect(),l))}function Qb(i,l,u){const o=Xg(i,u),{scroll:c}=l;return c&&(We(o.x,c.offset.x),We(o.y,c.offset.y)),o}const Kb={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Jb=fa.length;function kb(i,l,u){let o="",c=!0;for(let d=0;d<Jb;d++){const h=fa[d],p=i[h];if(p===void 0)continue;let g=!0;if(typeof p=="number")g=p===(h.startsWith("scale")?1:0);else{const m=parseFloat(p);g=h.startsWith("scale")?m===1:m===0}if(!g||u){const m=Vg(p,Jc[h]);if(!g){c=!1;const v=Kb[h]||h;o+=`${v}(${m}) `}u&&(l[h]=m)}}return o=o.trim(),u?o=u(l,c?"":o):c&&(o="none"),o}function Ic(i,l,u){const{style:o,vars:c,transformOrigin:d}=i;let h=!1,p=!1;for(const g in l){const m=l[g];if(ha.has(g)){h=!0;continue}else if(tg(g)){c[g]=m;continue}else{const v=Vg(m,Jc[g]);g.startsWith("origin")?(p=!0,d[g]=v):o[g]=v}}if(l.transform||(h||u?o.transform=kb(l,i.transform,u):o.transform&&(o.transform="none")),p){const{originX:g="50%",originY:m="50%",originZ:v=0}=d;o.transformOrigin=`${g} ${m} ${v}`}}function Zg(i,{style:l,vars:u},o,c){const d=i.style;let h;for(h in l)d[h]=l[h];c?.applyProjectionStyles(d,o);for(h in u)d.setProperty(h,u[h])}function kp(i,l){return l.max===l.min?0:i/(l.max-l.min)*100}const ol={correct:(i,l)=>{if(!l.target)return i;if(typeof i=="string")if(J.test(i))i=parseFloat(i);else return i;const u=kp(i,l.target.x),o=kp(i,l.target.y);return`${u}% ${o}%`}},Fb={correct:(i,{treeScale:l,projectionDelta:u})=>{const o=i,c=Ze.parse(i);if(c.length>5)return o;const d=Ze.createTransformer(i),h=typeof c[0]!="number"?1:0,p=u.x.scale*l.x,g=u.y.scale*l.y;c[0+h]/=p,c[1+h]/=g;const m=Vt(p,g,.5);return typeof c[2+h]=="number"&&(c[2+h]/=m),typeof c[3+h]=="number"&&(c[3+h]/=m),d(c)}},Ac={borderRadius:{...ol,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ol,borderTopRightRadius:ol,borderBottomLeftRadius:ol,borderBottomRightRadius:ol,boxShadow:Fb};function Qg(i,{layout:l,layoutId:u}){return ha.has(i)||i.startsWith("origin")||(l||u!==void 0)&&(!!Ac[i]||i==="opacity")}function tf(i,l,u){const o=i.style,c=l?.style,d={};if(!o)return d;for(const h in o)(ie(o[h])||c&&ie(c[h])||Qg(h,i)||u?.getValue(h)?.liveStyle!==void 0)&&(d[h]=o[h]);return d}function Wb(i){return window.getComputedStyle(i)}class Pb extends Hg{constructor(){super(...arguments),this.type="html",this.renderInstance=Zg}readValueFromInstance(l,u){if(ha.has(u))return this.projection?.isProjecting?oc(u):gT(l,u);{const o=Wb(l),c=(tg(u)?o.getPropertyValue(u):o[u])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(l,{transformPagePoint:u}){return Xg(l,u)}build(l,u,o){Ic(l,u,o.transformTemplate)}scrapeMotionValuesFromProps(l,u,o){return tf(l,u,o)}}const $b={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ib={offset:"strokeDashoffset",array:"strokeDasharray"};function tA(i,l,u=1,o=0,c=!0){i.pathLength=1;const d=c?$b:Ib;i[d.offset]=`${-o}`,i[d.array]=`${l} ${u}`}const eA=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Kg(i,{attrX:l,attrY:u,attrScale:o,pathLength:c,pathSpacing:d=1,pathOffset:h=0,...p},g,m,v){if(Ic(i,p,m),g){i.style.viewBox&&(i.attrs.viewBox=i.style.viewBox);return}i.attrs=i.style,i.style={};const{attrs:S,style:b}=i;S.transform&&(b.transform=S.transform,delete S.transform),(b.transform||S.transformOrigin)&&(b.transformOrigin=S.transformOrigin??"50% 50%",delete S.transformOrigin),b.transform&&(b.transformBox=v?.transformBox??"fill-box",delete S.transformBox);for(const z of eA)S[z]!==void 0&&(b[z]=S[z],delete S[z]);l!==void 0&&(S.x=l),u!==void 0&&(S.y=u),o!==void 0&&(S.scale=o),c!==void 0&&tA(S,c,d,h,!1)}const Jg=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"]),kg=i=>typeof i=="string"&&i.toLowerCase()==="svg";function nA(i,l,u,o){Zg(i,l,void 0,o);for(const c in l.attrs)i.setAttribute(Jg.has(c)?c:Kc(c),l.attrs[c])}function Fg(i,l,u){const o=tf(i,l,u);for(const c in i)if(ie(i[c])||ie(l[c])){const d=fa.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;o[d]=i[c]}return o}class iA extends Hg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Jt}getBaseTargetFromProps(l,u){return l[u]}readValueFromInstance(l,u){if(ha.has(u)){const o=zg(u);return o&&o.default||0}return u=Jg.has(u)?u:Kc(u),l.getAttribute(u)}scrapeMotionValuesFromProps(l,u,o){return Fg(l,u,o)}build(l,u,o){Kg(l,u,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(l,u,o,c){nA(l,u,o,c)}mount(l){this.isSVGTag=kg(l.tagName),super.mount(l)}}const aA=$c.length;function Wg(i){if(!i)return;if(!i.isControllingVariants){const u=i.parent?Wg(i.parent)||{}:{};return i.props.initial!==void 0&&(u.initial=i.props.initial),u}const l={};for(let u=0;u<aA;u++){const o=$c[u],c=i.props[o];(yl(c)||c===!1)&&(l[o]=c)}return l}function Pg(i,l){if(!Array.isArray(l))return!1;const u=l.length;if(u!==i.length)return!1;for(let o=0;o<u;o++)if(l[o]!==i[o])return!1;return!0}const lA=[...Pc].reverse(),sA=Pc.length;function uA(i){return l=>Promise.all(l.map(({animation:u,options:o})=>ab(i,u,o)))}function oA(i){let l=uA(i),u=Fp(),o=!0,c=!1;const d=m=>(v,S)=>{const b=Si(i,S,m==="exit"?i.presenceContext?.custom:void 0);if(b){const{transition:z,transitionEnd:V,...w}=b;v={...v,...w,...V}}return v};function h(m){l=m(i)}function p(m){const{props:v}=i,S=Wg(i.parent)||{},b=[],z=new Set;let V={},w=1/0;for(let j=0;j<sA;j++){const q=lA[j],H=u[q],Y=v[q]!==void 0?v[q]:S[q],P=yl(Y),ot=q===m?H.isActive:null;ot===!1&&(w=j);let tt=Y===S[q]&&Y!==v[q]&&P;if(tt&&(o||c)&&i.manuallyAnimateOnMount&&(tt=!1),H.protectedKeys={...V},!H.isActive&&ot===null||!Y&&!H.prevProp||fu(Y)||typeof Y=="boolean")continue;if(q==="exit"&&H.isActive&&ot!==!0){H.prevResolvedValues&&(V={...V,...H.prevResolvedValues});continue}const W=rA(H.prevProp,Y);let nt=W||q===m&&H.isActive&&!tt&&P||j>w&&P,$=!1;const mt=Array.isArray(Y)?Y:[Y];let gt=mt.reduce(d(q),{});ot===!1&&(gt={});const{prevResolvedValues:Wt={}}=H,Yt={...Wt,...gt},wt=Q=>{nt=!0,z.has(Q)&&($=!0,z.delete(Q)),H.needsAnimating[Q]=!0;const st=i.getValue(Q);st&&(st.liveStyle=!1)};for(const Q in Yt){const st=gt[Q],pt=Wt[Q];if(V.hasOwnProperty(Q))continue;let E=!1;mc(st)&&mc(pt)?E=!Pg(st,pt):E=st!==pt,E?st!=null?wt(Q):z.add(Q):st!==void 0&&z.has(Q)?wt(Q):H.protectedKeys[Q]=!0}H.prevProp=Y,H.prevResolvedValues=gt,H.isActive&&(V={...V,...gt}),(o||c)&&i.blockInitialAnimation&&(nt=!1);const O=tt&&W;nt&&(!O||$)&&b.push(...mt.map(Q=>{const st={type:q};if(typeof Q=="string"&&(o||c)&&!O&&i.manuallyAnimateOnMount&&i.parent){const{parent:pt}=i,E=Si(pt,Q);if(pt.enteringChildren&&E){const{delayChildren:N}=E.transition||{};st.delay=Sg(pt.enteringChildren,i,N)}}return{animation:Q,options:st}}))}if(z.size){const j={};if(typeof v.initial!="boolean"){const q=Si(i,Array.isArray(v.initial)?v.initial[0]:v.initial);q&&q.transition&&(j.transition=q.transition)}z.forEach(q=>{const H=i.getBaseTarget(q),Y=i.getValue(q);Y&&(Y.liveStyle=!0),j[q]=H??null}),b.push({animation:j})}let L=!!b.length;return o&&(v.initial===!1||v.initial===v.animate)&&!i.manuallyAnimateOnMount&&(L=!1),o=!1,c=!1,L?l(b):Promise.resolve()}function g(m,v){if(u[m].isActive===v)return Promise.resolve();i.variantChildren?.forEach(b=>b.animationState?.setActive(m,v)),u[m].isActive=v;const S=p(m);for(const b in u)u[b].protectedKeys={};return S}return{animateChanges:p,setActive:g,setAnimateFunction:h,getState:()=>u,reset:()=>{u=Fp(),c=!0}}}function rA(i,l){return typeof l=="string"?l!==i:Array.isArray(l)?!Pg(l,i):!1}function mi(i=!1){return{isActive:i,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Fp(){return{animate:mi(!0),whileInView:mi(),whileHover:mi(),whileTap:mi(),whileDrag:mi(),whileFocus:mi(),exit:mi()}}function Ec(i,l){i.min=l.min,i.max=l.max}function Ge(i,l){Ec(i.x,l.x),Ec(i.y,l.y)}function Wp(i,l){i.translate=l.translate,i.scale=l.scale,i.originPoint=l.originPoint,i.origin=l.origin}const $g=1e-4,cA=1-$g,fA=1+$g,Ig=.01,hA=0-Ig,dA=0+Ig;function oe(i){return i.max-i.min}function mA(i,l,u){return Math.abs(i-l)<=u}function Pp(i,l,u,o=.5){i.origin=o,i.originPoint=Vt(l.min,l.max,i.origin),i.scale=oe(u)/oe(l),i.translate=Vt(u.min,u.max,i.origin)-i.originPoint,(i.scale>=cA&&i.scale<=fA||isNaN(i.scale))&&(i.scale=1),(i.translate>=hA&&i.translate<=dA||isNaN(i.translate))&&(i.translate=0)}function hl(i,l,u,o){Pp(i.x,l.x,u.x,o?o.originX:void 0),Pp(i.y,l.y,u.y,o?o.originY:void 0)}function $p(i,l,u,o=0){const c=o?Vt(u.min,u.max,o):u.min;i.min=c+l.min,i.max=i.min+oe(l)}function pA(i,l,u,o){$p(i.x,l.x,u.x,o?.x),$p(i.y,l.y,u.y,o?.y)}function Ip(i,l,u,o=0){const c=o?Vt(u.min,u.max,o):u.min;i.min=l.min-c,i.max=i.min+oe(l)}function uu(i,l,u,o){Ip(i.x,l.x,u.x,o?.x),Ip(i.y,l.y,u.y,o?.y)}function ty(i,l,u,o,c){return i-=l,i=su(i,1/u,o),c!==void 0&&(i=su(i,1/c,o)),i}function yA(i,l=0,u=1,o=.5,c,d=i,h=i){if(Pe.test(l)&&(l=parseFloat(l),l=Vt(h.min,h.max,l/100)-h.min),typeof l!="number")return;let p=Vt(d.min,d.max,o);i===d&&(p-=l),i.min=ty(i.min,l,u,p,c),i.max=ty(i.max,l,u,p,c)}function ey(i,l,[u,o,c],d,h){yA(i,l[u],l[o],l[c],l.scale,d,h)}const gA=["x","scaleX","originX"],vA=["y","scaleY","originY"];function ny(i,l,u,o){ey(i.x,l,gA,u?u.x:void 0,o?o.x:void 0),ey(i.y,l,vA,u?u.y:void 0,o?o.y:void 0)}function iy(i){return i.translate===0&&i.scale===1}function t0(i){return iy(i.x)&&iy(i.y)}function ay(i,l){return i.min===l.min&&i.max===l.max}function SA(i,l){return ay(i.x,l.x)&&ay(i.y,l.y)}function ly(i,l){return Math.round(i.min)===Math.round(l.min)&&Math.round(i.max)===Math.round(l.max)}function e0(i,l){return ly(i.x,l.x)&&ly(i.y,l.y)}function sy(i){return oe(i.x)/oe(i.y)}function uy(i,l){return i.translate===l.translate&&i.scale===l.scale&&i.originPoint===l.originPoint}function Fe(i){return[i("x"),i("y")]}function TA(i,l,u){let o="";const c=i.x.translate/l.x,d=i.y.translate/l.y,h=u?.z||0;if((c||d||h)&&(o=`translate3d(${c}px, ${d}px, ${h}px) `),(l.x!==1||l.y!==1)&&(o+=`scale(${1/l.x}, ${1/l.y}) `),u){const{transformPerspective:m,rotate:v,rotateX:S,rotateY:b,skewX:z,skewY:V}=u;m&&(o=`perspective(${m}px) ${o}`),v&&(o+=`rotate(${v}deg) `),S&&(o+=`rotateX(${S}deg) `),b&&(o+=`rotateY(${b}deg) `),z&&(o+=`skewX(${z}deg) `),V&&(o+=`skewY(${V}deg) `)}const p=i.x.scale*l.x,g=i.y.scale*l.y;return(p!==1||g!==1)&&(o+=`scale(${p}, ${g})`),o||"none"}const n0=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],bA=n0.length,oy=i=>typeof i=="string"?parseFloat(i):i,ry=i=>typeof i=="number"||J.test(i);function AA(i,l,u,o,c,d){c?(i.opacity=Vt(0,u.opacity??1,EA(o)),i.opacityExit=Vt(l.opacity??1,0,MA(o))):d&&(i.opacity=Vt(l.opacity??1,u.opacity??1,o));for(let h=0;h<bA;h++){const p=n0[h];let g=cy(l,p),m=cy(u,p);if(g===void 0&&m===void 0)continue;g||(g=0),m||(m=0),g===0||m===0||ry(g)===ry(m)?(i[p]=Math.max(Vt(oy(g),oy(m),o),0),(Pe.test(m)||Pe.test(g))&&(i[p]+="%")):i[p]=m}(l.rotate||u.rotate)&&(i.rotate=Vt(l.rotate||0,u.rotate||0,o))}function cy(i,l){return i[l]!==void 0?i[l]:i.borderRadius}const EA=i0(0,.5,ky),MA=i0(.5,.95,je);function i0(i,l,u){return o=>o<i?0:o>l?1:u(ml(i,l,o))}function DA(i,l,u){const o=ie(i)?i:ra(i);return o.start(Zc("",o,l,u)),o.animation}function gl(i,l,u,o={passive:!0}){return i.addEventListener(l,u,o),()=>i.removeEventListener(l,u)}const xA=(i,l)=>i.depth-l.depth;class CA{constructor(){this.children=[],this.isDirty=!1}add(l){Oc(this.children,l),this.isDirty=!0}remove(l){tu(this.children,l),this.isDirty=!0}forEach(l){this.isDirty&&this.children.sort(xA),this.isDirty=!1,this.children.forEach(l)}}function zA(i,l){const u=ue.now(),o=({timestamp:c})=>{const d=c-u;d>=l&&(Jn(o),i(d-l))};return zt.setup(o,!0),()=>Jn(o)}function $s(i){return ie(i)?i.get():i}class RA{constructor(){this.members=[]}add(l){Oc(this.members,l);for(let u=this.members.length-1;u>=0;u--){const o=this.members[u];if(o===l||o===this.lead||o===this.prevLead)continue;const c=o.instance;(!c||c.isConnected===!1)&&!o.snapshot&&(tu(this.members,o),o.unmount())}l.scheduleRender()}remove(l){if(tu(this.members,l),l===this.prevLead&&(this.prevLead=void 0),l===this.lead){const u=this.members[this.members.length-1];u&&this.promote(u)}}relegate(l){for(let u=this.members.indexOf(l)-1;u>=0;u--){const o=this.members[u];if(o.isPresent!==!1&&o.instance?.isConnected!==!1)return this.promote(o),!0}return!1}promote(l,u){const o=this.lead;if(l!==o&&(this.prevLead=o,this.lead=l,l.show(),o)){o.updateSnapshot(),l.scheduleRender();const{layoutDependency:c}=o.options,{layoutDependency:d}=l.options;(c===void 0||c!==d)&&(l.resumeFrom=o,u&&(o.preserveOpacity=!0),o.snapshot&&(l.snapshot=o.snapshot,l.snapshot.latestValues=o.animationValues||o.latestValues),l.root?.isUpdating&&(l.isLayoutDirty=!0)),l.options.crossfade===!1&&o.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 Is={hasAnimatedSinceResize:!0,hasEverUpdated:!1},kr=["","X","Y","Z"],OA=1e3;let VA=0;function Fr(i,l,u,o){const{latestValues:c}=l;c[i]&&(u[i]=c[i],l.setStaticValue(i,0),o&&(o[i]=0))}function a0(i){if(i.hasCheckedOptimisedAppear=!0,i.root===i)return;const{visualElement:l}=i.options;if(!l)return;const u=Mg(l);if(window.MotionHasOptimisedAnimation(u,"transform")){const{layout:c,layoutId:d}=i.options;window.MotionCancelOptimisedAnimation(u,"transform",zt,!(c||d))}const{parent:o}=i;o&&!o.hasCheckedOptimisedAppear&&a0(o)}function l0({attachResizeListener:i,defaultParent:l,measureScroll:u,checkIsScrollRoot:o,resetTransform:c}){return class{constructor(h={},p=l?.()){this.id=VA++,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(BA),this.nodes.forEach(YA),this.nodes.forEach(qA),this.nodes.forEach(NA)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=h,this.root=p?p.root||p:this,this.path=p?[...p.path,p]:[],this.parent=p,this.depth=p?p.depth+1:0;for(let g=0;g<this.path.length;g++)this.path[g].shouldResetTransform=!0;this.root===this&&(this.nodes=new CA)}addEventListener(h,p){return this.eventHandlers.has(h)||this.eventHandlers.set(h,new _c),this.eventHandlers.get(h).add(p)}notifyListeners(h,...p){const g=this.eventHandlers.get(h);g&&g.notify(...p)}hasListeners(h){return this.eventHandlers.has(h)}mount(h){if(this.instance)return;this.isSVG=Wc(h)&&!Ub(h),this.instance=h;const{layoutId:p,layout:g,visualElement:m}=this.options;if(m&&!m.current&&m.mount(h),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(g||p)&&(this.isLayoutDirty=!0),i){let v,S=0;const b=()=>this.root.updateBlockedByResize=!1;zt.read(()=>{S=window.innerWidth}),i(h,()=>{const z=window.innerWidth;z!==S&&(S=z,this.root.updateBlockedByResize=!0,v&&v(),v=zA(b,250),Is.hasAnimatedSinceResize&&(Is.hasAnimatedSinceResize=!1,this.nodes.forEach(dy)))})}p&&this.root.registerSharedNode(p,this),this.options.animate!==!1&&m&&(p||g)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:S,hasRelativeLayoutChanged:b,layout:z})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const V=this.options.transition||m.getDefaultTransition()||KA,{onLayoutAnimationStart:w,onLayoutAnimationComplete:L}=m.getProps(),j=!this.targetLayout||!e0(this.targetLayout,z),q=!S&&b;if(this.options.layoutRoot||this.resumeFrom||q||S&&(j||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const H={...Xc(V,"layout"),onPlay:w,onComplete:L};(m.shouldReduceMotion||this.options.layoutRoot)&&(H.delay=0,H.type=!1),this.startAnimation(H),this.setAnimationOrigin(v,q)}else S||dy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=z})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const h=this.getStack();h&&h.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Jn(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(GA),this.animationId++)}getTransformTemplate(){const{visualElement:h}=this.options;return h&&h.getProps().transformTemplate}willUpdate(h=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&a0(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const S=this.path[v];S.shouldResetTransform=!0,(typeof S.latestValues.x=="string"||typeof S.latestValues.y=="string")&&(S.isLayoutDirty=!0),S.updateScroll("snapshot"),S.options.layoutRoot&&S.willUpdate(!1)}const{layoutId:p,layout:g}=this.options;if(p===void 0&&!g)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),h&&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(LA),this.nodes.forEach(fy);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(hy);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(jA),this.nodes.forEach(HA),this.nodes.forEach(_A),this.nodes.forEach(UA)):this.nodes.forEach(hy),this.clearAllSnapshots();const p=ue.now();ne.delta=$e(0,1e3/60,p-ne.timestamp),ne.timestamp=p,ne.isProcessing=!0,Yr.update.process(ne),Yr.preRender.process(ne),Yr.render.process(ne),ne.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,kc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(wA),this.sharedNodes.forEach(XA)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,zt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){zt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!oe(this.snapshot.measuredBox.x)&&!oe(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 h=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=Jt()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:p}=this.options;p&&p.notify("LayoutMeasure",this.layout.layoutBox,h?h.layoutBox:void 0)}updateScroll(h="measure"){let p=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===h&&(p=!1),p&&this.instance){const g=o(this.instance);this.scroll={animationId:this.root.animationId,phase:h,isRoot:g,offset:u(this.instance),wasRoot:this.scroll?this.scroll.isRoot:g}}}resetTransform(){if(!c)return;const h=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,p=this.projectionDelta&&!t0(this.projectionDelta),g=this.getTransformTemplate(),m=g?g(this.latestValues,""):void 0,v=m!==this.prevTransformTemplateValue;h&&this.instance&&(p||pi(this.latestValues)||v)&&(c(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(h=!0){const p=this.measurePageBox();let g=this.removeElementScroll(p);return h&&(g=this.removeTransform(g)),JA(g),{animationId:this.root.animationId,measuredBox:p,layoutBox:g,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:h}=this.options;if(!h)return Jt();const p=h.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(kA))){const{scroll:m}=this.root;m&&(We(p.x,m.offset.x),We(p.y,m.offset.y))}return p}removeElementScroll(h){const p=Jt();if(Ge(p,h),this.scroll?.wasRoot)return p;for(let g=0;g<this.path.length;g++){const m=this.path[g],{scroll:v,options:S}=m;m!==this.root&&v&&S.layoutScroll&&(v.wasRoot&&Ge(p,h),We(p.x,v.offset.x),We(p.y,v.offset.y))}return p}applyTransform(h,p=!1,g){const m=g||Jt();Ge(m,h);for(let v=0;v<this.path.length;v++){const S=this.path[v];!p&&S.options.layoutScroll&&S.scroll&&S!==S.root&&(We(m.x,-S.scroll.offset.x),We(m.y,-S.scroll.offset.y)),pi(S.latestValues)&&Ps(m,S.latestValues,S.layout?.layoutBox)}return pi(this.latestValues)&&Ps(m,this.latestValues,this.layout?.layoutBox),m}removeTransform(h){const p=Jt();Ge(p,h);for(let g=0;g<this.path.length;g++){const m=this.path[g];if(!pi(m.latestValues))continue;let v;m.instance&&(Tc(m.latestValues)&&m.updateSnapshot(),v=Jt(),Ge(v,m.measurePageBox())),ny(p,m.latestValues,m.snapshot?.layoutBox,v)}return pi(this.latestValues)&&ny(p,this.latestValues),p}setTargetDelta(h){this.targetDelta=h,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(h){this.options={...this.options,...h,crossfade:h.crossfade!==void 0?h.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!==ne.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(h=!1){const p=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=p.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=p.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=p.isSharedProjectionDirty);const g=!!this.resumingFrom||this!==p;if(!(h||g&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:v,layoutId:S}=this.options;if(!this.layout||!(v||S))return;this.resolvedRelativeTargetAt=ne.timestamp;const b=this.getClosestProjectingParent();b&&this.linkedParentVersion!==b.layoutVersion&&!b.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&b&&b.layout?this.createRelativeTarget(b,this.layout.layoutBox,b.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Jt(),this.targetWithTransforms=Jt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),pA(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Ge(this.target,this.layout.layoutBox),Gg(this.target,this.targetDelta)):Ge(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?this.createRelativeTarget(b,this.target,b.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Tc(this.parent.latestValues)||qg(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(h,p,g){this.relativeParent=h,this.linkedParentVersion=h.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Jt(),this.relativeTargetOrigin=Jt(),uu(this.relativeTargetOrigin,p,g,this.options.layoutAnchor||void 0),Ge(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const h=this.getLead(),p=!!this.resumingFrom||this!==h;let g=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(g=!1),p&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(g=!1),this.resolvedRelativeTargetAt===ne.timestamp&&(g=!1),g)return;const{layout:m,layoutId:v}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(m||v))return;Ge(this.layoutCorrected,this.layout.layoutBox);const S=this.treeScale.x,b=this.treeScale.y;Zb(this.layoutCorrected,this.treeScale,this.path,p),h.layout&&!h.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(h.target=h.layout.layoutBox,h.targetWithTransforms=Jt());const{target:z}=h;if(!z){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Wp(this.prevProjectionDelta.x,this.projectionDelta.x),Wp(this.prevProjectionDelta.y,this.projectionDelta.y)),hl(this.projectionDelta,this.layoutCorrected,z,this.latestValues),(this.treeScale.x!==S||this.treeScale.y!==b||!uy(this.projectionDelta.x,this.prevProjectionDelta.x)||!uy(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",z))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(h=!0){if(this.options.visualElement?.scheduleRender(),h){const p=this.getStack();p&&p.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ua(),this.projectionDelta=ua(),this.projectionDeltaWithTransform=ua()}setAnimationOrigin(h,p=!1){const g=this.snapshot,m=g?g.latestValues:{},v={...this.latestValues},S=ua();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!p;const b=Jt(),z=g?g.source:void 0,V=this.layout?this.layout.source:void 0,w=z!==V,L=this.getStack(),j=!L||L.members.length<=1,q=!!(w&&!j&&this.options.crossfade===!0&&!this.path.some(QA));this.animationProgress=0;let H;this.mixTargetDelta=Y=>{const P=Y/1e3;my(S.x,h.x,P),my(S.y,h.y,P),this.setTargetDelta(S),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(uu(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),ZA(this.relativeTarget,this.relativeTargetOrigin,b,P),H&&SA(this.relativeTarget,H)&&(this.isProjectionDirty=!1),H||(H=Jt()),Ge(H,this.relativeTarget)),w&&(this.animationValues=v,AA(v,m,this.latestValues,P,q,j)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(h){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Jn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=zt.update(()=>{Is.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ra(0)),this.motionValue.jump(0,!1),this.currentAnimation=DA(this.motionValue,[0,1e3],{...h,velocity:0,isSync:!0,onUpdate:p=>{this.mixTargetDelta(p),h.onUpdate&&h.onUpdate(p)},onStop:()=>{},onComplete:()=>{h.onComplete&&h.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const h=this.getStack();h&&h.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(OA),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const h=this.getLead();let{targetWithTransforms:p,target:g,layout:m,latestValues:v}=h;if(!(!p||!g||!m)){if(this!==h&&this.layout&&m&&s0(this.options.animationType,this.layout.layoutBox,m.layoutBox)){g=this.target||Jt();const S=oe(this.layout.layoutBox.x);g.x.min=h.target.x.min,g.x.max=g.x.min+S;const b=oe(this.layout.layoutBox.y);g.y.min=h.target.y.min,g.y.max=g.y.min+b}Ge(p,g),Ps(p,v),hl(this.projectionDeltaWithTransform,this.layoutCorrected,p,v)}}registerSharedNode(h,p){this.sharedNodes.has(h)||this.sharedNodes.set(h,new RA),this.sharedNodes.get(h).add(p);const m=p.options.initialPromotionConfig;p.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.shouldPreserveFollowOpacity(p):void 0})}isLead(){const h=this.getStack();return h?h.lead===this:!0}getLead(){const{layoutId:h}=this.options;return h?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:h}=this.options;return h?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:h}=this.options;if(h)return this.root.sharedNodes.get(h)}promote({needsReset:h,transition:p,preserveFollowOpacity:g}={}){const m=this.getStack();m&&m.promote(this,g),h&&(this.projectionDelta=void 0,this.needsReset=!0),p&&this.setOptions({transition:p})}relegate(){const h=this.getStack();return h?h.relegate(this):!1}resetSkewAndRotation(){const{visualElement:h}=this.options;if(!h)return;let p=!1;const{latestValues:g}=h;if((g.z||g.rotate||g.rotateX||g.rotateY||g.rotateZ||g.skewX||g.skewY)&&(p=!0),!p)return;const m={};g.z&&Fr("z",h,m,this.animationValues);for(let v=0;v<kr.length;v++)Fr(`rotate${kr[v]}`,h,m,this.animationValues),Fr(`skew${kr[v]}`,h,m,this.animationValues);h.render();for(const v in m)h.setStaticValue(v,m[v]),this.animationValues&&(this.animationValues[v]=m[v]);h.scheduleRender()}applyProjectionStyles(h,p){if(!this.instance||this.isSVG)return;if(!this.isVisible){h.visibility="hidden";return}const g=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,h.visibility="",h.opacity="",h.pointerEvents=$s(p?.pointerEvents)||"",h.transform=g?g(this.latestValues,""):"none";return}const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){this.options.layoutId&&(h.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,h.pointerEvents=$s(p?.pointerEvents)||""),this.hasProjected&&!pi(this.latestValues)&&(h.transform=g?g({},""):"none",this.hasProjected=!1);return}h.visibility="";const v=m.animationValues||m.latestValues;this.applyTransformsToTarget();let S=TA(this.projectionDeltaWithTransform,this.treeScale,v);g&&(S=g(v,S)),h.transform=S;const{x:b,y:z}=this.projectionDelta;h.transformOrigin=`${b.origin*100}% ${z.origin*100}% 0`,m.animationValues?h.opacity=m===this?v.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:h.opacity=m===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const V in Ac){if(v[V]===void 0)continue;const{correct:w,applyTo:L,isCSSVariable:j}=Ac[V],q=S==="none"?v[V]:w(v[V],m);if(L){const H=L.length;for(let Y=0;Y<H;Y++)h[L[Y]]=q}else j?this.options.visualElement.renderState.vars[V]=q:h[V]=q}this.options.layoutId&&(h.pointerEvents=m===this?$s(p?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(h=>h.currentAnimation?.stop()),this.root.nodes.forEach(fy),this.root.sharedNodes.clear()}}}function _A(i){i.updateLayout()}function UA(i){const l=i.resumeFrom?.snapshot||i.snapshot;if(i.isLead()&&i.layout&&l&&i.hasListeners("didUpdate")){const{layoutBox:u,measuredBox:o}=i.layout,{animationType:c}=i.options,d=l.source!==i.layout.source;if(c==="size")Fe(v=>{const S=d?l.measuredBox[v]:l.layoutBox[v],b=oe(S);S.min=u[v].min,S.max=S.min+b});else if(c==="x"||c==="y"){const v=c==="x"?"y":"x";Ec(d?l.measuredBox[v]:l.layoutBox[v],u[v])}else s0(c,l.layoutBox,u)&&Fe(v=>{const S=d?l.measuredBox[v]:l.layoutBox[v],b=oe(u[v]);S.max=S.min+b,i.relativeTarget&&!i.currentAnimation&&(i.isProjectionDirty=!0,i.relativeTarget[v].max=i.relativeTarget[v].min+b)});const h=ua();hl(h,u,l.layoutBox);const p=ua();d?hl(p,i.applyTransform(o,!0),l.measuredBox):hl(p,u,l.layoutBox);const g=!t0(h);let m=!1;if(!i.resumeFrom){const v=i.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:S,layout:b}=v;if(S&&b){const z=i.options.layoutAnchor||void 0,V=Jt();uu(V,l.layoutBox,S.layoutBox,z);const w=Jt();uu(w,u,b.layoutBox,z),e0(V,w)||(m=!0),v.options.layoutRoot&&(i.relativeTarget=w,i.relativeTargetOrigin=V,i.relativeParent=v)}}}i.notifyListeners("didUpdate",{layout:u,snapshot:l,delta:p,layoutDelta:h,hasLayoutChanged:g,hasRelativeLayoutChanged:m})}else if(i.isLead()){const{onExitComplete:u}=i.options;u&&u()}i.options.transition=void 0}function BA(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 NA(i){i.isProjectionDirty=i.isSharedProjectionDirty=i.isTransformDirty=!1}function wA(i){i.clearSnapshot()}function fy(i){i.clearMeasurements()}function LA(i){i.isLayoutDirty=!0,i.updateLayout()}function hy(i){i.isLayoutDirty=!1}function jA(i){i.isAnimationBlocked&&i.layout&&!i.isLayoutDirty&&(i.snapshot=i.layout,i.isLayoutDirty=!0)}function HA(i){const{visualElement:l}=i.options;l&&l.getProps().onBeforeLayoutMeasure&&l.notify("BeforeLayoutMeasure"),i.resetTransform()}function dy(i){i.finishAnimation(),i.targetDelta=i.relativeTarget=i.target=void 0,i.isProjectionDirty=!0}function YA(i){i.resolveTargetDelta()}function qA(i){i.calcProjection()}function GA(i){i.resetSkewAndRotation()}function XA(i){i.removeLeadSnapshot()}function my(i,l,u){i.translate=Vt(l.translate,0,u),i.scale=Vt(l.scale,1,u),i.origin=l.origin,i.originPoint=l.originPoint}function py(i,l,u,o){i.min=Vt(l.min,u.min,o),i.max=Vt(l.max,u.max,o)}function ZA(i,l,u,o){py(i.x,l.x,u.x,o),py(i.y,l.y,u.y,o)}function QA(i){return i.animationValues&&i.animationValues.opacityExit!==void 0}const KA={duration:.45,ease:[.4,0,.1,1]},yy=i=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(i),gy=yy("applewebkit/")&&!yy("chrome/")?Math.round:je;function vy(i){i.min=gy(i.min),i.max=gy(i.max)}function JA(i){vy(i.x),vy(i.y)}function s0(i,l,u){return i==="position"||i==="preserve-aspect"&&!mA(sy(l),sy(u),.2)}function kA(i){return i!==i.root&&i.scroll?.wasRoot}const FA=l0({attachResizeListener:(i,l)=>gl(i,"resize",l),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Wr={current:void 0},u0=l0({measureScroll:i=>({x:i.scrollLeft,y:i.scrollTop}),defaultParent:()=>{if(!Wr.current){const i=new FA({});i.mount(window),i.setOptions({layoutScroll:!0}),Wr.current=i}return Wr.current},resetTransform:(i,l)=>{i.style.transform=l!==void 0?l:"none"},checkIsScrollRoot:i=>window.getComputedStyle(i).position==="fixed"}),ef=X.createContext({transformPagePoint:i=>i,isStatic:!1,reducedMotion:"never"});function Sy(i,l){if(typeof i=="function")return i(l);i!=null&&(i.current=l)}function WA(...i){return l=>{let u=!1;const o=i.map(c=>{const d=Sy(c,l);return!u&&typeof d=="function"&&(u=!0),d});if(u)return()=>{for(let c=0;c<o.length;c++){const d=o[c];typeof d=="function"?d():Sy(i[c],null)}}}}function PA(...i){return X.useCallback(WA(...i),i)}class $A extends X.Component{getSnapshotBeforeUpdate(l){const u=this.props.childRef.current;if(Ks(u)&&l.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const o=u.offsetParent,c=Ks(o)&&o.offsetWidth||0,d=Ks(o)&&o.offsetHeight||0,h=getComputedStyle(u),p=this.props.sizeRef.current;p.height=parseFloat(h.height),p.width=parseFloat(h.width),p.top=u.offsetTop,p.left=u.offsetLeft,p.right=c-p.width-p.left,p.bottom=d-p.height-p.top}return null}componentDidUpdate(){}render(){return this.props.children}}function IA({children:i,isPresent:l,anchorX:u,anchorY:o,root:c,pop:d}){const h=X.useId(),p=X.useRef(null),g=X.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:m}=X.useContext(ef),v=i.props?.ref??i?.ref,S=PA(p,v);return X.useInsertionEffect(()=>{const{width:b,height:z,top:V,left:w,right:L,bottom:j}=g.current;if(l||d===!1||!p.current||!b||!z)return;const q=u==="left"?`left: ${w}`:`right: ${L}`,H=o==="bottom"?`bottom: ${j}`:`top: ${V}`;p.current.dataset.motionPopId=h;const Y=document.createElement("style");m&&(Y.nonce=m);const P=c??document.head;return P.appendChild(Y),Y.sheet&&Y.sheet.insertRule(`
10
- [data-motion-pop-id="${h}"] {
11
- position: absolute !important;
12
- width: ${b}px !important;
13
- height: ${z}px !important;
14
- ${q}px !important;
15
- ${H}px !important;
16
- }
17
- `),()=>{p.current?.removeAttribute("data-motion-pop-id"),P.contains(Y)&&P.removeChild(Y)}},[l]),vn.jsx($A,{isPresent:l,childRef:p,sizeRef:g,pop:d,children:d===!1?i:X.cloneElement(i,{ref:S})})}const t2=({children:i,initial:l,isPresent:u,onExitComplete:o,custom:c,presenceAffectsLayout:d,mode:h,anchorX:p,anchorY:g,root:m})=>{const v=Rc(e2),S=X.useId();let b=!0,z=X.useMemo(()=>(b=!1,{id:S,initial:l,isPresent:u,custom:c,onExitComplete:V=>{v.set(V,!0);for(const w of v.values())if(!w)return;o&&o()},register:V=>(v.set(V,!1),()=>v.delete(V))}),[u,v,o]);return d&&b&&(z={...z}),X.useMemo(()=>{v.forEach((V,w)=>v.set(w,!1))},[u]),X.useEffect(()=>{!u&&!v.size&&o&&o()},[u]),i=vn.jsx(IA,{pop:h==="popLayout",isPresent:u,anchorX:p,anchorY:g,root:m,children:i}),vn.jsx(ru.Provider,{value:z,children:i})};function e2(){return new Map}function o0(i=!0){const l=X.useContext(ru);if(l===null)return[!0,null];const{isPresent:u,onExitComplete:o,register:c}=l,d=X.useId();X.useEffect(()=>{if(i)return c(d)},[i]);const h=X.useCallback(()=>i&&o&&o(d),[d,o,i]);return!u&&o?[!1,h]:[!0]}const Gs=i=>i.key||"";function Ty(i){const l=[];return X.Children.forEach(i,u=>{X.isValidElement(u)&&l.push(u)}),l}const gE=({children:i,custom:l,initial:u=!0,onExitComplete:o,presenceAffectsLayout:c=!0,mode:d="sync",propagate:h=!1,anchorX:p="left",anchorY:g="top",root:m})=>{const[v,S]=o0(h),b=X.useMemo(()=>Ty(i),[i]),z=h&&!v?[]:b.map(Gs),V=X.useRef(!0),w=X.useRef(b),L=Rc(()=>new Map),j=X.useRef(new Set),[q,H]=X.useState(b),[Y,P]=X.useState(b);wy(()=>{V.current=!1,w.current=b;for(let W=0;W<Y.length;W++){const nt=Gs(Y[W]);z.includes(nt)?(L.delete(nt),j.current.delete(nt)):L.get(nt)!==!0&&L.set(nt,!1)}},[Y,z.length,z.join("-")]);const ot=[];if(b!==q){let W=[...b];for(let nt=0;nt<Y.length;nt++){const $=Y[nt],mt=Gs($);z.includes(mt)||(W.splice(nt,0,$),ot.push($))}return d==="wait"&&ot.length&&(W=ot),P(Ty(W)),H(b),null}const{forceRender:tt}=X.useContext(zc);return vn.jsx(vn.Fragment,{children:Y.map(W=>{const nt=Gs(W),$=h&&!v?!1:b===Y||z.includes(nt),mt=()=>{if(j.current.has(nt))return;if(L.has(nt))j.current.add(nt),L.set(nt,!0);else return;let gt=!0;L.forEach(Wt=>{Wt||(gt=!1)}),gt&&(tt?.(),P(w.current),h&&S?.(),o&&o())};return vn.jsx(t2,{isPresent:$,initial:!V.current||u?void 0:!1,custom:l,presenceAffectsLayout:c,mode:d,root:m,onExitComplete:$?void 0:mt,anchorX:p,anchorY:g,children:W},nt)})})},r0=X.createContext({strict:!1}),by={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 Ay=!1;function n2(){if(Ay)return;const i={};for(const l in by)i[l]={isEnabled:u=>by[l].some(o=>!!u[o])};jg(i),Ay=!0}function c0(){return n2(),Yb()}function i2(i){const l=c0();for(const u in i)l[u]={...l[u],...i[u]};jg(l)}const a2=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 ou(i){return i.startsWith("while")||i.startsWith("drag")&&i!=="draggable"||i.startsWith("layout")||i.startsWith("onTap")||i.startsWith("onPan")||i.startsWith("onLayout")||a2.has(i)}let f0=i=>!ou(i);function l2(i){typeof i=="function"&&(f0=l=>l.startsWith("on")?!ou(l):i(l))}try{l2(require("@emotion/is-prop-valid").default)}catch{}function s2(i,l,u){const o={};for(const c in i)c==="values"&&typeof i.values=="object"||ie(i[c])||(f0(c)||u===!0&&ou(c)||!l&&!ou(c)||i.draggable&&c.startsWith("onDrag"))&&(o[c]=i[c]);return o}const du=X.createContext({});function u2(i,l){if(hu(i)){const{initial:u,animate:o}=i;return{initial:u===!1||yl(u)?u:void 0,animate:yl(o)?o:void 0}}return i.inherit!==!1?l:{}}function o2(i){const{initial:l,animate:u}=u2(i,X.useContext(du));return X.useMemo(()=>({initial:l,animate:u}),[Ey(l),Ey(u)])}function Ey(i){return Array.isArray(i)?i.join(" "):i}const nf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function h0(i,l,u){for(const o in l)!ie(l[o])&&!Qg(o,u)&&(i[o]=l[o])}function r2({transformTemplate:i},l){return X.useMemo(()=>{const u=nf();return Ic(u,l,i),Object.assign({},u.vars,u.style)},[l])}function c2(i,l){const u=i.style||{},o={};return h0(o,u,i),Object.assign(o,r2(i,l)),o}function f2(i,l){const u={},o=c2(i,l);return i.drag&&i.dragListener!==!1&&(u.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=i.drag===!0?"none":`pan-${i.drag==="x"?"y":"x"}`),i.tabIndex===void 0&&(i.onTap||i.onTapStart||i.whileTap)&&(u.tabIndex=0),u.style=o,u}const d0=()=>({...nf(),attrs:{}});function h2(i,l,u,o){const c=X.useMemo(()=>{const d=d0();return Kg(d,l,kg(o),i.transformTemplate,i.style),{...d.attrs,style:{...d.style}}},[l]);if(i.style){const d={};h0(d,i.style,i),c.style={...d,...c.style}}return c}const d2=["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 af(i){return typeof i!="string"||i.includes("-")?!1:!!(d2.indexOf(i)>-1||/[A-Z]/u.test(i))}function m2(i,l,u,{latestValues:o},c,d=!1,h){const g=(h??af(i)?h2:f2)(l,o,c,i),m=s2(l,typeof i=="string",d),v=i!==X.Fragment?{...m,...g,ref:u}:{},{children:S}=l,b=X.useMemo(()=>ie(S)?S.get():S,[S]);return X.createElement(i,{...v,children:b})}function p2({scrapeMotionValuesFromProps:i,createRenderState:l},u,o,c){return{latestValues:y2(u,o,c,i),renderState:l()}}function y2(i,l,u,o){const c={},d=o(i,{});for(const b in d)c[b]=$s(d[b]);let{initial:h,animate:p}=i;const g=hu(i),m=wg(i);l&&m&&!g&&i.inherit!==!1&&(h===void 0&&(h=l.initial),p===void 0&&(p=l.animate));let v=u?u.initial===!1:!1;v=v||h===!1;const S=v?p:h;if(S&&typeof S!="boolean"&&!fu(S)){const b=Array.isArray(S)?S:[S];for(let z=0;z<b.length;z++){const V=Qc(i,b[z]);if(V){const{transitionEnd:w,transition:L,...j}=V;for(const q in j){let H=j[q];if(Array.isArray(H)){const Y=v?H.length-1:0;H=H[Y]}H!==null&&(c[q]=H)}for(const q in w)c[q]=w[q]}}}return c}const m0=i=>(l,u)=>{const o=X.useContext(du),c=X.useContext(ru),d=()=>p2(i,l,o,c);return u?d():Rc(d)},g2=m0({scrapeMotionValuesFromProps:tf,createRenderState:nf}),v2=m0({scrapeMotionValuesFromProps:Fg,createRenderState:d0}),S2=Symbol.for("motionComponentSymbol");function T2(i,l,u){const o=X.useRef(u);X.useInsertionEffect(()=>{o.current=u});const c=X.useRef(null);return X.useCallback(d=>{d&&i.onMount?.(d);const h=o.current;if(typeof h=="function")if(d){const p=h(d);typeof p=="function"&&(c.current=p)}else c.current?(c.current(),c.current=null):h(d);else h&&(h.current=d);l&&(d?l.mount(d):l.unmount())},[l])}const p0=X.createContext({});function aa(i){return i&&typeof i=="object"&&Object.prototype.hasOwnProperty.call(i,"current")}function b2(i,l,u,o,c,d){const{visualElement:h}=X.useContext(du),p=X.useContext(r0),g=X.useContext(ru),m=X.useContext(ef),v=m.reducedMotion,S=m.skipAnimations,b=X.useRef(null),z=X.useRef(!1);o=o||p.renderer,!b.current&&o&&(b.current=o(i,{visualState:l,parent:h,props:u,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:v,skipAnimations:S,isSVG:d}),z.current&&b.current&&(b.current.manuallyAnimateOnMount=!0));const V=b.current,w=X.useContext(p0);V&&!V.projection&&c&&(V.type==="html"||V.type==="svg")&&A2(b.current,u,c,w);const L=X.useRef(!1);X.useInsertionEffect(()=>{V&&L.current&&V.update(u,g)});const j=u[Eg],q=X.useRef(!!j&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(j)&&window.MotionHasOptimisedAnimation?.(j));return wy(()=>{z.current=!0,V&&(L.current=!0,window.MotionIsMounted=!0,V.updateFeatures(),V.scheduleRenderMicrotask(),q.current&&V.animationState&&V.animationState.animateChanges())}),X.useEffect(()=>{V&&(!q.current&&V.animationState&&V.animationState.animateChanges(),q.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(j)}),q.current=!1),V.enteringChildren=void 0)}),V}function A2(i,l,u,o){const{layoutId:c,layout:d,drag:h,dragConstraints:p,layoutScroll:g,layoutRoot:m,layoutAnchor:v,layoutCrossfade:S}=l;i.projection=new u(i.latestValues,l["data-framer-portal-id"]?void 0:y0(i.parent)),i.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!h||p&&aa(p),visualElement:i,animationType:typeof d=="string"?d:"both",initialPromotionConfig:o,crossfade:S,layoutScroll:g,layoutRoot:m,layoutAnchor:v})}function y0(i){if(i)return i.options.allowProjection!==!1?i.projection:y0(i.parent)}function Pr(i,{forwardMotionProps:l=!1,type:u}={},o,c){o&&i2(o);const d=u?u==="svg":af(i),h=d?v2:g2;function p(m,v){let S;const b={...X.useContext(ef),...m,layoutId:E2(m)},{isStatic:z}=b,V=o2(m),w=h(m,z);if(!z&&typeof window<"u"){M2();const L=D2(b);S=L.MeasureLayout,V.visualElement=b2(i,w,b,c,L.ProjectionNode,d)}return vn.jsxs(du.Provider,{value:V,children:[S&&V.visualElement?vn.jsx(S,{visualElement:V.visualElement,...b}):null,m2(i,m,T2(w,V.visualElement,v),w,z,l,d)]})}p.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const g=X.forwardRef(p);return g[S2]=i,g}function E2({layoutId:i}){const l=X.useContext(zc).id;return l&&i!==void 0?l+"-"+i:i}function M2(i,l){X.useContext(r0).strict}function D2(i){const l=c0(),{drag:u,layout:o}=l;if(!u&&!o)return{};const c={...u,...o};return{MeasureLayout:u?.isEnabled(i)||o?.isEnabled(i)?c.MeasureLayout:void 0,ProjectionNode:c.ProjectionNode}}function x2(i,l){if(typeof Proxy>"u")return Pr;const u=new Map,o=(d,h)=>Pr(d,h,i,l),c=(d,h)=>o(d,h);return new Proxy(c,{get:(d,h)=>h==="create"?o:(u.has(h)||u.set(h,Pr(h,void 0,i,l)),u.get(h))})}const C2=(i,l)=>l.isSVG??af(i)?new iA(l):new Pb(l,{allowProjection:i!==X.Fragment});class z2 extends kn{constructor(l){super(l),l.animationState||(l.animationState=oA(l))}updateAnimationControlsSubscription(){const{animate:l}=this.node.getProps();fu(l)&&(this.unmountControls=l.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:l}=this.node.getProps(),{animate:u}=this.node.prevProps||{};l!==u&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let R2=0;class O2 extends kn{constructor(){super(...arguments),this.id=R2++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:l,onExitComplete:u}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||l===o)return;if(l&&o===!1){if(this.isExitComplete){const{initial:d,custom:h}=this.node.getProps();if(typeof d=="string"){const p=Si(this.node,d,h);if(p){const{transition:g,transitionEnd:m,...v}=p;for(const S in v)this.node.getValue(S)?.jump(v[S])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const c=this.node.animationState.setActive("exit",!l);u&&!l&&c.then(()=>{this.isExitComplete=!0,u(this.id)})}mount(){const{register:l,onExitComplete:u}=this.node.presenceContext||{};u&&u(this.id),l&&(this.unmount=l(this.id))}unmount(){}}const V2={animation:{Feature:z2},exit:{Feature:O2}};function bl(i){return{point:{x:i.pageX,y:i.pageY}}}const _2=i=>l=>Fc(l)&&i(l,bl(l));function dl(i,l,u,o){return gl(i,l,_2(u),o)}const g0=({current:i})=>i?i.ownerDocument.defaultView:null,My=(i,l)=>Math.abs(i-l);function U2(i,l){const u=My(i.x,l.x),o=My(i.y,l.y);return Math.sqrt(u**2+o**2)}const Dy=new Set(["auto","scroll"]);class v0{constructor(l,u,{transformPagePoint:o,contextWindow:c=window,dragSnapToOrigin:d=!1,distanceThreshold:h=3,element:p}={}){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=z=>{this.handleScroll(z.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Xs(this.lastRawMoveEventInfo,this.transformPagePoint));const z=$r(this.lastMoveEventInfo,this.history),V=this.startEvent!==null,w=U2(z.offset,{x:0,y:0})>=this.distanceThreshold;if(!V&&!w)return;const{point:L}=z,{timestamp:j}=ne;this.history.push({...L,timestamp:j});const{onStart:q,onMove:H}=this.handlers;V||(q&&q(this.lastMoveEvent,z),this.startEvent=this.lastMoveEvent),H&&H(this.lastMoveEvent,z)},this.handlePointerMove=(z,V)=>{this.lastMoveEvent=z,this.lastRawMoveEventInfo=V,this.lastMoveEventInfo=Xs(V,this.transformPagePoint),zt.update(this.updatePoint,!0)},this.handlePointerUp=(z,V)=>{this.end();const{onEnd:w,onSessionEnd:L,resumeAnimation:j}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&j&&j(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const q=$r(z.type==="pointercancel"?this.lastMoveEventInfo:Xs(V,this.transformPagePoint),this.history);this.startEvent&&w&&w(z,q),L&&L(z,q)},!Fc(l))return;this.dragSnapToOrigin=d,this.handlers=u,this.transformPagePoint=o,this.distanceThreshold=h,this.contextWindow=c||window;const g=bl(l),m=Xs(g,this.transformPagePoint),{point:v}=m,{timestamp:S}=ne;this.history=[{...v,timestamp:S}];const{onSessionStart:b}=u;b&&b(l,$r(m,this.history)),this.removeListeners=vl(dl(this.contextWindow,"pointermove",this.handlePointerMove),dl(this.contextWindow,"pointerup",this.handlePointerUp),dl(this.contextWindow,"pointercancel",this.handlePointerUp)),p&&this.startScrollTracking(p)}startScrollTracking(l){let u=l.parentElement;for(;u;){const o=getComputedStyle(u);(Dy.has(o.overflowX)||Dy.has(o.overflowY))&&this.scrollPositions.set(u,{x:u.scrollLeft,y:u.scrollTop}),u=u.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 u=this.scrollPositions.get(l);if(!u)return;const o=l===window,c=o?{x:window.scrollX,y:window.scrollY}:{x:l.scrollLeft,y:l.scrollTop},d={x:c.x-u.x,y:c.y-u.y};d.x===0&&d.y===0||(o?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=d.x,this.lastMoveEventInfo.point.y+=d.y):this.history.length>0&&(this.history[0].x-=d.x,this.history[0].y-=d.y),this.scrollPositions.set(l,c),zt.update(this.updatePoint,!0))}updateHandlers(l){this.handlers=l}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Jn(this.updatePoint)}}function Xs(i,l){return l?{point:l(i.point)}:i}function xy(i,l){return{x:i.x-l.x,y:i.y-l.y}}function $r({point:i},l){return{point:i,delta:xy(i,S0(l)),offset:xy(i,B2(l)),velocity:N2(l,.1)}}function B2(i){return i[0]}function S0(i){return i[i.length-1]}function N2(i,l){if(i.length<2)return{x:0,y:0};let u=i.length-1,o=null;const c=S0(i);for(;u>=0&&(o=i[u],!(c.timestamp-o.timestamp>xe(l)));)u--;if(!o)return{x:0,y:0};o===i[0]&&i.length>2&&c.timestamp-o.timestamp>xe(l)*2&&(o=i[1]);const d=Le(c.timestamp-o.timestamp);if(d===0)return{x:0,y:0};const h={x:(c.x-o.x)/d,y:(c.y-o.y)/d};return h.x===1/0&&(h.x=0),h.y===1/0&&(h.y=0),h}function w2(i,{min:l,max:u},o){return l!==void 0&&i<l?i=o?Vt(l,i,o.min):Math.max(i,l):u!==void 0&&i>u&&(i=o?Vt(u,i,o.max):Math.min(i,u)),i}function Cy(i,l,u){return{min:l!==void 0?i.min+l:void 0,max:u!==void 0?i.max+u-(i.max-i.min):void 0}}function L2(i,{top:l,left:u,bottom:o,right:c}){return{x:Cy(i.x,u,c),y:Cy(i.y,l,o)}}function zy(i,l){let u=l.min-i.min,o=l.max-i.max;return l.max-l.min<i.max-i.min&&([u,o]=[o,u]),{min:u,max:o}}function j2(i,l){return{x:zy(i.x,l.x),y:zy(i.y,l.y)}}function H2(i,l){let u=.5;const o=oe(i),c=oe(l);return c>o?u=ml(l.min,l.max-o,i.min):o>c&&(u=ml(i.min,i.max-c,l.min)),$e(0,1,u)}function Y2(i,l){const u={};return l.min!==void 0&&(u.min=l.min-i.min),l.max!==void 0&&(u.max=l.max-i.min),u}const Mc=.35;function q2(i=Mc){return i===!1?i=0:i===!0&&(i=Mc),{x:Ry(i,"left","right"),y:Ry(i,"top","bottom")}}function Ry(i,l,u){return{min:Oy(i,l),max:Oy(i,u)}}function Oy(i,l){return typeof i=="number"?i:i[l]||0}const G2=new WeakMap;class X2{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=Jt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=l}start(l,{snapToCursor:u=!1,distanceThreshold:o}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const d=S=>{u&&this.snapToCursor(bl(S).point),this.stopAnimation()},h=(S,b)=>{const{drag:z,dragPropagation:V,onDragStart:w}=this.getProps();if(z&&!V&&(this.openDragLock&&this.openDragLock(),this.openDragLock=yb(z),!this.openDragLock))return;this.latestPointerEvent=S,this.latestPanInfo=b,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Fe(j=>{let q=this.getAxisMotionValue(j).get()||0;if(Pe.test(q)){const{projection:H}=this.visualElement;if(H&&H.layout){const Y=H.layout.layoutBox[j];Y&&(q=oe(Y)*(parseFloat(q)/100))}}this.originPoint[j]=q}),w&&zt.update(()=>w(S,b),!1,!0),pc(this.visualElement,"transform");const{animationState:L}=this.visualElement;L&&L.setActive("whileDrag",!0)},p=(S,b)=>{this.latestPointerEvent=S,this.latestPanInfo=b;const{dragPropagation:z,dragDirectionLock:V,onDirectionLock:w,onDrag:L}=this.getProps();if(!z&&!this.openDragLock)return;const{offset:j}=b;if(V&&this.currentDirection===null){this.currentDirection=Q2(j),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",b.point,j),this.updateAxis("y",b.point,j),this.visualElement.render(),L&&zt.update(()=>L(S,b),!1,!0)},g=(S,b)=>{this.latestPointerEvent=S,this.latestPanInfo=b,this.stop(S,b),this.latestPointerEvent=null,this.latestPanInfo=null},m=()=>{const{dragSnapToOrigin:S}=this.getProps();(S||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:v}=this.getProps();this.panSession=new v0(l,{onSessionStart:d,onStart:h,onMove:p,onSessionEnd:g,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:v,distanceThreshold:o,contextWindow:g0(this.visualElement),element:this.visualElement.current})}stop(l,u){const o=l||this.latestPointerEvent,c=u||this.latestPanInfo,d=this.isDragging;if(this.cancel(),!d||!c||!o)return;const{velocity:h}=c;this.startAnimation(h);const{onDragEnd:p}=this.getProps();p&&zt.postRender(()=>p(o,c))}cancel(){this.isDragging=!1;const{projection:l,animationState:u}=this.visualElement;l&&(l.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),u&&u.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(l,u,o){const{drag:c}=this.getProps();if(!o||!Zs(l,c,this.currentDirection))return;const d=this.getAxisMotionValue(l);let h=this.originPoint[l]+o[l];this.constraints&&this.constraints[l]&&(h=w2(h,this.constraints[l],this.elastic[l])),d.set(h)}resolveConstraints(){const{dragConstraints:l,dragElastic:u}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,c=this.constraints;l&&aa(l)?this.constraints||(this.constraints=this.resolveRefConstraints()):l&&o?this.constraints=L2(o.layoutBox,l):this.constraints=!1,this.elastic=q2(u),c!==this.constraints&&!aa(l)&&o&&this.constraints&&!this.hasMutatedConstraints&&Fe(d=>{this.constraints!==!1&&this.getAxisMotionValue(d)&&(this.constraints[d]=Y2(o.layoutBox[d],this.constraints[d]))})}resolveRefConstraints(){const{dragConstraints:l,onMeasureDragConstraints:u}=this.getProps();if(!l||!aa(l))return!1;const o=l.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const d=Qb(o,c.root,this.visualElement.getTransformPagePoint());let h=j2(c.layout.layoutBox,d);if(u){const p=u(Gb(h));this.hasMutatedConstraints=!!p,p&&(h=Yg(p))}return h}startAnimation(l){const{drag:u,dragMomentum:o,dragElastic:c,dragTransition:d,dragSnapToOrigin:h,onDragTransitionEnd:p}=this.getProps(),g=this.constraints||{},m=Fe(v=>{if(!Zs(v,u,this.currentDirection))return;let S=g&&g[v]||{};(h===!0||h===v)&&(S={min:0,max:0});const b=c?200:1e6,z=c?40:1e7,V={type:"inertia",velocity:o?l[v]:0,bounceStiffness:b,bounceDamping:z,timeConstant:750,restDelta:1,restSpeed:10,...d,...S};return this.startAxisValueAnimation(v,V)});return Promise.all(m).then(p)}startAxisValueAnimation(l,u){const o=this.getAxisMotionValue(l);return pc(this.visualElement,l),o.start(Zc(l,o,0,u,this.visualElement,!1))}stopAnimation(){Fe(l=>this.getAxisMotionValue(l).stop())}getAxisMotionValue(l){const u=`_drag${l.toUpperCase()}`,o=this.visualElement.getProps(),c=o[u];return c||this.visualElement.getValue(l,(o.initial?o.initial[l]:void 0)||0)}snapToCursor(l){Fe(u=>{const{drag:o}=this.getProps();if(!Zs(u,o,this.currentDirection))return;const{projection:c}=this.visualElement,d=this.getAxisMotionValue(u);if(c&&c.layout){const{min:h,max:p}=c.layout.layoutBox[u],g=d.get()||0;d.set(l[u]-Vt(h,p,.5)+g)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:l,dragConstraints:u}=this.getProps(),{projection:o}=this.visualElement;if(!aa(u)||!o||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};Fe(h=>{const p=this.getAxisMotionValue(h);if(p&&this.constraints!==!1){const g=p.get();c[h]=H2({min:g,max:g},this.constraints[h])}});const{transformTemplate:d}=this.visualElement.getProps();this.visualElement.current.style.transform=d?d({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.constraints=!1,this.resolveConstraints(),Fe(h=>{if(!Zs(h,l,null))return;const p=this.getAxisMotionValue(h),{min:g,max:m}=this.constraints[h];p.set(Vt(g,m,c[h]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;G2.set(this.visualElement,this);const l=this.visualElement.current,u=dl(l,"pointerdown",m=>{const{drag:v,dragListener:S=!0}=this.getProps(),b=m.target,z=b!==l&&Ab(b);v&&S&&!z&&this.start(m)});let o;const c=()=>{const{dragConstraints:m}=this.getProps();aa(m)&&m.current&&(this.constraints=this.resolveRefConstraints(),o||(o=Z2(l,m.current,()=>this.scalePositionWithinConstraints())))},{projection:d}=this.visualElement,h=d.addEventListener("measure",c);d&&!d.layout&&(d.root&&d.root.updateScroll(),d.updateLayout()),zt.read(c);const p=gl(window,"resize",()=>this.scalePositionWithinConstraints()),g=d.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:v})=>{this.isDragging&&v&&(Fe(S=>{const b=this.getAxisMotionValue(S);b&&(this.originPoint[S]+=m[S].translate,b.set(b.get()+m[S].translate))}),this.visualElement.render())}));return()=>{p(),u(),h(),g&&g(),o&&o()}}getProps(){const l=this.visualElement.getProps(),{drag:u=!1,dragDirectionLock:o=!1,dragPropagation:c=!1,dragConstraints:d=!1,dragElastic:h=Mc,dragMomentum:p=!0}=l;return{...l,drag:u,dragDirectionLock:o,dragPropagation:c,dragConstraints:d,dragElastic:h,dragMomentum:p}}}function Vy(i){let l=!0;return()=>{if(l){l=!1;return}i()}}function Z2(i,l,u){const o=jp(i,Vy(u)),c=jp(l,Vy(u));return()=>{o(),c()}}function Zs(i,l,u){return(l===!0||l===i)&&(u===null||u===i)}function Q2(i,l=10){let u=null;return Math.abs(i.y)>l?u="y":Math.abs(i.x)>l&&(u="x"),u}class K2 extends kn{constructor(l){super(l),this.removeGroupControls=je,this.removeListeners=je,this.controls=new X2(l)}mount(){const{dragControls:l}=this.node.getProps();l&&(this.removeGroupControls=l.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||je}update(){const{dragControls:l}=this.node.getProps(),{dragControls:u}=this.node.prevProps||{};l!==u&&(this.removeGroupControls(),l&&(this.removeGroupControls=l.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Ir=i=>(l,u)=>{i&&zt.update(()=>i(l,u),!1,!0)};class J2 extends kn{constructor(){super(...arguments),this.removePointerDownListener=je}onPointerDown(l){this.session=new v0(l,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:g0(this.node)})}createPanHandlers(){const{onPanSessionStart:l,onPanStart:u,onPan:o,onPanEnd:c}=this.node.getProps();return{onSessionStart:Ir(l),onStart:Ir(u),onMove:Ir(o),onEnd:(d,h)=>{delete this.session,c&&zt.postRender(()=>c(d,h))}}}mount(){this.removePointerDownListener=dl(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 tc=!1;class k2 extends X.Component{componentDidMount(){const{visualElement:l,layoutGroup:u,switchLayoutGroup:o,layoutId:c}=this.props,{projection:d}=l;d&&(u.group&&u.group.add(d),o&&o.register&&c&&o.register(d),tc&&d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Is.hasEverUpdated=!0}getSnapshotBeforeUpdate(l){const{layoutDependency:u,visualElement:o,drag:c,isPresent:d}=this.props,{projection:h}=o;return h&&(h.isPresent=d,l.layoutDependency!==u&&h.setOptions({...h.options,layoutDependency:u}),tc=!0,c||l.layoutDependency!==u||u===void 0||l.isPresent!==d?h.willUpdate():this.safeToRemove(),l.isPresent!==d&&(d?h.promote():h.relegate()||zt.postRender(()=>{const p=h.getStack();(!p||!p.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:l,layoutAnchor:u}=this.props,{projection:o}=l;o&&(o.options.layoutAnchor=u,o.root.didUpdate(),kc.postRender(()=>{!o.currentAnimation&&o.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:l,layoutGroup:u,switchLayoutGroup:o}=this.props,{projection:c}=l;tc=!0,c&&(c.scheduleCheckAfterUnmount(),u&&u.group&&u.group.remove(c),o&&o.deregister&&o.deregister(c))}safeToRemove(){const{safeToRemove:l}=this.props;l&&l()}render(){return null}}function T0(i){const[l,u]=o0(),o=X.useContext(zc);return vn.jsx(k2,{...i,layoutGroup:o,switchLayoutGroup:X.useContext(p0),isPresent:l,safeToRemove:u})}const F2={pan:{Feature:J2},drag:{Feature:K2,ProjectionNode:u0,MeasureLayout:T0}};function _y(i,l,u){const{props:o}=i;i.animationState&&o.whileHover&&i.animationState.setActive("whileHover",u==="Start");const c="onHover"+u,d=o[c];d&&zt.postRender(()=>d(l,bl(l)))}class W2 extends kn{mount(){const{current:l}=this.node;l&&(this.unmount=vb(l,(u,o)=>(_y(this.node,o,"Start"),c=>_y(this.node,c,"End"))))}unmount(){}}class P2 extends kn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let l=!1;try{l=this.node.current.matches(":focus-visible")}catch{l=!0}!l||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=vl(gl(this.node.current,"focus",()=>this.onFocus()),gl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Uy(i,l,u){const{props:o}=i;if(i.current instanceof HTMLButtonElement&&i.current.disabled)return;i.animationState&&o.whileTap&&i.animationState.setActive("whileTap",u==="Start");const c="onTap"+(u==="End"?"":u),d=o[c];d&&zt.postRender(()=>d(l,bl(l)))}class $2 extends kn{mount(){const{current:l}=this.node;if(!l)return;const{globalTapTarget:u,propagate:o}=this.node.props;this.unmount=Mb(l,(c,d)=>(Uy(this.node,d,"Start"),(h,{success:p})=>Uy(this.node,h,p?"End":"Cancel")),{useGlobalTarget:u,stopPropagation:o?.tap===!1})}unmount(){}}const Dc=new WeakMap,ec=new WeakMap,I2=i=>{const l=Dc.get(i.target);l&&l(i)},tE=i=>{i.forEach(I2)};function eE({root:i,...l}){const u=i||document;ec.has(u)||ec.set(u,{});const o=ec.get(u),c=JSON.stringify(l);return o[c]||(o[c]=new IntersectionObserver(tE,{root:i,...l})),o[c]}function nE(i,l,u){const o=eE(l);return Dc.set(i,u),o.observe(i),()=>{Dc.delete(i),o.unobserve(i)}}const iE={some:0,all:1};class aE extends kn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:l={}}=this.node.getProps(),{root:u,margin:o,amount:c="some",once:d}=l,h={root:u?u.current:void 0,rootMargin:o,threshold:typeof c=="number"?c:iE[c]},p=g=>{const{isIntersecting:m}=g;if(this.isInView===m||(this.isInView=m,d&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:v,onViewportLeave:S}=this.node.getProps(),b=m?v:S;b&&b(g)};this.stopObserver=nE(this.node.current,h,p)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:l,prevProps:u}=this.node;["amount","margin","root"].some(lE(l,u))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function lE({viewport:i={}},{viewport:l={}}={}){return u=>i[u]!==l[u]}const sE={inView:{Feature:aE},tap:{Feature:$2},focus:{Feature:P2},hover:{Feature:W2}},uE={layout:{ProjectionNode:u0,MeasureLayout:T0}},oE={...V2,...sE,...F2,...uE},vE=x2(oE,C2);export{gE as A,ne as B,Vc as C,Lg as D,Hb as E,Sc as F,hE as K,ef as M,cE as R,dE as S,mE as X,$1 as a,k1 as b,xc as c,Cc as d,rE as e,fE as f,By as g,ra as h,sT as i,vn as j,wy as k,Jn as l,vE as m,zt as n,_p as o,DT as p,ml as q,X as r,pE as s,Ks as t,Rc as u,qy as v,oT as w,$e as x,je as y,jp as z};