@humanjs/generator 0.1.0
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.
- package/LICENSE +21 -0
- package/README.md +79 -0
- package/dist/dashboard/assets/index-BA_iJGjh.css +1 -0
- package/dist/dashboard/assets/index-DAIzvz09.js +58 -0
- package/dist/dashboard/index.html +13 -0
- package/dist/index.cjs +503 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +500 -0
- package/dist/index.js.map +1 -0
- package/dist/injected.js +2 -0
- package/package.json +88 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))s(c);new MutationObserver(c=>{for(const d of c)if(d.type==="childList")for(const f of d.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&s(f)}).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 s(c){if(c.ep)return;c.ep=!0;const d=u(c);fetch(c.href,d)}})();var Qr={exports:{}},ol={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var gp;function lS(){if(gp)return ol;gp=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function u(s,c,d){var f=null;if(d!==void 0&&(f=""+d),c.key!==void 0&&(f=""+c.key),"key"in c){d={};for(var m in c)m!=="key"&&(d[m]=c[m])}else d=c;return c=d.ref,{$$typeof:i,type:s,key:f,ref:c!==void 0?c:null,props:d}}return ol.Fragment=l,ol.jsx=u,ol.jsxs=u,ol}var vp;function sS(){return vp||(vp=1,Qr.exports=lS()),Qr.exports}var J=sS(),Kr={exports:{}},lt={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Sp;function uS(){if(Sp)return lt;Sp=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),f=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),b=Symbol.iterator;function x(E){return E===null||typeof E!="object"?null:(E=b&&E[b]||E["@@iterator"],typeof E=="function"?E:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B=Object.assign,j={};function w(E,Y,Q){this.props=E,this.context=Y,this.refs=j,this.updater=Q||R}w.prototype.isReactComponent={},w.prototype.setState=function(E,Y){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,Y,"setState")},w.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function U(){}U.prototype=w.prototype;function H(E,Y,Q){this.props=E,this.context=Y,this.refs=j,this.updater=Q||R}var G=H.prototype=new U;G.constructor=H,B(G,w.prototype),G.isPureReactComponent=!0;var k=Array.isArray;function at(){}var X={H:null,A:null,T:null,S:null},K=Object.prototype.hasOwnProperty;function it(E,Y,Q){var $=Q.ref;return{$$typeof:i,type:E,key:Y,ref:$!==void 0?$:null,props:Q}}function tt(E,Y){return it(E.type,Y,E.props)}function pt(E){return typeof E=="object"&&E!==null&&E.$$typeof===i}function vt(E){var Y={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(Q){return Y[Q]})}var $t=/\/+/g;function qt(E,Y){return typeof E=="object"&&E!==null&&E.key!=null?vt(""+E.key):Y.toString(36)}function jt(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(at,at):(E.status="pending",E.then(function(Y){E.status==="pending"&&(E.status="fulfilled",E.value=Y)},function(Y){E.status==="pending"&&(E.status="rejected",E.reason=Y)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function V(E,Y,Q,$,st){var ct=typeof E;(ct==="undefined"||ct==="boolean")&&(E=null);var At=!1;if(E===null)At=!0;else switch(ct){case"bigint":case"string":case"number":At=!0;break;case"object":switch(E.$$typeof){case i:case l:At=!0;break;case v:return At=E._init,V(At(E._payload),Y,Q,$,st)}}if(At)return st=st(E),At=$===""?"."+qt(E,0):$,k(st)?(Q="",At!=null&&(Q=At.replace($t,"$&/")+"/"),V(st,Y,Q,"",function(pa){return pa})):st!=null&&(pt(st)&&(st=tt(st,Q+(st.key==null||E&&E.key===st.key?"":(""+st.key).replace($t,"$&/")+"/")+At)),Y.push(st)),1;At=0;var se=$===""?".":$+":";if(k(E))for(var Lt=0;Lt<E.length;Lt++)$=E[Lt],ct=se+qt($,Lt),At+=V($,Y,Q,ct,st);else if(Lt=x(E),typeof Lt=="function")for(E=Lt.call(E),Lt=0;!($=E.next()).done;)$=$.value,ct=se+qt($,Lt++),At+=V($,Y,Q,ct,st);else if(ct==="object"){if(typeof E.then=="function")return V(jt(E),Y,Q,$,st);throw Y=String(E),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return At}function Z(E,Y,Q){if(E==null)return E;var $=[],st=0;return V(E,$,"","",function(ct){return Y.call(Q,ct,st++)}),$}function F(E){if(E._status===-1){var Y=E._result;Y=Y(),Y.then(function(Q){(E._status===0||E._status===-1)&&(E._status=1,E._result=Q)},function(Q){(E._status===0||E._status===-1)&&(E._status=2,E._result=Q)}),E._status===-1&&(E._status=0,E._result=Y)}if(E._status===1)return E._result.default;throw E._result}var ot=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=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(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},yt={map:Z,forEach:function(E,Y,Q){Z(E,function(){Y.apply(this,arguments)},Q)},count:function(E){var Y=0;return Z(E,function(){Y++}),Y},toArray:function(E){return Z(E,function(Y){return Y})||[]},only:function(E){if(!pt(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return lt.Activity=S,lt.Children=yt,lt.Component=w,lt.Fragment=u,lt.Profiler=c,lt.PureComponent=H,lt.StrictMode=s,lt.Suspense=y,lt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,lt.__COMPILER_RUNTIME={__proto__:null,c:function(E){return X.H.useMemoCache(E)}},lt.cache=function(E){return function(){return E.apply(null,arguments)}},lt.cacheSignal=function(){return null},lt.cloneElement=function(E,Y,Q){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var $=B({},E.props),st=E.key;if(Y!=null)for(ct in Y.key!==void 0&&(st=""+Y.key),Y)!K.call(Y,ct)||ct==="key"||ct==="__self"||ct==="__source"||ct==="ref"&&Y.ref===void 0||($[ct]=Y[ct]);var ct=arguments.length-2;if(ct===1)$.children=Q;else if(1<ct){for(var At=Array(ct),se=0;se<ct;se++)At[se]=arguments[se+2];$.children=At}return it(E.type,st,$)},lt.createContext=function(E){return E={$$typeof:f,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:d,_context:E},E},lt.createElement=function(E,Y,Q){var $,st={},ct=null;if(Y!=null)for($ in Y.key!==void 0&&(ct=""+Y.key),Y)K.call(Y,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(st[$]=Y[$]);var At=arguments.length-2;if(At===1)st.children=Q;else if(1<At){for(var se=Array(At),Lt=0;Lt<At;Lt++)se[Lt]=arguments[Lt+2];st.children=se}if(E&&E.defaultProps)for($ in At=E.defaultProps,At)st[$]===void 0&&(st[$]=At[$]);return it(E,ct,st)},lt.createRef=function(){return{current:null}},lt.forwardRef=function(E){return{$$typeof:m,render:E}},lt.isValidElement=pt,lt.lazy=function(E){return{$$typeof:v,_payload:{_status:-1,_result:E},_init:F}},lt.memo=function(E,Y){return{$$typeof:p,type:E,compare:Y===void 0?null:Y}},lt.startTransition=function(E){var Y=X.T,Q={};X.T=Q;try{var $=E(),st=X.S;st!==null&&st(Q,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(at,ot)}catch(ct){ot(ct)}finally{Y!==null&&Q.types!==null&&(Y.types=Q.types),X.T=Y}},lt.unstable_useCacheRefresh=function(){return X.H.useCacheRefresh()},lt.use=function(E){return X.H.use(E)},lt.useActionState=function(E,Y,Q){return X.H.useActionState(E,Y,Q)},lt.useCallback=function(E,Y){return X.H.useCallback(E,Y)},lt.useContext=function(E){return X.H.useContext(E)},lt.useDebugValue=function(){},lt.useDeferredValue=function(E,Y){return X.H.useDeferredValue(E,Y)},lt.useEffect=function(E,Y){return X.H.useEffect(E,Y)},lt.useEffectEvent=function(E){return X.H.useEffectEvent(E)},lt.useId=function(){return X.H.useId()},lt.useImperativeHandle=function(E,Y,Q){return X.H.useImperativeHandle(E,Y,Q)},lt.useInsertionEffect=function(E,Y){return X.H.useInsertionEffect(E,Y)},lt.useLayoutEffect=function(E,Y){return X.H.useLayoutEffect(E,Y)},lt.useMemo=function(E,Y){return X.H.useMemo(E,Y)},lt.useOptimistic=function(E,Y){return X.H.useOptimistic(E,Y)},lt.useReducer=function(E,Y,Q){return X.H.useReducer(E,Y,Q)},lt.useRef=function(E){return X.H.useRef(E)},lt.useState=function(E){return X.H.useState(E)},lt.useSyncExternalStore=function(E,Y,Q){return X.H.useSyncExternalStore(E,Y,Q)},lt.useTransition=function(){return X.H.useTransition()},lt.version="19.2.7",lt}var bp;function Yc(){return bp||(bp=1,Kr.exports=uS()),Kr.exports}var q=Yc(),Jr={exports:{}},rl={},kr={exports:{}},Fr={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var Tp;function oS(){return Tp||(Tp=1,(function(i){function l(V,Z){var F=V.length;V.push(Z);t:for(;0<F;){var ot=F-1>>>1,yt=V[ot];if(0<c(yt,Z))V[ot]=Z,V[F]=yt,F=ot;else break t}}function u(V){return V.length===0?null:V[0]}function s(V){if(V.length===0)return null;var Z=V[0],F=V.pop();if(F!==Z){V[0]=F;t:for(var ot=0,yt=V.length,E=yt>>>1;ot<E;){var Y=2*(ot+1)-1,Q=V[Y],$=Y+1,st=V[$];if(0>c(Q,F))$<yt&&0>c(st,Q)?(V[ot]=st,V[$]=F,ot=$):(V[ot]=Q,V[Y]=F,ot=Y);else if($<yt&&0>c(st,F))V[ot]=st,V[$]=F,ot=$;else break t}}return Z}function c(V,Z){var F=V.sortIndex-Z.sortIndex;return F!==0?F:V.id-Z.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 f=Date,m=f.now();i.unstable_now=function(){return f.now()-m}}var y=[],p=[],v=1,S=null,b=3,x=!1,R=!1,B=!1,j=!1,w=typeof setTimeout=="function"?setTimeout:null,U=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;function G(V){for(var Z=u(p);Z!==null;){if(Z.callback===null)s(p);else if(Z.startTime<=V)s(p),Z.sortIndex=Z.expirationTime,l(y,Z);else break;Z=u(p)}}function k(V){if(B=!1,G(V),!R)if(u(y)!==null)R=!0,at||(at=!0,vt());else{var Z=u(p);Z!==null&&jt(k,Z.startTime-V)}}var at=!1,X=-1,K=5,it=-1;function tt(){return j?!0:!(i.unstable_now()-it<K)}function pt(){if(j=!1,at){var V=i.unstable_now();it=V;var Z=!0;try{t:{R=!1,B&&(B=!1,U(X),X=-1),x=!0;var F=b;try{e:{for(G(V),S=u(y);S!==null&&!(S.expirationTime>V&&tt());){var ot=S.callback;if(typeof ot=="function"){S.callback=null,b=S.priorityLevel;var yt=ot(S.expirationTime<=V);if(V=i.unstable_now(),typeof yt=="function"){S.callback=yt,G(V),Z=!0;break e}S===u(y)&&s(y),G(V)}else s(y);S=u(y)}if(S!==null)Z=!0;else{var E=u(p);E!==null&&jt(k,E.startTime-V),Z=!1}}break t}finally{S=null,b=F,x=!1}Z=void 0}}finally{Z?vt():at=!1}}}var vt;if(typeof H=="function")vt=function(){H(pt)};else if(typeof MessageChannel<"u"){var $t=new MessageChannel,qt=$t.port2;$t.port1.onmessage=pt,vt=function(){qt.postMessage(null)}}else vt=function(){w(pt,0)};function jt(V,Z){X=w(function(){V(i.unstable_now())},Z)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(V){V.callback=null},i.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<V?Math.floor(1e3/V):5},i.unstable_getCurrentPriorityLevel=function(){return b},i.unstable_next=function(V){switch(b){case 1:case 2:case 3:var Z=3;break;default:Z=b}var F=b;b=Z;try{return V()}finally{b=F}},i.unstable_requestPaint=function(){j=!0},i.unstable_runWithPriority=function(V,Z){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var F=b;b=V;try{return Z()}finally{b=F}},i.unstable_scheduleCallback=function(V,Z,F){var ot=i.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?ot+F:ot):F=ot,V){case 1:var yt=-1;break;case 2:yt=250;break;case 5:yt=1073741823;break;case 4:yt=1e4;break;default:yt=5e3}return yt=F+yt,V={id:v++,callback:Z,priorityLevel:V,startTime:F,expirationTime:yt,sortIndex:-1},F>ot?(V.sortIndex=F,l(p,V),u(y)===null&&V===u(p)&&(B?(U(X),X=-1):B=!0,jt(k,F-ot))):(V.sortIndex=yt,l(y,V),R||x||(R=!0,at||(at=!0,vt()))),V},i.unstable_shouldYield=tt,i.unstable_wrapCallback=function(V){var Z=b;return function(){var F=b;b=Z;try{return V.apply(this,arguments)}finally{b=F}}}})(Fr)),Fr}var Ap;function rS(){return Ap||(Ap=1,kr.exports=oS()),kr.exports}var Wr={exports:{}},le={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var Ep;function cS(){if(Ep)return le;Ep=1;var i=Yc();function l(y){var p="https://react.dev/errors/"+y;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)p+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+y+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var s={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(y,p,v){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:S==null?null:""+S,children:y,containerInfo:p,implementation:v}}var f=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(y,p){if(y==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return le.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,le.createPortal=function(y,p){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(l(299));return d(y,p,null,v)},le.flushSync=function(y){var p=f.T,v=s.p;try{if(f.T=null,s.p=2,y)return y()}finally{f.T=p,s.p=v,s.d.f()}},le.preconnect=function(y,p){typeof y=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(y,p))},le.prefetchDNS=function(y){typeof y=="string"&&s.d.D(y)},le.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var v=p.as,S=m(v,p.crossOrigin),b=typeof p.integrity=="string"?p.integrity:void 0,x=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?s.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:S,integrity:b,fetchPriority:x}):v==="script"&&s.d.X(y,{crossOrigin:S,integrity:b,fetchPriority:x,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},le.preinitModule=function(y,p){if(typeof y=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var v=m(p.as,p.crossOrigin);s.d.M(y,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&s.d.M(y)},le.preload=function(y,p){if(typeof y=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var v=p.as,S=m(v,p.crossOrigin);s.d.L(y,v,{crossOrigin:S,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},le.preloadModule=function(y,p){if(typeof y=="string")if(p){var v=m(p.as,p.crossOrigin);s.d.m(y,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else s.d.m(y)},le.requestFormReset=function(y){s.d.r(y)},le.unstable_batchedUpdates=function(y,p){return y(p)},le.useFormState=function(y,p,v){return f.H.useFormState(y,p,v)},le.useFormStatus=function(){return f.H.useHostTransitionStatus()},le.version="19.2.7",le}var xp;function fS(){if(xp)return Wr.exports;xp=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(),Wr.exports=cS(),Wr.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var Mp;function hS(){if(Mp)return rl;Mp=1;var i=rS(),l=Yc(),u=fS();function s(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 f(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function m(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 y(t){if(d(t)!==t)throw Error(s(188))}function p(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(s(188));return e!==t?null:t}for(var n=t,a=e;;){var o=n.return;if(o===null)break;var r=o.alternate;if(r===null){if(a=o.return,a!==null){n=a;continue}break}if(o.child===r.child){for(r=o.child;r;){if(r===n)return y(o),t;if(r===a)return y(o),e;r=r.sibling}throw Error(s(188))}if(n.return!==a.return)n=o,a=r;else{for(var h=!1,g=o.child;g;){if(g===n){h=!0,n=o,a=r;break}if(g===a){h=!0,a=o,n=r;break}g=g.sibling}if(!h){for(g=r.child;g;){if(g===n){h=!0,n=r,a=o;break}if(g===a){h=!0,a=r,n=o;break}g=g.sibling}if(!h)throw Error(s(189))}}if(n.alternate!==a)throw Error(s(190))}if(n.tag!==3)throw Error(s(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"),x=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),U=Symbol.for("react.consumer"),H=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),at=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),it=Symbol.for("react.activity"),tt=Symbol.for("react.memo_cache_sentinel"),pt=Symbol.iterator;function vt(t){return t===null||typeof t!="object"?null:(t=pt&&t[pt]||t["@@iterator"],typeof t=="function"?t:null)}var $t=Symbol.for("react.client.reference");function qt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===$t?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case B:return"Fragment";case w:return"Profiler";case j:return"StrictMode";case k:return"Suspense";case at:return"SuspenseList";case it:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case R:return"Portal";case H:return t.displayName||"Context";case U:return(t._context.displayName||"Context")+".Consumer";case G:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case X:return e=t.displayName||null,e!==null?e:qt(t.type)||"Memo";case K:e=t._payload,t=t._init;try{return qt(t(e))}catch{}}return null}var jt=Array.isArray,V=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},ot=[],yt=-1;function E(t){return{current:t}}function Y(t){0>yt||(t.current=ot[yt],ot[yt]=null,yt--)}function Q(t,e){yt++,ot[yt]=t.current,t.current=e}var $=E(null),st=E(null),ct=E(null),At=E(null);function se(t,e){switch(Q(ct,e),Q(st,t),Q($,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Ym(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Ym(e),t=qm(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Y($),Q($,t)}function Lt(){Y($),Y(st),Y(ct)}function pa(t){t.memoizedState!==null&&Q(At,t);var e=$.current,n=qm(e,t.type);e!==n&&(Q(st,t),Q($,n))}function zl(t){st.current===t&&(Y($),Y(st)),At.current===t&&(Y(At),al._currentValue=F)}var Du,yf;function Pn(t){if(Du===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Du=e&&e[1]||"",yf=-1<n.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Du+t+yf}var Cu=!1;function Ru(t,e){if(!t||Cu)return"";Cu=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var L=function(){throw Error()};if(Object.defineProperty(L.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(L,[])}catch(O){var z=O}Reflect.construct(t,[],L)}else{try{L.call()}catch(O){z=O}t.call(L.prototype)}}else{try{throw Error()}catch(O){z=O}(L=t())&&typeof L.catch=="function"&&L.catch(function(){})}}catch(O){if(O&&z&&typeof O.stack=="string")return[O.stack,z.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=a.DetermineComponentFrameRoot(),h=r[0],g=r[1];if(h&&g){var T=h.split(`
|
|
44
|
+
`),C=g.split(`
|
|
45
|
+
`);for(o=a=0;a<T.length&&!T[a].includes("DetermineComponentFrameRoot");)a++;for(;o<C.length&&!C[o].includes("DetermineComponentFrameRoot");)o++;if(a===T.length||o===C.length)for(a=T.length-1,o=C.length-1;1<=a&&0<=o&&T[a]!==C[o];)o--;for(;1<=a&&0<=o;a--,o--)if(T[a]!==C[o]){if(a!==1||o!==1)do if(a--,o--,0>o||T[a]!==C[o]){var _=`
|
|
46
|
+
`+T[a].replace(" at new "," at ");return t.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",t.displayName)),_}while(1<=a&&0<=o);break}}}finally{Cu=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Pn(n):""}function w0(t,e){switch(t.tag){case 26:case 27:case 5:return Pn(t.type);case 16:return Pn("Lazy");case 13:return t.child!==e&&e!==null?Pn("Suspense Fallback"):Pn("Suspense");case 19:return Pn("SuspenseList");case 0:case 15:return Ru(t.type,!1);case 11:return Ru(t.type.render,!1);case 1:return Ru(t.type,!0);case 31:return Pn("Activity");default:return""}}function gf(t){try{var e="",n=null;do e+=w0(t,n),n=t,t=t.return;while(t);return e}catch(a){return`
|
|
47
|
+
Error generating stack: `+a.message+`
|
|
48
|
+
`+a.stack}}var zu=Object.prototype.hasOwnProperty,Ou=i.unstable_scheduleCallback,Vu=i.unstable_cancelCallback,j0=i.unstable_shouldYield,L0=i.unstable_requestPaint,ge=i.unstable_now,H0=i.unstable_getCurrentPriorityLevel,vf=i.unstable_ImmediatePriority,Sf=i.unstable_UserBlockingPriority,Ol=i.unstable_NormalPriority,Y0=i.unstable_LowPriority,bf=i.unstable_IdlePriority,q0=i.log,G0=i.unstable_setDisableYieldValue,ya=null,ve=null;function Tn(t){if(typeof q0=="function"&&G0(t),ve&&typeof ve.setStrictMode=="function")try{ve.setStrictMode(ya,t)}catch{}}var Se=Math.clz32?Math.clz32:Q0,X0=Math.log,Z0=Math.LN2;function Q0(t){return t>>>=0,t===0?32:31-(X0(t)/Z0|0)|0}var Vl=256,_l=262144,Ul=4194304;function $n(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 Bl(t,e,n){var a=t.pendingLanes;if(a===0)return 0;var o=0,r=t.suspendedLanes,h=t.pingedLanes;t=t.warmLanes;var g=a&134217727;return g!==0?(a=g&~r,a!==0?o=$n(a):(h&=g,h!==0?o=$n(h):n||(n=g&~t,n!==0&&(o=$n(n))))):(g=a&~r,g!==0?o=$n(g):h!==0?o=$n(h):n||(n=a&~t,n!==0&&(o=$n(n)))),o===0?0:e!==0&&e!==o&&(e&r)===0&&(r=o&-o,n=e&-e,r>=n||r===32&&(n&4194048)!==0)?e:o}function ga(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function K0(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 Tf(){var t=Ul;return Ul<<=1,(Ul&62914560)===0&&(Ul=4194304),t}function _u(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function va(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function J0(t,e,n,a,o,r){var h=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var g=t.entanglements,T=t.expirationTimes,C=t.hiddenUpdates;for(n=h&~n;0<n;){var _=31-Se(n),L=1<<_;g[_]=0,T[_]=-1;var z=C[_];if(z!==null)for(C[_]=null,_=0;_<z.length;_++){var O=z[_];O!==null&&(O.lane&=-536870913)}n&=~L}a!==0&&Af(t,a,0),r!==0&&o===0&&t.tag!==0&&(t.suspendedLanes|=r&~(h&~e))}function Af(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-Se(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|n&261930}function Ef(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var a=31-Se(n),o=1<<a;o&e|t[a]&e&&(t[a]|=e),n&=~o}}function xf(t,e){var n=e&-e;return n=(n&42)!==0?1:Uu(n),(n&(t.suspendedLanes|e))!==0?0:n}function Uu(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 Bu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Mf(){var t=Z.p;return t!==0?t:(t=window.event,t===void 0?32:cp(t.type))}function Df(t,e){var n=Z.p;try{return Z.p=t,e()}finally{Z.p=n}}var An=Math.random().toString(36).slice(2),It="__reactFiber$"+An,ce="__reactProps$"+An,Ei="__reactContainer$"+An,Nu="__reactEvents$"+An,k0="__reactListeners$"+An,F0="__reactHandles$"+An,Cf="__reactResources$"+An,Sa="__reactMarker$"+An;function wu(t){delete t[It],delete t[ce],delete t[Nu],delete t[k0],delete t[F0]}function xi(t){var e=t[It];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Ei]||n[It]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=km(t);t!==null;){if(n=t[It])return n;t=km(t)}return e}t=n,n=t.parentNode}return null}function Mi(t){if(t=t[It]||t[Ei]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function ba(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(s(33))}function Di(t){var e=t[Cf];return e||(e=t[Cf]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Ft(t){t[Sa]=!0}var Rf=new Set,zf={};function In(t,e){Ci(t,e),Ci(t+"Capture",e)}function Ci(t,e){for(zf[t]=e,t=0;t<e.length;t++)Rf.add(e[t])}var W0=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]*$"),Of={},Vf={};function P0(t){return zu.call(Vf,t)?!0:zu.call(Of,t)?!1:W0.test(t)?Vf[t]=!0:(Of[t]=!0,!1)}function Nl(t,e,n){if(P0(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 wl(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 tn(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 Re(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function _f(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function $0(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 o=a.get,r=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(h){n=""+h,r.call(this,h)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function ju(t){if(!t._valueTracker){var e=_f(t)?"checked":"value";t._valueTracker=$0(t,e,""+t[e])}}function Uf(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),a="";return t&&(a=_f(t)?t.checked?"true":"false":t.value),t=a,t!==n?(e.setValue(t),!0):!1}function jl(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 I0=/[\n"\\]/g;function ze(t){return t.replace(I0,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Lu(t,e,n,a,o,r,h,g){t.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?t.type=h:t.removeAttribute("type"),e!=null?h==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Re(e)):t.value!==""+Re(e)&&(t.value=""+Re(e)):h!=="submit"&&h!=="reset"||t.removeAttribute("value"),e!=null?Hu(t,h,Re(e)):n!=null?Hu(t,h,Re(n)):a!=null&&t.removeAttribute("value"),o==null&&r!=null&&(t.defaultChecked=!!r),o!=null&&(t.checked=o&&typeof o!="function"&&typeof o!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?t.name=""+Re(g):t.removeAttribute("name")}function Bf(t,e,n,a,o,r,h,g){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(t.type=r),e!=null||n!=null){if(!(r!=="submit"&&r!=="reset"||e!=null)){ju(t);return}n=n!=null?""+Re(n):"",e=e!=null?""+Re(e):n,g||e===t.value||(t.value=e),t.defaultValue=e}a=a??o,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=g?t.checked:!!a,t.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(t.name=h),ju(t)}function Hu(t,e,n){e==="number"&&jl(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Ri(t,e,n,a){if(t=t.options,e){e={};for(var o=0;o<n.length;o++)e["$"+n[o]]=!0;for(n=0;n<t.length;n++)o=e.hasOwnProperty("$"+t[n].value),t[n].selected!==o&&(t[n].selected=o),o&&a&&(t[n].defaultSelected=!0)}else{for(n=""+Re(n),e=null,o=0;o<t.length;o++){if(t[o].value===n){t[o].selected=!0,a&&(t[o].defaultSelected=!0);return}e!==null||t[o].disabled||(e=t[o])}e!==null&&(e.selected=!0)}}function Nf(t,e,n){if(e!=null&&(e=""+Re(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Re(n):""}function wf(t,e,n,a){if(e==null){if(a!=null){if(n!=null)throw Error(s(92));if(jt(a)){if(1<a.length)throw Error(s(93));a=a[0]}n=a}n==null&&(n=""),e=n}n=Re(e),t.defaultValue=n,a=t.textContent,a===n&&a!==""&&a!==null&&(t.value=a),ju(t)}function zi(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var tv=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 jf(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||tv.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Lf(t,e,n){if(e!=null&&typeof e!="object")throw Error(s(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 o in e)a=e[o],e.hasOwnProperty(o)&&n[o]!==a&&jf(t,o,a)}else for(var r in e)e.hasOwnProperty(r)&&jf(t,r,e[r])}function Yu(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 ev=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"]]),nv=/^[\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 Ll(t){return nv.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function en(){}var qu=null;function Gu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Oi=null,Vi=null;function Hf(t){var e=Mi(t);if(e&&(t=e.stateNode)){var n=t[ce]||null;t:switch(t=e.stateNode,e.type){case"input":if(Lu(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 o=a[ce]||null;if(!o)throw Error(s(90));Lu(a,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(e=0;e<n.length;e++)a=n[e],a.form===t.form&&Uf(a)}break t;case"textarea":Nf(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Ri(t,!!n.multiple,e,!1)}}}var Xu=!1;function Yf(t,e,n){if(Xu)return t(e,n);Xu=!0;try{var a=t(e);return a}finally{if(Xu=!1,(Oi!==null||Vi!==null)&&(Ms(),Oi&&(e=Oi,t=Vi,Vi=Oi=null,Hf(e),t)))for(e=0;e<t.length;e++)Hf(t[e])}}function Ta(t,e){var n=t.stateNode;if(n===null)return null;var a=n[ce]||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(s(231,e,typeof n));return n}var nn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zu=!1;if(nn)try{var Aa={};Object.defineProperty(Aa,"passive",{get:function(){Zu=!0}}),window.addEventListener("test",Aa,Aa),window.removeEventListener("test",Aa,Aa)}catch{Zu=!1}var En=null,Qu=null,Hl=null;function qf(){if(Hl)return Hl;var t,e=Qu,n=e.length,a,o="value"in En?En.value:En.textContent,r=o.length;for(t=0;t<n&&e[t]===o[t];t++);var h=n-t;for(a=1;a<=h&&e[n-a]===o[r-a];a++);return Hl=o.slice(t,1<a?1-a:void 0)}function Yl(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 ql(){return!0}function Gf(){return!1}function fe(t){function e(n,a,o,r,h){this._reactName=n,this._targetInst=o,this.type=a,this.nativeEvent=r,this.target=h,this.currentTarget=null;for(var g in t)t.hasOwnProperty(g)&&(n=t[g],this[g]=n?n(r):r[g]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?ql:Gf,this.isPropagationStopped=Gf,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=ql)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ql)},persist:function(){},isPersistent:ql}),e}var ti={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gl=fe(ti),Ea=S({},ti,{view:0,detail:0}),iv=fe(Ea),Ku,Ju,xa,Xl=S({},Ea,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fu,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!==xa&&(xa&&t.type==="mousemove"?(Ku=t.screenX-xa.screenX,Ju=t.screenY-xa.screenY):Ju=Ku=0,xa=t),Ku)},movementY:function(t){return"movementY"in t?t.movementY:Ju}}),Xf=fe(Xl),av=S({},Xl,{dataTransfer:0}),lv=fe(av),sv=S({},Ea,{relatedTarget:0}),ku=fe(sv),uv=S({},ti,{animationName:0,elapsedTime:0,pseudoElement:0}),ov=fe(uv),rv=S({},ti,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),cv=fe(rv),fv=S({},ti,{data:0}),Zf=fe(fv),hv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dv={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"},mv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function pv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=mv[t])?!!e[t]:!1}function Fu(){return pv}var yv=S({},Ea,{key:function(t){if(t.key){var e=hv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Yl(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?dv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fu,charCode:function(t){return t.type==="keypress"?Yl(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Yl(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),gv=fe(yv),vv=S({},Xl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Qf=fe(vv),Sv=S({},Ea,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fu}),bv=fe(Sv),Tv=S({},ti,{propertyName:0,elapsedTime:0,pseudoElement:0}),Av=fe(Tv),Ev=S({},Xl,{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}),xv=fe(Ev),Mv=S({},ti,{newState:0,oldState:0}),Dv=fe(Mv),Cv=[9,13,27,32],Wu=nn&&"CompositionEvent"in window,Ma=null;nn&&"documentMode"in document&&(Ma=document.documentMode);var Rv=nn&&"TextEvent"in window&&!Ma,Kf=nn&&(!Wu||Ma&&8<Ma&&11>=Ma),Jf=" ",kf=!1;function Ff(t,e){switch(t){case"keyup":return Cv.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wf(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var _i=!1;function zv(t,e){switch(t){case"compositionend":return Wf(e);case"keypress":return e.which!==32?null:(kf=!0,Jf);case"textInput":return t=e.data,t===Jf&&kf?null:t;default:return null}}function Ov(t,e){if(_i)return t==="compositionend"||!Wu&&Ff(t,e)?(t=qf(),Hl=Qu=En=null,_i=!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 Kf&&e.locale!=="ko"?null:e.data;default:return null}}var Vv={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 Pf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Vv[t.type]:e==="textarea"}function $f(t,e,n,a){Oi?Vi?Vi.push(a):Vi=[a]:Oi=a,e=_s(e,"onChange"),0<e.length&&(n=new Gl("onChange","change",null,n,a),t.push({event:n,listeners:e}))}var Da=null,Ca=null;function _v(t){Bm(t,0)}function Zl(t){var e=ba(t);if(Uf(e))return t}function If(t,e){if(t==="change")return e}var th=!1;if(nn){var Pu;if(nn){var $u="oninput"in document;if(!$u){var eh=document.createElement("div");eh.setAttribute("oninput","return;"),$u=typeof eh.oninput=="function"}Pu=$u}else Pu=!1;th=Pu&&(!document.documentMode||9<document.documentMode)}function nh(){Da&&(Da.detachEvent("onpropertychange",ih),Ca=Da=null)}function ih(t){if(t.propertyName==="value"&&Zl(Ca)){var e=[];$f(e,Ca,t,Gu(t)),Yf(_v,e)}}function Uv(t,e,n){t==="focusin"?(nh(),Da=e,Ca=n,Da.attachEvent("onpropertychange",ih)):t==="focusout"&&nh()}function Bv(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Zl(Ca)}function Nv(t,e){if(t==="click")return Zl(e)}function wv(t,e){if(t==="input"||t==="change")return Zl(e)}function jv(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var be=typeof Object.is=="function"?Object.is:jv;function Ra(t,e){if(be(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 o=n[a];if(!zu.call(e,o)||!be(t[o],e[o]))return!1}return!0}function ah(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function lh(t,e){var n=ah(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=ah(n)}}function sh(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?sh(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function uh(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=jl(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=jl(t.document)}return e}function Iu(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 Lv=nn&&"documentMode"in document&&11>=document.documentMode,Ui=null,to=null,za=null,eo=!1;function oh(t,e,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;eo||Ui==null||Ui!==jl(a)||(a=Ui,"selectionStart"in a&&Iu(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}),za&&Ra(za,a)||(za=a,a=_s(to,"onSelect"),0<a.length&&(e=new Gl("onSelect","select",null,e,n),t.push({event:e,listeners:a}),e.target=Ui)))}function ei(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Bi={animationend:ei("Animation","AnimationEnd"),animationiteration:ei("Animation","AnimationIteration"),animationstart:ei("Animation","AnimationStart"),transitionrun:ei("Transition","TransitionRun"),transitionstart:ei("Transition","TransitionStart"),transitioncancel:ei("Transition","TransitionCancel"),transitionend:ei("Transition","TransitionEnd")},no={},rh={};nn&&(rh=document.createElement("div").style,"AnimationEvent"in window||(delete Bi.animationend.animation,delete Bi.animationiteration.animation,delete Bi.animationstart.animation),"TransitionEvent"in window||delete Bi.transitionend.transition);function ni(t){if(no[t])return no[t];if(!Bi[t])return t;var e=Bi[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in rh)return no[t]=e[n];return t}var ch=ni("animationend"),fh=ni("animationiteration"),hh=ni("animationstart"),Hv=ni("transitionrun"),Yv=ni("transitionstart"),qv=ni("transitioncancel"),dh=ni("transitionend"),mh=new Map,io="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(" ");io.push("scrollEnd");function Ye(t,e){mh.set(t,e),In(e,[t])}var Ql=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)},Oe=[],Ni=0,ao=0;function Kl(){for(var t=Ni,e=ao=Ni=0;e<t;){var n=Oe[e];Oe[e++]=null;var a=Oe[e];Oe[e++]=null;var o=Oe[e];Oe[e++]=null;var r=Oe[e];if(Oe[e++]=null,a!==null&&o!==null){var h=a.pending;h===null?o.next=o:(o.next=h.next,h.next=o),a.pending=o}r!==0&&ph(n,o,r)}}function Jl(t,e,n,a){Oe[Ni++]=t,Oe[Ni++]=e,Oe[Ni++]=n,Oe[Ni++]=a,ao|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function lo(t,e,n,a){return Jl(t,e,n,a),kl(t)}function ii(t,e){return Jl(t,null,null,e),kl(t)}function ph(t,e,n){t.lanes|=n;var a=t.alternate;a!==null&&(a.lanes|=n);for(var o=!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||(o=!0)),t=r,r=r.return;return t.tag===3?(r=t.stateNode,o&&e!==null&&(o=31-Se(n),t=r.hiddenUpdates,a=t[o],a===null?t[o]=[e]:a.push(e),e.lane=n|536870912),r):null}function kl(t){if(50<Pa)throw Pa=0,pr=null,Error(s(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var wi={};function Gv(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 Gv(t,e,n,a)}function so(t){return t=t.prototype,!(!t||!t.isReactComponent)}function an(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 yh(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 Fl(t,e,n,a,o,r){var h=0;if(a=t,typeof t=="function")so(t)&&(h=1);else if(typeof t=="string")h=J1(t,n,$.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case it:return t=Te(31,n,e,o),t.elementType=it,t.lanes=r,t;case B:return ai(n.children,o,r,e);case j:h=8,o|=24;break;case w:return t=Te(12,n,e,o|2),t.elementType=w,t.lanes=r,t;case k:return t=Te(13,n,e,o),t.elementType=k,t.lanes=r,t;case at:return t=Te(19,n,e,o),t.elementType=at,t.lanes=r,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case H:h=10;break t;case U:h=9;break t;case G:h=11;break t;case X:h=14;break t;case K:h=16,a=null;break t}h=29,n=Error(s(130,t===null?"null":typeof t,"")),a=null}return e=Te(h,n,e,o),e.elementType=t,e.type=a,e.lanes=r,e}function ai(t,e,n,a){return t=Te(7,t,a,e),t.lanes=n,t}function uo(t,e,n){return t=Te(6,t,null,e),t.lanes=n,t}function gh(t){var e=Te(18,null,null,0);return e.stateNode=t,e}function oo(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 vh=new WeakMap;function Ve(t,e){if(typeof t=="object"&&t!==null){var n=vh.get(t);return n!==void 0?n:(e={value:t,source:e,stack:gf(e)},vh.set(t,e),e)}return{value:t,source:e,stack:gf(e)}}var ji=[],Li=0,Wl=null,Oa=0,_e=[],Ue=0,xn=null,Ke=1,Je="";function ln(t,e){ji[Li++]=Oa,ji[Li++]=Wl,Wl=t,Oa=e}function Sh(t,e,n){_e[Ue++]=Ke,_e[Ue++]=Je,_e[Ue++]=xn,xn=t;var a=Ke;t=Je;var o=32-Se(a)-1;a&=~(1<<o),n+=1;var r=32-Se(e)+o;if(30<r){var h=o-o%5;r=(a&(1<<h)-1).toString(32),a>>=h,o-=h,Ke=1<<32-Se(e)+o|n<<o|a,Je=r+t}else Ke=1<<r|n<<o|a,Je=t}function ro(t){t.return!==null&&(ln(t,1),Sh(t,1,0))}function co(t){for(;t===Wl;)Wl=ji[--Li],ji[Li]=null,Oa=ji[--Li],ji[Li]=null;for(;t===xn;)xn=_e[--Ue],_e[Ue]=null,Je=_e[--Ue],_e[Ue]=null,Ke=_e[--Ue],_e[Ue]=null}function bh(t,e){_e[Ue++]=Ke,_e[Ue++]=Je,_e[Ue++]=xn,Ke=e.id,Je=e.overflow,xn=t}var te=null,Vt=null,gt=!1,Mn=null,Be=!1,fo=Error(s(519));function Dn(t){var e=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Va(Ve(e,t)),fo}function Th(t){var e=t.stateNode,n=t.type,a=t.memoizedProps;switch(e[It]=t,e[ce]=a,n){case"dialog":ht("cancel",e),ht("close",e);break;case"iframe":case"object":case"embed":ht("load",e);break;case"video":case"audio":for(n=0;n<Ia.length;n++)ht(Ia[n],e);break;case"source":ht("error",e);break;case"img":case"image":case"link":ht("error",e),ht("load",e);break;case"details":ht("toggle",e);break;case"input":ht("invalid",e),Bf(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ht("invalid",e);break;case"textarea":ht("invalid",e),wf(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||Lm(e.textContent,n)?(a.popover!=null&&(ht("beforetoggle",e),ht("toggle",e)),a.onScroll!=null&&ht("scroll",e),a.onScrollEnd!=null&&ht("scrollend",e),a.onClick!=null&&(e.onclick=en),e=!0):e=!1,e||Dn(t,!0)}function Ah(t){for(te=t.return;te;)switch(te.tag){case 5:case 31:case 13:Be=!1;return;case 27:case 3:Be=!0;return;default:te=te.return}}function Hi(t){if(t!==te)return!1;if(!gt)return Ah(t),gt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||Or(t.type,t.memoizedProps)),n=!n),n&&Vt&&Dn(t),Ah(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(317));Vt=Jm(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(317));Vt=Jm(t)}else e===27?(e=Vt,Yn(t.type)?(t=Nr,Nr=null,Vt=t):Vt=e):Vt=te?we(t.stateNode.nextSibling):null;return!0}function li(){Vt=te=null,gt=!1}function ho(){var t=Mn;return t!==null&&(pe===null?pe=t:pe.push.apply(pe,t),Mn=null),t}function Va(t){Mn===null?Mn=[t]:Mn.push(t)}var mo=E(null),si=null,sn=null;function Cn(t,e,n){Q(mo,e._currentValue),e._currentValue=n}function un(t){t._currentValue=mo.current,Y(mo)}function po(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 yo(t,e,n,a){var o=t.child;for(o!==null&&(o.return=t);o!==null;){var r=o.dependencies;if(r!==null){var h=o.child;r=r.firstContext;t:for(;r!==null;){var g=r;r=o;for(var T=0;T<e.length;T++)if(g.context===e[T]){r.lanes|=n,g=r.alternate,g!==null&&(g.lanes|=n),po(r.return,n,t),a||(h=null);break t}r=g.next}}else if(o.tag===18){if(h=o.return,h===null)throw Error(s(341));h.lanes|=n,r=h.alternate,r!==null&&(r.lanes|=n),po(h,n,t),h=null}else h=o.child;if(h!==null)h.return=o;else for(h=o;h!==null;){if(h===t){h=null;break}if(o=h.sibling,o!==null){o.return=h.return,h=o;break}h=h.return}o=h}}function Yi(t,e,n,a){t=null;for(var o=e,r=!1;o!==null;){if(!r){if((o.flags&524288)!==0)r=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var h=o.alternate;if(h===null)throw Error(s(387));if(h=h.memoizedProps,h!==null){var g=o.type;be(o.pendingProps.value,h.value)||(t!==null?t.push(g):t=[g])}}else if(o===At.current){if(h=o.alternate,h===null)throw Error(s(387));h.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(t!==null?t.push(al):t=[al])}o=o.return}t!==null&&yo(e,t,n,a),e.flags|=262144}function Pl(t){for(t=t.firstContext;t!==null;){if(!be(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ui(t){si=t,sn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ee(t){return Eh(si,t)}function $l(t,e){return si===null&&ui(t),Eh(t,e)}function Eh(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},sn===null){if(t===null)throw Error(s(308));sn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else sn=sn.next=e;return n}var Xv=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()})}},Zv=i.unstable_scheduleCallback,Qv=i.unstable_NormalPriority,Gt={$$typeof:H,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function go(){return{controller:new Xv,data:new Map,refCount:0}}function _a(t){t.refCount--,t.refCount===0&&Zv(Qv,function(){t.controller.abort()})}var Ua=null,vo=0,qi=0,Gi=null;function Kv(t,e){if(Ua===null){var n=Ua=[];vo=0,qi=Tr(),Gi={status:"pending",value:void 0,then:function(a){n.push(a)}}}return vo++,e.then(xh,xh),e}function xh(){if(--vo===0&&Ua!==null){Gi!==null&&(Gi.status="fulfilled");var t=Ua;Ua=null,qi=0,Gi=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Jv(t,e){var n=[],a={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var o=0;o<n.length;o++)(0,n[o])(e)},function(o){for(a.status="rejected",a.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),a}var Mh=V.S;V.S=function(t,e){om=ge(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Kv(t,e),Mh!==null&&Mh(t,e)};var oi=E(null);function So(){var t=oi.current;return t!==null?t:Ot.pooledCache}function Il(t,e){e===null?Q(oi,oi.current):Q(oi,e.pool)}function Dh(){var t=So();return t===null?null:{parent:Gt._currentValue,pool:t}}var Xi=Error(s(460)),bo=Error(s(474)),ts=Error(s(542)),es={then:function(){}};function Ch(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Rh(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(en,en),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Oh(t),t;default:if(typeof e.status=="string")e.then(en,en);else{if(t=Ot,t!==null&&100<t.shellSuspendCounter)throw Error(s(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var o=e;o.status="fulfilled",o.value=a}},function(a){if(e.status==="pending"){var o=e;o.status="rejected",o.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Oh(t),t}throw ci=e,Xi}}function ri(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ci=n,Xi):n}}var ci=null;function zh(){if(ci===null)throw Error(s(459));var t=ci;return ci=null,t}function Oh(t){if(t===Xi||t===ts)throw Error(s(483))}var Zi=null,Ba=0;function ns(t){var e=Ba;return Ba+=1,Zi===null&&(Zi=[]),Rh(Zi,t,e)}function Na(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function is(t,e){throw e.$$typeof===b?Error(s(525)):(t=Object.prototype.toString.call(e),Error(s(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Vh(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 o(M,A){return M=an(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 h(M){return t&&M.alternate===null&&(M.flags|=67108866),M}function g(M,A,D,N){return A===null||A.tag!==6?(A=uo(D,M.mode,N),A.return=M,A):(A=o(A,D),A.return=M,A)}function T(M,A,D,N){var et=D.type;return et===B?_(M,A,D.props.children,N,D.key):A!==null&&(A.elementType===et||typeof et=="object"&&et!==null&&et.$$typeof===K&&ri(et)===A.type)?(A=o(A,D.props),Na(A,D),A.return=M,A):(A=Fl(D.type,D.key,D.props,null,M.mode,N),Na(A,D),A.return=M,A)}function C(M,A,D,N){return A===null||A.tag!==4||A.stateNode.containerInfo!==D.containerInfo||A.stateNode.implementation!==D.implementation?(A=oo(D,M.mode,N),A.return=M,A):(A=o(A,D.children||[]),A.return=M,A)}function _(M,A,D,N,et){return A===null||A.tag!==7?(A=ai(D,M.mode,N,et),A.return=M,A):(A=o(A,D),A.return=M,A)}function L(M,A,D){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=uo(""+A,M.mode,D),A.return=M,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case x:return D=Fl(A.type,A.key,A.props,null,M.mode,D),Na(D,A),D.return=M,D;case R:return A=oo(A,M.mode,D),A.return=M,A;case K:return A=ri(A),L(M,A,D)}if(jt(A)||vt(A))return A=ai(A,M.mode,D,null),A.return=M,A;if(typeof A.then=="function")return L(M,ns(A),D);if(A.$$typeof===H)return L(M,$l(M,A),D);is(M,A)}return null}function z(M,A,D,N){var et=A!==null?A.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return et!==null?null:g(M,A,""+D,N);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case x:return D.key===et?T(M,A,D,N):null;case R:return D.key===et?C(M,A,D,N):null;case K:return D=ri(D),z(M,A,D,N)}if(jt(D)||vt(D))return et!==null?null:_(M,A,D,N,null);if(typeof D.then=="function")return z(M,A,ns(D),N);if(D.$$typeof===H)return z(M,A,$l(M,D),N);is(M,D)}return null}function O(M,A,D,N,et){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return M=M.get(D)||null,g(A,M,""+N,et);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case x:return M=M.get(N.key===null?D:N.key)||null,T(A,M,N,et);case R:return M=M.get(N.key===null?D:N.key)||null,C(A,M,N,et);case K:return N=ri(N),O(M,A,D,N,et)}if(jt(N)||vt(N))return M=M.get(D)||null,_(A,M,N,et,null);if(typeof N.then=="function")return O(M,A,D,ns(N),et);if(N.$$typeof===H)return O(M,A,D,$l(A,N),et);is(A,N)}return null}function W(M,A,D,N){for(var et=null,St=null,I=A,rt=A=0,mt=null;I!==null&&rt<D.length;rt++){I.index>rt?(mt=I,I=null):mt=I.sibling;var bt=z(M,I,D[rt],N);if(bt===null){I===null&&(I=mt);break}t&&I&&bt.alternate===null&&e(M,I),A=r(bt,A,rt),St===null?et=bt:St.sibling=bt,St=bt,I=mt}if(rt===D.length)return n(M,I),gt&&ln(M,rt),et;if(I===null){for(;rt<D.length;rt++)I=L(M,D[rt],N),I!==null&&(A=r(I,A,rt),St===null?et=I:St.sibling=I,St=I);return gt&&ln(M,rt),et}for(I=a(I);rt<D.length;rt++)mt=O(I,M,rt,D[rt],N),mt!==null&&(t&&mt.alternate!==null&&I.delete(mt.key===null?rt:mt.key),A=r(mt,A,rt),St===null?et=mt:St.sibling=mt,St=mt);return t&&I.forEach(function(Qn){return e(M,Qn)}),gt&&ln(M,rt),et}function nt(M,A,D,N){if(D==null)throw Error(s(151));for(var et=null,St=null,I=A,rt=A=0,mt=null,bt=D.next();I!==null&&!bt.done;rt++,bt=D.next()){I.index>rt?(mt=I,I=null):mt=I.sibling;var Qn=z(M,I,bt.value,N);if(Qn===null){I===null&&(I=mt);break}t&&I&&Qn.alternate===null&&e(M,I),A=r(Qn,A,rt),St===null?et=Qn:St.sibling=Qn,St=Qn,I=mt}if(bt.done)return n(M,I),gt&&ln(M,rt),et;if(I===null){for(;!bt.done;rt++,bt=D.next())bt=L(M,bt.value,N),bt!==null&&(A=r(bt,A,rt),St===null?et=bt:St.sibling=bt,St=bt);return gt&&ln(M,rt),et}for(I=a(I);!bt.done;rt++,bt=D.next())bt=O(I,M,rt,bt.value,N),bt!==null&&(t&&bt.alternate!==null&&I.delete(bt.key===null?rt:bt.key),A=r(bt,A,rt),St===null?et=bt:St.sibling=bt,St=bt);return t&&I.forEach(function(aS){return e(M,aS)}),gt&&ln(M,rt),et}function Ct(M,A,D,N){if(typeof D=="object"&&D!==null&&D.type===B&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case x:t:{for(var et=D.key;A!==null;){if(A.key===et){if(et=D.type,et===B){if(A.tag===7){n(M,A.sibling),N=o(A,D.props.children),N.return=M,M=N;break t}}else if(A.elementType===et||typeof et=="object"&&et!==null&&et.$$typeof===K&&ri(et)===A.type){n(M,A.sibling),N=o(A,D.props),Na(N,D),N.return=M,M=N;break t}n(M,A);break}else e(M,A);A=A.sibling}D.type===B?(N=ai(D.props.children,M.mode,N,D.key),N.return=M,M=N):(N=Fl(D.type,D.key,D.props,null,M.mode,N),Na(N,D),N.return=M,M=N)}return h(M);case R:t:{for(et=D.key;A!==null;){if(A.key===et)if(A.tag===4&&A.stateNode.containerInfo===D.containerInfo&&A.stateNode.implementation===D.implementation){n(M,A.sibling),N=o(A,D.children||[]),N.return=M,M=N;break t}else{n(M,A);break}else e(M,A);A=A.sibling}N=oo(D,M.mode,N),N.return=M,M=N}return h(M);case K:return D=ri(D),Ct(M,A,D,N)}if(jt(D))return W(M,A,D,N);if(vt(D)){if(et=vt(D),typeof et!="function")throw Error(s(150));return D=et.call(D),nt(M,A,D,N)}if(typeof D.then=="function")return Ct(M,A,ns(D),N);if(D.$$typeof===H)return Ct(M,A,$l(M,D),N);is(M,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,A!==null&&A.tag===6?(n(M,A.sibling),N=o(A,D),N.return=M,M=N):(n(M,A),N=uo(D,M.mode,N),N.return=M,M=N),h(M)):n(M,A)}return function(M,A,D,N){try{Ba=0;var et=Ct(M,A,D,N);return Zi=null,et}catch(I){if(I===Xi||I===ts)throw I;var St=Te(29,I,null,M.mode);return St.lanes=N,St.return=M,St}finally{}}}var fi=Vh(!0),_h=Vh(!1),Rn=!1;function To(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ao(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 zn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function On(t,e,n){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(Tt&2)!==0){var o=a.pending;return o===null?e.next=e:(e.next=o.next,o.next=e),a.pending=e,e=kl(t),ph(t,null,n),e}return Jl(t,a,e,n),kl(t)}function wa(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,Ef(t,n)}}function Eo(t,e){var n=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var o=null,r=null;if(n=n.firstBaseUpdate,n!==null){do{var h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};r===null?o=r=h:r=r.next=h,n=n.next}while(n!==null);r===null?o=r=e:r=r.next=e}else o=r=e;n={baseState:a.baseState,firstBaseUpdate:o,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 xo=!1;function ja(){if(xo){var t=Gi;if(t!==null)throw t}}function La(t,e,n,a){xo=!1;var o=t.updateQueue;Rn=!1;var r=o.firstBaseUpdate,h=o.lastBaseUpdate,g=o.shared.pending;if(g!==null){o.shared.pending=null;var T=g,C=T.next;T.next=null,h===null?r=C:h.next=C,h=T;var _=t.alternate;_!==null&&(_=_.updateQueue,g=_.lastBaseUpdate,g!==h&&(g===null?_.firstBaseUpdate=C:g.next=C,_.lastBaseUpdate=T))}if(r!==null){var L=o.baseState;h=0,_=C=T=null,g=r;do{var z=g.lane&-536870913,O=z!==g.lane;if(O?(dt&z)===z:(a&z)===z){z!==0&&z===qi&&(xo=!0),_!==null&&(_=_.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});t:{var W=t,nt=g;z=e;var Ct=n;switch(nt.tag){case 1:if(W=nt.payload,typeof W=="function"){L=W.call(Ct,L,z);break t}L=W;break t;case 3:W.flags=W.flags&-65537|128;case 0:if(W=nt.payload,z=typeof W=="function"?W.call(Ct,L,z):W,z==null)break t;L=S({},L,z);break t;case 2:Rn=!0}}z=g.callback,z!==null&&(t.flags|=64,O&&(t.flags|=8192),O=o.callbacks,O===null?o.callbacks=[z]:O.push(z))}else O={lane:z,tag:g.tag,payload:g.payload,callback:g.callback,next:null},_===null?(C=_=O,T=L):_=_.next=O,h|=z;if(g=g.next,g===null){if(g=o.shared.pending,g===null)break;O=g,g=O.next,O.next=null,o.lastBaseUpdate=O,o.shared.pending=null}}while(!0);_===null&&(T=L),o.baseState=T,o.firstBaseUpdate=C,o.lastBaseUpdate=_,r===null&&(o.shared.lanes=0),Nn|=h,t.lanes=h,t.memoizedState=L}}function Uh(t,e){if(typeof t!="function")throw Error(s(191,t));t.call(e)}function Bh(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Uh(n[t],e)}var Qi=E(null),as=E(0);function Nh(t,e){t=yn,Q(as,t),Q(Qi,e),yn=t|e.baseLanes}function Mo(){Q(as,yn),Q(Qi,Qi.current)}function Do(){yn=as.current,Y(Qi),Y(as)}var Ae=E(null),Ne=null;function Vn(t){var e=t.alternate;Q(Ht,Ht.current&1),Q(Ae,t),Ne===null&&(e===null||Qi.current!==null||e.memoizedState!==null)&&(Ne=t)}function Co(t){Q(Ht,Ht.current),Q(Ae,t),Ne===null&&(Ne=t)}function wh(t){t.tag===22?(Q(Ht,Ht.current),Q(Ae,t),Ne===null&&(Ne=t)):_n()}function _n(){Q(Ht,Ht.current),Q(Ae,Ae.current)}function Ee(t){Y(Ae),Ne===t&&(Ne=null),Y(Ht)}var Ht=E(0);function ls(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Ur(n)||Br(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var on=0,ut=null,Mt=null,Xt=null,ss=!1,Ki=!1,hi=!1,us=0,Ha=0,Ji=null,kv=0;function Bt(){throw Error(s(321))}function Ro(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!be(t[n],e[n]))return!1;return!0}function zo(t,e,n,a,o,r){return on=r,ut=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,V.H=t===null||t.memoizedState===null?Sd:Zo,hi=!1,r=n(a,o),hi=!1,Ki&&(r=Lh(e,n,a,o)),jh(t),r}function jh(t){V.H=Ga;var e=Mt!==null&&Mt.next!==null;if(on=0,Xt=Mt=ut=null,ss=!1,Ha=0,Ji=null,e)throw Error(s(300));t===null||Zt||(t=t.dependencies,t!==null&&Pl(t)&&(Zt=!0))}function Lh(t,e,n,a){ut=t;var o=0;do{if(Ki&&(Ji=null),Ha=0,Ki=!1,25<=o)throw Error(s(301));if(o+=1,Xt=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)}V.H=bd,r=e(n,a)}while(Ki);return r}function Fv(){var t=V.H,e=t.useState()[0];return e=typeof e.then=="function"?Ya(e):e,t=t.useState()[0],(Mt!==null?Mt.memoizedState:null)!==t&&(ut.flags|=1024),e}function Oo(){var t=us!==0;return us=0,t}function Vo(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function _o(t){if(ss){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}ss=!1}on=0,Xt=Mt=ut=null,Ki=!1,Ha=us=0,Ji=null}function ue(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xt===null?ut.memoizedState=Xt=t:Xt=Xt.next=t,Xt}function Yt(){if(Mt===null){var t=ut.alternate;t=t!==null?t.memoizedState:null}else t=Mt.next;var e=Xt===null?ut.memoizedState:Xt.next;if(e!==null)Xt=e,Mt=t;else{if(t===null)throw ut.alternate===null?Error(s(467)):Error(s(310));Mt=t,t={memoizedState:Mt.memoizedState,baseState:Mt.baseState,baseQueue:Mt.baseQueue,queue:Mt.queue,next:null},Xt===null?ut.memoizedState=Xt=t:Xt=Xt.next=t}return Xt}function os(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ya(t){var e=Ha;return Ha+=1,Ji===null&&(Ji=[]),t=Rh(Ji,t,e),e=ut,(Xt===null?e.memoizedState:Xt.next)===null&&(e=e.alternate,V.H=e===null||e.memoizedState===null?Sd:Zo),t}function rs(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Ya(t);if(t.$$typeof===H)return ee(t)}throw Error(s(438,String(t)))}function Uo(t){var e=null,n=ut.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var a=ut.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(o){return o.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=os(),ut.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]=tt;return e.index++,n}function rn(t,e){return typeof e=="function"?e(t):e}function cs(t){var e=Yt();return Bo(e,Mt,t)}function Bo(t,e,n){var a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=n;var o=t.baseQueue,r=a.pending;if(r!==null){if(o!==null){var h=o.next;o.next=r.next,r.next=h}e.baseQueue=o=r,a.pending=null}if(r=t.baseState,o===null)t.memoizedState=r;else{e=o.next;var g=h=null,T=null,C=e,_=!1;do{var L=C.lane&-536870913;if(L!==C.lane?(dt&L)===L:(on&L)===L){var z=C.revertLane;if(z===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null}),L===qi&&(_=!0);else if((on&z)===z){C=C.next,z===qi&&(_=!0);continue}else L={lane:0,revertLane:C.revertLane,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},T===null?(g=T=L,h=r):T=T.next=L,ut.lanes|=z,Nn|=z;L=C.action,hi&&n(r,L),r=C.hasEagerState?C.eagerState:n(r,L)}else z={lane:L,revertLane:C.revertLane,gesture:C.gesture,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},T===null?(g=T=z,h=r):T=T.next=z,ut.lanes|=L,Nn|=L;C=C.next}while(C!==null&&C!==e);if(T===null?h=r:T.next=g,!be(r,t.memoizedState)&&(Zt=!0,_&&(n=Gi,n!==null)))throw n;t.memoizedState=r,t.baseState=h,t.baseQueue=T,a.lastRenderedState=r}return o===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function No(t){var e=Yt(),n=e.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=t;var a=n.dispatch,o=n.pending,r=e.memoizedState;if(o!==null){n.pending=null;var h=o=o.next;do r=t(r,h.action),h=h.next;while(h!==o);be(r,e.memoizedState)||(Zt=!0),e.memoizedState=r,e.baseQueue===null&&(e.baseState=r),n.lastRenderedState=r}return[r,a]}function Hh(t,e,n){var a=ut,o=Yt(),r=gt;if(r){if(n===void 0)throw Error(s(407));n=n()}else n=e();var h=!be((Mt||o).memoizedState,n);if(h&&(o.memoizedState=n,Zt=!0),o=o.queue,Lo(Gh.bind(null,a,o,t),[t]),o.getSnapshot!==e||h||Xt!==null&&Xt.memoizedState.tag&1){if(a.flags|=2048,ki(9,{destroy:void 0},qh.bind(null,a,o,n,e),null),Ot===null)throw Error(s(349));r||(on&127)!==0||Yh(a,e,n)}return n}function Yh(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ut.updateQueue,e===null?(e=os(),ut.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function qh(t,e,n,a){e.value=n,e.getSnapshot=a,Xh(e)&&Zh(t)}function Gh(t,e,n){return n(function(){Xh(e)&&Zh(t)})}function Xh(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!be(t,n)}catch{return!0}}function Zh(t){var e=ii(t,2);e!==null&&ye(e,t,2)}function wo(t){var e=ue();if(typeof t=="function"){var n=t;if(t=n(),hi){Tn(!0);try{n()}finally{Tn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rn,lastRenderedState:t},e}function Qh(t,e,n,a){return t.baseState=n,Bo(t,Mt,typeof a=="function"?a:rn)}function Wv(t,e,n,a,o){if(ds(t))throw Error(s(485));if(t=e.action,t!==null){var r={payload:o,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){r.listeners.push(h)}};V.T!==null?n(!0):r.isTransition=!1,a(r),n=e.pending,n===null?(r.next=e.pending=r,Kh(e,r)):(r.next=n.next,e.pending=n.next=r)}}function Kh(t,e){var n=e.action,a=e.payload,o=t.state;if(e.isTransition){var r=V.T,h={};V.T=h;try{var g=n(o,a),T=V.S;T!==null&&T(h,g),Jh(t,e,g)}catch(C){jo(t,e,C)}finally{r!==null&&h.types!==null&&(r.types=h.types),V.T=r}}else try{r=n(o,a),Jh(t,e,r)}catch(C){jo(t,e,C)}}function Jh(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){kh(t,e,a)},function(a){return jo(t,e,a)}):kh(t,e,n)}function kh(t,e,n){e.status="fulfilled",e.value=n,Fh(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,Kh(t,n)))}function jo(t,e,n){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=n,Fh(e),e=e.next;while(e!==a)}t.action=null}function Fh(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Wh(t,e){return e}function Ph(t,e){if(gt){var n=Ot.formState;if(n!==null){t:{var a=ut;if(gt){if(Vt){e:{for(var o=Vt,r=Be;o.nodeType!==8;){if(!r){o=null;break e}if(o=we(o.nextSibling),o===null){o=null;break e}}r=o.data,o=r==="F!"||r==="F"?o:null}if(o){Vt=we(o.nextSibling),a=o.data==="F!";break t}}Dn(a)}a=!1}a&&(e=n[0])}}return n=ue(),n.memoizedState=n.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wh,lastRenderedState:e},n.queue=a,n=yd.bind(null,ut,a),a.dispatch=n,a=wo(!1),r=Xo.bind(null,ut,!1,a.queue),a=ue(),o={state:e,dispatch:null,action:t,pending:null},a.queue=o,n=Wv.bind(null,ut,o,r,n),o.dispatch=n,a.memoizedState=t,[e,n,!1]}function $h(t){var e=Yt();return Ih(e,Mt,t)}function Ih(t,e,n){if(e=Bo(t,e,Wh)[0],t=cs(rn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=Ya(e)}catch(h){throw h===Xi?ts:h}else a=e;e=Yt();var o=e.queue,r=o.dispatch;return n!==e.memoizedState&&(ut.flags|=2048,ki(9,{destroy:void 0},Pv.bind(null,o,n),null)),[a,r,t]}function Pv(t,e){t.action=e}function td(t){var e=Yt(),n=Mt;if(n!==null)return Ih(e,n,t);Yt(),e=e.memoizedState,n=Yt();var a=n.queue.dispatch;return n.memoizedState=t,[e,a,!1]}function ki(t,e,n,a){return t={tag:t,create:n,deps:a,inst:e,next:null},e=ut.updateQueue,e===null&&(e=os(),ut.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 ed(){return Yt().memoizedState}function fs(t,e,n,a){var o=ue();ut.flags|=t,o.memoizedState=ki(1|e,{destroy:void 0},n,a===void 0?null:a)}function hs(t,e,n,a){var o=Yt();a=a===void 0?null:a;var r=o.memoizedState.inst;Mt!==null&&a!==null&&Ro(a,Mt.memoizedState.deps)?o.memoizedState=ki(e,r,n,a):(ut.flags|=t,o.memoizedState=ki(1|e,r,n,a))}function nd(t,e){fs(8390656,8,t,e)}function Lo(t,e){hs(2048,8,t,e)}function $v(t){ut.flags|=4;var e=ut.updateQueue;if(e===null)e=os(),ut.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function id(t){var e=Yt().memoizedState;return $v({ref:e,nextImpl:t}),function(){if((Tt&2)!==0)throw Error(s(440));return e.impl.apply(void 0,arguments)}}function ad(t,e){return hs(4,2,t,e)}function ld(t,e){return hs(4,4,t,e)}function sd(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 ud(t,e,n){n=n!=null?n.concat([t]):null,hs(4,4,sd.bind(null,e,t),n)}function Ho(){}function od(t,e){var n=Yt();e=e===void 0?null:e;var a=n.memoizedState;return e!==null&&Ro(e,a[1])?a[0]:(n.memoizedState=[t,e],t)}function rd(t,e){var n=Yt();e=e===void 0?null:e;var a=n.memoizedState;if(e!==null&&Ro(e,a[1]))return a[0];if(a=t(),hi){Tn(!0);try{t()}finally{Tn(!1)}}return n.memoizedState=[a,e],a}function Yo(t,e,n){return n===void 0||(on&1073741824)!==0&&(dt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=cm(),ut.lanes|=t,Nn|=t,n)}function cd(t,e,n,a){return be(n,e)?n:Qi.current!==null?(t=Yo(t,n,a),be(t,e)||(Zt=!0),t):(on&42)===0||(on&1073741824)!==0&&(dt&261930)===0?(Zt=!0,t.memoizedState=n):(t=cm(),ut.lanes|=t,Nn|=t,e)}function fd(t,e,n,a,o){var r=Z.p;Z.p=r!==0&&8>r?r:8;var h=V.T,g={};V.T=g,Xo(t,!1,e,n);try{var T=o(),C=V.S;if(C!==null&&C(g,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var _=Jv(T,a);qa(t,e,_,De(t))}else qa(t,e,a,De(t))}catch(L){qa(t,e,{then:function(){},status:"rejected",reason:L},De())}finally{Z.p=r,h!==null&&g.types!==null&&(h.types=g.types),V.T=h}}function Iv(){}function qo(t,e,n,a){if(t.tag!==5)throw Error(s(476));var o=hd(t).queue;fd(t,o,e,F,n===null?Iv:function(){return dd(t),n(a)})}function hd(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:rn,lastRenderedState:F},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:rn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function dd(t){var e=hd(t);e.next===null&&(e=t.alternate.memoizedState),qa(t,e.next.queue,{},De())}function Go(){return ee(al)}function md(){return Yt().memoizedState}function pd(){return Yt().memoizedState}function t1(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=De();t=zn(n);var a=On(e,t,n);a!==null&&(ye(a,e,n),wa(a,e,n)),e={cache:go()},t.payload=e;return}e=e.return}}function e1(t,e,n){var a=De();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ds(t)?gd(e,n):(n=lo(t,e,n,a),n!==null&&(ye(n,t,a),vd(n,e,a)))}function yd(t,e,n){var a=De();qa(t,e,n,a)}function qa(t,e,n,a){var o={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ds(t))gd(e,o);else{var r=t.alternate;if(t.lanes===0&&(r===null||r.lanes===0)&&(r=e.lastRenderedReducer,r!==null))try{var h=e.lastRenderedState,g=r(h,n);if(o.hasEagerState=!0,o.eagerState=g,be(g,h))return Jl(t,e,o,0),Ot===null&&Kl(),!1}catch{}finally{}if(n=lo(t,e,o,a),n!==null)return ye(n,t,a),vd(n,e,a),!0}return!1}function Xo(t,e,n,a){if(a={lane:2,revertLane:Tr(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ds(t)){if(e)throw Error(s(479))}else e=lo(t,n,a,2),e!==null&&ye(e,t,2)}function ds(t){var e=t.alternate;return t===ut||e!==null&&e===ut}function gd(t,e){Ki=ss=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function vd(t,e,n){if((n&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,Ef(t,n)}}var Ga={readContext:ee,use:rs,useCallback:Bt,useContext:Bt,useEffect:Bt,useImperativeHandle:Bt,useLayoutEffect:Bt,useInsertionEffect:Bt,useMemo:Bt,useReducer:Bt,useRef:Bt,useState:Bt,useDebugValue:Bt,useDeferredValue:Bt,useTransition:Bt,useSyncExternalStore:Bt,useId:Bt,useHostTransitionStatus:Bt,useFormState:Bt,useActionState:Bt,useOptimistic:Bt,useMemoCache:Bt,useCacheRefresh:Bt};Ga.useEffectEvent=Bt;var Sd={readContext:ee,use:rs,useCallback:function(t,e){return ue().memoizedState=[t,e===void 0?null:e],t},useContext:ee,useEffect:nd,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,fs(4194308,4,sd.bind(null,e,t),n)},useLayoutEffect:function(t,e){return fs(4194308,4,t,e)},useInsertionEffect:function(t,e){fs(4,2,t,e)},useMemo:function(t,e){var n=ue();e=e===void 0?null:e;var a=t();if(hi){Tn(!0);try{t()}finally{Tn(!1)}}return n.memoizedState=[a,e],a},useReducer:function(t,e,n){var a=ue();if(n!==void 0){var o=n(e);if(hi){Tn(!0);try{n(e)}finally{Tn(!1)}}}else o=e;return a.memoizedState=a.baseState=o,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:o},a.queue=t,t=t.dispatch=e1.bind(null,ut,t),[a.memoizedState,t]},useRef:function(t){var e=ue();return t={current:t},e.memoizedState=t},useState:function(t){t=wo(t);var e=t.queue,n=yd.bind(null,ut,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Ho,useDeferredValue:function(t,e){var n=ue();return Yo(n,t,e)},useTransition:function(){var t=wo(!1);return t=fd.bind(null,ut,t.queue,!0,!1),ue().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var a=ut,o=ue();if(gt){if(n===void 0)throw Error(s(407));n=n()}else{if(n=e(),Ot===null)throw Error(s(349));(dt&127)!==0||Yh(a,e,n)}o.memoizedState=n;var r={value:n,getSnapshot:e};return o.queue=r,nd(Gh.bind(null,a,r,t),[t]),a.flags|=2048,ki(9,{destroy:void 0},qh.bind(null,a,r,n,e),null),n},useId:function(){var t=ue(),e=Ot.identifierPrefix;if(gt){var n=Je,a=Ke;n=(a&~(1<<32-Se(a)-1)).toString(32)+n,e="_"+e+"R_"+n,n=us++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=kv++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Go,useFormState:Ph,useActionState:Ph,useOptimistic:function(t){var e=ue();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Xo.bind(null,ut,!0,n),n.dispatch=e,[t,e]},useMemoCache:Uo,useCacheRefresh:function(){return ue().memoizedState=t1.bind(null,ut)},useEffectEvent:function(t){var e=ue(),n={impl:t};return e.memoizedState=n,function(){if((Tt&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},Zo={readContext:ee,use:rs,useCallback:od,useContext:ee,useEffect:Lo,useImperativeHandle:ud,useInsertionEffect:ad,useLayoutEffect:ld,useMemo:rd,useReducer:cs,useRef:ed,useState:function(){return cs(rn)},useDebugValue:Ho,useDeferredValue:function(t,e){var n=Yt();return cd(n,Mt.memoizedState,t,e)},useTransition:function(){var t=cs(rn)[0],e=Yt().memoizedState;return[typeof t=="boolean"?t:Ya(t),e]},useSyncExternalStore:Hh,useId:md,useHostTransitionStatus:Go,useFormState:$h,useActionState:$h,useOptimistic:function(t,e){var n=Yt();return Qh(n,Mt,t,e)},useMemoCache:Uo,useCacheRefresh:pd};Zo.useEffectEvent=id;var bd={readContext:ee,use:rs,useCallback:od,useContext:ee,useEffect:Lo,useImperativeHandle:ud,useInsertionEffect:ad,useLayoutEffect:ld,useMemo:rd,useReducer:No,useRef:ed,useState:function(){return No(rn)},useDebugValue:Ho,useDeferredValue:function(t,e){var n=Yt();return Mt===null?Yo(n,t,e):cd(n,Mt.memoizedState,t,e)},useTransition:function(){var t=No(rn)[0],e=Yt().memoizedState;return[typeof t=="boolean"?t:Ya(t),e]},useSyncExternalStore:Hh,useId:md,useHostTransitionStatus:Go,useFormState:td,useActionState:td,useOptimistic:function(t,e){var n=Yt();return Mt!==null?Qh(n,Mt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:Uo,useCacheRefresh:pd};bd.useEffectEvent=id;function Qo(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 Ko={enqueueSetState:function(t,e,n){t=t._reactInternals;var a=De(),o=zn(a);o.payload=e,n!=null&&(o.callback=n),e=On(t,o,a),e!==null&&(ye(e,t,a),wa(e,t,a))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var a=De(),o=zn(a);o.tag=1,o.payload=e,n!=null&&(o.callback=n),e=On(t,o,a),e!==null&&(ye(e,t,a),wa(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=De(),a=zn(n);a.tag=2,e!=null&&(a.callback=e),e=On(t,a,n),e!==null&&(ye(e,t,n),wa(e,t,n))}};function Td(t,e,n,a,o,r,h){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,r,h):e.prototype&&e.prototype.isPureReactComponent?!Ra(n,a)||!Ra(o,r):!0}function Ad(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&&Ko.enqueueReplaceState(e,e.state,null)}function di(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 o in t)n[o]===void 0&&(n[o]=t[o])}return n}function Ed(t){Ql(t)}function xd(t){console.error(t)}function Md(t){Ql(t)}function ms(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function Dd(t,e,n){try{var a=t.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Jo(t,e,n){return n=zn(n),n.tag=3,n.payload={element:null},n.callback=function(){ms(t,e)},n}function Cd(t){return t=zn(t),t.tag=3,t}function Rd(t,e,n,a){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var r=a.value;t.payload=function(){return o(r)},t.callback=function(){Dd(e,n,a)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(t.callback=function(){Dd(e,n,a),typeof o!="function"&&(wn===null?wn=new Set([this]):wn.add(this));var g=a.stack;this.componentDidCatch(a.value,{componentStack:g!==null?g:""})})}function n1(t,e,n,a,o){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=n.alternate,e!==null&&Yi(e,n,o,!0),n=Ae.current,n!==null){switch(n.tag){case 31:case 13:return Ne===null?Ds():n.alternate===null&&Nt===0&&(Nt=3),n.flags&=-257,n.flags|=65536,n.lanes=o,a===es?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([a]):e.add(a),vr(t,a,o)),!1;case 22:return n.flags|=65536,a===es?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)),vr(t,a,o)),!1}throw Error(s(435,n.tag))}return vr(t,a,o),Ds(),!1}if(gt)return e=Ae.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=o,a!==fo&&(t=Error(s(422),{cause:a}),Va(Ve(t,n)))):(a!==fo&&(e=Error(s(423),{cause:a}),Va(Ve(e,n))),t=t.current.alternate,t.flags|=65536,o&=-o,t.lanes|=o,a=Ve(a,n),o=Jo(t.stateNode,a,o),Eo(t,o),Nt!==4&&(Nt=2)),!1;var r=Error(s(520),{cause:a});if(r=Ve(r,n),Wa===null?Wa=[r]:Wa.push(r),Nt!==4&&(Nt=2),e===null)return!0;a=Ve(a,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=o&-o,n.lanes|=t,t=Jo(n.stateNode,a,t),Eo(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"&&(wn===null||!wn.has(r))))return n.flags|=65536,o&=-o,n.lanes|=o,o=Cd(o),Rd(o,t,n,a),Eo(n,o),!1}n=n.return}while(n!==null);return!1}var ko=Error(s(461)),Zt=!1;function ne(t,e,n,a){e.child=t===null?_h(e,null,n,a):fi(e,t.child,n,a)}function zd(t,e,n,a,o){n=n.render;var r=e.ref;if("ref"in a){var h={};for(var g in a)g!=="ref"&&(h[g]=a[g])}else h=a;return ui(e),a=zo(t,e,n,h,r,o),g=Oo(),t!==null&&!Zt?(Vo(t,e,o),cn(t,e,o)):(gt&&g&&ro(e),e.flags|=1,ne(t,e,a,o),e.child)}function Od(t,e,n,a,o){if(t===null){var r=n.type;return typeof r=="function"&&!so(r)&&r.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=r,Vd(t,e,r,a,o)):(t=Fl(n.type,null,a,e,e.mode,o),t.ref=e.ref,t.return=e,e.child=t)}if(r=t.child,!nr(t,o)){var h=r.memoizedProps;if(n=n.compare,n=n!==null?n:Ra,n(h,a)&&t.ref===e.ref)return cn(t,e,o)}return e.flags|=1,t=an(r,a),t.ref=e.ref,t.return=e,e.child=t}function Vd(t,e,n,a,o){if(t!==null){var r=t.memoizedProps;if(Ra(r,a)&&t.ref===e.ref)if(Zt=!1,e.pendingProps=a=r,nr(t,o))(t.flags&131072)!==0&&(Zt=!0);else return e.lanes=t.lanes,cn(t,e,o)}return Fo(t,e,n,a,o)}function _d(t,e,n,a){var o=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,o=0;a!==null;)o=o|a.lanes|a.childLanes,a=a.sibling;a=o&~r}else a=0,e.child=null;return Ud(t,e,r,n,a)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Il(e,r!==null?r.cachePool:null),r!==null?Nh(e,r):Mo(),wh(e);else return a=e.lanes=536870912,Ud(t,e,r!==null?r.baseLanes|n:n,n,a)}else r!==null?(Il(e,r.cachePool),Nh(e,r),_n(),e.memoizedState=null):(t!==null&&Il(e,null),Mo(),_n());return ne(t,e,o,n),e.child}function Xa(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Ud(t,e,n,a,o){var r=So();return r=r===null?null:{parent:Gt._currentValue,pool:r},e.memoizedState={baseLanes:n,cachePool:r},t!==null&&Il(e,null),Mo(),wh(e),t!==null&&Yi(t,e,a,!0),e.childLanes=o,null}function ps(t,e){return e=gs({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Bd(t,e,n){return fi(e,t.child,null,n),t=ps(e,e.pendingProps),t.flags|=2,Ee(e),e.memoizedState=null,t}function i1(t,e,n){var a=e.pendingProps,o=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(gt){if(a.mode==="hidden")return t=ps(e,a),e.lanes=536870912,Xa(null,t);if(Co(e),(t=Vt)?(t=Km(t,Be),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:xn!==null?{id:Ke,overflow:Je}:null,retryLane:536870912,hydrationErrors:null},n=gh(t),n.return=e,e.child=n,te=e,Vt=null)):t=null,t===null)throw Dn(e);return e.lanes=536870912,null}return ps(e,a)}var r=t.memoizedState;if(r!==null){var h=r.dehydrated;if(Co(e),o)if(e.flags&256)e.flags&=-257,e=Bd(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(s(558));else if(Zt||Yi(t,e,n,!1),o=(n&t.childLanes)!==0,Zt||o){if(a=Ot,a!==null&&(h=xf(a,n),h!==0&&h!==r.retryLane))throw r.retryLane=h,ii(t,h),ye(a,t,h),ko;Ds(),e=Bd(t,e,n)}else t=r.treeContext,Vt=we(h.nextSibling),te=e,gt=!0,Mn=null,Be=!1,t!==null&&bh(e,t),e=ps(e,a),e.flags|=4096;return e}return t=an(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function ys(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(s(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function Fo(t,e,n,a,o){return ui(e),n=zo(t,e,n,a,void 0,o),a=Oo(),t!==null&&!Zt?(Vo(t,e,o),cn(t,e,o)):(gt&&a&&ro(e),e.flags|=1,ne(t,e,n,o),e.child)}function Nd(t,e,n,a,o,r){return ui(e),e.updateQueue=null,n=Lh(e,a,n,o),jh(t),a=Oo(),t!==null&&!Zt?(Vo(t,e,r),cn(t,e,r)):(gt&&a&&ro(e),e.flags|=1,ne(t,e,n,r),e.child)}function wd(t,e,n,a,o){if(ui(e),e.stateNode===null){var r=wi,h=n.contextType;typeof h=="object"&&h!==null&&(r=ee(h)),r=new n(a,r),e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Ko,e.stateNode=r,r._reactInternals=e,r=e.stateNode,r.props=a,r.state=e.memoizedState,r.refs={},To(e),h=n.contextType,r.context=typeof h=="object"&&h!==null?ee(h):wi,r.state=e.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(Qo(e,n,h,a),r.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(h=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),h!==r.state&&Ko.enqueueReplaceState(r,r.state,null),La(e,a,r,o),ja(),r.state=e.memoizedState),typeof r.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){r=e.stateNode;var g=e.memoizedProps,T=di(n,g);r.props=T;var C=r.context,_=n.contextType;h=wi,typeof _=="object"&&_!==null&&(h=ee(_));var L=n.getDerivedStateFromProps;_=typeof L=="function"||typeof r.getSnapshotBeforeUpdate=="function",g=e.pendingProps!==g,_||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(g||C!==h)&&Ad(e,r,a,h),Rn=!1;var z=e.memoizedState;r.state=z,La(e,a,r,o),ja(),C=e.memoizedState,g||z!==C||Rn?(typeof L=="function"&&(Qo(e,n,L,a),C=e.memoizedState),(T=Rn||Td(e,n,T,a,z,C,h))?(_||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=C),r.props=a,r.state=C,r.context=h,a=T):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{r=e.stateNode,Ao(t,e),h=e.memoizedProps,_=di(n,h),r.props=_,L=e.pendingProps,z=r.context,C=n.contextType,T=wi,typeof C=="object"&&C!==null&&(T=ee(C)),g=n.getDerivedStateFromProps,(C=typeof g=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(h!==L||z!==T)&&Ad(e,r,a,T),Rn=!1,z=e.memoizedState,r.state=z,La(e,a,r,o),ja();var O=e.memoizedState;h!==L||z!==O||Rn||t!==null&&t.dependencies!==null&&Pl(t.dependencies)?(typeof g=="function"&&(Qo(e,n,g,a),O=e.memoizedState),(_=Rn||Td(e,n,_,a,z,O,T)||t!==null&&t.dependencies!==null&&Pl(t.dependencies))?(C||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(a,O,T),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(a,O,T)),typeof r.componentDidUpdate=="function"&&(e.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof r.componentDidUpdate!="function"||h===t.memoizedProps&&z===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&z===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=O),r.props=a,r.state=O,r.context=T,a=_):(typeof r.componentDidUpdate!="function"||h===t.memoizedProps&&z===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&z===t.memoizedState||(e.flags|=1024),a=!1)}return r=a,ys(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=fi(e,t.child,null,o),e.child=fi(e,null,n,o)):ne(t,e,n,o),e.memoizedState=r.state,t=e.child):t=cn(t,e,o),t}function jd(t,e,n,a){return li(),e.flags|=256,ne(t,e,n,a),e.child}var Wo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Po(t){return{baseLanes:t,cachePool:Dh()}}function $o(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Me),t}function Ld(t,e,n){var a=e.pendingProps,o=!1,r=(e.flags&128)!==0,h;if((h=r)||(h=t!==null&&t.memoizedState===null?!1:(Ht.current&2)!==0),h&&(o=!0,e.flags&=-129),h=(e.flags&32)!==0,e.flags&=-33,t===null){if(gt){if(o?Vn(e):_n(),(t=Vt)?(t=Km(t,Be),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:xn!==null?{id:Ke,overflow:Je}:null,retryLane:536870912,hydrationErrors:null},n=gh(t),n.return=e,e.child=n,te=e,Vt=null)):t=null,t===null)throw Dn(e);return Br(t)?e.lanes=32:e.lanes=536870912,null}var g=a.children;return a=a.fallback,o?(_n(),o=e.mode,g=gs({mode:"hidden",children:g},o),a=ai(a,o,n,null),g.return=e,a.return=e,g.sibling=a,e.child=g,a=e.child,a.memoizedState=Po(n),a.childLanes=$o(t,h,n),e.memoizedState=Wo,Xa(null,a)):(Vn(e),Io(e,g))}var T=t.memoizedState;if(T!==null&&(g=T.dehydrated,g!==null)){if(r)e.flags&256?(Vn(e),e.flags&=-257,e=tr(t,e,n)):e.memoizedState!==null?(_n(),e.child=t.child,e.flags|=128,e=null):(_n(),g=a.fallback,o=e.mode,a=gs({mode:"visible",children:a.children},o),g=ai(g,o,n,null),g.flags|=2,a.return=e,g.return=e,a.sibling=g,e.child=a,fi(e,t.child,null,n),a=e.child,a.memoizedState=Po(n),a.childLanes=$o(t,h,n),e.memoizedState=Wo,e=Xa(null,a));else if(Vn(e),Br(g)){if(h=g.nextSibling&&g.nextSibling.dataset,h)var C=h.dgst;h=C,a=Error(s(419)),a.stack="",a.digest=h,Va({value:a,source:null,stack:null}),e=tr(t,e,n)}else if(Zt||Yi(t,e,n,!1),h=(n&t.childLanes)!==0,Zt||h){if(h=Ot,h!==null&&(a=xf(h,n),a!==0&&a!==T.retryLane))throw T.retryLane=a,ii(t,a),ye(h,t,a),ko;Ur(g)||Ds(),e=tr(t,e,n)}else Ur(g)?(e.flags|=192,e.child=t.child,e=null):(t=T.treeContext,Vt=we(g.nextSibling),te=e,gt=!0,Mn=null,Be=!1,t!==null&&bh(e,t),e=Io(e,a.children),e.flags|=4096);return e}return o?(_n(),g=a.fallback,o=e.mode,T=t.child,C=T.sibling,a=an(T,{mode:"hidden",children:a.children}),a.subtreeFlags=T.subtreeFlags&65011712,C!==null?g=an(C,g):(g=ai(g,o,n,null),g.flags|=2),g.return=e,a.return=e,a.sibling=g,e.child=a,Xa(null,a),a=e.child,g=t.child.memoizedState,g===null?g=Po(n):(o=g.cachePool,o!==null?(T=Gt._currentValue,o=o.parent!==T?{parent:T,pool:T}:o):o=Dh(),g={baseLanes:g.baseLanes|n,cachePool:o}),a.memoizedState=g,a.childLanes=$o(t,h,n),e.memoizedState=Wo,Xa(t.child,a)):(Vn(e),n=t.child,t=n.sibling,n=an(n,{mode:"visible",children:a.children}),n.return=e,n.sibling=null,t!==null&&(h=e.deletions,h===null?(e.deletions=[t],e.flags|=16):h.push(t)),e.child=n,e.memoizedState=null,n)}function Io(t,e){return e=gs({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function gs(t,e){return t=Te(22,t,null,e),t.lanes=0,t}function tr(t,e,n){return fi(e,t.child,null,n),t=Io(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Hd(t,e,n){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),po(t.return,e,n)}function er(t,e,n,a,o,r){var h=t.memoizedState;h===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:o,treeForkCount:r}:(h.isBackwards=e,h.rendering=null,h.renderingStartTime=0,h.last=a,h.tail=n,h.tailMode=o,h.treeForkCount=r)}function Yd(t,e,n){var a=e.pendingProps,o=a.revealOrder,r=a.tail;a=a.children;var h=Ht.current,g=(h&2)!==0;if(g?(h=h&1|2,e.flags|=128):h&=1,Q(Ht,h),ne(t,e,a,n),a=gt?Oa:0,!g&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Hd(t,n,e);else if(t.tag===19)Hd(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(o){case"forwards":for(n=e.child,o=null;n!==null;)t=n.alternate,t!==null&&ls(t)===null&&(o=n),n=n.sibling;n=o,n===null?(o=e.child,e.child=null):(o=n.sibling,n.sibling=null),er(e,!1,o,n,r,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=e.child,e.child=null;o!==null;){if(t=o.alternate,t!==null&&ls(t)===null){e.child=o;break}t=o.sibling,o.sibling=n,n=o,o=t}er(e,!0,n,null,r,a);break;case"together":er(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function cn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Nn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Yi(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(s(153));if(e.child!==null){for(t=e.child,n=an(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=an(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function nr(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Pl(t)))}function a1(t,e,n){switch(e.tag){case 3:se(e,e.stateNode.containerInfo),Cn(e,Gt,t.memoizedState.cache),li();break;case 27:case 5:pa(e);break;case 4:se(e,e.stateNode.containerInfo);break;case 10:Cn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Co(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(Vn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?Ld(t,e,n):(Vn(e),t=cn(t,e,n),t!==null?t.sibling:null);Vn(e);break;case 19:var o=(t.flags&128)!==0;if(a=(n&e.childLanes)!==0,a||(Yi(t,e,n,!1),a=(n&e.childLanes)!==0),o){if(a)return Yd(t,e,n);e.flags|=128}if(o=e.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Q(Ht,Ht.current),a)break;return null;case 22:return e.lanes=0,_d(t,e,n,e.pendingProps);case 24:Cn(e,Gt,t.memoizedState.cache)}return cn(t,e,n)}function qd(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Zt=!0;else{if(!nr(t,n)&&(e.flags&128)===0)return Zt=!1,a1(t,e,n);Zt=(t.flags&131072)!==0}else Zt=!1,gt&&(e.flags&1048576)!==0&&Sh(e,Oa,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=ri(e.elementType),e.type=t,typeof t=="function")so(t)?(a=di(t,a),e.tag=1,e=wd(null,e,t,a,n)):(e.tag=0,e=Fo(null,e,t,a,n));else{if(t!=null){var o=t.$$typeof;if(o===G){e.tag=11,e=zd(null,e,t,a,n);break t}else if(o===X){e.tag=14,e=Od(null,e,t,a,n);break t}}throw e=qt(t)||t,Error(s(306,e,""))}}return e;case 0:return Fo(t,e,e.type,e.pendingProps,n);case 1:return a=e.type,o=di(a,e.pendingProps),wd(t,e,a,o,n);case 3:t:{if(se(e,e.stateNode.containerInfo),t===null)throw Error(s(387));a=e.pendingProps;var r=e.memoizedState;o=r.element,Ao(t,e),La(e,a,null,n);var h=e.memoizedState;if(a=h.cache,Cn(e,Gt,a),a!==r.cache&&yo(e,[Gt],n,!0),ja(),a=h.element,r.isDehydrated)if(r={element:a,isDehydrated:!1,cache:h.cache},e.updateQueue.baseState=r,e.memoizedState=r,e.flags&256){e=jd(t,e,a,n);break t}else if(a!==o){o=Ve(Error(s(424)),e),Va(o),e=jd(t,e,a,n);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Vt=we(t.firstChild),te=e,gt=!0,Mn=null,Be=!0,n=_h(e,null,a,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(li(),a===o){e=cn(t,e,n);break t}ne(t,e,a,n)}e=e.child}return e;case 26:return ys(t,e),t===null?(n=$m(e.type,null,e.pendingProps,null))?e.memoizedState=n:gt||(n=e.type,t=e.pendingProps,a=Us(ct.current).createElement(n),a[It]=e,a[ce]=t,ie(a,n,t),Ft(a),e.stateNode=a):e.memoizedState=$m(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return pa(e),t===null&>&&(a=e.stateNode=Fm(e.type,e.pendingProps,ct.current),te=e,Be=!0,o=Vt,Yn(e.type)?(Nr=o,Vt=we(a.firstChild)):Vt=o),ne(t,e,e.pendingProps.children,n),ys(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&>&&((o=a=Vt)&&(a=B1(a,e.type,e.pendingProps,Be),a!==null?(e.stateNode=a,te=e,Vt=we(a.firstChild),Be=!1,o=!0):o=!1),o||Dn(e)),pa(e),o=e.type,r=e.pendingProps,h=t!==null?t.memoizedProps:null,a=r.children,Or(o,r)?a=null:h!==null&&Or(o,h)&&(e.flags|=32),e.memoizedState!==null&&(o=zo(t,e,Fv,null,null,n),al._currentValue=o),ys(t,e),ne(t,e,a,n),e.child;case 6:return t===null&>&&((t=n=Vt)&&(n=N1(n,e.pendingProps,Be),n!==null?(e.stateNode=n,te=e,Vt=null,t=!0):t=!1),t||Dn(e)),null;case 13:return Ld(t,e,n);case 4:return se(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=fi(e,null,a,n):ne(t,e,a,n),e.child;case 11:return zd(t,e,e.type,e.pendingProps,n);case 7:return ne(t,e,e.pendingProps,n),e.child;case 8:return ne(t,e,e.pendingProps.children,n),e.child;case 12:return ne(t,e,e.pendingProps.children,n),e.child;case 10:return a=e.pendingProps,Cn(e,e.type,a.value),ne(t,e,a.children,n),e.child;case 9:return o=e.type._context,a=e.pendingProps.children,ui(e),o=ee(o),a=a(o),e.flags|=1,ne(t,e,a,n),e.child;case 14:return Od(t,e,e.type,e.pendingProps,n);case 15:return Vd(t,e,e.type,e.pendingProps,n);case 19:return Yd(t,e,n);case 31:return i1(t,e,n);case 22:return _d(t,e,n,e.pendingProps);case 24:return ui(e),a=ee(Gt),t===null?(o=So(),o===null&&(o=Ot,r=go(),o.pooledCache=r,r.refCount++,r!==null&&(o.pooledCacheLanes|=n),o=r),e.memoizedState={parent:a,cache:o},To(e),Cn(e,Gt,o)):((t.lanes&n)!==0&&(Ao(t,e),La(e,null,null,n),ja()),o=t.memoizedState,r=e.memoizedState,o.parent!==a?(o={parent:a,cache:a},e.memoizedState=o,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=o),Cn(e,Gt,a)):(a=r.cache,Cn(e,Gt,a),a!==o.cache&&yo(e,[Gt],n,!0))),ne(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(s(156,e.tag))}function fn(t){t.flags|=4}function ir(t,e,n,a,o){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(o&335544128)===o)if(t.stateNode.complete)t.flags|=8192;else if(mm())t.flags|=8192;else throw ci=es,bo}else t.flags&=-16777217}function Gd(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!ip(e))if(mm())t.flags|=8192;else throw ci=es,bo}function vs(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Tf():536870912,t.lanes|=e,$i|=e)}function Za(t,e){if(!gt)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 _t(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,a=0;if(e)for(var o=t.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags&65011712,a|=o.flags&65011712,o.return=t,o=o.sibling;else for(o=t.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags,a|=o.flags,o.return=t,o=o.sibling;return t.subtreeFlags|=a,t.childLanes=n,e}function l1(t,e,n){var a=e.pendingProps;switch(co(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _t(e),null;case 1:return _t(e),null;case 3:return n=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),un(Gt),Lt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Hi(e)?fn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,ho())),_t(e),null;case 26:var o=e.type,r=e.memoizedState;return t===null?(fn(e),r!==null?(_t(e),Gd(e,r)):(_t(e),ir(e,o,null,a,n))):r?r!==t.memoizedState?(fn(e),_t(e),Gd(e,r)):(_t(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&fn(e),_t(e),ir(e,o,t,a,n)),null;case 27:if(zl(e),n=ct.current,o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&fn(e);else{if(!a){if(e.stateNode===null)throw Error(s(166));return _t(e),null}t=$.current,Hi(e)?Th(e):(t=Fm(o,a,n),e.stateNode=t,fn(e))}return _t(e),null;case 5:if(zl(e),o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&fn(e);else{if(!a){if(e.stateNode===null)throw Error(s(166));return _t(e),null}if(r=$.current,Hi(e))Th(e);else{var h=Us(ct.current);switch(r){case 1:r=h.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:r=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":r=h.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":r=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":r=h.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?r.multiple=!0:a.size&&(r.size=a.size);break;default:r=typeof a.is=="string"?h.createElement(o,{is:a.is}):h.createElement(o)}}r[It]=e,r[ce]=a;t:for(h=e.child;h!==null;){if(h.tag===5||h.tag===6)r.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break t;for(;h.sibling===null;){if(h.return===null||h.return===e)break t;h=h.return}h.sibling.return=h.return,h=h.sibling}e.stateNode=r;t:switch(ie(r,o,a),o){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&fn(e)}}return _t(e),ir(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&fn(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(s(166));if(t=ct.current,Hi(e)){if(t=e.stateNode,n=e.memoizedProps,a=null,o=te,o!==null)switch(o.tag){case 27:case 5:a=o.memoizedProps}t[It]=e,t=!!(t.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Lm(t.nodeValue,n)),t||Dn(e,!0)}else t=Us(t).createTextNode(a),t[It]=e,e.stateNode=t}return _t(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(a=Hi(e),n!==null){if(t===null){if(!a)throw Error(s(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(557));t[It]=e}else li(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;_t(e),t=!1}else n=ho(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Ee(e),e):(Ee(e),null);if((e.flags&128)!==0)throw Error(s(558))}return _t(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(o=Hi(e),a!==null&&a.dehydrated!==null){if(t===null){if(!o)throw Error(s(318));if(o=e.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[It]=e}else li(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;_t(e),o=!1}else o=ho(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=o),o=!0;if(!o)return e.flags&256?(Ee(e),e):(Ee(e),null)}return Ee(e),(e.flags&128)!==0?(e.lanes=n,e):(n=a!==null,t=t!==null&&t.memoizedState!==null,n&&(a=e.child,o=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(o=a.alternate.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==o&&(a.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),vs(e,e.updateQueue),_t(e),null);case 4:return Lt(),t===null&&Mr(e.stateNode.containerInfo),_t(e),null;case 10:return un(e.type),_t(e),null;case 19:if(Y(Ht),a=e.memoizedState,a===null)return _t(e),null;if(o=(e.flags&128)!==0,r=a.rendering,r===null)if(o)Za(a,!1);else{if(Nt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(r=ls(t),r!==null){for(e.flags|=128,Za(a,!1),t=r.updateQueue,e.updateQueue=t,vs(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)yh(n,t),n=n.sibling;return Q(Ht,Ht.current&1|2),gt&&ln(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&ge()>Es&&(e.flags|=128,o=!0,Za(a,!1),e.lanes=4194304)}else{if(!o)if(t=ls(r),t!==null){if(e.flags|=128,o=!0,t=t.updateQueue,e.updateQueue=t,vs(e,t),Za(a,!0),a.tail===null&&a.tailMode==="hidden"&&!r.alternate&&!gt)return _t(e),null}else 2*ge()-a.renderingStartTime>Es&&n!==536870912&&(e.flags|=128,o=!0,Za(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=ge(),t.sibling=null,n=Ht.current,Q(Ht,o?n&1|2:n&1),gt&&ln(e,a.treeForkCount),t):(_t(e),null);case 22:case 23:return Ee(e),Do(),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&&(_t(e),e.subtreeFlags&6&&(e.flags|=8192)):_t(e),n=e.updateQueue,n!==null&&vs(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==n&&(e.flags|=2048),t!==null&&Y(oi),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),un(Gt),_t(e),null;case 25:return null;case 30:return null}throw Error(s(156,e.tag))}function s1(t,e){switch(co(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return un(Gt),Lt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return zl(e),null;case 31:if(e.memoizedState!==null){if(Ee(e),e.alternate===null)throw Error(s(340));li()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Ee(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(s(340));li()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Y(Ht),null;case 4:return Lt(),null;case 10:return un(e.type),null;case 22:case 23:return Ee(e),Do(),t!==null&&Y(oi),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return un(Gt),null;case 25:return null;default:return null}}function Xd(t,e){switch(co(e),e.tag){case 3:un(Gt),Lt();break;case 26:case 27:case 5:zl(e);break;case 4:Lt();break;case 31:e.memoizedState!==null&&Ee(e);break;case 13:Ee(e);break;case 19:Y(Ht);break;case 10:un(e.type);break;case 22:case 23:Ee(e),Do(),t!==null&&Y(oi);break;case 24:un(Gt)}}function Qa(t,e){try{var n=e.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var o=a.next;n=o;do{if((n.tag&t)===t){a=void 0;var r=n.create,h=n.inst;a=r(),h.destroy=a}n=n.next}while(n!==o)}}catch(g){xt(e,e.return,g)}}function Un(t,e,n){try{var a=e.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var r=o.next;a=r;do{if((a.tag&t)===t){var h=a.inst,g=h.destroy;if(g!==void 0){h.destroy=void 0,o=e;var T=n,C=g;try{C()}catch(_){xt(o,T,_)}}}a=a.next}while(a!==r)}}catch(_){xt(e,e.return,_)}}function Zd(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Bh(e,n)}catch(a){xt(t,t.return,a)}}}function Qd(t,e,n){n.props=di(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(a){xt(t,e,a)}}function Ka(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(o){xt(t,e,o)}}function ke(t,e){var n=t.ref,a=t.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(o){xt(t,e,o)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){xt(t,e,o)}else n.current=null}function Kd(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(o){xt(t,t.return,o)}}function ar(t,e,n){try{var a=t.stateNode;R1(a,t.type,n,e),a[ce]=e}catch(o){xt(t,t.return,o)}}function Jd(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Yn(t.type)||t.tag===4}function lr(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Jd(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&&Yn(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 sr(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=en));else if(a!==4&&(a===27&&Yn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(sr(t,e,n),t=t.sibling;t!==null;)sr(t,e,n),t=t.sibling}function Ss(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&&Yn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Ss(t,e,n),t=t.sibling;t!==null;)Ss(t,e,n),t=t.sibling}function kd(t){var e=t.stateNode,n=t.memoizedProps;try{for(var a=t.type,o=e.attributes;o.length;)e.removeAttributeNode(o[0]);ie(e,a,n),e[It]=t,e[ce]=n}catch(r){xt(t,t.return,r)}}var hn=!1,Qt=!1,ur=!1,Fd=typeof WeakSet=="function"?WeakSet:Set,Wt=null;function u1(t,e){if(t=t.containerInfo,Rr=Ys,t=uh(t),Iu(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 o=a.anchorOffset,r=a.focusNode;a=a.focusOffset;try{n.nodeType,r.nodeType}catch{n=null;break t}var h=0,g=-1,T=-1,C=0,_=0,L=t,z=null;e:for(;;){for(var O;L!==n||o!==0&&L.nodeType!==3||(g=h+o),L!==r||a!==0&&L.nodeType!==3||(T=h+a),L.nodeType===3&&(h+=L.nodeValue.length),(O=L.firstChild)!==null;)z=L,L=O;for(;;){if(L===t)break e;if(z===n&&++C===o&&(g=h),z===r&&++_===a&&(T=h),(O=L.nextSibling)!==null)break;L=z,z=L.parentNode}L=O}n=g===-1||T===-1?null:{start:g,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;for(zr={focusedElem:t,selectionRange:n},Ys=!1,Wt=e;Wt!==null;)if(e=Wt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Wt=t;else for(;Wt!==null;){switch(e=Wt,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++)o=t[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&r!==null){t=void 0,n=e,o=r.memoizedProps,r=r.memoizedState,a=n.stateNode;try{var W=di(n.type,o);t=a.getSnapshotBeforeUpdate(W,r),a.__reactInternalSnapshotBeforeUpdate=t}catch(nt){xt(n,n.return,nt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)_r(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":_r(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(s(163))}if(t=e.sibling,t!==null){t.return=e.return,Wt=t;break}Wt=e.return}}function Wd(t,e,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:mn(t,n),a&4&&Qa(5,n);break;case 1:if(mn(t,n),a&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(h){xt(n,n.return,h)}else{var o=di(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(o,e,t.__reactInternalSnapshotBeforeUpdate)}catch(h){xt(n,n.return,h)}}a&64&&Zd(n),a&512&&Ka(n,n.return);break;case 3:if(mn(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{Bh(t,e)}catch(h){xt(n,n.return,h)}}break;case 27:e===null&&a&4&&kd(n);case 26:case 5:mn(t,n),e===null&&a&4&&Kd(n),a&512&&Ka(n,n.return);break;case 12:mn(t,n);break;case 31:mn(t,n),a&4&&Id(t,n);break;case 13:mn(t,n),a&4&&tm(t,n),a&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=y1.bind(null,n),w1(t,n))));break;case 22:if(a=n.memoizedState!==null||hn,!a){e=e!==null&&e.memoizedState!==null||Qt,o=hn;var r=Qt;hn=a,(Qt=e)&&!r?pn(t,n,(n.subtreeFlags&8772)!==0):mn(t,n),hn=o,Qt=r}break;case 30:break;default:mn(t,n)}}function Pd(t){var e=t.alternate;e!==null&&(t.alternate=null,Pd(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&wu(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 Ut=null,he=!1;function dn(t,e,n){for(n=n.child;n!==null;)$d(t,e,n),n=n.sibling}function $d(t,e,n){if(ve&&typeof ve.onCommitFiberUnmount=="function")try{ve.onCommitFiberUnmount(ya,n)}catch{}switch(n.tag){case 26:Qt||ke(n,e),dn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Qt||ke(n,e);var a=Ut,o=he;Yn(n.type)&&(Ut=n.stateNode,he=!1),dn(t,e,n),el(n.stateNode),Ut=a,he=o;break;case 5:Qt||ke(n,e);case 6:if(a=Ut,o=he,Ut=null,dn(t,e,n),Ut=a,he=o,Ut!==null)if(he)try{(Ut.nodeType===9?Ut.body:Ut.nodeName==="HTML"?Ut.ownerDocument.body:Ut).removeChild(n.stateNode)}catch(r){xt(n,e,r)}else try{Ut.removeChild(n.stateNode)}catch(r){xt(n,e,r)}break;case 18:Ut!==null&&(he?(t=Ut,Zm(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),sa(t)):Zm(Ut,n.stateNode));break;case 4:a=Ut,o=he,Ut=n.stateNode.containerInfo,he=!0,dn(t,e,n),Ut=a,he=o;break;case 0:case 11:case 14:case 15:Un(2,n,e),Qt||Un(4,n,e),dn(t,e,n);break;case 1:Qt||(ke(n,e),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Qd(n,e,a)),dn(t,e,n);break;case 21:dn(t,e,n);break;case 22:Qt=(a=Qt)||n.memoizedState!==null,dn(t,e,n),Qt=a;break;default:dn(t,e,n)}}function Id(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{sa(t)}catch(n){xt(e,e.return,n)}}}function tm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{sa(t)}catch(n){xt(e,e.return,n)}}function o1(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Fd),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Fd),e;default:throw Error(s(435,t.tag))}}function bs(t,e){var n=o1(t);e.forEach(function(a){if(!n.has(a)){n.add(a);var o=g1.bind(null,t,a);a.then(o,o)}})}function de(t,e){var n=e.deletions;if(n!==null)for(var a=0;a<n.length;a++){var o=n[a],r=t,h=e,g=h;t:for(;g!==null;){switch(g.tag){case 27:if(Yn(g.type)){Ut=g.stateNode,he=!1;break t}break;case 5:Ut=g.stateNode,he=!1;break t;case 3:case 4:Ut=g.stateNode.containerInfo,he=!0;break t}g=g.return}if(Ut===null)throw Error(s(160));$d(r,h,o),Ut=null,he=!1,r=o.alternate,r!==null&&(r.return=null),o.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)em(e,t),e=e.sibling}var qe=null;function em(t,e){var n=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:de(e,t),me(t),a&4&&(Un(3,t,t.return),Qa(3,t),Un(5,t,t.return));break;case 1:de(e,t),me(t),a&512&&(Qt||n===null||ke(n,n.return)),a&64&&hn&&(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 o=qe;if(de(e,t),me(t),a&512&&(Qt||n===null||ke(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,o=o.ownerDocument||o;e:switch(a){case"title":r=o.getElementsByTagName("title")[0],(!r||r[Sa]||r[It]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=o.createElement(a),o.head.insertBefore(r,o.querySelector("head > title"))),ie(r,a,n),r[It]=t,Ft(r),a=r;break t;case"link":var h=ep("link","href",o).get(a+(n.href||""));if(h){for(var g=0;g<h.length;g++)if(r=h[g],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)){h.splice(g,1);break e}}r=o.createElement(a),ie(r,a,n),o.head.appendChild(r);break;case"meta":if(h=ep("meta","content",o).get(a+(n.content||""))){for(g=0;g<h.length;g++)if(r=h[g],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)){h.splice(g,1);break e}}r=o.createElement(a),ie(r,a,n),o.head.appendChild(r);break;default:throw Error(s(468,a))}r[It]=t,Ft(r),a=r}t.stateNode=a}else np(o,t.type,t.stateNode);else t.stateNode=tp(o,a,t.memoizedProps);else r!==a?(r===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):r.count--,a===null?np(o,t.type,t.stateNode):tp(o,a,t.memoizedProps)):a===null&&t.stateNode!==null&&ar(t,t.memoizedProps,n.memoizedProps)}break;case 27:de(e,t),me(t),a&512&&(Qt||n===null||ke(n,n.return)),n!==null&&a&4&&ar(t,t.memoizedProps,n.memoizedProps);break;case 5:if(de(e,t),me(t),a&512&&(Qt||n===null||ke(n,n.return)),t.flags&32){o=t.stateNode;try{zi(o,"")}catch(W){xt(t,t.return,W)}}a&4&&t.stateNode!=null&&(o=t.memoizedProps,ar(t,o,n!==null?n.memoizedProps:o)),a&1024&&(ur=!0);break;case 6:if(de(e,t),me(t),a&4){if(t.stateNode===null)throw Error(s(162));a=t.memoizedProps,n=t.stateNode;try{n.nodeValue=a}catch(W){xt(t,t.return,W)}}break;case 3:if(ws=null,o=qe,qe=Bs(e.containerInfo),de(e,t),qe=o,me(t),a&4&&n!==null&&n.memoizedState.isDehydrated)try{sa(e.containerInfo)}catch(W){xt(t,t.return,W)}ur&&(ur=!1,nm(t));break;case 4:a=qe,qe=Bs(t.stateNode.containerInfo),de(e,t),me(t),qe=a;break;case 12:de(e,t),me(t);break;case 31:de(e,t),me(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,bs(t,a)));break;case 13:de(e,t),me(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(As=ge()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,bs(t,a)));break;case 22:o=t.memoizedState!==null;var T=n!==null&&n.memoizedState!==null,C=hn,_=Qt;if(hn=C||o,Qt=_||T,de(e,t),Qt=_,hn=C,me(t),a&8192)t:for(e=t.stateNode,e._visibility=o?e._visibility&-2:e._visibility|1,o&&(n===null||T||hn||Qt||mi(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){T=n=e;try{if(r=T.stateNode,o)h=r.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{g=T.stateNode;var L=T.memoizedProps.style,z=L!=null&&L.hasOwnProperty("display")?L.display:null;g.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(W){xt(T,T.return,W)}}}else if(e.tag===6){if(n===null){T=e;try{T.stateNode.nodeValue=o?"":T.memoizedProps}catch(W){xt(T,T.return,W)}}}else if(e.tag===18){if(n===null){T=e;try{var O=T.stateNode;o?Qm(O,!0):Qm(T.stateNode,!1)}catch(W){xt(T,T.return,W)}}}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,bs(t,n))));break;case 19:de(e,t),me(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,bs(t,a)));break;case 30:break;case 21:break;default:de(e,t),me(t)}}function me(t){var e=t.flags;if(e&2){try{for(var n,a=t.return;a!==null;){if(Jd(a)){n=a;break}a=a.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var o=n.stateNode,r=lr(t);Ss(t,r,o);break;case 5:var h=n.stateNode;n.flags&32&&(zi(h,""),n.flags&=-33);var g=lr(t);Ss(t,g,h);break;case 3:case 4:var T=n.stateNode.containerInfo,C=lr(t);sr(t,C,T);break;default:throw Error(s(161))}}catch(_){xt(t,t.return,_)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function nm(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;nm(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function mn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Wd(t,e.alternate,e),e=e.sibling}function mi(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Un(4,e,e.return),mi(e);break;case 1:ke(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Qd(e,e.return,n),mi(e);break;case 27:el(e.stateNode);case 26:case 5:ke(e,e.return),mi(e);break;case 22:e.memoizedState===null&&mi(e);break;case 30:mi(e);break;default:mi(e)}t=t.sibling}}function pn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,o=t,r=e,h=r.flags;switch(r.tag){case 0:case 11:case 15:pn(o,r,n),Qa(4,r);break;case 1:if(pn(o,r,n),a=r,o=a.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(C){xt(a,a.return,C)}if(a=r,o=a.updateQueue,o!==null){var g=a.stateNode;try{var T=o.shared.hiddenCallbacks;if(T!==null)for(o.shared.hiddenCallbacks=null,o=0;o<T.length;o++)Uh(T[o],g)}catch(C){xt(a,a.return,C)}}n&&h&64&&Zd(r),Ka(r,r.return);break;case 27:kd(r);case 26:case 5:pn(o,r,n),n&&a===null&&h&4&&Kd(r),Ka(r,r.return);break;case 12:pn(o,r,n);break;case 31:pn(o,r,n),n&&h&4&&Id(o,r);break;case 13:pn(o,r,n),n&&h&4&&tm(o,r);break;case 22:r.memoizedState===null&&pn(o,r,n),Ka(r,r.return);break;case 30:break;default:pn(o,r,n)}e=e.sibling}}function or(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&&_a(n))}function rr(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&_a(t))}function Ge(t,e,n,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)im(t,e,n,a),e=e.sibling}function im(t,e,n,a){var o=e.flags;switch(e.tag){case 0:case 11:case 15:Ge(t,e,n,a),o&2048&&Qa(9,e);break;case 1:Ge(t,e,n,a);break;case 3:Ge(t,e,n,a),o&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&_a(t)));break;case 12:if(o&2048){Ge(t,e,n,a),t=e.stateNode;try{var r=e.memoizedProps,h=r.id,g=r.onPostCommit;typeof g=="function"&&g(h,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(T){xt(e,e.return,T)}}else Ge(t,e,n,a);break;case 31:Ge(t,e,n,a);break;case 13:Ge(t,e,n,a);break;case 23:break;case 22:r=e.stateNode,h=e.alternate,e.memoizedState!==null?r._visibility&2?Ge(t,e,n,a):Ja(t,e):r._visibility&2?Ge(t,e,n,a):(r._visibility|=2,Fi(t,e,n,a,(e.subtreeFlags&10256)!==0||!1)),o&2048&&or(h,e);break;case 24:Ge(t,e,n,a),o&2048&&rr(e.alternate,e);break;default:Ge(t,e,n,a)}}function Fi(t,e,n,a,o){for(o=o&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var r=t,h=e,g=n,T=a,C=h.flags;switch(h.tag){case 0:case 11:case 15:Fi(r,h,g,T,o),Qa(8,h);break;case 23:break;case 22:var _=h.stateNode;h.memoizedState!==null?_._visibility&2?Fi(r,h,g,T,o):Ja(r,h):(_._visibility|=2,Fi(r,h,g,T,o)),o&&C&2048&&or(h.alternate,h);break;case 24:Fi(r,h,g,T,o),o&&C&2048&&rr(h.alternate,h);break;default:Fi(r,h,g,T,o)}e=e.sibling}}function Ja(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,a=e,o=a.flags;switch(a.tag){case 22:Ja(n,a),o&2048&&or(a.alternate,a);break;case 24:Ja(n,a),o&2048&&rr(a.alternate,a);break;default:Ja(n,a)}e=e.sibling}}var ka=8192;function Wi(t,e,n){if(t.subtreeFlags&ka)for(t=t.child;t!==null;)am(t,e,n),t=t.sibling}function am(t,e,n){switch(t.tag){case 26:Wi(t,e,n),t.flags&ka&&t.memoizedState!==null&&k1(n,qe,t.memoizedState,t.memoizedProps);break;case 5:Wi(t,e,n);break;case 3:case 4:var a=qe;qe=Bs(t.stateNode.containerInfo),Wi(t,e,n),qe=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=ka,ka=16777216,Wi(t,e,n),ka=a):Wi(t,e,n));break;default:Wi(t,e,n)}}function lm(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 Fa(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];Wt=a,um(a,t)}lm(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)sm(t),t=t.sibling}function sm(t){switch(t.tag){case 0:case 11:case 15:Fa(t),t.flags&2048&&Un(9,t,t.return);break;case 3:Fa(t);break;case 12:Fa(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Ts(t)):Fa(t);break;default:Fa(t)}}function Ts(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];Wt=a,um(a,t)}lm(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Un(8,e,e.return),Ts(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Ts(e));break;default:Ts(e)}t=t.sibling}}function um(t,e){for(;Wt!==null;){var n=Wt;switch(n.tag){case 0:case 11:case 15:Un(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:_a(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,Wt=a;else t:for(n=t;Wt!==null;){a=Wt;var o=a.sibling,r=a.return;if(Pd(a),a===n){Wt=null;break t}if(o!==null){o.return=r,Wt=o;break t}Wt=r}}}var r1={getCacheForType:function(t){var e=ee(Gt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return ee(Gt).controller.signal}},c1=typeof WeakMap=="function"?WeakMap:Map,Tt=0,Ot=null,ft=null,dt=0,Et=0,xe=null,Bn=!1,Pi=!1,cr=!1,yn=0,Nt=0,Nn=0,pi=0,fr=0,Me=0,$i=0,Wa=null,pe=null,hr=!1,As=0,om=0,Es=1/0,xs=null,wn=null,Jt=0,jn=null,Ii=null,gn=0,dr=0,mr=null,rm=null,Pa=0,pr=null;function De(){return(Tt&2)!==0&&dt!==0?dt&-dt:V.T!==null?Tr():Mf()}function cm(){if(Me===0)if((dt&536870912)===0||gt){var t=_l;_l<<=1,(_l&3932160)===0&&(_l=262144),Me=t}else Me=536870912;return t=Ae.current,t!==null&&(t.flags|=32),Me}function ye(t,e,n){(t===Ot&&(Et===2||Et===9)||t.cancelPendingCommit!==null)&&(ta(t,0),Ln(t,dt,Me,!1)),va(t,n),((Tt&2)===0||t!==Ot)&&(t===Ot&&((Tt&2)===0&&(pi|=n),Nt===4&&Ln(t,dt,Me,!1)),Fe(t))}function fm(t,e,n){if((Tt&6)!==0)throw Error(s(327));var a=!n&&(e&127)===0&&(e&t.expiredLanes)===0||ga(t,e),o=a?d1(t,e):gr(t,e,!0),r=a;do{if(o===0){Pi&&!a&&Ln(t,e,0,!1);break}else{if(n=t.current.alternate,r&&!f1(n)){o=gr(t,e,!1),r=!1;continue}if(o===2){if(r=e,t.errorRecoveryDisabledLanes&r)var h=0;else h=t.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){e=h;t:{var g=t;o=Wa;var T=g.current.memoizedState.isDehydrated;if(T&&(ta(g,h).flags|=256),h=gr(g,h,!1),h!==2){if(cr&&!T){g.errorRecoveryDisabledLanes|=r,pi|=r,o=4;break t}r=pe,pe=o,r!==null&&(pe===null?pe=r:pe.push.apply(pe,r))}o=h}if(r=!1,o!==2)continue}}if(o===1){ta(t,0),Ln(t,e,0,!0);break}t:{switch(a=t,r=o,r){case 0:case 1:throw Error(s(345));case 4:if((e&4194048)!==e)break;case 6:Ln(a,e,Me,!Bn);break t;case 2:pe=null;break;case 3:case 5:break;default:throw Error(s(329))}if((e&62914560)===e&&(o=As+300-ge(),10<o)){if(Ln(a,e,Me,!Bn),Bl(a,0,!0)!==0)break t;gn=e,a.timeoutHandle=Gm(hm.bind(null,a,n,pe,xs,hr,e,Me,pi,$i,Bn,r,"Throttled",-0,0),o);break t}hm(a,n,pe,xs,hr,e,Me,pi,$i,Bn,r,null,-0,0)}}break}while(!0);Fe(t)}function hm(t,e,n,a,o,r,h,g,T,C,_,L,z,O){if(t.timeoutHandle=-1,L=e.subtreeFlags,L&8192||(L&16785408)===16785408){L={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:en},am(e,r,L);var W=(r&62914560)===r?As-ge():(r&4194048)===r?om-ge():0;if(W=F1(L,W),W!==null){gn=r,t.cancelPendingCommit=W(bm.bind(null,t,e,r,n,a,o,h,g,T,_,L,null,z,O)),Ln(t,r,h,!C);return}}bm(t,e,r,n,a,o,h,g,T)}function f1(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 o=n[a],r=o.getSnapshot;o=o.value;try{if(!be(r(),o))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 Ln(t,e,n,a){e&=~fr,e&=~pi,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var o=e;0<o;){var r=31-Se(o),h=1<<r;a[r]=-1,o&=~h}n!==0&&Af(t,n,e)}function Ms(){return(Tt&6)===0?($a(0),!1):!0}function yr(){if(ft!==null){if(Et===0)var t=ft.return;else t=ft,sn=si=null,_o(t),Zi=null,Ba=0,t=ft;for(;t!==null;)Xd(t.alternate,t),t=t.return;ft=null}}function ta(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,V1(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),gn=0,yr(),Ot=t,ft=n=an(t.current,null),dt=e,Et=0,xe=null,Bn=!1,Pi=ga(t,e),cr=!1,$i=Me=fr=pi=Nn=Nt=0,pe=Wa=null,hr=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var o=31-Se(a),r=1<<o;e|=t[o],a&=~r}return yn=e,Kl(),n}function dm(t,e){ut=null,V.H=Ga,e===Xi||e===ts?(e=zh(),Et=3):e===bo?(e=zh(),Et=4):Et=e===ko?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,xe=e,ft===null&&(Nt=1,ms(t,Ve(e,t.current)))}function mm(){var t=Ae.current;return t===null?!0:(dt&4194048)===dt?Ne===null:(dt&62914560)===dt||(dt&536870912)!==0?t===Ne:!1}function pm(){var t=V.H;return V.H=Ga,t===null?Ga:t}function ym(){var t=V.A;return V.A=r1,t}function Ds(){Nt=4,Bn||(dt&4194048)!==dt&&Ae.current!==null||(Pi=!0),(Nn&134217727)===0&&(pi&134217727)===0||Ot===null||Ln(Ot,dt,Me,!1)}function gr(t,e,n){var a=Tt;Tt|=2;var o=pm(),r=ym();(Ot!==t||dt!==e)&&(xs=null,ta(t,e)),e=!1;var h=Nt;t:do try{if(Et!==0&&ft!==null){var g=ft,T=xe;switch(Et){case 8:yr(),h=6;break t;case 3:case 2:case 9:case 6:Ae.current===null&&(e=!0);var C=Et;if(Et=0,xe=null,ea(t,g,T,C),n&&Pi){h=0;break t}break;default:C=Et,Et=0,xe=null,ea(t,g,T,C)}}h1(),h=Nt;break}catch(_){dm(t,_)}while(!0);return e&&t.shellSuspendCounter++,sn=si=null,Tt=a,V.H=o,V.A=r,ft===null&&(Ot=null,dt=0,Kl()),h}function h1(){for(;ft!==null;)gm(ft)}function d1(t,e){var n=Tt;Tt|=2;var a=pm(),o=ym();Ot!==t||dt!==e?(xs=null,Es=ge()+500,ta(t,e)):Pi=ga(t,e);t:do try{if(Et!==0&&ft!==null){e=ft;var r=xe;e:switch(Et){case 1:Et=0,xe=null,ea(t,e,r,1);break;case 2:case 9:if(Ch(r)){Et=0,xe=null,vm(e);break}e=function(){Et!==2&&Et!==9||Ot!==t||(Et=7),Fe(t)},r.then(e,e);break t;case 3:Et=7;break t;case 4:Et=5;break t;case 7:Ch(r)?(Et=0,xe=null,vm(e)):(Et=0,xe=null,ea(t,e,r,7));break;case 5:var h=null;switch(ft.tag){case 26:h=ft.memoizedState;case 5:case 27:var g=ft;if(h?ip(h):g.stateNode.complete){Et=0,xe=null;var T=g.sibling;if(T!==null)ft=T;else{var C=g.return;C!==null?(ft=C,Cs(C)):ft=null}break e}}Et=0,xe=null,ea(t,e,r,5);break;case 6:Et=0,xe=null,ea(t,e,r,6);break;case 8:yr(),Nt=6;break t;default:throw Error(s(462))}}m1();break}catch(_){dm(t,_)}while(!0);return sn=si=null,V.H=a,V.A=o,Tt=n,ft!==null?0:(Ot=null,dt=0,Kl(),Nt)}function m1(){for(;ft!==null&&!j0();)gm(ft)}function gm(t){var e=qd(t.alternate,t,yn);t.memoizedProps=t.pendingProps,e===null?Cs(t):ft=e}function vm(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Nd(n,e,e.pendingProps,e.type,void 0,dt);break;case 11:e=Nd(n,e,e.pendingProps,e.type.render,e.ref,dt);break;case 5:_o(e);default:Xd(n,e),e=ft=yh(e,yn),e=qd(n,e,yn)}t.memoizedProps=t.pendingProps,e===null?Cs(t):ft=e}function ea(t,e,n,a){sn=si=null,_o(e),Zi=null,Ba=0;var o=e.return;try{if(n1(t,o,e,n,dt)){Nt=1,ms(t,Ve(n,t.current)),ft=null;return}}catch(r){if(o!==null)throw ft=o,r;Nt=1,ms(t,Ve(n,t.current)),ft=null;return}e.flags&32768?(gt||a===1?t=!0:Pi||(dt&536870912)!==0?t=!1:(Bn=t=!0,(a===2||a===9||a===3||a===6)&&(a=Ae.current,a!==null&&a.tag===13&&(a.flags|=16384))),Sm(e,t)):Cs(e)}function Cs(t){var e=t;do{if((e.flags&32768)!==0){Sm(e,Bn);return}t=e.return;var n=l1(e.alternate,e,yn);if(n!==null){ft=n;return}if(e=e.sibling,e!==null){ft=e;return}ft=e=t}while(e!==null);Nt===0&&(Nt=5)}function Sm(t,e){do{var n=s1(t.alternate,t);if(n!==null){n.flags&=32767,ft=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){ft=t;return}ft=t=n}while(t!==null);Nt=6,ft=null}function bm(t,e,n,a,o,r,h,g,T){t.cancelPendingCommit=null;do Rs();while(Jt!==0);if((Tt&6)!==0)throw Error(s(327));if(e!==null){if(e===t.current)throw Error(s(177));if(r=e.lanes|e.childLanes,r|=ao,J0(t,n,r,h,g,T),t===Ot&&(ft=Ot=null,dt=0),Ii=e,jn=t,gn=n,dr=r,mr=o,rm=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,v1(Ol,function(){return Mm(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=V.T,V.T=null,o=Z.p,Z.p=2,h=Tt,Tt|=4;try{u1(t,e,n)}finally{Tt=h,Z.p=o,V.T=a}}Jt=1,Tm(),Am(),Em()}}function Tm(){if(Jt===1){Jt=0;var t=jn,e=Ii,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=V.T,V.T=null;var a=Z.p;Z.p=2;var o=Tt;Tt|=4;try{em(e,t);var r=zr,h=uh(t.containerInfo),g=r.focusedElem,T=r.selectionRange;if(h!==g&&g&&g.ownerDocument&&sh(g.ownerDocument.documentElement,g)){if(T!==null&&Iu(g)){var C=T.start,_=T.end;if(_===void 0&&(_=C),"selectionStart"in g)g.selectionStart=C,g.selectionEnd=Math.min(_,g.value.length);else{var L=g.ownerDocument||document,z=L&&L.defaultView||window;if(z.getSelection){var O=z.getSelection(),W=g.textContent.length,nt=Math.min(T.start,W),Ct=T.end===void 0?nt:Math.min(T.end,W);!O.extend&&nt>Ct&&(h=Ct,Ct=nt,nt=h);var M=lh(g,nt),A=lh(g,Ct);if(M&&A&&(O.rangeCount!==1||O.anchorNode!==M.node||O.anchorOffset!==M.offset||O.focusNode!==A.node||O.focusOffset!==A.offset)){var D=L.createRange();D.setStart(M.node,M.offset),O.removeAllRanges(),nt>Ct?(O.addRange(D),O.extend(A.node,A.offset)):(D.setEnd(A.node,A.offset),O.addRange(D))}}}}for(L=[],O=g;O=O.parentNode;)O.nodeType===1&&L.push({element:O,left:O.scrollLeft,top:O.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<L.length;g++){var N=L[g];N.element.scrollLeft=N.left,N.element.scrollTop=N.top}}Ys=!!Rr,zr=Rr=null}finally{Tt=o,Z.p=a,V.T=n}}t.current=e,Jt=2}}function Am(){if(Jt===2){Jt=0;var t=jn,e=Ii,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=V.T,V.T=null;var a=Z.p;Z.p=2;var o=Tt;Tt|=4;try{Wd(t,e.alternate,e)}finally{Tt=o,Z.p=a,V.T=n}}Jt=3}}function Em(){if(Jt===4||Jt===3){Jt=0,L0();var t=jn,e=Ii,n=gn,a=rm;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Jt=5:(Jt=0,Ii=jn=null,xm(t,t.pendingLanes));var o=t.pendingLanes;if(o===0&&(wn=null),Bu(n),e=e.stateNode,ve&&typeof ve.onCommitFiberRoot=="function")try{ve.onCommitFiberRoot(ya,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=V.T,o=Z.p,Z.p=2,V.T=null;try{for(var r=t.onRecoverableError,h=0;h<a.length;h++){var g=a[h];r(g.value,{componentStack:g.stack})}}finally{V.T=e,Z.p=o}}(gn&3)!==0&&Rs(),Fe(t),o=t.pendingLanes,(n&261930)!==0&&(o&42)!==0?t===pr?Pa++:(Pa=0,pr=t):Pa=0,$a(0)}}function xm(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,_a(e)))}function Rs(){return Tm(),Am(),Em(),Mm()}function Mm(){if(Jt!==5)return!1;var t=jn,e=dr;dr=0;var n=Bu(gn),a=V.T,o=Z.p;try{Z.p=32>n?32:n,V.T=null,n=mr,mr=null;var r=jn,h=gn;if(Jt=0,Ii=jn=null,gn=0,(Tt&6)!==0)throw Error(s(331));var g=Tt;if(Tt|=4,sm(r.current),im(r,r.current,h,n),Tt=g,$a(0,!1),ve&&typeof ve.onPostCommitFiberRoot=="function")try{ve.onPostCommitFiberRoot(ya,r)}catch{}return!0}finally{Z.p=o,V.T=a,xm(t,e)}}function Dm(t,e,n){e=Ve(n,e),e=Jo(t.stateNode,e,2),t=On(t,e,2),t!==null&&(va(t,2),Fe(t))}function xt(t,e,n){if(t.tag===3)Dm(t,t,n);else for(;e!==null;){if(e.tag===3){Dm(e,t,n);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(wn===null||!wn.has(a))){t=Ve(n,t),n=Cd(2),a=On(e,n,2),a!==null&&(Rd(n,a,e,t),va(a,2),Fe(a));break}}e=e.return}}function vr(t,e,n){var a=t.pingCache;if(a===null){a=t.pingCache=new c1;var o=new Set;a.set(e,o)}else o=a.get(e),o===void 0&&(o=new Set,a.set(e,o));o.has(n)||(cr=!0,o.add(n),t=p1.bind(null,t,e,n),e.then(t,t))}function p1(t,e,n){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Ot===t&&(dt&n)===n&&(Nt===4||Nt===3&&(dt&62914560)===dt&&300>ge()-As?(Tt&2)===0&&ta(t,0):fr|=n,$i===dt&&($i=0)),Fe(t)}function Cm(t,e){e===0&&(e=Tf()),t=ii(t,e),t!==null&&(va(t,e),Fe(t))}function y1(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Cm(t,n)}function g1(t,e){var n=0;switch(t.tag){case 31:case 13:var a=t.stateNode,o=t.memoizedState;o!==null&&(n=o.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(s(314))}a!==null&&a.delete(e),Cm(t,n)}function v1(t,e){return Ou(t,e)}var zs=null,na=null,Sr=!1,Os=!1,br=!1,Hn=0;function Fe(t){t!==na&&t.next===null&&(na===null?zs=na=t:na=na.next=t),Os=!0,Sr||(Sr=!0,b1())}function $a(t,e){if(!br&&Os){br=!0;do for(var n=!1,a=zs;a!==null;){if(t!==0){var o=a.pendingLanes;if(o===0)var r=0;else{var h=a.suspendedLanes,g=a.pingedLanes;r=(1<<31-Se(42|t)+1)-1,r&=o&~(h&~g),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,Vm(a,r))}else r=dt,r=Bl(a,a===Ot?r:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(r&3)===0||ga(a,r)||(n=!0,Vm(a,r));a=a.next}while(n);br=!1}}function S1(){Rm()}function Rm(){Os=Sr=!1;var t=0;Hn!==0&&O1()&&(t=Hn);for(var e=ge(),n=null,a=zs;a!==null;){var o=a.next,r=zm(a,e);r===0?(a.next=null,n===null?zs=o:n.next=o,o===null&&(na=n)):(n=a,(t!==0||(r&3)!==0)&&(Os=!0)),a=o}Jt!==0&&Jt!==5||$a(t),Hn!==0&&(Hn=0)}function zm(t,e){for(var n=t.suspendedLanes,a=t.pingedLanes,o=t.expirationTimes,r=t.pendingLanes&-62914561;0<r;){var h=31-Se(r),g=1<<h,T=o[h];T===-1?((g&n)===0||(g&a)!==0)&&(o[h]=K0(g,e)):T<=e&&(t.expiredLanes|=g),r&=~g}if(e=Ot,n=dt,n=Bl(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,n===0||t===e&&(Et===2||Et===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&Vu(a),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||ga(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(a!==null&&Vu(a),Bu(n)){case 2:case 8:n=Sf;break;case 32:n=Ol;break;case 268435456:n=bf;break;default:n=Ol}return a=Om.bind(null,t),n=Ou(n,a),t.callbackPriority=e,t.callbackNode=n,e}return a!==null&&a!==null&&Vu(a),t.callbackPriority=2,t.callbackNode=null,2}function Om(t,e){if(Jt!==0&&Jt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Rs()&&t.callbackNode!==n)return null;var a=dt;return a=Bl(t,t===Ot?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(fm(t,a,e),zm(t,ge()),t.callbackNode!=null&&t.callbackNode===n?Om.bind(null,t):null)}function Vm(t,e){if(Rs())return null;fm(t,e,!0)}function b1(){_1(function(){(Tt&6)!==0?Ou(vf,S1):Rm()})}function Tr(){if(Hn===0){var t=qi;t===0&&(t=Vl,Vl<<=1,(Vl&261888)===0&&(Vl=256)),Hn=t}return Hn}function _m(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Ll(""+t)}function Um(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 T1(t,e,n,a,o){if(e==="submit"&&n&&n.stateNode===o){var r=_m((o[ce]||null).action),h=a.submitter;h&&(e=(e=h[ce]||null)?_m(e.formAction):h.getAttribute("formAction"),e!==null&&(r=e,h=null));var g=new Gl("action","action",null,a,o);t.push({event:g,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Hn!==0){var T=h?Um(o,h):new FormData(o);qo(n,{pending:!0,data:T,method:o.method,action:r},null,T)}}else typeof r=="function"&&(g.preventDefault(),T=h?Um(o,h):new FormData(o),qo(n,{pending:!0,data:T,method:o.method,action:r},r,T))},currentTarget:o}]})}}for(var Ar=0;Ar<io.length;Ar++){var Er=io[Ar],A1=Er.toLowerCase(),E1=Er[0].toUpperCase()+Er.slice(1);Ye(A1,"on"+E1)}Ye(ch,"onAnimationEnd"),Ye(fh,"onAnimationIteration"),Ye(hh,"onAnimationStart"),Ye("dblclick","onDoubleClick"),Ye("focusin","onFocus"),Ye("focusout","onBlur"),Ye(Hv,"onTransitionRun"),Ye(Yv,"onTransitionStart"),Ye(qv,"onTransitionCancel"),Ye(dh,"onTransitionEnd"),Ci("onMouseEnter",["mouseout","mouseover"]),Ci("onMouseLeave",["mouseout","mouseover"]),Ci("onPointerEnter",["pointerout","pointerover"]),Ci("onPointerLeave",["pointerout","pointerover"]),In("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),In("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),In("onBeforeInput",["compositionend","keypress","textInput","paste"]),In("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),In("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),In("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ia="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(" "),x1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ia));function Bm(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var a=t[n],o=a.event;a=a.listeners;t:{var r=void 0;if(e)for(var h=a.length-1;0<=h;h--){var g=a[h],T=g.instance,C=g.currentTarget;if(g=g.listener,T!==r&&o.isPropagationStopped())break t;r=g,o.currentTarget=C;try{r(o)}catch(_){Ql(_)}o.currentTarget=null,r=T}else for(h=0;h<a.length;h++){if(g=a[h],T=g.instance,C=g.currentTarget,g=g.listener,T!==r&&o.isPropagationStopped())break t;r=g,o.currentTarget=C;try{r(o)}catch(_){Ql(_)}o.currentTarget=null,r=T}}}}function ht(t,e){var n=e[Nu];n===void 0&&(n=e[Nu]=new Set);var a=t+"__bubble";n.has(a)||(Nm(e,t,2,!1),n.add(a))}function xr(t,e,n){var a=0;e&&(a|=4),Nm(n,t,a,e)}var Vs="_reactListening"+Math.random().toString(36).slice(2);function Mr(t){if(!t[Vs]){t[Vs]=!0,Rf.forEach(function(n){n!=="selectionchange"&&(x1.has(n)||xr(n,!1,t),xr(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Vs]||(e[Vs]=!0,xr("selectionchange",!1,e))}}function Nm(t,e,n,a){switch(cp(e)){case 2:var o=$1;break;case 8:o=I1;break;default:o=Yr}n=o.bind(null,e,n,t),o=void 0,!Zu||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(o=!0),a?o!==void 0?t.addEventListener(e,n,{capture:!0,passive:o}):t.addEventListener(e,n,!0):o!==void 0?t.addEventListener(e,n,{passive:o}):t.addEventListener(e,n,!1)}function Dr(t,e,n,a,o){var r=a;if((e&1)===0&&(e&2)===0&&a!==null)t:for(;;){if(a===null)return;var h=a.tag;if(h===3||h===4){var g=a.stateNode.containerInfo;if(g===o)break;if(h===4)for(h=a.return;h!==null;){var T=h.tag;if((T===3||T===4)&&h.stateNode.containerInfo===o)return;h=h.return}for(;g!==null;){if(h=xi(g),h===null)return;if(T=h.tag,T===5||T===6||T===26||T===27){a=r=h;continue t}g=g.parentNode}}a=a.return}Yf(function(){var C=r,_=Gu(n),L=[];t:{var z=mh.get(t);if(z!==void 0){var O=Gl,W=t;switch(t){case"keypress":if(Yl(n)===0)break t;case"keydown":case"keyup":O=gv;break;case"focusin":W="focus",O=ku;break;case"focusout":W="blur",O=ku;break;case"beforeblur":case"afterblur":O=ku;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":O=Xf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=lv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=bv;break;case ch:case fh:case hh:O=ov;break;case dh:O=Av;break;case"scroll":case"scrollend":O=iv;break;case"wheel":O=xv;break;case"copy":case"cut":case"paste":O=cv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=Qf;break;case"toggle":case"beforetoggle":O=Dv}var nt=(e&4)!==0,Ct=!nt&&(t==="scroll"||t==="scrollend"),M=nt?z!==null?z+"Capture":null:z;nt=[];for(var A=C,D;A!==null;){var N=A;if(D=N.stateNode,N=N.tag,N!==5&&N!==26&&N!==27||D===null||M===null||(N=Ta(A,M),N!=null&&nt.push(tl(A,N,D))),Ct)break;A=A.return}0<nt.length&&(z=new O(z,W,null,n,_),L.push({event:z,listeners:nt}))}}if((e&7)===0){t:{if(z=t==="mouseover"||t==="pointerover",O=t==="mouseout"||t==="pointerout",z&&n!==qu&&(W=n.relatedTarget||n.fromElement)&&(xi(W)||W[Ei]))break t;if((O||z)&&(z=_.window===_?_:(z=_.ownerDocument)?z.defaultView||z.parentWindow:window,O?(W=n.relatedTarget||n.toElement,O=C,W=W?xi(W):null,W!==null&&(Ct=d(W),nt=W.tag,W!==Ct||nt!==5&&nt!==27&&nt!==6)&&(W=null)):(O=null,W=C),O!==W)){if(nt=Xf,N="onMouseLeave",M="onMouseEnter",A="mouse",(t==="pointerout"||t==="pointerover")&&(nt=Qf,N="onPointerLeave",M="onPointerEnter",A="pointer"),Ct=O==null?z:ba(O),D=W==null?z:ba(W),z=new nt(N,A+"leave",O,n,_),z.target=Ct,z.relatedTarget=D,N=null,xi(_)===C&&(nt=new nt(M,A+"enter",W,n,_),nt.target=D,nt.relatedTarget=Ct,N=nt),Ct=N,O&&W)e:{for(nt=M1,M=O,A=W,D=0,N=M;N;N=nt(N))D++;N=0;for(var et=A;et;et=nt(et))N++;for(;0<D-N;)M=nt(M),D--;for(;0<N-D;)A=nt(A),N--;for(;D--;){if(M===A||A!==null&&M===A.alternate){nt=M;break e}M=nt(M),A=nt(A)}nt=null}else nt=null;O!==null&&wm(L,z,O,nt,!1),W!==null&&Ct!==null&&wm(L,Ct,W,nt,!0)}}t:{if(z=C?ba(C):window,O=z.nodeName&&z.nodeName.toLowerCase(),O==="select"||O==="input"&&z.type==="file")var St=If;else if(Pf(z))if(th)St=wv;else{St=Bv;var I=Uv}else O=z.nodeName,!O||O.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?C&&Yu(C.elementType)&&(St=If):St=Nv;if(St&&(St=St(t,C))){$f(L,St,n,_);break t}I&&I(t,z,C),t==="focusout"&&C&&z.type==="number"&&C.memoizedProps.value!=null&&Hu(z,"number",z.value)}switch(I=C?ba(C):window,t){case"focusin":(Pf(I)||I.contentEditable==="true")&&(Ui=I,to=C,za=null);break;case"focusout":za=to=Ui=null;break;case"mousedown":eo=!0;break;case"contextmenu":case"mouseup":case"dragend":eo=!1,oh(L,n,_);break;case"selectionchange":if(Lv)break;case"keydown":case"keyup":oh(L,n,_)}var rt;if(Wu)t:{switch(t){case"compositionstart":var mt="onCompositionStart";break t;case"compositionend":mt="onCompositionEnd";break t;case"compositionupdate":mt="onCompositionUpdate";break t}mt=void 0}else _i?Ff(t,n)&&(mt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(mt="onCompositionStart");mt&&(Kf&&n.locale!=="ko"&&(_i||mt!=="onCompositionStart"?mt==="onCompositionEnd"&&_i&&(rt=qf()):(En=_,Qu="value"in En?En.value:En.textContent,_i=!0)),I=_s(C,mt),0<I.length&&(mt=new Zf(mt,t,null,n,_),L.push({event:mt,listeners:I}),rt?mt.data=rt:(rt=Wf(n),rt!==null&&(mt.data=rt)))),(rt=Rv?zv(t,n):Ov(t,n))&&(mt=_s(C,"onBeforeInput"),0<mt.length&&(I=new Zf("onBeforeInput","beforeinput",null,n,_),L.push({event:I,listeners:mt}),I.data=rt)),T1(L,t,C,n,_)}Bm(L,e)})}function tl(t,e,n){return{instance:t,listener:e,currentTarget:n}}function _s(t,e){for(var n=e+"Capture",a=[];t!==null;){var o=t,r=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||r===null||(o=Ta(t,n),o!=null&&a.unshift(tl(t,o,r)),o=Ta(t,e),o!=null&&a.push(tl(t,o,r))),t.tag===3)return a;t=t.return}return[]}function M1(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function wm(t,e,n,a,o){for(var r=e._reactName,h=[];n!==null&&n!==a;){var g=n,T=g.alternate,C=g.stateNode;if(g=g.tag,T!==null&&T===a)break;g!==5&&g!==26&&g!==27||C===null||(T=C,o?(C=Ta(n,r),C!=null&&h.unshift(tl(n,C,T))):o||(C=Ta(n,r),C!=null&&h.push(tl(n,C,T)))),n=n.return}h.length!==0&&t.push({event:e,listeners:h})}var D1=/\r\n?/g,C1=/\u0000|\uFFFD/g;function jm(t){return(typeof t=="string"?t:""+t).replace(D1,`
|
|
49
|
+
`).replace(C1,"")}function Lm(t,e){return e=jm(e),jm(t)===e}function Dt(t,e,n,a,o,r){switch(n){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||zi(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&zi(t,""+a);break;case"className":wl(t,"class",a);break;case"tabIndex":wl(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":wl(t,n,a);break;case"style":Lf(t,a,r);break;case"data":if(e!=="object"){wl(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=Ll(""+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",o.name,o,null),Dt(t,e,"formEncType",o.formEncType,o,null),Dt(t,e,"formMethod",o.formMethod,o,null),Dt(t,e,"formTarget",o.formTarget,o,null)):(Dt(t,e,"encType",o.encType,o,null),Dt(t,e,"method",o.method,o,null),Dt(t,e,"target",o.target,o,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=Ll(""+a),t.setAttribute(n,a);break;case"onClick":a!=null&&(t.onclick=en);break;case"onScroll":a!=null&&ht("scroll",t);break;case"onScrollEnd":a!=null&&ht("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(s(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=Ll(""+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":ht("beforetoggle",t),ht("toggle",t),Nl(t,"popover",a);break;case"xlinkActuate":tn(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":tn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":tn(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":tn(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":tn(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":tn(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":tn(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":tn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":tn(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Nl(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=ev.get(n)||n,Nl(t,n,a))}}function Cr(t,e,n,a,o,r){switch(n){case"style":Lf(t,a,r);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(s(60));t.innerHTML=n}}break;case"children":typeof a=="string"?zi(t,a):(typeof a=="number"||typeof a=="bigint")&&zi(t,""+a);break;case"onScroll":a!=null&&ht("scroll",t);break;case"onScrollEnd":a!=null&&ht("scrollend",t);break;case"onClick":a!=null&&(t.onclick=en);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!zf.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),e=n.slice(2,o?n.length-7:void 0),r=t[ce]||null,r=r!=null?r[n]:null,typeof r=="function"&&t.removeEventListener(e,r,o),typeof a=="function")){typeof r!="function"&&r!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,a,o);break t}n in t?t[n]=a:a===!0?t.setAttribute(n,""):Nl(t,n,a)}}}function ie(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ht("error",t),ht("load",t);var a=!1,o=!1,r;for(r in n)if(n.hasOwnProperty(r)){var h=n[r];if(h!=null)switch(r){case"src":a=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,e));default:Dt(t,e,r,h,n,null)}}o&&Dt(t,e,"srcSet",n.srcSet,n,null),a&&Dt(t,e,"src",n.src,n,null);return;case"input":ht("invalid",t);var g=r=h=o=null,T=null,C=null;for(a in n)if(n.hasOwnProperty(a)){var _=n[a];if(_!=null)switch(a){case"name":o=_;break;case"type":h=_;break;case"checked":T=_;break;case"defaultChecked":C=_;break;case"value":r=_;break;case"defaultValue":g=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(s(137,e));break;default:Dt(t,e,a,_,n,null)}}Bf(t,r,g,T,C,h,o,!1);return;case"select":ht("invalid",t),a=h=r=null;for(o in n)if(n.hasOwnProperty(o)&&(g=n[o],g!=null))switch(o){case"value":r=g;break;case"defaultValue":h=g;break;case"multiple":a=g;default:Dt(t,e,o,g,n,null)}e=r,n=h,t.multiple=!!a,e!=null?Ri(t,!!a,e,!1):n!=null&&Ri(t,!!a,n,!0);return;case"textarea":ht("invalid",t),r=o=a=null;for(h in n)if(n.hasOwnProperty(h)&&(g=n[h],g!=null))switch(h){case"value":a=g;break;case"defaultValue":o=g;break;case"children":r=g;break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(s(91));break;default:Dt(t,e,h,g,n,null)}wf(t,a,o,r);return;case"option":for(T in n)if(n.hasOwnProperty(T)&&(a=n[T],a!=null))switch(T){case"selected":t.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Dt(t,e,T,a,n,null)}return;case"dialog":ht("beforetoggle",t),ht("toggle",t),ht("cancel",t),ht("close",t);break;case"iframe":case"object":ht("load",t);break;case"video":case"audio":for(a=0;a<Ia.length;a++)ht(Ia[a],t);break;case"image":ht("error",t),ht("load",t);break;case"details":ht("toggle",t);break;case"embed":case"source":case"link":ht("error",t),ht("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(C in n)if(n.hasOwnProperty(C)&&(a=n[C],a!=null))switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,e));default:Dt(t,e,C,a,n,null)}return;default:if(Yu(e)){for(_ in n)n.hasOwnProperty(_)&&(a=n[_],a!==void 0&&Cr(t,e,_,a,n,void 0));return}}for(g in n)n.hasOwnProperty(g)&&(a=n[g],a!=null&&Dt(t,e,g,a,n,null))}function R1(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 o=null,r=null,h=null,g=null,T=null,C=null,_=null;for(O in n){var L=n[O];if(n.hasOwnProperty(O)&&L!=null)switch(O){case"checked":break;case"value":break;case"defaultValue":T=L;default:a.hasOwnProperty(O)||Dt(t,e,O,null,a,L)}}for(var z in a){var O=a[z];if(L=n[z],a.hasOwnProperty(z)&&(O!=null||L!=null))switch(z){case"type":r=O;break;case"name":o=O;break;case"checked":C=O;break;case"defaultChecked":_=O;break;case"value":h=O;break;case"defaultValue":g=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(s(137,e));break;default:O!==L&&Dt(t,e,z,O,a,L)}}Lu(t,h,g,T,C,_,r,o);return;case"select":O=h=g=z=null;for(r in n)if(T=n[r],n.hasOwnProperty(r)&&T!=null)switch(r){case"value":break;case"multiple":O=T;default:a.hasOwnProperty(r)||Dt(t,e,r,null,a,T)}for(o in a)if(r=a[o],T=n[o],a.hasOwnProperty(o)&&(r!=null||T!=null))switch(o){case"value":z=r;break;case"defaultValue":g=r;break;case"multiple":h=r;default:r!==T&&Dt(t,e,o,r,a,T)}e=g,n=h,a=O,z!=null?Ri(t,!!n,z,!1):!!a!=!!n&&(e!=null?Ri(t,!!n,e,!0):Ri(t,!!n,n?[]:"",!1));return;case"textarea":O=z=null;for(g in n)if(o=n[g],n.hasOwnProperty(g)&&o!=null&&!a.hasOwnProperty(g))switch(g){case"value":break;case"children":break;default:Dt(t,e,g,null,a,o)}for(h in a)if(o=a[h],r=n[h],a.hasOwnProperty(h)&&(o!=null||r!=null))switch(h){case"value":z=o;break;case"defaultValue":O=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==r&&Dt(t,e,h,o,a,r)}Nf(t,z,O);return;case"option":for(var W in n)if(z=n[W],n.hasOwnProperty(W)&&z!=null&&!a.hasOwnProperty(W))switch(W){case"selected":t.selected=!1;break;default:Dt(t,e,W,null,a,z)}for(T in a)if(z=a[T],O=n[T],a.hasOwnProperty(T)&&z!==O&&(z!=null||O!=null))switch(T){case"selected":t.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:Dt(t,e,T,z,a,O)}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 nt in n)z=n[nt],n.hasOwnProperty(nt)&&z!=null&&!a.hasOwnProperty(nt)&&Dt(t,e,nt,null,a,z);for(C in a)if(z=a[C],O=n[C],a.hasOwnProperty(C)&&z!==O&&(z!=null||O!=null))switch(C){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(s(137,e));break;default:Dt(t,e,C,z,a,O)}return;default:if(Yu(e)){for(var Ct in n)z=n[Ct],n.hasOwnProperty(Ct)&&z!==void 0&&!a.hasOwnProperty(Ct)&&Cr(t,e,Ct,void 0,a,z);for(_ in a)z=a[_],O=n[_],!a.hasOwnProperty(_)||z===O||z===void 0&&O===void 0||Cr(t,e,_,z,a,O);return}}for(var M in n)z=n[M],n.hasOwnProperty(M)&&z!=null&&!a.hasOwnProperty(M)&&Dt(t,e,M,null,a,z);for(L in a)z=a[L],O=n[L],!a.hasOwnProperty(L)||z===O||z==null&&O==null||Dt(t,e,L,z,a,O)}function Hm(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function z1(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var o=n[a],r=o.transferSize,h=o.initiatorType,g=o.duration;if(r&&g&&Hm(h)){for(h=0,g=o.responseEnd,a+=1;a<n.length;a++){var T=n[a],C=T.startTime;if(C>g)break;var _=T.transferSize,L=T.initiatorType;_&&Hm(L)&&(T=T.responseEnd,h+=_*(T<g?1:(g-C)/(T-C)))}if(--a,e+=8*(r+h)/(o.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 Rr=null,zr=null;function Us(t){return t.nodeType===9?t:t.ownerDocument}function Ym(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 qm(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 Or(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 Vr=null;function O1(){var t=window.event;return t&&t.type==="popstate"?t===Vr?!1:(Vr=t,!0):(Vr=null,!1)}var Gm=typeof setTimeout=="function"?setTimeout:void 0,V1=typeof clearTimeout=="function"?clearTimeout:void 0,Xm=typeof Promise=="function"?Promise:void 0,_1=typeof queueMicrotask=="function"?queueMicrotask:typeof Xm<"u"?function(t){return Xm.resolve(null).then(t).catch(U1)}:Gm;function U1(t){setTimeout(function(){throw t})}function Yn(t){return t==="head"}function Zm(t,e){var n=e,a=0;do{var o=n.nextSibling;if(t.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(a===0){t.removeChild(o),sa(e);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")el(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,el(n);for(var r=n.firstChild;r;){var h=r.nextSibling,g=r.nodeName;r[Sa]||g==="SCRIPT"||g==="STYLE"||g==="LINK"&&r.rel.toLowerCase()==="stylesheet"||n.removeChild(r),r=h}}else n==="body"&&el(t.ownerDocument.body);n=o}while(n);sa(e)}function Qm(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 _r(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":_r(n),wu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function B1(t,e,n,a){for(;t.nodeType===1;){var o=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[Sa])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!==o.rel||t.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||t.getAttribute("title")!==(o.title==null?null:o.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(r=t.getAttribute("src"),(r!==(o.src==null?null:o.src)||t.getAttribute("type")!==(o.type==null?null:o.type)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&r&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var r=o.name==null?null:""+o.name;if(o.type==="hidden"&&t.getAttribute("name")===r)return t}else return t;if(t=we(t.nextSibling),t===null)break}return null}function N1(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=we(t.nextSibling),t===null))return null;return t}function Km(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=we(t.nextSibling),t===null))return null;return t}function Ur(t){return t.data==="$?"||t.data==="$~"}function Br(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function w1(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 we(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 Nr=null;function Jm(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return we(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function km(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 Fm(t,e,n){switch(e=Us(n),t){case"html":if(t=e.documentElement,!t)throw Error(s(452));return t;case"head":if(t=e.head,!t)throw Error(s(453));return t;case"body":if(t=e.body,!t)throw Error(s(454));return t;default:throw Error(s(451))}}function el(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);wu(t)}var je=new Map,Wm=new Set;function Bs(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var vn=Z.d;Z.d={f:j1,r:L1,D:H1,C:Y1,L:q1,m:G1,X:Z1,S:X1,M:Q1};function j1(){var t=vn.f(),e=Ms();return t||e}function L1(t){var e=Mi(t);e!==null&&e.tag===5&&e.type==="form"?dd(e):vn.r(t)}var ia=typeof document>"u"?null:document;function Pm(t,e,n){var a=ia;if(a&&typeof e=="string"&&e){var o=ze(e);o='link[rel="'+t+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),Wm.has(o)||(Wm.add(o),t={rel:t,crossOrigin:n,href:e},a.querySelector(o)===null&&(e=a.createElement("link"),ie(e,"link",t),Ft(e),a.head.appendChild(e)))}}function H1(t){vn.D(t),Pm("dns-prefetch",t,null)}function Y1(t,e){vn.C(t,e),Pm("preconnect",t,e)}function q1(t,e,n){vn.L(t,e,n);var a=ia;if(a&&t&&e){var o='link[rel="preload"][as="'+ze(e)+'"]';e==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+ze(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+ze(n.imageSizes)+'"]')):o+='[href="'+ze(t)+'"]';var r=o;switch(e){case"style":r=aa(t);break;case"script":r=la(t)}je.has(r)||(t=S({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),je.set(r,t),a.querySelector(o)!==null||e==="style"&&a.querySelector(nl(r))||e==="script"&&a.querySelector(il(r))||(e=a.createElement("link"),ie(e,"link",t),Ft(e),a.head.appendChild(e)))}}function G1(t,e){vn.m(t,e);var n=ia;if(n&&t){var a=e&&typeof e.as=="string"?e.as:"script",o='link[rel="modulepreload"][as="'+ze(a)+'"][href="'+ze(t)+'"]',r=o;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=la(t)}if(!je.has(r)&&(t=S({rel:"modulepreload",href:t},e),je.set(r,t),n.querySelector(o)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(il(r)))return}a=n.createElement("link"),ie(a,"link",t),Ft(a),n.head.appendChild(a)}}}function X1(t,e,n){vn.S(t,e,n);var a=ia;if(a&&t){var o=Di(a).hoistableStyles,r=aa(t);e=e||"default";var h=o.get(r);if(!h){var g={loading:0,preload:null};if(h=a.querySelector(nl(r)))g.loading=5;else{t=S({rel:"stylesheet",href:t,"data-precedence":e},n),(n=je.get(r))&&wr(t,n);var T=h=a.createElement("link");Ft(T),ie(T,"link",t),T._p=new Promise(function(C,_){T.onload=C,T.onerror=_}),T.addEventListener("load",function(){g.loading|=1}),T.addEventListener("error",function(){g.loading|=2}),g.loading|=4,Ns(h,e,a)}h={type:"stylesheet",instance:h,count:1,state:g},o.set(r,h)}}}function Z1(t,e){vn.X(t,e);var n=ia;if(n&&t){var a=Di(n).hoistableScripts,o=la(t),r=a.get(o);r||(r=n.querySelector(il(o)),r||(t=S({src:t,async:!0},e),(e=je.get(o))&&jr(t,e),r=n.createElement("script"),Ft(r),ie(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(o,r))}}function Q1(t,e){vn.M(t,e);var n=ia;if(n&&t){var a=Di(n).hoistableScripts,o=la(t),r=a.get(o);r||(r=n.querySelector(il(o)),r||(t=S({src:t,async:!0,type:"module"},e),(e=je.get(o))&&jr(t,e),r=n.createElement("script"),Ft(r),ie(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(o,r))}}function $m(t,e,n,a){var o=(o=ct.current)?Bs(o):null;if(!o)throw Error(s(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=aa(n.href),n=Di(o).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=aa(n.href);var r=Di(o).hoistableStyles,h=r.get(t);if(h||(o=o.ownerDocument||o,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(t,h),(r=o.querySelector(nl(t)))&&!r._p&&(h.instance=r,h.state.loading=5),je.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},je.set(t,n),r||K1(o,t,n,h.state))),e&&a===null)throw Error(s(528,""));return h}if(e&&a!==null)throw Error(s(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=la(n),n=Di(o).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(s(444,t))}}function aa(t){return'href="'+ze(t)+'"'}function nl(t){return'link[rel="stylesheet"]['+t+"]"}function Im(t){return S({},t,{"data-precedence":t.precedence,precedence:null})}function K1(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}),ie(e,"link",n),Ft(e),t.head.appendChild(e))}function la(t){return'[src="'+ze(t)+'"]'}function il(t){return"script[async]"+t}function tp(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,Ft(a),a;var o=S({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Ft(a),ie(a,"style",o),Ns(a,n.precedence,t),e.instance=a;case"stylesheet":o=aa(n.href);var r=t.querySelector(nl(o));if(r)return e.state.loading|=4,e.instance=r,Ft(r),r;a=Im(n),(o=je.get(o))&&wr(a,o),r=(t.ownerDocument||t).createElement("link"),Ft(r);var h=r;return h._p=new Promise(function(g,T){h.onload=g,h.onerror=T}),ie(r,"link",a),e.state.loading|=4,Ns(r,n.precedence,t),e.instance=r;case"script":return r=la(n.src),(o=t.querySelector(il(r)))?(e.instance=o,Ft(o),o):(a=n,(o=je.get(r))&&(a=S({},n),jr(a,o)),t=t.ownerDocument||t,o=t.createElement("script"),Ft(o),ie(o,"link",a),t.head.appendChild(o),e.instance=o);case"void":return null;default:throw Error(s(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,Ns(a,n.precedence,t));return e.instance}function Ns(t,e,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=a.length?a[a.length-1]:null,r=o,h=0;h<a.length;h++){var g=a[h];if(g.dataset.precedence===e)r=g;else if(r!==o)break}r?r.parentNode.insertBefore(t,r.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function wr(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function jr(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var ws=null;function ep(t,e,n){if(ws===null){var a=new Map,o=ws=new Map;o.set(n,a)}else o=ws,a=o.get(n),a||(a=new Map,o.set(n,a));if(a.has(t))return a;for(a.set(t,null),n=n.getElementsByTagName(t),o=0;o<n.length;o++){var r=n[o];if(!(r[Sa]||r[It]||t==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var h=r.getAttribute(e)||"";h=t+h;var g=a.get(h);g?g.push(r):a.set(h,[r])}}return a}function np(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function J1(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function ip(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function k1(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 o=aa(a.href),r=e.querySelector(nl(o));if(r){e=r._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=js.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=r,Ft(r);return}r=e.ownerDocument||e,a=Im(a),(o=je.get(o))&&wr(a,o),r=r.createElement("link"),Ft(r);var h=r;h._p=new Promise(function(g,T){h.onload=g,h.onerror=T}),ie(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=js.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var Lr=0;function F1(t,e){return t.stylesheets&&t.count===0&&Hs(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var a=setTimeout(function(){if(t.stylesheets&&Hs(t,t.stylesheets),t.unsuspend){var r=t.unsuspend;t.unsuspend=null,r()}},6e4+e);0<t.imgBytes&&Lr===0&&(Lr=62500*z1());var o=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Hs(t,t.stylesheets),t.unsuspend)){var r=t.unsuspend;t.unsuspend=null,r()}},(t.imgBytes>Lr?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(o)}}:null}function js(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Hs(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Ls=null;function Hs(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ls=new Map,e.forEach(W1,t),Ls=null,js.call(t))}function W1(t,e){if(!(e.state.loading&4)){var n=Ls.get(t);if(n)var a=n.get(null);else{n=new Map,Ls.set(t,n);for(var o=t.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<o.length;r++){var h=o[r];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(n.set(h.dataset.precedence,h),a=h)}a&&n.set(null,a)}o=e.instance,h=o.getAttribute("data-precedence"),r=n.get(h)||a,r===a&&n.set(null,o),n.set(h,o),this.count++,a=js.bind(this),o.addEventListener("load",a),o.addEventListener("error",a),r?r.parentNode.insertBefore(o,r.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(o,t.firstChild)),e.state.loading|=4}}var al={$$typeof:H,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function P1(t,e,n,a,o,r,h,g,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=_u(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_u(0),this.hiddenUpdates=_u(null),this.identifierPrefix=a,this.onUncaughtError=o,this.onCaughtError=r,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function ap(t,e,n,a,o,r,h,g,T,C,_,L){return t=new P1(t,e,n,h,T,C,_,L,g),e=1,r===!0&&(e|=24),r=Te(3,null,null,e),t.current=r,r.stateNode=t,e=go(),e.refCount++,t.pooledCache=e,e.refCount++,r.memoizedState={element:a,isDehydrated:n,cache:e},To(r),t}function lp(t){return t?(t=wi,t):wi}function sp(t,e,n,a,o,r){o=lp(o),a.context===null?a.context=o:a.pendingContext=o,a=zn(e),a.payload={element:n},r=r===void 0?null:r,r!==null&&(a.callback=r),n=On(t,a,e),n!==null&&(ye(n,t,e),wa(n,t,e))}function up(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Hr(t,e){up(t,e),(t=t.alternate)&&up(t,e)}function op(t){if(t.tag===13||t.tag===31){var e=ii(t,67108864);e!==null&&ye(e,t,67108864),Hr(t,67108864)}}function rp(t){if(t.tag===13||t.tag===31){var e=De();e=Uu(e);var n=ii(t,e);n!==null&&ye(n,t,e),Hr(t,e)}}var Ys=!0;function $1(t,e,n,a){var o=V.T;V.T=null;var r=Z.p;try{Z.p=2,Yr(t,e,n,a)}finally{Z.p=r,V.T=o}}function I1(t,e,n,a){var o=V.T;V.T=null;var r=Z.p;try{Z.p=8,Yr(t,e,n,a)}finally{Z.p=r,V.T=o}}function Yr(t,e,n,a){if(Ys){var o=qr(a);if(o===null)Dr(t,e,a,qs,n),fp(t,a);else if(eS(o,t,e,n,a))a.stopPropagation();else if(fp(t,a),e&4&&-1<tS.indexOf(t)){for(;o!==null;){var r=Mi(o);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var h=$n(r.pendingLanes);if(h!==0){var g=r;for(g.pendingLanes|=2,g.entangledLanes|=2;h;){var T=1<<31-Se(h);g.entanglements[1]|=T,h&=~T}Fe(r),(Tt&6)===0&&(Es=ge()+500,$a(0))}}break;case 31:case 13:g=ii(r,2),g!==null&&ye(g,r,2),Ms(),Hr(r,2)}if(r=qr(a),r===null&&Dr(t,e,a,qs,n),r===o)break;o=r}o!==null&&a.stopPropagation()}else Dr(t,e,a,null,n)}}function qr(t){return t=Gu(t),Gr(t)}var qs=null;function Gr(t){if(qs=null,t=xi(t),t!==null){var e=d(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=f(e),t!==null)return t;t=null}else if(n===31){if(t=m(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 qs=t,null}function cp(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(H0()){case vf:return 2;case Sf:return 8;case Ol:case Y0:return 32;case bf:return 268435456;default:return 32}default:return 32}}var Xr=!1,qn=null,Gn=null,Xn=null,ll=new Map,sl=new Map,Zn=[],tS="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 fp(t,e){switch(t){case"focusin":case"focusout":qn=null;break;case"dragenter":case"dragleave":Gn=null;break;case"mouseover":case"mouseout":Xn=null;break;case"pointerover":case"pointerout":ll.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":sl.delete(e.pointerId)}}function ul(t,e,n,a,o,r){return t===null||t.nativeEvent!==r?(t={blockedOn:e,domEventName:n,eventSystemFlags:a,nativeEvent:r,targetContainers:[o]},e!==null&&(e=Mi(e),e!==null&&op(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,o!==null&&e.indexOf(o)===-1&&e.push(o),t)}function eS(t,e,n,a,o){switch(e){case"focusin":return qn=ul(qn,t,e,n,a,o),!0;case"dragenter":return Gn=ul(Gn,t,e,n,a,o),!0;case"mouseover":return Xn=ul(Xn,t,e,n,a,o),!0;case"pointerover":var r=o.pointerId;return ll.set(r,ul(ll.get(r)||null,t,e,n,a,o)),!0;case"gotpointercapture":return r=o.pointerId,sl.set(r,ul(sl.get(r)||null,t,e,n,a,o)),!0}return!1}function hp(t){var e=xi(t.target);if(e!==null){var n=d(e);if(n!==null){if(e=n.tag,e===13){if(e=f(n),e!==null){t.blockedOn=e,Df(t.priority,function(){rp(n)});return}}else if(e===31){if(e=m(n),e!==null){t.blockedOn=e,Df(t.priority,function(){rp(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 Gs(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=qr(t.nativeEvent);if(n===null){n=t.nativeEvent;var a=new n.constructor(n.type,n);qu=a,n.target.dispatchEvent(a),qu=null}else return e=Mi(n),e!==null&&op(e),t.blockedOn=n,!1;e.shift()}return!0}function dp(t,e,n){Gs(t)&&n.delete(e)}function nS(){Xr=!1,qn!==null&&Gs(qn)&&(qn=null),Gn!==null&&Gs(Gn)&&(Gn=null),Xn!==null&&Gs(Xn)&&(Xn=null),ll.forEach(dp),sl.forEach(dp)}function Xs(t,e){t.blockedOn===e&&(t.blockedOn=null,Xr||(Xr=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,nS)))}var Zs=null;function mp(t){Zs!==t&&(Zs=t,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Zs===t&&(Zs=null);for(var e=0;e<t.length;e+=3){var n=t[e],a=t[e+1],o=t[e+2];if(typeof a!="function"){if(Gr(a||n)===null)continue;break}var r=Mi(n);r!==null&&(t.splice(e,3),e-=3,qo(r,{pending:!0,data:o,method:n.method,action:a},a,o))}}))}function sa(t){function e(T){return Xs(T,t)}qn!==null&&Xs(qn,t),Gn!==null&&Xs(Gn,t),Xn!==null&&Xs(Xn,t),ll.forEach(e),sl.forEach(e);for(var n=0;n<Zn.length;n++){var a=Zn[n];a.blockedOn===t&&(a.blockedOn=null)}for(;0<Zn.length&&(n=Zn[0],n.blockedOn===null);)hp(n),n.blockedOn===null&&Zn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var o=n[a],r=n[a+1],h=o[ce]||null;if(typeof r=="function")h||mp(n);else if(h){var g=null;if(r&&r.hasAttribute("formAction")){if(o=r,h=r[ce]||null)g=h.formAction;else if(Gr(o)!==null)continue}else g=h.action;typeof g=="function"?n[a+1]=g:(n.splice(a,3),a-=3),mp(n)}}}function pp(){function t(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(h){return o=h})},focusReset:"manual",scroll:"manual"})}function e(){o!==null&&(o(),o=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,o=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),o!==null&&(o(),o=null)}}}function Zr(t){this._internalRoot=t}Qs.prototype.render=Zr.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(s(409));var n=e.current,a=De();sp(n,a,t,e,null,null)},Qs.prototype.unmount=Zr.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;sp(t.current,2,null,t,null,null),Ms(),e[Ei]=null}};function Qs(t){this._internalRoot=t}Qs.prototype.unstable_scheduleHydration=function(t){if(t){var e=Mf();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Zn.length&&e!==0&&e<Zn[n].priority;n++);Zn.splice(n,0,t),n===0&&hp(t)}};var yp=l.version;if(yp!=="19.2.7")throw Error(s(527,yp,"19.2.7"));Z.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(s(188)):(t=Object.keys(t).join(","),Error(s(268,t)));return t=p(e),t=t!==null?v(t):null,t=t===null?null:t.stateNode,t};var iS={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:V,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ks=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ks.isDisabled&&Ks.supportsFiber)try{ya=Ks.inject(iS),ve=Ks}catch{}}return rl.createRoot=function(t,e){if(!c(t))throw Error(s(299));var n=!1,a="",o=Ed,r=xd,h=Md;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(o=e.onUncaughtError),e.onCaughtError!==void 0&&(r=e.onCaughtError),e.onRecoverableError!==void 0&&(h=e.onRecoverableError)),e=ap(t,1,!1,null,null,n,a,null,o,r,h,pp),t[Ei]=e.current,Mr(t),new Zr(e)},rl.hydrateRoot=function(t,e,n){if(!c(t))throw Error(s(299));var a=!1,o="",r=Ed,h=xd,g=Md,T=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(r=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(g=n.onRecoverableError),n.formState!==void 0&&(T=n.formState)),e=ap(t,1,!0,e,n??null,a,o,T,r,h,g,pp),e.context=lp(null),n=e.current,a=De(),a=Uu(a),o=zn(a),o.callback=null,On(n,o,a),n=a,e.current.lanes=n,va(e,n),Fe(e),t[Ei]=e.current,Mr(t),new Qs(e)},rl.version="19.2.7",rl}var Dp;function dS(){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=hS(),Jr.exports}var mS=dS();const qc=q.createContext({});function Fn(i){const l=q.useRef(null);return l.current===null&&(l.current=i()),l.current}const pS=typeof window<"u",Gc=pS?q.useLayoutEffect:q.useEffect,Su=q.createContext(null);function Xc(i,l){i.indexOf(l)===-1&&i.push(l)}function ru(i,l){const u=i.indexOf(l);u>-1&&i.splice(u,1)}function yS([...i],l,u){const s=l<0?i.length+l:l;if(s>=0&&s<i.length){const c=u<0?i.length+u:u,[d]=i.splice(l,1);i.splice(c,0,d)}return i}const Ie=(i,l,u)=>u>l?l:u<i?i:u;let Zc=()=>{};const kn={},Jy=i=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(i),ky=i=>typeof i=="object"&&i!==null,Fy=i=>/^0[^.\s]+$/u.test(i);function Wy(i){let l;return()=>(l===void 0&&(l=i()),l)}const He=i=>i,Ml=(...i)=>i.reduce((l,u)=>s=>u(l(s))),Tl=(i,l,u)=>{const s=l-i;return s?(u-i)/s:1};class Qc{constructor(){this.subscriptions=[]}add(l){return Xc(this.subscriptions,l),()=>ru(this.subscriptions,l)}notify(l,u,s){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](l,u,s);else for(let d=0;d<c;d++){const f=this.subscriptions[d];f&&f(l,u,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ce=i=>i*1e3,Le=i=>i/1e3,Py=(i,l)=>l?i*(1e3/l):0,$y=(i,l,u)=>(((1-3*u+3*l)*i+(3*u-6*l))*i+3*l)*i,gS=1e-7,vS=12;function SS(i,l,u,s,c){let d,f,m=0;do f=l+(u-l)/2,d=$y(f,s,c)-i,d>0?u=f:l=f;while(Math.abs(d)>gS&&++m<vS);return f}function Dl(i,l,u,s){if(i===l&&u===s)return He;const c=d=>SS(d,0,1,i,u);return d=>d===0||d===1?d:$y(c(d),l,s)}const Iy=i=>l=>l<=.5?i(2*l)/2:(2-i(2*(1-l)))/2,tg=i=>l=>1-i(1-l),eg=Dl(.33,1.53,.69,.99),Kc=tg(eg),ng=Iy(Kc),ig=i=>i>=1?1:(i*=2)<1?.5*Kc(i):.5*(2-Math.pow(2,-10*(i-1))),Jc=i=>1-Math.sin(Math.acos(i)),ag=tg(Jc),lg=Iy(Jc),bS=Dl(.42,0,1,1),TS=Dl(0,0,.58,1),sg=Dl(.42,0,.58,1),AS=i=>Array.isArray(i)&&typeof i[0]!="number",ug=i=>Array.isArray(i)&&typeof i[0]=="number",ES={linear:He,easeIn:bS,easeInOut:sg,easeOut:TS,circIn:Jc,circInOut:lg,circOut:ag,backIn:Kc,backInOut:ng,backOut:eg,anticipate:ig},xS=i=>typeof i=="string",Cp=i=>{if(ug(i)){Zc(i.length===4);const[l,u,s,c]=i;return Dl(l,u,s,c)}else if(xS(i))return ES[i];return i},Js=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function MS(i,l){let u=new Set,s=new Set,c=!1,d=!1;const f=new WeakSet;let m={delta:0,timestamp:0,isProcessing:!1};function y(v){f.has(v)&&(p.schedule(v),i()),v(m)}const p={schedule:(v,S=!1,b=!1)=>{const R=b&&c?u:s;return S&&f.add(v),R.add(v),v},cancel:v=>{s.delete(v),f.delete(v)},process:v=>{if(m=v,c){d=!0;return}c=!0;const S=u;u=s,s=S,u.forEach(y),u.clear(),c=!1,d&&(d=!1,p.process(v))}};return p}const DS=40;function og(i,l){let u=!1,s=!0;const c={delta:0,timestamp:0,isProcessing:!1},d=()=>u=!0,f=Js.reduce((H,G)=>(H[G]=MS(d),H),{}),{setup:m,read:y,resolveKeyframes:p,preUpdate:v,update:S,preRender:b,render:x,postRender:R}=f,B=()=>{const H=kn.useManualTiming,G=H?c.timestamp:performance.now();u=!1,H||(c.delta=s?1e3/60:Math.max(Math.min(G-c.timestamp,DS),1)),c.timestamp=G,c.isProcessing=!0,m.process(c),y.process(c),p.process(c),v.process(c),S.process(c),b.process(c),x.process(c),R.process(c),c.isProcessing=!1,u&&l&&(s=!1,i(B))},j=()=>{u=!0,s=!0,c.isProcessing||i(B)};return{schedule:Js.reduce((H,G)=>{const k=f[G];return H[G]=(at,X=!1,K=!1)=>(u||j(),k.schedule(at,X,K)),H},{}),cancel:H=>{for(let G=0;G<Js.length;G++)f[Js[G]].cancel(H)},state:c,steps:f}}const{schedule:zt,cancel:bn,state:ae,steps:Pr}=og(typeof requestAnimationFrame<"u"?requestAnimationFrame:He,!0);let tu;function CS(){tu=void 0}const oe={now:()=>(tu===void 0&&oe.set(ae.isProcessing||kn.useManualTiming?ae.timestamp:performance.now()),tu),set:i=>{tu=i,queueMicrotask(CS)}},rg=i=>l=>typeof l=="string"&&l.startsWith(i),cg=rg("--"),RS=rg("var(--"),kc=i=>RS(i)?zS.test(i.split("/*")[0].trim()):!1,zS=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Rp(i){return typeof i!="string"?!1:i.split("/*")[0].includes("var(--")}const ha={test:i=>typeof i=="number",parse:parseFloat,transform:i=>i},Al={...ha,transform:i=>Ie(0,1,i)},ks={...ha,default:1},ml=i=>Math.round(i*1e5)/1e5,Fc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function OS(i){return i==null}const VS=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Wc=(i,l)=>u=>!!(typeof u=="string"&&VS.test(u)&&u.startsWith(i)||l&&!OS(u)&&Object.prototype.hasOwnProperty.call(u,l)),fg=(i,l,u)=>s=>{if(typeof s!="string")return s;const[c,d,f,m]=s.match(Fc);return{[i]:parseFloat(c),[l]:parseFloat(d),[u]:parseFloat(f),alpha:m!==void 0?parseFloat(m):1}},_S=i=>Ie(0,255,i),$r={...ha,transform:i=>Math.round(_S(i))},vi={test:Wc("rgb","red"),parse:fg("red","green","blue"),transform:({red:i,green:l,blue:u,alpha:s=1})=>"rgba("+$r.transform(i)+", "+$r.transform(l)+", "+$r.transform(u)+", "+ml(Al.transform(s))+")"};function US(i){let l="",u="",s="",c="";return i.length>5?(l=i.substring(1,3),u=i.substring(3,5),s=i.substring(5,7),c=i.substring(7,9)):(l=i.substring(1,2),u=i.substring(2,3),s=i.substring(3,4),c=i.substring(4,5),l+=l,u+=u,s+=s,c+=c),{red:parseInt(l,16),green:parseInt(u,16),blue:parseInt(s,16),alpha:c?parseInt(c,16)/255:1}}const dc={test:Wc("#"),parse:US,transform:vi.transform},Cl=i=>({test:l=>typeof l=="string"&&l.endsWith(i)&&l.split(" ").length===1,parse:parseFloat,transform:l=>`${l}${i}`}),Sn=Cl("deg"),$e=Cl("%"),P=Cl("px"),BS=Cl("vh"),NS=Cl("vw"),zp={...$e,parse:i=>$e.parse(i)/100,transform:i=>$e.transform(i*100)},oa={test:Wc("hsl","hue"),parse:fg("hue","saturation","lightness"),transform:({hue:i,saturation:l,lightness:u,alpha:s=1})=>"hsla("+Math.round(i)+", "+$e.transform(ml(l))+", "+$e.transform(ml(u))+", "+ml(Al.transform(s))+")"},Kt={test:i=>vi.test(i)||dc.test(i)||oa.test(i),parse:i=>vi.test(i)?vi.parse(i):oa.test(i)?oa.parse(i):dc.parse(i),transform:i=>typeof i=="string"?i:i.hasOwnProperty("red")?vi.transform(i):oa.transform(i),getAnimatableNone:i=>{const l=Kt.parse(i);return l.alpha=0,Kt.transform(l)}},wS=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function jS(i){var l,u;return isNaN(i)&&typeof i=="string"&&(((l=i.match(Fc))==null?void 0:l.length)||0)+(((u=i.match(wS))==null?void 0:u.length)||0)>0}const hg="number",dg="color",LS="var",HS="var(",Op="${}",YS=/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 fa(i){const l=i.toString(),u=[],s={color:[],number:[],var:[]},c=[];let d=0;const m=l.replace(YS,y=>(Kt.test(y)?(s.color.push(d),c.push(dg),u.push(Kt.parse(y))):y.startsWith(HS)?(s.var.push(d),c.push(LS),u.push(y)):(s.number.push(d),c.push(hg),u.push(parseFloat(y))),++d,Op)).split(Op);return{values:u,split:m,indexes:s,types:c}}function qS(i){return fa(i).values}function mg({split:i,types:l}){const u=i.length;return s=>{let c="";for(let d=0;d<u;d++)if(c+=i[d],s[d]!==void 0){const f=l[d];f===hg?c+=ml(s[d]):f===dg?c+=Kt.transform(s[d]):c+=s[d]}return c}}function GS(i){return mg(fa(i))}const XS=i=>typeof i=="number"?0:Kt.test(i)?Kt.getAnimatableNone(i):i,ZS=(i,l)=>typeof i=="number"?l!=null&&l.trim().endsWith("/")?i:0:XS(i);function QS(i){const l=fa(i);return mg(l)(l.values.map((s,c)=>ZS(s,l.split[c])))}const Qe={test:jS,parse:qS,createTransformer:GS,getAnimatableNone:QS};function Ir(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 KS({hue:i,saturation:l,lightness:u,alpha:s}){i/=360,l/=100,u/=100;let c=0,d=0,f=0;if(!l)c=d=f=u;else{const m=u<.5?u*(1+l):u+l-u*l,y=2*u-m;c=Ir(y,m,i+1/3),d=Ir(y,m,i),f=Ir(y,m,i-1/3)}return{red:Math.round(c*255),green:Math.round(d*255),blue:Math.round(f*255),alpha:s}}function cu(i,l){return u=>u>0?l:i}const Rt=(i,l,u)=>i+(l-i)*u,tc=(i,l,u)=>{const s=i*i,c=u*(l*l-s)+s;return c<0?0:Math.sqrt(c)},JS=[dc,vi,oa],kS=i=>JS.find(l=>l.test(i));function Vp(i){const l=kS(i);if(!l)return!1;let u=l.parse(i);return l===oa&&(u=KS(u)),u}const _p=(i,l)=>{const u=Vp(i),s=Vp(l);if(!u||!s)return cu(i,l);const c={...u};return d=>(c.red=tc(u.red,s.red,d),c.green=tc(u.green,s.green,d),c.blue=tc(u.blue,s.blue,d),c.alpha=Rt(u.alpha,s.alpha,d),vi.transform(c))},mc=new Set(["none","hidden"]);function FS(i,l){return mc.has(i)?u=>u<=0?i:l:u=>u>=1?l:i}function WS(i,l){return u=>Rt(i,l,u)}function Pc(i){return typeof i=="number"?WS:typeof i=="string"?kc(i)?cu:Kt.test(i)?_p:IS:Array.isArray(i)?pg:typeof i=="object"?Kt.test(i)?_p:PS:cu}function pg(i,l){const u=[...i],s=u.length,c=i.map((d,f)=>Pc(d)(d,l[f]));return d=>{for(let f=0;f<s;f++)u[f]=c[f](d);return u}}function PS(i,l){const u={...i,...l},s={};for(const c in u)i[c]!==void 0&&l[c]!==void 0&&(s[c]=Pc(i[c])(i[c],l[c]));return c=>{for(const d in s)u[d]=s[d](c);return u}}function $S(i,l){const u=[],s={color:0,var:0,number:0};for(let c=0;c<l.values.length;c++){const d=l.types[c],f=i.indexes[d][s[d]],m=i.values[f]??0;u[c]=m,s[d]++}return u}const IS=(i,l)=>{const u=Qe.createTransformer(l),s=fa(i),c=fa(l);return s.indexes.var.length===c.indexes.var.length&&s.indexes.color.length===c.indexes.color.length&&s.indexes.number.length>=c.indexes.number.length?mc.has(i)&&!c.values.length||mc.has(l)&&!s.values.length?FS(i,l):Ml(pg($S(s,c),c.values),u):cu(i,l)};function yg(i,l,u){return typeof i=="number"&&typeof l=="number"&&typeof u=="number"?Rt(i,l,u):Pc(i)(i,l)}const tb=i=>{const l=({timestamp:u})=>i(u);return{start:(u=!0)=>zt.update(l,u),stop:()=>bn(l),now:()=>ae.isProcessing?ae.timestamp:oe.now()}},gg=(i,l,u=10)=>{let s="";const c=Math.max(Math.round(l/u),2);for(let d=0;d<c;d++)s+=Math.round(i(d/(c-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},fu=2e4;function $c(i){let l=0;const u=50;let s=i.next(l);for(;!s.done&&l<fu;)l+=u,s=i.next(l);return l>=fu?1/0:l}function eb(i,l=100,u){const s=u({...i,keyframes:[0,l]}),c=Math.min($c(s),fu);return{type:"keyframes",ease:d=>s.next(c*d).value/l,duration:Le(c)}}const wt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function pc(i,l){return i*Math.sqrt(1-l*l)}const nb=12;function ib(i,l,u){let s=u;for(let c=1;c<nb;c++)s=s-i(s)/l(s);return s}const ec=.001;function ab({duration:i=wt.duration,bounce:l=wt.bounce,velocity:u=wt.velocity,mass:s=wt.mass}){let c,d,f=1-l;f=Ie(wt.minDamping,wt.maxDamping,f),i=Ie(wt.minDuration,wt.maxDuration,Le(i)),f<1?(c=p=>{const v=p*f,S=v*i,b=v-u,x=pc(p,f),R=Math.exp(-S);return ec-b/x*R},d=p=>{const S=p*f*i,b=S*u+u,x=Math.pow(f,2)*Math.pow(p,2)*i,R=Math.exp(-S),B=pc(Math.pow(p,2),f);return(-c(p)+ec>0?-1:1)*((b-x)*R)/B}):(c=p=>{const v=Math.exp(-p*i),S=(p-u)*i+1;return-ec+v*S},d=p=>{const v=Math.exp(-p*i),S=(u-p)*(i*i);return v*S});const m=5/i,y=ib(c,d,m);if(i=Ce(i),isNaN(y))return{stiffness:wt.stiffness,damping:wt.damping,duration:i};{const p=Math.pow(y,2)*s;return{stiffness:p,damping:f*2*Math.sqrt(s*p),duration:i}}}const lb=["duration","bounce"],sb=["stiffness","damping","mass"];function Up(i,l){return l.some(u=>i[u]!==void 0)}function ub(i){let l={velocity:wt.velocity,stiffness:wt.stiffness,damping:wt.damping,mass:wt.mass,isResolvedFromDuration:!1,...i};if(!Up(i,sb)&&Up(i,lb))if(l.velocity=0,i.visualDuration){const u=i.visualDuration,s=2*Math.PI/(u*1.2),c=s*s,d=2*Ie(.05,1,1-(i.bounce||0))*Math.sqrt(c);l={...l,mass:wt.mass,stiffness:c,damping:d}}else{const u=ab({...i,velocity:0});l={...l,...u,mass:wt.mass},l.isResolvedFromDuration=!0}return l}function hu(i=wt.visualDuration,l=wt.bounce){const u=typeof i!="object"?{visualDuration:i,keyframes:[0,1],bounce:l}:i;let{restSpeed:s,restDelta:c}=u;const d=u.keyframes[0],f=u.keyframes[u.keyframes.length-1],m={done:!1,value:d},{stiffness:y,damping:p,mass:v,duration:S,velocity:b,isResolvedFromDuration:x}=ub({...u,velocity:-Le(u.velocity||0)}),R=b||0,B=p/(2*Math.sqrt(y*v)),j=f-d,w=Le(Math.sqrt(y/v)),U=Math.abs(j)<5;s||(s=U?wt.restSpeed.granular:wt.restSpeed.default),c||(c=U?wt.restDelta.granular:wt.restDelta.default);let H,G,k,at,X,K;if(B<1)k=pc(w,B),at=(R+B*w*j)/k,H=tt=>{const pt=Math.exp(-B*w*tt);return f-pt*(at*Math.sin(k*tt)+j*Math.cos(k*tt))},X=B*w*at+j*k,K=B*w*j-at*k,G=tt=>Math.exp(-B*w*tt)*(X*Math.sin(k*tt)+K*Math.cos(k*tt));else if(B===1){H=pt=>f-Math.exp(-w*pt)*(j+(R+w*j)*pt);const tt=R+w*j;G=pt=>Math.exp(-w*pt)*(w*tt*pt-R)}else{const tt=w*Math.sqrt(B*B-1);H=qt=>{const jt=Math.exp(-B*w*qt),V=Math.min(tt*qt,300);return f-jt*((R+B*w*j)*Math.sinh(V)+tt*j*Math.cosh(V))/tt};const pt=(R+B*w*j)/tt,vt=B*w*pt-j*tt,$t=B*w*j-pt*tt;G=qt=>{const jt=Math.exp(-B*w*qt),V=Math.min(tt*qt,300);return jt*(vt*Math.sinh(V)+$t*Math.cosh(V))}}const it={calculatedDuration:x&&S||null,velocity:tt=>Ce(G(tt)),next:tt=>{if(!x&&B<1){const vt=Math.exp(-B*w*tt),$t=Math.sin(k*tt),qt=Math.cos(k*tt),jt=f-vt*(at*$t+j*qt),V=Ce(vt*(X*$t+K*qt));return m.done=Math.abs(V)<=s&&Math.abs(f-jt)<=c,m.value=m.done?f:jt,m}const pt=H(tt);if(x)m.done=tt>=S;else{const vt=Ce(G(tt));m.done=Math.abs(vt)<=s&&Math.abs(f-pt)<=c}return m.value=m.done?f:pt,m},toString:()=>{const tt=Math.min($c(it),fu),pt=gg(vt=>it.next(tt*vt).value,tt,30);return tt+"ms "+pt},toTransition:()=>{}};return it}hu.applyToOptions=i=>{const l=eb(i,100,hu);return i.ease=l.ease,i.duration=Ce(l.duration),i.type="keyframes",i};const ob=5;function vg(i,l,u){const s=Math.max(l-ob,0);return Py(u-i(s),l-s)}function yc({keyframes:i,velocity:l=0,power:u=.8,timeConstant:s=325,bounceDamping:c=10,bounceStiffness:d=500,modifyTarget:f,min:m,max:y,restDelta:p=.5,restSpeed:v}){const S=i[0],b={done:!1,value:S},x=K=>m!==void 0&&K<m||y!==void 0&&K>y,R=K=>m===void 0?y:y===void 0||Math.abs(m-K)<Math.abs(y-K)?m:y;let B=u*l;const j=S+B,w=f===void 0?j:f(j);w!==j&&(B=w-S);const U=K=>-B*Math.exp(-K/s),H=K=>w+U(K),G=K=>{const it=U(K),tt=H(K);b.done=Math.abs(it)<=p,b.value=b.done?w:tt};let k,at;const X=K=>{x(b.value)&&(k=K,at=hu({keyframes:[b.value,R(b.value)],velocity:vg(H,K,b.value),damping:c,stiffness:d,restDelta:p,restSpeed:v}))};return X(0),{calculatedDuration:null,next:K=>{let it=!1;return!at&&k===void 0&&(it=!0,G(K),X(K)),k!==void 0&&K>=k?at.next(K-k):(!it&&G(K),b)}}}function rb(i,l,u){const s=[],c=u||kn.mix||yg,d=i.length-1;for(let f=0;f<d;f++){let m=c(i[f],i[f+1]);if(l){const y=Array.isArray(l)?l[f]||He:l;m=Ml(y,m)}s.push(m)}return s}function Sg(i,l,{clamp:u=!0,ease:s,mixer:c}={}){const d=i.length;if(Zc(d===l.length),d===1)return()=>l[0];if(d===2&&l[0]===l[1])return()=>l[1];const f=i[0]===i[1];i[0]>i[d-1]&&(i=[...i].reverse(),l=[...l].reverse());const m=rb(l,s,c),y=m.length,p=v=>{if(f&&v<i[0])return l[0];let S=0;if(y>1)for(;S<i.length-2&&!(v<i[S+1]);S++);const b=Tl(i[S],i[S+1],v);return m[S](b)};return u?v=>p(Ie(i[0],i[d-1],v)):p}function cb(i,l){const u=i[i.length-1];for(let s=1;s<=l;s++){const c=Tl(0,l,s);i.push(Rt(u,1,c))}}function fb(i){const l=[0];return cb(l,i.length-1),l}function hb(i,l){return i.map(u=>u*l)}function db(i,l){return i.map(()=>l||sg).splice(0,i.length-1)}function pl({duration:i=300,keyframes:l,times:u,ease:s="easeInOut"}){const c=AS(s)?s.map(Cp):Cp(s),d={done:!1,value:l[0]},f=hb(u&&u.length===l.length?u:fb(l),i),m=Sg(f,l,{ease:Array.isArray(c)?c:db(l,c)});return{calculatedDuration:i,next:y=>(d.value=m(y),d.done=y>=i,d)}}const mb=i=>i!==null;function bu(i,{repeat:l,repeatType:u="loop"},s,c=1){const d=i.filter(mb),m=c<0||l&&u!=="loop"&&l%2===1?0:d.length-1;return!m||s===void 0?d[m]:s}const pb={decay:yc,inertia:yc,tween:pl,keyframes:pl,spring:hu};function bg(i){typeof i.type=="string"&&(i.type=pb[i.type])}class Ic{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(l=>{this.resolve=l})}notifyFinished(){this.resolve()}then(l,u){return this.finished.then(l,u)}}const yb=i=>i/100;class du extends Ic{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=()=>{var s,c;const{motionValue:u}=this.options;u&&u.updatedAt!==oe.now()&&this.tick(oe.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(c=(s=this.options).onStop)==null||c.call(s))},this.options=l,this.initAnimation(),this.play(),l.autoplay===!1&&this.pause()}initAnimation(){const{options:l}=this;bg(l);const{type:u=pl,repeat:s=0,repeatDelay:c=0,repeatType:d,velocity:f=0}=l;let{keyframes:m}=l;const y=u||pl;y!==pl&&typeof m[0]!="number"&&(this.mixKeyframes=Ml(yb,yg(m[0],m[1])),m=[0,100]);const p=y({...l,keyframes:m});d==="mirror"&&(this.mirroredGenerator=y({...l,keyframes:[...m].reverse(),velocity:-f})),p.calculatedDuration===null&&(p.calculatedDuration=$c(p));const{calculatedDuration:v}=p;this.calculatedDuration=v,this.resolvedDuration=v+c,this.totalDuration=this.resolvedDuration*(s+1)-c,this.generator=p}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:s,totalDuration:c,mixKeyframes:d,mirroredGenerator:f,resolvedDuration:m,calculatedDuration:y}=this;if(this.startTime===null)return s.next(0);const{delay:p=0,keyframes:v,repeat:S,repeatType:b,repeatDelay:x,type:R,onUpdate:B,finalKeyframe:j}=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 w=this.currentTime-p*(this.playbackSpeed>=0?1:-1),U=this.playbackSpeed>=0?w<0:w>c;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let H=this.currentTime,G=s;if(S){const K=Math.min(this.currentTime,c)/m;let it=Math.floor(K),tt=K%1;!tt&&K>=1&&(tt=1),tt===1&&it--,it=Math.min(it,S+1),!!(it%2)&&(b==="reverse"?(tt=1-tt,x&&(tt-=x/m)):b==="mirror"&&(G=f)),H=Ie(0,1,tt)*m}let k;U?(this.delayState.value=v[0],k=this.delayState):k=G.next(H),d&&!U&&(k.value=d(k.value));let{done:at}=k;!U&&y!==null&&(at=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const X=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&at);return X&&R!==yc&&(k.value=bu(v,this.options,j,this.speed)),B&&B(k.value),X&&this.finish(),k}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=Ce(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 vg(s=>this.generator.next(s).value,l,u)}get speed(){return this.playbackSpeed}set speed(l){const u=this.playbackSpeed!==l;u&&this.driver&&this.updateTime(oe.now()),this.playbackSpeed=l,u&&this.driver&&(this.time=Le(this.currentTime))}play(){var c,d;if(this.isStopped)return;const{driver:l=tb,startTime:u}=this.options;this.driver||(this.driver=l(f=>this.tick(f))),(d=(c=this.options).onPlay)==null||d.call(c);const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=u??s),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(oe.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var l,u;this.notifyFinished(),this.teardown(),this.state="finished",(u=(l=this.options).onComplete)==null||u.call(l)}cancel(){var l,u;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(u=(l=this.options).onCancel)==null||u.call(l)}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){var u;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(u=this.driver)==null||u.stop(),l.observe(this)}}function gb(i){for(let l=1;l<i.length;l++)i[l]??(i[l]=i[l-1])}const Si=i=>i*180/Math.PI,gc=i=>{const l=Si(Math.atan2(i[1],i[0]));return vc(l)},vb={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:i=>(Math.abs(i[0])+Math.abs(i[3]))/2,rotate:gc,rotateZ:gc,skewX:i=>Si(Math.atan(i[1])),skewY:i=>Si(Math.atan(i[2])),skew:i=>(Math.abs(i[1])+Math.abs(i[2]))/2},vc=i=>(i=i%360,i<0&&(i+=360),i),Bp=gc,Np=i=>Math.sqrt(i[0]*i[0]+i[1]*i[1]),wp=i=>Math.sqrt(i[4]*i[4]+i[5]*i[5]),Sb={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Np,scaleY:wp,scale:i=>(Np(i)+wp(i))/2,rotateX:i=>vc(Si(Math.atan2(i[6],i[5]))),rotateY:i=>vc(Si(Math.atan2(-i[2],i[0]))),rotateZ:Bp,rotate:Bp,skewX:i=>Si(Math.atan(i[4])),skewY:i=>Si(Math.atan(i[1])),skew:i=>(Math.abs(i[1])+Math.abs(i[4]))/2};function Sc(i){return i.includes("scale")?1:0}function bc(i,l){if(!i||i==="none")return Sc(l);const u=i.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,c;if(u)s=Sb,c=u;else{const m=i.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=vb,c=m}if(!c)return Sc(l);const d=s[l],f=c[1].split(",").map(Tb);return typeof d=="function"?d(f):f[d]}const bb=(i,l)=>{const{transform:u="none"}=getComputedStyle(i);return bc(u,l)};function Tb(i){return parseFloat(i.trim())}const da=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ma=new Set([...da,"pathRotation"]),jp=i=>i===ha||i===P,Ab=new Set(["x","y","z"]),Eb=da.filter(i=>!Ab.has(i));function xb(i){const l=[];return Eb.forEach(u=>{const s=i.getValue(u);s!==void 0&&(l.push([u,s.get()]),s.set(u.startsWith("scale")?1:0))}),l}const Jn={width:({x:i},{paddingLeft:l="0",paddingRight:u="0",boxSizing:s})=>{const c=i.max-i.min;return s==="border-box"?c:c-parseFloat(l)-parseFloat(u)},height:({y:i},{paddingTop:l="0",paddingBottom:u="0",boxSizing:s})=>{const c=i.max-i.min;return s==="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})=>bc(l,"x"),y:(i,{transform:l})=>bc(l,"y")};Jn.translateX=Jn.x;Jn.translateY=Jn.y;const bi=new Set;let Tc=!1,Ac=!1,Ec=!1;function Tg(){if(Ac){const i=Array.from(bi).filter(s=>s.needsMeasurement),l=new Set(i.map(s=>s.element)),u=new Map;l.forEach(s=>{const c=xb(s);c.length&&(u.set(s,c),s.render())}),i.forEach(s=>s.measureInitialState()),l.forEach(s=>{s.render();const c=u.get(s);c&&c.forEach(([d,f])=>{var m;(m=s.getValue(d))==null||m.set(f)})}),i.forEach(s=>s.measureEndState()),i.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Ac=!1,Tc=!1,bi.forEach(i=>i.complete(Ec)),bi.clear()}function Ag(){bi.forEach(i=>{i.readKeyframes(),i.needsMeasurement&&(Ac=!0)})}function Mb(){Ec=!0,Ag(),Tg(),Ec=!1}class tf{constructor(l,u,s,c,d,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...l],this.onComplete=u,this.name=s,this.motionValue=c,this.element=d,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?(bi.add(this),Tc||(Tc=!0,zt.read(Ag),zt.resolveKeyframes(Tg))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:l,name:u,element:s,motionValue:c}=this;if(l[0]===null){const d=c==null?void 0:c.get(),f=l[l.length-1];if(d!==void 0)l[0]=d;else if(s&&u){const m=s.readValue(u,f);m!=null&&(l[0]=m)}l[0]===void 0&&(l[0]=f),c&&d===void 0&&c.set(l[0])}gb(l)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(l=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,l),bi.delete(this)}cancel(){this.state==="scheduled"&&(bi.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Db=i=>i.startsWith("--");function Eg(i,l,u){Db(l)?i.style.setProperty(l,u):i.style[l]=u}const Cb={};function xg(i,l){const u=Wy(i);return()=>Cb[l]??u()}const Rb=xg(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Mg=xg(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),hl=([i,l,u,s])=>`cubic-bezier(${i}, ${l}, ${u}, ${s})`,Lp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:hl([0,.65,.55,1]),circOut:hl([.55,0,1,.45]),backIn:hl([.31,.01,.66,-.59]),backOut:hl([.33,1.53,.69,.99])};function Dg(i,l){if(i)return typeof i=="function"?Mg()?gg(i,l):"ease-out":ug(i)?hl(i):Array.isArray(i)?i.map(u=>Dg(u,l)||Lp.easeOut):Lp[i]}function zb(i,l,u,{delay:s=0,duration:c=300,repeat:d=0,repeatType:f="loop",ease:m="easeOut",times:y}={},p=void 0){const v={[l]:u};y&&(v.offset=y);const S=Dg(m,c);Array.isArray(S)&&(v.easing=S);const b={delay:s,duration:c,easing:Array.isArray(S)?"linear":S,fill:"both",iterations:d+1,direction:f==="reverse"?"alternate":"normal"};return p&&(b.pseudoElement=p),i.animate(v,b)}function Cg(i){return typeof i=="function"&&"applyToOptions"in i}function Ob({type:i,...l}){return Cg(i)&&Mg()?i.applyToOptions(l):(l.duration??(l.duration=300),l.ease??(l.ease="easeOut"),l)}class Rg extends Ic{constructor(l){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!l)return;const{element:u,name:s,keyframes:c,pseudoElement:d,allowFlatten:f=!1,finalKeyframe:m,onComplete:y}=l;this.isPseudoElement=!!d,this.allowFlatten=f,this.options=l,Zc(typeof l.type!="string");const p=Ob(l);this.animation=zb(u,s,c,p,d),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!d){const v=bu(c,this.options,m,this.speed);this.updateMotionValue&&this.updateMotionValue(v),Eg(u,s,v),this.animation.cancel()}y==null||y(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var l,u;(u=(l=this.animation).finish)==null||u.call(l)}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(){var u,s,c;const l=(u=this.options)==null?void 0:u.element;!this.isPseudoElement&&(l!=null&&l.isConnected)&&((c=(s=this.animation).commitStyles)==null||c.call(s))}get duration(){var u,s;const l=((s=(u=this.animation.effect)==null?void 0:u.getComputedTiming)==null?void 0:s.call(u).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=Ce(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:s,observe:c}){var d;return this.allowFlatten&&((d=this.animation.effect)==null||d.updateTiming({easing:"linear"})),this.animation.onfinish=null,l&&Rb()?(this.animation.timeline=l,u&&(this.animation.rangeStart=u),s&&(this.animation.rangeEnd=s),He):c(this)}}const zg={anticipate:ig,backInOut:ng,circInOut:lg};function Vb(i){return i in zg}function _b(i){typeof i.ease=="string"&&Vb(i.ease)&&(i.ease=zg[i.ease])}const nc=10;class Ub extends Rg{constructor(l){_b(l),bg(l),super(l),l.startTime!==void 0&&l.autoplay!==!1&&(this.startTime=l.startTime),this.options=l}updateMotionValue(l){const{motionValue:u,onUpdate:s,onComplete:c,element:d,...f}=this.options;if(!u)return;if(l!==void 0){u.set(l);return}const m=new du({...f,autoplay:!1}),y=Math.max(nc,oe.now()-this.startTime),p=Ie(0,nc,y-nc),v=m.sample(y).value,{name:S}=this.options;d&&S&&Eg(d,S,v),u.setWithVelocity(m.sample(Math.max(0,y-p)).value,v,p),m.stop()}}const Hp=(i,l)=>l==="zIndex"?!1:!!(typeof i=="number"||Array.isArray(i)||typeof i=="string"&&(Qe.test(i)||i==="0")&&!i.startsWith("url("));function Bb(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 Nb(i,l,u,s){const c=i[0];if(c===null)return!1;if(l==="display"||l==="visibility")return!0;const d=i[i.length-1],f=Hp(c,l),m=Hp(d,l);return!f||!m?!1:Bb(i)||(u==="spring"||Cg(u))&&s}function xc(i){i.duration=0,i.type="keyframes"}const Og=new Set(["opacity","clipPath","filter","transform"]),wb=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function jb(i){for(let l=0;l<i.length;l++)if(typeof i[l]=="string"&&wb.test(i[l]))return!0;return!1}const Lb=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Hb=Wy(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Yb(i){var S;const{motionValue:l,name:u,repeatDelay:s,repeatType:c,damping:d,type:f,keyframes:m}=i;if(!(((S=l==null?void 0:l.owner)==null?void 0:S.current)instanceof HTMLElement))return!1;const{onUpdate:p,transformTemplate:v}=l.owner.getProps();return Hb()&&u&&(Og.has(u)||Lb.has(u)&&jb(m))&&(u!=="transform"||!v)&&!p&&!s&&c!=="mirror"&&d!==0&&f!=="inertia"}const qb=40;class Gb extends Ic{constructor({autoplay:l=!0,delay:u=0,type:s="keyframes",repeat:c=0,repeatDelay:d=0,repeatType:f="loop",keyframes:m,name:y,motionValue:p,element:v,...S}){var R;super(),this.stop=()=>{var B,j;this._animation&&(this._animation.stop(),(B=this.stopTimeline)==null||B.call(this)),(j=this.keyframeResolver)==null||j.cancel()},this.createdAt=oe.now();const b={autoplay:l,delay:u,type:s,repeat:c,repeatDelay:d,repeatType:f,name:y,motionValue:p,element:v,...S},x=(v==null?void 0:v.KeyframeResolver)||tf;this.keyframeResolver=new x(m,(B,j,w)=>this.onKeyframesResolved(B,j,b,!w),y,p,v),(R=this.keyframeResolver)==null||R.scheduleResolve()}onKeyframesResolved(l,u,s,c){var w,U;this.keyframeResolver=void 0;const{name:d,type:f,velocity:m,delay:y,isHandoff:p,onUpdate:v}=s;this.resolvedAt=oe.now();let S=!0;Nb(l,d,f,m)||(S=!1,(kn.instantAnimations||!y)&&(v==null||v(bu(l,s,u))),l[0]=l[l.length-1],xc(s),s.repeat=0);const x={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>qb?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:u,...s,keyframes:l},R=S&&!p&&Yb(x),B=(U=(w=x.motionValue)==null?void 0:w.owner)==null?void 0:U.current;let j;if(R)try{j=new Ub({...x,element:B})}catch{j=new du(x)}else j=new du(x);j.finished.then(()=>{this.notifyFinished()}).catch(He),this.pendingTimeline&&(this.stopTimeline=j.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=j}get finished(){return this._animation?this.animation.finished:this._finished}then(l,u){return this.finished.finally(l).then(()=>{})}get animation(){var l;return this._animation||((l=this.keyframeResolver)==null||l.resume(),Mb()),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(){var l;this._animation&&this.animation.cancel(),(l=this.keyframeResolver)==null||l.cancel()}}function Vg(i,l,u,s=0,c=1){const d=Array.from(i).sort((p,v)=>p.sortNodePosition(v)).indexOf(l),f=i.size,m=(f-1)*s;return typeof u=="function"?u(d,f):c===1?d*s:m-d*s}const Yp=30,Xb=i=>!isNaN(parseFloat(i)),yl={current:void 0};class Zb{constructor(l,u={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{var d;const c=oe.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&((d=this.events.change)==null||d.notify(this.current),this.dependents))for(const f of this.dependents)f.dirty()},this.hasAnimated=!1,this.setCurrent(l),this.owner=u.owner}setCurrent(l){this.current=l,this.updatedAt=oe.now(),this.canTrackVelocity===null&&l!==void 0&&(this.canTrackVelocity=Xb(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 Qc);const s=this.events[l].add(u);return l==="change"?()=>{s(),zt.read(()=>{this.events.change.getSize()||this.stop()})}:s}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,s){this.set(u),this.prev=void 0,this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt-s}jump(l,u=!0){this.updateAndNotify(l),this.prev=l,this.prevUpdatedAt=this.prevFrameValue=void 0,u&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var l;(l=this.events.change)==null||l.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 yl.current&&yl.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const l=oe.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||l-this.updatedAt>Yp)return 0;const u=Math.min(this.updatedAt-this.prevUpdatedAt,Yp);return Py(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(){var l,u;(l=this.dependents)==null||l.clear(),(u=this.events.destroy)==null||u.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ai(i,l){return new Zb(i,l)}function _g(i,l){if(i!=null&&i.inherit&&l){const{inherit:u,...s}=i;return{...l,...s}}return i}function ef(i,l){const u=(i==null?void 0:i[l])??(i==null?void 0:i.default)??i;return u!==i?_g(u,i):u}const Qb={type:"spring",stiffness:500,damping:25,restSpeed:10},Kb=i=>({type:"spring",stiffness:550,damping:i===0?2*Math.sqrt(550):30,restSpeed:10}),Jb={type:"keyframes",duration:.8},kb={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Fb=(i,{keyframes:l})=>l.length>2?Jb:ma.has(i)?i.startsWith("scale")?Kb(l[1]):Qb:kb,Wb=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Pb(i){for(const l in i)if(!Wb.has(l))return!0;return!1}const nf=(i,l,u,s={},c,d)=>f=>{const m=ef(s,i)||{},y=m.delay||s.delay||0;let{elapsed:p=0}=s;p=p-Ce(y);const v={keyframes:Array.isArray(u)?u:[null,u],ease:"easeOut",velocity:l.getVelocity(),...m,delay:-p,onUpdate:b=>{l.set(b),m.onUpdate&&m.onUpdate(b)},onComplete:()=>{f(),m.onComplete&&m.onComplete()},name:i,motionValue:l,element:d?void 0:c};Pb(m)||Object.assign(v,Fb(i,v)),v.duration&&(v.duration=Ce(v.duration)),v.repeatDelay&&(v.repeatDelay=Ce(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let S=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(xc(v),v.delay===0&&(S=!0)),(kn.instantAnimations||kn.skipAnimations||c!=null&&c.shouldSkipAnimations||m.skipAnimations)&&(S=!0,xc(v),v.delay=0),v.allowFlatten=!m.type&&!m.ease,S&&!d&&l.get()!==void 0){const b=bu(v.keyframes,m);if(b!==void 0){zt.update(()=>{v.onUpdate(b),v.onComplete()});return}}return m.isSync?new du(v):new Gb(v)},$b=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ib(i){const l=$b.exec(i);if(!l)return[,];const[,u,s,c]=l;return[`--${u??s}`,c]}function Ug(i,l,u=1){const[s,c]=Ib(i);if(!s)return;const d=window.getComputedStyle(l).getPropertyValue(s);if(d){const f=d.trim();return Jy(f)?parseFloat(f):f}return kc(c)?Ug(c,l,u+1):c}function qp(i){const l=[{},{}];return i==null||i.values.forEach((u,s)=>{l[0][s]=u.get(),l[1][s]=u.getVelocity()}),l}function af(i,l,u,s){if(typeof l=="function"){const[c,d]=qp(s);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]=qp(s);l=l(u!==void 0?u:i.custom,c,d)}return l}function Ti(i,l,u){const s=i.getProps();return af(s,l,u!==void 0?u:s.custom,i)}const Bg=new Set(["width","height","top","left","right","bottom",...da]),Mc=i=>Array.isArray(i);function tT(i,l,u){i.hasValue(l)?i.getValue(l).set(u):i.addValue(l,Ai(u))}function eT(i){return Mc(i)?i[i.length-1]||0:i}function nT(i,l){const u=Ti(i,l);let{transitionEnd:s={},transition:c={},...d}=u||{};d={...d,...s};for(const f in d){const m=eT(d[f]);tT(i,f,m)}}const Pt=i=>!!(i&&i.getVelocity);function iT(i){return!!(Pt(i)&&i.add)}function Dc(i,l){const u=i.getValue("willChange");if(iT(u))return u.add(l);if(!u&&kn.WillChange){const s=new kn.WillChange("auto");i.addValue("willChange",s),s.add(l)}}function lf(i){return i.replace(/([A-Z])/g,l=>`-${l.toLowerCase()}`)}const aT="framerAppearId",Ng="data-"+lf(aT);function wg(i){return i.props[Ng]}function lT({protectedKeys:i,needsAnimating:l},u){const s=i.hasOwnProperty(u)&&l[u]!==!0;return l[u]=!1,s}function jg(i,l,{delay:u=0,transitionOverride:s,type:c}={}){let{transition:d,transitionEnd:f,...m}=l;const y=i.getDefaultTransition();d=d?_g(d,y):y;const p=d==null?void 0:d.reduceMotion,v=d==null?void 0:d.skipAnimations;s&&(d=s);const S=[],b=c&&i.animationState&&i.animationState.getState()[c],x=d==null?void 0:d.path;x&&x.animateVisualElement(i,m,d,u,S);for(const R in m){const B=i.getValue(R,i.latestValues[R]??null),j=m[R];if(j===void 0||b&&lT(b,R))continue;const w={delay:u,...ef(d||{},R)};v&&(w.skipAnimations=!0);const U=B.get();if(U!==void 0&&!B.isAnimating()&&!Array.isArray(j)&&j===U&&!w.velocity){zt.update(()=>B.set(j));continue}let H=!1;if(window.MotionHandoffAnimation){const at=wg(i);if(at){const X=window.MotionHandoffAnimation(at,R,zt);X!==null&&(w.startTime=X,H=!0)}}Dc(i,R);const G=p??i.shouldReduceMotion;B.start(nf(R,B,j,G&&Bg.has(R)?{type:!1}:w,i,H));const k=B.animation;k&&S.push(k)}if(f){const R=()=>zt.update(()=>{f&&nT(i,f)});S.length?Promise.all(S).then(R):R()}return S}function Cc(i,l,u={}){var y;const s=Ti(i,l,u.type==="exit"?(y=i.presenceContext)==null?void 0:y.custom:void 0);let{transition:c=i.getDefaultTransition()||{}}=s||{};u.transitionOverride&&(c=u.transitionOverride);const d=s?()=>Promise.all(jg(i,s,u)):()=>Promise.resolve(),f=i.variantChildren&&i.variantChildren.size?(p=0)=>{const{delayChildren:v=0,staggerChildren:S,staggerDirection:b}=c;return sT(i,l,p,v,S,b,u)}:()=>Promise.resolve(),{when:m}=c;if(m){const[p,v]=m==="beforeChildren"?[d,f]:[f,d];return p().then(()=>v())}else return Promise.all([d(),f(u.delay)])}function sT(i,l,u=0,s=0,c=0,d=1,f){const m=[];for(const y of i.variantChildren)y.notify("AnimationStart",l),m.push(Cc(y,l,{...f,delay:u+(typeof s=="function"?0:s)+Vg(i.variantChildren,y,s,c,d)}).then(()=>y.notify("AnimationComplete",l)));return Promise.all(m)}function uT(i,l,u={}){i.notify("AnimationStart",l);let s;if(Array.isArray(l)){const c=l.map(d=>Cc(i,d,u));s=Promise.all(c)}else if(typeof l=="string")s=Cc(i,l,u);else{const c=typeof l=="function"?Ti(i,l,u.custom):l;s=Promise.all(jg(i,c,u))}return s.then(()=>{i.notify("AnimationComplete",l)})}const oT={test:i=>i==="auto",parse:i=>i},Lg=i=>l=>l.test(i),Hg=[ha,P,$e,Sn,NS,BS,oT],Gp=i=>Hg.find(Lg(i));function rT(i){return typeof i=="number"?i===0:i!==null?i==="none"||i==="0"||Fy(i):!0}const cT=new Set(["brightness","contrast","saturate","opacity"]);function fT(i){const[l,u]=i.slice(0,-1).split("(");if(l==="drop-shadow")return i;const[s]=u.match(Fc)||[];if(!s)return i;const c=u.replace(s,"");let d=cT.has(l)?1:0;return s!==u&&(d*=100),l+"("+d+c+")"}const hT=/\b([a-z-]*)\(.*?\)/gu,Rc={...Qe,getAnimatableNone:i=>{const l=i.match(hT);return l?l.map(fT).join(" "):i}},zc={...Qe,getAnimatableNone:i=>{const l=Qe.parse(i);return Qe.createTransformer(i)(l.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},Xp={...ha,transform:Math.round},dT={rotate:Sn,pathRotation:Sn,rotateX:Sn,rotateY:Sn,rotateZ:Sn,scale:ks,scaleX:ks,scaleY:ks,scaleZ:ks,skew:Sn,skewX:Sn,skewY:Sn,distance:P,translateX:P,translateY:P,translateZ:P,x:P,y:P,z:P,perspective:P,transformPerspective:P,opacity:Al,originX:zp,originY:zp,originZ:P},mu={borderWidth:P,borderTopWidth:P,borderRightWidth:P,borderBottomWidth:P,borderLeftWidth:P,borderRadius:P,borderTopLeftRadius:P,borderTopRightRadius:P,borderBottomRightRadius:P,borderBottomLeftRadius:P,width:P,maxWidth:P,height:P,maxHeight:P,top:P,right:P,bottom:P,left:P,inset:P,insetBlock:P,insetBlockStart:P,insetBlockEnd:P,insetInline:P,insetInlineStart:P,insetInlineEnd:P,padding:P,paddingTop:P,paddingRight:P,paddingBottom:P,paddingLeft:P,paddingBlock:P,paddingBlockStart:P,paddingBlockEnd:P,paddingInline:P,paddingInlineStart:P,paddingInlineEnd:P,margin:P,marginTop:P,marginRight:P,marginBottom:P,marginLeft:P,marginBlock:P,marginBlockStart:P,marginBlockEnd:P,marginInline:P,marginInlineStart:P,marginInlineEnd:P,fontSize:P,backgroundPositionX:P,backgroundPositionY:P,...dT,zIndex:Xp,fillOpacity:Al,strokeOpacity:Al,numOctaves:Xp},mT={...mu,color:Kt,backgroundColor:Kt,outlineColor:Kt,fill:Kt,stroke:Kt,borderColor:Kt,borderTopColor:Kt,borderRightColor:Kt,borderBottomColor:Kt,borderLeftColor:Kt,filter:Rc,WebkitFilter:Rc,mask:zc,WebkitMask:zc},Yg=i=>mT[i],pT=new Set([Rc,zc]);function qg(i,l){let u=Yg(i);return pT.has(u)||(u=Qe),u.getAnimatableNone?u.getAnimatableNone(l):void 0}const yT=new Set(["auto","none","0"]);function gT(i,l,u){let s=0,c;for(;s<i.length&&!c;){const d=i[s];typeof d=="string"&&!yT.has(d)&&fa(d).values.length&&(c=i[s]),s++}if(c&&u)for(const d of l)i[d]=qg(u,c)}class vT extends tf{constructor(l,u,s,c,d){super(l,u,s,c,d,!0)}readKeyframes(){const{unresolvedKeyframes:l,element:u,name:s}=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(),kc(S))){const b=Ug(S,u.current);b!==void 0&&(l[v]=b),v===l.length-1&&(this.finalKeyframe=S)}}if(this.resolveNoneKeyframes(),!Bg.has(s)||l.length!==2)return;const[c,d]=l,f=Gp(c),m=Gp(d),y=Rp(c),p=Rp(d);if(y!==p&&Jn[s]){this.needsMeasurement=!0;return}if(f!==m)if(jp(f)&&jp(m))for(let v=0;v<l.length;v++){const S=l[v];typeof S=="string"&&(l[v]=parseFloat(S))}else Jn[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:l,name:u}=this,s=[];for(let c=0;c<l.length;c++)(l[c]===null||rT(l[c]))&&s.push(c);s.length&&gT(l,s,u)}measureInitialState(){const{element:l,unresolvedKeyframes:u,name:s}=this;if(!l||!l.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Jn[s](l.measureViewportBox(),window.getComputedStyle(l.current)),u[0]=this.measuredOrigin;const c=u[u.length-1];c!==void 0&&l.getValue(s,c).jump(c,!1)}measureEndState(){var m;const{element:l,name:u,unresolvedKeyframes:s}=this;if(!l||!l.current)return;const c=l.getValue(u);c&&c.jump(this.measuredOrigin,!1);const d=s.length-1,f=s[d];s[d]=Jn[u](l.measureViewportBox(),window.getComputedStyle(l.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),(m=this.removedTransforms)!=null&&m.length&&this.removedTransforms.forEach(([y,p])=>{l.getValue(y).set(p)}),this.resolveNoneKeyframes()}}function Gg(i,l,u){if(i==null)return[];if(i instanceof EventTarget)return[i];if(typeof i=="string"){let s=document;const c=(u==null?void 0:u[i])??s.querySelectorAll(i);return c?Array.from(c):[]}return Array.from(i).filter(s=>s!=null)}const Oc=(i,l)=>l&&typeof i=="number"?l.transform(i):i;function eu(i){return ky(i)&&"offsetHeight"in i&&!("ownerSVGElement"in i)}const{schedule:sf}=og(queueMicrotask,!1),Ze={x:!1,y:!1};function Xg(){return Ze.x||Ze.y}function ST(i){return i==="x"||i==="y"?Ze[i]?null:(Ze[i]=!0,()=>{Ze[i]=!1}):Ze.x||Ze.y?null:(Ze.x=Ze.y=!0,()=>{Ze.x=Ze.y=!1})}function Zg(i,l){const u=Gg(i),s=new AbortController,c={passive:!0,...l,signal:s.signal};return[u,c,()=>s.abort()]}function bT(i){return!(i.pointerType==="touch"||Xg())}function TT(i,l,u={}){const[s,c,d]=Zg(i,u);return s.forEach(f=>{let m=!1,y=!1,p;const v=()=>{f.removeEventListener("pointerleave",R)},S=j=>{p&&(p(j),p=void 0),v()},b=j=>{m=!1,window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",b),y&&(y=!1,S(j))},x=()=>{m=!0,window.addEventListener("pointerup",b,c),window.addEventListener("pointercancel",b,c)},R=j=>{if(j.pointerType!=="touch"){if(m){y=!0;return}S(j)}},B=j=>{if(!bT(j))return;y=!1;const w=l(f,j);typeof w=="function"&&(p=w,f.addEventListener("pointerleave",R,c))};f.addEventListener("pointerenter",B,c),f.addEventListener("pointerdown",x,c)}),d}const Qg=(i,l)=>l?i===l?!0:Qg(i,l.parentElement):!1,uf=i=>i.pointerType==="mouse"?typeof i.button!="number"||i.button<=0:i.isPrimary!==!1,AT=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ET(i){return AT.has(i.tagName)||i.isContentEditable===!0}const xT=new Set(["INPUT","SELECT","TEXTAREA"]);function MT(i){return xT.has(i.tagName)||i.isContentEditable===!0}const nu=new WeakSet;function Zp(i){return l=>{l.key==="Enter"&&i(l)}}function ic(i,l){i.dispatchEvent(new PointerEvent("pointer"+l,{isPrimary:!0,bubbles:!0}))}const DT=(i,l)=>{const u=i.currentTarget;if(!u)return;const s=Zp(()=>{if(nu.has(u))return;ic(u,"down");const c=Zp(()=>{ic(u,"up")}),d=()=>ic(u,"cancel");u.addEventListener("keyup",c,l),u.addEventListener("blur",d,l)});u.addEventListener("keydown",s,l),u.addEventListener("blur",()=>u.removeEventListener("keydown",s),l)};function Qp(i){return uf(i)&&!Xg()}const Kp=new WeakSet;function CT(i,l,u={}){const[s,c,d]=Zg(i,u),f=m=>{const y=m.currentTarget;if(!Qp(m)||Kp.has(m))return;nu.add(y),u.stopPropagation&&Kp.add(m);const p=l(y,m),v=(x,R)=>{window.removeEventListener("pointerup",S),window.removeEventListener("pointercancel",b),nu.has(y)&&nu.delete(y),Qp(x)&&typeof p=="function"&&p(x,{success:R})},S=x=>{v(x,y===window||y===document||u.useGlobalTarget||Qg(y,x.target))},b=x=>{v(x,!1)};window.addEventListener("pointerup",S,c),window.addEventListener("pointercancel",b,c)};return s.forEach(m=>{(u.useGlobalTarget?window:m).addEventListener("pointerdown",f,c),eu(m)&&(m.addEventListener("focus",p=>DT(p,c)),!ET(m)&&!m.hasAttribute("tabindex")&&(m.tabIndex=0))}),d}function of(i){return ky(i)&&"ownerSVGElement"in i}const iu=new WeakMap;let Kn;const Kg=(i,l,u)=>(s,c)=>c&&c[0]?c[0][i+"Size"]:of(s)&&"getBBox"in s?s.getBBox()[l]:s[u],RT=Kg("inline","width","offsetWidth"),zT=Kg("block","height","offsetHeight");function OT({target:i,borderBoxSize:l}){var u;(u=iu.get(i))==null||u.forEach(s=>{s(i,{get width(){return RT(i,l)},get height(){return zT(i,l)}})})}function VT(i){i.forEach(OT)}function _T(){typeof ResizeObserver>"u"||(Kn=new ResizeObserver(VT))}function UT(i,l){Kn||_T();const u=Gg(i);return u.forEach(s=>{let c=iu.get(s);c||(c=new Set,iu.set(s,c)),c.add(l),Kn==null||Kn.observe(s)}),()=>{u.forEach(s=>{const c=iu.get(s);c==null||c.delete(l),c!=null&&c.size||Kn==null||Kn.unobserve(s)})}}const au=new Set;let ra;function BT(){ra=()=>{const i={get width(){return window.innerWidth},get height(){return window.innerHeight}};au.forEach(l=>l(i))},window.addEventListener("resize",ra)}function NT(i){return au.add(i),ra||BT(),()=>{au.delete(i),!au.size&&typeof ra=="function"&&(window.removeEventListener("resize",ra),ra=void 0)}}function Jp(i,l){return typeof i=="function"?NT(i):UT(i,l)}function wT(i){return of(i)&&i.tagName==="svg"}function jT(...i){const l=!Array.isArray(i[0]),u=l?0:-1,s=i[0+u],c=i[1+u],d=i[2+u],f=i[3+u],m=Sg(c,d,f);return l?m(s):m}const LT=[...Hg,Kt,Qe],HT=i=>LT.find(Lg(i)),kp=()=>({translate:0,scale:1,origin:0,originPoint:0}),ca=()=>({x:kp(),y:kp()}),Fp=()=>({min:0,max:0}),kt=()=>({x:Fp(),y:Fp()}),YT=new WeakMap;function Tu(i){return i!==null&&typeof i=="object"&&typeof i.start=="function"}function El(i){return typeof i=="string"||Array.isArray(i)}const rf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],cf=["initial",...rf];function Au(i){return Tu(i.animate)||cf.some(l=>El(i[l]))}function Jg(i){return!!(Au(i)||i.variants)}function qT(i,l,u){for(const s in l){const c=l[s],d=u[s];if(Pt(c))i.addValue(s,c);else if(Pt(d))i.addValue(s,Ai(c,{owner:i}));else if(d!==c)if(i.hasValue(s)){const f=i.getValue(s);f.liveStyle===!0?f.jump(c):f.hasAnimated||f.set(c)}else{const f=i.getStaticValue(s);i.addValue(s,Ai(f!==void 0?f:c,{owner:i}))}}for(const s in u)l[s]===void 0&&i.removeValue(s);return l}const Vc={current:null},kg={current:!1},GT=typeof window<"u";function XT(){if(kg.current=!0,!!GT)if(window.matchMedia){const i=window.matchMedia("(prefers-reduced-motion)"),l=()=>Vc.current=i.matches;i.addEventListener("change",l),l()}else Vc.current=!1}const Wp=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let pu={};function Fg(i){pu=i}function ZT(){return pu}class QT{scrapeMotionValuesFromProps(l,u,s){return{}}constructor({parent:l,props:u,presenceContext:s,reducedMotionConfig:c,skipAnimations:d,blockInitialAnimation:f,visualState:m},y={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=tf,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 x=oe.now();this.renderScheduledAt<x&&(this.renderScheduledAt=x,zt.render(this.render,!1,!0))};const{latestValues:p,renderState:v}=m;this.latestValues=p,this.baseTarget={...p},this.initialValues=u.initial?{...p}:{},this.renderState=v,this.parent=l,this.props=u,this.presenceContext=s,this.depth=l?l.depth+1:0,this.reducedMotionConfig=c,this.skipAnimationsConfig=d,this.options=y,this.blockInitialAnimation=!!f,this.isControllingVariants=Au(u),this.isVariantNode=Jg(u),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(l&&l.current);const{willChange:S,...b}=this.scrapeMotionValuesFromProps(u,{},this);for(const x in b){const R=b[x];p[x]!==void 0&&Pt(R)&&R.set(p[x])}}mount(l){var u,s;if(this.hasBeenMounted)for(const c in this.initialValues)(u=this.values.get(c))==null||u.jump(this.initialValues[c]),this.latestValues[c]=this.initialValues[c];this.current=l,YT.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((c,d)=>this.bindToMotionValue(d,c)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(kg.current||XT(),this.shouldReduceMotion=Vc.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(s=this.parent)==null||s.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var l;this.projection&&this.projection.unmount(),bn(this.notifyUpdate),bn(this.render),this.valueSubscriptions.forEach(u=>u()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(l=this.parent)==null||l.removeChild(this);for(const u in this.events)this.events[u].clear();for(const u in this.features){const s=this.features[u];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(l){this.children.add(l),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(l)}removeChild(l){this.children.delete(l),this.enteringChildren&&this.enteringChildren.delete(l)}bindToMotionValue(l,u){if(this.valueSubscriptions.has(l)&&this.valueSubscriptions.get(l)(),u.accelerate&&Og.has(l)&&this.current instanceof HTMLElement){const{factory:f,keyframes:m,times:y,ease:p,duration:v}=u.accelerate,S=new Rg({element:this.current,name:l,keyframes:m,times:y,ease:p,duration:Ce(v)}),b=f(S);this.valueSubscriptions.set(l,()=>{b(),S.cancel()});return}const s=ma.has(l);s&&this.onBindTransform&&this.onBindTransform();const c=u.on("change",f=>{this.latestValues[l]=f,this.props.onUpdate&&zt.preRender(this.notifyUpdate),s&&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()})}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 pu){const u=pu[l];if(!u)continue;const{isEnabled:s,Feature:c}=u;if(!this.features[l]&&c&&s(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):kt()}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 s=0;s<Wp.length;s++){const c=Wp[s];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const d="on"+c,f=l[d];f&&(this.propEventSubscriptions[c]=this.on(c,f))}this.prevMotionValues=qT(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 s=this.values.get(l);u!==s&&(s&&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 s=this.values.get(l);return s===void 0&&u!==void 0&&(s=Ai(u===null?void 0:u,{owner:this}),this.addValue(l,s)),s}readValue(l,u){let s=this.latestValues[l]!==void 0||!this.current?this.latestValues[l]:this.getBaseTargetFromProps(this.props,l)??this.readValueFromInstance(this.current,l,this.options);return s!=null&&(typeof s=="string"&&(Jy(s)||Fy(s))?s=parseFloat(s):!HT(s)&&Qe.test(u)&&(s=qg(l,u)),this.setBaseTarget(l,Pt(s)?s.get():s)),Pt(s)?s.get():s}setBaseTarget(l,u){this.baseTarget[l]=u}getBaseTarget(l){var d;const{initial:u}=this.props;let s;if(typeof u=="string"||typeof u=="object"){const f=af(this.props,u,(d=this.presenceContext)==null?void 0:d.custom);f&&(s=f[l])}if(u&&s!==void 0)return s;const c=this.getBaseTargetFromProps(this.props,l);return c!==void 0&&!Pt(c)?c:this.initialValues[l]!==void 0&&s===void 0?void 0:this.baseTarget[l]}on(l,u){return this.events[l]||(this.events[l]=new Qc),this.events[l].add(u)}notify(l,...u){this.events[l]&&this.events[l].notify(...u)}scheduleRenderMicrotask(){sf.render(this.render)}}class Wg extends QT{constructor(){super(...arguments),this.KeyframeResolver=vT}sortInstanceNodePosition(l,u){return l.compareDocumentPosition(u)&2?1:-1}getBaseTargetFromProps(l,u){const s=l.style;return s?s[u]:void 0}removeValueFromRenderState(l,{vars:u,style:s}){delete u[l],delete s[l]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:l}=this.props;Pt(l)&&(this.childSubscription=l.on("change",u=>{this.current&&(this.current.textContent=`${u}`)}))}}class Wn{constructor(l){this.isMounted=!1,this.node=l}update(){}}function Pg({top:i,left:l,right:u,bottom:s}){return{x:{min:l,max:u},y:{min:i,max:s}}}function KT({x:i,y:l}){return{top:l.min,right:i.max,bottom:l.max,left:i.min}}function JT(i,l){if(!l)return i;const u=l({x:i.left,y:i.top}),s=l({x:i.right,y:i.bottom});return{top:u.y,left:u.x,bottom:s.y,right:s.x}}function ac(i){return i===void 0||i===1}function _c({scale:i,scaleX:l,scaleY:u}){return!ac(i)||!ac(l)||!ac(u)}function gi(i){return _c(i)||$g(i)||i.z||i.rotate||i.rotateX||i.rotateY||i.skewX||i.skewY}function $g(i){return Pp(i.x)||Pp(i.y)}function Pp(i){return i&&i!=="0%"}function yu(i,l,u){const s=i-u,c=l*s;return u+c}function $p(i,l,u,s,c){return c!==void 0&&(i=yu(i,c,s)),yu(i,u,s)+l}function Uc(i,l=0,u=1,s,c){i.min=$p(i.min,l,u,s,c),i.max=$p(i.max,l,u,s,c)}function Ig(i,{x:l,y:u}){Uc(i.x,l.translate,l.scale,l.originPoint),Uc(i.y,u.translate,u.scale,u.originPoint)}const Ip=.999999999999,ty=1.0000000000001;function kT(i,l,u,s=!1){var m;const c=u.length;if(!c)return;l.x=l.y=1;let d,f;for(let y=0;y<c;y++){d=u[y],f=d.projectionDelta;const{visualElement:p}=d.options;p&&p.props.style&&p.props.style.display==="contents"||(s&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(Pe(i.x,-d.scroll.offset.x),Pe(i.y,-d.scroll.offset.y)),f&&(l.x*=f.x.scale,l.y*=f.y.scale,Ig(i,f)),s&&gi(d.latestValues)&&lu(i,d.latestValues,(m=d.layout)==null?void 0:m.layoutBox))}l.x<ty&&l.x>Ip&&(l.x=1),l.y<ty&&l.y>Ip&&(l.y=1)}function Pe(i,l){i.min+=l,i.max+=l}function ey(i,l,u,s,c=.5){const d=Rt(i.min,i.max,c);Uc(i,l,u,d,s)}function ny(i,l){return typeof i=="string"?parseFloat(i)/100*(l.max-l.min):i}function lu(i,l,u){const s=u??i;ey(i.x,ny(l.x,s.x),l.scaleX,l.scale,l.originX),ey(i.y,ny(l.y,s.y),l.scaleY,l.scale,l.originY)}function t0(i,l){return Pg(JT(i.getBoundingClientRect(),l))}function FT(i,l,u){const s=t0(i,u),{scroll:c}=l;return c&&(Pe(s.x,c.offset.x),Pe(s.y,c.offset.y)),s}const WT={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},PT=da.length;function $T(i,l,u){let s="",c=!0;for(let f=0;f<PT;f++){const m=da[f],y=i[m];if(y===void 0)continue;let p=!0;if(typeof y=="number")p=y===(m.startsWith("scale")?1:0);else{const v=parseFloat(y);p=m.startsWith("scale")?v===1:v===0}if(!p||u){const v=Oc(y,mu[m]);if(!p){c=!1;const S=WT[m]||m;s+=`${S}(${v}) `}u&&(l[m]=v)}}const d=i.pathRotation;return d&&(c=!1,s+=`rotate(${Oc(d,mu.pathRotation)}) `),s=s.trim(),u?s=u(l,c?"":s):c&&(s="none"),s}function ff(i,l,u){const{style:s,vars:c,transformOrigin:d}=i;let f=!1,m=!1;for(const y in l){const p=l[y];if(ma.has(y)){f=!0;continue}else if(cg(y)){c[y]=p;continue}else{const v=Oc(p,mu[y]);y.startsWith("origin")?(m=!0,d[y]=v):s[y]=v}}if(l.transform||(f||u?s.transform=$T(l,i.transform,u):s.transform&&(s.transform="none")),m){const{originX:y="50%",originY:p="50%",originZ:v=0}=d;s.transformOrigin=`${y} ${p} ${v}`}}function e0(i,{style:l,vars:u},s,c){const d=i.style;let f;for(f in l)d[f]=l[f];c==null||c.applyProjectionStyles(d,s);for(f in u)d.setProperty(f,u[f])}function iy(i,l){return l.max===l.min?0:i/(l.max-l.min)*100}const cl={correct:(i,l)=>{if(!l.target)return i;if(typeof i=="string")if(P.test(i))i=parseFloat(i);else return i;const u=iy(i,l.target.x),s=iy(i,l.target.y);return`${u}% ${s}%`}},IT={correct:(i,{treeScale:l,projectionDelta:u})=>{const s=i,c=Qe.parse(i);if(c.length>5)return s;const d=Qe.createTransformer(i),f=typeof c[0]!="number"?1:0,m=u.x.scale*l.x,y=u.y.scale*l.y;c[0+f]/=m,c[1+f]/=y;const p=Rt(m,y,.5);return typeof c[2+f]=="number"&&(c[2+f]/=p),typeof c[3+f]=="number"&&(c[3+f]/=p),d(c)}},Bc={borderRadius:{...cl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:cl,borderTopRightRadius:cl,borderBottomLeftRadius:cl,borderBottomRightRadius:cl,boxShadow:IT};function n0(i,{layout:l,layoutId:u}){return ma.has(i)||i.startsWith("origin")||(l||u!==void 0)&&(!!Bc[i]||i==="opacity")}function hf(i,l,u){var f;const s=i.style,c=l==null?void 0:l.style,d={};if(!s)return d;for(const m in s)(Pt(s[m])||c&&Pt(c[m])||n0(m,i)||((f=u==null?void 0:u.getValue(m))==null?void 0:f.liveStyle)!==void 0)&&(d[m]=s[m]);return d}function tA(i){return window.getComputedStyle(i)}class eA extends Wg{constructor(){super(...arguments),this.type="html",this.renderInstance=e0}readValueFromInstance(l,u){var s;if(ma.has(u))return(s=this.projection)!=null&&s.isProjecting?Sc(u):bb(l,u);{const c=tA(l),d=(cg(u)?c.getPropertyValue(u):c[u])||0;return typeof d=="string"?d.trim():d}}measureInstanceViewportBox(l,{transformPagePoint:u}){return t0(l,u)}build(l,u,s){ff(l,u,s.transformTemplate)}scrapeMotionValuesFromProps(l,u,s){return hf(l,u,s)}}const nA={offset:"stroke-dashoffset",array:"stroke-dasharray"},iA={offset:"strokeDashoffset",array:"strokeDasharray"};function aA(i,l,u=1,s=0,c=!0){i.pathLength=1;const d=c?nA:iA;i[d.offset]=`${-s}`,i[d.array]=`${l} ${u}`}const lA=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function i0(i,{attrX:l,attrY:u,attrScale:s,pathLength:c,pathSpacing:d=1,pathOffset:f=0,...m},y,p,v){if(ff(i,m,p),y){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==null?void 0:v.transformBox)??"fill-box",delete S.transformBox);for(const x of lA)S[x]!==void 0&&(b[x]=S[x],delete S[x]);l!==void 0&&(S.x=l),u!==void 0&&(S.y=u),s!==void 0&&(S.scale=s),c!==void 0&&aA(S,c,d,f,!1)}const a0=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"]),l0=i=>typeof i=="string"&&i.toLowerCase()==="svg";function sA(i,l,u,s){e0(i,l,void 0,s);for(const c in l.attrs)i.setAttribute(a0.has(c)?c:lf(c),l.attrs[c])}function s0(i,l,u){const s=hf(i,l,u);for(const c in i)if(Pt(i[c])||Pt(l[c])){const d=da.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;s[d]=i[c]}return s}class uA extends Wg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=kt}getBaseTargetFromProps(l,u){return l[u]}readValueFromInstance(l,u){if(ma.has(u)){const s=Yg(u);return s&&s.default||0}return u=a0.has(u)?u:lf(u),l.getAttribute(u)}scrapeMotionValuesFromProps(l,u,s){return s0(l,u,s)}build(l,u,s){i0(l,u,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(l,u,s,c){sA(l,u,s,c)}mount(l){this.isSVGTag=l0(l.tagName),super.mount(l)}}const oA=cf.length;function u0(i){if(!i)return;if(!i.isControllingVariants){const u=i.parent?u0(i.parent)||{}:{};return i.props.initial!==void 0&&(u.initial=i.props.initial),u}const l={};for(let u=0;u<oA;u++){const s=cf[u],c=i.props[s];(El(c)||c===!1)&&(l[s]=c)}return l}function o0(i,l){if(!Array.isArray(l))return!1;const u=l.length;if(u!==i.length)return!1;for(let s=0;s<u;s++)if(l[s]!==i[s])return!1;return!0}const rA=[...rf].reverse(),cA=rf.length;function fA(i){return l=>Promise.all(l.map(({animation:u,options:s})=>uT(i,u,s)))}function hA(i){let l=fA(i),u=ay(),s=!0,c=!1;const d=p=>(v,S)=>{var x;const b=Ti(i,S,p==="exit"?(x=i.presenceContext)==null?void 0:x.custom:void 0);if(b){const{transition:R,transitionEnd:B,...j}=b;v={...v,...j,...B}}return v};function f(p){l=p(i)}function m(p){const{props:v}=i,S=u0(i.parent)||{},b=[],x=new Set;let R={},B=1/0;for(let w=0;w<cA;w++){const U=rA[w],H=u[U],G=v[U]!==void 0?v[U]:S[U],k=El(G),at=U===p?H.isActive:null;at===!1&&(B=w);let X=G===S[U]&&G!==v[U]&&k;if(X&&(s||c)&&i.manuallyAnimateOnMount&&(X=!1),H.protectedKeys={...R},!H.isActive&&at===null||!G&&!H.prevProp||Tu(G)||typeof G=="boolean")continue;if(U==="exit"&&H.isActive&&at!==!0){H.prevResolvedValues&&(R={...R,...H.prevResolvedValues});continue}const K=dA(H.prevProp,G);let it=K||U===p&&H.isActive&&!X&&k||w>B&&k,tt=!1;const pt=Array.isArray(G)?G:[G];let vt=pt.reduce(d(U),{});at===!1&&(vt={});const{prevResolvedValues:$t={}}=H,qt={...$t,...vt},jt=F=>{it=!0,x.has(F)&&(tt=!0,x.delete(F)),H.needsAnimating[F]=!0;const ot=i.getValue(F);ot&&(ot.liveStyle=!1)};for(const F in qt){const ot=vt[F],yt=$t[F];if(R.hasOwnProperty(F))continue;let E=!1;Mc(ot)&&Mc(yt)?E=!o0(ot,yt)||K:E=ot!==yt,E?ot!=null?jt(F):x.add(F):ot!==void 0&&x.has(F)?jt(F):H.protectedKeys[F]=!0}H.prevProp=G,H.prevResolvedValues=vt,H.isActive&&(R={...R,...vt}),(s||c)&&i.blockInitialAnimation&&(it=!1);const V=X&&K;it&&(!V||tt)&&b.push(...pt.map(F=>{const ot={type:U};if(typeof F=="string"&&(s||c)&&!V&&i.manuallyAnimateOnMount&&i.parent){const{parent:yt}=i,E=Ti(yt,F);if(yt.enteringChildren&&E){const{delayChildren:Y}=E.transition||{};ot.delay=Vg(yt.enteringChildren,i,Y)}}return{animation:F,options:ot}}))}if(x.size){const w={};if(typeof v.initial!="boolean"){const U=Ti(i,Array.isArray(v.initial)?v.initial[0]:v.initial);U&&U.transition&&(w.transition=U.transition)}x.forEach(U=>{const H=i.getBaseTarget(U),G=i.getValue(U);G&&(G.liveStyle=!0),w[U]=H??null}),b.push({animation:w})}let j=!!b.length;return s&&(v.initial===!1||v.initial===v.animate)&&!i.manuallyAnimateOnMount&&(j=!1),s=!1,c=!1,j?l(b):Promise.resolve()}function y(p,v){var b;if(u[p].isActive===v)return Promise.resolve();(b=i.variantChildren)==null||b.forEach(x=>{var R;return(R=x.animationState)==null?void 0:R.setActive(p,v)}),u[p].isActive=v;const S=m(p);for(const x in u)u[x].protectedKeys={};return S}return{animateChanges:m,setActive:y,setAnimateFunction:f,getState:()=>u,reset:()=>{u=ay(),c=!0}}}function dA(i,l){return typeof l=="string"?l!==i:Array.isArray(l)?!o0(l,i):!1}function yi(i=!1){return{isActive:i,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ay(){return{animate:yi(!0),whileInView:yi(),whileHover:yi(),whileTap:yi(),whileDrag:yi(),whileFocus:yi(),exit:yi()}}function Nc(i,l){i.min=l.min,i.max=l.max}function Xe(i,l){Nc(i.x,l.x),Nc(i.y,l.y)}function ly(i,l){i.translate=l.translate,i.scale=l.scale,i.originPoint=l.originPoint,i.origin=l.origin}const r0=1e-4,mA=1-r0,pA=1+r0,c0=.01,yA=0-c0,gA=0+c0;function re(i){return i.max-i.min}function vA(i,l,u){return Math.abs(i-l)<=u}function sy(i,l,u,s=.5){i.origin=s,i.originPoint=Rt(l.min,l.max,i.origin),i.scale=re(u)/re(l),i.translate=Rt(u.min,u.max,i.origin)-i.originPoint,(i.scale>=mA&&i.scale<=pA||isNaN(i.scale))&&(i.scale=1),(i.translate>=yA&&i.translate<=gA||isNaN(i.translate))&&(i.translate=0)}function gl(i,l,u,s){sy(i.x,l.x,u.x,s?s.originX:void 0),sy(i.y,l.y,u.y,s?s.originY:void 0)}function uy(i,l,u,s=0){const c=s?Rt(u.min,u.max,s):u.min;i.min=c+l.min,i.max=i.min+re(l)}function SA(i,l,u,s){uy(i.x,l.x,u.x,s==null?void 0:s.x),uy(i.y,l.y,u.y,s==null?void 0:s.y)}function oy(i,l,u,s=0){const c=s?Rt(u.min,u.max,s):u.min;i.min=l.min-c,i.max=i.min+re(l)}function gu(i,l,u,s){oy(i.x,l.x,u.x,s==null?void 0:s.x),oy(i.y,l.y,u.y,s==null?void 0:s.y)}function ry(i,l,u,s,c){return i-=l,i=yu(i,1/u,s),c!==void 0&&(i=yu(i,1/c,s)),i}function bA(i,l=0,u=1,s=.5,c,d=i,f=i){if($e.test(l)&&(l=parseFloat(l),l=Rt(f.min,f.max,l/100)-f.min),typeof l!="number")return;let m=Rt(d.min,d.max,s);i===d&&(m-=l),i.min=ry(i.min,l,u,m,c),i.max=ry(i.max,l,u,m,c)}function cy(i,l,[u,s,c],d,f){bA(i,l[u],l[s],l[c],l.scale,d,f)}const TA=["x","scaleX","originX"],AA=["y","scaleY","originY"];function fy(i,l,u,s){cy(i.x,l,TA,u?u.x:void 0,s?s.x:void 0),cy(i.y,l,AA,u?u.y:void 0,s?s.y:void 0)}function hy(i){return i.translate===0&&i.scale===1}function f0(i){return hy(i.x)&&hy(i.y)}function dy(i,l){return i.min===l.min&&i.max===l.max}function EA(i,l){return dy(i.x,l.x)&&dy(i.y,l.y)}function my(i,l){return Math.round(i.min)===Math.round(l.min)&&Math.round(i.max)===Math.round(l.max)}function h0(i,l){return my(i.x,l.x)&&my(i.y,l.y)}function py(i){return re(i.x)/re(i.y)}function yy(i,l){return i.translate===l.translate&&i.scale===l.scale&&i.originPoint===l.originPoint}function We(i){return[i("x"),i("y")]}function xA(i,l,u){let s="";const c=i.x.translate/l.x,d=i.y.translate/l.y,f=(u==null?void 0:u.z)||0;if((c||d||f)&&(s=`translate3d(${c}px, ${d}px, ${f}px) `),(l.x!==1||l.y!==1)&&(s+=`scale(${1/l.x}, ${1/l.y}) `),u){const{transformPerspective:p,rotate:v,pathRotation:S,rotateX:b,rotateY:x,skewX:R,skewY:B}=u;p&&(s=`perspective(${p}px) ${s}`),v&&(s+=`rotate(${v}deg) `),S&&(s+=`rotate(${S}deg) `),b&&(s+=`rotateX(${b}deg) `),x&&(s+=`rotateY(${x}deg) `),R&&(s+=`skewX(${R}deg) `),B&&(s+=`skewY(${B}deg) `)}const m=i.x.scale*l.x,y=i.y.scale*l.y;return(m!==1||y!==1)&&(s+=`scale(${m}, ${y})`),s||"none"}const d0=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],MA=d0.length,gy=i=>typeof i=="string"?parseFloat(i):i,vy=i=>typeof i=="number"||P.test(i);function DA(i,l,u,s,c,d){c?(i.opacity=Rt(0,u.opacity??1,CA(s)),i.opacityExit=Rt(l.opacity??1,0,RA(s))):d&&(i.opacity=Rt(l.opacity??1,u.opacity??1,s));for(let f=0;f<MA;f++){const m=d0[f];let y=Sy(l,m),p=Sy(u,m);if(y===void 0&&p===void 0)continue;y||(y=0),p||(p=0),y===0||p===0||vy(y)===vy(p)?(i[m]=Math.max(Rt(gy(y),gy(p),s),0),($e.test(p)||$e.test(y))&&(i[m]+="%")):i[m]=p}(l.rotate||u.rotate)&&(i.rotate=Rt(l.rotate||0,u.rotate||0,s))}function Sy(i,l){return i[l]!==void 0?i[l]:i.borderRadius}const CA=m0(0,.5,ag),RA=m0(.5,.95,He);function m0(i,l,u){return s=>s<i?0:s>l?1:u(Tl(i,l,s))}function zA(i,l,u){const s=Pt(i)?i:Ai(i);return s.start(nf("",s,l,u)),s.animation}function xl(i,l,u,s={passive:!0}){return i.addEventListener(l,u,s),()=>i.removeEventListener(l,u)}const OA=(i,l)=>i.depth-l.depth;class VA{constructor(){this.children=[],this.isDirty=!1}add(l){Xc(this.children,l),this.isDirty=!0}remove(l){ru(this.children,l),this.isDirty=!0}forEach(l){this.isDirty&&this.children.sort(OA),this.isDirty=!1,this.children.forEach(l)}}function _A(i,l){const u=oe.now(),s=({timestamp:c})=>{const d=c-u;d>=l&&(bn(s),i(d-l))};return zt.setup(s,!0),()=>bn(s)}function su(i){return Pt(i)?i.get():i}class UA{constructor(){this.members=[]}add(l){Xc(this.members,l);for(let u=this.members.length-1;u>=0;u--){const s=this.members[u];if(s===l||s===this.lead||s===this.prevLead)continue;const c=s.instance;(!c||c.isConnected===!1)&&!s.snapshot&&(ru(this.members,s),s.unmount())}l.scheduleRender()}remove(l){if(ru(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){var u;for(let s=this.members.indexOf(l)-1;s>=0;s--){const c=this.members[s];if(c.isPresent!==!1&&((u=c.instance)==null?void 0:u.isConnected)!==!1)return this.promote(c),!0}return!1}promote(l,u){var c;const s=this.lead;if(l!==s&&(this.prevLead=s,this.lead=l,l.show(),s)){s.updateSnapshot(),l.scheduleRender();const{layoutDependency:d}=s.options,{layoutDependency:f}=l.options;(d===void 0||d!==f)&&(l.resumeFrom=s,u&&(s.preserveOpacity=!0),s.snapshot&&(l.snapshot=s.snapshot,l.snapshot.latestValues=s.animationValues||s.latestValues),(c=l.root)!=null&&c.isUpdating&&(l.isLayoutDirty=!0)),l.options.crossfade===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(l=>{var u,s,c,d,f;(s=(u=l.options).onExitComplete)==null||s.call(u),(f=(c=l.resumingFrom)==null?void 0:(d=c.options).onExitComplete)==null||f.call(d)})}scheduleRender(){this.members.forEach(l=>l.instance&&l.scheduleRender(!1))}removeLeadSnapshot(){var l;(l=this.lead)!=null&&l.snapshot&&(this.lead.snapshot=void 0)}}const uu={hasAnimatedSinceResize:!0,hasEverUpdated:!1},lc=["","X","Y","Z"],BA=1e3;let NA=0;function sc(i,l,u,s){const{latestValues:c}=l;c[i]&&(u[i]=c[i],l.setStaticValue(i,0),s&&(s[i]=0))}function p0(i){if(i.hasCheckedOptimisedAppear=!0,i.root===i)return;const{visualElement:l}=i.options;if(!l)return;const u=wg(l);if(window.MotionHasOptimisedAnimation(u,"transform")){const{layout:c,layoutId:d}=i.options;window.MotionCancelOptimisedAnimation(u,"transform",zt,!(c||d))}const{parent:s}=i;s&&!s.hasCheckedOptimisedAppear&&p0(s)}function y0({attachResizeListener:i,defaultParent:l,measureScroll:u,checkIsScrollRoot:s,resetTransform:c}){return class{constructor(f={},m=l==null?void 0:l()){this.id=NA++,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(LA),this.nodes.forEach(ZA),this.nodes.forEach(QA),this.nodes.forEach(HA)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,this.root=m?m.root||m:this,this.path=m?[...m.path,m]:[],this.parent=m,this.depth=m?m.depth+1:0;for(let y=0;y<this.path.length;y++)this.path[y].shouldResetTransform=!0;this.root===this&&(this.nodes=new VA)}addEventListener(f,m){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new Qc),this.eventHandlers.get(f).add(m)}notifyListeners(f,...m){const y=this.eventHandlers.get(f);y&&y.notify(...m)}hasListeners(f){return this.eventHandlers.has(f)}mount(f){if(this.instance)return;this.isSVG=of(f)&&!wT(f),this.instance=f;const{layoutId:m,layout:y,visualElement:p}=this.options;if(p&&!p.current&&p.mount(f),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(y||m)&&(this.isLayoutDirty=!0),i){let v,S=0;const b=()=>this.root.updateBlockedByResize=!1;zt.read(()=>{S=window.innerWidth}),i(f,()=>{const x=window.innerWidth;x!==S&&(S=x,this.root.updateBlockedByResize=!0,v&&v(),v=_A(b,250),uu.hasAnimatedSinceResize&&(uu.hasAnimatedSinceResize=!1,this.nodes.forEach(Ay)))})}m&&this.root.registerSharedNode(m,this),this.options.animate!==!1&&p&&(m||y)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:S,hasRelativeLayoutChanged:b,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const R=this.options.transition||p.getDefaultTransition()||WA,{onLayoutAnimationStart:B,onLayoutAnimationComplete:j}=p.getProps(),w=!this.targetLayout||!h0(this.targetLayout,x),U=!S&&b;if(this.options.layoutRoot||this.resumeFrom||U||S&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const H={...ef(R,"layout"),onPlay:B,onComplete:j};(p.shouldReduceMotion||this.options.layoutRoot)&&(H.delay=0,H.type=!1),this.startAnimation(H),this.setAnimationOrigin(v,U,H.path)}else S||Ay(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const f=this.getStack();f&&f.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),bn(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(KA),this.animationId++)}getTransformTemplate(){const{visualElement:f}=this.options;return f&&f.getProps().transformTemplate}willUpdate(f=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&p0(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:m,layout:y}=this.options;if(m===void 0&&!y)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),f&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const y=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),y&&this.nodes.forEach(qA),this.nodes.forEach(by);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ty);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(GA),this.nodes.forEach(XA),this.nodes.forEach(wA),this.nodes.forEach(jA)):this.nodes.forEach(Ty),this.clearAllSnapshots();const m=oe.now();ae.delta=Ie(0,1e3/60,m-ae.timestamp),ae.timestamp=m,ae.isProcessing=!0,Pr.update.process(ae),Pr.preRender.process(ae),Pr.render.process(ae),ae.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,sf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(YA),this.sharedNodes.forEach(JA)}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&&!re(this.snapshot.measuredBox.x)&&!re(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let y=0;y<this.path.length;y++)this.path[y].updateScroll();const f=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=kt()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:m}=this.options;m&&m.notify("LayoutMeasure",this.layout.layoutBox,f?f.layoutBox:void 0)}updateScroll(f="measure"){let m=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===f&&(m=!1),m&&this.instance){const y=s(this.instance);this.scroll={animationId:this.root.animationId,phase:f,isRoot:y,offset:u(this.instance),wasRoot:this.scroll?this.scroll.isRoot:y}}}resetTransform(){if(!c)return;const f=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,m=this.projectionDelta&&!f0(this.projectionDelta),y=this.getTransformTemplate(),p=y?y(this.latestValues,""):void 0,v=p!==this.prevTransformTemplateValue;f&&this.instance&&(m||gi(this.latestValues)||v)&&(c(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(f=!0){const m=this.measurePageBox();let y=this.removeElementScroll(m);return f&&(y=this.removeTransform(y)),PA(y),{animationId:this.root.animationId,measuredBox:m,layoutBox:y,latestValues:{},source:this.id}}measurePageBox(){var p;const{visualElement:f}=this.options;if(!f)return kt();const m=f.measureViewportBox();if(!(((p=this.scroll)==null?void 0:p.wasRoot)||this.path.some($A))){const{scroll:v}=this.root;v&&(Pe(m.x,v.offset.x),Pe(m.y,v.offset.y))}return m}removeElementScroll(f){var y;const m=kt();if(Xe(m,f),(y=this.scroll)!=null&&y.wasRoot)return m;for(let p=0;p<this.path.length;p++){const v=this.path[p],{scroll:S,options:b}=v;v!==this.root&&S&&b.layoutScroll&&(S.wasRoot&&Xe(m,f),Pe(m.x,S.offset.x),Pe(m.y,S.offset.y))}return m}applyTransform(f,m=!1,y){var v,S;const p=y||kt();Xe(p,f);for(let b=0;b<this.path.length;b++){const x=this.path[b];!m&&x.options.layoutScroll&&x.scroll&&x!==x.root&&(Pe(p.x,-x.scroll.offset.x),Pe(p.y,-x.scroll.offset.y)),gi(x.latestValues)&&lu(p,x.latestValues,(v=x.layout)==null?void 0:v.layoutBox)}return gi(this.latestValues)&&lu(p,this.latestValues,(S=this.layout)==null?void 0:S.layoutBox),p}removeTransform(f){var y;const m=kt();Xe(m,f);for(let p=0;p<this.path.length;p++){const v=this.path[p];if(!gi(v.latestValues))continue;let S;v.instance&&(_c(v.latestValues)&&v.updateSnapshot(),S=kt(),Xe(S,v.measurePageBox())),fy(m,v.latestValues,(y=v.snapshot)==null?void 0:y.layoutBox,S)}return gi(this.latestValues)&&fy(m,this.latestValues),m}setTargetDelta(f){this.targetDelta=f,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(f){this.options={...this.options,...f,crossfade:f.crossfade!==void 0?f.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ae.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(f=!1){var x;const m=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=m.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=m.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=m.isSharedProjectionDirty);const y=!!this.resumingFrom||this!==m;if(!(f||y&&this.isSharedProjectionDirty||this.isProjectionDirty||(x=this.parent)!=null&&x.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:v,layoutId:S}=this.options;if(!this.layout||!(v||S))return;this.resolvedRelativeTargetAt=ae.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=kt(),this.targetWithTransforms=kt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),SA(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Xe(this.target,this.layout.layoutBox),Ig(this.target,this.targetDelta)):Xe(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||_c(this.parent.latestValues)||$g(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(f,m,y){this.relativeParent=f,this.linkedParentVersion=f.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=kt(),this.relativeTargetOrigin=kt(),gu(this.relativeTargetOrigin,m,y,this.options.layoutAnchor||void 0),Xe(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var R;const f=this.getLead(),m=!!this.resumingFrom||this!==f;let y=!0;if((this.isProjectionDirty||(R=this.parent)!=null&&R.isProjectionDirty)&&(y=!1),m&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(y=!1),this.resolvedRelativeTargetAt===ae.timestamp&&(y=!1),y)return;const{layout:p,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||!(p||v))return;Xe(this.layoutCorrected,this.layout.layoutBox);const S=this.treeScale.x,b=this.treeScale.y;kT(this.layoutCorrected,this.treeScale,this.path,m),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=kt());const{target:x}=f;if(!x){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ly(this.prevProjectionDelta.x,this.projectionDelta.x),ly(this.prevProjectionDelta.y,this.projectionDelta.y)),gl(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==S||this.treeScale.y!==b||!yy(this.projectionDelta.x,this.prevProjectionDelta.x)||!yy(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",x))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(f=!0){var m;if((m=this.options.visualElement)==null||m.scheduleRender(),f){const y=this.getStack();y&&y.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ca(),this.projectionDelta=ca(),this.projectionDeltaWithTransform=ca()}setAnimationOrigin(f,m=!1,y){const p=this.snapshot,v=p?p.latestValues:{},S={...this.latestValues},b=ca();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!m;const x=kt(),R=p?p.source:void 0,B=this.layout?this.layout.source:void 0,j=R!==B,w=this.getStack(),U=!w||w.members.length<=1,H=!!(j&&!U&&this.options.crossfade===!0&&!this.path.some(FA));this.animationProgress=0;let G;const k=y==null?void 0:y.interpolateProjection(f);this.mixTargetDelta=at=>{const X=at/1e3,K=k==null?void 0:k(X);K?(b.x.translate=K.x,b.x.scale=Rt(f.x.scale,1,X),b.x.origin=f.x.origin,b.x.originPoint=f.x.originPoint,b.y.translate=K.y,b.y.scale=Rt(f.y.scale,1,X),b.y.origin=f.y.origin,b.y.originPoint=f.y.originPoint):(Ey(b.x,f.x,X),Ey(b.y,f.y,X)),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(gu(x,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),kA(this.relativeTarget,this.relativeTargetOrigin,x,X),G&&EA(this.relativeTarget,G)&&(this.isProjectionDirty=!1),G||(G=kt()),Xe(G,this.relativeTarget)),j&&(this.animationValues=S,DA(S,v,this.latestValues,X,H,U)),K&&K.rotate!==void 0&&(this.animationValues||(this.animationValues=S),this.animationValues.pathRotation=K.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=X},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){var m,y,p;this.notifyListeners("animationStart"),(m=this.currentAnimation)==null||m.stop(),(p=(y=this.resumingFrom)==null?void 0:y.currentAnimation)==null||p.stop(),this.pendingAnimation&&(bn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=zt.update(()=>{uu.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ai(0)),this.motionValue.jump(0,!1),this.currentAnimation=zA(this.motionValue,[0,1e3],{...f,velocity:0,isSync:!0,onUpdate:v=>{this.mixTargetDelta(v),f.onUpdate&&f.onUpdate(v)},onStop:()=>{},onComplete:()=>{f.onComplete&&f.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const f=this.getStack();f&&f.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(BA),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:m,target:y,layout:p,latestValues:v}=f;if(!(!m||!y||!p)){if(this!==f&&this.layout&&p&&g0(this.options.animationType,this.layout.layoutBox,p.layoutBox)){y=this.target||kt();const S=re(this.layout.layoutBox.x);y.x.min=f.target.x.min,y.x.max=y.x.min+S;const b=re(this.layout.layoutBox.y);y.y.min=f.target.y.min,y.y.max=y.y.min+b}Xe(m,y),lu(m,v),gl(this.projectionDeltaWithTransform,this.layoutCorrected,m,v)}}registerSharedNode(f,m){this.sharedNodes.has(f)||this.sharedNodes.set(f,new UA),this.sharedNodes.get(f).add(m);const p=m.options.initialPromotionConfig;m.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(m):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){var m;const{layoutId:f}=this.options;return f?((m=this.getStack())==null?void 0:m.lead)||this:this}getPrevLead(){var m;const{layoutId:f}=this.options;return f?(m=this.getStack())==null?void 0:m.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:m,preserveFollowOpacity:y}={}){const p=this.getStack();p&&p.promote(this,y),f&&(this.projectionDelta=void 0,this.needsReset=!0),m&&this.setOptions({transition:m})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let m=!1;const{latestValues:y}=f;if((y.z||y.rotate||y.rotateX||y.rotateY||y.rotateZ||y.skewX||y.skewY)&&(m=!0),!m)return;const p={};y.z&&sc("z",f,p,this.animationValues);for(let v=0;v<lc.length;v++)sc(`rotate${lc[v]}`,f,p,this.animationValues),sc(`skew${lc[v]}`,f,p,this.animationValues);f.render();for(const v in p)f.setStaticValue(v,p[v]),this.animationValues&&(this.animationValues[v]=p[v]);f.scheduleRender()}applyProjectionStyles(f,m){if(!this.instance||this.isSVG)return;if(!this.isVisible){f.visibility="hidden";return}const y=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,f.visibility="",f.opacity="",f.pointerEvents=su(m==null?void 0:m.pointerEvents)||"",f.transform=y?y(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(f.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,f.pointerEvents=su(m==null?void 0:m.pointerEvents)||""),this.hasProjected&&!gi(this.latestValues)&&(f.transform=y?y({},""):"none",this.hasProjected=!1);return}f.visibility="";const v=p.animationValues||p.latestValues;this.applyTransformsToTarget();let S=xA(this.projectionDeltaWithTransform,this.treeScale,v);y&&(S=y(v,S)),f.transform=S;const{x:b,y:x}=this.projectionDelta;f.transformOrigin=`${b.origin*100}% ${x.origin*100}% 0`,p.animationValues?f.opacity=p===this?v.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:f.opacity=p===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const R in Bc){if(v[R]===void 0)continue;const{correct:B,applyTo:j,isCSSVariable:w}=Bc[R],U=S==="none"?v[R]:B(v[R],p);if(j){const H=j.length;for(let G=0;G<H;G++)f[j[G]]=U}else w?this.options.visualElement.renderState.vars[R]=U:f[R]=U}this.options.layoutId&&(f.pointerEvents=p===this?su(m==null?void 0:m.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(f=>{var m;return(m=f.currentAnimation)==null?void 0:m.stop()}),this.root.nodes.forEach(by),this.root.sharedNodes.clear()}}}function wA(i){i.updateLayout()}function jA(i){var u;const l=((u=i.resumeFrom)==null?void 0:u.snapshot)||i.snapshot;if(i.isLead()&&i.layout&&l&&i.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:c}=i.layout,{animationType:d}=i.options,f=l.source!==i.layout.source;if(d==="size")We(S=>{const b=f?l.measuredBox[S]:l.layoutBox[S],x=re(b);b.min=s[S].min,b.max=b.min+x});else if(d==="x"||d==="y"){const S=d==="x"?"y":"x";Nc(f?l.measuredBox[S]:l.layoutBox[S],s[S])}else g0(d,l.layoutBox,s)&&We(S=>{const b=f?l.measuredBox[S]:l.layoutBox[S],x=re(s[S]);b.max=b.min+x,i.relativeTarget&&!i.currentAnimation&&(i.isProjectionDirty=!0,i.relativeTarget[S].max=i.relativeTarget[S].min+x)});const m=ca();gl(m,s,l.layoutBox);const y=ca();f?gl(y,i.applyTransform(c,!0),l.measuredBox):gl(y,s,l.layoutBox);const p=!f0(m);let v=!1;if(!i.resumeFrom){const S=i.getClosestProjectingParent();if(S&&!S.resumeFrom){const{snapshot:b,layout:x}=S;if(b&&x){const R=i.options.layoutAnchor||void 0,B=kt();gu(B,l.layoutBox,b.layoutBox,R);const j=kt();gu(j,s,x.layoutBox,R),h0(B,j)||(v=!0),S.options.layoutRoot&&(i.relativeTarget=j,i.relativeTargetOrigin=B,i.relativeParent=S)}}}i.notifyListeners("didUpdate",{layout:s,snapshot:l,delta:y,layoutDelta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:v})}else if(i.isLead()){const{onExitComplete:s}=i.options;s&&s()}i.options.transition=void 0}function LA(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 HA(i){i.isProjectionDirty=i.isSharedProjectionDirty=i.isTransformDirty=!1}function YA(i){i.clearSnapshot()}function by(i){i.clearMeasurements()}function qA(i){i.isLayoutDirty=!0,i.updateLayout()}function Ty(i){i.isLayoutDirty=!1}function GA(i){i.isAnimationBlocked&&i.layout&&!i.isLayoutDirty&&(i.snapshot=i.layout,i.isLayoutDirty=!0)}function XA(i){const{visualElement:l}=i.options;l&&l.getProps().onBeforeLayoutMeasure&&l.notify("BeforeLayoutMeasure"),i.resetTransform()}function Ay(i){i.finishAnimation(),i.targetDelta=i.relativeTarget=i.target=void 0,i.isProjectionDirty=!0}function ZA(i){i.resolveTargetDelta()}function QA(i){i.calcProjection()}function KA(i){i.resetSkewAndRotation()}function JA(i){i.removeLeadSnapshot()}function Ey(i,l,u){i.translate=Rt(l.translate,0,u),i.scale=Rt(l.scale,1,u),i.origin=l.origin,i.originPoint=l.originPoint}function xy(i,l,u,s){i.min=Rt(l.min,u.min,s),i.max=Rt(l.max,u.max,s)}function kA(i,l,u,s){xy(i.x,l.x,u.x,s),xy(i.y,l.y,u.y,s)}function FA(i){return i.animationValues&&i.animationValues.opacityExit!==void 0}const WA={duration:.45,ease:[.4,0,.1,1]},My=i=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(i),Dy=My("applewebkit/")&&!My("chrome/")?Math.round:He;function Cy(i){i.min=Dy(i.min),i.max=Dy(i.max)}function PA(i){Cy(i.x),Cy(i.y)}function g0(i,l,u){return i==="position"||i==="preserve-aspect"&&!vA(py(l),py(u),.2)}function $A(i){var l;return i!==i.root&&((l=i.scroll)==null?void 0:l.wasRoot)}const IA=y0({attachResizeListener:(i,l)=>xl(i,"resize",l),measureScroll:()=>{var i,l;return{x:document.documentElement.scrollLeft||((i=document.body)==null?void 0:i.scrollLeft)||0,y:document.documentElement.scrollTop||((l=document.body)==null?void 0:l.scrollTop)||0}},checkIsScrollRoot:()=>!0}),uc={current:void 0},v0=y0({measureScroll:i=>({x:i.scrollLeft,y:i.scrollTop}),defaultParent:()=>{if(!uc.current){const i=new IA({});i.mount(window),i.setOptions({layoutScroll:!0}),uc.current=i}return uc.current},resetTransform:(i,l)=>{i.style.transform=l!==void 0?l:"none"},checkIsScrollRoot:i=>window.getComputedStyle(i).position==="fixed"}),Eu=q.createContext({transformPagePoint:i=>i,isStatic:!1,reducedMotion:"never"});function Ry(i,l){if(typeof i=="function")return i(l);i!=null&&(i.current=l)}function tE(...i){return l=>{let u=!1;const s=i.map(c=>{const d=Ry(c,l);return!u&&typeof d=="function"&&(u=!0),d});if(u)return()=>{for(let c=0;c<s.length;c++){const d=s[c];typeof d=="function"?d():Ry(i[c],null)}}}}function eE(...i){return q.useCallback(tE(...i),i)}class nE extends q.Component{getSnapshotBeforeUpdate(l){const u=this.props.childRef.current;if(eu(u)&&l.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const s=u.offsetParent,c=eu(s)&&s.offsetWidth||0,d=eu(s)&&s.offsetHeight||0,f=getComputedStyle(u),m=this.props.sizeRef.current;m.height=parseFloat(f.height),m.width=parseFloat(f.width),m.top=u.offsetTop,m.left=u.offsetLeft,m.right=c-m.width-m.left,m.bottom=d-m.height-m.top,m.direction=f.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function iE({children:i,isPresent:l,anchorX:u,anchorY:s,root:c,pop:d}){var b;const f=q.useId(),m=q.useRef(null),y=q.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:p}=q.useContext(Eu),v=((b=i.props)==null?void 0:b.ref)??(i==null?void 0:i.ref),S=eE(m,v);return q.useInsertionEffect(()=>{const{width:x,height:R,top:B,left:j,right:w,bottom:U,direction:H}=y.current;if(l||d===!1||!m.current||!x||!R)return;const G=H==="rtl",k=u==="left"?G?`right: ${w}`:`left: ${j}`:G?`left: ${j}`:`right: ${w}`,at=s==="bottom"?`bottom: ${U}`:`top: ${B}`;m.current.dataset.motionPopId=f;const X=document.createElement("style");p&&(X.nonce=p);const K=c??document.head;return K.appendChild(X),X.sheet&&X.sheet.insertRule(`
|
|
50
|
+
[data-motion-pop-id="${f}"] {
|
|
51
|
+
position: absolute !important;
|
|
52
|
+
width: ${x}px !important;
|
|
53
|
+
height: ${R}px !important;
|
|
54
|
+
${k}px !important;
|
|
55
|
+
${at}px !important;
|
|
56
|
+
}
|
|
57
|
+
`),()=>{var it;(it=m.current)==null||it.removeAttribute("data-motion-pop-id"),K.contains(X)&&K.removeChild(X)}},[l]),J.jsx(nE,{isPresent:l,childRef:m,sizeRef:y,pop:d,children:d===!1?i:q.cloneElement(i,{ref:S})})}const aE=({children:i,initial:l,isPresent:u,onExitComplete:s,custom:c,presenceAffectsLayout:d,mode:f,anchorX:m,anchorY:y,root:p})=>{const v=Fn(lE),S=q.useId();let b=!0,x=q.useMemo(()=>(b=!1,{id:S,initial:l,isPresent:u,custom:c,onExitComplete:R=>{v.set(R,!0);for(const B of v.values())if(!B)return;s&&s()},register:R=>(v.set(R,!1),()=>v.delete(R))}),[u,v,s]);return d&&b&&(x={...x}),q.useMemo(()=>{v.forEach((R,B)=>v.set(B,!1))},[u]),q.useEffect(()=>{!u&&!v.size&&s&&s()},[u]),i=J.jsx(iE,{pop:f==="popLayout",isPresent:u,anchorX:m,anchorY:y,root:p,children:i}),J.jsx(Su.Provider,{value:x,children:i})};function lE(){return new Map}function S0(i=!0){const l=q.useContext(Su);if(l===null)return[!0,null];const{isPresent:u,onExitComplete:s,register:c}=l,d=q.useId();q.useEffect(()=>{if(i)return c(d)},[i]);const f=q.useCallback(()=>i&&s&&s(d),[d,s,i]);return!u&&s?[!1,f]:[!0]}const Fs=i=>i.key||"";function zy(i){const l=[];return q.Children.forEach(i,u=>{q.isValidElement(u)&&l.push(u)}),l}const b0=({children:i,custom:l,initial:u=!0,onExitComplete:s,presenceAffectsLayout:c=!0,mode:d="sync",propagate:f=!1,anchorX:m="left",anchorY:y="top",root:p})=>{const[v,S]=S0(f),b=q.useMemo(()=>zy(i),[i]),x=f&&!v?[]:b.map(Fs),R=q.useRef(!0),B=q.useRef(b),j=Fn(()=>new Map),w=q.useRef(new Set),[U,H]=q.useState(b),[G,k]=q.useState(b);Gc(()=>{R.current=!1,B.current=b;for(let K=0;K<G.length;K++){const it=Fs(G[K]);x.includes(it)?(j.delete(it),w.current.delete(it)):j.get(it)!==!0&&j.set(it,!1)}},[G,x.length,x.join("-")]);const at=[];if(b!==U){let K=[...b];for(let it=0;it<G.length;it++){const tt=G[it],pt=Fs(tt);x.includes(pt)||(K.splice(it,0,tt),at.push(tt))}return d==="wait"&&at.length&&(K=at),k(zy(K)),H(b),null}const{forceRender:X}=q.useContext(qc);return J.jsx(J.Fragment,{children:G.map(K=>{const it=Fs(K),tt=f&&!v?!1:b===G||x.includes(it),pt=()=>{if(w.current.has(it))return;if(j.has(it))w.current.add(it),j.set(it,!0);else return;let vt=!0;j.forEach($t=>{$t||(vt=!1)}),vt&&(X==null||X(),k(B.current),f&&(S==null||S()),s&&s())};return J.jsx(aE,{isPresent:tt,initial:!R.current||u?void 0:!1,custom:l,presenceAffectsLayout:c,mode:d,root:p,onExitComplete:tt?void 0:pt,anchorX:m,anchorY:y,children:K},it)})})},T0=q.createContext({strict:!1}),Oy={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 Vy=!1;function sE(){if(Vy)return;const i={};for(const l in Oy)i[l]={isEnabled:u=>Oy[l].some(s=>!!u[s])};Fg(i),Vy=!0}function A0(){return sE(),ZT()}function uE(i){const l=A0();for(const u in i)l[u]={...l[u],...i[u]};Fg(l)}const oE=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 vu(i){return i.startsWith("while")||i.startsWith("drag")&&i!=="draggable"||i.startsWith("layout")||i.startsWith("onTap")||i.startsWith("onPan")||i.startsWith("onLayout")||oE.has(i)}let E0=i=>!vu(i);function rE(i){typeof i=="function"&&(E0=l=>l.startsWith("on")?!vu(l):i(l))}try{rE(require("@emotion/is-prop-valid").default)}catch{}function cE(i,l,u){const s={};for(const c in i)c==="values"&&typeof i.values=="object"||Pt(i[c])||(E0(c)||u===!0&&vu(c)||!l&&!vu(c)||i.draggable&&c.startsWith("onDrag"))&&(s[c]=i[c]);return s}const xu=q.createContext({});function fE(i,l){if(Au(i)){const{initial:u,animate:s}=i;return{initial:u===!1||El(u)?u:void 0,animate:El(s)?s:void 0}}return i.inherit!==!1?l:{}}function hE(i){const{initial:l,animate:u}=fE(i,q.useContext(xu));return q.useMemo(()=>({initial:l,animate:u}),[_y(l),_y(u)])}function _y(i){return Array.isArray(i)?i.join(" "):i}const df=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function x0(i,l,u){for(const s in l)!Pt(l[s])&&!n0(s,u)&&(i[s]=l[s])}function dE({transformTemplate:i},l){return q.useMemo(()=>{const u=df();return ff(u,l,i),Object.assign({},u.vars,u.style)},[l])}function mE(i,l){const u=i.style||{},s={};return x0(s,u,i),Object.assign(s,dE(i,l)),s}function pE(i,l){const u={},s=mE(i,l);return i.drag&&i.dragListener!==!1&&(u.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.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=s,u}const M0=()=>({...df(),attrs:{}});function yE(i,l,u,s){const c=q.useMemo(()=>{const d=M0();return i0(d,l,l0(s),i.transformTemplate,i.style),{...d.attrs,style:{...d.style}}},[l]);if(i.style){const d={};x0(d,i.style,i),c.style={...d,...c.style}}return c}const gE=["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 mf(i){return typeof i!="string"||i.includes("-")?!1:!!(gE.indexOf(i)>-1||/[A-Z]/u.test(i))}function vE(i,l,u,{latestValues:s},c,d=!1,f){const y=(f??mf(i)?yE:pE)(l,s,c,i),p=cE(l,typeof i=="string",d),v=i!==q.Fragment?{...p,...y,ref:u}:{},{children:S}=l,b=q.useMemo(()=>Pt(S)?S.get():S,[S]);return q.createElement(i,{...v,children:b})}function SE({scrapeMotionValuesFromProps:i,createRenderState:l},u,s,c){return{latestValues:bE(u,s,c,i),renderState:l()}}function bE(i,l,u,s){const c={},d=s(i,{});for(const b in d)c[b]=su(d[b]);let{initial:f,animate:m}=i;const y=Au(i),p=Jg(i);l&&p&&!y&&i.inherit!==!1&&(f===void 0&&(f=l.initial),m===void 0&&(m=l.animate));let v=u?u.initial===!1:!1;v=v||f===!1;const S=v?m:f;if(S&&typeof S!="boolean"&&!Tu(S)){const b=Array.isArray(S)?S:[S];for(let x=0;x<b.length;x++){const R=af(i,b[x]);if(R){const{transitionEnd:B,transition:j,...w}=R;for(const U in w){let H=w[U];if(Array.isArray(H)){const G=v?H.length-1:0;H=H[G]}H!==null&&(c[U]=H)}for(const U in B)c[U]=B[U]}}}return c}const D0=i=>(l,u)=>{const s=q.useContext(xu),c=q.useContext(Su),d=()=>SE(i,l,s,c);return u?d():Fn(d)},TE=D0({scrapeMotionValuesFromProps:hf,createRenderState:df}),AE=D0({scrapeMotionValuesFromProps:s0,createRenderState:M0}),EE=Symbol.for("motionComponentSymbol");function xE(i,l,u){const s=q.useRef(u);q.useInsertionEffect(()=>{s.current=u});const c=q.useRef(null);return q.useCallback(d=>{var m;d&&((m=i.onMount)==null||m.call(i,d)),l&&(d?l.mount(d):l.unmount());const f=s.current;if(typeof f=="function")if(d){const y=f(d);typeof y=="function"&&(c.current=y)}else c.current?(c.current(),c.current=null):f(d);else f&&(f.current=d)},[l])}const C0=q.createContext({});function ua(i){return i&&typeof i=="object"&&Object.prototype.hasOwnProperty.call(i,"current")}function ME(i,l,u,s,c,d){var H,G;const{visualElement:f}=q.useContext(xu),m=q.useContext(T0),y=q.useContext(Su),p=q.useContext(Eu),v=p.reducedMotion,S=p.skipAnimations,b=q.useRef(null),x=q.useRef(!1);s=s||m.renderer,!b.current&&s&&(b.current=s(i,{visualState:l,parent:f,props:u,presenceContext:y,blockInitialAnimation:y?y.initial===!1:!1,reducedMotionConfig:v,skipAnimations:S,isSVG:d}),x.current&&b.current&&(b.current.manuallyAnimateOnMount=!0));const R=b.current,B=q.useContext(C0);R&&!R.projection&&c&&(R.type==="html"||R.type==="svg")&&DE(b.current,u,c,B);const j=q.useRef(!1);q.useInsertionEffect(()=>{R&&j.current&&R.update(u,y)});const w=u[Ng],U=q.useRef(!!w&&typeof window<"u"&&!((H=window.MotionHandoffIsComplete)!=null&&H.call(window,w))&&((G=window.MotionHasOptimisedAnimation)==null?void 0:G.call(window,w)));return Gc(()=>{x.current=!0,R&&(j.current=!0,window.MotionIsMounted=!0,R.updateFeatures(),R.scheduleRenderMicrotask(),U.current&&R.animationState&&R.animationState.animateChanges())}),q.useEffect(()=>{R&&(!U.current&&R.animationState&&R.animationState.animateChanges(),U.current&&(queueMicrotask(()=>{var k;(k=window.MotionHandoffMarkAsComplete)==null||k.call(window,w)}),U.current=!1),R.enteringChildren=void 0)}),R}function DE(i,l,u,s){const{layoutId:c,layout:d,drag:f,dragConstraints:m,layoutScroll:y,layoutRoot:p,layoutAnchor:v,layoutCrossfade:S}=l;i.projection=new u(i.latestValues,l["data-framer-portal-id"]?void 0:R0(i.parent)),i.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!f||m&&ua(m),visualElement:i,animationType:typeof d=="string"?d:"both",initialPromotionConfig:s,crossfade:S,layoutScroll:y,layoutRoot:p,layoutAnchor:v})}function R0(i){if(i)return i.options.allowProjection!==!1?i.projection:R0(i.parent)}function oc(i,{forwardMotionProps:l=!1,type:u}={},s,c){s&&uE(s);const d=u?u==="svg":mf(i),f=d?AE:TE;function m(p,v){let S;const b={...q.useContext(Eu),...p,layoutId:CE(p)},{isStatic:x}=b,R=hE(p),B=f(p,x);if(!x&&typeof window<"u"){RE();const j=zE(b);S=j.MeasureLayout,R.visualElement=ME(i,B,b,c,j.ProjectionNode,d)}return J.jsxs(xu.Provider,{value:R,children:[S&&R.visualElement?J.jsx(S,{visualElement:R.visualElement,...b}):null,vE(i,p,xE(B,R.visualElement,v),B,x,l,d)]})}m.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const y=q.forwardRef(m);return y[EE]=i,y}function CE({layoutId:i}){const l=q.useContext(qc).id;return l&&i!==void 0?l+"-"+i:i}function RE(i,l){q.useContext(T0).strict}function zE(i){const l=A0(),{drag:u,layout:s}=l;if(!u&&!s)return{};const c={...u,...s};return{MeasureLayout:u!=null&&u.isEnabled(i)||s!=null&&s.isEnabled(i)?c.MeasureLayout:void 0,ProjectionNode:c.ProjectionNode}}function OE(i,l){if(typeof Proxy>"u")return oc;const u=new Map,s=(d,f)=>oc(d,f,i,l),c=(d,f)=>s(d,f);return new Proxy(c,{get:(d,f)=>f==="create"?s:(u.has(f)||u.set(f,oc(f,void 0,i,l)),u.get(f))})}const VE=(i,l)=>l.isSVG??mf(i)?new uA(l):new eA(l,{allowProjection:i!==q.Fragment});class _E extends Wn{constructor(l){super(l),l.animationState||(l.animationState=hA(l))}updateAnimationControlsSubscription(){const{animate:l}=this.node.getProps();Tu(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(){var l;this.node.animationState.reset(),(l=this.unmountControls)==null||l.call(this)}}let UE=0;class BE extends Wn{constructor(){super(...arguments),this.id=UE++,this.isExitComplete=!1}update(){var d;if(!this.node.presenceContext)return;const{isPresent:l,onExitComplete:u}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||l===s)return;if(l&&s===!1){if(this.isExitComplete){const{initial:f,custom:m}=this.node.getProps();if(typeof f=="string"||typeof f=="object"&&f!==null&&!Array.isArray(f)){const y=Ti(this.node,f,m);if(y){const{transition:p,transitionEnd:v,...S}=y;for(const b in S)(d=this.node.getValue(b))==null||d.jump(S[b])}}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 NE={animation:{Feature:_E},exit:{Feature:BE}};function Rl(i){return{point:{x:i.pageX,y:i.pageY}}}const wE=i=>l=>uf(l)&&i(l,Rl(l));function vl(i,l,u,s){return xl(i,l,wE(u),s)}const z0=({current:i})=>i?i.ownerDocument.defaultView:null,Uy=(i,l)=>Math.abs(i-l);function jE(i,l){const u=Uy(i.x,l.x),s=Uy(i.y,l.y);return Math.sqrt(u**2+s**2)}const By=new Set(["auto","scroll"]);class O0{constructor(l,u,{transformPagePoint:s,contextWindow:c=window,dragSnapToOrigin:d=!1,distanceThreshold:f=3,element:m}={}){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=x=>{this.handleScroll(x.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Ws(this.lastRawMoveEventInfo,this.transformPagePoint));const x=rc(this.lastMoveEventInfo,this.history),R=this.startEvent!==null,B=jE(x.offset,{x:0,y:0})>=this.distanceThreshold;if(!R&&!B)return;const{point:j}=x,{timestamp:w}=ae;this.history.push({...j,timestamp:w});const{onStart:U,onMove:H}=this.handlers;R||(U&&U(this.lastMoveEvent,x),this.startEvent=this.lastMoveEvent),H&&H(this.lastMoveEvent,x)},this.handlePointerMove=(x,R)=>{this.lastMoveEvent=x,this.lastRawMoveEventInfo=R,this.lastMoveEventInfo=Ws(R,this.transformPagePoint),zt.update(this.updatePoint,!0)},this.handlePointerUp=(x,R)=>{this.end();const{onEnd:B,onSessionEnd:j,resumeAnimation:w}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const U=rc(x.type==="pointercancel"?this.lastMoveEventInfo:Ws(R,this.transformPagePoint),this.history);this.startEvent&&B&&B(x,U),j&&j(x,U)},!uf(l))return;this.dragSnapToOrigin=d,this.handlers=u,this.transformPagePoint=s,this.distanceThreshold=f,this.contextWindow=c||window;const y=Rl(l),p=Ws(y,this.transformPagePoint),{point:v}=p,{timestamp:S}=ae;this.history=[{...v,timestamp:S}];const{onSessionStart:b}=u;b&&b(l,rc(p,this.history)),this.removeListeners=Ml(vl(this.contextWindow,"pointermove",this.handlePointerMove),vl(this.contextWindow,"pointerup",this.handlePointerUp),vl(this.contextWindow,"pointercancel",this.handlePointerUp)),m&&this.startScrollTracking(m)}startScrollTracking(l){let u=l.parentElement;for(;u;){const s=getComputedStyle(u);(By.has(s.overflowX)||By.has(s.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 s=l===window,c=s?{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||(s?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(),bn(this.updatePoint)}}function Ws(i,l){return l?{point:l(i.point)}:i}function Ny(i,l){return{x:i.x-l.x,y:i.y-l.y}}function rc({point:i},l){return{point:i,delta:Ny(i,V0(l)),offset:Ny(i,LE(l)),velocity:HE(l,.1)}}function LE(i){return i[0]}function V0(i){return i[i.length-1]}function HE(i,l){if(i.length<2)return{x:0,y:0};let u=i.length-1,s=null;const c=V0(i);for(;u>=0&&(s=i[u],!(c.timestamp-s.timestamp>Ce(l)));)u--;if(!s)return{x:0,y:0};s===i[0]&&i.length>2&&c.timestamp-s.timestamp>Ce(l)*2&&(s=i[1]);const d=Le(c.timestamp-s.timestamp);if(d===0)return{x:0,y:0};const f={x:(c.x-s.x)/d,y:(c.y-s.y)/d};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}function YE(i,{min:l,max:u},s){return l!==void 0&&i<l?i=s?Rt(l,i,s.min):Math.max(i,l):u!==void 0&&i>u&&(i=s?Rt(u,i,s.max):Math.min(i,u)),i}function wy(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 qE(i,{top:l,left:u,bottom:s,right:c}){return{x:wy(i.x,u,c),y:wy(i.y,l,s)}}function jy(i,l){let u=l.min-i.min,s=l.max-i.max;return l.max-l.min<i.max-i.min&&([u,s]=[s,u]),{min:u,max:s}}function GE(i,l){return{x:jy(i.x,l.x),y:jy(i.y,l.y)}}function XE(i,l){let u=.5;const s=re(i),c=re(l);return c>s?u=Tl(l.min,l.max-s,i.min):s>c&&(u=Tl(i.min,i.max-c,l.min)),Ie(0,1,u)}function ZE(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 wc=.35;function QE(i=wc){return i===!1?i=0:i===!0&&(i=wc),{x:Ly(i,"left","right"),y:Ly(i,"top","bottom")}}function Ly(i,l,u){return{min:Hy(i,l),max:Hy(i,u)}}function Hy(i,l){return typeof i=="number"?i:i[l]||0}const KE=new WeakMap;class JE{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=kt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=l}start(l,{snapToCursor:u=!1,distanceThreshold:s}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const d=S=>{u&&this.snapToCursor(Rl(S).point),this.stopAnimation()},f=(S,b)=>{const{drag:x,dragPropagation:R,onDragStart:B}=this.getProps();if(x&&!R&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ST(x),!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),We(w=>{let U=this.getAxisMotionValue(w).get()||0;if($e.test(U)){const{projection:H}=this.visualElement;if(H&&H.layout){const G=H.layout.layoutBox[w];G&&(U=re(G)*(parseFloat(U)/100))}}this.originPoint[w]=U}),B&&zt.update(()=>B(S,b),!1,!0),Dc(this.visualElement,"transform");const{animationState:j}=this.visualElement;j&&j.setActive("whileDrag",!0)},m=(S,b)=>{this.latestPointerEvent=S,this.latestPanInfo=b;const{dragPropagation:x,dragDirectionLock:R,onDirectionLock:B,onDrag:j}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:w}=b;if(R&&this.currentDirection===null){this.currentDirection=FE(w),this.currentDirection!==null&&B&&B(this.currentDirection);return}this.updateAxis("x",b.point,w),this.updateAxis("y",b.point,w),this.visualElement.render(),j&&zt.update(()=>j(S,b),!1,!0)},y=(S,b)=>{this.latestPointerEvent=S,this.latestPanInfo=b,this.stop(S,b),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>{const{dragSnapToOrigin:S}=this.getProps();(S||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:v}=this.getProps();this.panSession=new O0(l,{onSessionStart:d,onStart:f,onMove:m,onSessionEnd:y,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:v,distanceThreshold:s,contextWindow:z0(this.visualElement),element:this.visualElement.current})}stop(l,u){const s=l||this.latestPointerEvent,c=u||this.latestPanInfo,d=this.isDragging;if(this.cancel(),!d||!c||!s)return;const{velocity:f}=c;this.startAnimation(f);const{onDragEnd:m}=this.getProps();m&&zt.postRender(()=>m(s,c))}cancel(){this.isDragging=!1;const{projection:l,animationState:u}=this.visualElement;l&&(l.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&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,s){const{drag:c}=this.getProps();if(!s||!Ps(l,c,this.currentDirection))return;const d=this.getAxisMotionValue(l);let f=this.originPoint[l]+s[l];this.constraints&&this.constraints[l]&&(f=YE(f,this.constraints[l],this.elastic[l])),d.set(f)}resolveConstraints(){var d;const{dragConstraints:l,dragElastic:u}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(d=this.visualElement.projection)==null?void 0:d.layout,c=this.constraints;l&&ua(l)?this.constraints||(this.constraints=this.resolveRefConstraints()):l&&s?this.constraints=qE(s.layoutBox,l):this.constraints=!1,this.elastic=QE(u),c!==this.constraints&&!ua(l)&&s&&this.constraints&&!this.hasMutatedConstraints&&We(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=ZE(s.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:l,onMeasureDragConstraints:u}=this.getProps();if(!l||!ua(l))return!1;const s=l.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;c.root&&(c.root.scroll=void 0,c.root.updateScroll());const d=FT(s,c.root,this.visualElement.getTransformPagePoint());let f=GE(c.layout.layoutBox,d);if(u){const m=u(KT(f));this.hasMutatedConstraints=!!m,m&&(f=Pg(m))}return f}startAnimation(l){const{drag:u,dragMomentum:s,dragElastic:c,dragTransition:d,dragSnapToOrigin:f,onDragTransitionEnd:m}=this.getProps(),y=this.constraints||{},p=We(v=>{if(!Ps(v,u,this.currentDirection))return;let S=y&&y[v]||{};(f===!0||f===v)&&(S={min:0,max:0});const b=c?200:1e6,x=c?40:1e7,R={type:"inertia",velocity:s?l[v]:0,bounceStiffness:b,bounceDamping:x,timeConstant:750,restDelta:1,restSpeed:10,...d,...S};return this.startAxisValueAnimation(v,R)});return Promise.all(p).then(m)}startAxisValueAnimation(l,u){const s=this.getAxisMotionValue(l);return Dc(this.visualElement,l),s.start(nf(l,s,0,u,this.visualElement,!1))}stopAnimation(){We(l=>this.getAxisMotionValue(l).stop())}getAxisMotionValue(l){const u=`_drag${l.toUpperCase()}`,c=this.visualElement.getProps()[u];return c||this.visualElement.getValue(l,this.visualElement.latestValues[l]??0)}snapToCursor(l){We(u=>{const{drag:s}=this.getProps();if(!Ps(u,s,this.currentDirection))return;const{projection:c}=this.visualElement,d=this.getAxisMotionValue(u);if(c&&c.layout){const{min:f,max:m}=c.layout.layoutBox[u],y=d.get()||0;d.set(l[u]-Rt(f,m,.5)+y)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:l,dragConstraints:u}=this.getProps(),{projection:s}=this.visualElement;if(!ua(u)||!s||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};We(f=>{const m=this.getAxisMotionValue(f);if(m&&this.constraints!==!1){const y=m.get();c[f]=XE({min:y,max:y},this.constraints[f])}});const{transformTemplate:d}=this.visualElement.getProps();this.visualElement.current.style.transform=d?d({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.constraints=!1,this.resolveConstraints(),We(f=>{if(!Ps(f,l,null))return;const m=this.getAxisMotionValue(f),{min:y,max:p}=this.constraints[f];m.set(Rt(y,p,c[f]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;KE.set(this.visualElement,this);const l=this.visualElement.current,u=vl(l,"pointerdown",p=>{const{drag:v,dragListener:S=!0}=this.getProps(),b=p.target,x=b!==l&&MT(b);v&&S&&!x&&this.start(p)});let s;const c=()=>{const{dragConstraints:p}=this.getProps();ua(p)&&p.current&&(this.constraints=this.resolveRefConstraints(),s||(s=kE(l,p.current,()=>this.scalePositionWithinConstraints())))},{projection:d}=this.visualElement,f=d.addEventListener("measure",c);d&&!d.layout&&(d.root&&d.root.updateScroll(),d.updateLayout()),zt.read(c);const m=xl(window,"resize",()=>this.scalePositionWithinConstraints()),y=d.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:v})=>{this.isDragging&&v&&(We(S=>{const b=this.getAxisMotionValue(S);b&&(this.originPoint[S]+=p[S].translate,b.set(b.get()+p[S].translate))}),this.visualElement.render())}));return()=>{m(),u(),f(),y&&y(),s&&s()}}getProps(){const l=this.visualElement.getProps(),{drag:u=!1,dragDirectionLock:s=!1,dragPropagation:c=!1,dragConstraints:d=!1,dragElastic:f=wc,dragMomentum:m=!0}=l;return{...l,drag:u,dragDirectionLock:s,dragPropagation:c,dragConstraints:d,dragElastic:f,dragMomentum:m}}}function Yy(i){let l=!0;return()=>{if(l){l=!1;return}i()}}function kE(i,l,u){const s=Jp(i,Yy(u)),c=Jp(l,Yy(u));return()=>{s(),c()}}function Ps(i,l,u){return(l===!0||l===i)&&(u===null||u===i)}function FE(i,l=10){let u=null;return Math.abs(i.y)>l?u="y":Math.abs(i.x)>l&&(u="x"),u}class WE extends Wn{constructor(l){super(l),this.removeGroupControls=He,this.removeListeners=He,this.controls=new JE(l)}mount(){const{dragControls:l}=this.node.getProps();l&&(this.removeGroupControls=l.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||He}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 cc=i=>(l,u)=>{i&&zt.update(()=>i(l,u),!1,!0)};class PE extends Wn{constructor(){super(...arguments),this.removePointerDownListener=He}onPointerDown(l){this.session=new O0(l,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:z0(this.node)})}createPanHandlers(){const{onPanSessionStart:l,onPanStart:u,onPan:s,onPanEnd:c}=this.node.getProps();return{onSessionStart:cc(l),onStart:cc(u),onMove:cc(s),onEnd:(d,f)=>{delete this.session,c&&zt.postRender(()=>c(d,f))}}}mount(){this.removePointerDownListener=vl(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 fc=!1;class $E extends q.Component{componentDidMount(){const{visualElement:l,layoutGroup:u,switchLayoutGroup:s,layoutId:c}=this.props,{projection:d}=l;d&&(u.group&&u.group.add(d),s&&s.register&&c&&s.register(d),fc&&d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),uu.hasEverUpdated=!0}getSnapshotBeforeUpdate(l){const{layoutDependency:u,visualElement:s,drag:c,isPresent:d}=this.props,{projection:f}=s;return f&&(f.isPresent=d,l.layoutDependency!==u&&f.setOptions({...f.options,layoutDependency:u}),fc=!0,c||l.layoutDependency!==u||u===void 0||l.isPresent!==d?f.willUpdate():this.safeToRemove(),l.isPresent!==d&&(d?f.promote():f.relegate()||zt.postRender(()=>{const m=f.getStack();(!m||!m.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:l,layoutAnchor:u}=this.props,{projection:s}=l;s&&(s.options.layoutAnchor=u,s.root.didUpdate(),sf.postRender(()=>{!s.currentAnimation&&s.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:l,layoutGroup:u,switchLayoutGroup:s}=this.props,{projection:c}=l;fc=!0,c&&(c.scheduleCheckAfterUnmount(),u&&u.group&&u.group.remove(c),s&&s.deregister&&s.deregister(c))}safeToRemove(){const{safeToRemove:l}=this.props;l&&l()}render(){return null}}function _0(i){const[l,u]=S0(),s=q.useContext(qc);return J.jsx($E,{...i,layoutGroup:s,switchLayoutGroup:q.useContext(C0),isPresent:l,safeToRemove:u})}const IE={pan:{Feature:PE},drag:{Feature:WE,ProjectionNode:v0,MeasureLayout:_0}};function qy(i,l,u){const{props:s}=i;i.animationState&&s.whileHover&&i.animationState.setActive("whileHover",u==="Start");const c="onHover"+u,d=s[c];d&&zt.postRender(()=>d(l,Rl(l)))}class t2 extends Wn{mount(){const{current:l}=this.node;l&&(this.unmount=TT(l,(u,s)=>(qy(this.node,s,"Start"),c=>qy(this.node,c,"End"))))}unmount(){}}class e2 extends Wn{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=Ml(xl(this.node.current,"focus",()=>this.onFocus()),xl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Gy(i,l,u){const{props:s}=i;if(i.current instanceof HTMLButtonElement&&i.current.disabled)return;i.animationState&&s.whileTap&&i.animationState.setActive("whileTap",u==="Start");const c="onTap"+(u==="End"?"":u),d=s[c];d&&zt.postRender(()=>d(l,Rl(l)))}class n2 extends Wn{mount(){const{current:l}=this.node;if(!l)return;const{globalTapTarget:u,propagate:s}=this.node.props;this.unmount=CT(l,(c,d)=>(Gy(this.node,d,"Start"),(f,{success:m})=>Gy(this.node,f,m?"End":"Cancel")),{useGlobalTarget:u,stopPropagation:(s==null?void 0:s.tap)===!1})}unmount(){}}const jc=new WeakMap,hc=new WeakMap,i2=i=>{const l=jc.get(i.target);l&&l(i)},a2=i=>{i.forEach(i2)};function l2({root:i,...l}){const u=i||document;hc.has(u)||hc.set(u,{});const s=hc.get(u),c=JSON.stringify(l);return s[c]||(s[c]=new IntersectionObserver(a2,{root:i,...l})),s[c]}function s2(i,l,u){const s=l2(l);return jc.set(i,u),s.observe(i),()=>{jc.delete(i),s.unobserve(i)}}const u2={some:0,all:1};class o2 extends Wn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var y;(y=this.stopObserver)==null||y.call(this);const{viewport:l={}}=this.node.getProps(),{root:u,margin:s,amount:c="some",once:d}=l,f={root:u?u.current:void 0,rootMargin:s,threshold:typeof c=="number"?c:u2[c]},m=p=>{const{isIntersecting:v}=p;if(this.isInView===v||(this.isInView=v,d&&!v&&this.hasEnteredView))return;v&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",v);const{onViewportEnter:S,onViewportLeave:b}=this.node.getProps(),x=v?S:b;x&&x(p)};this.stopObserver=s2(this.node.current,f,m)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:l,prevProps:u}=this.node;["amount","margin","root"].some(r2(l,u))&&this.startObserver()}unmount(){var l;(l=this.stopObserver)==null||l.call(this),this.hasEnteredView=!1,this.isInView=!1}}function r2({viewport:i={}},{viewport:l={}}={}){return u=>i[u]!==l[u]}const c2={inView:{Feature:o2},tap:{Feature:n2},focus:{Feature:e2},hover:{Feature:t2}},f2={layout:{ProjectionNode:v0,MeasureLayout:_0}},h2={...NE,...c2,...IE,...f2},Mu=OE(h2,VE);function U0(i){const l=Fn(()=>Ai(i)),{isStatic:u}=q.useContext(Eu);if(u){const[,s]=q.useState(i);q.useEffect(()=>l.on("change",s),[])}return l}function B0(i,l){const u=U0(l()),s=()=>u.set(l());return s(),Gc(()=>{const c=()=>zt.preRender(s,!1,!0),d=i.map(f=>f.on("change",c));return()=>{d.forEach(f=>f()),bn(s)}}),u}function d2(i){yl.current=[],i();const l=B0(yl.current,i);return yl.current=void 0,l}function m2(i,l,u,s){if(typeof i=="function")return d2(i);const d=typeof l=="function"?l:jT(l,u,s),f=Array.isArray(i)?Xy(i,d):Xy([i],([y])=>d(y)),m=Array.isArray(i)?void 0:i.accelerate;return m&&!m.isTransformed&&typeof l!="function"&&Array.isArray(u)&&(s==null?void 0:s.clamp)!==!1&&(f.accelerate={...m,times:l,keyframes:u,isTransformed:!0}),f}function Xy(i,l){const u=Fn(()=>[]);return B0(i,()=>{u.length=0;const s=i.length;for(let c=0;c<s;c++)u[c]=i[c].get();return l(u)})}class p2{constructor(){this.componentControls=new Set}subscribe(l){return this.componentControls.add(l),()=>this.componentControls.delete(l)}start(l,u){this.componentControls.forEach(s=>{s.start(l.nativeEvent||l,u)})}cancel(){this.componentControls.forEach(l=>{l.cancel()})}stop(){this.componentControls.forEach(l=>{l.stop()})}}const y2=()=>new p2;function g2(){return Fn(y2)}const N0=q.createContext(null);function v2(i,l,u,s){if(!s)return i;const c=i.findIndex(v=>v.value===l);if(c===-1)return i;const d=s>0?1:-1,f=i[c+d];if(!f)return i;const m=i[c],y=f.layout,p=Rt(y.min,y.max,.5);return d===1&&m.layout.max+u>p||d===-1&&m.layout.min+u<p?yS(i,c,c+d):i}function S2({children:i,as:l="ul",axis:u="y",onReorder:s,values:c,...d},f){const m=Fn(()=>Mu[l]),y=[],p=q.useRef(!1),v=q.useRef(null),S={axis:u,groupRef:v,registerItem:(R,B)=>{const j=y.findIndex(w=>R===w.value);j!==-1?y[j].layout=B[u]:y.push({value:R,layout:B[u]}),y.sort(T2)},updateOrder:(R,B,j)=>{if(p.current)return;const w=v2(y,R,B,j);if(y!==w){p.current=!0;const U=[...c];for(let H=0;H<w.length;H++)if(y[H].value!==w[H].value){const G=c.indexOf(y[H].value),k=c.indexOf(w[H].value);G!==-1&&k!==-1&&([U[G],U[k]]=[U[k],U[G]]);break}s(U)}}};q.useEffect(()=>{p.current=!1});const b=R=>{v.current=R,typeof f=="function"?f(R):f&&(f.current=R)},x={overflowAnchor:"none",...d.style};return J.jsx(m,{...d,style:x,ref:b,ignoreStrict:!0,children:J.jsx(N0.Provider,{value:S,children:i})})}const b2=q.forwardRef(S2);function T2(i,l){return i.layout.min-l.layout.min}const $s=50,Zy=25,A2=new Set(["auto","scroll"]),Sl=new WeakMap,bl=new WeakMap;let dl=null;function E2(){if(dl){const i=Lc(dl,"y");i&&(bl.delete(i),Sl.delete(i));const l=Lc(dl,"x");l&&l!==i&&(bl.delete(l),Sl.delete(l)),dl=null}}function x2(i,l){const u=getComputedStyle(i),s=l==="x"?u.overflowX:u.overflowY,c=i===document.body||i===document.documentElement;return A2.has(s)||c}function Lc(i,l){let u=i==null?void 0:i.parentElement;for(;u;){if(x2(u,l))return u;u=u.parentElement}return null}function M2(i,l,u){const s=l.getBoundingClientRect(),c=u==="x"?Math.max(0,s.left):Math.max(0,s.top),d=u==="x"?Math.min(window.innerWidth,s.right):Math.min(window.innerHeight,s.bottom),f=i-c,m=d-i;if(f<$s){const y=1-f/$s;return{amount:-Zy*y*y,edge:"start"}}else if(m<$s){const y=1-m/$s;return{amount:Zy*y*y,edge:"end"}}return{amount:0,edge:null}}function D2(i,l,u,s){if(!i)return;dl=i;const c=Lc(i,u);if(!c)return;const d=l-(u==="x"?window.scrollX:window.scrollY),{amount:f,edge:m}=M2(d,c,u);if(m===null){bl.delete(c),Sl.delete(c);return}const y=bl.get(c),p=c===document.body||c===document.documentElement;if(y!==m){if(!(m==="start"&&s<0||m==="end"&&s>0))return;bl.set(c,m);const S=u==="x"?c.scrollWidth-(p?window.innerWidth:c.clientWidth):c.scrollHeight-(p?window.innerHeight:c.clientHeight);Sl.set(c,S)}if(f>0){const v=Sl.get(c);if((u==="x"?p?window.scrollX:c.scrollLeft:p?window.scrollY:c.scrollTop)>=v)return}u==="x"?p?window.scrollBy({left:f}):c.scrollLeft+=f:p?window.scrollBy({top:f}):c.scrollTop+=f}function Qy(i,l=0){return Pt(i)?i:U0(l)}function C2({children:i,style:l={},value:u,as:s="li",onDrag:c,onDragEnd:d,layout:f=!0,...m},y){const p=Fn(()=>Mu[s]),v=q.useContext(N0),S={x:Qy(l.x),y:Qy(l.y)},b=m2([S.x,S.y],([w,U])=>w||U?1:"unset"),{axis:x,registerItem:R,updateOrder:B,groupRef:j}=v;return J.jsx(p,{drag:x,...m,dragSnapToOrigin:!0,style:{...l,x:S.x,y:S.y,zIndex:b},layout:f,onDrag:(w,U)=>{const{velocity:H,point:G}=U,k=S[x].get();B(u,k,H[x]),D2(j.current,G[x],x,H[x]),c&&c(w,U)},onDragEnd:(w,U)=>{E2(),d&&d(w,U)},onLayoutMeasure:w=>{R(u,w)},ref:y,ignoreStrict:!0,children:i})}const R2=q.forwardRef(C2);function z2(){const[i,l]=q.useState(null),[u,s]=q.useState(!1),[c,d]=q.useState(null),f=q.useRef(null);return q.useEffect(()=>{const y=location.protocol==="https:"?"wss://":"ws://",p=new WebSocket(y+location.host);return f.current=p,p.onopen=()=>s(!0),p.onclose=()=>s(!1),p.onmessage=v=>{let S;try{S=JSON.parse(v.data)}catch{return}S.type==="state"?l({targetUrl:S.targetUrl,steps:S.steps,personality:S.personality,personalities:S.personalities,code:S.code}):S.type==="exported"&&d(S.path)},()=>p.close()},[]),{state:i,connected:u,exportedPath:c,send:y=>{var p;(p=f.current)==null||p.send(JSON.stringify(y))}}}const O2=new Set(["import","from","const","let","async","await","function","return","new","process","env","true","false","null","undefined","for","of","if"]),V2=new Set(["human","expect","page","test","sleep","chromium","createHuman","browser","console","main"]),Is=/(\/\/[^\n]*)|('(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*")|(\.[A-Za-z_$][\w$]*)|([A-Za-z_$][\w$]*)|(\d+(?:\.\d+)?)/g;function Hc(i){return i.replace(/[&<>]/g,l=>l==="&"?"&":l==="<"?"<":">")}function fl(i,l){return`<span class="t-${i}">${Hc(l)}</span>`}function _2(i){let l="",u=0;Is.lastIndex=0;for(let s=Is.exec(i);s!==null;s=Is.exec(i)){l+=Hc(i.slice(u,s.index));const[c,d,f,m,y,p]=s;if(d!==void 0)l+=fl("comment",c);else if(f!==void 0)l+=fl("string",c);else if(m!==void 0)l+=`.${fl("property",m.slice(1))}`;else if(y!==void 0){const v=O2.has(y)?"keyword":V2.has(y)?"builtin":"ident";l+=fl(v,y)}else p!==void 0&&(l+=fl("number",p));u=Is.lastIndex}return l+=Hc(i.slice(u)),l}function U2({code:i}){const l=new Map,u=i.split(`
|
|
58
|
+
`).map(s=>{const c=l.get(s)??0;return l.set(s,c+1),{key:`${s}\0${c}`,line:s}});return J.jsx("div",{className:"code-lines",children:J.jsx(b0,{initial:!1,children:u.map(({key:s,line:c})=>J.jsx(Mu.div,{layout:"position",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,position:"absolute"},transition:{duration:.18,ease:"easeOut"},className:"code-line",dangerouslySetInnerHTML:{__html:_2(c)||" "}},s))})})}function pf({value:i,options:l,onChange:u,ariaLabel:s,placeholder:c,className:d}){const[f,m]=q.useState(!1),[y,p]=q.useState(!1),[v,S]=q.useState(0),b=q.useRef(null),x=l.find(U=>U.value===i),R=(x==null?void 0:x.label)??(x==null?void 0:x.value)??c??"",B=()=>{var H;const U=(H=b.current)==null?void 0:H.getBoundingClientRect();if(U){const G=Math.min(256,l.length*33+8),k=window.innerHeight-U.bottom;p(k<G+8&&U.top>k)}S(Math.max(0,l.findIndex(G=>G.value===i))),m(!0)};q.useEffect(()=>{if(!f)return;const U=H=>{b.current&&!b.current.contains(H.target)&&m(!1)};return document.addEventListener("mousedown",U),()=>document.removeEventListener("mousedown",U)},[f]);const j=U=>{u(U),m(!1)},w=U=>{if(U.key==="Escape")m(!1);else if(U.key==="ArrowDown"||U.key==="ArrowUp"){if(U.preventDefault(),!f){B();return}S(H=>{const G=U.key==="ArrowDown"?H+1:H-1;return Math.max(0,Math.min(G,l.length-1))})}else if((U.key==="Enter"||U.key===" ")&&f){U.preventDefault();const H=l[v];H&&j(H.value)}else(U.key==="Enter"||U.key===" ")&&(U.preventDefault(),B())};return J.jsxs("div",{className:`select${d?` ${d}`:""}`,ref:b,children:[J.jsxs("button",{type:"button",className:"select-btn","aria-haspopup":"listbox","aria-expanded":f,"aria-label":s,onClick:()=>f?m(!1):B(),onKeyDown:w,children:[J.jsx("span",{className:"select-value",children:R}),J.jsx("span",{className:"select-caret","aria-hidden":!0,children:"▾"})]}),J.jsx(b0,{children:f&&J.jsx(Mu.ul,{className:`select-list${y?" drop-up":""}`,"aria-label":s,initial:{opacity:0,y:y?4:-4},animate:{opacity:1,y:0},exit:{opacity:0,y:y?4:-4},transition:{duration:.12,ease:"easeOut"},children:l.map((U,H)=>J.jsx("li",{children:J.jsx("button",{type:"button","aria-pressed":U.value===i,className:["select-opt",U.value===i?"is-selected":"",H===v?"is-active":""].filter(Boolean).join(" "),onMouseEnter:()=>S(H),onClick:()=>j(U.value),children:U.label??U.value})},U.value))})})]})}const B2=["visible","text","url"];function ou(i,l){const u=i.params[l];return typeof u=="string"?u:""}function N2(i){const l=i.params.candidates;return Array.isArray(l)?l:[]}function w2(i){const l=i.params;return typeof i.inputValue=="string"?JSON.stringify(i.inputValue):typeof l.from=="string"?`${l.from} → ${String(l.to??"")}`:typeof l.key=="string"?l.key:typeof l.url=="string"?l.url:Array.isArray(l.values)?JSON.stringify(l.values):ou(i,"target")}function j2({afterId:i,send:l}){const[u,s]=q.useState(!1),[c,d]=q.useState("visible"),[f,m]=q.useState(""),[y,p]=q.useState("");if(!u)return J.jsx("button",{type:"button",className:"link",onClick:()=>s(!0),children:"+ assert"});const v=()=>{const S={type:"addAssert",afterId:i,kind:c,...c!=="url"&&f?{target:f}:{},...c!=="visible"&&y?{value:y}:{}};l(S),s(!1),m(""),p("")};return J.jsxs("div",{className:"assert-form",children:[J.jsx(pf,{ariaLabel:"assertion kind",value:c,options:B2.map(S=>({value:S})),onChange:S=>d(S)}),c!=="url"&&J.jsx("input",{"aria-label":"assertion target",placeholder:"selector",value:f,onChange:S=>m(S.target.value)}),c!=="visible"&&J.jsx("input",{"aria-label":"assertion value",placeholder:c==="url"?"url":"expected text",value:y,onChange:S=>p(S.target.value)}),J.jsx("button",{type:"button",onClick:v,children:"add"}),J.jsx("button",{type:"button",className:"link",onClick:()=>s(!1),children:"cancel"})]})}function L2({step:i,send:l,onDragStart:u,onDragEnd:s}){const c=g2(),d=N2(i),f=ou(i,"target"),m=i.type==="type"||i.type==="paste",y=ou(i,"secret"),p=ou(i,"label");return J.jsxs(R2,{value:i,dragListener:!1,dragControls:c,onDragStart:u,onDragEnd:s,className:"step",whileDrag:{scale:1.015},children:[J.jsxs("div",{className:"step-head",children:[J.jsx("button",{type:"button",className:"grip","aria-label":"drag to reorder",onPointerDown:v=>c.start(v),children:"⋮⋮"}),J.jsx("span",{className:`kind kind-${i.type}`,children:i.type}),J.jsx("span",{className:"detail",children:w2(i)}),J.jsx("button",{type:"button",className:"del","aria-label":"delete step",onClick:()=>l({type:"delete",id:i.id}),children:"✕"})]}),J.jsxs("div",{className:"step-edit",children:[d.length>1&&i.type!=="assert"&&J.jsx(pf,{className:"picker",ariaLabel:"selector",value:f,options:d.map(v=>({value:v})),onChange:v=>l({type:"update",id:i.id,patch:{target:v}})}),m&&J.jsx("input",{"aria-label":"value",className:"value",defaultValue:i.inputValue??"",placeholder:i.inputValue===void 0?"(masked)":"",onBlur:v=>l({type:"update",id:i.id,patch:{inputValue:v.target.value}})}),m&&J.jsxs("label",{className:"secret",children:[J.jsx("input",{type:"checkbox",checked:y!=="",onChange:v=>l({type:"update",id:i.id,patch:{secret:v.target.checked?"SECRET":null}})}),"secret",y!==""&&J.jsx("input",{"aria-label":"env var name",className:"env",defaultValue:y,onBlur:v=>l({type:"update",id:i.id,patch:{secret:v.target.value||null}})})]}),J.jsx("input",{"aria-label":"label",className:"label",placeholder:"label…",defaultValue:p,onBlur:v=>l({type:"update",id:i.id,patch:{label:v.target.value}})}),J.jsx(j2,{afterId:i.id,send:l})]})]})}function H2(){const{state:i,connected:l,exportedPath:u,send:s}=z2(),[c,d]=q.useState([]),f=q.useRef(!1),m=q.useRef(null),y=q.useRef(!0),p=(i==null?void 0:i.steps.length)??0;return q.useEffect(()=>{i&&!f.current&&d([...i.steps])},[i]),q.useEffect(()=>{if(!y.current)return;const v=requestAnimationFrame(()=>{const S=m.current;S&&S.scrollTo({top:S.scrollHeight,behavior:"smooth"})});return()=>cancelAnimationFrame(v)},[p]),i?J.jsxs("div",{className:"layout",children:[J.jsxs("section",{className:"editor",ref:m,onScroll:v=>{const S=v.currentTarget;y.current=S.scrollHeight-S.scrollTop-S.clientHeight<80},children:[J.jsxs("header",{className:"topbar",children:[J.jsxs("h1",{children:[J.jsx("span",{className:"accent",children:"HumanJS"})," Generator"]}),J.jsxs("p",{className:"muted target",children:["Recording: ",i.targetUrl]}),J.jsxs("div",{className:"controls",children:[J.jsxs("div",{className:"field",children:[J.jsx("span",{children:"Personality"}),J.jsx(pf,{ariaLabel:"personality",value:i.personality,options:i.personalities.map(v=>({value:v})),onChange:v=>s({type:"setPersonality",personality:v})})]}),J.jsx("button",{type:"button",onClick:()=>s({type:"export",format:"spec"}),children:"Export .spec.ts"}),J.jsx("button",{type:"button",onClick:()=>s({type:"export",format:"script"}),children:"Export .ts"})]}),u&&J.jsxs("p",{className:"saved",children:["Saved ",u]})]}),c.length===0?J.jsx("p",{className:"muted hint",children:"No steps yet — interact with the Chromium window. Drag the handle to reorder."}):J.jsx(b2,{axis:"y",values:c,onReorder:v=>{d(v),s({type:"reorder",ids:v.map(S=>S.id)})},className:"steps",children:c.map(v=>J.jsx(L2,{step:v,send:s,onDragStart:()=>{f.current=!0},onDragEnd:()=>{f.current=!1}},v.id))})]}),J.jsxs("section",{className:"preview",children:[J.jsx("header",{className:"preview-head",children:J.jsx("span",{className:"muted",children:"Live preview · spec"})}),J.jsx(U2,{code:i.code})]})]}):J.jsxs("main",{className:"empty-state",children:[J.jsxs("h1",{children:[J.jsx("span",{className:"accent",children:"HumanJS"})," Generator"]}),J.jsx("p",{className:"muted",children:l?"Waiting for the session…":"Connecting…"})]})}const Ky=document.getElementById("root");Ky&&mS.createRoot(Ky).render(J.jsx(q.StrictMode,{children:J.jsx(H2,{})}));
|