@scenar/cli 0.6.0 → 0.7.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.
@@ -0,0 +1,147 @@
1
+ var lc={exports:{}},El={};/**
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 _p;function XS(){if(_p)return El;_p=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(u,c,d){var f=null;if(d!==void 0&&(f=""+d),c.key!==void 0&&(f=""+c.key),"key"in c){d={};for(var m in c)m!=="key"&&(d[m]=c[m])}else d=c;return c=d.ref,{$$typeof:a,type:u,key:f,ref:c!==void 0?c:null,props:d}}return El.Fragment=i,El.jsx=s,El.jsxs=s,El}var Vp;function kS(){return Vp||(Vp=1,lc.exports=XS()),lc.exports}var M=kS(),sc={exports:{}},ct={};/**
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 Np;function ZS(){if(Np)return ct;Np=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),u=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"),g=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),b=Symbol.iterator;function x(C){return C===null||typeof C!="object"?null:(C=b&&C[b]||C["@@iterator"],typeof C=="function"?C:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,j={};function B(C,L,I){this.props=C,this.context=L,this.refs=j,this.updater=I||A}B.prototype.isReactComponent={},B.prototype.setState=function(C,L){if(typeof C!="object"&&typeof C!="function"&&C!=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,C,L,"setState")},B.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function q(){}q.prototype=B.prototype;function Y(C,L,I){this.props=C,this.context=L,this.refs=j,this.updater=I||A}var J=Y.prototype=new q;J.constructor=Y,w(J,B.prototype),J.isPureReactComponent=!0;var W=Array.isArray;function F(){}var X={H:null,A:null,T:null,S:null},Q=Object.prototype.hasOwnProperty;function Z(C,L,I){var et=I.ref;return{$$typeof:a,type:C,key:L,ref:et!==void 0?et:null,props:I}}function k(C,L){return Z(C.type,L,C.props)}function $(C){return typeof C=="object"&&C!==null&&C.$$typeof===a}function K(C){var L={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(I){return L[I]})}var ot=/\/+/g;function bt(C,L){return typeof C=="object"&&C!==null&&C.key!=null?K(""+C.key):L.toString(36)}function Mt(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(F,F):(C.status="pending",C.then(function(L){C.status==="pending"&&(C.status="fulfilled",C.value=L)},function(L){C.status==="pending"&&(C.status="rejected",C.reason=L)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function V(C,L,I,et,st){var mt=typeof C;(mt==="undefined"||mt==="boolean")&&(C=null);var Tt=!1;if(C===null)Tt=!0;else switch(mt){case"bigint":case"string":case"number":Tt=!0;break;case"object":switch(C.$$typeof){case a:case i:Tt=!0;break;case g:return Tt=C._init,V(Tt(C._payload),L,I,et,st)}}if(Tt)return st=st(C),Tt=et===""?"."+bt(C,0):et,W(st)?(I="",Tt!=null&&(I=Tt.replace(ot,"$&/")+"/"),V(st,L,I,"",function(na){return na})):st!=null&&($(st)&&(st=k(st,I+(st.key==null||C&&C.key===st.key?"":(""+st.key).replace(ot,"$&/")+"/")+Tt)),L.push(st)),1;Tt=0;var Yt=et===""?".":et+":";if(W(C))for(var Vt=0;Vt<C.length;Vt++)et=C[Vt],mt=Yt+bt(et,Vt),Tt+=V(et,L,I,mt,st);else if(Vt=x(C),typeof Vt=="function")for(C=Vt.call(C),Vt=0;!(et=C.next()).done;)et=et.value,mt=Yt+bt(et,Vt++),Tt+=V(et,L,I,mt,st);else if(mt==="object"){if(typeof C.then=="function")return V(Mt(C),L,I,et,st);throw L=String(C),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return Tt}function P(C,L,I){if(C==null)return C;var et=[],st=0;return V(C,et,"","",function(mt){return L.call(I,mt,st++)}),et}function tt(C){if(C._status===-1){var L=C._result;L=L(),L.then(function(I){(C._status===0||C._status===-1)&&(C._status=1,C._result=I)},function(I){(C._status===0||C._status===-1)&&(C._status=2,C._result=I)}),C._status===-1&&(C._status=0,C._result=L)}if(C._status===1)return C._result.default;throw C._result}var rt=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)},dt={map:P,forEach:function(C,L,I){P(C,function(){L.apply(this,arguments)},I)},count:function(C){var L=0;return P(C,function(){L++}),L},toArray:function(C){return P(C,function(L){return L})||[]},only:function(C){if(!$(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};return ct.Activity=v,ct.Children=dt,ct.Component=B,ct.Fragment=s,ct.Profiler=c,ct.PureComponent=Y,ct.StrictMode=u,ct.Suspense=y,ct.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,ct.__COMPILER_RUNTIME={__proto__:null,c:function(C){return X.H.useMemoCache(C)}},ct.cache=function(C){return function(){return C.apply(null,arguments)}},ct.cacheSignal=function(){return null},ct.cloneElement=function(C,L,I){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var et=w({},C.props),st=C.key;if(L!=null)for(mt in L.key!==void 0&&(st=""+L.key),L)!Q.call(L,mt)||mt==="key"||mt==="__self"||mt==="__source"||mt==="ref"&&L.ref===void 0||(et[mt]=L[mt]);var mt=arguments.length-2;if(mt===1)et.children=I;else if(1<mt){for(var Tt=Array(mt),Yt=0;Yt<mt;Yt++)Tt[Yt]=arguments[Yt+2];et.children=Tt}return Z(C.type,st,et)},ct.createContext=function(C){return C={$$typeof:f,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:d,_context:C},C},ct.createElement=function(C,L,I){var et,st={},mt=null;if(L!=null)for(et in L.key!==void 0&&(mt=""+L.key),L)Q.call(L,et)&&et!=="key"&&et!=="__self"&&et!=="__source"&&(st[et]=L[et]);var Tt=arguments.length-2;if(Tt===1)st.children=I;else if(1<Tt){for(var Yt=Array(Tt),Vt=0;Vt<Tt;Vt++)Yt[Vt]=arguments[Vt+2];st.children=Yt}if(C&&C.defaultProps)for(et in Tt=C.defaultProps,Tt)st[et]===void 0&&(st[et]=Tt[et]);return Z(C,mt,st)},ct.createRef=function(){return{current:null}},ct.forwardRef=function(C){return{$$typeof:m,render:C}},ct.isValidElement=$,ct.lazy=function(C){return{$$typeof:g,_payload:{_status:-1,_result:C},_init:tt}},ct.memo=function(C,L){return{$$typeof:p,type:C,compare:L===void 0?null:L}},ct.startTransition=function(C){var L=X.T,I={};X.T=I;try{var et=C(),st=X.S;st!==null&&st(I,et),typeof et=="object"&&et!==null&&typeof et.then=="function"&&et.then(F,rt)}catch(mt){rt(mt)}finally{L!==null&&I.types!==null&&(L.types=I.types),X.T=L}},ct.unstable_useCacheRefresh=function(){return X.H.useCacheRefresh()},ct.use=function(C){return X.H.use(C)},ct.useActionState=function(C,L,I){return X.H.useActionState(C,L,I)},ct.useCallback=function(C,L){return X.H.useCallback(C,L)},ct.useContext=function(C){return X.H.useContext(C)},ct.useDebugValue=function(){},ct.useDeferredValue=function(C,L){return X.H.useDeferredValue(C,L)},ct.useEffect=function(C,L){return X.H.useEffect(C,L)},ct.useEffectEvent=function(C){return X.H.useEffectEvent(C)},ct.useId=function(){return X.H.useId()},ct.useImperativeHandle=function(C,L,I){return X.H.useImperativeHandle(C,L,I)},ct.useInsertionEffect=function(C,L){return X.H.useInsertionEffect(C,L)},ct.useLayoutEffect=function(C,L){return X.H.useLayoutEffect(C,L)},ct.useMemo=function(C,L){return X.H.useMemo(C,L)},ct.useOptimistic=function(C,L){return X.H.useOptimistic(C,L)},ct.useReducer=function(C,L,I){return X.H.useReducer(C,L,I)},ct.useRef=function(C){return X.H.useRef(C)},ct.useState=function(C){return X.H.useState(C)},ct.useSyncExternalStore=function(C,L,I){return X.H.useSyncExternalStore(C,L,I)},ct.useTransition=function(){return X.H.useTransition()},ct.version="19.2.5",ct}var Bp;function lf(){return Bp||(Bp=1,sc.exports=ZS()),sc.exports}var E=lf(),uc={exports:{}},Al={},rc={exports:{}},oc={};/**
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 Up;function QS(){return Up||(Up=1,function(a){function i(V,P){var tt=V.length;V.push(P);t:for(;0<tt;){var rt=tt-1>>>1,dt=V[rt];if(0<c(dt,P))V[rt]=P,V[tt]=dt,tt=rt;else break t}}function s(V){return V.length===0?null:V[0]}function u(V){if(V.length===0)return null;var P=V[0],tt=V.pop();if(tt!==P){V[0]=tt;t:for(var rt=0,dt=V.length,C=dt>>>1;rt<C;){var L=2*(rt+1)-1,I=V[L],et=L+1,st=V[et];if(0>c(I,tt))et<dt&&0>c(st,I)?(V[rt]=st,V[et]=tt,rt=et):(V[rt]=I,V[L]=tt,rt=L);else if(et<dt&&0>c(st,tt))V[rt]=st,V[et]=tt,rt=et;else break t}}return P}function c(V,P){var tt=V.sortIndex-P.sortIndex;return tt!==0?tt:V.id-P.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;a.unstable_now=function(){return d.now()}}else{var f=Date,m=f.now();a.unstable_now=function(){return f.now()-m}}var y=[],p=[],g=1,v=null,b=3,x=!1,A=!1,w=!1,j=!1,B=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;function J(V){for(var P=s(p);P!==null;){if(P.callback===null)u(p);else if(P.startTime<=V)u(p),P.sortIndex=P.expirationTime,i(y,P);else break;P=s(p)}}function W(V){if(w=!1,J(V),!A)if(s(y)!==null)A=!0,F||(F=!0,K());else{var P=s(p);P!==null&&Mt(W,P.startTime-V)}}var F=!1,X=-1,Q=5,Z=-1;function k(){return j?!0:!(a.unstable_now()-Z<Q)}function $(){if(j=!1,F){var V=a.unstable_now();Z=V;var P=!0;try{t:{A=!1,w&&(w=!1,q(X),X=-1),x=!0;var tt=b;try{e:{for(J(V),v=s(y);v!==null&&!(v.expirationTime>V&&k());){var rt=v.callback;if(typeof rt=="function"){v.callback=null,b=v.priorityLevel;var dt=rt(v.expirationTime<=V);if(V=a.unstable_now(),typeof dt=="function"){v.callback=dt,J(V),P=!0;break e}v===s(y)&&u(y),J(V)}else u(y);v=s(y)}if(v!==null)P=!0;else{var C=s(p);C!==null&&Mt(W,C.startTime-V),P=!1}}break t}finally{v=null,b=tt,x=!1}P=void 0}}finally{P?K():F=!1}}}var K;if(typeof Y=="function")K=function(){Y($)};else if(typeof MessageChannel<"u"){var ot=new MessageChannel,bt=ot.port2;ot.port1.onmessage=$,K=function(){bt.postMessage(null)}}else K=function(){B($,0)};function Mt(V,P){X=B(function(){V(a.unstable_now())},P)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(V){V.callback=null},a.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"):Q=0<V?Math.floor(1e3/V):5},a.unstable_getCurrentPriorityLevel=function(){return b},a.unstable_next=function(V){switch(b){case 1:case 2:case 3:var P=3;break;default:P=b}var tt=b;b=P;try{return V()}finally{b=tt}},a.unstable_requestPaint=function(){j=!0},a.unstable_runWithPriority=function(V,P){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var tt=b;b=V;try{return P()}finally{b=tt}},a.unstable_scheduleCallback=function(V,P,tt){var rt=a.unstable_now();switch(typeof tt=="object"&&tt!==null?(tt=tt.delay,tt=typeof tt=="number"&&0<tt?rt+tt:rt):tt=rt,V){case 1:var dt=-1;break;case 2:dt=250;break;case 5:dt=1073741823;break;case 4:dt=1e4;break;default:dt=5e3}return dt=tt+dt,V={id:g++,callback:P,priorityLevel:V,startTime:tt,expirationTime:dt,sortIndex:-1},tt>rt?(V.sortIndex=tt,i(p,V),s(y)===null&&V===s(p)&&(w?(q(X),X=-1):w=!0,Mt(W,tt-rt))):(V.sortIndex=dt,i(y,V),A||x||(A=!0,F||(F=!0,K()))),V},a.unstable_shouldYield=k,a.unstable_wrapCallback=function(V){var P=b;return function(){var tt=b;b=P;try{return V.apply(this,arguments)}finally{b=tt}}}}(oc)),oc}var Lp;function KS(){return Lp||(Lp=1,rc.exports=QS()),rc.exports}var cc={exports:{}},ce={};/**
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 Hp;function JS(){if(Hp)return ce;Hp=1;var a=lf();function i(y){var p="https://react.dev/errors/"+y;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)p+="&args[]="+encodeURIComponent(arguments[g])}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 s(){}var u={d:{f:s,r:function(){throw Error(i(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},c=Symbol.for("react.portal");function d(y,p,g){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:v==null?null:""+v,children:y,containerInfo:p,implementation:g}}var f=a.__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 ce.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,ce.createPortal=function(y,p){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(i(299));return d(y,p,null,g)},ce.flushSync=function(y){var p=f.T,g=u.p;try{if(f.T=null,u.p=2,y)return y()}finally{f.T=p,u.p=g,u.d.f()}},ce.preconnect=function(y,p){typeof y=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,u.d.C(y,p))},ce.prefetchDNS=function(y){typeof y=="string"&&u.d.D(y)},ce.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var g=p.as,v=m(g,p.crossOrigin),b=typeof p.integrity=="string"?p.integrity:void 0,x=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;g==="style"?u.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:v,integrity:b,fetchPriority:x}):g==="script"&&u.d.X(y,{crossOrigin:v,integrity:b,fetchPriority:x,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},ce.preinitModule=function(y,p){if(typeof y=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var g=m(p.as,p.crossOrigin);u.d.M(y,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&u.d.M(y)},ce.preload=function(y,p){if(typeof y=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var g=p.as,v=m(g,p.crossOrigin);u.d.L(y,g,{crossOrigin:v,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})}},ce.preloadModule=function(y,p){if(typeof y=="string")if(p){var g=m(p.as,p.crossOrigin);u.d.m(y,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else u.d.m(y)},ce.requestFormReset=function(y){u.d.r(y)},ce.unstable_batchedUpdates=function(y,p){return y(p)},ce.useFormState=function(y,p,g){return f.H.useFormState(y,p,g)},ce.useFormStatus=function(){return f.H.useHostTransitionStatus()},ce.version="19.2.5",ce}var Yp;function PS(){if(Yp)return cc.exports;Yp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),cc.exports=JS(),cc.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 qp;function FS(){if(qp)return Al;qp=1;var a=KS(),i=lf(),s=PS();function u(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(u(188))}function p(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(u(188));return e!==t?null:t}for(var n=t,l=e;;){var r=n.return;if(r===null)break;var o=r.alternate;if(o===null){if(l=r.return,l!==null){n=l;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===n)return y(r),t;if(o===l)return y(r),e;o=o.sibling}throw Error(u(188))}if(n.return!==l.return)n=r,l=o;else{for(var h=!1,S=r.child;S;){if(S===n){h=!0,n=r,l=o;break}if(S===l){h=!0,l=r,n=o;break}S=S.sibling}if(!h){for(S=o.child;S;){if(S===n){h=!0,n=o,l=r;break}if(S===l){h=!0,l=o,n=r;break}S=S.sibling}if(!h)throw Error(u(189))}}if(n.alternate!==l)throw Error(u(190))}if(n.tag!==3)throw Error(u(188));return n.stateNode.current===n?t:e}function g(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=g(t),e!==null)return e;t=t.sibling}return null}var v=Object.assign,b=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),J=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),k=Symbol.for("react.memo_cache_sentinel"),$=Symbol.iterator;function K(t){return t===null||typeof t!="object"?null:(t=$&&t[$]||t["@@iterator"],typeof t=="function"?t:null)}var ot=Symbol.for("react.client.reference");function bt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ot?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case w:return"Fragment";case B:return"Profiler";case j:return"StrictMode";case W:return"Suspense";case F:return"SuspenseList";case Z:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case A:return"Portal";case Y:return t.displayName||"Context";case q:return(t._context.displayName||"Context")+".Consumer";case J: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:bt(t.type)||"Memo";case Q:e=t._payload,t=t._init;try{return bt(t(e))}catch{}}return null}var Mt=Array.isArray,V=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,tt={pending:!1,data:null,method:null,action:null},rt=[],dt=-1;function C(t){return{current:t}}function L(t){0>dt||(t.current=rt[dt],rt[dt]=null,dt--)}function I(t,e){dt++,rt[dt]=t.current,t.current=e}var et=C(null),st=C(null),mt=C(null),Tt=C(null);function Yt(t,e){switch(I(mt,e),I(st,t),I(et,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?np(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=np(e),t=ap(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}L(et),I(et,t)}function Vt(){L(et),L(st),L(mt)}function na(t){t.memoizedState!==null&&I(Tt,t);var e=et.current,n=ap(e,t.type);e!==n&&(I(st,t),I(et,n))}function un(t){st.current===t&&(L(et),L(st)),Tt.current===t&&(L(Tt),Sl._currentValue=tt)}var wa,za;function Fe(t){if(wa===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);wa=e&&e[1]||"",za=-1<n.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+wa+t+za}var aa=!1;function Di(t,e){if(!t||aa)return"";aa=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(N){var _=N}Reflect.construct(t,[],G)}else{try{G.call()}catch(N){_=N}t.call(G.prototype)}}else{try{throw Error()}catch(N){_=N}(G=t())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(N){if(N&&_&&typeof N.stack=="string")return[N.stack,_.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=l.DetermineComponentFrameRoot(),h=o[0],S=o[1];if(h&&S){var T=h.split(`
44
+ `),O=S.split(`
45
+ `);for(r=l=0;l<T.length&&!T[l].includes("DetermineComponentFrameRoot");)l++;for(;r<O.length&&!O[r].includes("DetermineComponentFrameRoot");)r++;if(l===T.length||r===O.length)for(l=T.length-1,r=O.length-1;1<=l&&0<=r&&T[l]!==O[r];)r--;for(;1<=l&&0<=r;l--,r--)if(T[l]!==O[r]){if(l!==1||r!==1)do if(l--,r--,0>r||T[l]!==O[r]){var U=`
46
+ `+T[l].replace(" at new "," at ");return t.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",t.displayName)),U}while(1<=l&&0<=r);break}}}finally{aa=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Fe(n):""}function Gu(t,e){switch(t.tag){case 26:case 27:case 5:return Fe(t.type);case 16:return Fe("Lazy");case 13:return t.child!==e&&e!==null?Fe("Suspense Fallback"):Fe("Suspense");case 19:return Fe("SuspenseList");case 0:case 15:return Di(t.type,!1);case 11:return Di(t.type.render,!1);case 1:return Di(t.type,!0);case 31:return Fe("Activity");default:return""}}function Hl(t){try{var e="",n=null;do e+=Gu(t,n),n=t,t=t.return;while(t);return e}catch(l){return`
47
+ Error generating stack: `+l.message+`
48
+ `+l.stack}}var Ri=Object.prototype.hasOwnProperty,wi=a.unstable_scheduleCallback,ia=a.unstable_cancelCallback,Xu=a.unstable_shouldYield,Yl=a.unstable_requestPaint,oe=a.unstable_now,ql=a.unstable_getCurrentPriorityLevel,zi=a.unstable_ImmediatePriority,Oi=a.unstable_UserBlockingPriority,Oa=a.unstable_NormalPriority,ku=a.unstable_LowPriority,Gl=a.unstable_IdlePriority,Xl=a.log,Zu=a.unstable_setDisableYieldValue,Nt=null,Rt=null;function fe(t){if(typeof Xl=="function"&&Zu(t),Rt&&typeof Rt.setStrictMode=="function")try{Rt.setStrictMode(Nt,t)}catch{}}var de=Math.clz32?Math.clz32:wv,Dv=Math.log,Rv=Math.LN2;function wv(t){return t>>>=0,t===0?32:31-(Dv(t)/Rv|0)|0}var kl=256,Zl=262144,Ql=4194304;function la(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 Kl(t,e,n){var l=t.pendingLanes;if(l===0)return 0;var r=0,o=t.suspendedLanes,h=t.pingedLanes;t=t.warmLanes;var S=l&134217727;return S!==0?(l=S&~o,l!==0?r=la(l):(h&=S,h!==0?r=la(h):n||(n=S&~t,n!==0&&(r=la(n))))):(S=l&~o,S!==0?r=la(S):h!==0?r=la(h):n||(n=l&~t,n!==0&&(r=la(n)))),r===0?0:e!==0&&e!==r&&(e&o)===0&&(o=r&-r,n=e&-e,o>=n||o===32&&(n&4194048)!==0)?e:r}function ji(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function zv(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 Uf(){var t=Ql;return Ql<<=1,(Ql&62914560)===0&&(Ql=4194304),t}function Qu(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function _i(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Ov(t,e,n,l,r,o){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 S=t.entanglements,T=t.expirationTimes,O=t.hiddenUpdates;for(n=h&~n;0<n;){var U=31-de(n),G=1<<U;S[U]=0,T[U]=-1;var _=O[U];if(_!==null)for(O[U]=null,U=0;U<_.length;U++){var N=_[U];N!==null&&(N.lane&=-536870913)}n&=~G}l!==0&&Lf(t,l,0),o!==0&&r===0&&t.tag!==0&&(t.suspendedLanes|=o&~(h&~e))}function Lf(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-de(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|n&261930}function Hf(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var l=31-de(n),r=1<<l;r&e|t[l]&e&&(t[l]|=e),n&=~r}}function Yf(t,e){var n=e&-e;return n=(n&42)!==0?1:Ku(n),(n&(t.suspendedLanes|e))!==0?0:n}function Ku(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 Ju(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function qf(){var t=P.p;return t!==0?t:(t=window.event,t===void 0?32:Cp(t.type))}function Gf(t,e){var n=P.p;try{return P.p=t,e()}finally{P.p=n}}var Cn=Math.random().toString(36).slice(2),ne="__reactFiber$"+Cn,ye="__reactProps$"+Cn,ja="__reactContainer$"+Cn,Pu="__reactEvents$"+Cn,jv="__reactListeners$"+Cn,_v="__reactHandles$"+Cn,Xf="__reactResources$"+Cn,Vi="__reactMarker$"+Cn;function Fu(t){delete t[ne],delete t[ye],delete t[Pu],delete t[jv],delete t[_v]}function _a(t){var e=t[ne];if(e)return e;for(var n=t.parentNode;n;){if(e=n[ja]||n[ne]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=cp(t);t!==null;){if(n=t[ne])return n;t=cp(t)}return e}t=n,n=t.parentNode}return null}function Va(t){if(t=t[ne]||t[ja]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Ni(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(u(33))}function Na(t){var e=t[Xf];return e||(e=t[Xf]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function It(t){t[Vi]=!0}var kf=new Set,Zf={};function sa(t,e){Ba(t,e),Ba(t+"Capture",e)}function Ba(t,e){for(Zf[t]=e,t=0;t<e.length;t++)kf.add(e[t])}var Vv=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]*$"),Qf={},Kf={};function Nv(t){return Ri.call(Kf,t)?!0:Ri.call(Qf,t)?!1:Vv.test(t)?Kf[t]=!0:(Qf[t]=!0,!1)}function Jl(t,e,n){if(Nv(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function Pl(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 rn(t,e,n,l){if(l===null)t.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+l)}}function Oe(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Jf(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Bv(t,e,n){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var r=l.get,o=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(h){n=""+h,o.call(this,h)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Wu(t){if(!t._valueTracker){var e=Jf(t)?"checked":"value";t._valueTracker=Bv(t,e,""+t[e])}}function Pf(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),l="";return t&&(l=Jf(t)?t.checked?"true":"false":t.value),t=l,t!==n?(e.setValue(t),!0):!1}function Fl(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 Uv=/[\n"\\]/g;function je(t){return t.replace(Uv,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function $u(t,e,n,l,r,o,h,S){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=""+Oe(e)):t.value!==""+Oe(e)&&(t.value=""+Oe(e)):h!=="submit"&&h!=="reset"||t.removeAttribute("value"),e!=null?Iu(t,h,Oe(e)):n!=null?Iu(t,h,Oe(n)):l!=null&&t.removeAttribute("value"),r==null&&o!=null&&(t.defaultChecked=!!o),r!=null&&(t.checked=r&&typeof r!="function"&&typeof r!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?t.name=""+Oe(S):t.removeAttribute("name")}function Ff(t,e,n,l,r,o,h,S){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(t.type=o),e!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||e!=null)){Wu(t);return}n=n!=null?""+Oe(n):"",e=e!=null?""+Oe(e):n,S||e===t.value||(t.value=e),t.defaultValue=e}l=l??r,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=S?t.checked:!!l,t.defaultChecked=!!l,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(t.name=h),Wu(t)}function Iu(t,e,n){e==="number"&&Fl(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Ua(t,e,n,l){if(t=t.options,e){e={};for(var r=0;r<n.length;r++)e["$"+n[r]]=!0;for(n=0;n<t.length;n++)r=e.hasOwnProperty("$"+t[n].value),t[n].selected!==r&&(t[n].selected=r),r&&l&&(t[n].defaultSelected=!0)}else{for(n=""+Oe(n),e=null,r=0;r<t.length;r++){if(t[r].value===n){t[r].selected=!0,l&&(t[r].defaultSelected=!0);return}e!==null||t[r].disabled||(e=t[r])}e!==null&&(e.selected=!0)}}function Wf(t,e,n){if(e!=null&&(e=""+Oe(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Oe(n):""}function $f(t,e,n,l){if(e==null){if(l!=null){if(n!=null)throw Error(u(92));if(Mt(l)){if(1<l.length)throw Error(u(93));l=l[0]}n=l}n==null&&(n=""),e=n}n=Oe(e),t.defaultValue=n,l=t.textContent,l===n&&l!==""&&l!==null&&(t.value=l),Wu(t)}function La(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Lv=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 If(t,e,n){var l=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,n):typeof n!="number"||n===0||Lv.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function td(t,e,n){if(e!=null&&typeof e!="object")throw Error(u(62));if(t=t.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var r in e)l=e[r],e.hasOwnProperty(r)&&n[r]!==l&&If(t,r,l)}else for(var o in e)e.hasOwnProperty(o)&&If(t,o,e[o])}function tr(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 Hv=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"]]),Yv=/^[\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 Wl(t){return Yv.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function on(){}var er=null;function nr(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ha=null,Ya=null;function ed(t){var e=Va(t);if(e&&(t=e.stateNode)){var n=t[ye]||null;t:switch(t=e.stateNode,e.type){case"input":if($u(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+je(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var l=n[e];if(l!==t&&l.form===t.form){var r=l[ye]||null;if(!r)throw Error(u(90));$u(l,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(e=0;e<n.length;e++)l=n[e],l.form===t.form&&Pf(l)}break t;case"textarea":Wf(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Ua(t,!!n.multiple,e,!1)}}}var ar=!1;function nd(t,e,n){if(ar)return t(e,n);ar=!0;try{var l=t(e);return l}finally{if(ar=!1,(Ha!==null||Ya!==null)&&(Ls(),Ha&&(e=Ha,t=Ya,Ya=Ha=null,ed(e),t)))for(e=0;e<t.length;e++)ed(t[e])}}function Bi(t,e){var n=t.stateNode;if(n===null)return null;var l=n[ye]||null;if(l===null)return null;n=l[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":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(u(231,e,typeof n));return n}var cn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ir=!1;if(cn)try{var Ui={};Object.defineProperty(Ui,"passive",{get:function(){ir=!0}}),window.addEventListener("test",Ui,Ui),window.removeEventListener("test",Ui,Ui)}catch{ir=!1}var Dn=null,lr=null,$l=null;function ad(){if($l)return $l;var t,e=lr,n=e.length,l,r="value"in Dn?Dn.value:Dn.textContent,o=r.length;for(t=0;t<n&&e[t]===r[t];t++);var h=n-t;for(l=1;l<=h&&e[n-l]===r[o-l];l++);return $l=r.slice(t,1<l?1-l:void 0)}function Il(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 ts(){return!0}function id(){return!1}function ge(t){function e(n,l,r,o,h){this._reactName=n,this._targetInst=r,this.type=l,this.nativeEvent=o,this.target=h,this.currentTarget=null;for(var S in t)t.hasOwnProperty(S)&&(n=t[S],this[S]=n?n(o):o[S]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?ts:id,this.isPropagationStopped=id,this}return v(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=ts)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ts)},persist:function(){},isPersistent:ts}),e}var ua={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},es=ge(ua),Li=v({},ua,{view:0,detail:0}),qv=ge(Li),sr,ur,Hi,ns=v({},Li,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:or,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!==Hi&&(Hi&&t.type==="mousemove"?(sr=t.screenX-Hi.screenX,ur=t.screenY-Hi.screenY):ur=sr=0,Hi=t),sr)},movementY:function(t){return"movementY"in t?t.movementY:ur}}),ld=ge(ns),Gv=v({},ns,{dataTransfer:0}),Xv=ge(Gv),kv=v({},Li,{relatedTarget:0}),rr=ge(kv),Zv=v({},ua,{animationName:0,elapsedTime:0,pseudoElement:0}),Qv=ge(Zv),Kv=v({},ua,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Jv=ge(Kv),Pv=v({},ua,{data:0}),sd=ge(Pv),Fv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Wv={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"},$v={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Iv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=$v[t])?!!e[t]:!1}function or(){return Iv}var t1=v({},Li,{key:function(t){if(t.key){var e=Fv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Il(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Wv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:or,charCode:function(t){return t.type==="keypress"?Il(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Il(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),e1=ge(t1),n1=v({},ns,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ud=ge(n1),a1=v({},Li,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:or}),i1=ge(a1),l1=v({},ua,{propertyName:0,elapsedTime:0,pseudoElement:0}),s1=ge(l1),u1=v({},ns,{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}),r1=ge(u1),o1=v({},ua,{newState:0,oldState:0}),c1=ge(o1),f1=[9,13,27,32],cr=cn&&"CompositionEvent"in window,Yi=null;cn&&"documentMode"in document&&(Yi=document.documentMode);var d1=cn&&"TextEvent"in window&&!Yi,rd=cn&&(!cr||Yi&&8<Yi&&11>=Yi),od=" ",cd=!1;function fd(t,e){switch(t){case"keyup":return f1.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var qa=!1;function h1(t,e){switch(t){case"compositionend":return dd(e);case"keypress":return e.which!==32?null:(cd=!0,od);case"textInput":return t=e.data,t===od&&cd?null:t;default:return null}}function m1(t,e){if(qa)return t==="compositionend"||!cr&&fd(t,e)?(t=ad(),$l=lr=Dn=null,qa=!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 rd&&e.locale!=="ko"?null:e.data;default:return null}}var p1={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 hd(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!p1[t.type]:e==="textarea"}function md(t,e,n,l){Ha?Ya?Ya.push(l):Ya=[l]:Ha=l,e=Zs(e,"onChange"),0<e.length&&(n=new es("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var qi=null,Gi=null;function y1(t){Fm(t,0)}function as(t){var e=Ni(t);if(Pf(e))return t}function pd(t,e){if(t==="change")return e}var yd=!1;if(cn){var fr;if(cn){var dr="oninput"in document;if(!dr){var gd=document.createElement("div");gd.setAttribute("oninput","return;"),dr=typeof gd.oninput=="function"}fr=dr}else fr=!1;yd=fr&&(!document.documentMode||9<document.documentMode)}function vd(){qi&&(qi.detachEvent("onpropertychange",Sd),Gi=qi=null)}function Sd(t){if(t.propertyName==="value"&&as(Gi)){var e=[];md(e,Gi,t,nr(t)),nd(y1,e)}}function g1(t,e,n){t==="focusin"?(vd(),qi=e,Gi=n,qi.attachEvent("onpropertychange",Sd)):t==="focusout"&&vd()}function v1(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return as(Gi)}function S1(t,e){if(t==="click")return as(e)}function b1(t,e){if(t==="input"||t==="change")return as(e)}function T1(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ee=typeof Object.is=="function"?Object.is:T1;function Xi(t,e){if(Ee(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),l=Object.keys(e);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var r=n[l];if(!Ri.call(e,r)||!Ee(t[r],e[r]))return!1}return!0}function bd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Td(t,e){var n=bd(t);t=0;for(var l;n;){if(n.nodeType===3){if(l=t+n.textContent.length,t<=e&&l>=e)return{node:n,offset:e-t};t=l}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=bd(n)}}function xd(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?xd(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Ed(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Fl(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=Fl(t.document)}return e}function hr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var x1=cn&&"documentMode"in document&&11>=document.documentMode,Ga=null,mr=null,ki=null,pr=!1;function Ad(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;pr||Ga==null||Ga!==Fl(l)||(l=Ga,"selectionStart"in l&&hr(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),ki&&Xi(ki,l)||(ki=l,l=Zs(mr,"onSelect"),0<l.length&&(e=new es("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=Ga)))}function ra(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Xa={animationend:ra("Animation","AnimationEnd"),animationiteration:ra("Animation","AnimationIteration"),animationstart:ra("Animation","AnimationStart"),transitionrun:ra("Transition","TransitionRun"),transitionstart:ra("Transition","TransitionStart"),transitioncancel:ra("Transition","TransitionCancel"),transitionend:ra("Transition","TransitionEnd")},yr={},Md={};cn&&(Md=document.createElement("div").style,"AnimationEvent"in window||(delete Xa.animationend.animation,delete Xa.animationiteration.animation,delete Xa.animationstart.animation),"TransitionEvent"in window||delete Xa.transitionend.transition);function oa(t){if(yr[t])return yr[t];if(!Xa[t])return t;var e=Xa[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Md)return yr[t]=e[n];return t}var Cd=oa("animationend"),Dd=oa("animationiteration"),Rd=oa("animationstart"),E1=oa("transitionrun"),A1=oa("transitionstart"),M1=oa("transitioncancel"),wd=oa("transitionend"),zd=new Map,gr="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(" ");gr.push("scrollEnd");function Xe(t,e){zd.set(t,e),sa(e,[t])}var is=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)},_e=[],ka=0,vr=0;function ls(){for(var t=ka,e=vr=ka=0;e<t;){var n=_e[e];_e[e++]=null;var l=_e[e];_e[e++]=null;var r=_e[e];_e[e++]=null;var o=_e[e];if(_e[e++]=null,l!==null&&r!==null){var h=l.pending;h===null?r.next=r:(r.next=h.next,h.next=r),l.pending=r}o!==0&&Od(n,r,o)}}function ss(t,e,n,l){_e[ka++]=t,_e[ka++]=e,_e[ka++]=n,_e[ka++]=l,vr|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function Sr(t,e,n,l){return ss(t,e,n,l),us(t)}function ca(t,e){return ss(t,null,null,e),us(t)}function Od(t,e,n){t.lanes|=n;var l=t.alternate;l!==null&&(l.lanes|=n);for(var r=!1,o=t.return;o!==null;)o.childLanes|=n,l=o.alternate,l!==null&&(l.childLanes|=n),o.tag===22&&(t=o.stateNode,t===null||t._visibility&1||(r=!0)),t=o,o=o.return;return t.tag===3?(o=t.stateNode,r&&e!==null&&(r=31-de(n),t=o.hiddenUpdates,l=t[r],l===null?t[r]=[e]:l.push(e),e.lane=n|536870912),o):null}function us(t){if(50<dl)throw dl=0,wo=null,Error(u(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Za={};function C1(t,e,n,l){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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ae(t,e,n,l){return new C1(t,e,n,l)}function br(t){return t=t.prototype,!(!t||!t.isReactComponent)}function fn(t,e){var n=t.alternate;return n===null?(n=Ae(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 jd(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 rs(t,e,n,l,r,o){var h=0;if(l=t,typeof t=="function")br(t)&&(h=1);else if(typeof t=="string")h=OS(t,n,et.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Z:return t=Ae(31,n,e,r),t.elementType=Z,t.lanes=o,t;case w:return fa(n.children,r,o,e);case j:h=8,r|=24;break;case B:return t=Ae(12,n,e,r|2),t.elementType=B,t.lanes=o,t;case W:return t=Ae(13,n,e,r),t.elementType=W,t.lanes=o,t;case F:return t=Ae(19,n,e,r),t.elementType=F,t.lanes=o,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Y:h=10;break t;case q:h=9;break t;case J:h=11;break t;case X:h=14;break t;case Q:h=16,l=null;break t}h=29,n=Error(u(130,t===null?"null":typeof t,"")),l=null}return e=Ae(h,n,e,r),e.elementType=t,e.type=l,e.lanes=o,e}function fa(t,e,n,l){return t=Ae(7,t,l,e),t.lanes=n,t}function Tr(t,e,n){return t=Ae(6,t,null,e),t.lanes=n,t}function _d(t){var e=Ae(18,null,null,0);return e.stateNode=t,e}function xr(t,e,n){return e=Ae(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Vd=new WeakMap;function Ve(t,e){if(typeof t=="object"&&t!==null){var n=Vd.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Hl(e)},Vd.set(t,e),e)}return{value:t,source:e,stack:Hl(e)}}var Qa=[],Ka=0,os=null,Zi=0,Ne=[],Be=0,Rn=null,We=1,$e="";function dn(t,e){Qa[Ka++]=Zi,Qa[Ka++]=os,os=t,Zi=e}function Nd(t,e,n){Ne[Be++]=We,Ne[Be++]=$e,Ne[Be++]=Rn,Rn=t;var l=We;t=$e;var r=32-de(l)-1;l&=~(1<<r),n+=1;var o=32-de(e)+r;if(30<o){var h=r-r%5;o=(l&(1<<h)-1).toString(32),l>>=h,r-=h,We=1<<32-de(e)+r|n<<r|l,$e=o+t}else We=1<<o|n<<r|l,$e=t}function Er(t){t.return!==null&&(dn(t,1),Nd(t,1,0))}function Ar(t){for(;t===os;)os=Qa[--Ka],Qa[Ka]=null,Zi=Qa[--Ka],Qa[Ka]=null;for(;t===Rn;)Rn=Ne[--Be],Ne[Be]=null,$e=Ne[--Be],Ne[Be]=null,We=Ne[--Be],Ne[Be]=null}function Bd(t,e){Ne[Be++]=We,Ne[Be++]=$e,Ne[Be++]=Rn,We=e.id,$e=e.overflow,Rn=t}var ae=null,Bt=null,St=!1,wn=null,Ue=!1,Mr=Error(u(519));function zn(t){var e=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Qi(Ve(e,t)),Mr}function Ud(t){var e=t.stateNode,n=t.type,l=t.memoizedProps;switch(e[ne]=t,e[ye]=l,n){case"dialog":yt("cancel",e),yt("close",e);break;case"iframe":case"object":case"embed":yt("load",e);break;case"video":case"audio":for(n=0;n<ml.length;n++)yt(ml[n],e);break;case"source":yt("error",e);break;case"img":case"image":case"link":yt("error",e),yt("load",e);break;case"details":yt("toggle",e);break;case"input":yt("invalid",e),Ff(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":yt("invalid",e);break;case"textarea":yt("invalid",e),$f(e,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||l.suppressHydrationWarning===!0||tp(e.textContent,n)?(l.popover!=null&&(yt("beforetoggle",e),yt("toggle",e)),l.onScroll!=null&&yt("scroll",e),l.onScrollEnd!=null&&yt("scrollend",e),l.onClick!=null&&(e.onclick=on),e=!0):e=!1,e||zn(t,!0)}function Ld(t){for(ae=t.return;ae;)switch(ae.tag){case 5:case 31:case 13:Ue=!1;return;case 27:case 3:Ue=!0;return;default:ae=ae.return}}function Ja(t){if(t!==ae)return!1;if(!St)return Ld(t),St=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||ko(t.type,t.memoizedProps)),n=!n),n&&Bt&&zn(t),Ld(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));Bt=op(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));Bt=op(t)}else e===27?(e=Bt,kn(t.type)?(t=Po,Po=null,Bt=t):Bt=e):Bt=ae?He(t.stateNode.nextSibling):null;return!0}function da(){Bt=ae=null,St=!1}function Cr(){var t=wn;return t!==null&&(Te===null?Te=t:Te.push.apply(Te,t),wn=null),t}function Qi(t){wn===null?wn=[t]:wn.push(t)}var Dr=C(null),ha=null,hn=null;function On(t,e,n){I(Dr,e._currentValue),e._currentValue=n}function mn(t){t._currentValue=Dr.current,L(Dr)}function Rr(t,e,n){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===n)break;t=t.return}}function wr(t,e,n,l){var r=t.child;for(r!==null&&(r.return=t);r!==null;){var o=r.dependencies;if(o!==null){var h=r.child;o=o.firstContext;t:for(;o!==null;){var S=o;o=r;for(var T=0;T<e.length;T++)if(S.context===e[T]){o.lanes|=n,S=o.alternate,S!==null&&(S.lanes|=n),Rr(o.return,n,t),l||(h=null);break t}o=S.next}}else if(r.tag===18){if(h=r.return,h===null)throw Error(u(341));h.lanes|=n,o=h.alternate,o!==null&&(o.lanes|=n),Rr(h,n,t),h=null}else h=r.child;if(h!==null)h.return=r;else for(h=r;h!==null;){if(h===t){h=null;break}if(r=h.sibling,r!==null){r.return=h.return,h=r;break}h=h.return}r=h}}function Pa(t,e,n,l){t=null;for(var r=e,o=!1;r!==null;){if(!o){if((r.flags&524288)!==0)o=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var h=r.alternate;if(h===null)throw Error(u(387));if(h=h.memoizedProps,h!==null){var S=r.type;Ee(r.pendingProps.value,h.value)||(t!==null?t.push(S):t=[S])}}else if(r===Tt.current){if(h=r.alternate,h===null)throw Error(u(387));h.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(t!==null?t.push(Sl):t=[Sl])}r=r.return}t!==null&&wr(e,t,n,l),e.flags|=262144}function cs(t){for(t=t.firstContext;t!==null;){if(!Ee(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ma(t){ha=t,hn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ie(t){return Hd(ha,t)}function fs(t,e){return ha===null&&ma(t),Hd(t,e)}function Hd(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},hn===null){if(t===null)throw Error(u(308));hn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else hn=hn.next=e;return n}var D1=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},R1=a.unstable_scheduleCallback,w1=a.unstable_NormalPriority,Qt={$$typeof:Y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function zr(){return{controller:new D1,data:new Map,refCount:0}}function Ki(t){t.refCount--,t.refCount===0&&R1(w1,function(){t.controller.abort()})}var Ji=null,Or=0,Fa=0,Wa=null;function z1(t,e){if(Ji===null){var n=Ji=[];Or=0,Fa=No(),Wa={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Or++,e.then(Yd,Yd),e}function Yd(){if(--Or===0&&Ji!==null){Wa!==null&&(Wa.status="fulfilled");var t=Ji;Ji=null,Fa=0,Wa=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function O1(t,e){var n=[],l={status:"pending",value:null,reason:null,then:function(r){n.push(r)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var r=0;r<n.length;r++)(0,n[r])(e)},function(r){for(l.status="rejected",l.reason=r,r=0;r<n.length;r++)(0,n[r])(void 0)}),l}var qd=V.S;V.S=function(t,e){Am=oe(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&z1(t,e),qd!==null&&qd(t,e)};var pa=C(null);function jr(){var t=pa.current;return t!==null?t:jt.pooledCache}function ds(t,e){e===null?I(pa,pa.current):I(pa,e.pool)}function Gd(){var t=jr();return t===null?null:{parent:Qt._currentValue,pool:t}}var $a=Error(u(460)),_r=Error(u(474)),hs=Error(u(542)),ms={then:function(){}};function Xd(t){return t=t.status,t==="fulfilled"||t==="rejected"}function kd(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(on,on),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Qd(t),t;default:if(typeof e.status=="string")e.then(on,on);else{if(t=jt,t!==null&&100<t.shellSuspendCounter)throw Error(u(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var r=e;r.status="fulfilled",r.value=l}},function(l){if(e.status==="pending"){var r=e;r.status="rejected",r.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Qd(t),t}throw ga=e,$a}}function ya(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ga=n,$a):n}}var ga=null;function Zd(){if(ga===null)throw Error(u(459));var t=ga;return ga=null,t}function Qd(t){if(t===$a||t===hs)throw Error(u(483))}var Ia=null,Pi=0;function ps(t){var e=Pi;return Pi+=1,Ia===null&&(Ia=[]),kd(Ia,t,e)}function Fi(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function ys(t,e){throw e.$$typeof===b?Error(u(525)):(t=Object.prototype.toString.call(e),Error(u(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Kd(t){function e(R,D){if(t){var z=R.deletions;z===null?(R.deletions=[D],R.flags|=16):z.push(D)}}function n(R,D){if(!t)return null;for(;D!==null;)e(R,D),D=D.sibling;return null}function l(R){for(var D=new Map;R!==null;)R.key!==null?D.set(R.key,R):D.set(R.index,R),R=R.sibling;return D}function r(R,D){return R=fn(R,D),R.index=0,R.sibling=null,R}function o(R,D,z){return R.index=z,t?(z=R.alternate,z!==null?(z=z.index,z<D?(R.flags|=67108866,D):z):(R.flags|=67108866,D)):(R.flags|=1048576,D)}function h(R){return t&&R.alternate===null&&(R.flags|=67108866),R}function S(R,D,z,H){return D===null||D.tag!==6?(D=Tr(z,R.mode,H),D.return=R,D):(D=r(D,z),D.return=R,D)}function T(R,D,z,H){var lt=z.type;return lt===w?U(R,D,z.props.children,H,z.key):D!==null&&(D.elementType===lt||typeof lt=="object"&&lt!==null&&lt.$$typeof===Q&&ya(lt)===D.type)?(D=r(D,z.props),Fi(D,z),D.return=R,D):(D=rs(z.type,z.key,z.props,null,R.mode,H),Fi(D,z),D.return=R,D)}function O(R,D,z,H){return D===null||D.tag!==4||D.stateNode.containerInfo!==z.containerInfo||D.stateNode.implementation!==z.implementation?(D=xr(z,R.mode,H),D.return=R,D):(D=r(D,z.children||[]),D.return=R,D)}function U(R,D,z,H,lt){return D===null||D.tag!==7?(D=fa(z,R.mode,H,lt),D.return=R,D):(D=r(D,z),D.return=R,D)}function G(R,D,z){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=Tr(""+D,R.mode,z),D.return=R,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case x:return z=rs(D.type,D.key,D.props,null,R.mode,z),Fi(z,D),z.return=R,z;case A:return D=xr(D,R.mode,z),D.return=R,D;case Q:return D=ya(D),G(R,D,z)}if(Mt(D)||K(D))return D=fa(D,R.mode,z,null),D.return=R,D;if(typeof D.then=="function")return G(R,ps(D),z);if(D.$$typeof===Y)return G(R,fs(R,D),z);ys(R,D)}return null}function _(R,D,z,H){var lt=D!==null?D.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return lt!==null?null:S(R,D,""+z,H);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case x:return z.key===lt?T(R,D,z,H):null;case A:return z.key===lt?O(R,D,z,H):null;case Q:return z=ya(z),_(R,D,z,H)}if(Mt(z)||K(z))return lt!==null?null:U(R,D,z,H,null);if(typeof z.then=="function")return _(R,D,ps(z),H);if(z.$$typeof===Y)return _(R,D,fs(R,z),H);ys(R,z)}return null}function N(R,D,z,H,lt){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return R=R.get(z)||null,S(D,R,""+H,lt);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case x:return R=R.get(H.key===null?z:H.key)||null,T(D,R,H,lt);case A:return R=R.get(H.key===null?z:H.key)||null,O(D,R,H,lt);case Q:return H=ya(H),N(R,D,z,H,lt)}if(Mt(H)||K(H))return R=R.get(z)||null,U(D,R,H,lt,null);if(typeof H.then=="function")return N(R,D,z,ps(H),lt);if(H.$$typeof===Y)return N(R,D,z,fs(D,H),lt);ys(D,H)}return null}function nt(R,D,z,H){for(var lt=null,xt=null,it=D,ht=D=0,vt=null;it!==null&&ht<z.length;ht++){it.index>ht?(vt=it,it=null):vt=it.sibling;var Et=_(R,it,z[ht],H);if(Et===null){it===null&&(it=vt);break}t&&it&&Et.alternate===null&&e(R,it),D=o(Et,D,ht),xt===null?lt=Et:xt.sibling=Et,xt=Et,it=vt}if(ht===z.length)return n(R,it),St&&dn(R,ht),lt;if(it===null){for(;ht<z.length;ht++)it=G(R,z[ht],H),it!==null&&(D=o(it,D,ht),xt===null?lt=it:xt.sibling=it,xt=it);return St&&dn(R,ht),lt}for(it=l(it);ht<z.length;ht++)vt=N(it,R,ht,z[ht],H),vt!==null&&(t&&vt.alternate!==null&&it.delete(vt.key===null?ht:vt.key),D=o(vt,D,ht),xt===null?lt=vt:xt.sibling=vt,xt=vt);return t&&it.forEach(function(Pn){return e(R,Pn)}),St&&dn(R,ht),lt}function ut(R,D,z,H){if(z==null)throw Error(u(151));for(var lt=null,xt=null,it=D,ht=D=0,vt=null,Et=z.next();it!==null&&!Et.done;ht++,Et=z.next()){it.index>ht?(vt=it,it=null):vt=it.sibling;var Pn=_(R,it,Et.value,H);if(Pn===null){it===null&&(it=vt);break}t&&it&&Pn.alternate===null&&e(R,it),D=o(Pn,D,ht),xt===null?lt=Pn:xt.sibling=Pn,xt=Pn,it=vt}if(Et.done)return n(R,it),St&&dn(R,ht),lt;if(it===null){for(;!Et.done;ht++,Et=z.next())Et=G(R,Et.value,H),Et!==null&&(D=o(Et,D,ht),xt===null?lt=Et:xt.sibling=Et,xt=Et);return St&&dn(R,ht),lt}for(it=l(it);!Et.done;ht++,Et=z.next())Et=N(it,R,ht,Et.value,H),Et!==null&&(t&&Et.alternate!==null&&it.delete(Et.key===null?ht:Et.key),D=o(Et,D,ht),xt===null?lt=Et:xt.sibling=Et,xt=Et);return t&&it.forEach(function(GS){return e(R,GS)}),St&&dn(R,ht),lt}function Ot(R,D,z,H){if(typeof z=="object"&&z!==null&&z.type===w&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case x:t:{for(var lt=z.key;D!==null;){if(D.key===lt){if(lt=z.type,lt===w){if(D.tag===7){n(R,D.sibling),H=r(D,z.props.children),H.return=R,R=H;break t}}else if(D.elementType===lt||typeof lt=="object"&&lt!==null&&lt.$$typeof===Q&&ya(lt)===D.type){n(R,D.sibling),H=r(D,z.props),Fi(H,z),H.return=R,R=H;break t}n(R,D);break}else e(R,D);D=D.sibling}z.type===w?(H=fa(z.props.children,R.mode,H,z.key),H.return=R,R=H):(H=rs(z.type,z.key,z.props,null,R.mode,H),Fi(H,z),H.return=R,R=H)}return h(R);case A:t:{for(lt=z.key;D!==null;){if(D.key===lt)if(D.tag===4&&D.stateNode.containerInfo===z.containerInfo&&D.stateNode.implementation===z.implementation){n(R,D.sibling),H=r(D,z.children||[]),H.return=R,R=H;break t}else{n(R,D);break}else e(R,D);D=D.sibling}H=xr(z,R.mode,H),H.return=R,R=H}return h(R);case Q:return z=ya(z),Ot(R,D,z,H)}if(Mt(z))return nt(R,D,z,H);if(K(z)){if(lt=K(z),typeof lt!="function")throw Error(u(150));return z=lt.call(z),ut(R,D,z,H)}if(typeof z.then=="function")return Ot(R,D,ps(z),H);if(z.$$typeof===Y)return Ot(R,D,fs(R,z),H);ys(R,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,D!==null&&D.tag===6?(n(R,D.sibling),H=r(D,z),H.return=R,R=H):(n(R,D),H=Tr(z,R.mode,H),H.return=R,R=H),h(R)):n(R,D)}return function(R,D,z,H){try{Pi=0;var lt=Ot(R,D,z,H);return Ia=null,lt}catch(it){if(it===$a||it===hs)throw it;var xt=Ae(29,it,null,R.mode);return xt.lanes=H,xt.return=R,xt}finally{}}}var va=Kd(!0),Jd=Kd(!1),jn=!1;function Vr(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Nr(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function _n(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Vn(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(At&2)!==0){var r=l.pending;return r===null?e.next=e:(e.next=r.next,r.next=e),l.pending=e,e=us(t),Od(t,null,n),e}return ss(t,l,e,n),us(t)}function Wi(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Hf(t,n)}}function Br(t,e){var n=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var r=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?r=o=h:o=o.next=h,n=n.next}while(n!==null);o===null?r=o=e:o=o.next=e}else r=o=e;n={baseState:l.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:l.shared,callbacks:l.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var Ur=!1;function $i(){if(Ur){var t=Wa;if(t!==null)throw t}}function Ii(t,e,n,l){Ur=!1;var r=t.updateQueue;jn=!1;var o=r.firstBaseUpdate,h=r.lastBaseUpdate,S=r.shared.pending;if(S!==null){r.shared.pending=null;var T=S,O=T.next;T.next=null,h===null?o=O:h.next=O,h=T;var U=t.alternate;U!==null&&(U=U.updateQueue,S=U.lastBaseUpdate,S!==h&&(S===null?U.firstBaseUpdate=O:S.next=O,U.lastBaseUpdate=T))}if(o!==null){var G=r.baseState;h=0,U=O=T=null,S=o;do{var _=S.lane&-536870913,N=_!==S.lane;if(N?(gt&_)===_:(l&_)===_){_!==0&&_===Fa&&(Ur=!0),U!==null&&(U=U.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});t:{var nt=t,ut=S;_=e;var Ot=n;switch(ut.tag){case 1:if(nt=ut.payload,typeof nt=="function"){G=nt.call(Ot,G,_);break t}G=nt;break t;case 3:nt.flags=nt.flags&-65537|128;case 0:if(nt=ut.payload,_=typeof nt=="function"?nt.call(Ot,G,_):nt,_==null)break t;G=v({},G,_);break t;case 2:jn=!0}}_=S.callback,_!==null&&(t.flags|=64,N&&(t.flags|=8192),N=r.callbacks,N===null?r.callbacks=[_]:N.push(_))}else N={lane:_,tag:S.tag,payload:S.payload,callback:S.callback,next:null},U===null?(O=U=N,T=G):U=U.next=N,h|=_;if(S=S.next,S===null){if(S=r.shared.pending,S===null)break;N=S,S=N.next,N.next=null,r.lastBaseUpdate=N,r.shared.pending=null}}while(!0);U===null&&(T=G),r.baseState=T,r.firstBaseUpdate=O,r.lastBaseUpdate=U,o===null&&(r.shared.lanes=0),Hn|=h,t.lanes=h,t.memoizedState=G}}function Pd(t,e){if(typeof t!="function")throw Error(u(191,t));t.call(e)}function Fd(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Pd(n[t],e)}var ti=C(null),gs=C(0);function Wd(t,e){t=En,I(gs,t),I(ti,e),En=t|e.baseLanes}function Lr(){I(gs,En),I(ti,ti.current)}function Hr(){En=gs.current,L(ti),L(gs)}var Me=C(null),Le=null;function Nn(t){var e=t.alternate;I(kt,kt.current&1),I(Me,t),Le===null&&(e===null||ti.current!==null||e.memoizedState!==null)&&(Le=t)}function Yr(t){I(kt,kt.current),I(Me,t),Le===null&&(Le=t)}function $d(t){t.tag===22?(I(kt,kt.current),I(Me,t),Le===null&&(Le=t)):Bn()}function Bn(){I(kt,kt.current),I(Me,Me.current)}function Ce(t){L(Me),Le===t&&(Le=null),L(kt)}var kt=C(0);function vs(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Ko(n)||Jo(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 pn=0,ft=null,wt=null,Kt=null,Ss=!1,ei=!1,Sa=!1,bs=0,tl=0,ni=null,j1=0;function qt(){throw Error(u(321))}function qr(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Ee(t[n],e[n]))return!1;return!0}function Gr(t,e,n,l,r,o){return pn=o,ft=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,V.H=t===null||t.memoizedState===null?Nh:ao,Sa=!1,o=n(l,r),Sa=!1,ei&&(o=th(e,n,l,r)),Id(t),o}function Id(t){V.H=al;var e=wt!==null&&wt.next!==null;if(pn=0,Kt=wt=ft=null,Ss=!1,tl=0,ni=null,e)throw Error(u(300));t===null||Jt||(t=t.dependencies,t!==null&&cs(t)&&(Jt=!0))}function th(t,e,n,l){ft=t;var r=0;do{if(ei&&(ni=null),tl=0,ei=!1,25<=r)throw Error(u(301));if(r+=1,Kt=wt=null,t.updateQueue!=null){var o=t.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}V.H=Bh,o=e(n,l)}while(ei);return o}function _1(){var t=V.H,e=t.useState()[0];return e=typeof e.then=="function"?el(e):e,t=t.useState()[0],(wt!==null?wt.memoizedState:null)!==t&&(ft.flags|=1024),e}function Xr(){var t=bs!==0;return bs=0,t}function kr(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function Zr(t){if(Ss){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Ss=!1}pn=0,Kt=wt=ft=null,ei=!1,tl=bs=0,ni=null}function he(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Kt===null?ft.memoizedState=Kt=t:Kt=Kt.next=t,Kt}function Zt(){if(wt===null){var t=ft.alternate;t=t!==null?t.memoizedState:null}else t=wt.next;var e=Kt===null?ft.memoizedState:Kt.next;if(e!==null)Kt=e,wt=t;else{if(t===null)throw ft.alternate===null?Error(u(467)):Error(u(310));wt=t,t={memoizedState:wt.memoizedState,baseState:wt.baseState,baseQueue:wt.baseQueue,queue:wt.queue,next:null},Kt===null?ft.memoizedState=Kt=t:Kt=Kt.next=t}return Kt}function Ts(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function el(t){var e=tl;return tl+=1,ni===null&&(ni=[]),t=kd(ni,t,e),e=ft,(Kt===null?e.memoizedState:Kt.next)===null&&(e=e.alternate,V.H=e===null||e.memoizedState===null?Nh:ao),t}function xs(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return el(t);if(t.$$typeof===Y)return ie(t)}throw Error(u(438,String(t)))}function Qr(t){var e=null,n=ft.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var l=ft.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(r){return r.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=Ts(),ft.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),l=0;l<t;l++)n[l]=k;return e.index++,n}function yn(t,e){return typeof e=="function"?e(t):e}function Es(t){var e=Zt();return Kr(e,wt,t)}function Kr(t,e,n){var l=t.queue;if(l===null)throw Error(u(311));l.lastRenderedReducer=n;var r=t.baseQueue,o=l.pending;if(o!==null){if(r!==null){var h=r.next;r.next=o.next,o.next=h}e.baseQueue=r=o,l.pending=null}if(o=t.baseState,r===null)t.memoizedState=o;else{e=r.next;var S=h=null,T=null,O=e,U=!1;do{var G=O.lane&-536870913;if(G!==O.lane?(gt&G)===G:(pn&G)===G){var _=O.revertLane;if(_===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),G===Fa&&(U=!0);else if((pn&_)===_){O=O.next,_===Fa&&(U=!0);continue}else G={lane:0,revertLane:O.revertLane,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},T===null?(S=T=G,h=o):T=T.next=G,ft.lanes|=_,Hn|=_;G=O.action,Sa&&n(o,G),o=O.hasEagerState?O.eagerState:n(o,G)}else _={lane:G,revertLane:O.revertLane,gesture:O.gesture,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},T===null?(S=T=_,h=o):T=T.next=_,ft.lanes|=G,Hn|=G;O=O.next}while(O!==null&&O!==e);if(T===null?h=o:T.next=S,!Ee(o,t.memoizedState)&&(Jt=!0,U&&(n=Wa,n!==null)))throw n;t.memoizedState=o,t.baseState=h,t.baseQueue=T,l.lastRenderedState=o}return r===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Jr(t){var e=Zt(),n=e.queue;if(n===null)throw Error(u(311));n.lastRenderedReducer=t;var l=n.dispatch,r=n.pending,o=e.memoizedState;if(r!==null){n.pending=null;var h=r=r.next;do o=t(o,h.action),h=h.next;while(h!==r);Ee(o,e.memoizedState)||(Jt=!0),e.memoizedState=o,e.baseQueue===null&&(e.baseState=o),n.lastRenderedState=o}return[o,l]}function eh(t,e,n){var l=ft,r=Zt(),o=St;if(o){if(n===void 0)throw Error(u(407));n=n()}else n=e();var h=!Ee((wt||r).memoizedState,n);if(h&&(r.memoizedState=n,Jt=!0),r=r.queue,Wr(ih.bind(null,l,r,t),[t]),r.getSnapshot!==e||h||Kt!==null&&Kt.memoizedState.tag&1){if(l.flags|=2048,ai(9,{destroy:void 0},ah.bind(null,l,r,n,e),null),jt===null)throw Error(u(349));o||(pn&127)!==0||nh(l,e,n)}return n}function nh(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ft.updateQueue,e===null?(e=Ts(),ft.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function ah(t,e,n,l){e.value=n,e.getSnapshot=l,lh(e)&&sh(t)}function ih(t,e,n){return n(function(){lh(e)&&sh(t)})}function lh(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Ee(t,n)}catch{return!0}}function sh(t){var e=ca(t,2);e!==null&&xe(e,t,2)}function Pr(t){var e=he();if(typeof t=="function"){var n=t;if(t=n(),Sa){fe(!0);try{n()}finally{fe(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yn,lastRenderedState:t},e}function uh(t,e,n,l){return t.baseState=n,Kr(t,wt,typeof l=="function"?l:yn)}function V1(t,e,n,l,r){if(Cs(t))throw Error(u(485));if(t=e.action,t!==null){var o={payload:r,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){o.listeners.push(h)}};V.T!==null?n(!0):o.isTransition=!1,l(o),n=e.pending,n===null?(o.next=e.pending=o,rh(e,o)):(o.next=n.next,e.pending=n.next=o)}}function rh(t,e){var n=e.action,l=e.payload,r=t.state;if(e.isTransition){var o=V.T,h={};V.T=h;try{var S=n(r,l),T=V.S;T!==null&&T(h,S),oh(t,e,S)}catch(O){Fr(t,e,O)}finally{o!==null&&h.types!==null&&(o.types=h.types),V.T=o}}else try{o=n(r,l),oh(t,e,o)}catch(O){Fr(t,e,O)}}function oh(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){ch(t,e,l)},function(l){return Fr(t,e,l)}):ch(t,e,n)}function ch(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,rh(t,n)))}function Fr(t,e,n){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=n,fh(e),e=e.next;while(e!==l)}t.action=null}function fh(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function dh(t,e){return e}function hh(t,e){if(St){var n=jt.formState;if(n!==null){t:{var l=ft;if(St){if(Bt){e:{for(var r=Bt,o=Ue;r.nodeType!==8;){if(!o){r=null;break e}if(r=He(r.nextSibling),r===null){r=null;break e}}o=r.data,r=o==="F!"||o==="F"?r:null}if(r){Bt=He(r.nextSibling),l=r.data==="F!";break t}}zn(l)}l=!1}l&&(e=n[0])}}return n=he(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:dh,lastRenderedState:e},n.queue=l,n=jh.bind(null,ft,l),l.dispatch=n,l=Pr(!1),o=no.bind(null,ft,!1,l.queue),l=he(),r={state:e,dispatch:null,action:t,pending:null},l.queue=r,n=V1.bind(null,ft,r,o,n),r.dispatch=n,l.memoizedState=t,[e,n,!1]}function mh(t){var e=Zt();return ph(e,wt,t)}function ph(t,e,n){if(e=Kr(t,e,dh)[0],t=Es(yn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=el(e)}catch(h){throw h===$a?hs:h}else l=e;e=Zt();var r=e.queue,o=r.dispatch;return n!==e.memoizedState&&(ft.flags|=2048,ai(9,{destroy:void 0},N1.bind(null,r,n),null)),[l,o,t]}function N1(t,e){t.action=e}function yh(t){var e=Zt(),n=wt;if(n!==null)return ph(e,n,t);Zt(),e=e.memoizedState,n=Zt();var l=n.queue.dispatch;return n.memoizedState=t,[e,l,!1]}function ai(t,e,n,l){return t={tag:t,create:n,deps:l,inst:e,next:null},e=ft.updateQueue,e===null&&(e=Ts(),ft.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(l=n.next,n.next=t,t.next=l,e.lastEffect=t),t}function gh(){return Zt().memoizedState}function As(t,e,n,l){var r=he();ft.flags|=t,r.memoizedState=ai(1|e,{destroy:void 0},n,l===void 0?null:l)}function Ms(t,e,n,l){var r=Zt();l=l===void 0?null:l;var o=r.memoizedState.inst;wt!==null&&l!==null&&qr(l,wt.memoizedState.deps)?r.memoizedState=ai(e,o,n,l):(ft.flags|=t,r.memoizedState=ai(1|e,o,n,l))}function vh(t,e){As(8390656,8,t,e)}function Wr(t,e){Ms(2048,8,t,e)}function B1(t){ft.flags|=4;var e=ft.updateQueue;if(e===null)e=Ts(),ft.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function Sh(t){var e=Zt().memoizedState;return B1({ref:e,nextImpl:t}),function(){if((At&2)!==0)throw Error(u(440));return e.impl.apply(void 0,arguments)}}function bh(t,e){return Ms(4,2,t,e)}function Th(t,e){return Ms(4,4,t,e)}function xh(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 Eh(t,e,n){n=n!=null?n.concat([t]):null,Ms(4,4,xh.bind(null,e,t),n)}function $r(){}function Ah(t,e){var n=Zt();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&qr(e,l[1])?l[0]:(n.memoizedState=[t,e],t)}function Mh(t,e){var n=Zt();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&qr(e,l[1]))return l[0];if(l=t(),Sa){fe(!0);try{t()}finally{fe(!1)}}return n.memoizedState=[l,e],l}function Ir(t,e,n){return n===void 0||(pn&1073741824)!==0&&(gt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=Cm(),ft.lanes|=t,Hn|=t,n)}function Ch(t,e,n,l){return Ee(n,e)?n:ti.current!==null?(t=Ir(t,n,l),Ee(t,e)||(Jt=!0),t):(pn&42)===0||(pn&1073741824)!==0&&(gt&261930)===0?(Jt=!0,t.memoizedState=n):(t=Cm(),ft.lanes|=t,Hn|=t,e)}function Dh(t,e,n,l,r){var o=P.p;P.p=o!==0&&8>o?o:8;var h=V.T,S={};V.T=S,no(t,!1,e,n);try{var T=r(),O=V.S;if(O!==null&&O(S,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var U=O1(T,l);nl(t,e,U,we(t))}else nl(t,e,l,we(t))}catch(G){nl(t,e,{then:function(){},status:"rejected",reason:G},we())}finally{P.p=o,h!==null&&S.types!==null&&(h.types=S.types),V.T=h}}function U1(){}function to(t,e,n,l){if(t.tag!==5)throw Error(u(476));var r=Rh(t).queue;Dh(t,r,e,tt,n===null?U1:function(){return wh(t),n(l)})}function Rh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:tt,baseState:tt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:yn,lastRenderedState:tt},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:yn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function wh(t){var e=Rh(t);e.next===null&&(e=t.alternate.memoizedState),nl(t,e.next.queue,{},we())}function eo(){return ie(Sl)}function zh(){return Zt().memoizedState}function Oh(){return Zt().memoizedState}function L1(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=we();t=_n(n);var l=Vn(e,t,n);l!==null&&(xe(l,e,n),Wi(l,e,n)),e={cache:zr()},t.payload=e;return}e=e.return}}function H1(t,e,n){var l=we();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Cs(t)?_h(e,n):(n=Sr(t,e,n,l),n!==null&&(xe(n,t,l),Vh(n,e,l)))}function jh(t,e,n){var l=we();nl(t,e,n,l)}function nl(t,e,n,l){var r={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Cs(t))_h(e,r);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var h=e.lastRenderedState,S=o(h,n);if(r.hasEagerState=!0,r.eagerState=S,Ee(S,h))return ss(t,e,r,0),jt===null&&ls(),!1}catch{}finally{}if(n=Sr(t,e,r,l),n!==null)return xe(n,t,l),Vh(n,e,l),!0}return!1}function no(t,e,n,l){if(l={lane:2,revertLane:No(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Cs(t)){if(e)throw Error(u(479))}else e=Sr(t,n,l,2),e!==null&&xe(e,t,2)}function Cs(t){var e=t.alternate;return t===ft||e!==null&&e===ft}function _h(t,e){ei=Ss=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Vh(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Hf(t,n)}}var al={readContext:ie,use:xs,useCallback:qt,useContext:qt,useEffect:qt,useImperativeHandle:qt,useLayoutEffect:qt,useInsertionEffect:qt,useMemo:qt,useReducer:qt,useRef:qt,useState:qt,useDebugValue:qt,useDeferredValue:qt,useTransition:qt,useSyncExternalStore:qt,useId:qt,useHostTransitionStatus:qt,useFormState:qt,useActionState:qt,useOptimistic:qt,useMemoCache:qt,useCacheRefresh:qt};al.useEffectEvent=qt;var Nh={readContext:ie,use:xs,useCallback:function(t,e){return he().memoizedState=[t,e===void 0?null:e],t},useContext:ie,useEffect:vh,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,As(4194308,4,xh.bind(null,e,t),n)},useLayoutEffect:function(t,e){return As(4194308,4,t,e)},useInsertionEffect:function(t,e){As(4,2,t,e)},useMemo:function(t,e){var n=he();e=e===void 0?null:e;var l=t();if(Sa){fe(!0);try{t()}finally{fe(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=he();if(n!==void 0){var r=n(e);if(Sa){fe(!0);try{n(e)}finally{fe(!1)}}}else r=e;return l.memoizedState=l.baseState=r,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:r},l.queue=t,t=t.dispatch=H1.bind(null,ft,t),[l.memoizedState,t]},useRef:function(t){var e=he();return t={current:t},e.memoizedState=t},useState:function(t){t=Pr(t);var e=t.queue,n=jh.bind(null,ft,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:$r,useDeferredValue:function(t,e){var n=he();return Ir(n,t,e)},useTransition:function(){var t=Pr(!1);return t=Dh.bind(null,ft,t.queue,!0,!1),he().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=ft,r=he();if(St){if(n===void 0)throw Error(u(407));n=n()}else{if(n=e(),jt===null)throw Error(u(349));(gt&127)!==0||nh(l,e,n)}r.memoizedState=n;var o={value:n,getSnapshot:e};return r.queue=o,vh(ih.bind(null,l,o,t),[t]),l.flags|=2048,ai(9,{destroy:void 0},ah.bind(null,l,o,n,e),null),n},useId:function(){var t=he(),e=jt.identifierPrefix;if(St){var n=$e,l=We;n=(l&~(1<<32-de(l)-1)).toString(32)+n,e="_"+e+"R_"+n,n=bs++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=j1++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:eo,useFormState:hh,useActionState:hh,useOptimistic:function(t){var e=he();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=no.bind(null,ft,!0,n),n.dispatch=e,[t,e]},useMemoCache:Qr,useCacheRefresh:function(){return he().memoizedState=L1.bind(null,ft)},useEffectEvent:function(t){var e=he(),n={impl:t};return e.memoizedState=n,function(){if((At&2)!==0)throw Error(u(440));return n.impl.apply(void 0,arguments)}}},ao={readContext:ie,use:xs,useCallback:Ah,useContext:ie,useEffect:Wr,useImperativeHandle:Eh,useInsertionEffect:bh,useLayoutEffect:Th,useMemo:Mh,useReducer:Es,useRef:gh,useState:function(){return Es(yn)},useDebugValue:$r,useDeferredValue:function(t,e){var n=Zt();return Ch(n,wt.memoizedState,t,e)},useTransition:function(){var t=Es(yn)[0],e=Zt().memoizedState;return[typeof t=="boolean"?t:el(t),e]},useSyncExternalStore:eh,useId:zh,useHostTransitionStatus:eo,useFormState:mh,useActionState:mh,useOptimistic:function(t,e){var n=Zt();return uh(n,wt,t,e)},useMemoCache:Qr,useCacheRefresh:Oh};ao.useEffectEvent=Sh;var Bh={readContext:ie,use:xs,useCallback:Ah,useContext:ie,useEffect:Wr,useImperativeHandle:Eh,useInsertionEffect:bh,useLayoutEffect:Th,useMemo:Mh,useReducer:Jr,useRef:gh,useState:function(){return Jr(yn)},useDebugValue:$r,useDeferredValue:function(t,e){var n=Zt();return wt===null?Ir(n,t,e):Ch(n,wt.memoizedState,t,e)},useTransition:function(){var t=Jr(yn)[0],e=Zt().memoizedState;return[typeof t=="boolean"?t:el(t),e]},useSyncExternalStore:eh,useId:zh,useHostTransitionStatus:eo,useFormState:yh,useActionState:yh,useOptimistic:function(t,e){var n=Zt();return wt!==null?uh(n,wt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:Qr,useCacheRefresh:Oh};Bh.useEffectEvent=Sh;function io(t,e,n,l){e=t.memoizedState,n=n(l,e),n=n==null?e:v({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var lo={enqueueSetState:function(t,e,n){t=t._reactInternals;var l=we(),r=_n(l);r.payload=e,n!=null&&(r.callback=n),e=Vn(t,r,l),e!==null&&(xe(e,t,l),Wi(e,t,l))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=we(),r=_n(l);r.tag=1,r.payload=e,n!=null&&(r.callback=n),e=Vn(t,r,l),e!==null&&(xe(e,t,l),Wi(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=we(),l=_n(n);l.tag=2,e!=null&&(l.callback=e),e=Vn(t,l,n),e!==null&&(xe(e,t,n),Wi(e,t,n))}};function Uh(t,e,n,l,r,o,h){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,o,h):e.prototype&&e.prototype.isPureReactComponent?!Xi(n,l)||!Xi(r,o):!0}function Lh(t,e,n,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,l),e.state!==t&&lo.enqueueReplaceState(e,e.state,null)}function ba(t,e){var n=e;if("ref"in e){n={};for(var l in e)l!=="ref"&&(n[l]=e[l])}if(t=t.defaultProps){n===e&&(n=v({},n));for(var r in t)n[r]===void 0&&(n[r]=t[r])}return n}function Hh(t){is(t)}function Yh(t){console.error(t)}function qh(t){is(t)}function Ds(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function Gh(t,e,n){try{var l=t.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function so(t,e,n){return n=_n(n),n.tag=3,n.payload={element:null},n.callback=function(){Ds(t,e)},n}function Xh(t){return t=_n(t),t.tag=3,t}function kh(t,e,n,l){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var o=l.value;t.payload=function(){return r(o)},t.callback=function(){Gh(e,n,l)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(t.callback=function(){Gh(e,n,l),typeof r!="function"&&(Yn===null?Yn=new Set([this]):Yn.add(this));var S=l.stack;this.componentDidCatch(l.value,{componentStack:S!==null?S:""})})}function Y1(t,e,n,l,r){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&Pa(e,n,r,!0),n=Me.current,n!==null){switch(n.tag){case 31:case 13:return Le===null?Hs():n.alternate===null&&Gt===0&&(Gt=3),n.flags&=-257,n.flags|=65536,n.lanes=r,l===ms?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),jo(t,l,r)),!1;case 22:return n.flags|=65536,l===ms?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([l]):n.add(l)),jo(t,l,r)),!1}throw Error(u(435,n.tag))}return jo(t,l,r),Hs(),!1}if(St)return e=Me.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=r,l!==Mr&&(t=Error(u(422),{cause:l}),Qi(Ve(t,n)))):(l!==Mr&&(e=Error(u(423),{cause:l}),Qi(Ve(e,n))),t=t.current.alternate,t.flags|=65536,r&=-r,t.lanes|=r,l=Ve(l,n),r=so(t.stateNode,l,r),Br(t,r),Gt!==4&&(Gt=2)),!1;var o=Error(u(520),{cause:l});if(o=Ve(o,n),fl===null?fl=[o]:fl.push(o),Gt!==4&&(Gt=2),e===null)return!0;l=Ve(l,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=r&-r,n.lanes|=t,t=so(n.stateNode,l,t),Br(n,t),!1;case 1:if(e=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(Yn===null||!Yn.has(o))))return n.flags|=65536,r&=-r,n.lanes|=r,r=Xh(r),kh(r,t,n,l),Br(n,r),!1}n=n.return}while(n!==null);return!1}var uo=Error(u(461)),Jt=!1;function le(t,e,n,l){e.child=t===null?Jd(e,null,n,l):va(e,t.child,n,l)}function Zh(t,e,n,l,r){n=n.render;var o=e.ref;if("ref"in l){var h={};for(var S in l)S!=="ref"&&(h[S]=l[S])}else h=l;return ma(e),l=Gr(t,e,n,h,o,r),S=Xr(),t!==null&&!Jt?(kr(t,e,r),gn(t,e,r)):(St&&S&&Er(e),e.flags|=1,le(t,e,l,r),e.child)}function Qh(t,e,n,l,r){if(t===null){var o=n.type;return typeof o=="function"&&!br(o)&&o.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=o,Kh(t,e,o,l,r)):(t=rs(n.type,null,l,e,e.mode,r),t.ref=e.ref,t.return=e,e.child=t)}if(o=t.child,!yo(t,r)){var h=o.memoizedProps;if(n=n.compare,n=n!==null?n:Xi,n(h,l)&&t.ref===e.ref)return gn(t,e,r)}return e.flags|=1,t=fn(o,l),t.ref=e.ref,t.return=e,e.child=t}function Kh(t,e,n,l,r){if(t!==null){var o=t.memoizedProps;if(Xi(o,l)&&t.ref===e.ref)if(Jt=!1,e.pendingProps=l=o,yo(t,r))(t.flags&131072)!==0&&(Jt=!0);else return e.lanes=t.lanes,gn(t,e,r)}return ro(t,e,n,l,r)}function Jh(t,e,n,l){var r=l.children,o=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((e.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,t!==null){for(l=e.child=t.child,r=0;l!==null;)r=r|l.lanes|l.childLanes,l=l.sibling;l=r&~o}else l=0,e.child=null;return Ph(t,e,o,n,l)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&ds(e,o!==null?o.cachePool:null),o!==null?Wd(e,o):Lr(),$d(e);else return l=e.lanes=536870912,Ph(t,e,o!==null?o.baseLanes|n:n,n,l)}else o!==null?(ds(e,o.cachePool),Wd(e,o),Bn(),e.memoizedState=null):(t!==null&&ds(e,null),Lr(),Bn());return le(t,e,r,n),e.child}function il(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Ph(t,e,n,l,r){var o=jr();return o=o===null?null:{parent:Qt._currentValue,pool:o},e.memoizedState={baseLanes:n,cachePool:o},t!==null&&ds(e,null),Lr(),$d(e),t!==null&&Pa(t,e,l,!0),e.childLanes=r,null}function Rs(t,e){return e=zs({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Fh(t,e,n){return va(e,t.child,null,n),t=Rs(e,e.pendingProps),t.flags|=2,Ce(e),e.memoizedState=null,t}function q1(t,e,n){var l=e.pendingProps,r=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(St){if(l.mode==="hidden")return t=Rs(e,l),e.lanes=536870912,il(null,t);if(Yr(e),(t=Bt)?(t=rp(t,Ue),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Rn!==null?{id:We,overflow:$e}:null,retryLane:536870912,hydrationErrors:null},n=_d(t),n.return=e,e.child=n,ae=e,Bt=null)):t=null,t===null)throw zn(e);return e.lanes=536870912,null}return Rs(e,l)}var o=t.memoizedState;if(o!==null){var h=o.dehydrated;if(Yr(e),r)if(e.flags&256)e.flags&=-257,e=Fh(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(u(558));else if(Jt||Pa(t,e,n,!1),r=(n&t.childLanes)!==0,Jt||r){if(l=jt,l!==null&&(h=Yf(l,n),h!==0&&h!==o.retryLane))throw o.retryLane=h,ca(t,h),xe(l,t,h),uo;Hs(),e=Fh(t,e,n)}else t=o.treeContext,Bt=He(h.nextSibling),ae=e,St=!0,wn=null,Ue=!1,t!==null&&Bd(e,t),e=Rs(e,l),e.flags|=4096;return e}return t=fn(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function ws(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(u(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function ro(t,e,n,l,r){return ma(e),n=Gr(t,e,n,l,void 0,r),l=Xr(),t!==null&&!Jt?(kr(t,e,r),gn(t,e,r)):(St&&l&&Er(e),e.flags|=1,le(t,e,n,r),e.child)}function Wh(t,e,n,l,r,o){return ma(e),e.updateQueue=null,n=th(e,l,n,r),Id(t),l=Xr(),t!==null&&!Jt?(kr(t,e,o),gn(t,e,o)):(St&&l&&Er(e),e.flags|=1,le(t,e,n,o),e.child)}function $h(t,e,n,l,r){if(ma(e),e.stateNode===null){var o=Za,h=n.contextType;typeof h=="object"&&h!==null&&(o=ie(h)),o=new n(l,o),e.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=lo,e.stateNode=o,o._reactInternals=e,o=e.stateNode,o.props=l,o.state=e.memoizedState,o.refs={},Vr(e),h=n.contextType,o.context=typeof h=="object"&&h!==null?ie(h):Za,o.state=e.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(io(e,n,h,l),o.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(h=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),h!==o.state&&lo.enqueueReplaceState(o,o.state,null),Ii(e,l,o,r),$i(),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){o=e.stateNode;var S=e.memoizedProps,T=ba(n,S);o.props=T;var O=o.context,U=n.contextType;h=Za,typeof U=="object"&&U!==null&&(h=ie(U));var G=n.getDerivedStateFromProps;U=typeof G=="function"||typeof o.getSnapshotBeforeUpdate=="function",S=e.pendingProps!==S,U||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(S||O!==h)&&Lh(e,o,l,h),jn=!1;var _=e.memoizedState;o.state=_,Ii(e,l,o,r),$i(),O=e.memoizedState,S||_!==O||jn?(typeof G=="function"&&(io(e,n,G,l),O=e.memoizedState),(T=jn||Uh(e,n,T,l,_,O,h))?(U||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=O),o.props=l,o.state=O,o.context=h,l=T):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{o=e.stateNode,Nr(t,e),h=e.memoizedProps,U=ba(n,h),o.props=U,G=e.pendingProps,_=o.context,O=n.contextType,T=Za,typeof O=="object"&&O!==null&&(T=ie(O)),S=n.getDerivedStateFromProps,(O=typeof S=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(h!==G||_!==T)&&Lh(e,o,l,T),jn=!1,_=e.memoizedState,o.state=_,Ii(e,l,o,r),$i();var N=e.memoizedState;h!==G||_!==N||jn||t!==null&&t.dependencies!==null&&cs(t.dependencies)?(typeof S=="function"&&(io(e,n,S,l),N=e.memoizedState),(U=jn||Uh(e,n,U,l,_,N,T)||t!==null&&t.dependencies!==null&&cs(t.dependencies))?(O||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(l,N,T),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(l,N,T)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||h===t.memoizedProps&&_===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&_===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=N),o.props=l,o.state=N,o.context=T,l=U):(typeof o.componentDidUpdate!="function"||h===t.memoizedProps&&_===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&_===t.memoizedState||(e.flags|=1024),l=!1)}return o=l,ws(t,e),l=(e.flags&128)!==0,o||l?(o=e.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:o.render(),e.flags|=1,t!==null&&l?(e.child=va(e,t.child,null,r),e.child=va(e,null,n,r)):le(t,e,n,r),e.memoizedState=o.state,t=e.child):t=gn(t,e,r),t}function Ih(t,e,n,l){return da(),e.flags|=256,le(t,e,n,l),e.child}var oo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function co(t){return{baseLanes:t,cachePool:Gd()}}function fo(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Re),t}function tm(t,e,n){var l=e.pendingProps,r=!1,o=(e.flags&128)!==0,h;if((h=o)||(h=t!==null&&t.memoizedState===null?!1:(kt.current&2)!==0),h&&(r=!0,e.flags&=-129),h=(e.flags&32)!==0,e.flags&=-33,t===null){if(St){if(r?Nn(e):Bn(),(t=Bt)?(t=rp(t,Ue),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Rn!==null?{id:We,overflow:$e}:null,retryLane:536870912,hydrationErrors:null},n=_d(t),n.return=e,e.child=n,ae=e,Bt=null)):t=null,t===null)throw zn(e);return Jo(t)?e.lanes=32:e.lanes=536870912,null}var S=l.children;return l=l.fallback,r?(Bn(),r=e.mode,S=zs({mode:"hidden",children:S},r),l=fa(l,r,n,null),S.return=e,l.return=e,S.sibling=l,e.child=S,l=e.child,l.memoizedState=co(n),l.childLanes=fo(t,h,n),e.memoizedState=oo,il(null,l)):(Nn(e),ho(e,S))}var T=t.memoizedState;if(T!==null&&(S=T.dehydrated,S!==null)){if(o)e.flags&256?(Nn(e),e.flags&=-257,e=mo(t,e,n)):e.memoizedState!==null?(Bn(),e.child=t.child,e.flags|=128,e=null):(Bn(),S=l.fallback,r=e.mode,l=zs({mode:"visible",children:l.children},r),S=fa(S,r,n,null),S.flags|=2,l.return=e,S.return=e,l.sibling=S,e.child=l,va(e,t.child,null,n),l=e.child,l.memoizedState=co(n),l.childLanes=fo(t,h,n),e.memoizedState=oo,e=il(null,l));else if(Nn(e),Jo(S)){if(h=S.nextSibling&&S.nextSibling.dataset,h)var O=h.dgst;h=O,l=Error(u(419)),l.stack="",l.digest=h,Qi({value:l,source:null,stack:null}),e=mo(t,e,n)}else if(Jt||Pa(t,e,n,!1),h=(n&t.childLanes)!==0,Jt||h){if(h=jt,h!==null&&(l=Yf(h,n),l!==0&&l!==T.retryLane))throw T.retryLane=l,ca(t,l),xe(h,t,l),uo;Ko(S)||Hs(),e=mo(t,e,n)}else Ko(S)?(e.flags|=192,e.child=t.child,e=null):(t=T.treeContext,Bt=He(S.nextSibling),ae=e,St=!0,wn=null,Ue=!1,t!==null&&Bd(e,t),e=ho(e,l.children),e.flags|=4096);return e}return r?(Bn(),S=l.fallback,r=e.mode,T=t.child,O=T.sibling,l=fn(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,O!==null?S=fn(O,S):(S=fa(S,r,n,null),S.flags|=2),S.return=e,l.return=e,l.sibling=S,e.child=l,il(null,l),l=e.child,S=t.child.memoizedState,S===null?S=co(n):(r=S.cachePool,r!==null?(T=Qt._currentValue,r=r.parent!==T?{parent:T,pool:T}:r):r=Gd(),S={baseLanes:S.baseLanes|n,cachePool:r}),l.memoizedState=S,l.childLanes=fo(t,h,n),e.memoizedState=oo,il(t.child,l)):(Nn(e),n=t.child,t=n.sibling,n=fn(n,{mode:"visible",children:l.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 ho(t,e){return e=zs({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function zs(t,e){return t=Ae(22,t,null,e),t.lanes=0,t}function mo(t,e,n){return va(e,t.child,null,n),t=ho(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function em(t,e,n){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),Rr(t.return,e,n)}function po(t,e,n,l,r,o){var h=t.memoizedState;h===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:r,treeForkCount:o}:(h.isBackwards=e,h.rendering=null,h.renderingStartTime=0,h.last=l,h.tail=n,h.tailMode=r,h.treeForkCount=o)}function nm(t,e,n){var l=e.pendingProps,r=l.revealOrder,o=l.tail;l=l.children;var h=kt.current,S=(h&2)!==0;if(S?(h=h&1|2,e.flags|=128):h&=1,I(kt,h),le(t,e,l,n),l=St?Zi:0,!S&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&em(t,n,e);else if(t.tag===19)em(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(r){case"forwards":for(n=e.child,r=null;n!==null;)t=n.alternate,t!==null&&vs(t)===null&&(r=n),n=n.sibling;n=r,n===null?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null),po(e,!1,r,n,o,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,r=e.child,e.child=null;r!==null;){if(t=r.alternate,t!==null&&vs(t)===null){e.child=r;break}t=r.sibling,r.sibling=n,n=r,r=t}po(e,!0,n,null,o,l);break;case"together":po(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function gn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Hn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Pa(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(u(153));if(e.child!==null){for(t=e.child,n=fn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=fn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function yo(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&cs(t)))}function G1(t,e,n){switch(e.tag){case 3:Yt(e,e.stateNode.containerInfo),On(e,Qt,t.memoizedState.cache),da();break;case 27:case 5:na(e);break;case 4:Yt(e,e.stateNode.containerInfo);break;case 10:On(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Yr(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(Nn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?tm(t,e,n):(Nn(e),t=gn(t,e,n),t!==null?t.sibling:null);Nn(e);break;case 19:var r=(t.flags&128)!==0;if(l=(n&e.childLanes)!==0,l||(Pa(t,e,n,!1),l=(n&e.childLanes)!==0),r){if(l)return nm(t,e,n);e.flags|=128}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),I(kt,kt.current),l)break;return null;case 22:return e.lanes=0,Jh(t,e,n,e.pendingProps);case 24:On(e,Qt,t.memoizedState.cache)}return gn(t,e,n)}function am(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Jt=!0;else{if(!yo(t,n)&&(e.flags&128)===0)return Jt=!1,G1(t,e,n);Jt=(t.flags&131072)!==0}else Jt=!1,St&&(e.flags&1048576)!==0&&Nd(e,Zi,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=ya(e.elementType),e.type=t,typeof t=="function")br(t)?(l=ba(t,l),e.tag=1,e=$h(null,e,t,l,n)):(e.tag=0,e=ro(null,e,t,l,n));else{if(t!=null){var r=t.$$typeof;if(r===J){e.tag=11,e=Zh(null,e,t,l,n);break t}else if(r===X){e.tag=14,e=Qh(null,e,t,l,n);break t}}throw e=bt(t)||t,Error(u(306,e,""))}}return e;case 0:return ro(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,r=ba(l,e.pendingProps),$h(t,e,l,r,n);case 3:t:{if(Yt(e,e.stateNode.containerInfo),t===null)throw Error(u(387));l=e.pendingProps;var o=e.memoizedState;r=o.element,Nr(t,e),Ii(e,l,null,n);var h=e.memoizedState;if(l=h.cache,On(e,Qt,l),l!==o.cache&&wr(e,[Qt],n,!0),$i(),l=h.element,o.isDehydrated)if(o={element:l,isDehydrated:!1,cache:h.cache},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){e=Ih(t,e,l,n);break t}else if(l!==r){r=Ve(Error(u(424)),e),Qi(r),e=Ih(t,e,l,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(Bt=He(t.firstChild),ae=e,St=!0,wn=null,Ue=!0,n=Jd(e,null,l,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(da(),l===r){e=gn(t,e,n);break t}le(t,e,l,n)}e=e.child}return e;case 26:return ws(t,e),t===null?(n=mp(e.type,null,e.pendingProps,null))?e.memoizedState=n:St||(n=e.type,t=e.pendingProps,l=Qs(mt.current).createElement(n),l[ne]=e,l[ye]=t,se(l,n,t),It(l),e.stateNode=l):e.memoizedState=mp(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return na(e),t===null&&St&&(l=e.stateNode=fp(e.type,e.pendingProps,mt.current),ae=e,Ue=!0,r=Bt,kn(e.type)?(Po=r,Bt=He(l.firstChild)):Bt=r),le(t,e,e.pendingProps.children,n),ws(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&St&&((r=l=Bt)&&(l=vS(l,e.type,e.pendingProps,Ue),l!==null?(e.stateNode=l,ae=e,Bt=He(l.firstChild),Ue=!1,r=!0):r=!1),r||zn(e)),na(e),r=e.type,o=e.pendingProps,h=t!==null?t.memoizedProps:null,l=o.children,ko(r,o)?l=null:h!==null&&ko(r,h)&&(e.flags|=32),e.memoizedState!==null&&(r=Gr(t,e,_1,null,null,n),Sl._currentValue=r),ws(t,e),le(t,e,l,n),e.child;case 6:return t===null&&St&&((t=n=Bt)&&(n=SS(n,e.pendingProps,Ue),n!==null?(e.stateNode=n,ae=e,Bt=null,t=!0):t=!1),t||zn(e)),null;case 13:return tm(t,e,n);case 4:return Yt(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=va(e,null,l,n):le(t,e,l,n),e.child;case 11:return Zh(t,e,e.type,e.pendingProps,n);case 7:return le(t,e,e.pendingProps,n),e.child;case 8:return le(t,e,e.pendingProps.children,n),e.child;case 12:return le(t,e,e.pendingProps.children,n),e.child;case 10:return l=e.pendingProps,On(e,e.type,l.value),le(t,e,l.children,n),e.child;case 9:return r=e.type._context,l=e.pendingProps.children,ma(e),r=ie(r),l=l(r),e.flags|=1,le(t,e,l,n),e.child;case 14:return Qh(t,e,e.type,e.pendingProps,n);case 15:return Kh(t,e,e.type,e.pendingProps,n);case 19:return nm(t,e,n);case 31:return q1(t,e,n);case 22:return Jh(t,e,n,e.pendingProps);case 24:return ma(e),l=ie(Qt),t===null?(r=jr(),r===null&&(r=jt,o=zr(),r.pooledCache=o,o.refCount++,o!==null&&(r.pooledCacheLanes|=n),r=o),e.memoizedState={parent:l,cache:r},Vr(e),On(e,Qt,r)):((t.lanes&n)!==0&&(Nr(t,e),Ii(e,null,null,n),$i()),r=t.memoizedState,o=e.memoizedState,r.parent!==l?(r={parent:l,cache:l},e.memoizedState=r,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=r),On(e,Qt,l)):(l=o.cache,On(e,Qt,l),l!==r.cache&&wr(e,[Qt],n,!0))),le(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(u(156,e.tag))}function vn(t){t.flags|=4}function go(t,e,n,l,r){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(r&335544128)===r)if(t.stateNode.complete)t.flags|=8192;else if(zm())t.flags|=8192;else throw ga=ms,_r}else t.flags&=-16777217}function im(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Sp(e))if(zm())t.flags|=8192;else throw ga=ms,_r}function Os(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Uf():536870912,t.lanes|=e,ui|=e)}function ll(t,e){if(!St)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 l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function Ut(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,l=0;if(e)for(var r=t.child;r!==null;)n|=r.lanes|r.childLanes,l|=r.subtreeFlags&65011712,l|=r.flags&65011712,r.return=t,r=r.sibling;else for(r=t.child;r!==null;)n|=r.lanes|r.childLanes,l|=r.subtreeFlags,l|=r.flags,r.return=t,r=r.sibling;return t.subtreeFlags|=l,t.childLanes=n,e}function X1(t,e,n){var l=e.pendingProps;switch(Ar(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ut(e),null;case 1:return Ut(e),null;case 3:return n=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),mn(Qt),Vt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Ja(e)?vn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Cr())),Ut(e),null;case 26:var r=e.type,o=e.memoizedState;return t===null?(vn(e),o!==null?(Ut(e),im(e,o)):(Ut(e),go(e,r,null,l,n))):o?o!==t.memoizedState?(vn(e),Ut(e),im(e,o)):(Ut(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&vn(e),Ut(e),go(e,r,t,l,n)),null;case 27:if(un(e),n=mt.current,r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&vn(e);else{if(!l){if(e.stateNode===null)throw Error(u(166));return Ut(e),null}t=et.current,Ja(e)?Ud(e):(t=fp(r,l,n),e.stateNode=t,vn(e))}return Ut(e),null;case 5:if(un(e),r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&vn(e);else{if(!l){if(e.stateNode===null)throw Error(u(166));return Ut(e),null}if(o=et.current,Ja(e))Ud(e);else{var h=Qs(mt.current);switch(o){case 1:o=h.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:o=h.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":o=h.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":o=h.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":o=h.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof l.is=="string"?h.createElement("select",{is:l.is}):h.createElement("select"),l.multiple?o.multiple=!0:l.size&&(o.size=l.size);break;default:o=typeof l.is=="string"?h.createElement(r,{is:l.is}):h.createElement(r)}}o[ne]=e,o[ye]=l;t:for(h=e.child;h!==null;){if(h.tag===5||h.tag===6)o.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=o;t:switch(se(o,r,l),r){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&vn(e)}}return Ut(e),go(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&vn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(u(166));if(t=mt.current,Ja(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,r=ae,r!==null)switch(r.tag){case 27:case 5:l=r.memoizedProps}t[ne]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||tp(t.nodeValue,n)),t||zn(e,!0)}else t=Qs(t).createTextNode(l),t[ne]=e,e.stateNode=t}return Ut(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(l=Ja(e),n!==null){if(t===null){if(!l)throw Error(u(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(557));t[ne]=e}else da(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ut(e),t=!1}else n=Cr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Ce(e),e):(Ce(e),null);if((e.flags&128)!==0)throw Error(u(558))}return Ut(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(r=Ja(e),l!==null&&l.dehydrated!==null){if(t===null){if(!r)throw Error(u(318));if(r=e.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(u(317));r[ne]=e}else da(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ut(e),r=!1}else r=Cr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=r),r=!0;if(!r)return e.flags&256?(Ce(e),e):(Ce(e),null)}return Ce(e),(e.flags&128)!==0?(e.lanes=n,e):(n=l!==null,t=t!==null&&t.memoizedState!==null,n&&(l=e.child,r=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(r=l.alternate.memoizedState.cachePool.pool),o=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(o=l.memoizedState.cachePool.pool),o!==r&&(l.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),Os(e,e.updateQueue),Ut(e),null);case 4:return Vt(),t===null&&Ho(e.stateNode.containerInfo),Ut(e),null;case 10:return mn(e.type),Ut(e),null;case 19:if(L(kt),l=e.memoizedState,l===null)return Ut(e),null;if(r=(e.flags&128)!==0,o=l.rendering,o===null)if(r)ll(l,!1);else{if(Gt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(o=vs(t),o!==null){for(e.flags|=128,ll(l,!1),t=o.updateQueue,e.updateQueue=t,Os(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)jd(n,t),n=n.sibling;return I(kt,kt.current&1|2),St&&dn(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&oe()>Bs&&(e.flags|=128,r=!0,ll(l,!1),e.lanes=4194304)}else{if(!r)if(t=vs(o),t!==null){if(e.flags|=128,r=!0,t=t.updateQueue,e.updateQueue=t,Os(e,t),ll(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!St)return Ut(e),null}else 2*oe()-l.renderingStartTime>Bs&&n!==536870912&&(e.flags|=128,r=!0,ll(l,!1),e.lanes=4194304);l.isBackwards?(o.sibling=e.child,e.child=o):(t=l.last,t!==null?t.sibling=o:e.child=o,l.last=o)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=oe(),t.sibling=null,n=kt.current,I(kt,r?n&1|2:n&1),St&&dn(e,l.treeForkCount),t):(Ut(e),null);case 22:case 23:return Ce(e),Hr(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(n&536870912)!==0&&(e.flags&128)===0&&(Ut(e),e.subtreeFlags&6&&(e.flags|=8192)):Ut(e),n=e.updateQueue,n!==null&&Os(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==n&&(e.flags|=2048),t!==null&&L(pa),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),mn(Qt),Ut(e),null;case 25:return null;case 30:return null}throw Error(u(156,e.tag))}function k1(t,e){switch(Ar(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return mn(Qt),Vt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return un(e),null;case 31:if(e.memoizedState!==null){if(Ce(e),e.alternate===null)throw Error(u(340));da()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Ce(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(u(340));da()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return L(kt),null;case 4:return Vt(),null;case 10:return mn(e.type),null;case 22:case 23:return Ce(e),Hr(),t!==null&&L(pa),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return mn(Qt),null;case 25:return null;default:return null}}function lm(t,e){switch(Ar(e),e.tag){case 3:mn(Qt),Vt();break;case 26:case 27:case 5:un(e);break;case 4:Vt();break;case 31:e.memoizedState!==null&&Ce(e);break;case 13:Ce(e);break;case 19:L(kt);break;case 10:mn(e.type);break;case 22:case 23:Ce(e),Hr(),t!==null&&L(pa);break;case 24:mn(Qt)}}function sl(t,e){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var r=l.next;n=r;do{if((n.tag&t)===t){l=void 0;var o=n.create,h=n.inst;l=o(),h.destroy=l}n=n.next}while(n!==r)}}catch(S){Dt(e,e.return,S)}}function Un(t,e,n){try{var l=e.updateQueue,r=l!==null?l.lastEffect:null;if(r!==null){var o=r.next;l=o;do{if((l.tag&t)===t){var h=l.inst,S=h.destroy;if(S!==void 0){h.destroy=void 0,r=e;var T=n,O=S;try{O()}catch(U){Dt(r,T,U)}}}l=l.next}while(l!==o)}}catch(U){Dt(e,e.return,U)}}function sm(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Fd(e,n)}catch(l){Dt(t,t.return,l)}}}function um(t,e,n){n.props=ba(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){Dt(t,e,l)}}function ul(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof n=="function"?t.refCleanup=n(l):n.current=l}}catch(r){Dt(t,e,r)}}function Ie(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(r){Dt(t,e,r)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){Dt(t,e,r)}else n.current=null}function rm(t){var e=t.type,n=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break t;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(r){Dt(t,t.return,r)}}function vo(t,e,n){try{var l=t.stateNode;dS(l,t.type,n,e),l[ye]=e}catch(r){Dt(t,t.return,r)}}function om(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&kn(t.type)||t.tag===4}function So(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||om(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&&kn(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 bo(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=on));else if(l!==4&&(l===27&&kn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(bo(t,e,n),t=t.sibling;t!==null;)bo(t,e,n),t=t.sibling}function js(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(l!==4&&(l===27&&kn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(js(t,e,n),t=t.sibling;t!==null;)js(t,e,n),t=t.sibling}function cm(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,r=e.attributes;r.length;)e.removeAttributeNode(r[0]);se(e,l,n),e[ne]=t,e[ye]=n}catch(o){Dt(t,t.return,o)}}var Sn=!1,Pt=!1,To=!1,fm=typeof WeakSet=="function"?WeakSet:Set,te=null;function Z1(t,e){if(t=t.containerInfo,Go=Is,t=Ed(t),hr(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var r=l.anchorOffset,o=l.focusNode;l=l.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break t}var h=0,S=-1,T=-1,O=0,U=0,G=t,_=null;e:for(;;){for(var N;G!==n||r!==0&&G.nodeType!==3||(S=h+r),G!==o||l!==0&&G.nodeType!==3||(T=h+l),G.nodeType===3&&(h+=G.nodeValue.length),(N=G.firstChild)!==null;)_=G,G=N;for(;;){if(G===t)break e;if(_===n&&++O===r&&(S=h),_===o&&++U===l&&(T=h),(N=G.nextSibling)!==null)break;G=_,_=G.parentNode}G=N}n=S===-1||T===-1?null:{start:S,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;for(Xo={focusedElem:t,selectionRange:n},Is=!1,te=e;te!==null;)if(e=te,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,te=t;else for(;te!==null;){switch(e=te,o=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++)r=t[n],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&o!==null){t=void 0,n=e,r=o.memoizedProps,o=o.memoizedState,l=n.stateNode;try{var nt=ba(n.type,r);t=l.getSnapshotBeforeUpdate(nt,o),l.__reactInternalSnapshotBeforeUpdate=t}catch(ut){Dt(n,n.return,ut)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)Qo(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Qo(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(u(163))}if(t=e.sibling,t!==null){t.return=e.return,te=t;break}te=e.return}}function dm(t,e,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:Tn(t,n),l&4&&sl(5,n);break;case 1:if(Tn(t,n),l&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(h){Dt(n,n.return,h)}else{var r=ba(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(r,e,t.__reactInternalSnapshotBeforeUpdate)}catch(h){Dt(n,n.return,h)}}l&64&&sm(n),l&512&&ul(n,n.return);break;case 3:if(Tn(t,n),l&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{Fd(t,e)}catch(h){Dt(n,n.return,h)}}break;case 27:e===null&&l&4&&cm(n);case 26:case 5:Tn(t,n),e===null&&l&4&&rm(n),l&512&&ul(n,n.return);break;case 12:Tn(t,n);break;case 31:Tn(t,n),l&4&&pm(t,n);break;case 13:Tn(t,n),l&4&&ym(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=tS.bind(null,n),bS(t,n))));break;case 22:if(l=n.memoizedState!==null||Sn,!l){e=e!==null&&e.memoizedState!==null||Pt,r=Sn;var o=Pt;Sn=l,(Pt=e)&&!o?xn(t,n,(n.subtreeFlags&8772)!==0):Tn(t,n),Sn=r,Pt=o}break;case 30:break;default:Tn(t,n)}}function hm(t){var e=t.alternate;e!==null&&(t.alternate=null,hm(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Fu(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 Ht=null,ve=!1;function bn(t,e,n){for(n=n.child;n!==null;)mm(t,e,n),n=n.sibling}function mm(t,e,n){if(Rt&&typeof Rt.onCommitFiberUnmount=="function")try{Rt.onCommitFiberUnmount(Nt,n)}catch{}switch(n.tag){case 26:Pt||Ie(n,e),bn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Pt||Ie(n,e);var l=Ht,r=ve;kn(n.type)&&(Ht=n.stateNode,ve=!1),bn(t,e,n),yl(n.stateNode),Ht=l,ve=r;break;case 5:Pt||Ie(n,e);case 6:if(l=Ht,r=ve,Ht=null,bn(t,e,n),Ht=l,ve=r,Ht!==null)if(ve)try{(Ht.nodeType===9?Ht.body:Ht.nodeName==="HTML"?Ht.ownerDocument.body:Ht).removeChild(n.stateNode)}catch(o){Dt(n,e,o)}else try{Ht.removeChild(n.stateNode)}catch(o){Dt(n,e,o)}break;case 18:Ht!==null&&(ve?(t=Ht,sp(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),pi(t)):sp(Ht,n.stateNode));break;case 4:l=Ht,r=ve,Ht=n.stateNode.containerInfo,ve=!0,bn(t,e,n),Ht=l,ve=r;break;case 0:case 11:case 14:case 15:Un(2,n,e),Pt||Un(4,n,e),bn(t,e,n);break;case 1:Pt||(Ie(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&um(n,e,l)),bn(t,e,n);break;case 21:bn(t,e,n);break;case 22:Pt=(l=Pt)||n.memoizedState!==null,bn(t,e,n),Pt=l;break;default:bn(t,e,n)}}function pm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{pi(t)}catch(n){Dt(e,e.return,n)}}}function ym(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{pi(t)}catch(n){Dt(e,e.return,n)}}function Q1(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new fm),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new fm),e;default:throw Error(u(435,t.tag))}}function _s(t,e){var n=Q1(t);e.forEach(function(l){if(!n.has(l)){n.add(l);var r=eS.bind(null,t,l);l.then(r,r)}})}function Se(t,e){var n=e.deletions;if(n!==null)for(var l=0;l<n.length;l++){var r=n[l],o=t,h=e,S=h;t:for(;S!==null;){switch(S.tag){case 27:if(kn(S.type)){Ht=S.stateNode,ve=!1;break t}break;case 5:Ht=S.stateNode,ve=!1;break t;case 3:case 4:Ht=S.stateNode.containerInfo,ve=!0;break t}S=S.return}if(Ht===null)throw Error(u(160));mm(o,h,r),Ht=null,ve=!1,o=r.alternate,o!==null&&(o.return=null),r.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)gm(e,t),e=e.sibling}var ke=null;function gm(t,e){var n=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Se(e,t),be(t),l&4&&(Un(3,t,t.return),sl(3,t),Un(5,t,t.return));break;case 1:Se(e,t),be(t),l&512&&(Pt||n===null||Ie(n,n.return)),l&64&&Sn&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var r=ke;if(Se(e,t),be(t),l&512&&(Pt||n===null||Ie(n,n.return)),l&4){var o=n!==null?n.memoizedState:null;if(l=t.memoizedState,n===null)if(l===null)if(t.stateNode===null){t:{l=t.type,n=t.memoizedProps,r=r.ownerDocument||r;e:switch(l){case"title":o=r.getElementsByTagName("title")[0],(!o||o[Vi]||o[ne]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=r.createElement(l),r.head.insertBefore(o,r.querySelector("head > title"))),se(o,l,n),o[ne]=t,It(o),l=o;break t;case"link":var h=gp("link","href",r).get(l+(n.href||""));if(h){for(var S=0;S<h.length;S++)if(o=h[S],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){h.splice(S,1);break e}}o=r.createElement(l),se(o,l,n),r.head.appendChild(o);break;case"meta":if(h=gp("meta","content",r).get(l+(n.content||""))){for(S=0;S<h.length;S++)if(o=h[S],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){h.splice(S,1);break e}}o=r.createElement(l),se(o,l,n),r.head.appendChild(o);break;default:throw Error(u(468,l))}o[ne]=t,It(o),l=o}t.stateNode=l}else vp(r,t.type,t.stateNode);else t.stateNode=yp(r,l,t.memoizedProps);else o!==l?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,l===null?vp(r,t.type,t.stateNode):yp(r,l,t.memoizedProps)):l===null&&t.stateNode!==null&&vo(t,t.memoizedProps,n.memoizedProps)}break;case 27:Se(e,t),be(t),l&512&&(Pt||n===null||Ie(n,n.return)),n!==null&&l&4&&vo(t,t.memoizedProps,n.memoizedProps);break;case 5:if(Se(e,t),be(t),l&512&&(Pt||n===null||Ie(n,n.return)),t.flags&32){r=t.stateNode;try{La(r,"")}catch(nt){Dt(t,t.return,nt)}}l&4&&t.stateNode!=null&&(r=t.memoizedProps,vo(t,r,n!==null?n.memoizedProps:r)),l&1024&&(To=!0);break;case 6:if(Se(e,t),be(t),l&4){if(t.stateNode===null)throw Error(u(162));l=t.memoizedProps,n=t.stateNode;try{n.nodeValue=l}catch(nt){Dt(t,t.return,nt)}}break;case 3:if(Ps=null,r=ke,ke=Ks(e.containerInfo),Se(e,t),ke=r,be(t),l&4&&n!==null&&n.memoizedState.isDehydrated)try{pi(e.containerInfo)}catch(nt){Dt(t,t.return,nt)}To&&(To=!1,vm(t));break;case 4:l=ke,ke=Ks(t.stateNode.containerInfo),Se(e,t),be(t),ke=l;break;case 12:Se(e,t),be(t);break;case 31:Se(e,t),be(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,_s(t,l)));break;case 13:Se(e,t),be(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Ns=oe()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,_s(t,l)));break;case 22:r=t.memoizedState!==null;var T=n!==null&&n.memoizedState!==null,O=Sn,U=Pt;if(Sn=O||r,Pt=U||T,Se(e,t),Pt=U,Sn=O,be(t),l&8192)t:for(e=t.stateNode,e._visibility=r?e._visibility&-2:e._visibility|1,r&&(n===null||T||Sn||Pt||Ta(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){T=n=e;try{if(o=T.stateNode,r)h=o.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{S=T.stateNode;var G=T.memoizedProps.style,_=G!=null&&G.hasOwnProperty("display")?G.display:null;S.style.display=_==null||typeof _=="boolean"?"":(""+_).trim()}}catch(nt){Dt(T,T.return,nt)}}}else if(e.tag===6){if(n===null){T=e;try{T.stateNode.nodeValue=r?"":T.memoizedProps}catch(nt){Dt(T,T.return,nt)}}}else if(e.tag===18){if(n===null){T=e;try{var N=T.stateNode;r?up(N,!0):up(T.stateNode,!1)}catch(nt){Dt(T,T.return,nt)}}}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}l&4&&(l=t.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,_s(t,n))));break;case 19:Se(e,t),be(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,_s(t,l)));break;case 30:break;case 21:break;default:Se(e,t),be(t)}}function be(t){var e=t.flags;if(e&2){try{for(var n,l=t.return;l!==null;){if(om(l)){n=l;break}l=l.return}if(n==null)throw Error(u(160));switch(n.tag){case 27:var r=n.stateNode,o=So(t);js(t,o,r);break;case 5:var h=n.stateNode;n.flags&32&&(La(h,""),n.flags&=-33);var S=So(t);js(t,S,h);break;case 3:case 4:var T=n.stateNode.containerInfo,O=So(t);bo(t,O,T);break;default:throw Error(u(161))}}catch(U){Dt(t,t.return,U)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function vm(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;vm(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Tn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)dm(t,e.alternate,e),e=e.sibling}function Ta(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),Ta(e);break;case 1:Ie(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&um(e,e.return,n),Ta(e);break;case 27:yl(e.stateNode);case 26:case 5:Ie(e,e.return),Ta(e);break;case 22:e.memoizedState===null&&Ta(e);break;case 30:Ta(e);break;default:Ta(e)}t=t.sibling}}function xn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,r=t,o=e,h=o.flags;switch(o.tag){case 0:case 11:case 15:xn(r,o,n),sl(4,o);break;case 1:if(xn(r,o,n),l=o,r=l.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(O){Dt(l,l.return,O)}if(l=o,r=l.updateQueue,r!==null){var S=l.stateNode;try{var T=r.shared.hiddenCallbacks;if(T!==null)for(r.shared.hiddenCallbacks=null,r=0;r<T.length;r++)Pd(T[r],S)}catch(O){Dt(l,l.return,O)}}n&&h&64&&sm(o),ul(o,o.return);break;case 27:cm(o);case 26:case 5:xn(r,o,n),n&&l===null&&h&4&&rm(o),ul(o,o.return);break;case 12:xn(r,o,n);break;case 31:xn(r,o,n),n&&h&4&&pm(r,o);break;case 13:xn(r,o,n),n&&h&4&&ym(r,o);break;case 22:o.memoizedState===null&&xn(r,o,n),ul(o,o.return);break;case 30:break;default:xn(r,o,n)}e=e.sibling}}function xo(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&&Ki(n))}function Eo(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Ki(t))}function Ze(t,e,n,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Sm(t,e,n,l),e=e.sibling}function Sm(t,e,n,l){var r=e.flags;switch(e.tag){case 0:case 11:case 15:Ze(t,e,n,l),r&2048&&sl(9,e);break;case 1:Ze(t,e,n,l);break;case 3:Ze(t,e,n,l),r&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Ki(t)));break;case 12:if(r&2048){Ze(t,e,n,l),t=e.stateNode;try{var o=e.memoizedProps,h=o.id,S=o.onPostCommit;typeof S=="function"&&S(h,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(T){Dt(e,e.return,T)}}else Ze(t,e,n,l);break;case 31:Ze(t,e,n,l);break;case 13:Ze(t,e,n,l);break;case 23:break;case 22:o=e.stateNode,h=e.alternate,e.memoizedState!==null?o._visibility&2?Ze(t,e,n,l):rl(t,e):o._visibility&2?Ze(t,e,n,l):(o._visibility|=2,ii(t,e,n,l,(e.subtreeFlags&10256)!==0||!1)),r&2048&&xo(h,e);break;case 24:Ze(t,e,n,l),r&2048&&Eo(e.alternate,e);break;default:Ze(t,e,n,l)}}function ii(t,e,n,l,r){for(r=r&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var o=t,h=e,S=n,T=l,O=h.flags;switch(h.tag){case 0:case 11:case 15:ii(o,h,S,T,r),sl(8,h);break;case 23:break;case 22:var U=h.stateNode;h.memoizedState!==null?U._visibility&2?ii(o,h,S,T,r):rl(o,h):(U._visibility|=2,ii(o,h,S,T,r)),r&&O&2048&&xo(h.alternate,h);break;case 24:ii(o,h,S,T,r),r&&O&2048&&Eo(h.alternate,h);break;default:ii(o,h,S,T,r)}e=e.sibling}}function rl(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,l=e,r=l.flags;switch(l.tag){case 22:rl(n,l),r&2048&&xo(l.alternate,l);break;case 24:rl(n,l),r&2048&&Eo(l.alternate,l);break;default:rl(n,l)}e=e.sibling}}var ol=8192;function li(t,e,n){if(t.subtreeFlags&ol)for(t=t.child;t!==null;)bm(t,e,n),t=t.sibling}function bm(t,e,n){switch(t.tag){case 26:li(t,e,n),t.flags&ol&&t.memoizedState!==null&&jS(n,ke,t.memoizedState,t.memoizedProps);break;case 5:li(t,e,n);break;case 3:case 4:var l=ke;ke=Ks(t.stateNode.containerInfo),li(t,e,n),ke=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=ol,ol=16777216,li(t,e,n),ol=l):li(t,e,n));break;default:li(t,e,n)}}function Tm(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 cl(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];te=l,Em(l,t)}Tm(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)xm(t),t=t.sibling}function xm(t){switch(t.tag){case 0:case 11:case 15:cl(t),t.flags&2048&&Un(9,t,t.return);break;case 3:cl(t);break;case 12:cl(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Vs(t)):cl(t);break;default:cl(t)}}function Vs(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];te=l,Em(l,t)}Tm(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Un(8,e,e.return),Vs(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Vs(e));break;default:Vs(e)}t=t.sibling}}function Em(t,e){for(;te!==null;){var n=te;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 l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Ki(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,te=l;else t:for(n=t;te!==null;){l=te;var r=l.sibling,o=l.return;if(hm(l),l===n){te=null;break t}if(r!==null){r.return=o,te=r;break t}te=o}}}var K1={getCacheForType:function(t){var e=ie(Qt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return ie(Qt).controller.signal}},J1=typeof WeakMap=="function"?WeakMap:Map,At=0,jt=null,pt=null,gt=0,Ct=0,De=null,Ln=!1,si=!1,Ao=!1,En=0,Gt=0,Hn=0,xa=0,Mo=0,Re=0,ui=0,fl=null,Te=null,Co=!1,Ns=0,Am=0,Bs=1/0,Us=null,Yn=null,Wt=0,qn=null,ri=null,An=0,Do=0,Ro=null,Mm=null,dl=0,wo=null;function we(){return(At&2)!==0&&gt!==0?gt&-gt:V.T!==null?No():qf()}function Cm(){if(Re===0)if((gt&536870912)===0||St){var t=Zl;Zl<<=1,(Zl&3932160)===0&&(Zl=262144),Re=t}else Re=536870912;return t=Me.current,t!==null&&(t.flags|=32),Re}function xe(t,e,n){(t===jt&&(Ct===2||Ct===9)||t.cancelPendingCommit!==null)&&(oi(t,0),Gn(t,gt,Re,!1)),_i(t,n),((At&2)===0||t!==jt)&&(t===jt&&((At&2)===0&&(xa|=n),Gt===4&&Gn(t,gt,Re,!1)),tn(t))}function Dm(t,e,n){if((At&6)!==0)throw Error(u(327));var l=!n&&(e&127)===0&&(e&t.expiredLanes)===0||ji(t,e),r=l?W1(t,e):Oo(t,e,!0),o=l;do{if(r===0){si&&!l&&Gn(t,e,0,!1);break}else{if(n=t.current.alternate,o&&!P1(n)){r=Oo(t,e,!1),o=!1;continue}if(r===2){if(o=e,t.errorRecoveryDisabledLanes&o)var h=0;else h=t.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){e=h;t:{var S=t;r=fl;var T=S.current.memoizedState.isDehydrated;if(T&&(oi(S,h).flags|=256),h=Oo(S,h,!1),h!==2){if(Ao&&!T){S.errorRecoveryDisabledLanes|=o,xa|=o,r=4;break t}o=Te,Te=r,o!==null&&(Te===null?Te=o:Te.push.apply(Te,o))}r=h}if(o=!1,r!==2)continue}}if(r===1){oi(t,0),Gn(t,e,0,!0);break}t:{switch(l=t,o=r,o){case 0:case 1:throw Error(u(345));case 4:if((e&4194048)!==e)break;case 6:Gn(l,e,Re,!Ln);break t;case 2:Te=null;break;case 3:case 5:break;default:throw Error(u(329))}if((e&62914560)===e&&(r=Ns+300-oe(),10<r)){if(Gn(l,e,Re,!Ln),Kl(l,0,!0)!==0)break t;An=e,l.timeoutHandle=ip(Rm.bind(null,l,n,Te,Us,Co,e,Re,xa,ui,Ln,o,"Throttled",-0,0),r);break t}Rm(l,n,Te,Us,Co,e,Re,xa,ui,Ln,o,null,-0,0)}}break}while(!0);tn(t)}function Rm(t,e,n,l,r,o,h,S,T,O,U,G,_,N){if(t.timeoutHandle=-1,G=e.subtreeFlags,G&8192||(G&16785408)===16785408){G={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:on},bm(e,o,G);var nt=(o&62914560)===o?Ns-oe():(o&4194048)===o?Am-oe():0;if(nt=_S(G,nt),nt!==null){An=o,t.cancelPendingCommit=nt(Bm.bind(null,t,e,o,n,l,r,h,S,T,U,G,null,_,N)),Gn(t,o,h,!O);return}}Bm(t,e,o,n,l,r,h,S,T)}function P1(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 l=0;l<n.length;l++){var r=n[l],o=r.getSnapshot;r=r.value;try{if(!Ee(o(),r))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 Gn(t,e,n,l){e&=~Mo,e&=~xa,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var r=e;0<r;){var o=31-de(r),h=1<<o;l[o]=-1,r&=~h}n!==0&&Lf(t,n,e)}function Ls(){return(At&6)===0?(hl(0),!1):!0}function zo(){if(pt!==null){if(Ct===0)var t=pt.return;else t=pt,hn=ha=null,Zr(t),Ia=null,Pi=0,t=pt;for(;t!==null;)lm(t.alternate,t),t=t.return;pt=null}}function oi(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,pS(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),An=0,zo(),jt=t,pt=n=fn(t.current,null),gt=e,Ct=0,De=null,Ln=!1,si=ji(t,e),Ao=!1,ui=Re=Mo=xa=Hn=Gt=0,Te=fl=null,Co=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var r=31-de(l),o=1<<r;e|=t[r],l&=~o}return En=e,ls(),n}function wm(t,e){ft=null,V.H=al,e===$a||e===hs?(e=Zd(),Ct=3):e===_r?(e=Zd(),Ct=4):Ct=e===uo?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,De=e,pt===null&&(Gt=1,Ds(t,Ve(e,t.current)))}function zm(){var t=Me.current;return t===null?!0:(gt&4194048)===gt?Le===null:(gt&62914560)===gt||(gt&536870912)!==0?t===Le:!1}function Om(){var t=V.H;return V.H=al,t===null?al:t}function jm(){var t=V.A;return V.A=K1,t}function Hs(){Gt=4,Ln||(gt&4194048)!==gt&&Me.current!==null||(si=!0),(Hn&134217727)===0&&(xa&134217727)===0||jt===null||Gn(jt,gt,Re,!1)}function Oo(t,e,n){var l=At;At|=2;var r=Om(),o=jm();(jt!==t||gt!==e)&&(Us=null,oi(t,e)),e=!1;var h=Gt;t:do try{if(Ct!==0&&pt!==null){var S=pt,T=De;switch(Ct){case 8:zo(),h=6;break t;case 3:case 2:case 9:case 6:Me.current===null&&(e=!0);var O=Ct;if(Ct=0,De=null,ci(t,S,T,O),n&&si){h=0;break t}break;default:O=Ct,Ct=0,De=null,ci(t,S,T,O)}}F1(),h=Gt;break}catch(U){wm(t,U)}while(!0);return e&&t.shellSuspendCounter++,hn=ha=null,At=l,V.H=r,V.A=o,pt===null&&(jt=null,gt=0,ls()),h}function F1(){for(;pt!==null;)_m(pt)}function W1(t,e){var n=At;At|=2;var l=Om(),r=jm();jt!==t||gt!==e?(Us=null,Bs=oe()+500,oi(t,e)):si=ji(t,e);t:do try{if(Ct!==0&&pt!==null){e=pt;var o=De;e:switch(Ct){case 1:Ct=0,De=null,ci(t,e,o,1);break;case 2:case 9:if(Xd(o)){Ct=0,De=null,Vm(e);break}e=function(){Ct!==2&&Ct!==9||jt!==t||(Ct=7),tn(t)},o.then(e,e);break t;case 3:Ct=7;break t;case 4:Ct=5;break t;case 7:Xd(o)?(Ct=0,De=null,Vm(e)):(Ct=0,De=null,ci(t,e,o,7));break;case 5:var h=null;switch(pt.tag){case 26:h=pt.memoizedState;case 5:case 27:var S=pt;if(h?Sp(h):S.stateNode.complete){Ct=0,De=null;var T=S.sibling;if(T!==null)pt=T;else{var O=S.return;O!==null?(pt=O,Ys(O)):pt=null}break e}}Ct=0,De=null,ci(t,e,o,5);break;case 6:Ct=0,De=null,ci(t,e,o,6);break;case 8:zo(),Gt=6;break t;default:throw Error(u(462))}}$1();break}catch(U){wm(t,U)}while(!0);return hn=ha=null,V.H=l,V.A=r,At=n,pt!==null?0:(jt=null,gt=0,ls(),Gt)}function $1(){for(;pt!==null&&!Xu();)_m(pt)}function _m(t){var e=am(t.alternate,t,En);t.memoizedProps=t.pendingProps,e===null?Ys(t):pt=e}function Vm(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Wh(n,e,e.pendingProps,e.type,void 0,gt);break;case 11:e=Wh(n,e,e.pendingProps,e.type.render,e.ref,gt);break;case 5:Zr(e);default:lm(n,e),e=pt=jd(e,En),e=am(n,e,En)}t.memoizedProps=t.pendingProps,e===null?Ys(t):pt=e}function ci(t,e,n,l){hn=ha=null,Zr(e),Ia=null,Pi=0;var r=e.return;try{if(Y1(t,r,e,n,gt)){Gt=1,Ds(t,Ve(n,t.current)),pt=null;return}}catch(o){if(r!==null)throw pt=r,o;Gt=1,Ds(t,Ve(n,t.current)),pt=null;return}e.flags&32768?(St||l===1?t=!0:si||(gt&536870912)!==0?t=!1:(Ln=t=!0,(l===2||l===9||l===3||l===6)&&(l=Me.current,l!==null&&l.tag===13&&(l.flags|=16384))),Nm(e,t)):Ys(e)}function Ys(t){var e=t;do{if((e.flags&32768)!==0){Nm(e,Ln);return}t=e.return;var n=X1(e.alternate,e,En);if(n!==null){pt=n;return}if(e=e.sibling,e!==null){pt=e;return}pt=e=t}while(e!==null);Gt===0&&(Gt=5)}function Nm(t,e){do{var n=k1(t.alternate,t);if(n!==null){n.flags&=32767,pt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){pt=t;return}pt=t=n}while(t!==null);Gt=6,pt=null}function Bm(t,e,n,l,r,o,h,S,T){t.cancelPendingCommit=null;do qs();while(Wt!==0);if((At&6)!==0)throw Error(u(327));if(e!==null){if(e===t.current)throw Error(u(177));if(o=e.lanes|e.childLanes,o|=vr,Ov(t,n,o,h,S,T),t===jt&&(pt=jt=null,gt=0),ri=e,qn=t,An=n,Do=o,Ro=r,Mm=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,nS(Oa,function(){return qm(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=V.T,V.T=null,r=P.p,P.p=2,h=At,At|=4;try{Z1(t,e,n)}finally{At=h,P.p=r,V.T=l}}Wt=1,Um(),Lm(),Hm()}}function Um(){if(Wt===1){Wt=0;var t=qn,e=ri,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=V.T,V.T=null;var l=P.p;P.p=2;var r=At;At|=4;try{gm(e,t);var o=Xo,h=Ed(t.containerInfo),S=o.focusedElem,T=o.selectionRange;if(h!==S&&S&&S.ownerDocument&&xd(S.ownerDocument.documentElement,S)){if(T!==null&&hr(S)){var O=T.start,U=T.end;if(U===void 0&&(U=O),"selectionStart"in S)S.selectionStart=O,S.selectionEnd=Math.min(U,S.value.length);else{var G=S.ownerDocument||document,_=G&&G.defaultView||window;if(_.getSelection){var N=_.getSelection(),nt=S.textContent.length,ut=Math.min(T.start,nt),Ot=T.end===void 0?ut:Math.min(T.end,nt);!N.extend&&ut>Ot&&(h=Ot,Ot=ut,ut=h);var R=Td(S,ut),D=Td(S,Ot);if(R&&D&&(N.rangeCount!==1||N.anchorNode!==R.node||N.anchorOffset!==R.offset||N.focusNode!==D.node||N.focusOffset!==D.offset)){var z=G.createRange();z.setStart(R.node,R.offset),N.removeAllRanges(),ut>Ot?(N.addRange(z),N.extend(D.node,D.offset)):(z.setEnd(D.node,D.offset),N.addRange(z))}}}}for(G=[],N=S;N=N.parentNode;)N.nodeType===1&&G.push({element:N,left:N.scrollLeft,top:N.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<G.length;S++){var H=G[S];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}Is=!!Go,Xo=Go=null}finally{At=r,P.p=l,V.T=n}}t.current=e,Wt=2}}function Lm(){if(Wt===2){Wt=0;var t=qn,e=ri,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=V.T,V.T=null;var l=P.p;P.p=2;var r=At;At|=4;try{dm(t,e.alternate,e)}finally{At=r,P.p=l,V.T=n}}Wt=3}}function Hm(){if(Wt===4||Wt===3){Wt=0,Yl();var t=qn,e=ri,n=An,l=Mm;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Wt=5:(Wt=0,ri=qn=null,Ym(t,t.pendingLanes));var r=t.pendingLanes;if(r===0&&(Yn=null),Ju(n),e=e.stateNode,Rt&&typeof Rt.onCommitFiberRoot=="function")try{Rt.onCommitFiberRoot(Nt,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=V.T,r=P.p,P.p=2,V.T=null;try{for(var o=t.onRecoverableError,h=0;h<l.length;h++){var S=l[h];o(S.value,{componentStack:S.stack})}}finally{V.T=e,P.p=r}}(An&3)!==0&&qs(),tn(t),r=t.pendingLanes,(n&261930)!==0&&(r&42)!==0?t===wo?dl++:(dl=0,wo=t):dl=0,hl(0)}}function Ym(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Ki(e)))}function qs(){return Um(),Lm(),Hm(),qm()}function qm(){if(Wt!==5)return!1;var t=qn,e=Do;Do=0;var n=Ju(An),l=V.T,r=P.p;try{P.p=32>n?32:n,V.T=null,n=Ro,Ro=null;var o=qn,h=An;if(Wt=0,ri=qn=null,An=0,(At&6)!==0)throw Error(u(331));var S=At;if(At|=4,xm(o.current),Sm(o,o.current,h,n),At=S,hl(0,!1),Rt&&typeof Rt.onPostCommitFiberRoot=="function")try{Rt.onPostCommitFiberRoot(Nt,o)}catch{}return!0}finally{P.p=r,V.T=l,Ym(t,e)}}function Gm(t,e,n){e=Ve(n,e),e=so(t.stateNode,e,2),t=Vn(t,e,2),t!==null&&(_i(t,2),tn(t))}function Dt(t,e,n){if(t.tag===3)Gm(t,t,n);else for(;e!==null;){if(e.tag===3){Gm(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Yn===null||!Yn.has(l))){t=Ve(n,t),n=Xh(2),l=Vn(e,n,2),l!==null&&(kh(n,l,e,t),_i(l,2),tn(l));break}}e=e.return}}function jo(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new J1;var r=new Set;l.set(e,r)}else r=l.get(e),r===void 0&&(r=new Set,l.set(e,r));r.has(n)||(Ao=!0,r.add(n),t=I1.bind(null,t,e,n),e.then(t,t))}function I1(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,jt===t&&(gt&n)===n&&(Gt===4||Gt===3&&(gt&62914560)===gt&&300>oe()-Ns?(At&2)===0&&oi(t,0):Mo|=n,ui===gt&&(ui=0)),tn(t)}function Xm(t,e){e===0&&(e=Uf()),t=ca(t,e),t!==null&&(_i(t,e),tn(t))}function tS(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Xm(t,n)}function eS(t,e){var n=0;switch(t.tag){case 31:case 13:var l=t.stateNode,r=t.memoizedState;r!==null&&(n=r.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(u(314))}l!==null&&l.delete(e),Xm(t,n)}function nS(t,e){return wi(t,e)}var Gs=null,fi=null,_o=!1,Xs=!1,Vo=!1,Xn=0;function tn(t){t!==fi&&t.next===null&&(fi===null?Gs=fi=t:fi=fi.next=t),Xs=!0,_o||(_o=!0,iS())}function hl(t,e){if(!Vo&&Xs){Vo=!0;do for(var n=!1,l=Gs;l!==null;){if(t!==0){var r=l.pendingLanes;if(r===0)var o=0;else{var h=l.suspendedLanes,S=l.pingedLanes;o=(1<<31-de(42|t)+1)-1,o&=r&~(h&~S),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,Km(l,o))}else o=gt,o=Kl(l,l===jt?o:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(o&3)===0||ji(l,o)||(n=!0,Km(l,o));l=l.next}while(n);Vo=!1}}function aS(){km()}function km(){Xs=_o=!1;var t=0;Xn!==0&&mS()&&(t=Xn);for(var e=oe(),n=null,l=Gs;l!==null;){var r=l.next,o=Zm(l,e);o===0?(l.next=null,n===null?Gs=r:n.next=r,r===null&&(fi=n)):(n=l,(t!==0||(o&3)!==0)&&(Xs=!0)),l=r}Wt!==0&&Wt!==5||hl(t),Xn!==0&&(Xn=0)}function Zm(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,r=t.expirationTimes,o=t.pendingLanes&-62914561;0<o;){var h=31-de(o),S=1<<h,T=r[h];T===-1?((S&n)===0||(S&l)!==0)&&(r[h]=zv(S,e)):T<=e&&(t.expiredLanes|=S),o&=~S}if(e=jt,n=gt,n=Kl(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,n===0||t===e&&(Ct===2||Ct===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&ia(l),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||ji(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(l!==null&&ia(l),Ju(n)){case 2:case 8:n=Oi;break;case 32:n=Oa;break;case 268435456:n=Gl;break;default:n=Oa}return l=Qm.bind(null,t),n=wi(n,l),t.callbackPriority=e,t.callbackNode=n,e}return l!==null&&l!==null&&ia(l),t.callbackPriority=2,t.callbackNode=null,2}function Qm(t,e){if(Wt!==0&&Wt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(qs()&&t.callbackNode!==n)return null;var l=gt;return l=Kl(t,t===jt?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(Dm(t,l,e),Zm(t,oe()),t.callbackNode!=null&&t.callbackNode===n?Qm.bind(null,t):null)}function Km(t,e){if(qs())return null;Dm(t,e,!0)}function iS(){yS(function(){(At&6)!==0?wi(zi,aS):km()})}function No(){if(Xn===0){var t=Fa;t===0&&(t=kl,kl<<=1,(kl&261888)===0&&(kl=256)),Xn=t}return Xn}function Jm(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Wl(""+t)}function Pm(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 lS(t,e,n,l,r){if(e==="submit"&&n&&n.stateNode===r){var o=Jm((r[ye]||null).action),h=l.submitter;h&&(e=(e=h[ye]||null)?Jm(e.formAction):h.getAttribute("formAction"),e!==null&&(o=e,h=null));var S=new es("action","action",null,l,r);t.push({event:S,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Xn!==0){var T=h?Pm(r,h):new FormData(r);to(n,{pending:!0,data:T,method:r.method,action:o},null,T)}}else typeof o=="function"&&(S.preventDefault(),T=h?Pm(r,h):new FormData(r),to(n,{pending:!0,data:T,method:r.method,action:o},o,T))},currentTarget:r}]})}}for(var Bo=0;Bo<gr.length;Bo++){var Uo=gr[Bo],sS=Uo.toLowerCase(),uS=Uo[0].toUpperCase()+Uo.slice(1);Xe(sS,"on"+uS)}Xe(Cd,"onAnimationEnd"),Xe(Dd,"onAnimationIteration"),Xe(Rd,"onAnimationStart"),Xe("dblclick","onDoubleClick"),Xe("focusin","onFocus"),Xe("focusout","onBlur"),Xe(E1,"onTransitionRun"),Xe(A1,"onTransitionStart"),Xe(M1,"onTransitionCancel"),Xe(wd,"onTransitionEnd"),Ba("onMouseEnter",["mouseout","mouseover"]),Ba("onMouseLeave",["mouseout","mouseover"]),Ba("onPointerEnter",["pointerout","pointerover"]),Ba("onPointerLeave",["pointerout","pointerover"]),sa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),sa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),sa("onBeforeInput",["compositionend","keypress","textInput","paste"]),sa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),sa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),sa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ml="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(" "),rS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ml));function Fm(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var l=t[n],r=l.event;l=l.listeners;t:{var o=void 0;if(e)for(var h=l.length-1;0<=h;h--){var S=l[h],T=S.instance,O=S.currentTarget;if(S=S.listener,T!==o&&r.isPropagationStopped())break t;o=S,r.currentTarget=O;try{o(r)}catch(U){is(U)}r.currentTarget=null,o=T}else for(h=0;h<l.length;h++){if(S=l[h],T=S.instance,O=S.currentTarget,S=S.listener,T!==o&&r.isPropagationStopped())break t;o=S,r.currentTarget=O;try{o(r)}catch(U){is(U)}r.currentTarget=null,o=T}}}}function yt(t,e){var n=e[Pu];n===void 0&&(n=e[Pu]=new Set);var l=t+"__bubble";n.has(l)||(Wm(e,t,2,!1),n.add(l))}function Lo(t,e,n){var l=0;e&&(l|=4),Wm(n,t,l,e)}var ks="_reactListening"+Math.random().toString(36).slice(2);function Ho(t){if(!t[ks]){t[ks]=!0,kf.forEach(function(n){n!=="selectionchange"&&(rS.has(n)||Lo(n,!1,t),Lo(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[ks]||(e[ks]=!0,Lo("selectionchange",!1,e))}}function Wm(t,e,n,l){switch(Cp(e)){case 2:var r=BS;break;case 8:r=US;break;default:r=tc}n=r.bind(null,e,n,t),r=void 0,!ir||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(r=!0),l?r!==void 0?t.addEventListener(e,n,{capture:!0,passive:r}):t.addEventListener(e,n,!0):r!==void 0?t.addEventListener(e,n,{passive:r}):t.addEventListener(e,n,!1)}function Yo(t,e,n,l,r){var o=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var h=l.tag;if(h===3||h===4){var S=l.stateNode.containerInfo;if(S===r)break;if(h===4)for(h=l.return;h!==null;){var T=h.tag;if((T===3||T===4)&&h.stateNode.containerInfo===r)return;h=h.return}for(;S!==null;){if(h=_a(S),h===null)return;if(T=h.tag,T===5||T===6||T===26||T===27){l=o=h;continue t}S=S.parentNode}}l=l.return}nd(function(){var O=o,U=nr(n),G=[];t:{var _=zd.get(t);if(_!==void 0){var N=es,nt=t;switch(t){case"keypress":if(Il(n)===0)break t;case"keydown":case"keyup":N=e1;break;case"focusin":nt="focus",N=rr;break;case"focusout":nt="blur",N=rr;break;case"beforeblur":case"afterblur":N=rr;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":N=ld;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":N=Xv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":N=i1;break;case Cd:case Dd:case Rd:N=Qv;break;case wd:N=s1;break;case"scroll":case"scrollend":N=qv;break;case"wheel":N=r1;break;case"copy":case"cut":case"paste":N=Jv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":N=ud;break;case"toggle":case"beforetoggle":N=c1}var ut=(e&4)!==0,Ot=!ut&&(t==="scroll"||t==="scrollend"),R=ut?_!==null?_+"Capture":null:_;ut=[];for(var D=O,z;D!==null;){var H=D;if(z=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||z===null||R===null||(H=Bi(D,R),H!=null&&ut.push(pl(D,H,z))),Ot)break;D=D.return}0<ut.length&&(_=new N(_,nt,null,n,U),G.push({event:_,listeners:ut}))}}if((e&7)===0){t:{if(_=t==="mouseover"||t==="pointerover",N=t==="mouseout"||t==="pointerout",_&&n!==er&&(nt=n.relatedTarget||n.fromElement)&&(_a(nt)||nt[ja]))break t;if((N||_)&&(_=U.window===U?U:(_=U.ownerDocument)?_.defaultView||_.parentWindow:window,N?(nt=n.relatedTarget||n.toElement,N=O,nt=nt?_a(nt):null,nt!==null&&(Ot=d(nt),ut=nt.tag,nt!==Ot||ut!==5&&ut!==27&&ut!==6)&&(nt=null)):(N=null,nt=O),N!==nt)){if(ut=ld,H="onMouseLeave",R="onMouseEnter",D="mouse",(t==="pointerout"||t==="pointerover")&&(ut=ud,H="onPointerLeave",R="onPointerEnter",D="pointer"),Ot=N==null?_:Ni(N),z=nt==null?_:Ni(nt),_=new ut(H,D+"leave",N,n,U),_.target=Ot,_.relatedTarget=z,H=null,_a(U)===O&&(ut=new ut(R,D+"enter",nt,n,U),ut.target=z,ut.relatedTarget=Ot,H=ut),Ot=H,N&&nt)e:{for(ut=oS,R=N,D=nt,z=0,H=R;H;H=ut(H))z++;H=0;for(var lt=D;lt;lt=ut(lt))H++;for(;0<z-H;)R=ut(R),z--;for(;0<H-z;)D=ut(D),H--;for(;z--;){if(R===D||D!==null&&R===D.alternate){ut=R;break e}R=ut(R),D=ut(D)}ut=null}else ut=null;N!==null&&$m(G,_,N,ut,!1),nt!==null&&Ot!==null&&$m(G,Ot,nt,ut,!0)}}t:{if(_=O?Ni(O):window,N=_.nodeName&&_.nodeName.toLowerCase(),N==="select"||N==="input"&&_.type==="file")var xt=pd;else if(hd(_))if(yd)xt=b1;else{xt=v1;var it=g1}else N=_.nodeName,!N||N.toLowerCase()!=="input"||_.type!=="checkbox"&&_.type!=="radio"?O&&tr(O.elementType)&&(xt=pd):xt=S1;if(xt&&(xt=xt(t,O))){md(G,xt,n,U);break t}it&&it(t,_,O),t==="focusout"&&O&&_.type==="number"&&O.memoizedProps.value!=null&&Iu(_,"number",_.value)}switch(it=O?Ni(O):window,t){case"focusin":(hd(it)||it.contentEditable==="true")&&(Ga=it,mr=O,ki=null);break;case"focusout":ki=mr=Ga=null;break;case"mousedown":pr=!0;break;case"contextmenu":case"mouseup":case"dragend":pr=!1,Ad(G,n,U);break;case"selectionchange":if(x1)break;case"keydown":case"keyup":Ad(G,n,U)}var ht;if(cr)t:{switch(t){case"compositionstart":var vt="onCompositionStart";break t;case"compositionend":vt="onCompositionEnd";break t;case"compositionupdate":vt="onCompositionUpdate";break t}vt=void 0}else qa?fd(t,n)&&(vt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(vt="onCompositionStart");vt&&(rd&&n.locale!=="ko"&&(qa||vt!=="onCompositionStart"?vt==="onCompositionEnd"&&qa&&(ht=ad()):(Dn=U,lr="value"in Dn?Dn.value:Dn.textContent,qa=!0)),it=Zs(O,vt),0<it.length&&(vt=new sd(vt,t,null,n,U),G.push({event:vt,listeners:it}),ht?vt.data=ht:(ht=dd(n),ht!==null&&(vt.data=ht)))),(ht=d1?h1(t,n):m1(t,n))&&(vt=Zs(O,"onBeforeInput"),0<vt.length&&(it=new sd("onBeforeInput","beforeinput",null,n,U),G.push({event:it,listeners:vt}),it.data=ht)),lS(G,t,O,n,U)}Fm(G,e)})}function pl(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Zs(t,e){for(var n=e+"Capture",l=[];t!==null;){var r=t,o=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||o===null||(r=Bi(t,n),r!=null&&l.unshift(pl(t,r,o)),r=Bi(t,e),r!=null&&l.push(pl(t,r,o))),t.tag===3)return l;t=t.return}return[]}function oS(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function $m(t,e,n,l,r){for(var o=e._reactName,h=[];n!==null&&n!==l;){var S=n,T=S.alternate,O=S.stateNode;if(S=S.tag,T!==null&&T===l)break;S!==5&&S!==26&&S!==27||O===null||(T=O,r?(O=Bi(n,o),O!=null&&h.unshift(pl(n,O,T))):r||(O=Bi(n,o),O!=null&&h.push(pl(n,O,T)))),n=n.return}h.length!==0&&t.push({event:e,listeners:h})}var cS=/\r\n?/g,fS=/\u0000|\uFFFD/g;function Im(t){return(typeof t=="string"?t:""+t).replace(cS,`
49
+ `).replace(fS,"")}function tp(t,e){return e=Im(e),Im(t)===e}function zt(t,e,n,l,r,o){switch(n){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||La(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&La(t,""+l);break;case"className":Pl(t,"class",l);break;case"tabIndex":Pl(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Pl(t,n,l);break;case"style":td(t,l,o);break;case"data":if(e!=="object"){Pl(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=Wl(""+l),t.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="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 o=="function"&&(n==="formAction"?(e!=="input"&&zt(t,e,"name",r.name,r,null),zt(t,e,"formEncType",r.formEncType,r,null),zt(t,e,"formMethod",r.formMethod,r,null),zt(t,e,"formTarget",r.formTarget,r,null)):(zt(t,e,"encType",r.encType,r,null),zt(t,e,"method",r.method,r,null),zt(t,e,"target",r.target,r,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=Wl(""+l),t.setAttribute(n,l);break;case"onClick":l!=null&&(t.onclick=on);break;case"onScroll":l!=null&&yt("scroll",t);break;case"onScrollEnd":l!=null&&yt("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(u(61));if(n=l.__html,n!=null){if(r.children!=null)throw Error(u(60));t.innerHTML=n}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}n=Wl(""+l),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":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""+l):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":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":l===!0?t.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,l):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(n,l):t.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(n):t.setAttribute(n,l);break;case"popover":yt("beforetoggle",t),yt("toggle",t),Jl(t,"popover",l);break;case"xlinkActuate":rn(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":rn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":rn(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":rn(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":rn(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":rn(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":rn(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":rn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":rn(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Jl(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Hv.get(n)||n,Jl(t,n,l))}}function qo(t,e,n,l,r,o){switch(n){case"style":td(t,l,o);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(u(61));if(n=l.__html,n!=null){if(r.children!=null)throw Error(u(60));t.innerHTML=n}}break;case"children":typeof l=="string"?La(t,l):(typeof l=="number"||typeof l=="bigint")&&La(t,""+l);break;case"onScroll":l!=null&&yt("scroll",t);break;case"onScrollEnd":l!=null&&yt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=on);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"&&(r=n.endsWith("Capture"),e=n.slice(2,r?n.length-7:void 0),o=t[ye]||null,o=o!=null?o[n]:null,typeof o=="function"&&t.removeEventListener(e,o,r),typeof l=="function")){typeof o!="function"&&o!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,l,r);break t}n in t?t[n]=l:l===!0?t.setAttribute(n,""):Jl(t,n,l)}}}function se(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":yt("error",t),yt("load",t);var l=!1,r=!1,o;for(o in n)if(n.hasOwnProperty(o)){var h=n[o];if(h!=null)switch(o){case"src":l=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,e));default:zt(t,e,o,h,n,null)}}r&&zt(t,e,"srcSet",n.srcSet,n,null),l&&zt(t,e,"src",n.src,n,null);return;case"input":yt("invalid",t);var S=o=h=r=null,T=null,O=null;for(l in n)if(n.hasOwnProperty(l)){var U=n[l];if(U!=null)switch(l){case"name":r=U;break;case"type":h=U;break;case"checked":T=U;break;case"defaultChecked":O=U;break;case"value":o=U;break;case"defaultValue":S=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(u(137,e));break;default:zt(t,e,l,U,n,null)}}Ff(t,o,S,T,O,h,r,!1);return;case"select":yt("invalid",t),l=h=o=null;for(r in n)if(n.hasOwnProperty(r)&&(S=n[r],S!=null))switch(r){case"value":o=S;break;case"defaultValue":h=S;break;case"multiple":l=S;default:zt(t,e,r,S,n,null)}e=o,n=h,t.multiple=!!l,e!=null?Ua(t,!!l,e,!1):n!=null&&Ua(t,!!l,n,!0);return;case"textarea":yt("invalid",t),o=r=l=null;for(h in n)if(n.hasOwnProperty(h)&&(S=n[h],S!=null))switch(h){case"value":l=S;break;case"defaultValue":r=S;break;case"children":o=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(u(91));break;default:zt(t,e,h,S,n,null)}$f(t,l,r,o);return;case"option":for(T in n)if(n.hasOwnProperty(T)&&(l=n[T],l!=null))switch(T){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:zt(t,e,T,l,n,null)}return;case"dialog":yt("beforetoggle",t),yt("toggle",t),yt("cancel",t),yt("close",t);break;case"iframe":case"object":yt("load",t);break;case"video":case"audio":for(l=0;l<ml.length;l++)yt(ml[l],t);break;case"image":yt("error",t),yt("load",t);break;case"details":yt("toggle",t);break;case"embed":case"source":case"link":yt("error",t),yt("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(O in n)if(n.hasOwnProperty(O)&&(l=n[O],l!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,e));default:zt(t,e,O,l,n,null)}return;default:if(tr(e)){for(U in n)n.hasOwnProperty(U)&&(l=n[U],l!==void 0&&qo(t,e,U,l,n,void 0));return}}for(S in n)n.hasOwnProperty(S)&&(l=n[S],l!=null&&zt(t,e,S,l,n,null))}function dS(t,e,n,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,o=null,h=null,S=null,T=null,O=null,U=null;for(N in n){var G=n[N];if(n.hasOwnProperty(N)&&G!=null)switch(N){case"checked":break;case"value":break;case"defaultValue":T=G;default:l.hasOwnProperty(N)||zt(t,e,N,null,l,G)}}for(var _ in l){var N=l[_];if(G=n[_],l.hasOwnProperty(_)&&(N!=null||G!=null))switch(_){case"type":o=N;break;case"name":r=N;break;case"checked":O=N;break;case"defaultChecked":U=N;break;case"value":h=N;break;case"defaultValue":S=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(u(137,e));break;default:N!==G&&zt(t,e,_,N,l,G)}}$u(t,h,S,T,O,U,o,r);return;case"select":N=h=S=_=null;for(o in n)if(T=n[o],n.hasOwnProperty(o)&&T!=null)switch(o){case"value":break;case"multiple":N=T;default:l.hasOwnProperty(o)||zt(t,e,o,null,l,T)}for(r in l)if(o=l[r],T=n[r],l.hasOwnProperty(r)&&(o!=null||T!=null))switch(r){case"value":_=o;break;case"defaultValue":S=o;break;case"multiple":h=o;default:o!==T&&zt(t,e,r,o,l,T)}e=S,n=h,l=N,_!=null?Ua(t,!!n,_,!1):!!l!=!!n&&(e!=null?Ua(t,!!n,e,!0):Ua(t,!!n,n?[]:"",!1));return;case"textarea":N=_=null;for(S in n)if(r=n[S],n.hasOwnProperty(S)&&r!=null&&!l.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:zt(t,e,S,null,l,r)}for(h in l)if(r=l[h],o=n[h],l.hasOwnProperty(h)&&(r!=null||o!=null))switch(h){case"value":_=r;break;case"defaultValue":N=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(u(91));break;default:r!==o&&zt(t,e,h,r,l,o)}Wf(t,_,N);return;case"option":for(var nt in n)if(_=n[nt],n.hasOwnProperty(nt)&&_!=null&&!l.hasOwnProperty(nt))switch(nt){case"selected":t.selected=!1;break;default:zt(t,e,nt,null,l,_)}for(T in l)if(_=l[T],N=n[T],l.hasOwnProperty(T)&&_!==N&&(_!=null||N!=null))switch(T){case"selected":t.selected=_&&typeof _!="function"&&typeof _!="symbol";break;default:zt(t,e,T,_,l,N)}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 ut in n)_=n[ut],n.hasOwnProperty(ut)&&_!=null&&!l.hasOwnProperty(ut)&&zt(t,e,ut,null,l,_);for(O in l)if(_=l[O],N=n[O],l.hasOwnProperty(O)&&_!==N&&(_!=null||N!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(u(137,e));break;default:zt(t,e,O,_,l,N)}return;default:if(tr(e)){for(var Ot in n)_=n[Ot],n.hasOwnProperty(Ot)&&_!==void 0&&!l.hasOwnProperty(Ot)&&qo(t,e,Ot,void 0,l,_);for(U in l)_=l[U],N=n[U],!l.hasOwnProperty(U)||_===N||_===void 0&&N===void 0||qo(t,e,U,_,l,N);return}}for(var R in n)_=n[R],n.hasOwnProperty(R)&&_!=null&&!l.hasOwnProperty(R)&&zt(t,e,R,null,l,_);for(G in l)_=l[G],N=n[G],!l.hasOwnProperty(G)||_===N||_==null&&N==null||zt(t,e,G,_,l,N)}function ep(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function hS(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var r=n[l],o=r.transferSize,h=r.initiatorType,S=r.duration;if(o&&S&&ep(h)){for(h=0,S=r.responseEnd,l+=1;l<n.length;l++){var T=n[l],O=T.startTime;if(O>S)break;var U=T.transferSize,G=T.initiatorType;U&&ep(G)&&(T=T.responseEnd,h+=U*(T<S?1:(S-O)/(T-O)))}if(--l,e+=8*(o+h)/(r.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 Go=null,Xo=null;function Qs(t){return t.nodeType===9?t:t.ownerDocument}function np(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 ap(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 ko(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 Zo=null;function mS(){var t=window.event;return t&&t.type==="popstate"?t===Zo?!1:(Zo=t,!0):(Zo=null,!1)}var ip=typeof setTimeout=="function"?setTimeout:void 0,pS=typeof clearTimeout=="function"?clearTimeout:void 0,lp=typeof Promise=="function"?Promise:void 0,yS=typeof queueMicrotask=="function"?queueMicrotask:typeof lp<"u"?function(t){return lp.resolve(null).then(t).catch(gS)}:ip;function gS(t){setTimeout(function(){throw t})}function kn(t){return t==="head"}function sp(t,e){var n=e,l=0;do{var r=n.nextSibling;if(t.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"||n==="/&"){if(l===0){t.removeChild(r),pi(e);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")yl(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,yl(n);for(var o=n.firstChild;o;){var h=o.nextSibling,S=o.nodeName;o[Vi]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=h}}else n==="body"&&yl(t.ownerDocument.body);n=r}while(n);pi(e)}function up(t,e){var n=t;t=0;do{var l=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||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=l}while(n)}function Qo(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":Qo(n),Fu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function vS(t,e,n,l){for(;t.nodeType===1;){var r=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[Vi])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(o=t.getAttribute("rel"),o==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(o!==r.rel||t.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||t.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||t.getAttribute("title")!==(r.title==null?null:r.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(o=t.getAttribute("src"),(o!==(r.src==null?null:r.src)||t.getAttribute("type")!==(r.type==null?null:r.type)||t.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&o&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var o=r.name==null?null:""+r.name;if(r.type==="hidden"&&t.getAttribute("name")===o)return t}else return t;if(t=He(t.nextSibling),t===null)break}return null}function SS(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=He(t.nextSibling),t===null))return null;return t}function rp(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=He(t.nextSibling),t===null))return null;return t}function Ko(t){return t.data==="$?"||t.data==="$~"}function Jo(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function bS(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var l=function(){e(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function He(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 Po=null;function op(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return He(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function cp(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 fp(t,e,n){switch(e=Qs(n),t){case"html":if(t=e.documentElement,!t)throw Error(u(452));return t;case"head":if(t=e.head,!t)throw Error(u(453));return t;case"body":if(t=e.body,!t)throw Error(u(454));return t;default:throw Error(u(451))}}function yl(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Fu(t)}var Ye=new Map,dp=new Set;function Ks(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Mn=P.d;P.d={f:TS,r:xS,D:ES,C:AS,L:MS,m:CS,X:RS,S:DS,M:wS};function TS(){var t=Mn.f(),e=Ls();return t||e}function xS(t){var e=Va(t);e!==null&&e.tag===5&&e.type==="form"?wh(e):Mn.r(t)}var di=typeof document>"u"?null:document;function hp(t,e,n){var l=di;if(l&&typeof e=="string"&&e){var r=je(e);r='link[rel="'+t+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),dp.has(r)||(dp.add(r),t={rel:t,crossOrigin:n,href:e},l.querySelector(r)===null&&(e=l.createElement("link"),se(e,"link",t),It(e),l.head.appendChild(e)))}}function ES(t){Mn.D(t),hp("dns-prefetch",t,null)}function AS(t,e){Mn.C(t,e),hp("preconnect",t,e)}function MS(t,e,n){Mn.L(t,e,n);var l=di;if(l&&t&&e){var r='link[rel="preload"][as="'+je(e)+'"]';e==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+je(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+je(n.imageSizes)+'"]')):r+='[href="'+je(t)+'"]';var o=r;switch(e){case"style":o=hi(t);break;case"script":o=mi(t)}Ye.has(o)||(t=v({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Ye.set(o,t),l.querySelector(r)!==null||e==="style"&&l.querySelector(gl(o))||e==="script"&&l.querySelector(vl(o))||(e=l.createElement("link"),se(e,"link",t),It(e),l.head.appendChild(e)))}}function CS(t,e){Mn.m(t,e);var n=di;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",r='link[rel="modulepreload"][as="'+je(l)+'"][href="'+je(t)+'"]',o=r;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=mi(t)}if(!Ye.has(o)&&(t=v({rel:"modulepreload",href:t},e),Ye.set(o,t),n.querySelector(r)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(vl(o)))return}l=n.createElement("link"),se(l,"link",t),It(l),n.head.appendChild(l)}}}function DS(t,e,n){Mn.S(t,e,n);var l=di;if(l&&t){var r=Na(l).hoistableStyles,o=hi(t);e=e||"default";var h=r.get(o);if(!h){var S={loading:0,preload:null};if(h=l.querySelector(gl(o)))S.loading=5;else{t=v({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Ye.get(o))&&Fo(t,n);var T=h=l.createElement("link");It(T),se(T,"link",t),T._p=new Promise(function(O,U){T.onload=O,T.onerror=U}),T.addEventListener("load",function(){S.loading|=1}),T.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Js(h,e,l)}h={type:"stylesheet",instance:h,count:1,state:S},r.set(o,h)}}}function RS(t,e){Mn.X(t,e);var n=di;if(n&&t){var l=Na(n).hoistableScripts,r=mi(t),o=l.get(r);o||(o=n.querySelector(vl(r)),o||(t=v({src:t,async:!0},e),(e=Ye.get(r))&&Wo(t,e),o=n.createElement("script"),It(o),se(o,"link",t),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},l.set(r,o))}}function wS(t,e){Mn.M(t,e);var n=di;if(n&&t){var l=Na(n).hoistableScripts,r=mi(t),o=l.get(r);o||(o=n.querySelector(vl(r)),o||(t=v({src:t,async:!0,type:"module"},e),(e=Ye.get(r))&&Wo(t,e),o=n.createElement("script"),It(o),se(o,"link",t),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},l.set(r,o))}}function mp(t,e,n,l){var r=(r=mt.current)?Ks(r):null;if(!r)throw Error(u(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=hi(n.href),n=Na(r).hoistableStyles,l=n.get(e),l||(l={type:"style",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=hi(n.href);var o=Na(r).hoistableStyles,h=o.get(t);if(h||(r=r.ownerDocument||r,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(t,h),(o=r.querySelector(gl(t)))&&!o._p&&(h.instance=o,h.state.loading=5),Ye.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Ye.set(t,n),o||zS(r,t,n,h.state))),e&&l===null)throw Error(u(528,""));return h}if(e&&l!==null)throw Error(u(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=mi(n),n=Na(r).hoistableScripts,l=n.get(e),l||(l={type:"script",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,t))}}function hi(t){return'href="'+je(t)+'"'}function gl(t){return'link[rel="stylesheet"]['+t+"]"}function pp(t){return v({},t,{"data-precedence":t.precedence,precedence:null})}function zS(t,e,n,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),se(e,"link",n),It(e),t.head.appendChild(e))}function mi(t){return'[src="'+je(t)+'"]'}function vl(t){return"script[async]"+t}function yp(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+je(n.href)+'"]');if(l)return e.instance=l,It(l),l;var r=v({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),It(l),se(l,"style",r),Js(l,n.precedence,t),e.instance=l;case"stylesheet":r=hi(n.href);var o=t.querySelector(gl(r));if(o)return e.state.loading|=4,e.instance=o,It(o),o;l=pp(n),(r=Ye.get(r))&&Fo(l,r),o=(t.ownerDocument||t).createElement("link"),It(o);var h=o;return h._p=new Promise(function(S,T){h.onload=S,h.onerror=T}),se(o,"link",l),e.state.loading|=4,Js(o,n.precedence,t),e.instance=o;case"script":return o=mi(n.src),(r=t.querySelector(vl(o)))?(e.instance=r,It(r),r):(l=n,(r=Ye.get(o))&&(l=v({},n),Wo(l,r)),t=t.ownerDocument||t,r=t.createElement("script"),It(r),se(r,"link",l),t.head.appendChild(r),e.instance=r);case"void":return null;default:throw Error(u(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,Js(l,n.precedence,t));return e.instance}function Js(t,e,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=l.length?l[l.length-1]:null,o=r,h=0;h<l.length;h++){var S=l[h];if(S.dataset.precedence===e)o=S;else if(o!==r)break}o?o.parentNode.insertBefore(t,o.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function Fo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Wo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Ps=null;function gp(t,e,n){if(Ps===null){var l=new Map,r=Ps=new Map;r.set(n,l)}else r=Ps,l=r.get(n),l||(l=new Map,r.set(n,l));if(l.has(t))return l;for(l.set(t,null),n=n.getElementsByTagName(t),r=0;r<n.length;r++){var o=n[r];if(!(o[Vi]||o[ne]||t==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var h=o.getAttribute(e)||"";h=t+h;var S=l.get(h);S?S.push(o):l.set(h,[o])}}return l}function vp(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function OS(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 Sp(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function jS(t,e,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var r=hi(l.href),o=e.querySelector(gl(r));if(o){e=o._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Fs.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=o,It(o);return}o=e.ownerDocument||e,l=pp(l),(r=Ye.get(r))&&Fo(l,r),o=o.createElement("link"),It(o);var h=o;h._p=new Promise(function(S,T){h.onload=S,h.onerror=T}),se(o,"link",l),n.instance=o}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=Fs.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var $o=0;function _S(t,e){return t.stylesheets&&t.count===0&&$s(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var l=setTimeout(function(){if(t.stylesheets&&$s(t,t.stylesheets),t.unsuspend){var o=t.unsuspend;t.unsuspend=null,o()}},6e4+e);0<t.imgBytes&&$o===0&&($o=62500*hS());var r=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&$s(t,t.stylesheets),t.unsuspend)){var o=t.unsuspend;t.unsuspend=null,o()}},(t.imgBytes>$o?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(r)}}:null}function Fs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)$s(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Ws=null;function $s(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ws=new Map,e.forEach(VS,t),Ws=null,Fs.call(t))}function VS(t,e){if(!(e.state.loading&4)){var n=Ws.get(t);if(n)var l=n.get(null);else{n=new Map,Ws.set(t,n);for(var r=t.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<r.length;o++){var h=r[o];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(n.set(h.dataset.precedence,h),l=h)}l&&n.set(null,l)}r=e.instance,h=r.getAttribute("data-precedence"),o=n.get(h)||l,o===l&&n.set(null,r),n.set(h,r),this.count++,l=Fs.bind(this),r.addEventListener("load",l),r.addEventListener("error",l),o?o.parentNode.insertBefore(r,o.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(r,t.firstChild)),e.state.loading|=4}}var Sl={$$typeof:Y,Provider:null,Consumer:null,_currentValue:tt,_currentValue2:tt,_threadCount:0};function NS(t,e,n,l,r,o,h,S,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=Qu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qu(0),this.hiddenUpdates=Qu(null),this.identifierPrefix=l,this.onUncaughtError=r,this.onCaughtError=o,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function bp(t,e,n,l,r,o,h,S,T,O,U,G){return t=new NS(t,e,n,h,T,O,U,G,S),e=1,o===!0&&(e|=24),o=Ae(3,null,null,e),t.current=o,o.stateNode=t,e=zr(),e.refCount++,t.pooledCache=e,e.refCount++,o.memoizedState={element:l,isDehydrated:n,cache:e},Vr(o),t}function Tp(t){return t?(t=Za,t):Za}function xp(t,e,n,l,r,o){r=Tp(r),l.context===null?l.context=r:l.pendingContext=r,l=_n(e),l.payload={element:n},o=o===void 0?null:o,o!==null&&(l.callback=o),n=Vn(t,l,e),n!==null&&(xe(n,t,e),Wi(n,t,e))}function Ep(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Io(t,e){Ep(t,e),(t=t.alternate)&&Ep(t,e)}function Ap(t){if(t.tag===13||t.tag===31){var e=ca(t,67108864);e!==null&&xe(e,t,67108864),Io(t,67108864)}}function Mp(t){if(t.tag===13||t.tag===31){var e=we();e=Ku(e);var n=ca(t,e);n!==null&&xe(n,t,e),Io(t,e)}}var Is=!0;function BS(t,e,n,l){var r=V.T;V.T=null;var o=P.p;try{P.p=2,tc(t,e,n,l)}finally{P.p=o,V.T=r}}function US(t,e,n,l){var r=V.T;V.T=null;var o=P.p;try{P.p=8,tc(t,e,n,l)}finally{P.p=o,V.T=r}}function tc(t,e,n,l){if(Is){var r=ec(l);if(r===null)Yo(t,e,l,tu,n),Dp(t,l);else if(HS(r,t,e,n,l))l.stopPropagation();else if(Dp(t,l),e&4&&-1<LS.indexOf(t)){for(;r!==null;){var o=Va(r);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var h=la(o.pendingLanes);if(h!==0){var S=o;for(S.pendingLanes|=2,S.entangledLanes|=2;h;){var T=1<<31-de(h);S.entanglements[1]|=T,h&=~T}tn(o),(At&6)===0&&(Bs=oe()+500,hl(0))}}break;case 31:case 13:S=ca(o,2),S!==null&&xe(S,o,2),Ls(),Io(o,2)}if(o=ec(l),o===null&&Yo(t,e,l,tu,n),o===r)break;r=o}r!==null&&l.stopPropagation()}else Yo(t,e,l,null,n)}}function ec(t){return t=nr(t),nc(t)}var tu=null;function nc(t){if(tu=null,t=_a(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 tu=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(ql()){case zi:return 2;case Oi:return 8;case Oa:case ku:return 32;case Gl:return 268435456;default:return 32}default:return 32}}var ac=!1,Zn=null,Qn=null,Kn=null,bl=new Map,Tl=new Map,Jn=[],LS="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 Dp(t,e){switch(t){case"focusin":case"focusout":Zn=null;break;case"dragenter":case"dragleave":Qn=null;break;case"mouseover":case"mouseout":Kn=null;break;case"pointerover":case"pointerout":bl.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Tl.delete(e.pointerId)}}function xl(t,e,n,l,r,o){return t===null||t.nativeEvent!==o?(t={blockedOn:e,domEventName:n,eventSystemFlags:l,nativeEvent:o,targetContainers:[r]},e!==null&&(e=Va(e),e!==null&&Ap(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,r!==null&&e.indexOf(r)===-1&&e.push(r),t)}function HS(t,e,n,l,r){switch(e){case"focusin":return Zn=xl(Zn,t,e,n,l,r),!0;case"dragenter":return Qn=xl(Qn,t,e,n,l,r),!0;case"mouseover":return Kn=xl(Kn,t,e,n,l,r),!0;case"pointerover":var o=r.pointerId;return bl.set(o,xl(bl.get(o)||null,t,e,n,l,r)),!0;case"gotpointercapture":return o=r.pointerId,Tl.set(o,xl(Tl.get(o)||null,t,e,n,l,r)),!0}return!1}function Rp(t){var e=_a(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,Gf(t.priority,function(){Mp(n)});return}}else if(e===31){if(e=m(n),e!==null){t.blockedOn=e,Gf(t.priority,function(){Mp(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 eu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=ec(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);er=l,n.target.dispatchEvent(l),er=null}else return e=Va(n),e!==null&&Ap(e),t.blockedOn=n,!1;e.shift()}return!0}function wp(t,e,n){eu(t)&&n.delete(e)}function YS(){ac=!1,Zn!==null&&eu(Zn)&&(Zn=null),Qn!==null&&eu(Qn)&&(Qn=null),Kn!==null&&eu(Kn)&&(Kn=null),bl.forEach(wp),Tl.forEach(wp)}function nu(t,e){t.blockedOn===e&&(t.blockedOn=null,ac||(ac=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,YS)))}var au=null;function zp(t){au!==t&&(au=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){au===t&&(au=null);for(var e=0;e<t.length;e+=3){var n=t[e],l=t[e+1],r=t[e+2];if(typeof l!="function"){if(nc(l||n)===null)continue;break}var o=Va(n);o!==null&&(t.splice(e,3),e-=3,to(o,{pending:!0,data:r,method:n.method,action:l},l,r))}}))}function pi(t){function e(T){return nu(T,t)}Zn!==null&&nu(Zn,t),Qn!==null&&nu(Qn,t),Kn!==null&&nu(Kn,t),bl.forEach(e),Tl.forEach(e);for(var n=0;n<Jn.length;n++){var l=Jn[n];l.blockedOn===t&&(l.blockedOn=null)}for(;0<Jn.length&&(n=Jn[0],n.blockedOn===null);)Rp(n),n.blockedOn===null&&Jn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var r=n[l],o=n[l+1],h=r[ye]||null;if(typeof o=="function")h||zp(n);else if(h){var S=null;if(o&&o.hasAttribute("formAction")){if(r=o,h=o[ye]||null)S=h.formAction;else if(nc(r)!==null)continue}else S=h.action;typeof S=="function"?n[l+1]=S:(n.splice(l,3),l-=3),zp(n)}}}function Op(){function t(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(h){return r=h})},focusReset:"manual",scroll:"manual"})}function e(){r!==null&&(r(),r=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,r=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),r!==null&&(r(),r=null)}}}function ic(t){this._internalRoot=t}iu.prototype.render=ic.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(u(409));var n=e.current,l=we();xp(n,l,t,e,null,null)},iu.prototype.unmount=ic.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;xp(t.current,2,null,t,null,null),Ls(),e[ja]=null}};function iu(t){this._internalRoot=t}iu.prototype.unstable_scheduleHydration=function(t){if(t){var e=qf();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Jn.length&&e!==0&&e<Jn[n].priority;n++);Jn.splice(n,0,t),n===0&&Rp(t)}};var jp=i.version;if(jp!=="19.2.5")throw Error(u(527,jp,"19.2.5"));P.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(u(188)):(t=Object.keys(t).join(","),Error(u(268,t)));return t=p(e),t=t!==null?g(t):null,t=t===null?null:t.stateNode,t};var qS={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:V,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var lu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lu.isDisabled&&lu.supportsFiber)try{Nt=lu.inject(qS),Rt=lu}catch{}}return Al.createRoot=function(t,e){if(!c(t))throw Error(u(299));var n=!1,l="",r=Hh,o=Yh,h=qh;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(r=e.onUncaughtError),e.onCaughtError!==void 0&&(o=e.onCaughtError),e.onRecoverableError!==void 0&&(h=e.onRecoverableError)),e=bp(t,1,!1,null,null,n,l,null,r,o,h,Op),t[ja]=e.current,Ho(t),new ic(e)},Al.hydrateRoot=function(t,e,n){if(!c(t))throw Error(u(299));var l=!1,r="",o=Hh,h=Yh,S=qh,T=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(S=n.onRecoverableError),n.formState!==void 0&&(T=n.formState)),e=bp(t,1,!0,e,n??null,l,r,T,o,h,S,Op),e.context=Tp(null),n=e.current,l=we(),l=Ku(l),r=_n(l),r.callback=null,Vn(n,r,l),n=l,e.current.lanes=n,_i(e,n),tn(e),t[ja]=e.current,Ho(t),new iu(e)},Al.version="19.2.5",Al}var Gp;function WS(){if(Gp)return uc.exports;Gp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),uc.exports=FS(),uc.exports}var $S=WS();const mu={scale:1,x:0,y:0};function pg(a){return 1-(1-Math.min(1,Math.max(0,a)))**5}function Xp(a,i,s){if(s>=1)return{...i};const u=pg(s);return{scale:a.scale+(i.scale-a.scale)*u,x:a.x+(i.x-a.x)*u,y:a.y+(i.y-a.y)*u}}function fc(a,i){const s=a.getBoundingClientRect(),u=i.getBoundingClientRect(),c=s.width/a.offsetWidth||1;return{x:(u.left-s.left+u.width/2)/c,y:(u.top-s.top+u.height/2)/c}}const IS=3e3;function tb(a,i){var f,m;const s=[0];for(let y=1;y<a.length;y++){const p=s[y-1],g=a[y].delayMs,v=((f=i==null?void 0:i.steps[y-1])==null?void 0:f.durationMs)??0;s.push(p+Math.max(g,v))}const u=s[s.length-1]??0,c=((m=i==null?void 0:i.steps[a.length-1])==null?void 0:m.durationMs)??0,d=u+Math.max(IS,c);return{stepStartTimesMs:s,totalDurationMs:d}}function _c(a,i,s){for(let u=i.length-1;u>=0;u--)if(a>=i[u])return Math.min(u,s);return 0}const eb=3e3;function yg(a,i,s){var d;const u=(d=i==null?void 0:i.steps[a])==null?void 0:d.durationMs;if(u!=null&&u>0)return u;const c=s[a+1];return c?c.delayMs:eb}const ee=450,gg=50,vg=1500,Eu=200,dc=600;function Sg(a){let i=a.parentElement;for(;i;){const{overflowY:s}=getComputedStyle(i);if(s==="auto"||s==="scroll")return i;i=i.parentElement}return null}function bg(a){const i=Sg(a);if(!i)return!1;const s=i.getBoundingClientRect(),u=a.getBoundingClientRect();if(u.top>=s.top&&u.bottom<=s.bottom)return!1;const d=window.scrollX,f=window.scrollY;return a.scrollIntoView({block:"center",behavior:"smooth"}),window.scrollTo(d,f),!0}function nb(a){const i=Sg(a);if(!i)return;const s=i.getBoundingClientRect(),u=a.getBoundingClientRect();if(u.top>=s.top&&u.bottom<=s.bottom)return;const d=window.scrollX,f=window.scrollY;a.scrollIntoView({block:"center",behavior:"instant"}),window.scrollTo(d,f)}const ab="data-cursor-target",ib="data-scroll-target";function bi(a){return`[${ab}="${a}"]`}function lb(a){return`[${ib}="${a}"]`}const Tg="scenar-embed",xg=1;function sb(a){return{source:Tg,v:xg,...a}}function ub(a){if(typeof a!="object"||a===null)return!1;const i=a;return i.source===Tg&&i.v===xg}function kp(a){return typeof a=="number"&&Number.isFinite(a)}function rb(a){if(!ub(a))return null;const i=a.type;switch(i){case"play":case"pause":case"prefetch":case"destroy":return{type:i};case"seek":return kp(a.timeMs)?{type:i,timeMs:a.timeMs}:null;case"setMuted":return typeof a.muted=="boolean"?{type:i,muted:a.muted}:null;case"setVolume":return kp(a.volume)?{type:i,volume:a.volume}:null;default:return null}}const ob=E.createContext(null);function Nu(){return E.useContext(ob)}const cb={isVideoExport:!1,hideControls:!1,initialMuted:!0},fb=E.createContext(cb);function Bu(){return E.useContext(fb)}const Vc=new Map;let db=0;function hb(a){const i=`sp-${db++}`;return Vc.set(i,a),{id:i,unregister:()=>Vc.delete(i)}}function Zp(a){for(const[i,s]of Vc)i!==a&&s()}function sf(a){const i=a.play();return i instanceof Promise?i:Promise.resolve()}function su(a,i,s=1){return a.src=i,a.defaultPlaybackRate=s,a.load(),a.playbackRate=s,sf(a)}function mb(a,i,s,u=1,c=!0){a.src=i,a.defaultPlaybackRate=u,a.load(),a.playbackRate=u;const d=()=>{a.currentTime=s,c&&sf(a).catch(()=>{})};a.readyState>=HTMLMediaElement.HAVE_METADATA?d():a.addEventListener("loadedmetadata",d,{once:!0})}function uu(a){a.pause(),a.removeAttribute("src"),a.load()}function ru(a){for(const i of a.steps)i!=null&&i.src&&fetch(i.src).catch(()=>{})}function pb({manifest:a,stepIndex:i,playing:s,initialMuted:u=!0,playbackRate:c=1,onClipEnded:d}){const[f,m]=E.useState(u),[y,p]=E.useState(!1),g=E.useRef(null),v=E.useRef(!1),b=E.useCallback(Z=>{Z.then(()=>p(!1),()=>p(!0))},[]),x=E.useRef(f);x.current=f;const A=E.useRef(s);A.current=s;const w=E.useRef(d);w.current=d;const j=E.useRef(c);j.current=c;const B=(a==null?void 0:a.steps[i])??null,q=(B==null?void 0:B.src)??null,Y=E.useRef(!1),J=E.useCallback((Z,k)=>{Y.current=!0,setTimeout(()=>{Y.current=!1},0);const $=g.current;if(!$||!a||x.current)return;const K=a.steps[Z],ot=K==null?void 0:K.src;if(!ot)return;const bt=(K==null?void 0:K.durationMs)??0;if(k>=bt){uu($);return}mb($,ot,k/1e3,j.current,A.current)},[a]);E.useEffect(()=>{!a||u||v.current||(ru(a),v.current=!0)},[a,u]),E.useEffect(()=>{const Z=g.current;if(!Z||!a)return;const k=()=>{var $;return($=w.current)==null?void 0:$.call(w)};return Z.addEventListener("ended",k),()=>Z.removeEventListener("ended",k)},[a]),E.useEffect(()=>{if(Y.current){Y.current=!1;return}const Z=g.current;if(!(!Z||!a)){if(x.current||!q||!A.current){uu(Z);return}b(su(Z,q,j.current))}},[i,q,a,b]),E.useEffect(()=>{const Z=g.current;!Z||!a||x.current||(s?q&&(Z.src?b(sf(Z)):b(su(Z,q,j.current))):Z.pause())},[s,q,a,b]);const W=E.useCallback(()=>{m(Z=>{const k=!Z,$=g.current;return $&&(k?(uu($),p(!1)):(a&&!v.current&&(ru(a),v.current=!0),q&&b(su($,q,j.current)))),k})},[q,a,b]),F=E.useCallback(()=>{const Z=g.current;!Z||x.current||!q||(a&&!v.current&&(ru(a),v.current=!0),b(su(Z,q,j.current)))},[q,a,b]),X=E.useCallback(Z=>{const k=g.current;k&&(k.volume=Math.max(0,Math.min(Z,1)))},[]),Q=E.useCallback(()=>{!a||v.current||(ru(a),v.current=!0)},[a]);return E.useEffect(()=>{const Z=g.current;Z&&(Z.defaultPlaybackRate=c,Z.playbackRate=c)},[c]),E.useEffect(()=>{const Z=g.current;return()=>{Z&&uu(Z)}},[]),{muted:f,toggleMute:W,audioRef:g,seekToStep:J,audioBlocked:y,unlock:F,setVolume:X,prefetch:Q}}const uf=E.createContext({});function rf(a){const i=E.useRef(null);return i.current===null&&(i.current=a()),i.current}const yb=typeof window<"u",Eg=yb?E.useLayoutEffect:E.useEffect,Uu=E.createContext(null);function of(a,i){a.indexOf(i)===-1&&a.push(i)}function Au(a,i){const s=a.indexOf(i);s>-1&&a.splice(s,1)}const sn=(a,i,s)=>s>i?i:s<a?a:s;let cf=()=>{};const In={},Ag=a=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a);function Mg(a){return typeof a=="object"&&a!==null}const Cg=a=>/^0[^.\s]+$/u.test(a);function Dg(a){let i;return()=>(i===void 0&&(i=a()),i)}const Ge=a=>a,gb=(a,i)=>s=>i(a(s)),Nl=(...a)=>a.reduce(gb),Ol=(a,i,s)=>{const u=i-a;return u===0?1:(s-a)/u};class ff{constructor(){this.subscriptions=[]}add(i){return of(this.subscriptions,i),()=>Au(this.subscriptions,i)}notify(i,s,u){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](i,s,u);else for(let d=0;d<c;d++){const f=this.subscriptions[d];f&&f(i,s,u)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ze=a=>a*1e3,qe=a=>a/1e3;function Rg(a,i){return i?a*(1e3/i):0}const wg=(a,i,s)=>(((1-3*s+3*i)*a+(3*s-6*i))*a+3*i)*a,vb=1e-7,Sb=12;function bb(a,i,s,u,c){let d,f,m=0;do f=i+(s-i)/2,d=wg(f,u,c)-a,d>0?s=f:i=f;while(Math.abs(d)>vb&&++m<Sb);return f}function Bl(a,i,s,u){if(a===i&&s===u)return Ge;const c=d=>bb(d,0,1,a,s);return d=>d===0||d===1?d:wg(c(d),i,u)}const zg=a=>i=>i<=.5?a(2*i)/2:(2-a(2*(1-i)))/2,Og=a=>i=>1-a(1-i),jg=Bl(.33,1.53,.69,.99),df=Og(jg),_g=zg(df),Vg=a=>a>=1?1:(a*=2)<1?.5*df(a):.5*(2-Math.pow(2,-10*(a-1))),hf=a=>1-Math.sin(Math.acos(a)),Ng=Og(hf),Bg=zg(hf),Tb=Bl(.42,0,1,1),xb=Bl(0,0,.58,1),Ug=Bl(.42,0,.58,1),Eb=a=>Array.isArray(a)&&typeof a[0]!="number",Lg=a=>Array.isArray(a)&&typeof a[0]=="number",Ab={linear:Ge,easeIn:Tb,easeInOut:Ug,easeOut:xb,circIn:hf,circInOut:Bg,circOut:Ng,backIn:df,backInOut:_g,backOut:jg,anticipate:Vg},Mb=a=>typeof a=="string",Qp=a=>{if(Lg(a)){cf(a.length===4);const[i,s,u,c]=a;return Bl(i,s,u,c)}else if(Mb(a))return Ab[a];return a},ou=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Cb(a,i){let s=new Set,u=new Set,c=!1,d=!1;const f=new WeakSet;let m={delta:0,timestamp:0,isProcessing:!1};function y(g){f.has(g)&&(p.schedule(g),a()),g(m)}const p={schedule:(g,v=!1,b=!1)=>{const A=b&&c?s:u;return v&&f.add(g),A.add(g),g},cancel:g=>{u.delete(g),f.delete(g)},process:g=>{if(m=g,c){d=!0;return}c=!0;const v=s;s=u,u=v,s.forEach(y),s.clear(),c=!1,d&&(d=!1,p.process(g))}};return p}const Db=40;function Hg(a,i){let s=!1,u=!0;const c={delta:0,timestamp:0,isProcessing:!1},d=()=>s=!0,f=ou.reduce((Y,J)=>(Y[J]=Cb(d),Y),{}),{setup:m,read:y,resolveKeyframes:p,preUpdate:g,update:v,preRender:b,render:x,postRender:A}=f,w=()=>{const Y=In.useManualTiming,J=Y?c.timestamp:performance.now();s=!1,Y||(c.delta=u?1e3/60:Math.max(Math.min(J-c.timestamp,Db),1)),c.timestamp=J,c.isProcessing=!0,m.process(c),y.process(c),p.process(c),g.process(c),v.process(c),b.process(c),x.process(c),A.process(c),c.isProcessing=!1,s&&i&&(u=!1,a(w))},j=()=>{s=!0,u=!0,c.isProcessing||a(w)};return{schedule:ou.reduce((Y,J)=>{const W=f[J];return Y[J]=(F,X=!1,Q=!1)=>(s||j(),W.schedule(F,X,Q)),Y},{}),cancel:Y=>{for(let J=0;J<ou.length;J++)f[ou[J]].cancel(Y)},state:c,steps:f}}const{schedule:_t,cancel:ta,state:ue,steps:hc}=Hg(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ge,!0);let pu;function Rb(){pu=void 0}const me={now:()=>(pu===void 0&&me.set(ue.isProcessing||In.useManualTiming?ue.timestamp:performance.now()),pu),set:a=>{pu=a,queueMicrotask(Rb)}},Yg=a=>i=>typeof i=="string"&&i.startsWith(a),qg=Yg("--"),wb=Yg("var(--"),mf=a=>wb(a)?zb.test(a.split("/*")[0].trim()):!1,zb=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Kp(a){return typeof a!="string"?!1:a.split("/*")[0].includes("var(--")}const Ai={test:a=>typeof a=="number",parse:parseFloat,transform:a=>a},jl={...Ai,transform:a=>sn(0,1,a)},cu={...Ai,default:1},Dl=a=>Math.round(a*1e5)/1e5,pf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ob(a){return a==null}const jb=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,yf=(a,i)=>s=>!!(typeof s=="string"&&jb.test(s)&&s.startsWith(a)||i&&!Ob(s)&&Object.prototype.hasOwnProperty.call(s,i)),Gg=(a,i,s)=>u=>{if(typeof u!="string")return u;const[c,d,f,m]=u.match(pf);return{[a]:parseFloat(c),[i]:parseFloat(d),[s]:parseFloat(f),alpha:m!==void 0?parseFloat(m):1}},_b=a=>sn(0,255,a),mc={...Ai,transform:a=>Math.round(_b(a))},Ma={test:yf("rgb","red"),parse:Gg("red","green","blue"),transform:({red:a,green:i,blue:s,alpha:u=1})=>"rgba("+mc.transform(a)+", "+mc.transform(i)+", "+mc.transform(s)+", "+Dl(jl.transform(u))+")"};function Vb(a){let i="",s="",u="",c="";return a.length>5?(i=a.substring(1,3),s=a.substring(3,5),u=a.substring(5,7),c=a.substring(7,9)):(i=a.substring(1,2),s=a.substring(2,3),u=a.substring(3,4),c=a.substring(4,5),i+=i,s+=s,u+=u,c+=c),{red:parseInt(i,16),green:parseInt(s,16),blue:parseInt(u,16),alpha:c?parseInt(c,16)/255:1}}const Nc={test:yf("#"),parse:Vb,transform:Ma.transform},Ul=a=>({test:i=>typeof i=="string"&&i.endsWith(a)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${a}`}),Fn=Ul("deg"),an=Ul("%"),at=Ul("px"),Nb=Ul("vh"),Bb=Ul("vw"),Jp={...an,parse:a=>an.parse(a)/100,transform:a=>an.transform(a*100)},gi={test:yf("hsl","hue"),parse:Gg("hue","saturation","lightness"),transform:({hue:a,saturation:i,lightness:s,alpha:u=1})=>"hsla("+Math.round(a)+", "+an.transform(Dl(i))+", "+an.transform(Dl(s))+", "+Dl(jl.transform(u))+")"},Ft={test:a=>Ma.test(a)||Nc.test(a)||gi.test(a),parse:a=>Ma.test(a)?Ma.parse(a):gi.test(a)?gi.parse(a):Nc.parse(a),transform:a=>typeof a=="string"?a:a.hasOwnProperty("red")?Ma.transform(a):gi.transform(a),getAnimatableNone:a=>{const i=Ft.parse(a);return i.alpha=0,Ft.transform(i)}},Ub=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Lb(a){var i,s;return isNaN(a)&&typeof a=="string"&&(((i=a.match(pf))==null?void 0:i.length)||0)+(((s=a.match(Ub))==null?void 0:s.length)||0)>0}const Xg="number",kg="color",Hb="var",Yb="var(",Pp="${}",qb=/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 Ti(a){const i=a.toString(),s=[],u={color:[],number:[],var:[]},c=[];let d=0;const m=i.replace(qb,y=>(Ft.test(y)?(u.color.push(d),c.push(kg),s.push(Ft.parse(y))):y.startsWith(Yb)?(u.var.push(d),c.push(Hb),s.push(y)):(u.number.push(d),c.push(Xg),s.push(parseFloat(y))),++d,Pp)).split(Pp);return{values:s,split:m,indexes:u,types:c}}function Gb(a){return Ti(a).values}function Zg({split:a,types:i}){const s=a.length;return u=>{let c="";for(let d=0;d<s;d++)if(c+=a[d],u[d]!==void 0){const f=i[d];f===Xg?c+=Dl(u[d]):f===kg?c+=Ft.transform(u[d]):c+=u[d]}return c}}function Xb(a){return Zg(Ti(a))}const kb=a=>typeof a=="number"?0:Ft.test(a)?Ft.getAnimatableNone(a):a,Zb=(a,i)=>typeof a=="number"?i!=null&&i.trim().endsWith("/")?a:0:kb(a);function Qb(a){const i=Ti(a);return Zg(i)(i.values.map((u,c)=>Zb(u,i.split[c])))}const Je={test:Lb,parse:Gb,createTransformer:Xb,getAnimatableNone:Qb};function pc(a,i,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?a+(i-a)*6*s:s<1/2?i:s<2/3?a+(i-a)*(2/3-s)*6:a}function Kb({hue:a,saturation:i,lightness:s,alpha:u}){a/=360,i/=100,s/=100;let c=0,d=0,f=0;if(!i)c=d=f=s;else{const m=s<.5?s*(1+i):s+i-s*i,y=2*s-m;c=pc(y,m,a+1/3),d=pc(y,m,a),f=pc(y,m,a-1/3)}return{red:Math.round(c*255),green:Math.round(d*255),blue:Math.round(f*255),alpha:u}}function Mu(a,i){return s=>s>0?i:a}const Lt=(a,i,s)=>a+(i-a)*s,yc=(a,i,s)=>{const u=a*a,c=s*(i*i-u)+u;return c<0?0:Math.sqrt(c)},Jb=[Nc,Ma,gi],Pb=a=>Jb.find(i=>i.test(a));function Fp(a){const i=Pb(a);if(!i)return!1;let s=i.parse(a);return i===gi&&(s=Kb(s)),s}const Wp=(a,i)=>{const s=Fp(a),u=Fp(i);if(!s||!u)return Mu(a,i);const c={...s};return d=>(c.red=yc(s.red,u.red,d),c.green=yc(s.green,u.green,d),c.blue=yc(s.blue,u.blue,d),c.alpha=Lt(s.alpha,u.alpha,d),Ma.transform(c))},Bc=new Set(["none","hidden"]);function Fb(a,i){return Bc.has(a)?s=>s<=0?a:i:s=>s>=1?i:a}function Wb(a,i){return s=>Lt(a,i,s)}function gf(a){return typeof a=="number"?Wb:typeof a=="string"?mf(a)?Mu:Ft.test(a)?Wp:tT:Array.isArray(a)?Qg:typeof a=="object"?Ft.test(a)?Wp:$b:Mu}function Qg(a,i){const s=[...a],u=s.length,c=a.map((d,f)=>gf(d)(d,i[f]));return d=>{for(let f=0;f<u;f++)s[f]=c[f](d);return s}}function $b(a,i){const s={...a,...i},u={};for(const c in s)a[c]!==void 0&&i[c]!==void 0&&(u[c]=gf(a[c])(a[c],i[c]));return c=>{for(const d in u)s[d]=u[d](c);return s}}function Ib(a,i){const s=[],u={color:0,var:0,number:0};for(let c=0;c<i.values.length;c++){const d=i.types[c],f=a.indexes[d][u[d]],m=a.values[f]??0;s[c]=m,u[d]++}return s}const tT=(a,i)=>{const s=Je.createTransformer(i),u=Ti(a),c=Ti(i);return u.indexes.var.length===c.indexes.var.length&&u.indexes.color.length===c.indexes.color.length&&u.indexes.number.length>=c.indexes.number.length?Bc.has(a)&&!c.values.length||Bc.has(i)&&!u.values.length?Fb(a,i):Nl(Qg(Ib(u,c),c.values),s):Mu(a,i)};function Kg(a,i,s){return typeof a=="number"&&typeof i=="number"&&typeof s=="number"?Lt(a,i,s):gf(a)(a,i)}const eT=a=>{const i=({timestamp:s})=>a(s);return{start:(s=!0)=>_t.update(i,s),stop:()=>ta(i),now:()=>ue.isProcessing?ue.timestamp:me.now()}},Jg=(a,i,s=10)=>{let u="";const c=Math.max(Math.round(i/s),2);for(let d=0;d<c;d++)u+=Math.round(a(d/(c-1))*1e4)/1e4+", ";return`linear(${u.substring(0,u.length-2)})`},Cu=2e4;function vf(a){let i=0;const s=50;let u=a.next(i);for(;!u.done&&i<Cu;)i+=s,u=a.next(i);return i>=Cu?1/0:i}function nT(a,i=100,s){const u=s({...a,keyframes:[0,i]}),c=Math.min(vf(u),Cu);return{type:"keyframes",ease:d=>u.next(c*d).value/i,duration:qe(c)}}const Xt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Uc(a,i){return a*Math.sqrt(1-i*i)}const aT=12;function iT(a,i,s){let u=s;for(let c=1;c<aT;c++)u=u-a(u)/i(u);return u}const gc=.001;function lT({duration:a=Xt.duration,bounce:i=Xt.bounce,velocity:s=Xt.velocity,mass:u=Xt.mass}){let c,d,f=1-i;f=sn(Xt.minDamping,Xt.maxDamping,f),a=sn(Xt.minDuration,Xt.maxDuration,qe(a)),f<1?(c=p=>{const g=p*f,v=g*a,b=g-s,x=Uc(p,f),A=Math.exp(-v);return gc-b/x*A},d=p=>{const v=p*f*a,b=v*s+s,x=Math.pow(f,2)*Math.pow(p,2)*a,A=Math.exp(-v),w=Uc(Math.pow(p,2),f);return(-c(p)+gc>0?-1:1)*((b-x)*A)/w}):(c=p=>{const g=Math.exp(-p*a),v=(p-s)*a+1;return-gc+g*v},d=p=>{const g=Math.exp(-p*a),v=(s-p)*(a*a);return g*v});const m=5/a,y=iT(c,d,m);if(a=ze(a),isNaN(y))return{stiffness:Xt.stiffness,damping:Xt.damping,duration:a};{const p=Math.pow(y,2)*u;return{stiffness:p,damping:f*2*Math.sqrt(u*p),duration:a}}}const sT=["duration","bounce"],uT=["stiffness","damping","mass"];function $p(a,i){return i.some(s=>a[s]!==void 0)}function rT(a){let i={velocity:Xt.velocity,stiffness:Xt.stiffness,damping:Xt.damping,mass:Xt.mass,isResolvedFromDuration:!1,...a};if(!$p(a,uT)&&$p(a,sT))if(i.velocity=0,a.visualDuration){const s=a.visualDuration,u=2*Math.PI/(s*1.2),c=u*u,d=2*sn(.05,1,1-(a.bounce||0))*Math.sqrt(c);i={...i,mass:Xt.mass,stiffness:c,damping:d}}else{const s=lT({...a,velocity:0});i={...i,...s,mass:Xt.mass},i.isResolvedFromDuration=!0}return i}function Du(a=Xt.visualDuration,i=Xt.bounce){const s=typeof a!="object"?{visualDuration:a,keyframes:[0,1],bounce:i}:a;let{restSpeed:u,restDelta:c}=s;const d=s.keyframes[0],f=s.keyframes[s.keyframes.length-1],m={done:!1,value:d},{stiffness:y,damping:p,mass:g,duration:v,velocity:b,isResolvedFromDuration:x}=rT({...s,velocity:-qe(s.velocity||0)}),A=b||0,w=p/(2*Math.sqrt(y*g)),j=f-d,B=qe(Math.sqrt(y/g)),q=Math.abs(j)<5;u||(u=q?Xt.restSpeed.granular:Xt.restSpeed.default),c||(c=q?Xt.restDelta.granular:Xt.restDelta.default);let Y,J,W,F,X,Q;if(w<1)W=Uc(B,w),F=(A+w*B*j)/W,Y=k=>{const $=Math.exp(-w*B*k);return f-$*(F*Math.sin(W*k)+j*Math.cos(W*k))},X=w*B*F+j*W,Q=w*B*j-F*W,J=k=>Math.exp(-w*B*k)*(X*Math.sin(W*k)+Q*Math.cos(W*k));else if(w===1){Y=$=>f-Math.exp(-B*$)*(j+(A+B*j)*$);const k=A+B*j;J=$=>Math.exp(-B*$)*(B*k*$-A)}else{const k=B*Math.sqrt(w*w-1);Y=bt=>{const Mt=Math.exp(-w*B*bt),V=Math.min(k*bt,300);return f-Mt*((A+w*B*j)*Math.sinh(V)+k*j*Math.cosh(V))/k};const $=(A+w*B*j)/k,K=w*B*$-j*k,ot=w*B*j-$*k;J=bt=>{const Mt=Math.exp(-w*B*bt),V=Math.min(k*bt,300);return Mt*(K*Math.sinh(V)+ot*Math.cosh(V))}}const Z={calculatedDuration:x&&v||null,velocity:k=>ze(J(k)),next:k=>{if(!x&&w<1){const K=Math.exp(-w*B*k),ot=Math.sin(W*k),bt=Math.cos(W*k),Mt=f-K*(F*ot+j*bt),V=ze(K*(X*ot+Q*bt));return m.done=Math.abs(V)<=u&&Math.abs(f-Mt)<=c,m.value=m.done?f:Mt,m}const $=Y(k);if(x)m.done=k>=v;else{const K=ze(J(k));m.done=Math.abs(K)<=u&&Math.abs(f-$)<=c}return m.value=m.done?f:$,m},toString:()=>{const k=Math.min(vf(Z),Cu),$=Jg(K=>Z.next(k*K).value,k,30);return k+"ms "+$},toTransition:()=>{}};return Z}Du.applyToOptions=a=>{const i=nT(a,100,Du);return a.ease=i.ease,a.duration=ze(i.duration),a.type="keyframes",a};const oT=5;function Pg(a,i,s){const u=Math.max(i-oT,0);return Rg(s-a(u),i-u)}function Lc({keyframes:a,velocity:i=0,power:s=.8,timeConstant:u=325,bounceDamping:c=10,bounceStiffness:d=500,modifyTarget:f,min:m,max:y,restDelta:p=.5,restSpeed:g}){const v=a[0],b={done:!1,value:v},x=Q=>m!==void 0&&Q<m||y!==void 0&&Q>y,A=Q=>m===void 0?y:y===void 0||Math.abs(m-Q)<Math.abs(y-Q)?m:y;let w=s*i;const j=v+w,B=f===void 0?j:f(j);B!==j&&(w=B-v);const q=Q=>-w*Math.exp(-Q/u),Y=Q=>B+q(Q),J=Q=>{const Z=q(Q),k=Y(Q);b.done=Math.abs(Z)<=p,b.value=b.done?B:k};let W,F;const X=Q=>{x(b.value)&&(W=Q,F=Du({keyframes:[b.value,A(b.value)],velocity:Pg(Y,Q,b.value),damping:c,stiffness:d,restDelta:p,restSpeed:g}))};return X(0),{calculatedDuration:null,next:Q=>{let Z=!1;return!F&&W===void 0&&(Z=!0,J(Q),X(Q)),W!==void 0&&Q>=W?F.next(Q-W):(!Z&&J(Q),b)}}}function cT(a,i,s){const u=[],c=s||In.mix||Kg,d=a.length-1;for(let f=0;f<d;f++){let m=c(a[f],a[f+1]);if(i){const y=Array.isArray(i)?i[f]||Ge:i;m=Nl(y,m)}u.push(m)}return u}function fT(a,i,{clamp:s=!0,ease:u,mixer:c}={}){const d=a.length;if(cf(d===i.length),d===1)return()=>i[0];if(d===2&&i[0]===i[1])return()=>i[1];const f=a[0]===a[1];a[0]>a[d-1]&&(a=[...a].reverse(),i=[...i].reverse());const m=cT(i,u,c),y=m.length,p=g=>{if(f&&g<a[0])return i[0];let v=0;if(y>1)for(;v<a.length-2&&!(g<a[v+1]);v++);const b=Ol(a[v],a[v+1],g);return m[v](b)};return s?g=>p(sn(a[0],a[d-1],g)):p}function dT(a,i){const s=a[a.length-1];for(let u=1;u<=i;u++){const c=Ol(0,i,u);a.push(Lt(s,1,c))}}function hT(a){const i=[0];return dT(i,a.length-1),i}function mT(a,i){return a.map(s=>s*i)}function pT(a,i){return a.map(()=>i||Ug).splice(0,a.length-1)}function Rl({duration:a=300,keyframes:i,times:s,ease:u="easeInOut"}){const c=Eb(u)?u.map(Qp):Qp(u),d={done:!1,value:i[0]},f=mT(s&&s.length===i.length?s:hT(i),a),m=fT(f,i,{ease:Array.isArray(c)?c:pT(i,c)});return{calculatedDuration:a,next:y=>(d.value=m(y),d.done=y>=a,d)}}const yT=a=>a!==null;function Lu(a,{repeat:i,repeatType:s="loop"},u,c=1){const d=a.filter(yT),m=c<0||i&&s!=="loop"&&i%2===1?0:d.length-1;return!m||u===void 0?d[m]:u}const gT={decay:Lc,inertia:Lc,tween:Rl,keyframes:Rl,spring:Du};function Fg(a){typeof a.type=="string"&&(a.type=gT[a.type])}class Sf{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(i=>{this.resolve=i})}notifyFinished(){this.resolve()}then(i,s){return this.finished.then(i,s)}}const vT=a=>a/100;class Ru extends Sf{constructor(i){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 u,c;const{motionValue:s}=this.options;s&&s.updatedAt!==me.now()&&this.tick(me.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(c=(u=this.options).onStop)==null||c.call(u))},this.options=i,this.initAnimation(),this.play(),i.autoplay===!1&&this.pause()}initAnimation(){const{options:i}=this;Fg(i);const{type:s=Rl,repeat:u=0,repeatDelay:c=0,repeatType:d,velocity:f=0}=i;let{keyframes:m}=i;const y=s||Rl;y!==Rl&&typeof m[0]!="number"&&(this.mixKeyframes=Nl(vT,Kg(m[0],m[1])),m=[0,100]);const p=y({...i,keyframes:m});d==="mirror"&&(this.mirroredGenerator=y({...i,keyframes:[...m].reverse(),velocity:-f})),p.calculatedDuration===null&&(p.calculatedDuration=vf(p));const{calculatedDuration:g}=p;this.calculatedDuration=g,this.resolvedDuration=g+c,this.totalDuration=this.resolvedDuration*(u+1)-c,this.generator=p}updateTime(i){const s=Math.round(i-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=s}tick(i,s=!1){const{generator:u,totalDuration:c,mixKeyframes:d,mirroredGenerator:f,resolvedDuration:m,calculatedDuration:y}=this;if(this.startTime===null)return u.next(0);const{delay:p=0,keyframes:g,repeat:v,repeatType:b,repeatDelay:x,type:A,onUpdate:w,finalKeyframe:j}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,i):this.speed<0&&(this.startTime=Math.min(i-c/this.speed,this.startTime)),s?this.currentTime=i:this.updateTime(i);const B=this.currentTime-p*(this.playbackSpeed>=0?1:-1),q=this.playbackSpeed>=0?B<0:B>c;this.currentTime=Math.max(B,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let Y=this.currentTime,J=u;if(v){const Q=Math.min(this.currentTime,c)/m;let Z=Math.floor(Q),k=Q%1;!k&&Q>=1&&(k=1),k===1&&Z--,Z=Math.min(Z,v+1),!!(Z%2)&&(b==="reverse"?(k=1-k,x&&(k-=x/m)):b==="mirror"&&(J=f)),Y=sn(0,1,k)*m}let W;q?(this.delayState.value=g[0],W=this.delayState):W=J.next(Y),d&&!q&&(W.value=d(W.value));let{done:F}=W;!q&&y!==null&&(F=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const X=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&F);return X&&A!==Lc&&(W.value=Lu(g,this.options,j,this.speed)),w&&w(W.value),X&&this.finish(),W}then(i,s){return this.finished.then(i,s)}get duration(){return qe(this.calculatedDuration)}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+qe(i)}get time(){return qe(this.currentTime)}set time(i){i=ze(i),this.currentTime=i,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=i:this.driver&&(this.startTime=this.driver.now()-i/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=i,this.tick(i))}getGeneratorVelocity(){const i=this.currentTime;if(i<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(i);const s=this.generator.next(i).value;return Pg(u=>this.generator.next(u).value,i,s)}get speed(){return this.playbackSpeed}set speed(i){const s=this.playbackSpeed!==i;s&&this.driver&&this.updateTime(me.now()),this.playbackSpeed=i,s&&this.driver&&(this.time=qe(this.currentTime))}play(){var c,d;if(this.isStopped)return;const{driver:i=eT,startTime:s}=this.options;this.driver||(this.driver=i(f=>this.tick(f))),(d=(c=this.options).onPlay)==null||d.call(c);const u=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=u):this.holdTime!==null?this.startTime=u-this.holdTime:this.startTime||(this.startTime=s??u),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(me.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var i,s;this.notifyFinished(),this.teardown(),this.state="finished",(s=(i=this.options).onComplete)==null||s.call(i)}cancel(){var i,s;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(s=(i=this.options).onCancel)==null||s.call(i)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(i){return this.startTime=0,this.tick(i,!0)}attachTimeline(i){var s;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(s=this.driver)==null||s.stop(),i.observe(this)}}function ST(a){for(let i=1;i<a.length;i++)a[i]??(a[i]=a[i-1])}const Ca=a=>a*180/Math.PI,Hc=a=>{const i=Ca(Math.atan2(a[1],a[0]));return Yc(i)},bT={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:Hc,rotateZ:Hc,skewX:a=>Ca(Math.atan(a[1])),skewY:a=>Ca(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},Yc=a=>(a=a%360,a<0&&(a+=360),a),Ip=Hc,ty=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),ey=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),TT={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ty,scaleY:ey,scale:a=>(ty(a)+ey(a))/2,rotateX:a=>Yc(Ca(Math.atan2(a[6],a[5]))),rotateY:a=>Yc(Ca(Math.atan2(-a[2],a[0]))),rotateZ:Ip,rotate:Ip,skewX:a=>Ca(Math.atan(a[4])),skewY:a=>Ca(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function qc(a){return a.includes("scale")?1:0}function Gc(a,i){if(!a||a==="none")return qc(i);const s=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let u,c;if(s)u=TT,c=s;else{const m=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);u=bT,c=m}if(!c)return qc(i);const d=u[i],f=c[1].split(",").map(ET);return typeof d=="function"?d(f):f[d]}const xT=(a,i)=>{const{transform:s="none"}=getComputedStyle(a);return Gc(s,i)};function ET(a){return parseFloat(a.trim())}const Mi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ci=new Set(Mi),ny=a=>a===Ai||a===at,AT=new Set(["x","y","z"]),MT=Mi.filter(a=>!AT.has(a));function CT(a){const i=[];return MT.forEach(s=>{const u=a.getValue(s);u!==void 0&&(i.push([s,u.get()]),u.set(s.startsWith("scale")?1:0))}),i}const $n={width:({x:a},{paddingLeft:i="0",paddingRight:s="0",boxSizing:u})=>{const c=a.max-a.min;return u==="border-box"?c:c-parseFloat(i)-parseFloat(s)},height:({y:a},{paddingTop:i="0",paddingBottom:s="0",boxSizing:u})=>{const c=a.max-a.min;return u==="border-box"?c:c-parseFloat(i)-parseFloat(s)},top:(a,{top:i})=>parseFloat(i),left:(a,{left:i})=>parseFloat(i),bottom:({y:a},{top:i})=>parseFloat(i)+(a.max-a.min),right:({x:a},{left:i})=>parseFloat(i)+(a.max-a.min),x:(a,{transform:i})=>Gc(i,"x"),y:(a,{transform:i})=>Gc(i,"y")};$n.translateX=$n.x;$n.translateY=$n.y;const Da=new Set;let Xc=!1,kc=!1,Zc=!1;function Wg(){if(kc){const a=Array.from(Da).filter(u=>u.needsMeasurement),i=new Set(a.map(u=>u.element)),s=new Map;i.forEach(u=>{const c=CT(u);c.length&&(s.set(u,c),u.render())}),a.forEach(u=>u.measureInitialState()),i.forEach(u=>{u.render();const c=s.get(u);c&&c.forEach(([d,f])=>{var m;(m=u.getValue(d))==null||m.set(f)})}),a.forEach(u=>u.measureEndState()),a.forEach(u=>{u.suspendedScrollY!==void 0&&window.scrollTo(0,u.suspendedScrollY)})}kc=!1,Xc=!1,Da.forEach(a=>a.complete(Zc)),Da.clear()}function $g(){Da.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(kc=!0)})}function DT(){Zc=!0,$g(),Wg(),Zc=!1}class bf{constructor(i,s,u,c,d,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...i],this.onComplete=s,this.name=u,this.motionValue=c,this.element=d,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?(Da.add(this),Xc||(Xc=!0,_t.read($g),_t.resolveKeyframes(Wg))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:i,name:s,element:u,motionValue:c}=this;if(i[0]===null){const d=c==null?void 0:c.get(),f=i[i.length-1];if(d!==void 0)i[0]=d;else if(u&&s){const m=u.readValue(s,f);m!=null&&(i[0]=m)}i[0]===void 0&&(i[0]=f),c&&d===void 0&&c.set(i[0])}ST(i)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(i=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,i),Da.delete(this)}cancel(){this.state==="scheduled"&&(Da.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const RT=a=>a.startsWith("--");function Ig(a,i,s){RT(i)?a.style.setProperty(i,s):a.style[i]=s}const wT={};function t0(a,i){const s=Dg(a);return()=>wT[i]??s()}const zT=t0(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),e0=t0(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Cl=([a,i,s,u])=>`cubic-bezier(${a}, ${i}, ${s}, ${u})`,ay={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Cl([0,.65,.55,1]),circOut:Cl([.55,0,1,.45]),backIn:Cl([.31,.01,.66,-.59]),backOut:Cl([.33,1.53,.69,.99])};function n0(a,i){if(a)return typeof a=="function"?e0()?Jg(a,i):"ease-out":Lg(a)?Cl(a):Array.isArray(a)?a.map(s=>n0(s,i)||ay.easeOut):ay[a]}function OT(a,i,s,{delay:u=0,duration:c=300,repeat:d=0,repeatType:f="loop",ease:m="easeOut",times:y}={},p=void 0){const g={[i]:s};y&&(g.offset=y);const v=n0(m,c);Array.isArray(v)&&(g.easing=v);const b={delay:u,duration:c,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:d+1,direction:f==="reverse"?"alternate":"normal"};return p&&(b.pseudoElement=p),a.animate(g,b)}function a0(a){return typeof a=="function"&&"applyToOptions"in a}function jT({type:a,...i}){return a0(a)&&e0()?a.applyToOptions(i):(i.duration??(i.duration=300),i.ease??(i.ease="easeOut"),i)}class i0 extends Sf{constructor(i){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!i)return;const{element:s,name:u,keyframes:c,pseudoElement:d,allowFlatten:f=!1,finalKeyframe:m,onComplete:y}=i;this.isPseudoElement=!!d,this.allowFlatten=f,this.options=i,cf(typeof i.type!="string");const p=jT(i);this.animation=OT(s,u,c,p,d),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!d){const g=Lu(c,this.options,m,this.speed);this.updateMotionValue&&this.updateMotionValue(g),Ig(s,u,g),this.animation.cancel()}y==null||y(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var i,s;(s=(i=this.animation).finish)==null||s.call(i)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:i}=this;i==="idle"||i==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var s,u,c;const i=(s=this.options)==null?void 0:s.element;!this.isPseudoElement&&(i!=null&&i.isConnected)&&((c=(u=this.animation).commitStyles)==null||c.call(u))}get duration(){var s,u;const i=((u=(s=this.animation.effect)==null?void 0:s.getComputedTiming)==null?void 0:u.call(s).duration)||0;return qe(Number(i))}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+qe(i)}get time(){return qe(Number(this.animation.currentTime)||0)}set time(i){const s=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ze(i),s&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(i){i<0&&(this.finishedTime=null),this.animation.playbackRate=i}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(i){this.manualStartTime=this.animation.startTime=i}attachTimeline({timeline:i,rangeStart:s,rangeEnd:u,observe:c}){var d;return this.allowFlatten&&((d=this.animation.effect)==null||d.updateTiming({easing:"linear"})),this.animation.onfinish=null,i&&zT()?(this.animation.timeline=i,s&&(this.animation.rangeStart=s),u&&(this.animation.rangeEnd=u),Ge):c(this)}}const l0={anticipate:Vg,backInOut:_g,circInOut:Bg};function _T(a){return a in l0}function VT(a){typeof a.ease=="string"&&_T(a.ease)&&(a.ease=l0[a.ease])}const vc=10;class NT extends i0{constructor(i){VT(i),Fg(i),super(i),i.startTime!==void 0&&i.autoplay!==!1&&(this.startTime=i.startTime),this.options=i}updateMotionValue(i){const{motionValue:s,onUpdate:u,onComplete:c,element:d,...f}=this.options;if(!s)return;if(i!==void 0){s.set(i);return}const m=new Ru({...f,autoplay:!1}),y=Math.max(vc,me.now()-this.startTime),p=sn(0,vc,y-vc),g=m.sample(y).value,{name:v}=this.options;d&&v&&Ig(d,v,g),s.setWithVelocity(m.sample(Math.max(0,y-p)).value,g,p),m.stop()}}const iy=(a,i)=>i==="zIndex"?!1:!!(typeof a=="number"||Array.isArray(a)||typeof a=="string"&&(Je.test(a)||a==="0")&&!a.startsWith("url("));function BT(a){const i=a[0];if(a.length===1)return!0;for(let s=0;s<a.length;s++)if(a[s]!==i)return!0}function UT(a,i,s,u){const c=a[0];if(c===null)return!1;if(i==="display"||i==="visibility")return!0;const d=a[a.length-1],f=iy(c,i),m=iy(d,i);return!f||!m?!1:BT(a)||(s==="spring"||a0(s))&&u}function Qc(a){a.duration=0,a.type="keyframes"}const s0=new Set(["opacity","clipPath","filter","transform"]),LT=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function HT(a){for(let i=0;i<a.length;i++)if(typeof a[i]=="string"&&LT.test(a[i]))return!0;return!1}const YT=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),qT=Dg(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function GT(a){var v;const{motionValue:i,name:s,repeatDelay:u,repeatType:c,damping:d,type:f,keyframes:m}=a;if(!(((v=i==null?void 0:i.owner)==null?void 0:v.current)instanceof HTMLElement))return!1;const{onUpdate:p,transformTemplate:g}=i.owner.getProps();return qT()&&s&&(s0.has(s)||YT.has(s)&&HT(m))&&(s!=="transform"||!g)&&!p&&!u&&c!=="mirror"&&d!==0&&f!=="inertia"}const XT=40;class kT extends Sf{constructor({autoplay:i=!0,delay:s=0,type:u="keyframes",repeat:c=0,repeatDelay:d=0,repeatType:f="loop",keyframes:m,name:y,motionValue:p,element:g,...v}){var A;super(),this.stop=()=>{var w,j;this._animation&&(this._animation.stop(),(w=this.stopTimeline)==null||w.call(this)),(j=this.keyframeResolver)==null||j.cancel()},this.createdAt=me.now();const b={autoplay:i,delay:s,type:u,repeat:c,repeatDelay:d,repeatType:f,name:y,motionValue:p,element:g,...v},x=(g==null?void 0:g.KeyframeResolver)||bf;this.keyframeResolver=new x(m,(w,j,B)=>this.onKeyframesResolved(w,j,b,!B),y,p,g),(A=this.keyframeResolver)==null||A.scheduleResolve()}onKeyframesResolved(i,s,u,c){var B,q;this.keyframeResolver=void 0;const{name:d,type:f,velocity:m,delay:y,isHandoff:p,onUpdate:g}=u;this.resolvedAt=me.now();let v=!0;UT(i,d,f,m)||(v=!1,(In.instantAnimations||!y)&&(g==null||g(Lu(i,u,s))),i[0]=i[i.length-1],Qc(u),u.repeat=0);const x={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>XT?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...u,keyframes:i},A=v&&!p&&GT(x),w=(q=(B=x.motionValue)==null?void 0:B.owner)==null?void 0:q.current;let j;if(A)try{j=new NT({...x,element:w})}catch{j=new Ru(x)}else j=new Ru(x);j.finished.then(()=>{this.notifyFinished()}).catch(Ge),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(i,s){return this.finished.finally(i).then(()=>{})}get animation(){var i;return this._animation||((i=this.keyframeResolver)==null||i.resume(),DT()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(i){this.animation.time=i}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(i){this.animation.speed=i}get startTime(){return this.animation.startTime}attachTimeline(i){return this._animation?this.stopTimeline=this.animation.attachTimeline(i):this.pendingTimeline=i,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var i;this._animation&&this.animation.cancel(),(i=this.keyframeResolver)==null||i.cancel()}}function u0(a,i,s,u=0,c=1){const d=Array.from(a).sort((p,g)=>p.sortNodePosition(g)).indexOf(i),f=a.size,m=(f-1)*u;return typeof s=="function"?s(d,f):c===1?d*u:m-d*u}const ZT=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function QT(a){const i=ZT.exec(a);if(!i)return[,];const[,s,u,c]=i;return[`--${s??u}`,c]}function r0(a,i,s=1){const[u,c]=QT(a);if(!u)return;const d=window.getComputedStyle(i).getPropertyValue(u);if(d){const f=d.trim();return Ag(f)?parseFloat(f):f}return mf(c)?r0(c,i,s+1):c}const KT={type:"spring",stiffness:500,damping:25,restSpeed:10},JT=a=>({type:"spring",stiffness:550,damping:a===0?2*Math.sqrt(550):30,restSpeed:10}),PT={type:"keyframes",duration:.8},FT={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},WT=(a,{keyframes:i})=>i.length>2?PT:Ci.has(a)?a.startsWith("scale")?JT(i[1]):KT:FT;function o0(a,i){if(a!=null&&a.inherit&&i){const{inherit:s,...u}=a;return{...i,...u}}return a}function Tf(a,i){const s=(a==null?void 0:a[i])??(a==null?void 0:a.default)??a;return s!==a?o0(s,a):s}const $T=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function IT(a){for(const i in a)if(!$T.has(i))return!0;return!1}const xf=(a,i,s,u={},c,d)=>f=>{const m=Tf(u,a)||{},y=m.delay||u.delay||0;let{elapsed:p=0}=u;p=p-ze(y);const g={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:i.getVelocity(),...m,delay:-p,onUpdate:b=>{i.set(b),m.onUpdate&&m.onUpdate(b)},onComplete:()=>{f(),m.onComplete&&m.onComplete()},name:a,motionValue:i,element:d?void 0:c};IT(m)||Object.assign(g,WT(a,g)),g.duration&&(g.duration=ze(g.duration)),g.repeatDelay&&(g.repeatDelay=ze(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let v=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(Qc(g),g.delay===0&&(v=!0)),(In.instantAnimations||In.skipAnimations||c!=null&&c.shouldSkipAnimations)&&(v=!0,Qc(g),g.delay=0),g.allowFlatten=!m.type&&!m.ease,v&&!d&&i.get()!==void 0){const b=Lu(g.keyframes,m);if(b!==void 0){_t.update(()=>{g.onUpdate(b),g.onComplete()});return}}return m.isSync?new Ru(g):new kT(g)};function ly(a){const i=[{},{}];return a==null||a.values.forEach((s,u)=>{i[0][u]=s.get(),i[1][u]=s.getVelocity()}),i}function Ef(a,i,s,u){if(typeof i=="function"){const[c,d]=ly(u);i=i(s!==void 0?s:a.custom,c,d)}if(typeof i=="string"&&(i=a.variants&&a.variants[i]),typeof i=="function"){const[c,d]=ly(u);i=i(s!==void 0?s:a.custom,c,d)}return i}function Ra(a,i,s){const u=a.getProps();return Ef(u,i,s!==void 0?s:u.custom,a)}const c0=new Set(["width","height","top","left","right","bottom",...Mi]),sy=30,tx=a=>!isNaN(parseFloat(a));class ex{constructor(i,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=u=>{var d;const c=me.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(u),this.current!==this.prev&&((d=this.events.change)==null||d.notify(this.current),this.dependents))for(const f of this.dependents)f.dirty()},this.hasAnimated=!1,this.setCurrent(i),this.owner=s.owner}setCurrent(i){this.current=i,this.updatedAt=me.now(),this.canTrackVelocity===null&&i!==void 0&&(this.canTrackVelocity=tx(this.current))}setPrevFrameValue(i=this.current){this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt}onChange(i){return this.on("change",i)}on(i,s){this.events[i]||(this.events[i]=new ff);const u=this.events[i].add(s);return i==="change"?()=>{u(),_t.read(()=>{this.events.change.getSize()||this.stop()})}:u}clearListeners(){for(const i in this.events)this.events[i].clear()}attach(i,s){this.passiveEffect=i,this.stopPassiveEffect=s}set(i){this.passiveEffect?this.passiveEffect(i,this.updateAndNotify):this.updateAndNotify(i)}setWithVelocity(i,s,u){this.set(s),this.prev=void 0,this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt-u}jump(i,s=!0){this.updateAndNotify(i),this.prev=i,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var i;(i=this.events.change)==null||i.notify(this.current)}addDependent(i){this.dependents||(this.dependents=new Set),this.dependents.add(i)}removeDependent(i){this.dependents&&this.dependents.delete(i)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const i=me.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||i-this.updatedAt>sy)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,sy);return Rg(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(i){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=i(s),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var i,s;(i=this.dependents)==null||i.clear(),(s=this.events.destroy)==null||s.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function xi(a,i){return new ex(a,i)}const Kc=a=>Array.isArray(a);function nx(a,i,s){a.hasValue(i)?a.getValue(i).set(s):a.addValue(i,xi(s))}function ax(a){return Kc(a)?a[a.length-1]||0:a}function ix(a,i){const s=Ra(a,i);let{transitionEnd:u={},transition:c={},...d}=s||{};d={...d,...u};for(const f in d){const m=ax(d[f]);nx(a,f,m)}}const re=a=>!!(a&&a.getVelocity);function lx(a){return!!(re(a)&&a.add)}function Jc(a,i){const s=a.getValue("willChange");if(lx(s))return s.add(i);if(!s&&In.WillChange){const u=new In.WillChange("auto");a.addValue("willChange",u),u.add(i)}}function Af(a){return a.replace(/([A-Z])/g,i=>`-${i.toLowerCase()}`)}const sx="framerAppearId",f0="data-"+Af(sx);function d0(a){return a.props[f0]}function ux({protectedKeys:a,needsAnimating:i},s){const u=a.hasOwnProperty(s)&&i[s]!==!0;return i[s]=!1,u}function h0(a,i,{delay:s=0,transitionOverride:u,type:c}={}){let{transition:d,transitionEnd:f,...m}=i;const y=a.getDefaultTransition();d=d?o0(d,y):y;const p=d==null?void 0:d.reduceMotion;u&&(d=u);const g=[],v=c&&a.animationState&&a.animationState.getState()[c];for(const b in m){const x=a.getValue(b,a.latestValues[b]??null),A=m[b];if(A===void 0||v&&ux(v,b))continue;const w={delay:s,...Tf(d||{},b)},j=x.get();if(j!==void 0&&!x.isAnimating()&&!Array.isArray(A)&&A===j&&!w.velocity){_t.update(()=>x.set(A));continue}let B=!1;if(window.MotionHandoffAnimation){const J=d0(a);if(J){const W=window.MotionHandoffAnimation(J,b,_t);W!==null&&(w.startTime=W,B=!0)}}Jc(a,b);const q=p??a.shouldReduceMotion;x.start(xf(b,x,A,q&&c0.has(b)?{type:!1}:w,a,B));const Y=x.animation;Y&&g.push(Y)}if(f){const b=()=>_t.update(()=>{f&&ix(a,f)});g.length?Promise.all(g).then(b):b()}return g}function Pc(a,i,s={}){var y;const u=Ra(a,i,s.type==="exit"?(y=a.presenceContext)==null?void 0:y.custom:void 0);let{transition:c=a.getDefaultTransition()||{}}=u||{};s.transitionOverride&&(c=s.transitionOverride);const d=u?()=>Promise.all(h0(a,u,s)):()=>Promise.resolve(),f=a.variantChildren&&a.variantChildren.size?(p=0)=>{const{delayChildren:g=0,staggerChildren:v,staggerDirection:b}=c;return rx(a,i,p,g,v,b,s)}:()=>Promise.resolve(),{when:m}=c;if(m){const[p,g]=m==="beforeChildren"?[d,f]:[f,d];return p().then(()=>g())}else return Promise.all([d(),f(s.delay)])}function rx(a,i,s=0,u=0,c=0,d=1,f){const m=[];for(const y of a.variantChildren)y.notify("AnimationStart",i),m.push(Pc(y,i,{...f,delay:s+(typeof u=="function"?0:u)+u0(a.variantChildren,y,u,c,d)}).then(()=>y.notify("AnimationComplete",i)));return Promise.all(m)}function ox(a,i,s={}){a.notify("AnimationStart",i);let u;if(Array.isArray(i)){const c=i.map(d=>Pc(a,d,s));u=Promise.all(c)}else if(typeof i=="string")u=Pc(a,i,s);else{const c=typeof i=="function"?Ra(a,i,s.custom):i;u=Promise.all(h0(a,c,s))}return u.then(()=>{a.notify("AnimationComplete",i)})}const cx={test:a=>a==="auto",parse:a=>a},m0=a=>i=>i.test(a),p0=[Ai,at,an,Fn,Bb,Nb,cx],uy=a=>p0.find(m0(a));function fx(a){return typeof a=="number"?a===0:a!==null?a==="none"||a==="0"||Cg(a):!0}const dx=new Set(["brightness","contrast","saturate","opacity"]);function hx(a){const[i,s]=a.slice(0,-1).split("(");if(i==="drop-shadow")return a;const[u]=s.match(pf)||[];if(!u)return a;const c=s.replace(u,"");let d=dx.has(i)?1:0;return u!==s&&(d*=100),i+"("+d+c+")"}const mx=/\b([a-z-]*)\(.*?\)/gu,Fc={...Je,getAnimatableNone:a=>{const i=a.match(mx);return i?i.map(hx).join(" "):a}},Wc={...Je,getAnimatableNone:a=>{const i=Je.parse(a);return Je.createTransformer(a)(i.map(u=>typeof u=="number"?0:typeof u=="object"?{...u,alpha:1}:u))}},ry={...Ai,transform:Math.round},px={rotate:Fn,rotateX:Fn,rotateY:Fn,rotateZ:Fn,scale:cu,scaleX:cu,scaleY:cu,scaleZ:cu,skew:Fn,skewX:Fn,skewY:Fn,distance:at,translateX:at,translateY:at,translateZ:at,x:at,y:at,z:at,perspective:at,transformPerspective:at,opacity:jl,originX:Jp,originY:Jp,originZ:at},Mf={borderWidth:at,borderTopWidth:at,borderRightWidth:at,borderBottomWidth:at,borderLeftWidth:at,borderRadius:at,borderTopLeftRadius:at,borderTopRightRadius:at,borderBottomRightRadius:at,borderBottomLeftRadius:at,width:at,maxWidth:at,height:at,maxHeight:at,top:at,right:at,bottom:at,left:at,inset:at,insetBlock:at,insetBlockStart:at,insetBlockEnd:at,insetInline:at,insetInlineStart:at,insetInlineEnd:at,padding:at,paddingTop:at,paddingRight:at,paddingBottom:at,paddingLeft:at,paddingBlock:at,paddingBlockStart:at,paddingBlockEnd:at,paddingInline:at,paddingInlineStart:at,paddingInlineEnd:at,margin:at,marginTop:at,marginRight:at,marginBottom:at,marginLeft:at,marginBlock:at,marginBlockStart:at,marginBlockEnd:at,marginInline:at,marginInlineStart:at,marginInlineEnd:at,fontSize:at,backgroundPositionX:at,backgroundPositionY:at,...px,zIndex:ry,fillOpacity:jl,strokeOpacity:jl,numOctaves:ry},yx={...Mf,color:Ft,backgroundColor:Ft,outlineColor:Ft,fill:Ft,stroke:Ft,borderColor:Ft,borderTopColor:Ft,borderRightColor:Ft,borderBottomColor:Ft,borderLeftColor:Ft,filter:Fc,WebkitFilter:Fc,mask:Wc,WebkitMask:Wc},y0=a=>yx[a],gx=new Set([Fc,Wc]);function g0(a,i){let s=y0(a);return gx.has(s)||(s=Je),s.getAnimatableNone?s.getAnimatableNone(i):void 0}const vx=new Set(["auto","none","0"]);function Sx(a,i,s){let u=0,c;for(;u<a.length&&!c;){const d=a[u];typeof d=="string"&&!vx.has(d)&&Ti(d).values.length&&(c=a[u]),u++}if(c&&s)for(const d of i)a[d]=g0(s,c)}class bx extends bf{constructor(i,s,u,c,d){super(i,s,u,c,d,!0)}readKeyframes(){const{unresolvedKeyframes:i,element:s,name:u}=this;if(!s||!s.current)return;super.readKeyframes();for(let g=0;g<i.length;g++){let v=i[g];if(typeof v=="string"&&(v=v.trim(),mf(v))){const b=r0(v,s.current);b!==void 0&&(i[g]=b),g===i.length-1&&(this.finalKeyframe=v)}}if(this.resolveNoneKeyframes(),!c0.has(u)||i.length!==2)return;const[c,d]=i,f=uy(c),m=uy(d),y=Kp(c),p=Kp(d);if(y!==p&&$n[u]){this.needsMeasurement=!0;return}if(f!==m)if(ny(f)&&ny(m))for(let g=0;g<i.length;g++){const v=i[g];typeof v=="string"&&(i[g]=parseFloat(v))}else $n[u]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:i,name:s}=this,u=[];for(let c=0;c<i.length;c++)(i[c]===null||fx(i[c]))&&u.push(c);u.length&&Sx(i,u,s)}measureInitialState(){const{element:i,unresolvedKeyframes:s,name:u}=this;if(!i||!i.current)return;u==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=$n[u](i.measureViewportBox(),window.getComputedStyle(i.current)),s[0]=this.measuredOrigin;const c=s[s.length-1];c!==void 0&&i.getValue(u,c).jump(c,!1)}measureEndState(){var m;const{element:i,name:s,unresolvedKeyframes:u}=this;if(!i||!i.current)return;const c=i.getValue(s);c&&c.jump(this.measuredOrigin,!1);const d=u.length-1,f=u[d];u[d]=$n[s](i.measureViewportBox(),window.getComputedStyle(i.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),(m=this.removedTransforms)!=null&&m.length&&this.removedTransforms.forEach(([y,p])=>{i.getValue(y).set(p)}),this.resolveNoneKeyframes()}}function v0(a,i,s){if(a==null)return[];if(a instanceof EventTarget)return[a];if(typeof a=="string"){let u=document;const c=(s==null?void 0:s[a])??u.querySelectorAll(a);return c?Array.from(c):[]}return Array.from(a).filter(u=>u!=null)}const S0=(a,i)=>i&&typeof a=="number"?i.transform(a):a;function yu(a){return Mg(a)&&"offsetHeight"in a&&!("ownerSVGElement"in a)}const{schedule:Cf}=Hg(queueMicrotask,!1),Ke={x:!1,y:!1};function b0(){return Ke.x||Ke.y}function Tx(a){return a==="x"||a==="y"?Ke[a]?null:(Ke[a]=!0,()=>{Ke[a]=!1}):Ke.x||Ke.y?null:(Ke.x=Ke.y=!0,()=>{Ke.x=Ke.y=!1})}function T0(a,i){const s=v0(a),u=new AbortController,c={passive:!0,...i,signal:u.signal};return[s,c,()=>u.abort()]}function xx(a){return!(a.pointerType==="touch"||b0())}function Ex(a,i,s={}){const[u,c,d]=T0(a,s);return u.forEach(f=>{let m=!1,y=!1,p;const g=()=>{f.removeEventListener("pointerleave",A)},v=j=>{p&&(p(j),p=void 0),g()},b=j=>{m=!1,window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",b),y&&(y=!1,v(j))},x=()=>{m=!0,window.addEventListener("pointerup",b,c),window.addEventListener("pointercancel",b,c)},A=j=>{if(j.pointerType!=="touch"){if(m){y=!0;return}v(j)}},w=j=>{if(!xx(j))return;y=!1;const B=i(f,j);typeof B=="function"&&(p=B,f.addEventListener("pointerleave",A,c))};f.addEventListener("pointerenter",w,c),f.addEventListener("pointerdown",x,c)}),d}const x0=(a,i)=>i?a===i?!0:x0(a,i.parentElement):!1,Df=a=>a.pointerType==="mouse"?typeof a.button!="number"||a.button<=0:a.isPrimary!==!1,Ax=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Mx(a){return Ax.has(a.tagName)||a.isContentEditable===!0}const Cx=new Set(["INPUT","SELECT","TEXTAREA"]);function Dx(a){return Cx.has(a.tagName)||a.isContentEditable===!0}const gu=new WeakSet;function oy(a){return i=>{i.key==="Enter"&&a(i)}}function Sc(a,i){a.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const Rx=(a,i)=>{const s=a.currentTarget;if(!s)return;const u=oy(()=>{if(gu.has(s))return;Sc(s,"down");const c=oy(()=>{Sc(s,"up")}),d=()=>Sc(s,"cancel");s.addEventListener("keyup",c,i),s.addEventListener("blur",d,i)});s.addEventListener("keydown",u,i),s.addEventListener("blur",()=>s.removeEventListener("keydown",u),i)};function cy(a){return Df(a)&&!b0()}const fy=new WeakSet;function wx(a,i,s={}){const[u,c,d]=T0(a,s),f=m=>{const y=m.currentTarget;if(!cy(m)||fy.has(m))return;gu.add(y),s.stopPropagation&&fy.add(m);const p=i(y,m),g=(x,A)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",b),gu.has(y)&&gu.delete(y),cy(x)&&typeof p=="function"&&p(x,{success:A})},v=x=>{g(x,y===window||y===document||s.useGlobalTarget||x0(y,x.target))},b=x=>{g(x,!1)};window.addEventListener("pointerup",v,c),window.addEventListener("pointercancel",b,c)};return u.forEach(m=>{(s.useGlobalTarget?window:m).addEventListener("pointerdown",f,c),yu(m)&&(m.addEventListener("focus",p=>Rx(p,c)),!Mx(m)&&!m.hasAttribute("tabindex")&&(m.tabIndex=0))}),d}function Rf(a){return Mg(a)&&"ownerSVGElement"in a}const vu=new WeakMap;let Wn;const E0=(a,i,s)=>(u,c)=>c&&c[0]?c[0][a+"Size"]:Rf(u)&&"getBBox"in u?u.getBBox()[i]:u[s],zx=E0("inline","width","offsetWidth"),Ox=E0("block","height","offsetHeight");function jx({target:a,borderBoxSize:i}){var s;(s=vu.get(a))==null||s.forEach(u=>{u(a,{get width(){return zx(a,i)},get height(){return Ox(a,i)}})})}function _x(a){a.forEach(jx)}function Vx(){typeof ResizeObserver>"u"||(Wn=new ResizeObserver(_x))}function Nx(a,i){Wn||Vx();const s=v0(a);return s.forEach(u=>{let c=vu.get(u);c||(c=new Set,vu.set(u,c)),c.add(i),Wn==null||Wn.observe(u)}),()=>{s.forEach(u=>{const c=vu.get(u);c==null||c.delete(i),c!=null&&c.size||Wn==null||Wn.unobserve(u)})}}const Su=new Set;let vi;function Bx(){vi=()=>{const a={get width(){return window.innerWidth},get height(){return window.innerHeight}};Su.forEach(i=>i(a))},window.addEventListener("resize",vi)}function Ux(a){return Su.add(a),vi||Bx(),()=>{Su.delete(a),!Su.size&&typeof vi=="function"&&(window.removeEventListener("resize",vi),vi=void 0)}}function dy(a,i){return typeof a=="function"?Ux(a):Nx(a,i)}function Lx(a){return Rf(a)&&a.tagName==="svg"}const Hx=[...p0,Ft,Je],Yx=a=>Hx.find(m0(a)),hy=()=>({translate:0,scale:1,origin:0,originPoint:0}),Si=()=>({x:hy(),y:hy()}),my=()=>({min:0,max:0}),$t=()=>({x:my(),y:my()}),qx=new WeakMap;function Hu(a){return a!==null&&typeof a=="object"&&typeof a.start=="function"}function _l(a){return typeof a=="string"||Array.isArray(a)}const wf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],zf=["initial",...wf];function Yu(a){return Hu(a.animate)||zf.some(i=>_l(a[i]))}function A0(a){return!!(Yu(a)||a.variants)}function Gx(a,i,s){for(const u in i){const c=i[u],d=s[u];if(re(c))a.addValue(u,c);else if(re(d))a.addValue(u,xi(c,{owner:a}));else if(d!==c)if(a.hasValue(u)){const f=a.getValue(u);f.liveStyle===!0?f.jump(c):f.hasAnimated||f.set(c)}else{const f=a.getStaticValue(u);a.addValue(u,xi(f!==void 0?f:c,{owner:a}))}}for(const u in s)i[u]===void 0&&a.removeValue(u);return i}const wu={current:null},Of={current:!1},Xx=typeof window<"u";function M0(){if(Of.current=!0,!!Xx)if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)"),i=()=>wu.current=a.matches;a.addEventListener("change",i),i()}else wu.current=!1}const py=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let zu={};function C0(a){zu=a}function kx(){return zu}class Zx{scrapeMotionValuesFromProps(i,s,u){return{}}constructor({parent:i,props:s,presenceContext:u,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=bf,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=me.now();this.renderScheduledAt<x&&(this.renderScheduledAt=x,_t.render(this.render,!1,!0))};const{latestValues:p,renderState:g}=m;this.latestValues=p,this.baseTarget={...p},this.initialValues=s.initial?{...p}:{},this.renderState=g,this.parent=i,this.props=s,this.presenceContext=u,this.depth=i?i.depth+1:0,this.reducedMotionConfig=c,this.skipAnimationsConfig=d,this.options=y,this.blockInitialAnimation=!!f,this.isControllingVariants=Yu(s),this.isVariantNode=A0(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(i&&i.current);const{willChange:v,...b}=this.scrapeMotionValuesFromProps(s,{},this);for(const x in b){const A=b[x];p[x]!==void 0&&re(A)&&A.set(p[x])}}mount(i){var s,u;if(this.hasBeenMounted)for(const c in this.initialValues)(s=this.values.get(c))==null||s.jump(this.initialValues[c]),this.latestValues[c]=this.initialValues[c];this.current=i,qx.set(i,this),this.projection&&!this.projection.instance&&this.projection.mount(i),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:(Of.current||M0(),this.shouldReduceMotion=wu.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(u=this.parent)==null||u.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var i;this.projection&&this.projection.unmount(),ta(this.notifyUpdate),ta(this.render),this.valueSubscriptions.forEach(s=>s()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(i=this.parent)==null||i.removeChild(this);for(const s in this.events)this.events[s].clear();for(const s in this.features){const u=this.features[s];u&&(u.unmount(),u.isMounted=!1)}this.current=null}addChild(i){this.children.add(i),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(i)}removeChild(i){this.children.delete(i),this.enteringChildren&&this.enteringChildren.delete(i)}bindToMotionValue(i,s){if(this.valueSubscriptions.has(i)&&this.valueSubscriptions.get(i)(),s.accelerate&&s0.has(i)&&this.current instanceof HTMLElement){const{factory:f,keyframes:m,times:y,ease:p,duration:g}=s.accelerate,v=new i0({element:this.current,name:i,keyframes:m,times:y,ease:p,duration:ze(g)}),b=f(v);this.valueSubscriptions.set(i,()=>{b(),v.cancel()});return}const u=Ci.has(i);u&&this.onBindTransform&&this.onBindTransform();const c=s.on("change",f=>{this.latestValues[i]=f,this.props.onUpdate&&_t.preRender(this.notifyUpdate),u&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let d;typeof window<"u"&&window.MotionCheckAppearSync&&(d=window.MotionCheckAppearSync(this,i,s)),this.valueSubscriptions.set(i,()=>{c(),d&&d(),s.owner&&s.stop()})}sortNodePosition(i){return!this.current||!this.sortInstanceNodePosition||this.type!==i.type?0:this.sortInstanceNodePosition(this.current,i.current)}updateFeatures(){let i="animation";for(i in zu){const s=zu[i];if(!s)continue;const{isEnabled:u,Feature:c}=s;if(!this.features[i]&&c&&u(this.props)&&(this.features[i]=new c(this)),this.features[i]){const d=this.features[i];d.isMounted?d.update():(d.mount(),d.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):$t()}getStaticValue(i){return this.latestValues[i]}setStaticValue(i,s){this.latestValues[i]=s}update(i,s){(i.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=i,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let u=0;u<py.length;u++){const c=py[u];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const d="on"+c,f=i[d];f&&(this.propEventSubscriptions[c]=this.on(c,f))}this.prevMotionValues=Gx(this,this.scrapeMotionValuesFromProps(i,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(i){return this.props.variants?this.props.variants[i]: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(i){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(i),()=>s.variantChildren.delete(i)}addValue(i,s){const u=this.values.get(i);s!==u&&(u&&this.removeValue(i),this.bindToMotionValue(i,s),this.values.set(i,s),this.latestValues[i]=s.get())}removeValue(i){this.values.delete(i);const s=this.valueSubscriptions.get(i);s&&(s(),this.valueSubscriptions.delete(i)),delete this.latestValues[i],this.removeValueFromRenderState(i,this.renderState)}hasValue(i){return this.values.has(i)}getValue(i,s){if(this.props.values&&this.props.values[i])return this.props.values[i];let u=this.values.get(i);return u===void 0&&s!==void 0&&(u=xi(s===null?void 0:s,{owner:this}),this.addValue(i,u)),u}readValue(i,s){let u=this.latestValues[i]!==void 0||!this.current?this.latestValues[i]:this.getBaseTargetFromProps(this.props,i)??this.readValueFromInstance(this.current,i,this.options);return u!=null&&(typeof u=="string"&&(Ag(u)||Cg(u))?u=parseFloat(u):!Yx(u)&&Je.test(s)&&(u=g0(i,s)),this.setBaseTarget(i,re(u)?u.get():u)),re(u)?u.get():u}setBaseTarget(i,s){this.baseTarget[i]=s}getBaseTarget(i){var d;const{initial:s}=this.props;let u;if(typeof s=="string"||typeof s=="object"){const f=Ef(this.props,s,(d=this.presenceContext)==null?void 0:d.custom);f&&(u=f[i])}if(s&&u!==void 0)return u;const c=this.getBaseTargetFromProps(this.props,i);return c!==void 0&&!re(c)?c:this.initialValues[i]!==void 0&&u===void 0?void 0:this.baseTarget[i]}on(i,s){return this.events[i]||(this.events[i]=new ff),this.events[i].add(s)}notify(i,...s){this.events[i]&&this.events[i].notify(...s)}scheduleRenderMicrotask(){Cf.render(this.render)}}class D0 extends Zx{constructor(){super(...arguments),this.KeyframeResolver=bx}sortInstanceNodePosition(i,s){return i.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(i,s){const u=i.style;return u?u[s]:void 0}removeValueFromRenderState(i,{vars:s,style:u}){delete s[i],delete u[i]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:i}=this.props;re(i)&&(this.childSubscription=i.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}class ea{constructor(i){this.isMounted=!1,this.node=i}update(){}}function R0({top:a,left:i,right:s,bottom:u}){return{x:{min:i,max:s},y:{min:a,max:u}}}function Qx({x:a,y:i}){return{top:i.min,right:a.max,bottom:i.max,left:a.min}}function Kx(a,i){if(!i)return a;const s=i({x:a.left,y:a.top}),u=i({x:a.right,y:a.bottom});return{top:s.y,left:s.x,bottom:u.y,right:u.x}}function bc(a){return a===void 0||a===1}function $c({scale:a,scaleX:i,scaleY:s}){return!bc(a)||!bc(i)||!bc(s)}function Aa(a){return $c(a)||w0(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function w0(a){return yy(a.x)||yy(a.y)}function yy(a){return a&&a!=="0%"}function Ou(a,i,s){const u=a-s,c=i*u;return s+c}function gy(a,i,s,u,c){return c!==void 0&&(a=Ou(a,c,u)),Ou(a,s,u)+i}function Ic(a,i=0,s=1,u,c){a.min=gy(a.min,i,s,u,c),a.max=gy(a.max,i,s,u,c)}function z0(a,{x:i,y:s}){Ic(a.x,i.translate,i.scale,i.originPoint),Ic(a.y,s.translate,s.scale,s.originPoint)}const vy=.999999999999,Sy=1.0000000000001;function Jx(a,i,s,u=!1){var m;const c=s.length;if(!c)return;i.x=i.y=1;let d,f;for(let y=0;y<c;y++){d=s[y],f=d.projectionDelta;const{visualElement:p}=d.options;p&&p.props.style&&p.props.style.display==="contents"||(u&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(nn(a.x,-d.scroll.offset.x),nn(a.y,-d.scroll.offset.y)),f&&(i.x*=f.x.scale,i.y*=f.y.scale,z0(a,f)),u&&Aa(d.latestValues)&&bu(a,d.latestValues,(m=d.layout)==null?void 0:m.layoutBox))}i.x<Sy&&i.x>vy&&(i.x=1),i.y<Sy&&i.y>vy&&(i.y=1)}function nn(a,i){a.min+=i,a.max+=i}function by(a,i,s,u,c=.5){const d=Lt(a.min,a.max,c);Ic(a,i,s,d,u)}function Ty(a,i){return typeof a=="string"?parseFloat(a)/100*(i.max-i.min):a}function bu(a,i,s){const u=s??a;by(a.x,Ty(i.x,u.x),i.scaleX,i.scale,i.originX),by(a.y,Ty(i.y,u.y),i.scaleY,i.scale,i.originY)}function O0(a,i){return R0(Kx(a.getBoundingClientRect(),i))}function Px(a,i,s){const u=O0(a,s),{scroll:c}=i;return c&&(nn(u.x,c.offset.x),nn(u.y,c.offset.y)),u}const Fx={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Wx=Mi.length;function $x(a,i,s){let u="",c=!0;for(let d=0;d<Wx;d++){const f=Mi[d],m=a[f];if(m===void 0)continue;let y=!0;if(typeof m=="number")y=m===(f.startsWith("scale")?1:0);else{const p=parseFloat(m);y=f.startsWith("scale")?p===1:p===0}if(!y||s){const p=S0(m,Mf[f]);if(!y){c=!1;const g=Fx[f]||f;u+=`${g}(${p}) `}s&&(i[f]=p)}}return u=u.trim(),s?u=s(i,c?"":u):c&&(u="none"),u}function jf(a,i,s){const{style:u,vars:c,transformOrigin:d}=a;let f=!1,m=!1;for(const y in i){const p=i[y];if(Ci.has(y)){f=!0;continue}else if(qg(y)){c[y]=p;continue}else{const g=S0(p,Mf[y]);y.startsWith("origin")?(m=!0,d[y]=g):u[y]=g}}if(i.transform||(f||s?u.transform=$x(i,a.transform,s):u.transform&&(u.transform="none")),m){const{originX:y="50%",originY:p="50%",originZ:g=0}=d;u.transformOrigin=`${y} ${p} ${g}`}}function j0(a,{style:i,vars:s},u,c){const d=a.style;let f;for(f in i)d[f]=i[f];c==null||c.applyProjectionStyles(d,u);for(f in s)d.setProperty(f,s[f])}function xy(a,i){return i.max===i.min?0:a/(i.max-i.min)*100}const Ml={correct:(a,i)=>{if(!i.target)return a;if(typeof a=="string")if(at.test(a))a=parseFloat(a);else return a;const s=xy(a,i.target.x),u=xy(a,i.target.y);return`${s}% ${u}%`}},Ix={correct:(a,{treeScale:i,projectionDelta:s})=>{const u=a,c=Je.parse(a);if(c.length>5)return u;const d=Je.createTransformer(a),f=typeof c[0]!="number"?1:0,m=s.x.scale*i.x,y=s.y.scale*i.y;c[0+f]/=m,c[1+f]/=y;const p=Lt(m,y,.5);return typeof c[2+f]=="number"&&(c[2+f]/=p),typeof c[3+f]=="number"&&(c[3+f]/=p),d(c)}},tf={borderRadius:{...Ml,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ml,borderTopRightRadius:Ml,borderBottomLeftRadius:Ml,borderBottomRightRadius:Ml,boxShadow:Ix};function _0(a,{layout:i,layoutId:s}){return Ci.has(a)||a.startsWith("origin")||(i||s!==void 0)&&(!!tf[a]||a==="opacity")}function _f(a,i,s){var f;const u=a.style,c=i==null?void 0:i.style,d={};if(!u)return d;for(const m in u)(re(u[m])||c&&re(c[m])||_0(m,a)||((f=s==null?void 0:s.getValue(m))==null?void 0:f.liveStyle)!==void 0)&&(d[m]=u[m]);return d}function t2(a){return window.getComputedStyle(a)}class e2 extends D0{constructor(){super(...arguments),this.type="html",this.renderInstance=j0}readValueFromInstance(i,s){var u;if(Ci.has(s))return(u=this.projection)!=null&&u.isProjecting?qc(s):xT(i,s);{const c=t2(i),d=(qg(s)?c.getPropertyValue(s):c[s])||0;return typeof d=="string"?d.trim():d}}measureInstanceViewportBox(i,{transformPagePoint:s}){return O0(i,s)}build(i,s,u){jf(i,s,u.transformTemplate)}scrapeMotionValuesFromProps(i,s,u){return _f(i,s,u)}}const n2={offset:"stroke-dashoffset",array:"stroke-dasharray"},a2={offset:"strokeDashoffset",array:"strokeDasharray"};function i2(a,i,s=1,u=0,c=!0){a.pathLength=1;const d=c?n2:a2;a[d.offset]=`${-u}`,a[d.array]=`${i} ${s}`}const l2=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function V0(a,{attrX:i,attrY:s,attrScale:u,pathLength:c,pathSpacing:d=1,pathOffset:f=0,...m},y,p,g){if(jf(a,m,p),y){a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox);return}a.attrs=a.style,a.style={};const{attrs:v,style:b}=a;v.transform&&(b.transform=v.transform,delete v.transform),(b.transform||v.transformOrigin)&&(b.transformOrigin=v.transformOrigin??"50% 50%",delete v.transformOrigin),b.transform&&(b.transformBox=(g==null?void 0:g.transformBox)??"fill-box",delete v.transformBox);for(const x of l2)v[x]!==void 0&&(b[x]=v[x],delete v[x]);i!==void 0&&(v.x=i),s!==void 0&&(v.y=s),u!==void 0&&(v.scale=u),c!==void 0&&i2(v,c,d,f,!1)}const N0=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"]),B0=a=>typeof a=="string"&&a.toLowerCase()==="svg";function s2(a,i,s,u){j0(a,i,void 0,u);for(const c in i.attrs)a.setAttribute(N0.has(c)?c:Af(c),i.attrs[c])}function U0(a,i,s){const u=_f(a,i,s);for(const c in a)if(re(a[c])||re(i[c])){const d=Mi.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;u[d]=a[c]}return u}class u2 extends D0{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=$t}getBaseTargetFromProps(i,s){return i[s]}readValueFromInstance(i,s){if(Ci.has(s)){const u=y0(s);return u&&u.default||0}return s=N0.has(s)?s:Af(s),i.getAttribute(s)}scrapeMotionValuesFromProps(i,s,u){return U0(i,s,u)}build(i,s,u){V0(i,s,this.isSVGTag,u.transformTemplate,u.style)}renderInstance(i,s,u,c){s2(i,s,u,c)}mount(i){this.isSVGTag=B0(i.tagName),super.mount(i)}}const r2=zf.length;function L0(a){if(!a)return;if(!a.isControllingVariants){const s=a.parent?L0(a.parent)||{}:{};return a.props.initial!==void 0&&(s.initial=a.props.initial),s}const i={};for(let s=0;s<r2;s++){const u=zf[s],c=a.props[u];(_l(c)||c===!1)&&(i[u]=c)}return i}function H0(a,i){if(!Array.isArray(i))return!1;const s=i.length;if(s!==a.length)return!1;for(let u=0;u<s;u++)if(i[u]!==a[u])return!1;return!0}const o2=[...wf].reverse(),c2=wf.length;function f2(a){return i=>Promise.all(i.map(({animation:s,options:u})=>ox(a,s,u)))}function d2(a){let i=f2(a),s=Ey(),u=!0,c=!1;const d=p=>(g,v)=>{var x;const b=Ra(a,v,p==="exit"?(x=a.presenceContext)==null?void 0:x.custom:void 0);if(b){const{transition:A,transitionEnd:w,...j}=b;g={...g,...j,...w}}return g};function f(p){i=p(a)}function m(p){const{props:g}=a,v=L0(a.parent)||{},b=[],x=new Set;let A={},w=1/0;for(let B=0;B<c2;B++){const q=o2[B],Y=s[q],J=g[q]!==void 0?g[q]:v[q],W=_l(J),F=q===p?Y.isActive:null;F===!1&&(w=B);let X=J===v[q]&&J!==g[q]&&W;if(X&&(u||c)&&a.manuallyAnimateOnMount&&(X=!1),Y.protectedKeys={...A},!Y.isActive&&F===null||!J&&!Y.prevProp||Hu(J)||typeof J=="boolean")continue;if(q==="exit"&&Y.isActive&&F!==!0){Y.prevResolvedValues&&(A={...A,...Y.prevResolvedValues});continue}const Q=h2(Y.prevProp,J);let Z=Q||q===p&&Y.isActive&&!X&&W||B>w&&W,k=!1;const $=Array.isArray(J)?J:[J];let K=$.reduce(d(q),{});F===!1&&(K={});const{prevResolvedValues:ot={}}=Y,bt={...ot,...K},Mt=tt=>{Z=!0,x.has(tt)&&(k=!0,x.delete(tt)),Y.needsAnimating[tt]=!0;const rt=a.getValue(tt);rt&&(rt.liveStyle=!1)};for(const tt in bt){const rt=K[tt],dt=ot[tt];if(A.hasOwnProperty(tt))continue;let C=!1;Kc(rt)&&Kc(dt)?C=!H0(rt,dt):C=rt!==dt,C?rt!=null?Mt(tt):x.add(tt):rt!==void 0&&x.has(tt)?Mt(tt):Y.protectedKeys[tt]=!0}Y.prevProp=J,Y.prevResolvedValues=K,Y.isActive&&(A={...A,...K}),(u||c)&&a.blockInitialAnimation&&(Z=!1);const V=X&&Q;Z&&(!V||k)&&b.push(...$.map(tt=>{const rt={type:q};if(typeof tt=="string"&&(u||c)&&!V&&a.manuallyAnimateOnMount&&a.parent){const{parent:dt}=a,C=Ra(dt,tt);if(dt.enteringChildren&&C){const{delayChildren:L}=C.transition||{};rt.delay=u0(dt.enteringChildren,a,L)}}return{animation:tt,options:rt}}))}if(x.size){const B={};if(typeof g.initial!="boolean"){const q=Ra(a,Array.isArray(g.initial)?g.initial[0]:g.initial);q&&q.transition&&(B.transition=q.transition)}x.forEach(q=>{const Y=a.getBaseTarget(q),J=a.getValue(q);J&&(J.liveStyle=!0),B[q]=Y??null}),b.push({animation:B})}let j=!!b.length;return u&&(g.initial===!1||g.initial===g.animate)&&!a.manuallyAnimateOnMount&&(j=!1),u=!1,c=!1,j?i(b):Promise.resolve()}function y(p,g){var b;if(s[p].isActive===g)return Promise.resolve();(b=a.variantChildren)==null||b.forEach(x=>{var A;return(A=x.animationState)==null?void 0:A.setActive(p,g)}),s[p].isActive=g;const v=m(p);for(const x in s)s[x].protectedKeys={};return v}return{animateChanges:m,setActive:y,setAnimateFunction:f,getState:()=>s,reset:()=>{s=Ey(),c=!0}}}function h2(a,i){return typeof i=="string"?i!==a:Array.isArray(i)?!H0(i,a):!1}function Ea(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ey(){return{animate:Ea(!0),whileInView:Ea(),whileHover:Ea(),whileTap:Ea(),whileDrag:Ea(),whileFocus:Ea(),exit:Ea()}}function ef(a,i){a.min=i.min,a.max=i.max}function Qe(a,i){ef(a.x,i.x),ef(a.y,i.y)}function Ay(a,i){a.translate=i.translate,a.scale=i.scale,a.originPoint=i.originPoint,a.origin=i.origin}const Y0=1e-4,m2=1-Y0,p2=1+Y0,q0=.01,y2=0-q0,g2=0+q0;function pe(a){return a.max-a.min}function v2(a,i,s){return Math.abs(a-i)<=s}function My(a,i,s,u=.5){a.origin=u,a.originPoint=Lt(i.min,i.max,a.origin),a.scale=pe(s)/pe(i),a.translate=Lt(s.min,s.max,a.origin)-a.originPoint,(a.scale>=m2&&a.scale<=p2||isNaN(a.scale))&&(a.scale=1),(a.translate>=y2&&a.translate<=g2||isNaN(a.translate))&&(a.translate=0)}function wl(a,i,s,u){My(a.x,i.x,s.x,u?u.originX:void 0),My(a.y,i.y,s.y,u?u.originY:void 0)}function Cy(a,i,s,u=0){const c=u?Lt(s.min,s.max,u):s.min;a.min=c+i.min,a.max=a.min+pe(i)}function S2(a,i,s,u){Cy(a.x,i.x,s.x,u==null?void 0:u.x),Cy(a.y,i.y,s.y,u==null?void 0:u.y)}function Dy(a,i,s,u=0){const c=u?Lt(s.min,s.max,u):s.min;a.min=i.min-c,a.max=a.min+pe(i)}function ju(a,i,s,u){Dy(a.x,i.x,s.x,u==null?void 0:u.x),Dy(a.y,i.y,s.y,u==null?void 0:u.y)}function Ry(a,i,s,u,c){return a-=i,a=Ou(a,1/s,u),c!==void 0&&(a=Ou(a,1/c,u)),a}function b2(a,i=0,s=1,u=.5,c,d=a,f=a){if(an.test(i)&&(i=parseFloat(i),i=Lt(f.min,f.max,i/100)-f.min),typeof i!="number")return;let m=Lt(d.min,d.max,u);a===d&&(m-=i),a.min=Ry(a.min,i,s,m,c),a.max=Ry(a.max,i,s,m,c)}function wy(a,i,[s,u,c],d,f){b2(a,i[s],i[u],i[c],i.scale,d,f)}const T2=["x","scaleX","originX"],x2=["y","scaleY","originY"];function zy(a,i,s,u){wy(a.x,i,T2,s?s.x:void 0,u?u.x:void 0),wy(a.y,i,x2,s?s.y:void 0,u?u.y:void 0)}function Oy(a){return a.translate===0&&a.scale===1}function G0(a){return Oy(a.x)&&Oy(a.y)}function jy(a,i){return a.min===i.min&&a.max===i.max}function E2(a,i){return jy(a.x,i.x)&&jy(a.y,i.y)}function _y(a,i){return Math.round(a.min)===Math.round(i.min)&&Math.round(a.max)===Math.round(i.max)}function X0(a,i){return _y(a.x,i.x)&&_y(a.y,i.y)}function Vy(a){return pe(a.x)/pe(a.y)}function Ny(a,i){return a.translate===i.translate&&a.scale===i.scale&&a.originPoint===i.originPoint}function en(a){return[a("x"),a("y")]}function A2(a,i,s){let u="";const c=a.x.translate/i.x,d=a.y.translate/i.y,f=(s==null?void 0:s.z)||0;if((c||d||f)&&(u=`translate3d(${c}px, ${d}px, ${f}px) `),(i.x!==1||i.y!==1)&&(u+=`scale(${1/i.x}, ${1/i.y}) `),s){const{transformPerspective:p,rotate:g,rotateX:v,rotateY:b,skewX:x,skewY:A}=s;p&&(u=`perspective(${p}px) ${u}`),g&&(u+=`rotate(${g}deg) `),v&&(u+=`rotateX(${v}deg) `),b&&(u+=`rotateY(${b}deg) `),x&&(u+=`skewX(${x}deg) `),A&&(u+=`skewY(${A}deg) `)}const m=a.x.scale*i.x,y=a.y.scale*i.y;return(m!==1||y!==1)&&(u+=`scale(${m}, ${y})`),u||"none"}const k0=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],M2=k0.length,By=a=>typeof a=="string"?parseFloat(a):a,Uy=a=>typeof a=="number"||at.test(a);function C2(a,i,s,u,c,d){c?(a.opacity=Lt(0,s.opacity??1,D2(u)),a.opacityExit=Lt(i.opacity??1,0,R2(u))):d&&(a.opacity=Lt(i.opacity??1,s.opacity??1,u));for(let f=0;f<M2;f++){const m=k0[f];let y=Ly(i,m),p=Ly(s,m);if(y===void 0&&p===void 0)continue;y||(y=0),p||(p=0),y===0||p===0||Uy(y)===Uy(p)?(a[m]=Math.max(Lt(By(y),By(p),u),0),(an.test(p)||an.test(y))&&(a[m]+="%")):a[m]=p}(i.rotate||s.rotate)&&(a.rotate=Lt(i.rotate||0,s.rotate||0,u))}function Ly(a,i){return a[i]!==void 0?a[i]:a.borderRadius}const D2=Z0(0,.5,Ng),R2=Z0(.5,.95,Ge);function Z0(a,i,s){return u=>u<a?0:u>i?1:s(Ol(a,i,u))}function w2(a,i,s){const u=re(a)?a:xi(a);return u.start(xf("",u,i,s)),u.animation}function Vl(a,i,s,u={passive:!0}){return a.addEventListener(i,s,u),()=>a.removeEventListener(i,s)}const z2=(a,i)=>a.depth-i.depth;class O2{constructor(){this.children=[],this.isDirty=!1}add(i){of(this.children,i),this.isDirty=!0}remove(i){Au(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(z2),this.isDirty=!1,this.children.forEach(i)}}function j2(a,i){const s=me.now(),u=({timestamp:c})=>{const d=c-s;d>=i&&(ta(u),a(d-i))};return _t.setup(u,!0),()=>ta(u)}function Tu(a){return re(a)?a.get():a}class _2{constructor(){this.members=[]}add(i){of(this.members,i);for(let s=this.members.length-1;s>=0;s--){const u=this.members[s];if(u===i||u===this.lead||u===this.prevLead)continue;const c=u.instance;(!c||c.isConnected===!1)&&!u.snapshot&&(Au(this.members,u),u.unmount())}i.scheduleRender()}remove(i){if(Au(this.members,i),i===this.prevLead&&(this.prevLead=void 0),i===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(i){var s;for(let u=this.members.indexOf(i)-1;u>=0;u--){const c=this.members[u];if(c.isPresent!==!1&&((s=c.instance)==null?void 0:s.isConnected)!==!1)return this.promote(c),!0}return!1}promote(i,s){var c;const u=this.lead;if(i!==u&&(this.prevLead=u,this.lead=i,i.show(),u)){u.updateSnapshot(),i.scheduleRender();const{layoutDependency:d}=u.options,{layoutDependency:f}=i.options;(d===void 0||d!==f)&&(i.resumeFrom=u,s&&(u.preserveOpacity=!0),u.snapshot&&(i.snapshot=u.snapshot,i.snapshot.latestValues=u.animationValues||u.latestValues),(c=i.root)!=null&&c.isUpdating&&(i.isLayoutDirty=!0)),i.options.crossfade===!1&&u.hide()}}exitAnimationComplete(){this.members.forEach(i=>{var s,u,c,d,f;(u=(s=i.options).onExitComplete)==null||u.call(s),(f=(c=i.resumingFrom)==null?void 0:(d=c.options).onExitComplete)==null||f.call(d)})}scheduleRender(){this.members.forEach(i=>i.instance&&i.scheduleRender(!1))}removeLeadSnapshot(){var i;(i=this.lead)!=null&&i.snapshot&&(this.lead.snapshot=void 0)}}const xu={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Tc=["","X","Y","Z"],V2=1e3;let N2=0;function xc(a,i,s,u){const{latestValues:c}=i;c[a]&&(s[a]=c[a],i.setStaticValue(a,0),u&&(u[a]=0))}function Q0(a){if(a.hasCheckedOptimisedAppear=!0,a.root===a)return;const{visualElement:i}=a.options;if(!i)return;const s=d0(i);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:c,layoutId:d}=a.options;window.MotionCancelOptimisedAnimation(s,"transform",_t,!(c||d))}const{parent:u}=a;u&&!u.hasCheckedOptimisedAppear&&Q0(u)}function K0({attachResizeListener:a,defaultParent:i,measureScroll:s,checkIsScrollRoot:u,resetTransform:c}){return class{constructor(f={},m=i==null?void 0:i()){this.id=N2++,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(L2),this.nodes.forEach(k2),this.nodes.forEach(Z2),this.nodes.forEach(H2)},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 O2)}addEventListener(f,m){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new ff),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=Rf(f)&&!Lx(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),a){let g,v=0;const b=()=>this.root.updateBlockedByResize=!1;_t.read(()=>{v=window.innerWidth}),a(f,()=>{const x=window.innerWidth;x!==v&&(v=x,this.root.updateBlockedByResize=!0,g&&g(),g=j2(b,250),xu.hasAnimatedSinceResize&&(xu.hasAnimatedSinceResize=!1,this.nodes.forEach(qy)))})}m&&this.root.registerSharedNode(m,this),this.options.animate!==!1&&p&&(m||y)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:v,hasRelativeLayoutChanged:b,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const A=this.options.transition||p.getDefaultTransition()||F2,{onLayoutAnimationStart:w,onLayoutAnimationComplete:j}=p.getProps(),B=!this.targetLayout||!X0(this.targetLayout,x),q=!v&&b;if(this.options.layoutRoot||this.resumeFrom||q||v&&(B||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const Y={...Tf(A,"layout"),onPlay:w,onComplete:j};(p.shouldReduceMotion||this.options.layoutRoot)&&(Y.delay=0,Y.type=!1),this.startAnimation(Y),this.setAnimationOrigin(g,q)}else v||qy(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(),ta(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(Q2),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&&Q0(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g<this.path.length;g++){const v=this.path[g];v.shouldResetTransform=!0,(typeof v.latestValues.x=="string"||typeof v.latestValues.y=="string")&&(v.isLayoutDirty=!0),v.updateScroll("snapshot"),v.options.layoutRoot&&v.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(q2),this.nodes.forEach(Hy);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Yy);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(G2),this.nodes.forEach(X2),this.nodes.forEach(B2),this.nodes.forEach(U2)):this.nodes.forEach(Yy),this.clearAllSnapshots();const m=me.now();ue.delta=sn(0,1e3/60,m-ue.timestamp),ue.timestamp=m,ue.isProcessing=!0,hc.update.process(ue),hc.preRender.process(ue),hc.render.process(ue),ue.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Cf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Y2),this.sharedNodes.forEach(K2)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,_t.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){_t.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!pe(this.snapshot.measuredBox.x)&&!pe(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=$t()),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=u(this.instance);this.scroll={animationId:this.root.animationId,phase:f,isRoot:y,offset:s(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&&!G0(this.projectionDelta),y=this.getTransformTemplate(),p=y?y(this.latestValues,""):void 0,g=p!==this.prevTransformTemplateValue;f&&this.instance&&(m||Aa(this.latestValues)||g)&&(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)),W2(y),{animationId:this.root.animationId,measuredBox:m,layoutBox:y,latestValues:{},source:this.id}}measurePageBox(){var p;const{visualElement:f}=this.options;if(!f)return $t();const m=f.measureViewportBox();if(!(((p=this.scroll)==null?void 0:p.wasRoot)||this.path.some($2))){const{scroll:g}=this.root;g&&(nn(m.x,g.offset.x),nn(m.y,g.offset.y))}return m}removeElementScroll(f){var y;const m=$t();if(Qe(m,f),(y=this.scroll)!=null&&y.wasRoot)return m;for(let p=0;p<this.path.length;p++){const g=this.path[p],{scroll:v,options:b}=g;g!==this.root&&v&&b.layoutScroll&&(v.wasRoot&&Qe(m,f),nn(m.x,v.offset.x),nn(m.y,v.offset.y))}return m}applyTransform(f,m=!1,y){var g,v;const p=y||$t();Qe(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&&(nn(p.x,-x.scroll.offset.x),nn(p.y,-x.scroll.offset.y)),Aa(x.latestValues)&&bu(p,x.latestValues,(g=x.layout)==null?void 0:g.layoutBox)}return Aa(this.latestValues)&&bu(p,this.latestValues,(v=this.layout)==null?void 0:v.layoutBox),p}removeTransform(f){var y;const m=$t();Qe(m,f);for(let p=0;p<this.path.length;p++){const g=this.path[p];if(!Aa(g.latestValues))continue;let v;g.instance&&($c(g.latestValues)&&g.updateSnapshot(),v=$t(),Qe(v,g.measurePageBox())),zy(m,g.latestValues,(y=g.snapshot)==null?void 0:y.layoutBox,v)}return Aa(this.latestValues)&&zy(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!==ue.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:g,layoutId:v}=this.options;if(!this.layout||!(g||v))return;this.resolvedRelativeTargetAt=ue.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=$t(),this.targetWithTransforms=$t()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),S2(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Qe(this.target,this.layout.layoutBox),z0(this.target,this.targetDelta)):Qe(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)||w0(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=$t(),this.relativeTargetOrigin=$t(),ju(this.relativeTargetOrigin,m,y,this.options.layoutAnchor||void 0),Qe(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var A;const f=this.getLead(),m=!!this.resumingFrom||this!==f;let y=!0;if((this.isProjectionDirty||(A=this.parent)!=null&&A.isProjectionDirty)&&(y=!1),m&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(y=!1),this.resolvedRelativeTargetAt===ue.timestamp&&(y=!1),y)return;const{layout:p,layoutId:g}=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||g))return;Qe(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,b=this.treeScale.y;Jx(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=$t());const{target:x}=f;if(!x){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ay(this.prevProjectionDelta.x,this.projectionDelta.x),Ay(this.prevProjectionDelta.y,this.projectionDelta.y)),wl(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==b||!Ny(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ny(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=Si(),this.projectionDelta=Si(),this.projectionDeltaWithTransform=Si()}setAnimationOrigin(f,m=!1){const y=this.snapshot,p=y?y.latestValues:{},g={...this.latestValues},v=Si();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!m;const b=$t(),x=y?y.source:void 0,A=this.layout?this.layout.source:void 0,w=x!==A,j=this.getStack(),B=!j||j.members.length<=1,q=!!(w&&!B&&this.options.crossfade===!0&&!this.path.some(P2));this.animationProgress=0;let Y;this.mixTargetDelta=J=>{const W=J/1e3;Gy(v.x,f.x,W),Gy(v.y,f.y,W),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ju(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),J2(this.relativeTarget,this.relativeTargetOrigin,b,W),Y&&E2(this.relativeTarget,Y)&&(this.isProjectionDirty=!1),Y||(Y=$t()),Qe(Y,this.relativeTarget)),w&&(this.animationValues=g,C2(g,p,this.latestValues,W,q,B)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=W},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&&(ta(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=_t.update(()=>{xu.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=xi(0)),this.motionValue.jump(0,!1),this.currentAnimation=w2(this.motionValue,[0,1e3],{...f,velocity:0,isSync:!0,onUpdate:g=>{this.mixTargetDelta(g),f.onUpdate&&f.onUpdate(g)},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(V2),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:m,target:y,layout:p,latestValues:g}=f;if(!(!m||!y||!p)){if(this!==f&&this.layout&&p&&J0(this.options.animationType,this.layout.layoutBox,p.layoutBox)){y=this.target||$t();const v=pe(this.layout.layoutBox.x);y.x.min=f.target.x.min,y.x.max=y.x.min+v;const b=pe(this.layout.layoutBox.y);y.y.min=f.target.y.min,y.y.max=y.y.min+b}Qe(m,y),bu(m,g),wl(this.projectionDeltaWithTransform,this.layoutCorrected,m,g)}}registerSharedNode(f,m){this.sharedNodes.has(f)||this.sharedNodes.set(f,new _2),this.sharedNodes.get(f).add(m);const p=m.options.initialPromotionConfig;m.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(m):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){var m;const{layoutId:f}=this.options;return f?((m=this.getStack())==null?void 0:m.lead)||this:this}getPrevLead(){var m;const{layoutId:f}=this.options;return f?(m=this.getStack())==null?void 0:m.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:m,preserveFollowOpacity:y}={}){const p=this.getStack();p&&p.promote(this,y),f&&(this.projectionDelta=void 0,this.needsReset=!0),m&&this.setOptions({transition:m})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let m=!1;const{latestValues:y}=f;if((y.z||y.rotate||y.rotateX||y.rotateY||y.rotateZ||y.skewX||y.skewY)&&(m=!0),!m)return;const p={};y.z&&xc("z",f,p,this.animationValues);for(let g=0;g<Tc.length;g++)xc(`rotate${Tc[g]}`,f,p,this.animationValues),xc(`skew${Tc[g]}`,f,p,this.animationValues);f.render();for(const g in p)f.setStaticValue(g,p[g]),this.animationValues&&(this.animationValues[g]=p[g]);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=Tu(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=Tu(m==null?void 0:m.pointerEvents)||""),this.hasProjected&&!Aa(this.latestValues)&&(f.transform=y?y({},""):"none",this.hasProjected=!1);return}f.visibility="";const g=p.animationValues||p.latestValues;this.applyTransformsToTarget();let v=A2(this.projectionDeltaWithTransform,this.treeScale,g);y&&(v=y(g,v)),f.transform=v;const{x:b,y:x}=this.projectionDelta;f.transformOrigin=`${b.origin*100}% ${x.origin*100}% 0`,p.animationValues?f.opacity=p===this?g.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:f.opacity=p===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const A in tf){if(g[A]===void 0)continue;const{correct:w,applyTo:j,isCSSVariable:B}=tf[A],q=v==="none"?g[A]:w(g[A],p);if(j){const Y=j.length;for(let J=0;J<Y;J++)f[j[J]]=q}else B?this.options.visualElement.renderState.vars[A]=q:f[A]=q}this.options.layoutId&&(f.pointerEvents=p===this?Tu(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(Hy),this.root.sharedNodes.clear()}}}function B2(a){a.updateLayout()}function U2(a){var s;const i=((s=a.resumeFrom)==null?void 0:s.snapshot)||a.snapshot;if(a.isLead()&&a.layout&&i&&a.hasListeners("didUpdate")){const{layoutBox:u,measuredBox:c}=a.layout,{animationType:d}=a.options,f=i.source!==a.layout.source;if(d==="size")en(v=>{const b=f?i.measuredBox[v]:i.layoutBox[v],x=pe(b);b.min=u[v].min,b.max=b.min+x});else if(d==="x"||d==="y"){const v=d==="x"?"y":"x";ef(f?i.measuredBox[v]:i.layoutBox[v],u[v])}else J0(d,i.layoutBox,u)&&en(v=>{const b=f?i.measuredBox[v]:i.layoutBox[v],x=pe(u[v]);b.max=b.min+x,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[v].max=a.relativeTarget[v].min+x)});const m=Si();wl(m,u,i.layoutBox);const y=Si();f?wl(y,a.applyTransform(c,!0),i.measuredBox):wl(y,u,i.layoutBox);const p=!G0(m);let g=!1;if(!a.resumeFrom){const v=a.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:b,layout:x}=v;if(b&&x){const A=a.options.layoutAnchor||void 0,w=$t();ju(w,i.layoutBox,b.layoutBox,A);const j=$t();ju(j,u,x.layoutBox,A),X0(w,j)||(g=!0),v.options.layoutRoot&&(a.relativeTarget=j,a.relativeTargetOrigin=w,a.relativeParent=v)}}}a.notifyListeners("didUpdate",{layout:u,snapshot:i,delta:y,layoutDelta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:g})}else if(a.isLead()){const{onExitComplete:u}=a.options;u&&u()}a.options.transition=void 0}function L2(a){a.parent&&(a.isProjecting()||(a.isProjectionDirty=a.parent.isProjectionDirty),a.isSharedProjectionDirty||(a.isSharedProjectionDirty=!!(a.isProjectionDirty||a.parent.isProjectionDirty||a.parent.isSharedProjectionDirty)),a.isTransformDirty||(a.isTransformDirty=a.parent.isTransformDirty))}function H2(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function Y2(a){a.clearSnapshot()}function Hy(a){a.clearMeasurements()}function q2(a){a.isLayoutDirty=!0,a.updateLayout()}function Yy(a){a.isLayoutDirty=!1}function G2(a){a.isAnimationBlocked&&a.layout&&!a.isLayoutDirty&&(a.snapshot=a.layout,a.isLayoutDirty=!0)}function X2(a){const{visualElement:i}=a.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),a.resetTransform()}function qy(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function k2(a){a.resolveTargetDelta()}function Z2(a){a.calcProjection()}function Q2(a){a.resetSkewAndRotation()}function K2(a){a.removeLeadSnapshot()}function Gy(a,i,s){a.translate=Lt(i.translate,0,s),a.scale=Lt(i.scale,1,s),a.origin=i.origin,a.originPoint=i.originPoint}function Xy(a,i,s,u){a.min=Lt(i.min,s.min,u),a.max=Lt(i.max,s.max,u)}function J2(a,i,s,u){Xy(a.x,i.x,s.x,u),Xy(a.y,i.y,s.y,u)}function P2(a){return a.animationValues&&a.animationValues.opacityExit!==void 0}const F2={duration:.45,ease:[.4,0,.1,1]},ky=a=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),Zy=ky("applewebkit/")&&!ky("chrome/")?Math.round:Ge;function Qy(a){a.min=Zy(a.min),a.max=Zy(a.max)}function W2(a){Qy(a.x),Qy(a.y)}function J0(a,i,s){return a==="position"||a==="preserve-aspect"&&!v2(Vy(i),Vy(s),.2)}function $2(a){var i;return a!==a.root&&((i=a.scroll)==null?void 0:i.wasRoot)}const I2=K0({attachResizeListener:(a,i)=>Vl(a,"resize",i),measureScroll:()=>{var a,i;return{x:document.documentElement.scrollLeft||((a=document.body)==null?void 0:a.scrollLeft)||0,y:document.documentElement.scrollTop||((i=document.body)==null?void 0:i.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Ec={current:void 0},P0=K0({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!Ec.current){const a=new I2({});a.mount(window),a.setOptions({layoutScroll:!0}),Ec.current=a}return Ec.current},resetTransform:(a,i)=>{a.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:a=>window.getComputedStyle(a).position==="fixed"}),Vf=E.createContext({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});function Ky(a,i){if(typeof a=="function")return a(i);a!=null&&(a.current=i)}function tE(...a){return i=>{let s=!1;const u=a.map(c=>{const d=Ky(c,i);return!s&&typeof d=="function"&&(s=!0),d});if(s)return()=>{for(let c=0;c<u.length;c++){const d=u[c];typeof d=="function"?d():Ky(a[c],null)}}}}function eE(...a){return E.useCallback(tE(...a),a)}class nE extends E.Component{getSnapshotBeforeUpdate(i){const s=this.props.childRef.current;if(yu(s)&&i.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const u=s.offsetParent,c=yu(u)&&u.offsetWidth||0,d=yu(u)&&u.offsetHeight||0,f=getComputedStyle(s),m=this.props.sizeRef.current;m.height=parseFloat(f.height),m.width=parseFloat(f.width),m.top=s.offsetTop,m.left=s.offsetLeft,m.right=c-m.width-m.left,m.bottom=d-m.height-m.top}return null}componentDidUpdate(){}render(){return this.props.children}}function aE({children:a,isPresent:i,anchorX:s,anchorY:u,root:c,pop:d}){var b;const f=E.useId(),m=E.useRef(null),y=E.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:p}=E.useContext(Vf),g=((b=a.props)==null?void 0:b.ref)??(a==null?void 0:a.ref),v=eE(m,g);return E.useInsertionEffect(()=>{const{width:x,height:A,top:w,left:j,right:B,bottom:q}=y.current;if(i||d===!1||!m.current||!x||!A)return;const Y=s==="left"?`left: ${j}`:`right: ${B}`,J=u==="bottom"?`bottom: ${q}`:`top: ${w}`;m.current.dataset.motionPopId=f;const W=document.createElement("style");p&&(W.nonce=p);const F=c??document.head;return F.appendChild(W),W.sheet&&W.sheet.insertRule(`
50
+ [data-motion-pop-id="${f}"] {
51
+ position: absolute !important;
52
+ width: ${x}px !important;
53
+ height: ${A}px !important;
54
+ ${Y}px !important;
55
+ ${J}px !important;
56
+ }
57
+ `),()=>{var X;(X=m.current)==null||X.removeAttribute("data-motion-pop-id"),F.contains(W)&&F.removeChild(W)}},[i]),M.jsx(nE,{isPresent:i,childRef:m,sizeRef:y,pop:d,children:d===!1?a:E.cloneElement(a,{ref:v})})}const iE=({children:a,initial:i,isPresent:s,onExitComplete:u,custom:c,presenceAffectsLayout:d,mode:f,anchorX:m,anchorY:y,root:p})=>{const g=rf(lE),v=E.useId();let b=!0,x=E.useMemo(()=>(b=!1,{id:v,initial:i,isPresent:s,custom:c,onExitComplete:A=>{g.set(A,!0);for(const w of g.values())if(!w)return;u&&u()},register:A=>(g.set(A,!1),()=>g.delete(A))}),[s,g,u]);return d&&b&&(x={...x}),E.useMemo(()=>{g.forEach((A,w)=>g.set(w,!1))},[s]),E.useEffect(()=>{!s&&!g.size&&u&&u()},[s]),a=M.jsx(aE,{pop:f==="popLayout",isPresent:s,anchorX:m,anchorY:y,root:p,children:a}),M.jsx(Uu.Provider,{value:x,children:a})};function lE(){return new Map}function F0(a=!0){const i=E.useContext(Uu);if(i===null)return[!0,null];const{isPresent:s,onExitComplete:u,register:c}=i,d=E.useId();E.useEffect(()=>{if(a)return c(d)},[a]);const f=E.useCallback(()=>a&&u&&u(d),[d,u,a]);return!s&&u?[!1,f]:[!0]}const fu=a=>a.key||"";function Jy(a){const i=[];return E.Children.forEach(a,s=>{E.isValidElement(s)&&i.push(s)}),i}const _u=({children:a,custom:i,initial:s=!0,onExitComplete:u,presenceAffectsLayout:c=!0,mode:d="sync",propagate:f=!1,anchorX:m="left",anchorY:y="top",root:p})=>{const[g,v]=F0(f),b=E.useMemo(()=>Jy(a),[a]),x=f&&!g?[]:b.map(fu),A=E.useRef(!0),w=E.useRef(b),j=rf(()=>new Map),B=E.useRef(new Set),[q,Y]=E.useState(b),[J,W]=E.useState(b);Eg(()=>{A.current=!1,w.current=b;for(let Q=0;Q<J.length;Q++){const Z=fu(J[Q]);x.includes(Z)?(j.delete(Z),B.current.delete(Z)):j.get(Z)!==!0&&j.set(Z,!1)}},[J,x.length,x.join("-")]);const F=[];if(b!==q){let Q=[...b];for(let Z=0;Z<J.length;Z++){const k=J[Z],$=fu(k);x.includes($)||(Q.splice(Z,0,k),F.push(k))}return d==="wait"&&F.length&&(Q=F),W(Jy(Q)),Y(b),null}const{forceRender:X}=E.useContext(uf);return M.jsx(M.Fragment,{children:J.map(Q=>{const Z=fu(Q),k=f&&!g?!1:b===J||x.includes(Z),$=()=>{if(B.current.has(Z))return;if(j.has(Z))B.current.add(Z),j.set(Z,!0);else return;let K=!0;j.forEach(ot=>{ot||(K=!1)}),K&&(X==null||X(),W(w.current),f&&(v==null||v()),u&&u())};return M.jsx(iE,{isPresent:k,initial:!A.current||s?void 0:!1,custom:i,presenceAffectsLayout:c,mode:d,root:p,onExitComplete:k?void 0:$,anchorX:m,anchorY:y,children:Q},Z)})})},W0=E.createContext({strict:!1}),Py={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 Fy=!1;function sE(){if(Fy)return;const a={};for(const i in Py)a[i]={isEnabled:s=>Py[i].some(u=>!!s[u])};C0(a),Fy=!0}function $0(){return sE(),kx()}function uE(a){const i=$0();for(const s in a)i[s]={...i[s],...a[s]};C0(i)}const rE=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(a){return a.startsWith("while")||a.startsWith("drag")&&a!=="draggable"||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||rE.has(a)}let I0=a=>!Vu(a);function oE(a){typeof a=="function"&&(I0=i=>i.startsWith("on")?!Vu(i):a(i))}try{oE(require("@emotion/is-prop-valid").default)}catch{}function cE(a,i,s){const u={};for(const c in a)c==="values"&&typeof a.values=="object"||re(a[c])||(I0(c)||s===!0&&Vu(c)||!i&&!Vu(c)||a.draggable&&c.startsWith("onDrag"))&&(u[c]=a[c]);return u}const qu=E.createContext({});function fE(a,i){if(Yu(a)){const{initial:s,animate:u}=a;return{initial:s===!1||_l(s)?s:void 0,animate:_l(u)?u:void 0}}return a.inherit!==!1?i:{}}function dE(a){const{initial:i,animate:s}=fE(a,E.useContext(qu));return E.useMemo(()=>({initial:i,animate:s}),[Wy(i),Wy(s)])}function Wy(a){return Array.isArray(a)?a.join(" "):a}const Nf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function tv(a,i,s){for(const u in i)!re(i[u])&&!_0(u,s)&&(a[u]=i[u])}function hE({transformTemplate:a},i){return E.useMemo(()=>{const s=Nf();return jf(s,i,a),Object.assign({},s.vars,s.style)},[i])}function mE(a,i){const s=a.style||{},u={};return tv(u,s,a),Object.assign(u,hE(a,i)),u}function pE(a,i){const s={},u=mE(a,i);return a.drag&&a.dragListener!==!1&&(s.draggable=!1,u.userSelect=u.WebkitUserSelect=u.WebkitTouchCallout="none",u.touchAction=a.drag===!0?"none":`pan-${a.drag==="x"?"y":"x"}`),a.tabIndex===void 0&&(a.onTap||a.onTapStart||a.whileTap)&&(s.tabIndex=0),s.style=u,s}const ev=()=>({...Nf(),attrs:{}});function yE(a,i,s,u){const c=E.useMemo(()=>{const d=ev();return V0(d,i,B0(u),a.transformTemplate,a.style),{...d.attrs,style:{...d.style}}},[i]);if(a.style){const d={};tv(d,a.style,a),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 Bf(a){return typeof a!="string"||a.includes("-")?!1:!!(gE.indexOf(a)>-1||/[A-Z]/u.test(a))}function vE(a,i,s,{latestValues:u},c,d=!1,f){const y=(f??Bf(a)?yE:pE)(i,u,c,a),p=cE(i,typeof a=="string",d),g=a!==E.Fragment?{...p,...y,ref:s}:{},{children:v}=i,b=E.useMemo(()=>re(v)?v.get():v,[v]);return E.createElement(a,{...g,children:b})}function SE({scrapeMotionValuesFromProps:a,createRenderState:i},s,u,c){return{latestValues:bE(s,u,c,a),renderState:i()}}function bE(a,i,s,u){const c={},d=u(a,{});for(const b in d)c[b]=Tu(d[b]);let{initial:f,animate:m}=a;const y=Yu(a),p=A0(a);i&&p&&!y&&a.inherit!==!1&&(f===void 0&&(f=i.initial),m===void 0&&(m=i.animate));let g=s?s.initial===!1:!1;g=g||f===!1;const v=g?m:f;if(v&&typeof v!="boolean"&&!Hu(v)){const b=Array.isArray(v)?v:[v];for(let x=0;x<b.length;x++){const A=Ef(a,b[x]);if(A){const{transitionEnd:w,transition:j,...B}=A;for(const q in B){let Y=B[q];if(Array.isArray(Y)){const J=g?Y.length-1:0;Y=Y[J]}Y!==null&&(c[q]=Y)}for(const q in w)c[q]=w[q]}}}return c}const nv=a=>(i,s)=>{const u=E.useContext(qu),c=E.useContext(Uu),d=()=>SE(a,i,u,c);return s?d():rf(d)},TE=nv({scrapeMotionValuesFromProps:_f,createRenderState:Nf}),xE=nv({scrapeMotionValuesFromProps:U0,createRenderState:ev}),EE=Symbol.for("motionComponentSymbol");function AE(a,i,s){const u=E.useRef(s);E.useInsertionEffect(()=>{u.current=s});const c=E.useRef(null);return E.useCallback(d=>{var m;d&&((m=a.onMount)==null||m.call(a,d));const f=u.current;if(typeof f=="function")if(d){const y=f(d);typeof y=="function"&&(c.current=y)}else c.current?(c.current(),c.current=null):f(d);else f&&(f.current=d);i&&(d?i.mount(d):i.unmount())},[i])}const av=E.createContext({});function yi(a){return a&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"current")}function ME(a,i,s,u,c,d){var Y,J;const{visualElement:f}=E.useContext(qu),m=E.useContext(W0),y=E.useContext(Uu),p=E.useContext(Vf),g=p.reducedMotion,v=p.skipAnimations,b=E.useRef(null),x=E.useRef(!1);u=u||m.renderer,!b.current&&u&&(b.current=u(a,{visualState:i,parent:f,props:s,presenceContext:y,blockInitialAnimation:y?y.initial===!1:!1,reducedMotionConfig:g,skipAnimations:v,isSVG:d}),x.current&&b.current&&(b.current.manuallyAnimateOnMount=!0));const A=b.current,w=E.useContext(av);A&&!A.projection&&c&&(A.type==="html"||A.type==="svg")&&CE(b.current,s,c,w);const j=E.useRef(!1);E.useInsertionEffect(()=>{A&&j.current&&A.update(s,y)});const B=s[f0],q=E.useRef(!!B&&typeof window<"u"&&!((Y=window.MotionHandoffIsComplete)!=null&&Y.call(window,B))&&((J=window.MotionHasOptimisedAnimation)==null?void 0:J.call(window,B)));return Eg(()=>{x.current=!0,A&&(j.current=!0,window.MotionIsMounted=!0,A.updateFeatures(),A.scheduleRenderMicrotask(),q.current&&A.animationState&&A.animationState.animateChanges())}),E.useEffect(()=>{A&&(!q.current&&A.animationState&&A.animationState.animateChanges(),q.current&&(queueMicrotask(()=>{var W;(W=window.MotionHandoffMarkAsComplete)==null||W.call(window,B)}),q.current=!1),A.enteringChildren=void 0)}),A}function CE(a,i,s,u){const{layoutId:c,layout:d,drag:f,dragConstraints:m,layoutScroll:y,layoutRoot:p,layoutAnchor:g,layoutCrossfade:v}=i;a.projection=new s(a.latestValues,i["data-framer-portal-id"]?void 0:iv(a.parent)),a.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!f||m&&yi(m),visualElement:a,animationType:typeof d=="string"?d:"both",initialPromotionConfig:u,crossfade:v,layoutScroll:y,layoutRoot:p,layoutAnchor:g})}function iv(a){if(a)return a.options.allowProjection!==!1?a.projection:iv(a.parent)}function Ac(a,{forwardMotionProps:i=!1,type:s}={},u,c){u&&uE(u);const d=s?s==="svg":Bf(a),f=d?xE:TE;function m(p,g){let v;const b={...E.useContext(Vf),...p,layoutId:DE(p)},{isStatic:x}=b,A=dE(p),w=f(p,x);if(!x&&typeof window<"u"){RE();const j=wE(b);v=j.MeasureLayout,A.visualElement=ME(a,w,b,c,j.ProjectionNode,d)}return M.jsxs(qu.Provider,{value:A,children:[v&&A.visualElement?M.jsx(v,{visualElement:A.visualElement,...b}):null,vE(a,p,AE(w,A.visualElement,g),w,x,i,d)]})}m.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const y=E.forwardRef(m);return y[EE]=a,y}function DE({layoutId:a}){const i=E.useContext(uf).id;return i&&a!==void 0?i+"-"+a:a}function RE(a,i){E.useContext(W0).strict}function wE(a){const i=$0(),{drag:s,layout:u}=i;if(!s&&!u)return{};const c={...s,...u};return{MeasureLayout:s!=null&&s.isEnabled(a)||u!=null&&u.isEnabled(a)?c.MeasureLayout:void 0,ProjectionNode:c.ProjectionNode}}function zE(a,i){if(typeof Proxy>"u")return Ac;const s=new Map,u=(d,f)=>Ac(d,f,a,i),c=(d,f)=>u(d,f);return new Proxy(c,{get:(d,f)=>f==="create"?u:(s.has(f)||s.set(f,Ac(f,void 0,a,i)),s.get(f))})}const OE=(a,i)=>i.isSVG??Bf(a)?new u2(i):new e2(i,{allowProjection:a!==E.Fragment});class jE extends ea{constructor(i){super(i),i.animationState||(i.animationState=d2(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();Hu(i)&&(this.unmountControls=i.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:i}=this.node.getProps(),{animate:s}=this.node.prevProps||{};i!==s&&this.updateAnimationControlsSubscription()}unmount(){var i;this.node.animationState.reset(),(i=this.unmountControls)==null||i.call(this)}}let _E=0;class VE extends ea{constructor(){super(...arguments),this.id=_E++,this.isExitComplete=!1}update(){var d;if(!this.node.presenceContext)return;const{isPresent:i,onExitComplete:s}=this.node.presenceContext,{isPresent:u}=this.node.prevPresenceContext||{};if(!this.node.animationState||i===u)return;if(i&&u===!1){if(this.isExitComplete){const{initial:f,custom:m}=this.node.getProps();if(typeof f=="string"){const y=Ra(this.node,f,m);if(y){const{transition:p,transitionEnd:g,...v}=y;for(const b in v)(d=this.node.getValue(b))==null||d.jump(v[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",!i);s&&!i&&c.then(()=>{this.isExitComplete=!0,s(this.id)})}mount(){const{register:i,onExitComplete:s}=this.node.presenceContext||{};s&&s(this.id),i&&(this.unmount=i(this.id))}unmount(){}}const NE={animation:{Feature:jE},exit:{Feature:VE}};function Ll(a){return{point:{x:a.pageX,y:a.pageY}}}const BE=a=>i=>Df(i)&&a(i,Ll(i));function zl(a,i,s,u){return Vl(a,i,BE(s),u)}const lv=({current:a})=>a?a.ownerDocument.defaultView:null,$y=(a,i)=>Math.abs(a-i);function UE(a,i){const s=$y(a.x,i.x),u=$y(a.y,i.y);return Math.sqrt(s**2+u**2)}const Iy=new Set(["auto","scroll"]);class sv{constructor(i,s,{transformPagePoint:u,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=du(this.lastRawMoveEventInfo,this.transformPagePoint));const x=Mc(this.lastMoveEventInfo,this.history),A=this.startEvent!==null,w=UE(x.offset,{x:0,y:0})>=this.distanceThreshold;if(!A&&!w)return;const{point:j}=x,{timestamp:B}=ue;this.history.push({...j,timestamp:B});const{onStart:q,onMove:Y}=this.handlers;A||(q&&q(this.lastMoveEvent,x),this.startEvent=this.lastMoveEvent),Y&&Y(this.lastMoveEvent,x)},this.handlePointerMove=(x,A)=>{this.lastMoveEvent=x,this.lastRawMoveEventInfo=A,this.lastMoveEventInfo=du(A,this.transformPagePoint),_t.update(this.updatePoint,!0)},this.handlePointerUp=(x,A)=>{this.end();const{onEnd:w,onSessionEnd:j,resumeAnimation:B}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&B&&B(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const q=Mc(x.type==="pointercancel"?this.lastMoveEventInfo:du(A,this.transformPagePoint),this.history);this.startEvent&&w&&w(x,q),j&&j(x,q)},!Df(i))return;this.dragSnapToOrigin=d,this.handlers=s,this.transformPagePoint=u,this.distanceThreshold=f,this.contextWindow=c||window;const y=Ll(i),p=du(y,this.transformPagePoint),{point:g}=p,{timestamp:v}=ue;this.history=[{...g,timestamp:v}];const{onSessionStart:b}=s;b&&b(i,Mc(p,this.history)),this.removeListeners=Nl(zl(this.contextWindow,"pointermove",this.handlePointerMove),zl(this.contextWindow,"pointerup",this.handlePointerUp),zl(this.contextWindow,"pointercancel",this.handlePointerUp)),m&&this.startScrollTracking(m)}startScrollTracking(i){let s=i.parentElement;for(;s;){const u=getComputedStyle(s);(Iy.has(u.overflowX)||Iy.has(u.overflowY))&&this.scrollPositions.set(s,{x:s.scrollLeft,y:s.scrollTop}),s=s.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(i){const s=this.scrollPositions.get(i);if(!s)return;const u=i===window,c=u?{x:window.scrollX,y:window.scrollY}:{x:i.scrollLeft,y:i.scrollTop},d={x:c.x-s.x,y:c.y-s.y};d.x===0&&d.y===0||(u?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=d.x,this.lastMoveEventInfo.point.y+=d.y):this.history.length>0&&(this.history[0].x-=d.x,this.history[0].y-=d.y),this.scrollPositions.set(i,c),_t.update(this.updatePoint,!0))}updateHandlers(i){this.handlers=i}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ta(this.updatePoint)}}function du(a,i){return i?{point:i(a.point)}:a}function tg(a,i){return{x:a.x-i.x,y:a.y-i.y}}function Mc({point:a},i){return{point:a,delta:tg(a,uv(i)),offset:tg(a,LE(i)),velocity:HE(i,.1)}}function LE(a){return a[0]}function uv(a){return a[a.length-1]}function HE(a,i){if(a.length<2)return{x:0,y:0};let s=a.length-1,u=null;const c=uv(a);for(;s>=0&&(u=a[s],!(c.timestamp-u.timestamp>ze(i)));)s--;if(!u)return{x:0,y:0};u===a[0]&&a.length>2&&c.timestamp-u.timestamp>ze(i)*2&&(u=a[1]);const d=qe(c.timestamp-u.timestamp);if(d===0)return{x:0,y:0};const f={x:(c.x-u.x)/d,y:(c.y-u.y)/d};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}function YE(a,{min:i,max:s},u){return i!==void 0&&a<i?a=u?Lt(i,a,u.min):Math.max(a,i):s!==void 0&&a>s&&(a=u?Lt(s,a,u.max):Math.min(a,s)),a}function eg(a,i,s){return{min:i!==void 0?a.min+i:void 0,max:s!==void 0?a.max+s-(a.max-a.min):void 0}}function qE(a,{top:i,left:s,bottom:u,right:c}){return{x:eg(a.x,s,c),y:eg(a.y,i,u)}}function ng(a,i){let s=i.min-a.min,u=i.max-a.max;return i.max-i.min<a.max-a.min&&([s,u]=[u,s]),{min:s,max:u}}function GE(a,i){return{x:ng(a.x,i.x),y:ng(a.y,i.y)}}function XE(a,i){let s=.5;const u=pe(a),c=pe(i);return c>u?s=Ol(i.min,i.max-u,a.min):u>c&&(s=Ol(a.min,a.max-c,i.min)),sn(0,1,s)}function kE(a,i){const s={};return i.min!==void 0&&(s.min=i.min-a.min),i.max!==void 0&&(s.max=i.max-a.min),s}const nf=.35;function ZE(a=nf){return a===!1?a=0:a===!0&&(a=nf),{x:ag(a,"left","right"),y:ag(a,"top","bottom")}}function ag(a,i,s){return{min:ig(a,i),max:ig(a,s)}}function ig(a,i){return typeof a=="number"?a:a[i]||0}const QE=new WeakMap;class KE{constructor(i){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=$t(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=i}start(i,{snapToCursor:s=!1,distanceThreshold:u}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const d=v=>{s&&this.snapToCursor(Ll(v).point),this.stopAnimation()},f=(v,b)=>{const{drag:x,dragPropagation:A,onDragStart:w}=this.getProps();if(x&&!A&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Tx(x),!this.openDragLock))return;this.latestPointerEvent=v,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),en(B=>{let q=this.getAxisMotionValue(B).get()||0;if(an.test(q)){const{projection:Y}=this.visualElement;if(Y&&Y.layout){const J=Y.layout.layoutBox[B];J&&(q=pe(J)*(parseFloat(q)/100))}}this.originPoint[B]=q}),w&&_t.update(()=>w(v,b),!1,!0),Jc(this.visualElement,"transform");const{animationState:j}=this.visualElement;j&&j.setActive("whileDrag",!0)},m=(v,b)=>{this.latestPointerEvent=v,this.latestPanInfo=b;const{dragPropagation:x,dragDirectionLock:A,onDirectionLock:w,onDrag:j}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:B}=b;if(A&&this.currentDirection===null){this.currentDirection=PE(B),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",b.point,B),this.updateAxis("y",b.point,B),this.visualElement.render(),j&&_t.update(()=>j(v,b),!1,!0)},y=(v,b)=>{this.latestPointerEvent=v,this.latestPanInfo=b,this.stop(v,b),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>{const{dragSnapToOrigin:v}=this.getProps();(v||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:g}=this.getProps();this.panSession=new sv(i,{onSessionStart:d,onStart:f,onMove:m,onSessionEnd:y,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,distanceThreshold:u,contextWindow:lv(this.visualElement),element:this.visualElement.current})}stop(i,s){const u=i||this.latestPointerEvent,c=s||this.latestPanInfo,d=this.isDragging;if(this.cancel(),!d||!c||!u)return;const{velocity:f}=c;this.startAnimation(f);const{onDragEnd:m}=this.getProps();m&&_t.postRender(()=>m(u,c))}cancel(){this.isDragging=!1;const{projection:i,animationState:s}=this.visualElement;i&&(i.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:u}=this.getProps();!u&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(i,s,u){const{drag:c}=this.getProps();if(!u||!hu(i,c,this.currentDirection))return;const d=this.getAxisMotionValue(i);let f=this.originPoint[i]+u[i];this.constraints&&this.constraints[i]&&(f=YE(f,this.constraints[i],this.elastic[i])),d.set(f)}resolveConstraints(){var d;const{dragConstraints:i,dragElastic:s}=this.getProps(),u=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(d=this.visualElement.projection)==null?void 0:d.layout,c=this.constraints;i&&yi(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):i&&u?this.constraints=qE(u.layoutBox,i):this.constraints=!1,this.elastic=ZE(s),c!==this.constraints&&!yi(i)&&u&&this.constraints&&!this.hasMutatedConstraints&&en(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=kE(u.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:s}=this.getProps();if(!i||!yi(i))return!1;const u=i.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const d=Px(u,c.root,this.visualElement.getTransformPagePoint());let f=GE(c.layout.layoutBox,d);if(s){const m=s(Qx(f));this.hasMutatedConstraints=!!m,m&&(f=R0(m))}return f}startAnimation(i){const{drag:s,dragMomentum:u,dragElastic:c,dragTransition:d,dragSnapToOrigin:f,onDragTransitionEnd:m}=this.getProps(),y=this.constraints||{},p=en(g=>{if(!hu(g,s,this.currentDirection))return;let v=y&&y[g]||{};(f===!0||f===g)&&(v={min:0,max:0});const b=c?200:1e6,x=c?40:1e7,A={type:"inertia",velocity:u?i[g]:0,bounceStiffness:b,bounceDamping:x,timeConstant:750,restDelta:1,restSpeed:10,...d,...v};return this.startAxisValueAnimation(g,A)});return Promise.all(p).then(m)}startAxisValueAnimation(i,s){const u=this.getAxisMotionValue(i);return Jc(this.visualElement,i),u.start(xf(i,u,0,s,this.visualElement,!1))}stopAnimation(){en(i=>this.getAxisMotionValue(i).stop())}getAxisMotionValue(i){const s=`_drag${i.toUpperCase()}`,u=this.visualElement.getProps(),c=u[s];return c||this.visualElement.getValue(i,(u.initial?u.initial[i]:void 0)||0)}snapToCursor(i){en(s=>{const{drag:u}=this.getProps();if(!hu(s,u,this.currentDirection))return;const{projection:c}=this.visualElement,d=this.getAxisMotionValue(s);if(c&&c.layout){const{min:f,max:m}=c.layout.layoutBox[s],y=d.get()||0;d.set(i[s]-Lt(f,m,.5)+y)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:s}=this.getProps(),{projection:u}=this.visualElement;if(!yi(s)||!u||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};en(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",u.root&&u.root.updateScroll(),u.updateLayout(),this.constraints=!1,this.resolveConstraints(),en(f=>{if(!hu(f,i,null))return;const m=this.getAxisMotionValue(f),{min:y,max:p}=this.constraints[f];m.set(Lt(y,p,c[f]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;QE.set(this.visualElement,this);const i=this.visualElement.current,s=zl(i,"pointerdown",p=>{const{drag:g,dragListener:v=!0}=this.getProps(),b=p.target,x=b!==i&&Dx(b);g&&v&&!x&&this.start(p)});let u;const c=()=>{const{dragConstraints:p}=this.getProps();yi(p)&&p.current&&(this.constraints=this.resolveRefConstraints(),u||(u=JE(i,p.current,()=>this.scalePositionWithinConstraints())))},{projection:d}=this.visualElement,f=d.addEventListener("measure",c);d&&!d.layout&&(d.root&&d.root.updateScroll(),d.updateLayout()),_t.read(c);const m=Vl(window,"resize",()=>this.scalePositionWithinConstraints()),y=d.addEventListener("didUpdate",({delta:p,hasLayoutChanged:g})=>{this.isDragging&&g&&(en(v=>{const b=this.getAxisMotionValue(v);b&&(this.originPoint[v]+=p[v].translate,b.set(b.get()+p[v].translate))}),this.visualElement.render())});return()=>{m(),s(),f(),y&&y(),u&&u()}}getProps(){const i=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:u=!1,dragPropagation:c=!1,dragConstraints:d=!1,dragElastic:f=nf,dragMomentum:m=!0}=i;return{...i,drag:s,dragDirectionLock:u,dragPropagation:c,dragConstraints:d,dragElastic:f,dragMomentum:m}}}function lg(a){let i=!0;return()=>{if(i){i=!1;return}a()}}function JE(a,i,s){const u=dy(a,lg(s)),c=dy(i,lg(s));return()=>{u(),c()}}function hu(a,i,s){return(i===!0||i===a)&&(s===null||s===a)}function PE(a,i=10){let s=null;return Math.abs(a.y)>i?s="y":Math.abs(a.x)>i&&(s="x"),s}class FE extends ea{constructor(i){super(i),this.removeGroupControls=Ge,this.removeListeners=Ge,this.controls=new KE(i)}mount(){const{dragControls:i}=this.node.getProps();i&&(this.removeGroupControls=i.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ge}update(){const{dragControls:i}=this.node.getProps(),{dragControls:s}=this.node.prevProps||{};i!==s&&(this.removeGroupControls(),i&&(this.removeGroupControls=i.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Cc=a=>(i,s)=>{a&&_t.update(()=>a(i,s),!1,!0)};class WE extends ea{constructor(){super(...arguments),this.removePointerDownListener=Ge}onPointerDown(i){this.session=new sv(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:lv(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:s,onPan:u,onPanEnd:c}=this.node.getProps();return{onSessionStart:Cc(i),onStart:Cc(s),onMove:Cc(u),onEnd:(d,f)=>{delete this.session,c&&_t.postRender(()=>c(d,f))}}}mount(){this.removePointerDownListener=zl(this.node.current,"pointerdown",i=>this.onPointerDown(i))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Dc=!1;class $E extends E.Component{componentDidMount(){const{visualElement:i,layoutGroup:s,switchLayoutGroup:u,layoutId:c}=this.props,{projection:d}=i;d&&(s.group&&s.group.add(d),u&&u.register&&c&&u.register(d),Dc&&d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),xu.hasEverUpdated=!0}getSnapshotBeforeUpdate(i){const{layoutDependency:s,visualElement:u,drag:c,isPresent:d}=this.props,{projection:f}=u;return f&&(f.isPresent=d,i.layoutDependency!==s&&f.setOptions({...f.options,layoutDependency:s}),Dc=!0,c||i.layoutDependency!==s||s===void 0||i.isPresent!==d?f.willUpdate():this.safeToRemove(),i.isPresent!==d&&(d?f.promote():f.relegate()||_t.postRender(()=>{const m=f.getStack();(!m||!m.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:i,layoutAnchor:s}=this.props,{projection:u}=i;u&&(u.options.layoutAnchor=s,u.root.didUpdate(),Cf.postRender(()=>{!u.currentAnimation&&u.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:s,switchLayoutGroup:u}=this.props,{projection:c}=i;Dc=!0,c&&(c.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(c),u&&u.deregister&&u.deregister(c))}safeToRemove(){const{safeToRemove:i}=this.props;i&&i()}render(){return null}}function rv(a){const[i,s]=F0(),u=E.useContext(uf);return M.jsx($E,{...a,layoutGroup:u,switchLayoutGroup:E.useContext(av),isPresent:i,safeToRemove:s})}const IE={pan:{Feature:WE},drag:{Feature:FE,ProjectionNode:P0,MeasureLayout:rv}};function sg(a,i,s){const{props:u}=a;a.animationState&&u.whileHover&&a.animationState.setActive("whileHover",s==="Start");const c="onHover"+s,d=u[c];d&&_t.postRender(()=>d(i,Ll(i)))}class tA extends ea{mount(){const{current:i}=this.node;i&&(this.unmount=Ex(i,(s,u)=>(sg(this.node,u,"Start"),c=>sg(this.node,c,"End"))))}unmount(){}}class eA extends ea{constructor(){super(...arguments),this.isActive=!1}onFocus(){let i=!1;try{i=this.node.current.matches(":focus-visible")}catch{i=!0}!i||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Nl(Vl(this.node.current,"focus",()=>this.onFocus()),Vl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ug(a,i,s){const{props:u}=a;if(a.current instanceof HTMLButtonElement&&a.current.disabled)return;a.animationState&&u.whileTap&&a.animationState.setActive("whileTap",s==="Start");const c="onTap"+(s==="End"?"":s),d=u[c];d&&_t.postRender(()=>d(i,Ll(i)))}class nA extends ea{mount(){const{current:i}=this.node;if(!i)return;const{globalTapTarget:s,propagate:u}=this.node.props;this.unmount=wx(i,(c,d)=>(ug(this.node,d,"Start"),(f,{success:m})=>ug(this.node,f,m?"End":"Cancel")),{useGlobalTarget:s,stopPropagation:(u==null?void 0:u.tap)===!1})}unmount(){}}const af=new WeakMap,Rc=new WeakMap,aA=a=>{const i=af.get(a.target);i&&i(a)},iA=a=>{a.forEach(aA)};function lA({root:a,...i}){const s=a||document;Rc.has(s)||Rc.set(s,{});const u=Rc.get(s),c=JSON.stringify(i);return u[c]||(u[c]=new IntersectionObserver(iA,{root:a,...i})),u[c]}function sA(a,i,s){const u=lA(i);return af.set(a,s),u.observe(a),()=>{af.delete(a),u.unobserve(a)}}const uA={some:0,all:1};class rA extends ea{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var y;(y=this.stopObserver)==null||y.call(this);const{viewport:i={}}=this.node.getProps(),{root:s,margin:u,amount:c="some",once:d}=i,f={root:s?s.current:void 0,rootMargin:u,threshold:typeof c=="number"?c:uA[c]},m=p=>{const{isIntersecting:g}=p;if(this.isInView===g||(this.isInView=g,d&&!g&&this.hasEnteredView))return;g&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",g);const{onViewportEnter:v,onViewportLeave:b}=this.node.getProps(),x=g?v:b;x&&x(p)};this.stopObserver=sA(this.node.current,f,m)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:i,prevProps:s}=this.node;["amount","margin","root"].some(oA(i,s))&&this.startObserver()}unmount(){var i;(i=this.stopObserver)==null||i.call(this),this.hasEnteredView=!1,this.isInView=!1}}function oA({viewport:a={}},{viewport:i={}}={}){return s=>a[s]!==i[s]}const cA={inView:{Feature:rA},tap:{Feature:nA},focus:{Feature:eA},hover:{Feature:tA}},fA={layout:{ProjectionNode:P0,MeasureLayout:rv}},dA={...NE,...cA,...IE,...fA},ln=zE(dA,OE);function hA(){!Of.current&&M0();const[a]=E.useState(wu.current);return a}const rg=.24,mA=.42,pA=1400,yA=.15;function gA(a){return{type:"spring",visualDuration:Math.min(mA,Math.max(rg,rg+a/pA)),bounce:yA}}const vA=80,SA=12,bA=400,TA=100;function xA({target:a,containerRef:i,showRipple:s=!0,isDragging:u=!1}){const[c,d]=E.useState(null),f=E.useRef(null),m=E.useCallback(F=>{if(F===null){f.current=null,d(null);return}const X=f.current,Q=X?Math.hypot(F.x-X.x,F.y-X.y):0;f.current=F,d({pos:F,distancePx:Q})},[]),y=(c==null?void 0:c.pos)??null,p=Nu(),[g,v]=E.useState(!1),b=E.useRef(void 0),x=E.useRef(void 0),A=E.useRef(void 0),[w,j]=E.useState(null),B=E.useRef(void 0);E.useEffect(()=>{p&&a!==B.current&&(B.current=a,j(a?p.currentTimeMs:null))},[a]);const q=s&&!u&&p!=null&&w!=null&&p.currentTimeMs-w>=ee,Y=p?q:g&&!u,J=E.useRef(!1);J.current=p!=null,E.useEffect(()=>{if(!J.current)return;if(!a){m(null);return}const F=i.current;if(!F)return;const X=F.querySelector(bi(a));X&&m(fc(F,X))},[a,i]),E.useEffect(()=>{if(J.current)return;if(clearTimeout(b.current),clearTimeout(x.current),clearTimeout(A.current),v(!1),!a){m(null);return}let F=!1,X=0;function Q(){if(F)return;const k=i.current;if(!k)return;const $=k.querySelector(bi(a));if(!$){X<SA&&(X++,x.current=setTimeout(Q,vA));return}const K=bg($);A.current=setTimeout(()=>{requestAnimationFrame(()=>{F||(m(fc(k,$)),s&&(b.current=setTimeout(()=>{F||v(!0)},ee)))})},K?bA:0)}const Z=requestAnimationFrame(Q);return()=>{F=!0,cancelAnimationFrame(Z),clearTimeout(x.current),clearTimeout(A.current),clearTimeout(b.current)}},[a,i,s]),E.useEffect(()=>()=>{clearTimeout(b.current),clearTimeout(x.current),clearTimeout(A.current)},[]);const W=E.useCallback(()=>{const F=i.current;if(!F||!a)return;const X=F.querySelector(bi(a));X&&m(fc(F,X))},[a,i]);return E.useEffect(()=>{if(J.current)return;const F=i.current;if(!F||!a)return;let X;const Q=new ResizeObserver(()=>{clearTimeout(X),X=setTimeout(W,TA)});return Q.observe(F),()=>{clearTimeout(X),Q.disconnect()}},[a,i,W]),M.jsx(_u,{children:y&&M.jsxs(ln.div,{className:"pointer-events-none absolute z-50",style:{top:0,left:0},initial:{x:y.x,y:y.y,opacity:0},animate:{x:y.x,y:y.y,opacity:1},exit:{opacity:0},transition:gA((c==null?void 0:c.distancePx)??0),children:[M.jsx(ln.span,{className:"block",animate:Y?{scale:[1,.85,1]}:{scale:1},transition:{duration:.25,ease:"easeOut"},style:{transformOrigin:"top left"},children:u?M.jsx(AA,{}):M.jsx(EA,{})}),M.jsx(_u,{children:Y&&M.jsx(ln.span,{className:"absolute left-0 top-0 h-4 w-4 -translate-x-1/2 -translate-y-1/2 rounded-full bg-primary/25",initial:{scale:.5,opacity:.8},animate:{scale:2.8,opacity:0},exit:{opacity:0},transition:{duration:.45,ease:"easeOut"}},"ripple")})]})})}function EA(){return M.jsx("svg",{width:"18",height:"24",viewBox:"0 0 12 16",fill:"none",className:"-translate-x-px -translate-y-px drop-shadow-sm","aria-hidden":!0,children:M.jsx("path",{d:"M1 1v11.5l3-3 2.5 5.5 2-1-2.5-5.5H10L1 1Z",fill:"currentColor",stroke:"var(--scenar-cursor-stroke, white)",strokeWidth:"1",strokeLinejoin:"round"})})}function AA(){return M.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 16 16",fill:"none",className:"-translate-x-2 -translate-y-2 drop-shadow-sm","aria-hidden":!0,children:[M.jsx("path",{d:"M4.5 8V5.5a1 1 0 0 1 2 0V4a1 1 0 0 1 2 0v.5a1 1 0 0 1 2 0V5a1 1 0 0 1 2 0v4.5a3.5 3.5 0 0 1-3.5 3.5h-1A3.5 3.5 0 0 1 4.5 9.5V8Z",fill:"currentColor",stroke:"var(--scenar-cursor-stroke, white)",strokeWidth:"1",strokeLinejoin:"round"}),M.jsx("path",{d:"M4.5 8H3a1.5 1.5 0 0 1 0-3h1.5",stroke:"var(--scenar-cursor-stroke, white)",strokeWidth:"0.5",fill:"currentColor"})]})}function og(a){return a.scale===mu.scale&&a.x===mu.x&&a.y===mu.y}function MA(a,i){return a.scale===i.scale&&a.x===i.x&&a.y===i.y}function CA({children:a,transform:i,contentRef:s}){const{isVideoExport:u}=Bu(),c=Nu(),d=(c==null?void 0:c.currentTimeMs)??0,f=E.useRef({from:i,to:i,atTimeMs:0});if(u&&!MA(i,f.current.to)){const g=(d-f.current.atTimeMs)/dc;f.current={from:Xp(f.current.from,f.current.to,g),to:i,atTimeMs:d}}const[m,y]=E.useState(!1);if(E.useEffect(()=>{u||y(!0)},[u,i.scale,i.x,i.y]),u){const g=Xp(f.current.from,f.current.to,(d-f.current.atTimeMs)/dc);return M.jsx("div",{className:og(g)?void 0:"overflow-hidden",children:M.jsx("div",{ref:s,style:{position:"relative",transformOrigin:"0 0",transform:`translate(${g.x}px, ${g.y}px) scale(${g.scale})`},children:a})})}const p=!og(i)||m;return M.jsx("div",{className:p?"overflow-hidden":void 0,children:M.jsx(ln.div,{ref:s,animate:{scale:i.scale,x:i.x,y:i.y},transition:{duration:dc/1e3,ease:pg},onAnimationComplete:()=>y(!1),style:{position:"relative",transformOrigin:"0 0"},children:a})})}const DA=896,RA=0,cg="relative mx-auto overflow-hidden";function wA({containerRef:a,children:i,className:s,canonicalWidth:u=DA,minZoom:c=RA,shellHeight:d,wrapperClassName:f=cg}){const{isVideoExport:m}=Bu(),y=E.useRef(null),p=E.useRef(null),[g,v]=E.useState(1),b=a??p;E.useLayoutEffect(()=>{if(m)return;const j=y.current;if(!j)return;const B=Y=>{v(Math.max(Math.min(Y/u,1),c))};B(j.getBoundingClientRect().width);const q=new ResizeObserver(Y=>{B(Y[0].contentRect.width)});return q.observe(j),()=>q.disconnect()},[m,u,c]);const x=s?`${f} ${s}`:f;if(m)return M.jsx("div",{ref:b,className:x,children:i});const A={width:u,zoom:g};d!=null&&(A["--scenar-shell-height"]=`${d}px`);const w=f===cg?{maxWidth:u}:void 0;return M.jsx("div",{ref:y,className:x,style:w,children:M.jsx("div",{ref:b,className:"relative",style:A,children:i})})}function zA({steps:a,narrationManifest:i,muted:s,playbackRate:u,isVideoExport:c,prefersReducedMotion:d}){const f=Nu(),m=a.length-1,[y,p]=E.useState(()=>d?m:0),[g,v]=E.useState(c?"playing":"idle"),b=g==="playing",x=f?_c(f.currentTimeMs,f.stepStartTimesMs,m):y,A=E.useRef(x);A.current=x;const w=E.useRef(null),j=E.useRef(0),[B,q]=E.useState(0),Y=E.useRef(Math.max(u,.25));Y.current=Math.max(u,.25),E.useEffect(()=>{var V,P;if(f||!b||d)return;const $=Y.current;if(x>=m){const tt=!s&&i?((V=i.steps[x])==null?void 0:V.durationMs)??0:0;if(tt>0){w.current=()=>v("paused");const rt=setTimeout(()=>{w.current=null,v("paused")},(tt+2e3)/$);return()=>{clearTimeout(rt),w.current=null}}v("paused");return}const K=x+1,ot=a[K].delayMs/$,bt=!s&&i?((P=i.steps[x])==null?void 0:P.durationMs)??0:0;if(bt>0){let tt=!1,rt=!1,dt=!1;const C=()=>{dt||(dt=!0,w.current=null,p(K))},L=()=>{tt&&rt&&C()};w.current=()=>{tt=!0,L()};const I=setTimeout(()=>{rt=!0,L()},ot),et=setTimeout(C,(Math.max(a[K].delayMs,bt)+2e3)/$);return()=>{clearTimeout(I),clearTimeout(et),w.current=null}}const Mt=setTimeout(()=>p(K),ot);return()=>clearTimeout(Mt)},[f,b,x,a,m,d,s,i]);const J=E.useCallback($=>{v("paused"),p(Math.max(0,Math.min($,m)))},[m]),W=E.useCallback(($,K)=>{const ot=Math.max(0,Math.min($,K.totalDurationMs)),bt=_c(ot,K.stepStartTimesMs,m),Mt=K.stepStartTimesMs[bt]??0;j.current=ot-Mt,p(bt),v(V=>V==="playing"?V:"paused"),q(V=>V+1)},[m]),F=E.useCallback(()=>{A.current>=m&&p(0),v("playing")},[m]),X=E.useCallback(()=>{v("paused")},[]),Q=E.useCallback(()=>{b?X():F()},[b,F,X]),Z=E.useCallback(()=>{var $;($=w.current)==null||$.call(w)},[]),k=E.useCallback($=>{w.current=$},[]);return{stepIndex:x,playbackState:g,playing:b,play:F,pause:X,togglePlay:Q,goTo:J,seekToTime:W,seekOffsetRef:j,seekGeneration:B,handleClipEnded:Z,setPendingAdvance:k,coordinatorId:void 0}}function ov(a){const i=Math.max(0,a),s=Math.floor(i/3600),u=Math.floor(i%3600/60),c=i%60,d=String(c).padStart(2,"0");return s>0?`${s}:${String(u).padStart(2,"0")}:${d}`:`${u}:${d}`}function fg(a){return ov(Math.floor(Math.max(0,a)/1e3))}function cv(a,i,s){if(s==="remaining"){const u=Math.ceil(Math.max(0,i-a)/1e3);return`-${ov(u)}`}return`${fg(a)} / ${fg(i)}`}function OA(a,i,s,u,c,d,f,m,y,p,g){const v=E.useRef(0),b=E.useRef(0),x=E.useRef(0),A=E.useRef(d);A.current=d;const w=E.useRef(s);w.current=s;const j=E.useRef(Math.max(c,.25));j.current=Math.max(c,.25);const B=g==null?void 0:g.timeLabelRef,q=g==null?void 0:g.scrubbingRef,Y=(g==null?void 0:g.timeDisplayMode)??"elapsed",J=E.useRef(Y);J.current=Y;const W=E.useRef(""),F=E.useRef(0),X=E.useCallback(Z=>{if(q!=null&&q.current)return;const k=Math.max(0,Math.min(Z,1));F.current=k;const $=`${k*100}%`;if(f.current&&(f.current.style.width=$),m.current&&(m.current.style.left=$),B!=null&&B.current){const K=A.current,ot=cv(k*K.totalDurationMs,K.totalDurationMs,J.current);ot!==W.current&&(W.current=ot,B.current.textContent=ot)}},[f,m,B,q]),Q=E.useRef(void 0);Q.current=()=>{const Z=performance.now();b.current+=(Z-x.current)*j.current,x.current=Z;const k=A.current,$=w.current,K=k.stepStartTimesMs[$]??0,ot=$<u?k.stepStartTimesMs[$+1]??k.totalDurationMs:k.totalDurationMs,bt=Math.max(ot-K,1),Mt=Math.min(b.current/bt,1),V=(K+Mt*(ot-K))/k.totalDurationMs;X(V),v.current=requestAnimationFrame(()=>{var P;return(P=Q.current)==null?void 0:P.call(Q)})},E.useEffect(()=>(a?(x.current=performance.now(),v.current=requestAnimationFrame(()=>{var Z;return(Z=Q.current)==null?void 0:Z.call(Q)})):cancelAnimationFrame(v.current),()=>cancelAnimationFrame(v.current)),[a]),E.useEffect(()=>{b.current=y.current,y.current=0,x.current=performance.now()},[s,p,y]),E.useEffect(()=>{W.current="",X(F.current)},[Y,X]),E.useEffect(()=>{if(i==="idle"){X(0);return}if(i==="paused"){const Z=w.current,k=d.stepStartTimesMs[Z]??0,$=Z<u?d.stepStartTimesMs[Z+1]??d.totalDurationMs:d.totalDurationMs,K=Math.max($-k,1),ot=Math.min(b.current/K,1),bt=(k+ot*($-k))/d.totalDurationMs;X(bt)}},[i,s,p,u,d,X])}function fv({size:a,className:i}){return M.jsx("svg",{width:a,height:a,viewBox:"0 0 24 24",fill:"currentColor",className:i,"aria-hidden":!0,children:M.jsx("path",{d:"M8 5v14l11-7z"})})}function jA({size:a,className:i}){return M.jsxs("svg",{width:a,height:a,viewBox:"0 0 24 24",fill:"currentColor",className:i,"aria-hidden":!0,children:[M.jsx("rect",{x:"6",y:"4",width:"4",height:"16"}),M.jsx("rect",{x:"14",y:"4",width:"4",height:"16"})]})}function dv({size:a,className:i}){return M.jsx("svg",{width:a,height:a,viewBox:"0 0 24 24",fill:"currentColor",className:i,"aria-hidden":!0,children:M.jsx("path",{d:"M3 10v4h4l5 5V5L7 10H3zm13.5 2a4.5 4.5 0 0 0-2.5-4.03v8.06A4.5 4.5 0 0 0 16.5 12zM14 3.23v2.06a7 7 0 0 1 0 13.42v2.06a9 9 0 0 0 0-17.54z"})})}function _A(a){return i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),i.stopPropagation(),a())}}function VA({onPlay:a,PlayIcon:i,hasNarration:s=!1}){const u=i??fv,c=s?"Play walkthrough with narration":"Play demo";return M.jsxs(ln.div,{className:"absolute inset-0 z-10 flex cursor-pointer flex-col items-center justify-center gap-3 rounded-lg bg-black/30",initial:{opacity:1},exit:{opacity:0},transition:{duration:.3},onClick:d=>{d.stopPropagation(),a()},onKeyDown:_A(a),role:"button",tabIndex:0,"aria-label":c,children:[M.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-white ring-1 ring-black/10 shadow-[0_8px_24px_rgba(0,0,0,0.35)] transition-transform duration-200 hover:scale-105",children:M.jsx(u,{size:28,className:"ml-1 text-neutral-900"})}),s&&M.jsx("span",{"aria-hidden":!0,className:"flex h-7 w-7 items-center justify-center rounded-full bg-black/60 text-white",children:M.jsx(dv,{size:14})})]})}function NA({kind:a,onComplete:i}){const s=a==="play"?fv:jA;return M.jsx("div",{"aria-hidden":!0,"data-playback-burst":a,className:"pointer-events-none absolute inset-0 z-[15] flex items-center justify-center",children:M.jsx(ln.div,{className:"flex h-16 w-16 items-center justify-center rounded-full bg-black/60 text-white",initial:{scale:.6,opacity:.9},animate:{scale:1.4,opacity:0},transition:{duration:.45,ease:"easeOut"},onAnimationComplete:i,children:M.jsx(s,{size:28,className:a==="play"?"ml-1":void 0})})})}function BA({onEnableAudio:a}){return M.jsxs(ln.button,{type:"button",className:"absolute left-1/2 top-3 z-20 flex -translate-x-1/2 items-center gap-1.5 rounded-full bg-black/70 px-3 py-1.5 text-xs font-medium text-white shadow-lg transition-transform hover:scale-105",initial:{opacity:0,y:-6},animate:{opacity:1,y:0},exit:{opacity:0,y:-6},transition:{duration:.2},onClick:i=>{i.stopPropagation(),a()},children:[M.jsx(dv,{size:14}),"Tap to enable audio"]})}const UA=[.5,1,1.5,2];function LA({playbackRate:a,onSelectSpeed:i}){const[s,u]=E.useState(!1),c=E.useRef(null);return E.useEffect(()=>{if(!s)return;const d=f=>{c.current&&!c.current.contains(f.target)&&u(!1)};return document.addEventListener("mousedown",d),()=>document.removeEventListener("mousedown",d)},[s]),M.jsxs("div",{ref:c,className:"relative",children:[M.jsxs("button",{onClick:d=>{d.stopPropagation(),u(f=>!f)},className:"flex h-9 min-w-[2.5rem] items-center justify-center rounded px-1 text-xs font-medium tabular-nums text-white/90 transition-colors hover:text-white","aria-label":`Playback speed: ${a}x`,"aria-haspopup":"true","aria-expanded":s,children:[a,"x"]}),M.jsx(_u,{children:s&&M.jsx(ln.div,{className:"absolute bottom-full right-0 mb-1.5 rounded-md border border-border bg-card py-1 shadow-lg",initial:{opacity:0,y:4},animate:{opacity:1,y:0},exit:{opacity:0,y:4},transition:{duration:.12,ease:"easeOut"},role:"menu","aria-label":"Playback speed",children:UA.map(d=>M.jsxs("button",{role:"menuitem",onClick:f=>{f.stopPropagation(),i(d),u(!1)},className:`flex w-full items-center justify-between gap-3 px-3 py-1 text-xs tabular-nums transition-colors hover:bg-accent ${d===a?"font-semibold text-foreground":"text-muted-foreground"}`,children:[M.jsxs("span",{children:[d,"x"]}),d===a&&M.jsx("span",{className:"text-[10px] text-primary",children:"●"})]},d))})})]})}function HA({visible:a,playing:i,muted:s,playbackRate:u,stepTimeline:c,showSpeedControl:d,hasNarration:f,onToggleFullscreen:m,isFullscreen:y=!1,progressTrackRef:p,playheadRef:g,onTogglePlay:v,onToggleMute:b,onSelectSpeed:x,onSeekToTime:A,timeLabelRef:w,timeDisplayMode:j="elapsed",onToggleTimeDisplay:B,scrubbingRef:q}){const Y=E.useMemo(()=>c.stepStartTimesMs.slice(1).map(K=>K/c.totalDurationMs*100),[c]),[J,W]=E.useState(!1),F=E.useRef(0),X=E.useCallback(K=>{F.current=K;const ot=`${K*100}%`;p.current&&(p.current.style.width=ot),g.current&&(g.current.style.left=ot),w!=null&&w.current&&(w.current.textContent=cv(K*c.totalDurationMs,c.totalDurationMs,j))},[p,g,w,c,j]),Q=E.useCallback(K=>{const ot=K.currentTarget.getBoundingClientRect();return Math.max(0,Math.min(1,(K.clientX-ot.left)/ot.width))},[]),Z=E.useCallback(K=>{K.currentTarget.setPointerCapture(K.pointerId),q&&(q.current=!0),W(!0),X(Q(K))},[q,X,Q]),k=E.useCallback(K=>{K.currentTarget.hasPointerCapture(K.pointerId)&&X(Q(K))},[X,Q]),$=E.useCallback(K=>{K.currentTarget.hasPointerCapture(K.pointerId)&&(K.currentTarget.releasePointerCapture(K.pointerId),X(Q(K)),q&&(q.current=!1),W(!1),A(F.current*c.totalDurationMs))},[X,Q,q,A,c]);return M.jsxs(ln.div,{className:"absolute inset-x-0 bottom-0 z-20 rounded-b-lg bg-gradient-to-t from-black/70 via-black/30 to-transparent px-3 pb-2 pt-10",initial:!1,animate:{opacity:a?1:0},transition:{duration:.2},style:{pointerEvents:a?"auto":"none"},onClick:K=>K.stopPropagation(),children:[M.jsxs("div",{className:`group relative mb-2 w-full cursor-pointer rounded-full bg-white/30 transition-[height] duration-150 ${J?"h-2":"h-[5px] hover:h-2"}`,onPointerDown:Z,onPointerMove:k,onPointerUp:$,onPointerCancel:$,role:"progressbar","aria-label":"Playback progress","aria-valuemin":0,"aria-valuemax":100,children:[M.jsx("div",{ref:p,className:"absolute inset-y-0 left-0 rounded-full bg-white/80"}),M.jsx("div",{ref:g,className:`absolute top-1/2 h-3.5 w-3.5 -translate-x-1/2 -translate-y-1/2 rounded-full bg-white shadow-sm transition-opacity ${J?"opacity-100":"opacity-0 group-hover:opacity-100"}`}),Y.map((K,ot)=>M.jsx("div",{className:"absolute top-0 h-full w-0.5 rounded-full bg-black/50",style:{left:`${K}%`}},ot))]}),M.jsxs("div",{className:"flex items-center gap-2",children:[M.jsx("button",{onClick:K=>{K.stopPropagation(),v()},className:"flex h-9 w-9 items-center justify-center rounded text-white/90 transition-colors hover:text-white","aria-label":i?"Pause":"Play",children:i?M.jsx(qA,{}):M.jsx(YA,{})}),M.jsx("button",{onClick:K=>{K.stopPropagation(),f&&b()},disabled:!f,className:`flex h-9 w-9 items-center justify-center rounded transition-colors ${f?"text-white/90 hover:text-white":"text-white/40"}`,"aria-label":f?s?"Unmute narration":"Mute narration":"No narration audio",children:!f||s?M.jsx(XA,{}):M.jsx(GA,{})}),w&&M.jsx("button",{onClick:K=>{K.stopPropagation(),B==null||B()},className:"rounded px-1 text-xs font-medium tabular-nums text-white/90 transition-colors hover:text-white","aria-label":j==="elapsed"?"Show remaining time":"Show elapsed time",children:M.jsx("span",{ref:w})}),M.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[d&&M.jsx(LA,{playbackRate:u,onSelectSpeed:x}),m&&M.jsx("button",{onClick:K=>{K.stopPropagation(),m()},className:"flex h-9 w-9 items-center justify-center rounded text-white/90 transition-colors hover:text-white","aria-label":y?"Exit fullscreen":"Enter fullscreen",children:y?M.jsx(ZA,{}):M.jsx(kA,{})})]})]})]})}function YA(){return M.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0,children:M.jsx("path",{d:"M8 5v14l11-7z"})})}function qA(){return M.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0,children:[M.jsx("rect",{x:"6",y:"4",width:"4",height:"16"}),M.jsx("rect",{x:"14",y:"4",width:"4",height:"16"})]})}function GA(){return M.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[M.jsx("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5",fill:"currentColor"}),M.jsx("path",{d:"M19.07 4.93a10 10 0 0 1 0 14.14"}),M.jsx("path",{d:"M15.54 8.46a5 5 0 0 1 0 7.07"})]})}function XA(){return M.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[M.jsx("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5",fill:"currentColor"}),M.jsx("line",{x1:"23",y1:"9",x2:"17",y2:"15"}),M.jsx("line",{x1:"17",y1:"9",x2:"23",y2:"15"})]})}function kA(){return M.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[M.jsx("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),M.jsx("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),M.jsx("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),M.jsx("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]})}function ZA(){return M.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[M.jsx("path",{d:"M8 3v3a2 2 0 0 1-2 2H3"}),M.jsx("path",{d:"M21 8h-3a2 2 0 0 1-2-2V3"}),M.jsx("path",{d:"M3 16h3a2 2 0 0 1 2 2v3"}),M.jsx("path",{d:"M16 21v-3a2 2 0 0 1 2-2h3"})]})}function QA(a){const i=typeof window<"u"&&window.parent!==window,s=a.enabled&&i,u=E.useRef(s);u.current=s;const c=E.useRef(null),d=E.useRef(a.controls);d.current=a.controls;const f=E.useCallback(g=>{!u.current||typeof window>"u"||window.parent.postMessage(sb(g),c.current??"*")},[]),m=E.useCallback(g=>{const v=d.current;switch(g.type){case"play":v.play();break;case"pause":case"destroy":v.pause();break;case"seek":v.seekToTime(g.timeMs);break;case"setMuted":v.setMuted(g.muted);break;case"setVolume":v.setVolume(g.volume);break;case"prefetch":v.prefetch();break}},[]);E.useEffect(()=>{if(!s)return;const g=v=>{if(v.source!==window.parent)return;const b=rb(v.data);b&&(v.origin&&v.origin!=="null"&&(c.current=v.origin),m(b))};return window.addEventListener("message",g),()=>window.removeEventListener("message",g)},[s,m]),E.useEffect(()=>{if(!s)return;const g=a.containerRef.current;if(!g||typeof ResizeObserver>"u")return;const v=new ResizeObserver(()=>{const b=g.getBoundingClientRect();f({type:"resize",widthPx:Math.round(b.width),heightPx:Math.round(b.height)})});return v.observe(g),()=>v.disconnect()},[s,a.containerRef,f]);const y=E.useRef(!1);E.useEffect(()=>{!s||y.current||(y.current=!0,f({type:"ready",totalSteps:a.totalSteps,hasNarration:a.hasNarration}))},[s,f,a.totalSteps,a.hasNarration]);const p=a.totalSteps-1;E.useEffect(()=>{s&&(a.playbackState==="playing"?f({type:"started"}):a.playbackState==="paused"&&f(a.stepIndex>=p?{type:"completed"}:{type:"paused"}))},[s,a.playbackState,a.stepIndex,p,f]),E.useEffect(()=>{if(!s)return;const g=a.stepTimeline.totalDurationMs,v=a.stepTimeline.stepStartTimesMs[a.stepIndex]??0,b=g>0?v/g:0;f({type:"stepchange",stepIndex:a.stepIndex,totalSteps:a.totalSteps}),f({type:"progress",stepIndex:a.stepIndex,totalSteps:a.totalSteps,fraction:b})},[s,a.stepIndex,a.totalSteps,a.stepTimeline,f]),E.useEffect(()=>{!s||!a.audioBlocked||f({type:"audioBlocked"})},[s,a.audioBlocked,f])}const KA=3e3;function JA({bundle:a,steps:i,children:s,className:u,onStepChange:c,narrationManifest:d,showSpeedControl:f=!0,embed:m=!1}){const y=i??(a==null?void 0:a.steps),p=d??(a==null?void 0:a.narrationManifest);if(!y||y.length===0)throw new Error("ScenarioPlayer requires steps. Provide a `bundle` or `steps` prop.");const g=hA(),{isVideoExport:v,hideControls:b,initialMuted:x}=Bu(),A=y.length-1,w=E.useRef(null),[j,B]=E.useState(()=>{if(typeof window>"u")return 1;const Nt=new URLSearchParams(window.location.search).get("__test_speed"),Rt=Nt?Number(Nt):NaN;return Rt>0&&Rt<=16?Rt:1}),q=v?x:!1,[Y,J]=E.useState(q),W=zA({steps:y,narrationManifest:p,muted:Y,playbackRate:j,isVideoExport:v,prefersReducedMotion:g}),{stepIndex:F,playbackState:X,playing:Q,play:Z,pause:k,togglePlay:$,seekToTime:K,seekOffsetRef:ot,seekGeneration:bt,handleClipEnded:Mt}=W,V=E.useRef(null);E.useEffect(()=>{if(!v)return V.current=hb(()=>{k()}),()=>{var Nt;return(Nt=V.current)==null?void 0:Nt.unregister()}},[v,k]),E.useEffect(()=>{const Nt=w.current;if(!Nt||v)return;const Rt=new IntersectionObserver(([fe])=>{!(fe!=null&&fe.isIntersecting)&&Q&&k()},{threshold:.5});return Rt.observe(Nt),()=>Rt.disconnect()},[v,Q,k]);const{muted:P,toggleMute:tt,audioRef:rt,seekToStep:dt,audioBlocked:C,unlock:L,setVolume:I,prefetch:et}=pb({manifest:p,stepIndex:F,playing:Q,initialMuted:q,playbackRate:j,onClipEnded:Mt});E.useEffect(()=>{J(P)},[P]);const st=E.useMemo(()=>tb(y,P?null:p),[y,P,p]);E.useEffect(()=>{c==null||c(y[F].data,F)},[F,y,c]);const[mt,Tt]=E.useState(!0),Yt=E.useRef(void 0),Vt=E.useCallback(()=>{Yt.current&&clearTimeout(Yt.current),Yt.current=setTimeout(()=>Tt(!1),KA)},[]),na=E.useCallback(()=>{Tt(!0),X==="playing"&&Vt()},[X,Vt]);E.useEffect(()=>(X!=="playing"?(Tt(!0),Yt.current&&clearTimeout(Yt.current)):Vt(),()=>{Yt.current&&clearTimeout(Yt.current)}),[X,Vt]);const un=E.useCallback(()=>{L(),Z(),V.current&&Zp(V.current.id)},[Z,L]),wa=E.useCallback(Nt=>{const Rt=Math.max(0,Math.min(Nt,st.totalDurationMs)),fe=_c(Rt,st.stepStartTimesMs,A),de=st.stepStartTimesMs[fe]??0;dt(fe,Math.max(0,Rt-de)),K(Rt,st),Q&&V.current&&Zp(V.current.id)},[K,dt,st,A,Q]),[za,Fe]=E.useState(null),aa=E.useCallback(Nt=>{Fe(Rt=>({kind:Nt,key:((Rt==null?void 0:Rt.key)??0)+1}))},[]),Di=E.useCallback(()=>Fe(null),[]),Gu=E.useCallback(()=>{X!=="idle"&&(Q?(aa("pause"),k()):(aa("play"),un()))},[X,Q,k,un,aa]),Hl=E.useCallback(()=>{L()},[L]),[Ri,wi]=E.useState(!1),ia=m&&typeof document<"u"&&document.fullscreenEnabled;E.useEffect(()=>{if(!ia)return;const Nt=()=>wi(document.fullscreenElement!=null);return document.addEventListener("fullscreenchange",Nt),()=>document.removeEventListener("fullscreenchange",Nt)},[ia]);const Xu=E.useCallback(()=>{document.fullscreenElement?document.exitFullscreen().catch(()=>{}):document.documentElement.requestFullscreen().catch(()=>{})},[]),Yl=E.useRef(null),oe=E.useRef(null),ql=E.useRef(null),zi=E.useRef(!1),[Oi,Oa]=E.useState("elapsed"),ku=E.useCallback(()=>{Oa(Nt=>Nt==="elapsed"?"remaining":"elapsed")},[]);OA(Q,X,F,A,j,st,Yl,oe,ot,bt,{timeLabelRef:ql,timeDisplayMode:Oi,scrubbingRef:zi}),QA({enabled:m,containerRef:w,playbackState:X,stepIndex:F,totalSteps:y.length,stepTimeline:st,hasNarration:!!p,audioBlocked:C,controls:{play:un,pause:k,seekToTime:wa,setMuted:Nt=>{P!==Nt&&tt()},setVolume:I,prefetch:et}});const Gl=X==="idle"&&!v&&!g,Xl=X!=="idle"&&!b,Zu=C&&!v&&X!=="idle";return M.jsxs("div",{ref:w,className:u,"data-demo-step":F,"data-demo-state":X,"data-demo-total-steps":y.length,"data-demo-audio-blocked":C?"":void 0,onMouseMove:Xl?na:void 0,children:[M.jsxs("div",{className:"relative",onClick:Gu,style:{cursor:X!=="idle"?"pointer":void 0},children:[s(y[F].data,F),M.jsxs(_u,{children:[Gl&&M.jsx(VA,{onPlay:un,hasNarration:!!p}),Zu&&M.jsx(BA,{onEnableAudio:Hl})]}),za&&!v&&M.jsx(NA,{kind:za.kind,onComplete:Di},za.key),Xl&&M.jsx(HA,{visible:mt,playing:Q,muted:P,playbackRate:j,stepTimeline:st,showSpeedControl:f,hasNarration:!!p,onToggleFullscreen:ia?Xu:void 0,isFullscreen:Ri,progressTrackRef:Yl,playheadRef:oe,onTogglePlay:$,onToggleMute:tt,onSelectSpeed:B,onSeekToTime:wa,timeLabelRef:ql,timeDisplayMode:Oi,onToggleTimeDisplay:ku,scrubbingRef:zi})]}),p&&M.jsx("audio",{ref:rt,preload:"none",hidden:!0})]})}function Ei(a,i){if(!a||!i)return null;const s=i.querySelector(bi(a));return!s||!(s instanceof HTMLElement)?null:s}function PA(a,i){if(!a||!i)return null;const s=i.querySelector(lb(a));return s||null}function FA(a,i){if(!i)return null;const s=i.querySelector(bi(a));return s?s instanceof HTMLInputElement||s instanceof HTMLTextAreaElement?s:s.querySelector("input, textarea"):null}function hv(a,i){const s=PA(a.target,i.containerRef.current);s&&(i.isVideoExport?nb(s):bg(s))}function mv(a,i){i.setCursorTarget(a.target)}function pv(a,i){i.setCursorTarget(void 0)}function yv(a,i){const s=Ei(a.target,i.containerRef.current);s&&s.click()}function gv(a,i,s){var f;if(!a.target)return;const u=FA(a.target,s.containerRef.current);if(!u)return;const c=u instanceof HTMLTextAreaElement?HTMLTextAreaElement.prototype:HTMLInputElement.prototype,d=(f=Object.getOwnPropertyDescriptor(c,"value"))==null?void 0:f.set;d==null||d.call(u,i),u.dispatchEvent(new Event("input",{bubbles:!0}))}function vv(a,i){const s=Ei(a.target,i.containerRef.current);s&&(s.dispatchEvent(new PointerEvent("pointerenter",{bubbles:!1})),s.dispatchEvent(new PointerEvent("pointerover",{bubbles:!0})),s.dispatchEvent(new MouseEvent("mouseenter",{bubbles:!1})),s.dispatchEvent(new MouseEvent("mouseover",{bubbles:!0})),s.setAttribute("data-hover","true"))}function Sv(a,i){const s=Ei(a.target,i.containerRef.current);s&&(s.dispatchEvent(new PointerEvent("pointerleave",{bubbles:!1})),s.dispatchEvent(new PointerEvent("pointerout",{bubbles:!0})),s.dispatchEvent(new MouseEvent("mouseleave",{bubbles:!1})),s.dispatchEvent(new MouseEvent("mouseout",{bubbles:!0})),s.removeAttribute("data-hover"))}function bv(a,i){const s=Ei(a.target,i.containerRef.current);s&&(s.dispatchEvent(new PointerEvent("pointerdown",{bubbles:!0})),s.setAttribute("data-dragging","true"))}function Tv(a,i){const s=Ei(a.dragTarget,i.containerRef.current);s&&s.dispatchEvent(new PointerEvent("pointerup",{bubbles:!0}));const u=Ei(a.target,i.containerRef.current);u&&u.removeAttribute("data-dragging")}const WA=1.5;function $A(a,i,s){const u=s.querySelector(bi(a));if(!u)return null;const c=s.getBoundingClientRect(),d=u.getBoundingClientRect(),f=c.width/s.offsetWidth||1,m=(d.left-c.left+d.width/2)/f,y=(d.top-c.top+d.height/2)/f;return{scale:i,x:s.offsetWidth/2-m*i,y:s.offsetHeight/2-y*i}}function xv(a,i){var d;if(!i.setViewportTransform)return;if(a.viewportReset){i.setViewportTransform({scale:1,x:0,y:0});return}if(!a.target)return;const s=((d=i.cameraRef)==null?void 0:d.current)??i.containerRef.current;if(!s)return;const u=a.viewportZoom??WA,c=$A(a.target,u,s);c&&i.setViewportTransform(c)}function IA(a,i){const{stepIndex:s,narrationManifest:u,steps:c,playbackRate:d=1}=a;E.useEffect(()=>{var g;const f=(g=c[s])==null?void 0:g.interactions;if(!f||f.length===0)return;const m=yg(s,u,c),y=Math.max(d,.25),p=[];for(const v of f){const b=v.atPercent*m/y;if(v.type==="click")p.push(setTimeout(()=>i.setCursorTarget(v.target),b)),p.push(setTimeout(()=>yv(v,i),b+ee/y));else if(v.type==="type"){const x=v.text??"";if(x.length===0)continue;const A=v.typeDelay??gg;p.push(setTimeout(()=>i.setCursorTarget(v.target),b));const w=b+ee/y;for(let j=0;j<x.length;j++){const B=x.substring(0,j+1);p.push(setTimeout(()=>gv(v,B,i),w+j*A/y))}}else if(v.type==="hover"){const x=v.hoverDuration??vg;p.push(setTimeout(()=>{var A;(A=i.setShowRipple)==null||A.call(i,!1),i.setCursorTarget(v.target)},b)),p.push(setTimeout(()=>vv(v,i),b+ee/y)),p.push(setTimeout(()=>{var A;Sv(v,i),(A=i.setShowRipple)==null||A.call(i,!0)},b+(ee+x)/y))}else v.type==="drag"?(p.push(setTimeout(()=>{var x;(x=i.setShowRipple)==null||x.call(i,!1),i.setCursorTarget(v.target)},b)),p.push(setTimeout(()=>{var x;(x=i.setDragging)==null||x.call(i,!0),bv(v,i)},b+ee/y)),p.push(setTimeout(()=>i.setCursorTarget(v.dragTarget),b+(ee+Eu)/y)),p.push(setTimeout(()=>{var x,A;Tv(v,i),(x=i.setDragging)==null||x.call(i,!1),(A=i.setShowRipple)==null||A.call(i,!0)},b+(ee+Eu+ee)/y))):v.type==="viewport_transition"?p.push(setTimeout(()=>xv(v,i),b)):p.push(setTimeout(()=>tM(v,i),b))}return()=>{for(const v of p)clearTimeout(v)}},[s,u,i,c,d])}function tM(a,i){switch(a.type){case"scroll_to":hv(a,i);break;case"set_cursor":mv(a,i);break;case"clear_cursor":pv(a,i);break;default:i.setCursorTarget(a.target);break}}function eM(a,i,s){const{stepIndex:u,narrationManifest:c,steps:d}=a,f=E.useRef(new Set);E.useEffect(()=>{var x;const y=(x=d[u])==null?void 0:x.interactions;if(!y||y.length===0)return;const p=s.stepStartTimesMs[u]??0,g=s.stepStartTimesMs[u+1],v=g!=null?g-p:yg(u,c,d),b=s.currentTimeMs-p;for(const A of y){const w=A.atPercent*v;if(A.type==="click")m(`${u}-${A.atPercent}-click-cursor`,b,w,()=>{i.setCursorTarget(A.target)}),m(`${u}-${A.atPercent}-click-dispatch`,b,w+ee,()=>{yv(A,i)});else if(A.type==="type"){const j=A.text??"";if(j.length===0)continue;const B=A.typeDelay??gg;m(`${u}-${A.atPercent}-type-cursor`,b,w,()=>{i.setCursorTarget(A.target)});const q=w+ee;if(b>=q){const Y=Math.min(Math.floor((b-q)/B)+1,j.length);m(`${u}-${A.atPercent}-type-char-${Y}`,b,0,()=>{gv(A,j.substring(0,Y),i)})}}else if(A.type==="hover"){const j=A.hoverDuration??vg;m(`${u}-${A.atPercent}-hover-cursor`,b,w,()=>{var B;(B=i.setShowRipple)==null||B.call(i,!1),i.setCursorTarget(A.target)}),m(`${u}-${A.atPercent}-hover-enter`,b,w+ee,()=>{vv(A,i)}),m(`${u}-${A.atPercent}-hover-leave`,b,w+ee+j,()=>{var B;Sv(A,i),(B=i.setShowRipple)==null||B.call(i,!0)})}else A.type==="drag"?(m(`${u}-${A.atPercent}-drag-cursor`,b,w,()=>{var j;(j=i.setShowRipple)==null||j.call(i,!1),i.setCursorTarget(A.target)}),m(`${u}-${A.atPercent}-drag-press`,b,w+ee,()=>{var j;(j=i.setDragging)==null||j.call(i,!0),bv(A,i)}),m(`${u}-${A.atPercent}-drag-move`,b,w+ee+Eu,()=>{i.setCursorTarget(A.dragTarget)}),m(`${u}-${A.atPercent}-drag-release`,b,w+ee+Eu+ee,()=>{var j,B;Tv(A,i),(j=i.setDragging)==null||j.call(i,!1),(B=i.setShowRipple)==null||B.call(i,!0)})):A.type==="viewport_transition"?m(`${u}-${A.atPercent}-viewport`,b,w,()=>{xv(A,i)}):m(`${u}-${A.atPercent}-${A.type}`,b,w,()=>{nM(A,i)})}}),E.useEffect(()=>{f.current.clear()},[u]);function m(y,p,g,v){p>=g&&!f.current.has(y)&&(f.current.add(y),v())}}function nM(a,i){switch(a.type){case"scroll_to":hv(a,i);break;case"set_cursor":mv(a,i);break;case"clear_cursor":pv(a,i);break;default:i.setCursorTarget(a.target);break}}function aM(a){const i=Nu(),{isVideoExport:s}=Bu(),u=E.useMemo(()=>({containerRef:a.containerRef,cameraRef:a.cameraRef,setCursorTarget:a.setCursorTarget,setShowRipple:a.setShowRipple,setDragging:a.setDragging,setViewportTransform:a.setViewportTransform,isVideoExport:s}),[a.containerRef,a.cameraRef,a.setCursorTarget,a.setShowRipple,a.setDragging,a.setViewportTransform,s]);i?eM(a,u,i):IA(a,u)}const dg="scenar";/**
58
+ * @license lucide-react v1.8.0 - ISC
59
+ *
60
+ * This source code is licensed under the ISC license.
61
+ * See the LICENSE file in the root directory of this source tree.
62
+ */const Ev=(...a)=>a.filter((i,s,u)=>!!i&&i.trim()!==""&&u.indexOf(i)===s).join(" ").trim();/**
63
+ * @license lucide-react v1.8.0 - ISC
64
+ *
65
+ * This source code is licensed under the ISC license.
66
+ * See the LICENSE file in the root directory of this source tree.
67
+ */const iM=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
68
+ * @license lucide-react v1.8.0 - ISC
69
+ *
70
+ * This source code is licensed under the ISC license.
71
+ * See the LICENSE file in the root directory of this source tree.
72
+ */const lM=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,s,u)=>u?u.toUpperCase():s.toLowerCase());/**
73
+ * @license lucide-react v1.8.0 - ISC
74
+ *
75
+ * This source code is licensed under the ISC license.
76
+ * See the LICENSE file in the root directory of this source tree.
77
+ */const hg=a=>{const i=lM(a);return i.charAt(0).toUpperCase()+i.slice(1)};/**
78
+ * @license lucide-react v1.8.0 - ISC
79
+ *
80
+ * This source code is licensed under the ISC license.
81
+ * See the LICENSE file in the root directory of this source tree.
82
+ */var wc={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
83
+ * @license lucide-react v1.8.0 - ISC
84
+ *
85
+ * This source code is licensed under the ISC license.
86
+ * See the LICENSE file in the root directory of this source tree.
87
+ */const sM=a=>{for(const i in a)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1},uM=E.createContext({}),rM=()=>E.useContext(uM),oM=E.forwardRef(({color:a,size:i,strokeWidth:s,absoluteStrokeWidth:u,className:c="",children:d,iconNode:f,...m},y)=>{const{size:p=24,strokeWidth:g=2,absoluteStrokeWidth:v=!1,color:b="currentColor",className:x=""}=rM()??{},A=u??v?Number(s??g)*24/Number(i??p):s??g;return E.createElement("svg",{ref:y,...wc,width:i??p??wc.width,height:i??p??wc.height,stroke:a??b,strokeWidth:A,className:Ev("lucide",x,c),...!d&&!sM(m)&&{"aria-hidden":"true"},...m},[...f.map(([w,j])=>E.createElement(w,j)),...Array.isArray(d)?d:[d]])});/**
88
+ * @license lucide-react v1.8.0 - ISC
89
+ *
90
+ * This source code is licensed under the ISC license.
91
+ * See the LICENSE file in the root directory of this source tree.
92
+ */const Pe=(a,i)=>{const s=E.forwardRef(({className:u,...c},d)=>E.createElement(oM,{ref:d,iconNode:i,className:Ev(`lucide-${iM(hg(a))}`,`lucide-${a}`,u),...c}));return s.displayName=hg(a),s};/**
93
+ * @license lucide-react v1.8.0 - ISC
94
+ *
95
+ * This source code is licensed under the ISC license.
96
+ * See the LICENSE file in the root directory of this source tree.
97
+ */const cM=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],fM=Pe("bell",cM);/**
98
+ * @license lucide-react v1.8.0 - ISC
99
+ *
100
+ * This source code is licensed under the ISC license.
101
+ * See the LICENSE file in the root directory of this source tree.
102
+ */const dM=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],hM=Pe("chevron-left",dM);/**
103
+ * @license lucide-react v1.8.0 - ISC
104
+ *
105
+ * This source code is licensed under the ISC license.
106
+ * See the LICENSE file in the root directory of this source tree.
107
+ */const mM=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],pM=Pe("chevron-right",mM);/**
108
+ * @license lucide-react v1.8.0 - ISC
109
+ *
110
+ * This source code is licensed under the ISC license.
111
+ * See the LICENSE file in the root directory of this source tree.
112
+ */const yM=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],gM=Pe("ellipsis-vertical",yM);/**
113
+ * @license lucide-react v1.8.0 - ISC
114
+ *
115
+ * This source code is licensed under the ISC license.
116
+ * See the LICENSE file in the root directory of this source tree.
117
+ */const vM=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],SM=Pe("globe",vM);/**
118
+ * @license lucide-react v1.8.0 - ISC
119
+ *
120
+ * This source code is licensed under the ISC license.
121
+ * See the LICENSE file in the root directory of this source tree.
122
+ */const bM=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],TM=Pe("lock",bM);/**
123
+ * @license lucide-react v1.8.0 - ISC
124
+ *
125
+ * This source code is licensed under the ISC license.
126
+ * See the LICENSE file in the root directory of this source tree.
127
+ */const xM=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],EM=Pe("plus",xM);/**
128
+ * @license lucide-react v1.8.0 - ISC
129
+ *
130
+ * This source code is licensed under the ISC license.
131
+ * See the LICENSE file in the root directory of this source tree.
132
+ */const AM=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],MM=Pe("rotate-ccw",AM);/**
133
+ * @license lucide-react v1.8.0 - ISC
134
+ *
135
+ * This source code is licensed under the ISC license.
136
+ * See the LICENSE file in the root directory of this source tree.
137
+ */const CM=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],DM=Pe("search",CM);/**
138
+ * @license lucide-react v1.8.0 - ISC
139
+ *
140
+ * This source code is licensed under the ISC license.
141
+ * See the LICENSE file in the root directory of this source tree.
142
+ */const RM=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],wM=Pe("star",RM);/**
143
+ * @license lucide-react v1.8.0 - ISC
144
+ *
145
+ * This source code is licensed under the ISC license.
146
+ * See the LICENSE file in the root directory of this source tree.
147
+ */const zM=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],OM=Pe("x",zM),jM=420;function _M(a){const i=a.replace(/^https?:\/\//,"");return i.split("/")[0]??i}function VM({url:a,contentKey:i,slideDirection:s,children:u,zoom:c}){const d=s==="forward"?24:s==="backward"?-24:0;return M.jsxs("div",{className:"flex flex-col overflow-hidden rounded-lg border",style:{height:`var(--scenar-shell-height, ${jM}px)`,borderColor:"var(--scenar-border)",zoom:c??void 0},children:[M.jsxs("div",{className:"flex items-center bg-[var(--scenar-chrome)] px-2 pt-1.5",children:[M.jsxs("div",{className:"mr-3 flex gap-2 pl-1.5",children:[M.jsx("span",{className:"h-3 w-3 rounded-full bg-[#ff5f57]"}),M.jsx("span",{className:"h-3 w-3 rounded-full bg-[#febc2e]"}),M.jsx("span",{className:"h-3 w-3 rounded-full bg-[#28c840]"})]}),M.jsxs("div",{className:"flex items-center gap-1.5 rounded-t-lg bg-[var(--scenar-chrome-raised)] px-3 py-1.5",children:[M.jsx(SM,{className:"h-3.5 w-3.5 shrink-0 text-[#9aa0a6]"}),M.jsx("span",{className:"max-w-[180px] truncate text-xs text-[#e8eaed]",children:_M(a)}),M.jsx(OM,{className:"h-3 w-3 shrink-0 text-[#9aa0a6]"})]}),M.jsx(EM,{className:"ml-1 h-3.5 w-3.5 shrink-0 text-[#9aa0a6]"}),M.jsx("div",{className:"flex-1"}),M.jsx("div",{className:"mr-1 flex h-5 w-5 items-center justify-center rounded-full bg-[#5f6368]",children:M.jsx("span",{className:"text-[8px] font-medium leading-none text-[#e8eaed]",children:"J"})})]}),M.jsxs("div",{className:"flex items-center gap-2 bg-[var(--scenar-chrome-raised)] px-2 py-1",children:[M.jsxs("div",{className:"flex items-center gap-1",children:[M.jsx(hM,{className:"h-4 w-4 text-[#9aa0a6]"}),M.jsx(pM,{className:"h-4 w-4 text-[#9aa0a6]"}),M.jsx(MM,{className:"ml-0.5 h-3.5 w-3.5 text-[#9aa0a6]"})]}),M.jsxs("div",{className:"flex flex-1 items-center gap-1.5 rounded-full bg-[var(--scenar-chrome)] px-3 py-1.5",children:[M.jsx(TM,{className:"h-3 w-3 shrink-0 text-[#9aa0a6]"}),M.jsx("span",{className:"truncate text-xs text-[var(--scenar-chrome-foreground)]",children:a})]}),M.jsxs("div",{className:"flex items-center gap-1",children:[M.jsx(wM,{className:"h-3.5 w-3.5 text-[#9aa0a6]"}),M.jsx("div",{className:"h-4 w-4 rounded-full bg-[#5f6368]"}),M.jsx(gM,{className:"h-4 w-4 text-[#9aa0a6]"})]})]}),M.jsx(ln.div,{className:"flex-1 overflow-y-auto",style:{background:"var(--scenar-surface)"},initial:{opacity:0,x:d},animate:{opacity:1,x:0},transition:{duration:.3,ease:"easeOut"},children:u},i)]})}function NM({header:a,sidebar:i,children:s,rightPanel:u}){return M.jsxs("div",{className:"flex h-full flex-col bg-[var(--scenar-surface)]",children:[a,M.jsxs("div",{className:"flex min-h-0 flex-1",children:[i,M.jsx("main",{className:"min-w-0 flex-1 overflow-y-auto",children:s}),u]})]})}function BM({appName:a,logo:i,navLinks:s,userName:u,hideSearch:c,hideNotifications:d}){var m;const f=((m=(u??a??"A")[0])==null?void 0:m.toUpperCase())??"A";return M.jsxs("header",{className:"flex h-10 shrink-0 items-center justify-between border-b border-[var(--scenar-border)] bg-[var(--scenar-surface)] px-4",children:[M.jsxs("div",{className:"flex items-center gap-3",children:[M.jsxs("div",{className:"flex items-center gap-2",children:[i??M.jsx("div",{className:"flex h-6 w-6 items-center justify-center rounded-md bg-[#3b82f6]",children:M.jsx("span",{className:"text-[10px] font-bold leading-none text-white",children:f})}),a&&M.jsx("span",{className:"text-[13px] font-semibold text-[var(--scenar-foreground)]",children:a})]}),s&&s.length>0&&M.jsx("nav",{className:"ml-4 flex items-center gap-1",children:s.map((y,p)=>M.jsx("span",{className:`rounded-md px-2.5 py-1 text-[12px] ${y.active?"bg-[var(--scenar-accent)] font-medium text-[var(--scenar-foreground)]":"text-[var(--scenar-muted-foreground)]"}`,children:y.label},p))})]}),M.jsxs("div",{className:"flex items-center gap-2.5",children:[!c&&M.jsx(DM,{className:"h-3.5 w-3.5 text-[var(--scenar-muted-foreground)]"}),!d&&M.jsx(fM,{className:"h-3.5 w-3.5 text-[var(--scenar-muted-foreground)]"}),M.jsx("div",{className:"flex h-6 w-6 items-center justify-center rounded-full bg-[#6366f1]",children:M.jsx("span",{className:"text-[10px] font-medium leading-none text-white",children:f})})]})]})}function UM({items:a,width:i=200}){return M.jsx("aside",{className:"shrink-0 overflow-y-auto border-r border-[var(--scenar-border)] bg-[var(--scenar-surface)] py-2",style:{width:i},children:a.map((s,u)=>{if(s.isSection)return M.jsx("div",{className:"px-4 pb-1 pt-3 text-[10px] font-semibold uppercase tracking-wider text-[var(--scenar-muted-foreground)]",children:s.label},u);const c=(s.depth??0)*12;return M.jsxs("div",{className:`relative flex items-center gap-2 px-4 py-1.5 text-[12px] ${s.active?"font-medium text-[var(--scenar-foreground)]":"text-[var(--scenar-muted-foreground)]"}`,style:{paddingLeft:`${16+c}px`},children:[s.active&&M.jsx("span",{className:"absolute left-0 top-1 bottom-1 w-[3px] rounded-r bg-[#3b82f6]"}),s.icon&&M.jsx("span",{className:"shrink-0",children:s.icon}),M.jsx("span",{className:"truncate",children:s.label})]},u)})})}function Av({title:a,subtitle:i,headerSlot:s,fields:u,submitLabel:c="Submit",footerText:d,width:f=280,children:m}){return M.jsxs("div",{className:"rounded-lg border border-[var(--scenar-border)] bg-[var(--scenar-card)] p-5 shadow-sm",style:{width:f},children:[(s||a)&&M.jsxs("div",{className:"mb-4 text-center",children:[s&&M.jsx("div",{className:"mb-2 flex justify-center",children:s}),a&&M.jsx("h3",{className:"text-[14px] font-semibold text-[var(--scenar-foreground)]",children:a}),i&&M.jsx("p",{className:"mt-0.5 text-[12px] text-[var(--scenar-muted-foreground)]",children:i})]}),M.jsx("div",{className:"space-y-2.5",children:u.map((y,p)=>M.jsxs("div",{children:[M.jsx("label",{className:"mb-0.5 block text-[11px] font-medium text-[var(--scenar-muted-foreground)]",children:y.label}),M.jsx("div",{className:"rounded-md border border-[var(--scenar-border)] bg-[var(--scenar-surface)] px-2.5 py-1.5 text-[12px]",children:y.type==="password"?M.jsx("span",{className:"text-[var(--scenar-muted-foreground)]",children:"•".repeat(12)}):y.value?M.jsx("span",{className:"text-[var(--scenar-foreground)]",children:y.value}):M.jsx("span",{className:"text-[var(--scenar-muted-foreground)]",children:y.placeholder??""})})]},p))}),m,M.jsx("div",{className:"mt-4",children:M.jsx("div",{className:"rounded-md bg-[#3b82f6] py-1.5 text-center text-[12px] font-medium text-white",children:c})}),d&&M.jsx("p",{className:"mt-3 text-center text-[11px] text-[var(--scenar-muted-foreground)]",children:d})]})}function LM({columns:a,rows:i,emptyText:s}){return M.jsx("div",{className:"overflow-hidden rounded-lg border border-[var(--scenar-border)]",children:M.jsxs("table",{className:"w-full text-[12px]",children:[M.jsx("thead",{children:M.jsx("tr",{className:"border-b border-[var(--scenar-border)] bg-[var(--scenar-accent)]",children:a.map(u=>M.jsx("th",{className:`px-3 py-2 font-medium text-[var(--scenar-muted-foreground)] ${u.width??""} text-${u.align??"left"}`,children:u.label},u.key))})}),M.jsxs("tbody",{children:[i.length===0&&s&&M.jsx("tr",{children:M.jsx("td",{colSpan:a.length,className:"px-3 py-6 text-center text-[var(--scenar-muted-foreground)]",children:s})}),i.map(u=>M.jsx("tr",{className:"border-b border-[var(--scenar-border)] last:border-b-0",children:a.map(c=>M.jsx("td",{className:`px-3 py-2 text-[var(--scenar-foreground)] ${c.width??""} text-${c.align??"left"}`,children:u.cells[c.key]??"—"},c.key))},u.id))]})]})})}const HM={success:"bg-[#22c55e]/15 text-[#22c55e]",warning:"bg-[#eab308]/15 text-[#eab308]",error:"bg-[#ef4444]/15 text-[#ef4444]",info:"bg-[#3b82f6]/15 text-[#3b82f6]",neutral:"bg-[#94a3b8]/15 text-[#94a3b8]"};function zc({label:a,variant:i="neutral"}){return M.jsx("span",{className:`inline-flex items-center rounded-full px-2 py-0.5 text-[11px] font-medium leading-none ${HM[i]}`,children:a})}function YM({appName:a,logo:i,subtitle:s,fields:u,submitLabel:c="Sign in",footerText:d,cardWidth:f=280,background:m,topBar:y,submitTargetId:p}){var b;const g=m??"linear-gradient(to bottom, var(--scenar-surface), color-mix(in srgb, var(--scenar-accent) 30%, var(--scenar-surface)))",v=i??M.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-[#3b82f6]/10",children:M.jsx("span",{className:"text-sm font-bold text-[#3b82f6]",children:((b=a[0])==null?void 0:b.toUpperCase())??"A"})});return M.jsxs("div",{className:"flex h-full flex-col",style:{background:g},children:[y,M.jsx("div",{className:"flex flex-1 items-center justify-center",children:M.jsx("div",{"data-cursor-target":p,children:M.jsx(Av,{title:a,subtitle:s??"Sign in to your account",headerSlot:v,fields:u,submitLabel:c,footerText:d,width:f})})})]})}function Oc({appName:a,logo:i,navLinks:s,userName:u,sidebarItems:c,sidebarWidth:d,children:f}){return M.jsx(NM,{header:M.jsx(BM,{appName:a,logo:i,navLinks:s,userName:u}),sidebar:c?M.jsx(UM,{items:c,width:d}):void 0,children:f})}const qM=""+new URL("logo-f-5LjVqJ.png",import.meta.url).href;function GM(a,i){return M.jsx(VM,{url:`https://${a.url}`,contentKey:String(i),children:kM(a.screen)})}const XM=[{label:"Home",active:!0},{label:"Projects"},{label:"Settings"}],jc=[{label:"Workspace",isSection:!0},{label:"Overview",active:!0},{label:"Projects"},{label:"Members"},{label:"Account",isSection:!0},{label:"Profile"},{label:"Billing"}];function kM(a){switch(a){case"login":return M.jsx(YM,{appName:"Acme Cloud",subtitle:"Sign in to your workspace",fields:[{label:"Email",value:"jordan@acme.cloud",type:"email"},{label:"Password",type:"password"}],submitLabel:"Sign in",footerText:"Forgot password?"});case"dashboard":return M.jsx(Oc,{appName:"Acme Cloud",userName:"Jordan",navLinks:XM,sidebarItems:jc,children:M.jsxs("div",{className:"p-5",children:[M.jsxs("div",{className:"mb-4 flex items-center gap-2",children:[M.jsx("img",{src:qM,alt:"Acme Cloud",width:24,height:24,className:"rounded"}),M.jsx("h2",{className:"text-[15px] font-semibold text-[var(--scenar-foreground)]",children:"Welcome back, Jordan"})]}),M.jsx("div",{className:"grid grid-cols-3 gap-3",children:[{label:"Active projects",value:"12"},{label:"Open tasks",value:"37"},{label:"Deploys today",value:"8"}].map(i=>M.jsxs("div",{className:"rounded-lg border border-[var(--scenar-border)] bg-[var(--scenar-card)] p-4",children:[M.jsx("div",{className:"text-[20px] font-semibold text-[var(--scenar-foreground)]",children:i.value}),M.jsx("div",{className:"text-[11px] text-[var(--scenar-muted-foreground)]",children:i.label})]},i.label))})]})});case"projects":return M.jsx(Oc,{appName:"Acme Cloud",userName:"Jordan",navLinks:[{label:"Home"},{label:"Projects",active:!0},{label:"Settings"}],sidebarItems:jc,children:M.jsxs("div",{className:"p-5",children:[M.jsx("h2",{className:"mb-4 text-[15px] font-semibold text-[var(--scenar-foreground)]",children:"Projects"}),M.jsx(LM,{columns:[{key:"name",label:"Name"},{key:"env",label:"Environment"},{key:"status",label:"Status",align:"right"}],rows:[{id:"1",cells:{name:"checkout-api",env:"production",status:M.jsx(zc,{label:"Healthy",variant:"success"})}},{id:"2",cells:{name:"web-frontend",env:"production",status:M.jsx(zc,{label:"Deploying",variant:"info"})}},{id:"3",cells:{name:"billing-worker",env:"staging",status:M.jsx(zc,{label:"Degraded",variant:"warning"})}}]})]})});case"settings":return M.jsx(Oc,{appName:"Acme Cloud",userName:"Jordan",navLinks:[{label:"Home"},{label:"Projects"},{label:"Settings",active:!0}],sidebarItems:jc,children:M.jsx("div",{className:"flex justify-center p-6",children:M.jsx(Av,{title:"Profile",subtitle:"Update your account details",fields:[{label:"Full name",value:"Jordan Rivera"},{label:"Email",value:"jordan@acme.cloud",type:"email"},{label:"Role",value:"Platform Engineer"}],submitLabel:"Save changes",width:320})})})}}const ZM=[{delayMs:0,data:{url:"app.acme.cloud/login",screen:"login"}},{delayMs:2400,data:{url:"app.acme.cloud/home",screen:"dashboard"}},{delayMs:2600,data:{url:"app.acme.cloud/projects",screen:"projects"}},{delayMs:2600,data:{url:"app.acme.cloud/settings",screen:"settings"}}],QM=Object.freeze(Object.defineProperty({__proto__:null,steps:ZM},Symbol.toStringTag,{value:"Module"}));function KM(a){for(const i of Object.values(a))if(Array.isArray(i)&&i.length>0&&typeof i[0]=="object"&&i[0]!==null&&"delayMs"in i[0])return i;throw new Error("No steps array found in /home/runner/work/scenar/scenar/packages/cli/examples/welcome-tour/steps")}const mg=KM(QM),JM=(()=>{try{return new URLSearchParams(window.location.search).get("theme")}catch{return null}})(),Mv=JM==="dark"?dg+" dark":dg;window.parent===window&&(document.body.classList.add(...Mv.split(" ")),document.body.style.background="var(--scenar-surface)");function PM(){const a=E.useRef(null),i=E.useRef(null),[s,u]=E.useState(0),[c,d]=E.useState(void 0),[f,m]=E.useState(!0),[y,p]=E.useState(!1),[g,v]=E.useState(mu),b=E.useCallback((A,w)=>{u(w),d(void 0)},[]);aM({stepIndex:s,narrationManifest:void 0,containerRef:a,cameraRef:i,setCursorTarget:d,setShowRipple:m,setDragging:p,setViewportTransform:v,steps:mg});const x={id:"welcome-tour",steps:mg,narrationManifest:void 0};return M.jsx("div",{className:Mv,children:M.jsx(wA,{containerRef:a,canonicalWidth:896,shellHeight:480,children:M.jsxs(CA,{transform:g,contentRef:i,children:[M.jsx(JA,{bundle:x,embed:!0,onStepChange:b,children:(A,w)=>GM(A,w)}),M.jsx(xA,{target:c,containerRef:i,showRipple:f,isDragging:y})]})})})}const Cv=document.getElementById("root");if(!Cv)throw new Error("Embed root element #root not found");$S.createRoot(Cv).render(M.jsx(PM,{}));