@scenar/cli 0.6.0 → 0.8.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.
@@ -1,147 +0,0 @@
1
- var ec={exports:{}},Al={};/**
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 zp;function qb(){if(zp)return Al;zp=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 Al.Fragment=i,Al.jsx=s,Al.jsxs=s,Al}var Op;function Gb(){return Op||(Op=1,ec.exports=qb()),ec.exports}var M=Gb(),nc={exports:{}},ot={};/**
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 _p;function Xb(){if(_p)return ot;_p=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"),S=Symbol.iterator;function x(A){return A===null||typeof A!="object"?null:(A=S&&A[S]||A["@@iterator"],typeof A=="function"?A:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,_={};function V(A,Y,W){this.props=A,this.context=Y,this.refs=_,this.updater=W||E}V.prototype.isReactComponent={},V.prototype.setState=function(A,Y){if(typeof A!="object"&&typeof A!="function"&&A!=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,A,Y,"setState")},V.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function H(){}H.prototype=V.prototype;function L(A,Y,W){this.props=A,this.context=Y,this.refs=_,this.updater=W||E}var k=L.prototype=new H;k.constructor=L,O(k,V.prototype),k.isPureReactComponent=!0;var F=Array.isArray;function Q(){}var X={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function Z(A,Y,W){var tt=W.ref;return{$$typeof:a,type:A,key:Y,ref:tt!==void 0?tt:null,props:W}}function K(A,Y){return Z(A.type,Y,A.props)}function I(A){return typeof A=="object"&&A!==null&&A.$$typeof===a}function lt(A){var Y={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(W){return Y[W]})}var Ct=/\/+/g;function Et(A,Y){return typeof A=="object"&&A!==null&&A.key!=null?lt(""+A.key):Y.toString(36)}function zt(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(Q,Q):(A.status="pending",A.then(function(Y){A.status==="pending"&&(A.status="fulfilled",A.value=Y)},function(Y){A.status==="pending"&&(A.status="rejected",A.reason=Y)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function N(A,Y,W,tt,st){var ht=typeof A;(ht==="undefined"||ht==="boolean")&&(A=null);var bt=!1;if(A===null)bt=!0;else switch(ht){case"bigint":case"string":case"number":bt=!0;break;case"object":switch(A.$$typeof){case a:case i:bt=!0;break;case g:return bt=A._init,N(bt(A._payload),Y,W,tt,st)}}if(bt)return st=st(A),bt=tt===""?"."+Et(A,0):tt,F(st)?(W="",bt!=null&&(W=bt.replace(Ct,"$&/")+"/"),N(st,Y,W,"",function(ia){return ia})):st!=null&&(I(st)&&(st=K(st,W+(st.key==null||A&&A.key===st.key?"":(""+st.key).replace(Ct,"$&/")+"/")+bt)),Y.push(st)),1;bt=0;var Ut=tt===""?".":tt+":";if(F(A))for(var jt=0;jt<A.length;jt++)tt=A[jt],ht=Ut+Et(tt,jt),bt+=N(tt,Y,W,ht,st);else if(jt=x(A),typeof jt=="function")for(A=jt.call(A),jt=0;!(tt=A.next()).done;)tt=tt.value,ht=Ut+Et(tt,jt++),bt+=N(tt,Y,W,ht,st);else if(ht==="object"){if(typeof A.then=="function")return N(zt(A),Y,W,tt,st);throw Y=String(A),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return bt}function J(A,Y,W){if(A==null)return A;var tt=[],st=0;return N(A,tt,"","",function(ht){return Y.call(W,ht,st++)}),tt}function $(A){if(A._status===-1){var Y=A._result;Y=Y(),Y.then(function(W){(A._status===0||A._status===-1)&&(A._status=1,A._result=W)},function(W){(A._status===0||A._status===-1)&&(A._status=2,A._result=W)}),A._status===-1&&(A._status=0,A._result=Y)}if(A._status===1)return A._result.default;throw A._result}var rt=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},ft={map:J,forEach:function(A,Y,W){J(A,function(){Y.apply(this,arguments)},W)},count:function(A){var Y=0;return J(A,function(){Y++}),Y},toArray:function(A){return J(A,function(Y){return Y})||[]},only:function(A){if(!I(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return ot.Activity=v,ot.Children=ft,ot.Component=V,ot.Fragment=s,ot.Profiler=c,ot.PureComponent=L,ot.StrictMode=u,ot.Suspense=y,ot.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,ot.__COMPILER_RUNTIME={__proto__:null,c:function(A){return X.H.useMemoCache(A)}},ot.cache=function(A){return function(){return A.apply(null,arguments)}},ot.cacheSignal=function(){return null},ot.cloneElement=function(A,Y,W){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var tt=O({},A.props),st=A.key;if(Y!=null)for(ht in Y.key!==void 0&&(st=""+Y.key),Y)!P.call(Y,ht)||ht==="key"||ht==="__self"||ht==="__source"||ht==="ref"&&Y.ref===void 0||(tt[ht]=Y[ht]);var ht=arguments.length-2;if(ht===1)tt.children=W;else if(1<ht){for(var bt=Array(ht),Ut=0;Ut<ht;Ut++)bt[Ut]=arguments[Ut+2];tt.children=bt}return Z(A.type,st,tt)},ot.createContext=function(A){return A={$$typeof:f,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:d,_context:A},A},ot.createElement=function(A,Y,W){var tt,st={},ht=null;if(Y!=null)for(tt in Y.key!==void 0&&(ht=""+Y.key),Y)P.call(Y,tt)&&tt!=="key"&&tt!=="__self"&&tt!=="__source"&&(st[tt]=Y[tt]);var bt=arguments.length-2;if(bt===1)st.children=W;else if(1<bt){for(var Ut=Array(bt),jt=0;jt<bt;jt++)Ut[jt]=arguments[jt+2];st.children=Ut}if(A&&A.defaultProps)for(tt in bt=A.defaultProps,bt)st[tt]===void 0&&(st[tt]=bt[tt]);return Z(A,ht,st)},ot.createRef=function(){return{current:null}},ot.forwardRef=function(A){return{$$typeof:m,render:A}},ot.isValidElement=I,ot.lazy=function(A){return{$$typeof:g,_payload:{_status:-1,_result:A},_init:$}},ot.memo=function(A,Y){return{$$typeof:p,type:A,compare:Y===void 0?null:Y}},ot.startTransition=function(A){var Y=X.T,W={};X.T=W;try{var tt=A(),st=X.S;st!==null&&st(W,tt),typeof tt=="object"&&tt!==null&&typeof tt.then=="function"&&tt.then(Q,rt)}catch(ht){rt(ht)}finally{Y!==null&&W.types!==null&&(Y.types=W.types),X.T=Y}},ot.unstable_useCacheRefresh=function(){return X.H.useCacheRefresh()},ot.use=function(A){return X.H.use(A)},ot.useActionState=function(A,Y,W){return X.H.useActionState(A,Y,W)},ot.useCallback=function(A,Y){return X.H.useCallback(A,Y)},ot.useContext=function(A){return X.H.useContext(A)},ot.useDebugValue=function(){},ot.useDeferredValue=function(A,Y){return X.H.useDeferredValue(A,Y)},ot.useEffect=function(A,Y){return X.H.useEffect(A,Y)},ot.useEffectEvent=function(A){return X.H.useEffectEvent(A)},ot.useId=function(){return X.H.useId()},ot.useImperativeHandle=function(A,Y,W){return X.H.useImperativeHandle(A,Y,W)},ot.useInsertionEffect=function(A,Y){return X.H.useInsertionEffect(A,Y)},ot.useLayoutEffect=function(A,Y){return X.H.useLayoutEffect(A,Y)},ot.useMemo=function(A,Y){return X.H.useMemo(A,Y)},ot.useOptimistic=function(A,Y){return X.H.useOptimistic(A,Y)},ot.useReducer=function(A,Y,W){return X.H.useReducer(A,Y,W)},ot.useRef=function(A){return X.H.useRef(A)},ot.useState=function(A){return X.H.useState(A)},ot.useSyncExternalStore=function(A,Y,W){return X.H.useSyncExternalStore(A,Y,W)},ot.useTransition=function(){return X.H.useTransition()},ot.version="19.2.5",ot}var jp;function tf(){return jp||(jp=1,nc.exports=Xb()),nc.exports}var D=tf(),ac={exports:{}},Ml={},ic={exports:{}},lc={};/**
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 Vp;function kb(){return Vp||(Vp=1,function(a){function i(N,J){var $=N.length;N.push(J);t:for(;0<$;){var rt=$-1>>>1,ft=N[rt];if(0<c(ft,J))N[rt]=J,N[$]=ft,$=rt;else break t}}function s(N){return N.length===0?null:N[0]}function u(N){if(N.length===0)return null;var J=N[0],$=N.pop();if($!==J){N[0]=$;t:for(var rt=0,ft=N.length,A=ft>>>1;rt<A;){var Y=2*(rt+1)-1,W=N[Y],tt=Y+1,st=N[tt];if(0>c(W,$))tt<ft&&0>c(st,W)?(N[rt]=st,N[tt]=$,rt=tt):(N[rt]=W,N[Y]=$,rt=Y);else if(tt<ft&&0>c(st,$))N[rt]=st,N[tt]=$,rt=tt;else break t}}return J}function c(N,J){var $=N.sortIndex-J.sortIndex;return $!==0?$:N.id-J.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,S=3,x=!1,E=!1,O=!1,_=!1,V=typeof setTimeout=="function"?setTimeout:null,H=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function k(N){for(var J=s(p);J!==null;){if(J.callback===null)u(p);else if(J.startTime<=N)u(p),J.sortIndex=J.expirationTime,i(y,J);else break;J=s(p)}}function F(N){if(O=!1,k(N),!E)if(s(y)!==null)E=!0,Q||(Q=!0,lt());else{var J=s(p);J!==null&&zt(F,J.startTime-N)}}var Q=!1,X=-1,P=5,Z=-1;function K(){return _?!0:!(a.unstable_now()-Z<P)}function I(){if(_=!1,Q){var N=a.unstable_now();Z=N;var J=!0;try{t:{E=!1,O&&(O=!1,H(X),X=-1),x=!0;var $=S;try{e:{for(k(N),v=s(y);v!==null&&!(v.expirationTime>N&&K());){var rt=v.callback;if(typeof rt=="function"){v.callback=null,S=v.priorityLevel;var ft=rt(v.expirationTime<=N);if(N=a.unstable_now(),typeof ft=="function"){v.callback=ft,k(N),J=!0;break e}v===s(y)&&u(y),k(N)}else u(y);v=s(y)}if(v!==null)J=!0;else{var A=s(p);A!==null&&zt(F,A.startTime-N),J=!1}}break t}finally{v=null,S=$,x=!1}J=void 0}}finally{J?lt():Q=!1}}}var lt;if(typeof L=="function")lt=function(){L(I)};else if(typeof MessageChannel<"u"){var Ct=new MessageChannel,Et=Ct.port2;Ct.port1.onmessage=I,lt=function(){Et.postMessage(null)}}else lt=function(){V(I,0)};function zt(N,J){X=V(function(){N(a.unstable_now())},J)}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(N){N.callback=null},a.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<N?Math.floor(1e3/N):5},a.unstable_getCurrentPriorityLevel=function(){return S},a.unstable_next=function(N){switch(S){case 1:case 2:case 3:var J=3;break;default:J=S}var $=S;S=J;try{return N()}finally{S=$}},a.unstable_requestPaint=function(){_=!0},a.unstable_runWithPriority=function(N,J){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var $=S;S=N;try{return J()}finally{S=$}},a.unstable_scheduleCallback=function(N,J,$){var rt=a.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?rt+$:rt):$=rt,N){case 1:var ft=-1;break;case 2:ft=250;break;case 5:ft=1073741823;break;case 4:ft=1e4;break;default:ft=5e3}return ft=$+ft,N={id:g++,callback:J,priorityLevel:N,startTime:$,expirationTime:ft,sortIndex:-1},$>rt?(N.sortIndex=$,i(p,N),s(y)===null&&N===s(p)&&(O?(H(X),X=-1):O=!0,zt(F,$-rt))):(N.sortIndex=ft,i(y,N),E||x||(E=!0,Q||(Q=!0,lt()))),N},a.unstable_shouldYield=K,a.unstable_wrapCallback=function(N){var J=S;return function(){var $=S;S=J;try{return N.apply(this,arguments)}finally{S=$}}}}(lc)),lc}var Np;function Zb(){return Np||(Np=1,ic.exports=kb()),ic.exports}var sc={exports:{}},re={};/**
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 Bp;function Qb(){if(Bp)return re;Bp=1;var a=tf();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 re.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,re.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)},re.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()}},re.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))},re.prefetchDNS=function(y){typeof y=="string"&&u.d.D(y)},re.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var g=p.as,v=m(g,p.crossOrigin),S=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:S,fetchPriority:x}):g==="script"&&u.d.X(y,{crossOrigin:v,integrity:S,fetchPriority:x,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},re.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)},re.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})}},re.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)},re.requestFormReset=function(y){u.d.r(y)},re.unstable_batchedUpdates=function(y,p){return y(p)},re.useFormState=function(y,p,g){return f.H.useFormState(y,p,g)},re.useFormStatus=function(){return f.H.useHostTransitionStatus()},re.version="19.2.5",re}var Lp;function Kb(){if(Lp)return sc.exports;Lp=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(),sc.exports=Qb(),sc.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 Up;function Jb(){if(Up)return Ml;Up=1;var a=Zb(),i=tf(),s=Kb();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,b=r.child;b;){if(b===n){h=!0,n=r,l=o;break}if(b===l){h=!0,l=r,n=o;break}b=b.sibling}if(!h){for(b=o.child;b;){if(b===n){h=!0,n=o,l=r;break}if(b===l){h=!0,l=o,n=r;break}b=b.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,S=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),V=Symbol.for("react.profiler"),H=Symbol.for("react.consumer"),L=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),Q=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),K=Symbol.for("react.memo_cache_sentinel"),I=Symbol.iterator;function lt(t){return t===null||typeof t!="object"?null:(t=I&&t[I]||t["@@iterator"],typeof t=="function"?t:null)}var Ct=Symbol.for("react.client.reference");function Et(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Ct?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case O:return"Fragment";case V:return"Profiler";case _:return"StrictMode";case F:return"Suspense";case Q:return"SuspenseList";case Z:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case E:return"Portal";case L:return t.displayName||"Context";case H:return(t._context.displayName||"Context")+".Consumer";case k: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:Et(t.type)||"Memo";case P:e=t._payload,t=t._init;try{return Et(t(e))}catch{}}return null}var zt=Array.isArray,N=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$={pending:!1,data:null,method:null,action:null},rt=[],ft=-1;function A(t){return{current:t}}function Y(t){0>ft||(t.current=rt[ft],rt[ft]=null,ft--)}function W(t,e){ft++,rt[ft]=t.current,t.current=e}var tt=A(null),st=A(null),ht=A(null),bt=A(null);function Ut(t,e){switch(W(ht,e),W(st,t),W(tt,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Im(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Im(e),t=tp(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Y(tt),W(tt,t)}function jt(){Y(tt),Y(st),Y(ht)}function ia(t){t.memoizedState!==null&&W(bt,t);var e=tt.current,n=tp(e,t.type);e!==n&&(W(st,t),W(tt,n))}function Cn(t){st.current===t&&(Y(tt),Y(st)),bt.current===t&&(Y(bt),Sl._currentValue=$)}var wa,Yl;function sn(t){if(wa===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);wa=e&&e[1]||"",Yl=-1<n.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+wa+t+Yl}var Ri=!1;function wi(t,e){if(!t||Ri)return"";Ri=!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(B){var j=B}Reflect.construct(t,[],G)}else{try{G.call()}catch(B){j=B}t.call(G.prototype)}}else{try{throw Error()}catch(B){j=B}(G=t())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(B){if(B&&j&&typeof B.stack=="string")return[B.stack,j.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],b=o[1];if(h&&b){var T=h.split(`
44
- `),z=b.split(`
45
- `);for(r=l=0;l<T.length&&!T[l].includes("DetermineComponentFrameRoot");)l++;for(;r<z.length&&!z[r].includes("DetermineComponentFrameRoot");)r++;if(l===T.length||r===z.length)for(l=T.length-1,r=z.length-1;1<=l&&0<=r&&T[l]!==z[r];)r--;for(;1<=l&&0<=r;l--,r--)if(T[l]!==z[r]){if(l!==1||r!==1)do if(l--,r--,0>r||T[l]!==z[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{Ri=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?sn(n):""}function zi(t,e){switch(t.tag){case 26:case 27:case 5:return sn(t.type);case 16:return sn("Lazy");case 13:return t.child!==e&&e!==null?sn("Suspense Fallback"):sn("Suspense");case 19:return sn("SuspenseList");case 0:case 15:return wi(t.type,!1);case 11:return wi(t.type.render,!1);case 1:return wi(t.type,!0);case 31:return sn("Activity");default:return""}}function ql(t){try{var e="",n=null;do e+=zi(t,n),n=t,t=t.return;while(t);return e}catch(l){return`
47
- Error generating stack: `+l.message+`
48
- `+l.stack}}var za=Object.prototype.hasOwnProperty,Oa=a.unstable_scheduleCallback,Oi=a.unstable_cancelCallback,qu=a.unstable_shouldYield,Gl=a.unstable_requestPaint,oe=a.unstable_now,te=a.unstable_getCurrentPriorityLevel,Se=a.unstable_ImmediatePriority,un=a.unstable_UserBlockingPriority,_a=a.unstable_NormalPriority,xv=a.unstable_LowPriority,jf=a.unstable_IdlePriority,Ev=a.log,Av=a.unstable_setDisableYieldValue,_i=null,Te=null;function Dn(t){if(typeof Ev=="function"&&Av(t),Te&&typeof Te.setStrictMode=="function")try{Te.setStrictMode(_i,t)}catch{}}var xe=Math.clz32?Math.clz32:Dv,Mv=Math.log,Cv=Math.LN2;function Dv(t){return t>>>=0,t===0?32:31-(Mv(t)/Cv|0)|0}var Xl=256,kl=262144,Zl=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 Ql(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 b=l&134217727;return b!==0?(l=b&~o,l!==0?r=la(l):(h&=b,h!==0?r=la(h):n||(n=b&~t,n!==0&&(r=la(n))))):(b=l&~o,b!==0?r=la(b):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 Rv(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 Vf(){var t=Zl;return Zl<<=1,(Zl&62914560)===0&&(Zl=4194304),t}function Gu(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Vi(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function wv(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 b=t.entanglements,T=t.expirationTimes,z=t.hiddenUpdates;for(n=h&~n;0<n;){var U=31-xe(n),G=1<<U;b[U]=0,T[U]=-1;var j=z[U];if(j!==null)for(z[U]=null,U=0;U<j.length;U++){var B=j[U];B!==null&&(B.lane&=-536870913)}n&=~G}l!==0&&Nf(t,l,0),o!==0&&r===0&&t.tag!==0&&(t.suspendedLanes|=o&~(h&~e))}function Nf(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-xe(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|n&261930}function Bf(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var l=31-xe(n),r=1<<l;r&e|t[l]&e&&(t[l]|=e),n&=~r}}function Lf(t,e){var n=e&-e;return n=(n&42)!==0?1:Xu(n),(n&(t.suspendedLanes|e))!==0?0:n}function Xu(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 ku(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Uf(){var t=J.p;return t!==0?t:(t=window.event,t===void 0?32:Ep(t.type))}function Hf(t,e){var n=J.p;try{return J.p=t,e()}finally{J.p=n}}var Rn=Math.random().toString(36).slice(2),ee="__reactFiber$"+Rn,he="__reactProps$"+Rn,ja="__reactContainer$"+Rn,Zu="__reactEvents$"+Rn,zv="__reactListeners$"+Rn,Ov="__reactHandles$"+Rn,Yf="__reactResources$"+Rn,Ni="__reactMarker$"+Rn;function Qu(t){delete t[ee],delete t[he],delete t[Zu],delete t[zv],delete t[Ov]}function Va(t){var e=t[ee];if(e)return e;for(var n=t.parentNode;n;){if(e=n[ja]||n[ee]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=up(t);t!==null;){if(n=t[ee])return n;t=up(t)}return e}t=n,n=t.parentNode}return null}function Na(t){if(t=t[ee]||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 Bi(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(u(33))}function Ba(t){var e=t[Yf];return e||(e=t[Yf]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Wt(t){t[Ni]=!0}var qf=new Set,Gf={};function sa(t,e){La(t,e),La(t+"Capture",e)}function La(t,e){for(Gf[t]=e,t=0;t<e.length;t++)qf.add(e[t])}var _v=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]*$"),Xf={},kf={};function jv(t){return za.call(kf,t)?!0:za.call(Xf,t)?!1:_v.test(t)?kf[t]=!0:(Xf[t]=!0,!1)}function Kl(t,e,n){if(jv(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 Jl(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 Zf(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Vv(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 Ku(t){if(!t._valueTracker){var e=Zf(t)?"checked":"value";t._valueTracker=Vv(t,e,""+t[e])}}function Qf(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),l="";return t&&(l=Zf(t)?t.checked?"true":"false":t.value),t=l,t!==n?(e.setValue(t),!0):!1}function Pl(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 Nv=/[\n"\\]/g;function _e(t){return t.replace(Nv,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Ju(t,e,n,l,r,o,h,b){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?Pu(t,h,Oe(e)):n!=null?Pu(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"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?t.name=""+Oe(b):t.removeAttribute("name")}function Kf(t,e,n,l,r,o,h,b){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)){Ku(t);return}n=n!=null?""+Oe(n):"",e=e!=null?""+Oe(e):n,b||e===t.value||(t.value=e),t.defaultValue=e}l=l??r,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=b?t.checked:!!l,t.defaultChecked=!!l,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(t.name=h),Ku(t)}function Pu(t,e,n){e==="number"&&Pl(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 Jf(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 Pf(t,e,n,l){if(e==null){if(l!=null){if(n!=null)throw Error(u(92));if(zt(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),Ku(t)}function Ha(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Bv=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 Ff(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||Bv.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Wf(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&&Ff(t,r,l)}else for(var o in e)e.hasOwnProperty(o)&&Ff(t,o,e[o])}function Fu(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 Lv=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"]]),Uv=/^[\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 Fl(t){return Uv.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function on(){}var Wu=null;function $u(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ya=null,qa=null;function $f(t){var e=Na(t);if(e&&(t=e.stateNode)){var n=t[he]||null;t:switch(t=e.stateNode,e.type){case"input":if(Ju(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="'+_e(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var l=n[e];if(l!==t&&l.form===t.form){var r=l[he]||null;if(!r)throw Error(u(90));Ju(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&&Qf(l)}break t;case"textarea":Jf(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Ua(t,!!n.multiple,e,!1)}}}var Iu=!1;function If(t,e,n){if(Iu)return t(e,n);Iu=!0;try{var l=t(e);return l}finally{if(Iu=!1,(Ya!==null||qa!==null)&&(Ls(),Ya&&(e=Ya,t=qa,qa=Ya=null,$f(e),t)))for(e=0;e<t.length;e++)$f(t[e])}}function Li(t,e){var n=t.stateNode;if(n===null)return null;var l=n[he]||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"),tr=!1;if(cn)try{var Ui={};Object.defineProperty(Ui,"passive",{get:function(){tr=!0}}),window.addEventListener("test",Ui,Ui),window.removeEventListener("test",Ui,Ui)}catch{tr=!1}var wn=null,er=null,Wl=null;function td(){if(Wl)return Wl;var t,e=er,n=e.length,l,r="value"in wn?wn.value:wn.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 Wl=r.slice(t,1<l?1-l:void 0)}function $l(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 Il(){return!0}function ed(){return!1}function me(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 b in t)t.hasOwnProperty(b)&&(n=t[b],this[b]=n?n(o):o[b]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Il:ed,this.isPropagationStopped=ed,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=Il)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Il)},persist:function(){},isPersistent:Il}),e}var ua={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ts=me(ua),Hi=v({},ua,{view:0,detail:0}),Hv=me(Hi),nr,ar,Yi,es=v({},Hi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lr,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!==Yi&&(Yi&&t.type==="mousemove"?(nr=t.screenX-Yi.screenX,ar=t.screenY-Yi.screenY):ar=nr=0,Yi=t),nr)},movementY:function(t){return"movementY"in t?t.movementY:ar}}),nd=me(es),Yv=v({},es,{dataTransfer:0}),qv=me(Yv),Gv=v({},Hi,{relatedTarget:0}),ir=me(Gv),Xv=v({},ua,{animationName:0,elapsedTime:0,pseudoElement:0}),kv=me(Xv),Zv=v({},ua,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Qv=me(Zv),Kv=v({},ua,{data:0}),ad=me(Kv),Jv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Pv={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"},Fv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Wv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Fv[t])?!!e[t]:!1}function lr(){return Wv}var $v=v({},Hi,{key:function(t){if(t.key){var e=Jv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=$l(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Pv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lr,charCode:function(t){return t.type==="keypress"?$l(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?$l(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Iv=me($v),t1=v({},es,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),id=me(t1),e1=v({},Hi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lr}),n1=me(e1),a1=v({},ua,{propertyName:0,elapsedTime:0,pseudoElement:0}),i1=me(a1),l1=v({},es,{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}),s1=me(l1),u1=v({},ua,{newState:0,oldState:0}),r1=me(u1),o1=[9,13,27,32],sr=cn&&"CompositionEvent"in window,qi=null;cn&&"documentMode"in document&&(qi=document.documentMode);var c1=cn&&"TextEvent"in window&&!qi,ld=cn&&(!sr||qi&&8<qi&&11>=qi),sd=" ",ud=!1;function rd(t,e){switch(t){case"keyup":return o1.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function od(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ga=!1;function f1(t,e){switch(t){case"compositionend":return od(e);case"keypress":return e.which!==32?null:(ud=!0,sd);case"textInput":return t=e.data,t===sd&&ud?null:t;default:return null}}function d1(t,e){if(Ga)return t==="compositionend"||!sr&&rd(t,e)?(t=td(),Wl=er=wn=null,Ga=!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 ld&&e.locale!=="ko"?null:e.data;default:return null}}var h1={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 cd(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!h1[t.type]:e==="textarea"}function fd(t,e,n,l){Ya?qa?qa.push(l):qa=[l]:Ya=l,e=ks(e,"onChange"),0<e.length&&(n=new ts("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var Gi=null,Xi=null;function m1(t){Km(t,0)}function ns(t){var e=Bi(t);if(Qf(e))return t}function dd(t,e){if(t==="change")return e}var hd=!1;if(cn){var ur;if(cn){var rr="oninput"in document;if(!rr){var md=document.createElement("div");md.setAttribute("oninput","return;"),rr=typeof md.oninput=="function"}ur=rr}else ur=!1;hd=ur&&(!document.documentMode||9<document.documentMode)}function pd(){Gi&&(Gi.detachEvent("onpropertychange",yd),Xi=Gi=null)}function yd(t){if(t.propertyName==="value"&&ns(Xi)){var e=[];fd(e,Xi,t,$u(t)),If(m1,e)}}function p1(t,e,n){t==="focusin"?(pd(),Gi=e,Xi=n,Gi.attachEvent("onpropertychange",yd)):t==="focusout"&&pd()}function y1(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ns(Xi)}function g1(t,e){if(t==="click")return ns(e)}function v1(t,e){if(t==="input"||t==="change")return ns(e)}function b1(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ee=typeof Object.is=="function"?Object.is:b1;function ki(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(!za.call(e,r)||!Ee(t[r],e[r]))return!1}return!0}function gd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function vd(t,e){var n=gd(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=gd(n)}}function bd(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?bd(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Sd(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Pl(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Pl(t.document)}return e}function or(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 S1=cn&&"documentMode"in document&&11>=document.documentMode,Xa=null,cr=null,Zi=null,fr=!1;function Td(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;fr||Xa==null||Xa!==Pl(l)||(l=Xa,"selectionStart"in l&&or(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}),Zi&&ki(Zi,l)||(Zi=l,l=ks(cr,"onSelect"),0<l.length&&(e=new ts("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=Xa)))}function ra(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var ka={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")},dr={},xd={};cn&&(xd=document.createElement("div").style,"AnimationEvent"in window||(delete ka.animationend.animation,delete ka.animationiteration.animation,delete ka.animationstart.animation),"TransitionEvent"in window||delete ka.transitionend.transition);function oa(t){if(dr[t])return dr[t];if(!ka[t])return t;var e=ka[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in xd)return dr[t]=e[n];return t}var Ed=oa("animationend"),Ad=oa("animationiteration"),Md=oa("animationstart"),T1=oa("transitionrun"),x1=oa("transitionstart"),E1=oa("transitioncancel"),Cd=oa("transitionend"),Dd=new Map,hr="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(" ");hr.push("scrollEnd");function Xe(t,e){Dd.set(t,e),sa(e,[t])}var as=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)},je=[],Za=0,mr=0;function is(){for(var t=Za,e=mr=Za=0;e<t;){var n=je[e];je[e++]=null;var l=je[e];je[e++]=null;var r=je[e];je[e++]=null;var o=je[e];if(je[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&&Rd(n,r,o)}}function ls(t,e,n,l){je[Za++]=t,je[Za++]=e,je[Za++]=n,je[Za++]=l,mr|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function pr(t,e,n,l){return ls(t,e,n,l),ss(t)}function ca(t,e){return ls(t,null,null,e),ss(t)}function Rd(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-xe(n),t=o.hiddenUpdates,l=t[r],l===null?t[r]=[e]:l.push(e),e.lane=n|536870912),o):null}function ss(t){if(50<hl)throw hl=0,Mo=null,Error(u(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Qa={};function A1(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 A1(t,e,n,l)}function yr(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 wd(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 us(t,e,n,l,r,o){var h=0;if(l=t,typeof t=="function")yr(t)&&(h=1);else if(typeof t=="string")h=wb(t,n,tt.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 O:return fa(n.children,r,o,e);case _:h=8,r|=24;break;case V:return t=Ae(12,n,e,r|2),t.elementType=V,t.lanes=o,t;case F:return t=Ae(13,n,e,r),t.elementType=F,t.lanes=o,t;case Q:return t=Ae(19,n,e,r),t.elementType=Q,t.lanes=o,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case L:h=10;break t;case H:h=9;break t;case k:h=11;break t;case X:h=14;break t;case P: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 gr(t,e,n){return t=Ae(6,t,null,e),t.lanes=n,t}function zd(t){var e=Ae(18,null,null,0);return e.stateNode=t,e}function vr(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 Od=new WeakMap;function Ve(t,e){if(typeof t=="object"&&t!==null){var n=Od.get(t);return n!==void 0?n:(e={value:t,source:e,stack:ql(e)},Od.set(t,e),e)}return{value:t,source:e,stack:ql(e)}}var Ka=[],Ja=0,rs=null,Qi=0,Ne=[],Be=0,zn=null,Fe=1,We="";function dn(t,e){Ka[Ja++]=Qi,Ka[Ja++]=rs,rs=t,Qi=e}function _d(t,e,n){Ne[Be++]=Fe,Ne[Be++]=We,Ne[Be++]=zn,zn=t;var l=Fe;t=We;var r=32-xe(l)-1;l&=~(1<<r),n+=1;var o=32-xe(e)+r;if(30<o){var h=r-r%5;o=(l&(1<<h)-1).toString(32),l>>=h,r-=h,Fe=1<<32-xe(e)+r|n<<r|l,We=o+t}else Fe=1<<o|n<<r|l,We=t}function br(t){t.return!==null&&(dn(t,1),_d(t,1,0))}function Sr(t){for(;t===rs;)rs=Ka[--Ja],Ka[Ja]=null,Qi=Ka[--Ja],Ka[Ja]=null;for(;t===zn;)zn=Ne[--Be],Ne[Be]=null,We=Ne[--Be],Ne[Be]=null,Fe=Ne[--Be],Ne[Be]=null}function jd(t,e){Ne[Be++]=Fe,Ne[Be++]=We,Ne[Be++]=zn,Fe=e.id,We=e.overflow,zn=t}var ne=null,Vt=null,vt=!1,On=null,Le=!1,Tr=Error(u(519));function _n(t){var e=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ki(Ve(e,t)),Tr}function Vd(t){var e=t.stateNode,n=t.type,l=t.memoizedProps;switch(e[ee]=t,e[he]=l,n){case"dialog":pt("cancel",e),pt("close",e);break;case"iframe":case"object":case"embed":pt("load",e);break;case"video":case"audio":for(n=0;n<pl.length;n++)pt(pl[n],e);break;case"source":pt("error",e);break;case"img":case"image":case"link":pt("error",e),pt("load",e);break;case"details":pt("toggle",e);break;case"input":pt("invalid",e),Kf(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":pt("invalid",e);break;case"textarea":pt("invalid",e),Pf(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||Wm(e.textContent,n)?(l.popover!=null&&(pt("beforetoggle",e),pt("toggle",e)),l.onScroll!=null&&pt("scroll",e),l.onScrollEnd!=null&&pt("scrollend",e),l.onClick!=null&&(e.onclick=on),e=!0):e=!1,e||_n(t,!0)}function Nd(t){for(ne=t.return;ne;)switch(ne.tag){case 5:case 31:case 13:Le=!1;return;case 27:case 3:Le=!0;return;default:ne=ne.return}}function Pa(t){if(t!==ne)return!1;if(!vt)return Nd(t),vt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||Yo(t.type,t.memoizedProps)),n=!n),n&&Vt&&_n(t),Nd(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));Vt=sp(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));Vt=sp(t)}else e===27?(e=Vt,Qn(t.type)?(t=Zo,Zo=null,Vt=t):Vt=e):Vt=ne?He(t.stateNode.nextSibling):null;return!0}function da(){Vt=ne=null,vt=!1}function xr(){var t=On;return t!==null&&(ve===null?ve=t:ve.push.apply(ve,t),On=null),t}function Ki(t){On===null?On=[t]:On.push(t)}var Er=A(null),ha=null,hn=null;function jn(t,e,n){W(Er,e._currentValue),e._currentValue=n}function mn(t){t._currentValue=Er.current,Y(Er)}function Ar(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 Mr(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 b=o;o=r;for(var T=0;T<e.length;T++)if(b.context===e[T]){o.lanes|=n,b=o.alternate,b!==null&&(b.lanes|=n),Ar(o.return,n,t),l||(h=null);break t}o=b.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),Ar(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 Fa(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 b=r.type;Ee(r.pendingProps.value,h.value)||(t!==null?t.push(b):t=[b])}}else if(r===bt.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&&Mr(e,t,n,l),e.flags|=262144}function os(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 ae(t){return Bd(ha,t)}function cs(t,e){return ha===null&&ma(t),Bd(t,e)}function Bd(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 M1=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()})}},C1=a.unstable_scheduleCallback,D1=a.unstable_NormalPriority,kt={$$typeof:L,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Cr(){return{controller:new M1,data:new Map,refCount:0}}function Ji(t){t.refCount--,t.refCount===0&&C1(D1,function(){t.controller.abort()})}var Pi=null,Dr=0,Wa=0,$a=null;function R1(t,e){if(Pi===null){var n=Pi=[];Dr=0,Wa=Oo(),$a={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Dr++,e.then(Ld,Ld),e}function Ld(){if(--Dr===0&&Pi!==null){$a!==null&&($a.status="fulfilled");var t=Pi;Pi=null,Wa=0,$a=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function w1(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 Ud=N.S;N.S=function(t,e){Tm=oe(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&R1(t,e),Ud!==null&&Ud(t,e)};var pa=A(null);function Rr(){var t=pa.current;return t!==null?t:Ot.pooledCache}function fs(t,e){e===null?W(pa,pa.current):W(pa,e.pool)}function Hd(){var t=Rr();return t===null?null:{parent:kt._currentValue,pool:t}}var Ia=Error(u(460)),wr=Error(u(474)),ds=Error(u(542)),hs={then:function(){}};function Yd(t){return t=t.status,t==="fulfilled"||t==="rejected"}function qd(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,Xd(t),t;default:if(typeof e.status=="string")e.then(on,on);else{if(t=Ot,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,Xd(t),t}throw ga=e,Ia}}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,Ia):n}}var ga=null;function Gd(){if(ga===null)throw Error(u(459));var t=ga;return ga=null,t}function Xd(t){if(t===Ia||t===ds)throw Error(u(483))}var ti=null,Fi=0;function ms(t){var e=Fi;return Fi+=1,ti===null&&(ti=[]),qd(ti,t,e)}function Wi(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function ps(t,e){throw e.$$typeof===S?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,C){if(t){var w=R.deletions;w===null?(R.deletions=[C],R.flags|=16):w.push(C)}}function n(R,C){if(!t)return null;for(;C!==null;)e(R,C),C=C.sibling;return null}function l(R){for(var C=new Map;R!==null;)R.key!==null?C.set(R.key,R):C.set(R.index,R),R=R.sibling;return C}function r(R,C){return R=fn(R,C),R.index=0,R.sibling=null,R}function o(R,C,w){return R.index=w,t?(w=R.alternate,w!==null?(w=w.index,w<C?(R.flags|=67108866,C):w):(R.flags|=67108866,C)):(R.flags|=1048576,C)}function h(R){return t&&R.alternate===null&&(R.flags|=67108866),R}function b(R,C,w,q){return C===null||C.tag!==6?(C=gr(w,R.mode,q),C.return=R,C):(C=r(C,w),C.return=R,C)}function T(R,C,w,q){var it=w.type;return it===O?U(R,C,w.props.children,q,w.key):C!==null&&(C.elementType===it||typeof it=="object"&&it!==null&&it.$$typeof===P&&ya(it)===C.type)?(C=r(C,w.props),Wi(C,w),C.return=R,C):(C=us(w.type,w.key,w.props,null,R.mode,q),Wi(C,w),C.return=R,C)}function z(R,C,w,q){return C===null||C.tag!==4||C.stateNode.containerInfo!==w.containerInfo||C.stateNode.implementation!==w.implementation?(C=vr(w,R.mode,q),C.return=R,C):(C=r(C,w.children||[]),C.return=R,C)}function U(R,C,w,q,it){return C===null||C.tag!==7?(C=fa(w,R.mode,q,it),C.return=R,C):(C=r(C,w),C.return=R,C)}function G(R,C,w){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=gr(""+C,R.mode,w),C.return=R,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case x:return w=us(C.type,C.key,C.props,null,R.mode,w),Wi(w,C),w.return=R,w;case E:return C=vr(C,R.mode,w),C.return=R,C;case P:return C=ya(C),G(R,C,w)}if(zt(C)||lt(C))return C=fa(C,R.mode,w,null),C.return=R,C;if(typeof C.then=="function")return G(R,ms(C),w);if(C.$$typeof===L)return G(R,cs(R,C),w);ps(R,C)}return null}function j(R,C,w,q){var it=C!==null?C.key:null;if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return it!==null?null:b(R,C,""+w,q);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case x:return w.key===it?T(R,C,w,q):null;case E:return w.key===it?z(R,C,w,q):null;case P:return w=ya(w),j(R,C,w,q)}if(zt(w)||lt(w))return it!==null?null:U(R,C,w,q,null);if(typeof w.then=="function")return j(R,C,ms(w),q);if(w.$$typeof===L)return j(R,C,cs(R,w),q);ps(R,w)}return null}function B(R,C,w,q,it){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return R=R.get(w)||null,b(C,R,""+q,it);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case x:return R=R.get(q.key===null?w:q.key)||null,T(C,R,q,it);case E:return R=R.get(q.key===null?w:q.key)||null,z(C,R,q,it);case P:return q=ya(q),B(R,C,w,q,it)}if(zt(q)||lt(q))return R=R.get(w)||null,U(C,R,q,it,null);if(typeof q.then=="function")return B(R,C,w,ms(q),it);if(q.$$typeof===L)return B(R,C,w,cs(C,q),it);ps(C,q)}return null}function et(R,C,w,q){for(var it=null,St=null,at=C,dt=C=0,gt=null;at!==null&&dt<w.length;dt++){at.index>dt?(gt=at,at=null):gt=at.sibling;var Tt=j(R,at,w[dt],q);if(Tt===null){at===null&&(at=gt);break}t&&at&&Tt.alternate===null&&e(R,at),C=o(Tt,C,dt),St===null?it=Tt:St.sibling=Tt,St=Tt,at=gt}if(dt===w.length)return n(R,at),vt&&dn(R,dt),it;if(at===null){for(;dt<w.length;dt++)at=G(R,w[dt],q),at!==null&&(C=o(at,C,dt),St===null?it=at:St.sibling=at,St=at);return vt&&dn(R,dt),it}for(at=l(at);dt<w.length;dt++)gt=B(at,R,dt,w[dt],q),gt!==null&&(t&&gt.alternate!==null&&at.delete(gt.key===null?dt:gt.key),C=o(gt,C,dt),St===null?it=gt:St.sibling=gt,St=gt);return t&&at.forEach(function(Wn){return e(R,Wn)}),vt&&dn(R,dt),it}function ut(R,C,w,q){if(w==null)throw Error(u(151));for(var it=null,St=null,at=C,dt=C=0,gt=null,Tt=w.next();at!==null&&!Tt.done;dt++,Tt=w.next()){at.index>dt?(gt=at,at=null):gt=at.sibling;var Wn=j(R,at,Tt.value,q);if(Wn===null){at===null&&(at=gt);break}t&&at&&Wn.alternate===null&&e(R,at),C=o(Wn,C,dt),St===null?it=Wn:St.sibling=Wn,St=Wn,at=gt}if(Tt.done)return n(R,at),vt&&dn(R,dt),it;if(at===null){for(;!Tt.done;dt++,Tt=w.next())Tt=G(R,Tt.value,q),Tt!==null&&(C=o(Tt,C,dt),St===null?it=Tt:St.sibling=Tt,St=Tt);return vt&&dn(R,dt),it}for(at=l(at);!Tt.done;dt++,Tt=w.next())Tt=B(at,R,dt,Tt.value,q),Tt!==null&&(t&&Tt.alternate!==null&&at.delete(Tt.key===null?dt:Tt.key),C=o(Tt,C,dt),St===null?it=Tt:St.sibling=Tt,St=Tt);return t&&at.forEach(function(Yb){return e(R,Yb)}),vt&&dn(R,dt),it}function wt(R,C,w,q){if(typeof w=="object"&&w!==null&&w.type===O&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case x:t:{for(var it=w.key;C!==null;){if(C.key===it){if(it=w.type,it===O){if(C.tag===7){n(R,C.sibling),q=r(C,w.props.children),q.return=R,R=q;break t}}else if(C.elementType===it||typeof it=="object"&&it!==null&&it.$$typeof===P&&ya(it)===C.type){n(R,C.sibling),q=r(C,w.props),Wi(q,w),q.return=R,R=q;break t}n(R,C);break}else e(R,C);C=C.sibling}w.type===O?(q=fa(w.props.children,R.mode,q,w.key),q.return=R,R=q):(q=us(w.type,w.key,w.props,null,R.mode,q),Wi(q,w),q.return=R,R=q)}return h(R);case E:t:{for(it=w.key;C!==null;){if(C.key===it)if(C.tag===4&&C.stateNode.containerInfo===w.containerInfo&&C.stateNode.implementation===w.implementation){n(R,C.sibling),q=r(C,w.children||[]),q.return=R,R=q;break t}else{n(R,C);break}else e(R,C);C=C.sibling}q=vr(w,R.mode,q),q.return=R,R=q}return h(R);case P:return w=ya(w),wt(R,C,w,q)}if(zt(w))return et(R,C,w,q);if(lt(w)){if(it=lt(w),typeof it!="function")throw Error(u(150));return w=it.call(w),ut(R,C,w,q)}if(typeof w.then=="function")return wt(R,C,ms(w),q);if(w.$$typeof===L)return wt(R,C,cs(R,w),q);ps(R,w)}return typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint"?(w=""+w,C!==null&&C.tag===6?(n(R,C.sibling),q=r(C,w),q.return=R,R=q):(n(R,C),q=gr(w,R.mode,q),q.return=R,R=q),h(R)):n(R,C)}return function(R,C,w,q){try{Fi=0;var it=wt(R,C,w,q);return ti=null,it}catch(at){if(at===Ia||at===ds)throw at;var St=Ae(29,at,null,R.mode);return St.lanes=q,St.return=R,St}finally{}}}var va=kd(!0),Zd=kd(!1),Vn=!1;function zr(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Or(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 Nn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Bn(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(xt&2)!==0){var r=l.pending;return r===null?e.next=e:(e.next=r.next,r.next=e),l.pending=e,e=ss(t),Rd(t,null,n),e}return ls(t,l,e,n),ss(t)}function $i(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,Bf(t,n)}}function _r(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 jr=!1;function Ii(){if(jr){var t=$a;if(t!==null)throw t}}function tl(t,e,n,l){jr=!1;var r=t.updateQueue;Vn=!1;var o=r.firstBaseUpdate,h=r.lastBaseUpdate,b=r.shared.pending;if(b!==null){r.shared.pending=null;var T=b,z=T.next;T.next=null,h===null?o=z:h.next=z,h=T;var U=t.alternate;U!==null&&(U=U.updateQueue,b=U.lastBaseUpdate,b!==h&&(b===null?U.firstBaseUpdate=z:b.next=z,U.lastBaseUpdate=T))}if(o!==null){var G=r.baseState;h=0,U=z=T=null,b=o;do{var j=b.lane&-536870913,B=j!==b.lane;if(B?(yt&j)===j:(l&j)===j){j!==0&&j===Wa&&(jr=!0),U!==null&&(U=U.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});t:{var et=t,ut=b;j=e;var wt=n;switch(ut.tag){case 1:if(et=ut.payload,typeof et=="function"){G=et.call(wt,G,j);break t}G=et;break t;case 3:et.flags=et.flags&-65537|128;case 0:if(et=ut.payload,j=typeof et=="function"?et.call(wt,G,j):et,j==null)break t;G=v({},G,j);break t;case 2:Vn=!0}}j=b.callback,j!==null&&(t.flags|=64,B&&(t.flags|=8192),B=r.callbacks,B===null?r.callbacks=[j]:B.push(j))}else B={lane:j,tag:b.tag,payload:b.payload,callback:b.callback,next:null},U===null?(z=U=B,T=G):U=U.next=B,h|=j;if(b=b.next,b===null){if(b=r.shared.pending,b===null)break;B=b,b=B.next,B.next=null,r.lastBaseUpdate=B,r.shared.pending=null}}while(!0);U===null&&(T=G),r.baseState=T,r.firstBaseUpdate=z,r.lastBaseUpdate=U,o===null&&(r.shared.lanes=0),qn|=h,t.lanes=h,t.memoizedState=G}}function Qd(t,e){if(typeof t!="function")throw Error(u(191,t));t.call(e)}function Kd(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Qd(n[t],e)}var ei=A(null),ys=A(0);function Jd(t,e){t=En,W(ys,t),W(ei,e),En=t|e.baseLanes}function Vr(){W(ys,En),W(ei,ei.current)}function Nr(){En=ys.current,Y(ei),Y(ys)}var Me=A(null),Ue=null;function Ln(t){var e=t.alternate;W(Gt,Gt.current&1),W(Me,t),Ue===null&&(e===null||ei.current!==null||e.memoizedState!==null)&&(Ue=t)}function Br(t){W(Gt,Gt.current),W(Me,t),Ue===null&&(Ue=t)}function Pd(t){t.tag===22?(W(Gt,Gt.current),W(Me,t),Ue===null&&(Ue=t)):Un()}function Un(){W(Gt,Gt.current),W(Me,Me.current)}function Ce(t){Y(Me),Ue===t&&(Ue=null),Y(Gt)}var Gt=A(0);function gs(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Xo(n)||ko(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,ct=null,Dt=null,Zt=null,vs=!1,ni=!1,ba=!1,bs=0,el=0,ai=null,z1=0;function Ht(){throw Error(u(321))}function Lr(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 Ur(t,e,n,l,r,o){return pn=o,ct=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,N.H=t===null||t.memoizedState===null?_h:Ir,ba=!1,o=n(l,r),ba=!1,ni&&(o=Wd(e,n,l,r)),Fd(t),o}function Fd(t){N.H=il;var e=Dt!==null&&Dt.next!==null;if(pn=0,Zt=Dt=ct=null,vs=!1,el=0,ai=null,e)throw Error(u(300));t===null||Qt||(t=t.dependencies,t!==null&&os(t)&&(Qt=!0))}function Wd(t,e,n,l){ct=t;var r=0;do{if(ni&&(ai=null),el=0,ni=!1,25<=r)throw Error(u(301));if(r+=1,Zt=Dt=null,t.updateQueue!=null){var o=t.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}N.H=jh,o=e(n,l)}while(ni);return o}function O1(){var t=N.H,e=t.useState()[0];return e=typeof e.then=="function"?nl(e):e,t=t.useState()[0],(Dt!==null?Dt.memoizedState:null)!==t&&(ct.flags|=1024),e}function Hr(){var t=bs!==0;return bs=0,t}function Yr(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function qr(t){if(vs){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}vs=!1}pn=0,Zt=Dt=ct=null,ni=!1,el=bs=0,ai=null}function ce(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Zt===null?ct.memoizedState=Zt=t:Zt=Zt.next=t,Zt}function Xt(){if(Dt===null){var t=ct.alternate;t=t!==null?t.memoizedState:null}else t=Dt.next;var e=Zt===null?ct.memoizedState:Zt.next;if(e!==null)Zt=e,Dt=t;else{if(t===null)throw ct.alternate===null?Error(u(467)):Error(u(310));Dt=t,t={memoizedState:Dt.memoizedState,baseState:Dt.baseState,baseQueue:Dt.baseQueue,queue:Dt.queue,next:null},Zt===null?ct.memoizedState=Zt=t:Zt=Zt.next=t}return Zt}function Ss(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function nl(t){var e=el;return el+=1,ai===null&&(ai=[]),t=qd(ai,t,e),e=ct,(Zt===null?e.memoizedState:Zt.next)===null&&(e=e.alternate,N.H=e===null||e.memoizedState===null?_h:Ir),t}function Ts(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return nl(t);if(t.$$typeof===L)return ae(t)}throw Error(u(438,String(t)))}function Gr(t){var e=null,n=ct.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var l=ct.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=Ss(),ct.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 xs(t){var e=Xt();return Xr(e,Dt,t)}function Xr(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 b=h=null,T=null,z=e,U=!1;do{var G=z.lane&-536870913;if(G!==z.lane?(yt&G)===G:(pn&G)===G){var j=z.revertLane;if(j===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),G===Wa&&(U=!0);else if((pn&j)===j){z=z.next,j===Wa&&(U=!0);continue}else G={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},T===null?(b=T=G,h=o):T=T.next=G,ct.lanes|=j,qn|=j;G=z.action,ba&&n(o,G),o=z.hasEagerState?z.eagerState:n(o,G)}else j={lane:G,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},T===null?(b=T=j,h=o):T=T.next=j,ct.lanes|=G,qn|=G;z=z.next}while(z!==null&&z!==e);if(T===null?h=o:T.next=b,!Ee(o,t.memoizedState)&&(Qt=!0,U&&(n=$a,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 kr(t){var e=Xt(),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)||(Qt=!0),e.memoizedState=o,e.baseQueue===null&&(e.baseState=o),n.lastRenderedState=o}return[o,l]}function $d(t,e,n){var l=ct,r=Xt(),o=vt;if(o){if(n===void 0)throw Error(u(407));n=n()}else n=e();var h=!Ee((Dt||r).memoizedState,n);if(h&&(r.memoizedState=n,Qt=!0),r=r.queue,Kr(eh.bind(null,l,r,t),[t]),r.getSnapshot!==e||h||Zt!==null&&Zt.memoizedState.tag&1){if(l.flags|=2048,ii(9,{destroy:void 0},th.bind(null,l,r,n,e),null),Ot===null)throw Error(u(349));o||(pn&127)!==0||Id(l,e,n)}return n}function Id(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ct.updateQueue,e===null?(e=Ss(),ct.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function th(t,e,n,l){e.value=n,e.getSnapshot=l,nh(e)&&ah(t)}function eh(t,e,n){return n(function(){nh(e)&&ah(t)})}function nh(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Ee(t,n)}catch{return!0}}function ah(t){var e=ca(t,2);e!==null&&be(e,t,2)}function Zr(t){var e=ce();if(typeof t=="function"){var n=t;if(t=n(),ba){Dn(!0);try{n()}finally{Dn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yn,lastRenderedState:t},e}function ih(t,e,n,l){return t.baseState=n,Xr(t,Dt,typeof l=="function"?l:yn)}function _1(t,e,n,l,r){if(Ms(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)}};N.T!==null?n(!0):o.isTransition=!1,l(o),n=e.pending,n===null?(o.next=e.pending=o,lh(e,o)):(o.next=n.next,e.pending=n.next=o)}}function lh(t,e){var n=e.action,l=e.payload,r=t.state;if(e.isTransition){var o=N.T,h={};N.T=h;try{var b=n(r,l),T=N.S;T!==null&&T(h,b),sh(t,e,b)}catch(z){Qr(t,e,z)}finally{o!==null&&h.types!==null&&(o.types=h.types),N.T=o}}else try{o=n(r,l),sh(t,e,o)}catch(z){Qr(t,e,z)}}function sh(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){uh(t,e,l)},function(l){return Qr(t,e,l)}):uh(t,e,n)}function uh(t,e,n){e.status="fulfilled",e.value=n,rh(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,lh(t,n)))}function Qr(t,e,n){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=n,rh(e),e=e.next;while(e!==l)}t.action=null}function rh(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function oh(t,e){return e}function ch(t,e){if(vt){var n=Ot.formState;if(n!==null){t:{var l=ct;if(vt){if(Vt){e:{for(var r=Vt,o=Le;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){Vt=He(r.nextSibling),l=r.data==="F!";break t}}_n(l)}l=!1}l&&(e=n[0])}}return n=ce(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:oh,lastRenderedState:e},n.queue=l,n=wh.bind(null,ct,l),l.dispatch=n,l=Zr(!1),o=$r.bind(null,ct,!1,l.queue),l=ce(),r={state:e,dispatch:null,action:t,pending:null},l.queue=r,n=_1.bind(null,ct,r,o,n),r.dispatch=n,l.memoizedState=t,[e,n,!1]}function fh(t){var e=Xt();return dh(e,Dt,t)}function dh(t,e,n){if(e=Xr(t,e,oh)[0],t=xs(yn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=nl(e)}catch(h){throw h===Ia?ds:h}else l=e;e=Xt();var r=e.queue,o=r.dispatch;return n!==e.memoizedState&&(ct.flags|=2048,ii(9,{destroy:void 0},j1.bind(null,r,n),null)),[l,o,t]}function j1(t,e){t.action=e}function hh(t){var e=Xt(),n=Dt;if(n!==null)return dh(e,n,t);Xt(),e=e.memoizedState,n=Xt();var l=n.queue.dispatch;return n.memoizedState=t,[e,l,!1]}function ii(t,e,n,l){return t={tag:t,create:n,deps:l,inst:e,next:null},e=ct.updateQueue,e===null&&(e=Ss(),ct.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 mh(){return Xt().memoizedState}function Es(t,e,n,l){var r=ce();ct.flags|=t,r.memoizedState=ii(1|e,{destroy:void 0},n,l===void 0?null:l)}function As(t,e,n,l){var r=Xt();l=l===void 0?null:l;var o=r.memoizedState.inst;Dt!==null&&l!==null&&Lr(l,Dt.memoizedState.deps)?r.memoizedState=ii(e,o,n,l):(ct.flags|=t,r.memoizedState=ii(1|e,o,n,l))}function ph(t,e){Es(8390656,8,t,e)}function Kr(t,e){As(2048,8,t,e)}function V1(t){ct.flags|=4;var e=ct.updateQueue;if(e===null)e=Ss(),ct.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function yh(t){var e=Xt().memoizedState;return V1({ref:e,nextImpl:t}),function(){if((xt&2)!==0)throw Error(u(440));return e.impl.apply(void 0,arguments)}}function gh(t,e){return As(4,2,t,e)}function vh(t,e){return As(4,4,t,e)}function bh(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 Sh(t,e,n){n=n!=null?n.concat([t]):null,As(4,4,bh.bind(null,e,t),n)}function Jr(){}function Th(t,e){var n=Xt();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&Lr(e,l[1])?l[0]:(n.memoizedState=[t,e],t)}function xh(t,e){var n=Xt();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&Lr(e,l[1]))return l[0];if(l=t(),ba){Dn(!0);try{t()}finally{Dn(!1)}}return n.memoizedState=[l,e],l}function Pr(t,e,n){return n===void 0||(pn&1073741824)!==0&&(yt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=Em(),ct.lanes|=t,qn|=t,n)}function Eh(t,e,n,l){return Ee(n,e)?n:ei.current!==null?(t=Pr(t,n,l),Ee(t,e)||(Qt=!0),t):(pn&42)===0||(pn&1073741824)!==0&&(yt&261930)===0?(Qt=!0,t.memoizedState=n):(t=Em(),ct.lanes|=t,qn|=t,e)}function Ah(t,e,n,l,r){var o=J.p;J.p=o!==0&&8>o?o:8;var h=N.T,b={};N.T=b,$r(t,!1,e,n);try{var T=r(),z=N.S;if(z!==null&&z(b,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var U=w1(T,l);al(t,e,U,we(t))}else al(t,e,l,we(t))}catch(G){al(t,e,{then:function(){},status:"rejected",reason:G},we())}finally{J.p=o,h!==null&&b.types!==null&&(h.types=b.types),N.T=h}}function N1(){}function Fr(t,e,n,l){if(t.tag!==5)throw Error(u(476));var r=Mh(t).queue;Ah(t,r,e,$,n===null?N1:function(){return Ch(t),n(l)})}function Mh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:yn,lastRenderedState:$},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 Ch(t){var e=Mh(t);e.next===null&&(e=t.alternate.memoizedState),al(t,e.next.queue,{},we())}function Wr(){return ae(Sl)}function Dh(){return Xt().memoizedState}function Rh(){return Xt().memoizedState}function B1(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=we();t=Nn(n);var l=Bn(e,t,n);l!==null&&(be(l,e,n),$i(l,e,n)),e={cache:Cr()},t.payload=e;return}e=e.return}}function L1(t,e,n){var l=we();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ms(t)?zh(e,n):(n=pr(t,e,n,l),n!==null&&(be(n,t,l),Oh(n,e,l)))}function wh(t,e,n){var l=we();al(t,e,n,l)}function al(t,e,n,l){var r={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ms(t))zh(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,b=o(h,n);if(r.hasEagerState=!0,r.eagerState=b,Ee(b,h))return ls(t,e,r,0),Ot===null&&is(),!1}catch{}finally{}if(n=pr(t,e,r,l),n!==null)return be(n,t,l),Oh(n,e,l),!0}return!1}function $r(t,e,n,l){if(l={lane:2,revertLane:Oo(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ms(t)){if(e)throw Error(u(479))}else e=pr(t,n,l,2),e!==null&&be(e,t,2)}function Ms(t){var e=t.alternate;return t===ct||e!==null&&e===ct}function zh(t,e){ni=vs=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Oh(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Bf(t,n)}}var il={readContext:ae,use:Ts,useCallback:Ht,useContext:Ht,useEffect:Ht,useImperativeHandle:Ht,useLayoutEffect:Ht,useInsertionEffect:Ht,useMemo:Ht,useReducer:Ht,useRef:Ht,useState:Ht,useDebugValue:Ht,useDeferredValue:Ht,useTransition:Ht,useSyncExternalStore:Ht,useId:Ht,useHostTransitionStatus:Ht,useFormState:Ht,useActionState:Ht,useOptimistic:Ht,useMemoCache:Ht,useCacheRefresh:Ht};il.useEffectEvent=Ht;var _h={readContext:ae,use:Ts,useCallback:function(t,e){return ce().memoizedState=[t,e===void 0?null:e],t},useContext:ae,useEffect:ph,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,Es(4194308,4,bh.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Es(4194308,4,t,e)},useInsertionEffect:function(t,e){Es(4,2,t,e)},useMemo:function(t,e){var n=ce();e=e===void 0?null:e;var l=t();if(ba){Dn(!0);try{t()}finally{Dn(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=ce();if(n!==void 0){var r=n(e);if(ba){Dn(!0);try{n(e)}finally{Dn(!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=L1.bind(null,ct,t),[l.memoizedState,t]},useRef:function(t){var e=ce();return t={current:t},e.memoizedState=t},useState:function(t){t=Zr(t);var e=t.queue,n=wh.bind(null,ct,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Jr,useDeferredValue:function(t,e){var n=ce();return Pr(n,t,e)},useTransition:function(){var t=Zr(!1);return t=Ah.bind(null,ct,t.queue,!0,!1),ce().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=ct,r=ce();if(vt){if(n===void 0)throw Error(u(407));n=n()}else{if(n=e(),Ot===null)throw Error(u(349));(yt&127)!==0||Id(l,e,n)}r.memoizedState=n;var o={value:n,getSnapshot:e};return r.queue=o,ph(eh.bind(null,l,o,t),[t]),l.flags|=2048,ii(9,{destroy:void 0},th.bind(null,l,o,n,e),null),n},useId:function(){var t=ce(),e=Ot.identifierPrefix;if(vt){var n=We,l=Fe;n=(l&~(1<<32-xe(l)-1)).toString(32)+n,e="_"+e+"R_"+n,n=bs++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=z1++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Wr,useFormState:ch,useActionState:ch,useOptimistic:function(t){var e=ce();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=$r.bind(null,ct,!0,n),n.dispatch=e,[t,e]},useMemoCache:Gr,useCacheRefresh:function(){return ce().memoizedState=B1.bind(null,ct)},useEffectEvent:function(t){var e=ce(),n={impl:t};return e.memoizedState=n,function(){if((xt&2)!==0)throw Error(u(440));return n.impl.apply(void 0,arguments)}}},Ir={readContext:ae,use:Ts,useCallback:Th,useContext:ae,useEffect:Kr,useImperativeHandle:Sh,useInsertionEffect:gh,useLayoutEffect:vh,useMemo:xh,useReducer:xs,useRef:mh,useState:function(){return xs(yn)},useDebugValue:Jr,useDeferredValue:function(t,e){var n=Xt();return Eh(n,Dt.memoizedState,t,e)},useTransition:function(){var t=xs(yn)[0],e=Xt().memoizedState;return[typeof t=="boolean"?t:nl(t),e]},useSyncExternalStore:$d,useId:Dh,useHostTransitionStatus:Wr,useFormState:fh,useActionState:fh,useOptimistic:function(t,e){var n=Xt();return ih(n,Dt,t,e)},useMemoCache:Gr,useCacheRefresh:Rh};Ir.useEffectEvent=yh;var jh={readContext:ae,use:Ts,useCallback:Th,useContext:ae,useEffect:Kr,useImperativeHandle:Sh,useInsertionEffect:gh,useLayoutEffect:vh,useMemo:xh,useReducer:kr,useRef:mh,useState:function(){return kr(yn)},useDebugValue:Jr,useDeferredValue:function(t,e){var n=Xt();return Dt===null?Pr(n,t,e):Eh(n,Dt.memoizedState,t,e)},useTransition:function(){var t=kr(yn)[0],e=Xt().memoizedState;return[typeof t=="boolean"?t:nl(t),e]},useSyncExternalStore:$d,useId:Dh,useHostTransitionStatus:Wr,useFormState:hh,useActionState:hh,useOptimistic:function(t,e){var n=Xt();return Dt!==null?ih(n,Dt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:Gr,useCacheRefresh:Rh};jh.useEffectEvent=yh;function to(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 eo={enqueueSetState:function(t,e,n){t=t._reactInternals;var l=we(),r=Nn(l);r.payload=e,n!=null&&(r.callback=n),e=Bn(t,r,l),e!==null&&(be(e,t,l),$i(e,t,l))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=we(),r=Nn(l);r.tag=1,r.payload=e,n!=null&&(r.callback=n),e=Bn(t,r,l),e!==null&&(be(e,t,l),$i(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=we(),l=Nn(n);l.tag=2,e!=null&&(l.callback=e),e=Bn(t,l,n),e!==null&&(be(e,t,n),$i(e,t,n))}};function Vh(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?!ki(n,l)||!ki(r,o):!0}function Nh(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&&eo.enqueueReplaceState(e,e.state,null)}function Sa(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 Bh(t){as(t)}function Lh(t){console.error(t)}function Uh(t){as(t)}function Cs(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function Hh(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 no(t,e,n){return n=Nn(n),n.tag=3,n.payload={element:null},n.callback=function(){Cs(t,e)},n}function Yh(t){return t=Nn(t),t.tag=3,t}function qh(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(){Hh(e,n,l)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(t.callback=function(){Hh(e,n,l),typeof r!="function"&&(Gn===null?Gn=new Set([this]):Gn.add(this));var b=l.stack;this.componentDidCatch(l.value,{componentStack:b!==null?b:""})})}function U1(t,e,n,l,r){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&Fa(e,n,r,!0),n=Me.current,n!==null){switch(n.tag){case 31:case 13:return Ue===null?Us():n.alternate===null&&Yt===0&&(Yt=3),n.flags&=-257,n.flags|=65536,n.lanes=r,l===hs?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),Ro(t,l,r)),!1;case 22:return n.flags|=65536,l===hs?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)),Ro(t,l,r)),!1}throw Error(u(435,n.tag))}return Ro(t,l,r),Us(),!1}if(vt)return e=Me.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=r,l!==Tr&&(t=Error(u(422),{cause:l}),Ki(Ve(t,n)))):(l!==Tr&&(e=Error(u(423),{cause:l}),Ki(Ve(e,n))),t=t.current.alternate,t.flags|=65536,r&=-r,t.lanes|=r,l=Ve(l,n),r=no(t.stateNode,l,r),_r(t,r),Yt!==4&&(Yt=2)),!1;var o=Error(u(520),{cause:l});if(o=Ve(o,n),dl===null?dl=[o]:dl.push(o),Yt!==4&&(Yt=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=no(n.stateNode,l,t),_r(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"&&(Gn===null||!Gn.has(o))))return n.flags|=65536,r&=-r,n.lanes|=r,r=Yh(r),qh(r,t,n,l),_r(n,r),!1}n=n.return}while(n!==null);return!1}var ao=Error(u(461)),Qt=!1;function ie(t,e,n,l){e.child=t===null?Zd(e,null,n,l):va(e,t.child,n,l)}function Gh(t,e,n,l,r){n=n.render;var o=e.ref;if("ref"in l){var h={};for(var b in l)b!=="ref"&&(h[b]=l[b])}else h=l;return ma(e),l=Ur(t,e,n,h,o,r),b=Hr(),t!==null&&!Qt?(Yr(t,e,r),gn(t,e,r)):(vt&&b&&br(e),e.flags|=1,ie(t,e,l,r),e.child)}function Xh(t,e,n,l,r){if(t===null){var o=n.type;return typeof o=="function"&&!yr(o)&&o.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=o,kh(t,e,o,l,r)):(t=us(n.type,null,l,e,e.mode,r),t.ref=e.ref,t.return=e,e.child=t)}if(o=t.child,!fo(t,r)){var h=o.memoizedProps;if(n=n.compare,n=n!==null?n:ki,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(ki(o,l)&&t.ref===e.ref)if(Qt=!1,e.pendingProps=l=o,fo(t,r))(t.flags&131072)!==0&&(Qt=!0);else return e.lanes=t.lanes,gn(t,e,r)}return io(t,e,n,l,r)}function Zh(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 Qh(t,e,o,n,l)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&fs(e,o!==null?o.cachePool:null),o!==null?Jd(e,o):Vr(),Pd(e);else return l=e.lanes=536870912,Qh(t,e,o!==null?o.baseLanes|n:n,n,l)}else o!==null?(fs(e,o.cachePool),Jd(e,o),Un(),e.memoizedState=null):(t!==null&&fs(e,null),Vr(),Un());return ie(t,e,r,n),e.child}function ll(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Qh(t,e,n,l,r){var o=Rr();return o=o===null?null:{parent:kt._currentValue,pool:o},e.memoizedState={baseLanes:n,cachePool:o},t!==null&&fs(e,null),Vr(),Pd(e),t!==null&&Fa(t,e,l,!0),e.childLanes=r,null}function Ds(t,e){return e=ws({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Kh(t,e,n){return va(e,t.child,null,n),t=Ds(e,e.pendingProps),t.flags|=2,Ce(e),e.memoizedState=null,t}function H1(t,e,n){var l=e.pendingProps,r=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(vt){if(l.mode==="hidden")return t=Ds(e,l),e.lanes=536870912,ll(null,t);if(Br(e),(t=Vt)?(t=lp(t,Le),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:zn!==null?{id:Fe,overflow:We}:null,retryLane:536870912,hydrationErrors:null},n=zd(t),n.return=e,e.child=n,ne=e,Vt=null)):t=null,t===null)throw _n(e);return e.lanes=536870912,null}return Ds(e,l)}var o=t.memoizedState;if(o!==null){var h=o.dehydrated;if(Br(e),r)if(e.flags&256)e.flags&=-257,e=Kh(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(u(558));else if(Qt||Fa(t,e,n,!1),r=(n&t.childLanes)!==0,Qt||r){if(l=Ot,l!==null&&(h=Lf(l,n),h!==0&&h!==o.retryLane))throw o.retryLane=h,ca(t,h),be(l,t,h),ao;Us(),e=Kh(t,e,n)}else t=o.treeContext,Vt=He(h.nextSibling),ne=e,vt=!0,On=null,Le=!1,t!==null&&jd(e,t),e=Ds(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 Rs(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(u(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function io(t,e,n,l,r){return ma(e),n=Ur(t,e,n,l,void 0,r),l=Hr(),t!==null&&!Qt?(Yr(t,e,r),gn(t,e,r)):(vt&&l&&br(e),e.flags|=1,ie(t,e,n,r),e.child)}function Jh(t,e,n,l,r,o){return ma(e),e.updateQueue=null,n=Wd(e,l,n,r),Fd(t),l=Hr(),t!==null&&!Qt?(Yr(t,e,o),gn(t,e,o)):(vt&&l&&br(e),e.flags|=1,ie(t,e,n,o),e.child)}function Ph(t,e,n,l,r){if(ma(e),e.stateNode===null){var o=Qa,h=n.contextType;typeof h=="object"&&h!==null&&(o=ae(h)),o=new n(l,o),e.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=eo,e.stateNode=o,o._reactInternals=e,o=e.stateNode,o.props=l,o.state=e.memoizedState,o.refs={},zr(e),h=n.contextType,o.context=typeof h=="object"&&h!==null?ae(h):Qa,o.state=e.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(to(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&&eo.enqueueReplaceState(o,o.state,null),tl(e,l,o,r),Ii(),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){o=e.stateNode;var b=e.memoizedProps,T=Sa(n,b);o.props=T;var z=o.context,U=n.contextType;h=Qa,typeof U=="object"&&U!==null&&(h=ae(U));var G=n.getDerivedStateFromProps;U=typeof G=="function"||typeof o.getSnapshotBeforeUpdate=="function",b=e.pendingProps!==b,U||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(b||z!==h)&&Nh(e,o,l,h),Vn=!1;var j=e.memoizedState;o.state=j,tl(e,l,o,r),Ii(),z=e.memoizedState,b||j!==z||Vn?(typeof G=="function"&&(to(e,n,G,l),z=e.memoizedState),(T=Vn||Vh(e,n,T,l,j,z,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=z),o.props=l,o.state=z,o.context=h,l=T):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{o=e.stateNode,Or(t,e),h=e.memoizedProps,U=Sa(n,h),o.props=U,G=e.pendingProps,j=o.context,z=n.contextType,T=Qa,typeof z=="object"&&z!==null&&(T=ae(z)),b=n.getDerivedStateFromProps,(z=typeof b=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(h!==G||j!==T)&&Nh(e,o,l,T),Vn=!1,j=e.memoizedState,o.state=j,tl(e,l,o,r),Ii();var B=e.memoizedState;h!==G||j!==B||Vn||t!==null&&t.dependencies!==null&&os(t.dependencies)?(typeof b=="function"&&(to(e,n,b,l),B=e.memoizedState),(U=Vn||Vh(e,n,U,l,j,B,T)||t!==null&&t.dependencies!==null&&os(t.dependencies))?(z||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(l,B,T),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(l,B,T)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||h===t.memoizedProps&&j===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&j===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=B),o.props=l,o.state=B,o.context=T,l=U):(typeof o.componentDidUpdate!="function"||h===t.memoizedProps&&j===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&j===t.memoizedState||(e.flags|=1024),l=!1)}return o=l,Rs(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)):ie(t,e,n,r),e.memoizedState=o.state,t=e.child):t=gn(t,e,r),t}function Fh(t,e,n,l){return da(),e.flags|=256,ie(t,e,n,l),e.child}var lo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function so(t){return{baseLanes:t,cachePool:Hd()}}function uo(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Re),t}function Wh(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:(Gt.current&2)!==0),h&&(r=!0,e.flags&=-129),h=(e.flags&32)!==0,e.flags&=-33,t===null){if(vt){if(r?Ln(e):Un(),(t=Vt)?(t=lp(t,Le),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:zn!==null?{id:Fe,overflow:We}:null,retryLane:536870912,hydrationErrors:null},n=zd(t),n.return=e,e.child=n,ne=e,Vt=null)):t=null,t===null)throw _n(e);return ko(t)?e.lanes=32:e.lanes=536870912,null}var b=l.children;return l=l.fallback,r?(Un(),r=e.mode,b=ws({mode:"hidden",children:b},r),l=fa(l,r,n,null),b.return=e,l.return=e,b.sibling=l,e.child=b,l=e.child,l.memoizedState=so(n),l.childLanes=uo(t,h,n),e.memoizedState=lo,ll(null,l)):(Ln(e),ro(e,b))}var T=t.memoizedState;if(T!==null&&(b=T.dehydrated,b!==null)){if(o)e.flags&256?(Ln(e),e.flags&=-257,e=oo(t,e,n)):e.memoizedState!==null?(Un(),e.child=t.child,e.flags|=128,e=null):(Un(),b=l.fallback,r=e.mode,l=ws({mode:"visible",children:l.children},r),b=fa(b,r,n,null),b.flags|=2,l.return=e,b.return=e,l.sibling=b,e.child=l,va(e,t.child,null,n),l=e.child,l.memoizedState=so(n),l.childLanes=uo(t,h,n),e.memoizedState=lo,e=ll(null,l));else if(Ln(e),ko(b)){if(h=b.nextSibling&&b.nextSibling.dataset,h)var z=h.dgst;h=z,l=Error(u(419)),l.stack="",l.digest=h,Ki({value:l,source:null,stack:null}),e=oo(t,e,n)}else if(Qt||Fa(t,e,n,!1),h=(n&t.childLanes)!==0,Qt||h){if(h=Ot,h!==null&&(l=Lf(h,n),l!==0&&l!==T.retryLane))throw T.retryLane=l,ca(t,l),be(h,t,l),ao;Xo(b)||Us(),e=oo(t,e,n)}else Xo(b)?(e.flags|=192,e.child=t.child,e=null):(t=T.treeContext,Vt=He(b.nextSibling),ne=e,vt=!0,On=null,Le=!1,t!==null&&jd(e,t),e=ro(e,l.children),e.flags|=4096);return e}return r?(Un(),b=l.fallback,r=e.mode,T=t.child,z=T.sibling,l=fn(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,z!==null?b=fn(z,b):(b=fa(b,r,n,null),b.flags|=2),b.return=e,l.return=e,l.sibling=b,e.child=l,ll(null,l),l=e.child,b=t.child.memoizedState,b===null?b=so(n):(r=b.cachePool,r!==null?(T=kt._currentValue,r=r.parent!==T?{parent:T,pool:T}:r):r=Hd(),b={baseLanes:b.baseLanes|n,cachePool:r}),l.memoizedState=b,l.childLanes=uo(t,h,n),e.memoizedState=lo,ll(t.child,l)):(Ln(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 ro(t,e){return e=ws({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function ws(t,e){return t=Ae(22,t,null,e),t.lanes=0,t}function oo(t,e,n){return va(e,t.child,null,n),t=ro(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function $h(t,e,n){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),Ar(t.return,e,n)}function co(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 Ih(t,e,n){var l=e.pendingProps,r=l.revealOrder,o=l.tail;l=l.children;var h=Gt.current,b=(h&2)!==0;if(b?(h=h&1|2,e.flags|=128):h&=1,W(Gt,h),ie(t,e,l,n),l=vt?Qi:0,!b&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&$h(t,n,e);else if(t.tag===19)$h(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&&gs(t)===null&&(r=n),n=n.sibling;n=r,n===null?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null),co(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&&gs(t)===null){e.child=r;break}t=r.sibling,r.sibling=n,n=r,r=t}co(e,!0,n,null,o,l);break;case"together":co(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),qn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Fa(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 fo(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&os(t)))}function Y1(t,e,n){switch(e.tag){case 3:Ut(e,e.stateNode.containerInfo),jn(e,kt,t.memoizedState.cache),da();break;case 27:case 5:ia(e);break;case 4:Ut(e,e.stateNode.containerInfo);break;case 10:jn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Br(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(Ln(e),e.flags|=128,null):(n&e.child.childLanes)!==0?Wh(t,e,n):(Ln(e),t=gn(t,e,n),t!==null?t.sibling:null);Ln(e);break;case 19:var r=(t.flags&128)!==0;if(l=(n&e.childLanes)!==0,l||(Fa(t,e,n,!1),l=(n&e.childLanes)!==0),r){if(l)return Ih(t,e,n);e.flags|=128}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),W(Gt,Gt.current),l)break;return null;case 22:return e.lanes=0,Zh(t,e,n,e.pendingProps);case 24:jn(e,kt,t.memoizedState.cache)}return gn(t,e,n)}function tm(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Qt=!0;else{if(!fo(t,n)&&(e.flags&128)===0)return Qt=!1,Y1(t,e,n);Qt=(t.flags&131072)!==0}else Qt=!1,vt&&(e.flags&1048576)!==0&&_d(e,Qi,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")yr(t)?(l=Sa(t,l),e.tag=1,e=Ph(null,e,t,l,n)):(e.tag=0,e=io(null,e,t,l,n));else{if(t!=null){var r=t.$$typeof;if(r===k){e.tag=11,e=Gh(null,e,t,l,n);break t}else if(r===X){e.tag=14,e=Xh(null,e,t,l,n);break t}}throw e=Et(t)||t,Error(u(306,e,""))}}return e;case 0:return io(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,r=Sa(l,e.pendingProps),Ph(t,e,l,r,n);case 3:t:{if(Ut(e,e.stateNode.containerInfo),t===null)throw Error(u(387));l=e.pendingProps;var o=e.memoizedState;r=o.element,Or(t,e),tl(e,l,null,n);var h=e.memoizedState;if(l=h.cache,jn(e,kt,l),l!==o.cache&&Mr(e,[kt],n,!0),Ii(),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=Fh(t,e,l,n);break t}else if(l!==r){r=Ve(Error(u(424)),e),Ki(r),e=Fh(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(Vt=He(t.firstChild),ne=e,vt=!0,On=null,Le=!0,n=Zd(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}ie(t,e,l,n)}e=e.child}return e;case 26:return Rs(t,e),t===null?(n=fp(e.type,null,e.pendingProps,null))?e.memoizedState=n:vt||(n=e.type,t=e.pendingProps,l=Zs(ht.current).createElement(n),l[ee]=e,l[he]=t,le(l,n,t),Wt(l),e.stateNode=l):e.memoizedState=fp(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return ia(e),t===null&&vt&&(l=e.stateNode=rp(e.type,e.pendingProps,ht.current),ne=e,Le=!0,r=Vt,Qn(e.type)?(Zo=r,Vt=He(l.firstChild)):Vt=r),ie(t,e,e.pendingProps.children,n),Rs(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&vt&&((r=l=Vt)&&(l=yb(l,e.type,e.pendingProps,Le),l!==null?(e.stateNode=l,ne=e,Vt=He(l.firstChild),Le=!1,r=!0):r=!1),r||_n(e)),ia(e),r=e.type,o=e.pendingProps,h=t!==null?t.memoizedProps:null,l=o.children,Yo(r,o)?l=null:h!==null&&Yo(r,h)&&(e.flags|=32),e.memoizedState!==null&&(r=Ur(t,e,O1,null,null,n),Sl._currentValue=r),Rs(t,e),ie(t,e,l,n),e.child;case 6:return t===null&&vt&&((t=n=Vt)&&(n=gb(n,e.pendingProps,Le),n!==null?(e.stateNode=n,ne=e,Vt=null,t=!0):t=!1),t||_n(e)),null;case 13:return Wh(t,e,n);case 4:return Ut(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=va(e,null,l,n):ie(t,e,l,n),e.child;case 11:return Gh(t,e,e.type,e.pendingProps,n);case 7:return ie(t,e,e.pendingProps,n),e.child;case 8:return ie(t,e,e.pendingProps.children,n),e.child;case 12:return ie(t,e,e.pendingProps.children,n),e.child;case 10:return l=e.pendingProps,jn(e,e.type,l.value),ie(t,e,l.children,n),e.child;case 9:return r=e.type._context,l=e.pendingProps.children,ma(e),r=ae(r),l=l(r),e.flags|=1,ie(t,e,l,n),e.child;case 14:return Xh(t,e,e.type,e.pendingProps,n);case 15:return kh(t,e,e.type,e.pendingProps,n);case 19:return Ih(t,e,n);case 31:return H1(t,e,n);case 22:return Zh(t,e,n,e.pendingProps);case 24:return ma(e),l=ae(kt),t===null?(r=Rr(),r===null&&(r=Ot,o=Cr(),r.pooledCache=o,o.refCount++,o!==null&&(r.pooledCacheLanes|=n),r=o),e.memoizedState={parent:l,cache:r},zr(e),jn(e,kt,r)):((t.lanes&n)!==0&&(Or(t,e),tl(e,null,null,n),Ii()),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),jn(e,kt,l)):(l=o.cache,jn(e,kt,l),l!==r.cache&&Mr(e,[kt],n,!0))),ie(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 ho(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(Dm())t.flags|=8192;else throw ga=hs,wr}else t.flags&=-16777217}function em(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!yp(e))if(Dm())t.flags|=8192;else throw ga=hs,wr}function zs(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Vf():536870912,t.lanes|=e,ri|=e)}function sl(t,e){if(!vt)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 Nt(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 q1(t,e,n){var l=e.pendingProps;switch(Sr(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Nt(e),null;case 1:return Nt(e),null;case 3:return n=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),mn(kt),jt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Pa(e)?vn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,xr())),Nt(e),null;case 26:var r=e.type,o=e.memoizedState;return t===null?(vn(e),o!==null?(Nt(e),em(e,o)):(Nt(e),ho(e,r,null,l,n))):o?o!==t.memoizedState?(vn(e),Nt(e),em(e,o)):(Nt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&vn(e),Nt(e),ho(e,r,t,l,n)),null;case 27:if(Cn(e),n=ht.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 Nt(e),null}t=tt.current,Pa(e)?Vd(e):(t=rp(r,l,n),e.stateNode=t,vn(e))}return Nt(e),null;case 5:if(Cn(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 Nt(e),null}if(o=tt.current,Pa(e))Vd(e);else{var h=Zs(ht.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[ee]=e,o[he]=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(le(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 Nt(e),ho(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=ht.current,Pa(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,r=ne,r!==null)switch(r.tag){case 27:case 5:l=r.memoizedProps}t[ee]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||Wm(t.nodeValue,n)),t||_n(e,!0)}else t=Zs(t).createTextNode(l),t[ee]=e,e.stateNode=t}return Nt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(l=Pa(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[ee]=e}else da(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Nt(e),t=!1}else n=xr(),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 Nt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(r=Pa(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[ee]=e}else da(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Nt(e),r=!1}else r=xr(),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),zs(e,e.updateQueue),Nt(e),null);case 4:return jt(),t===null&&No(e.stateNode.containerInfo),Nt(e),null;case 10:return mn(e.type),Nt(e),null;case 19:if(Y(Gt),l=e.memoizedState,l===null)return Nt(e),null;if(r=(e.flags&128)!==0,o=l.rendering,o===null)if(r)sl(l,!1);else{if(Yt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(o=gs(t),o!==null){for(e.flags|=128,sl(l,!1),t=o.updateQueue,e.updateQueue=t,zs(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)wd(n,t),n=n.sibling;return W(Gt,Gt.current&1|2),vt&&dn(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&oe()>Ns&&(e.flags|=128,r=!0,sl(l,!1),e.lanes=4194304)}else{if(!r)if(t=gs(o),t!==null){if(e.flags|=128,r=!0,t=t.updateQueue,e.updateQueue=t,zs(e,t),sl(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!vt)return Nt(e),null}else 2*oe()-l.renderingStartTime>Ns&&n!==536870912&&(e.flags|=128,r=!0,sl(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=Gt.current,W(Gt,r?n&1|2:n&1),vt&&dn(e,l.treeForkCount),t):(Nt(e),null);case 22:case 23:return Ce(e),Nr(),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&&(Nt(e),e.subtreeFlags&6&&(e.flags|=8192)):Nt(e),n=e.updateQueue,n!==null&&zs(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&&Y(pa),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),mn(kt),Nt(e),null;case 25:return null;case 30:return null}throw Error(u(156,e.tag))}function G1(t,e){switch(Sr(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return mn(kt),jt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Cn(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 Y(Gt),null;case 4:return jt(),null;case 10:return mn(e.type),null;case 22:case 23:return Ce(e),Nr(),t!==null&&Y(pa),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return mn(kt),null;case 25:return null;default:return null}}function nm(t,e){switch(Sr(e),e.tag){case 3:mn(kt),jt();break;case 26:case 27:case 5:Cn(e);break;case 4:jt();break;case 31:e.memoizedState!==null&&Ce(e);break;case 13:Ce(e);break;case 19:Y(Gt);break;case 10:mn(e.type);break;case 22:case 23:Ce(e),Nr(),t!==null&&Y(pa);break;case 24:mn(kt)}}function ul(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(b){Mt(e,e.return,b)}}function Hn(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,b=h.destroy;if(b!==void 0){h.destroy=void 0,r=e;var T=n,z=b;try{z()}catch(U){Mt(r,T,U)}}}l=l.next}while(l!==o)}}catch(U){Mt(e,e.return,U)}}function am(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Kd(e,n)}catch(l){Mt(t,t.return,l)}}}function im(t,e,n){n.props=Sa(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){Mt(t,e,l)}}function rl(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){Mt(t,e,r)}}function $e(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(r){Mt(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){Mt(t,e,r)}else n.current=null}function lm(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){Mt(t,t.return,r)}}function mo(t,e,n){try{var l=t.stateNode;cb(l,t.type,n,e),l[he]=e}catch(r){Mt(t,t.return,r)}}function sm(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Qn(t.type)||t.tag===4}function po(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||sm(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&&Qn(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 yo(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&&Qn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(yo(t,e,n),t=t.sibling;t!==null;)yo(t,e,n),t=t.sibling}function Os(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&&Qn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Os(t,e,n),t=t.sibling;t!==null;)Os(t,e,n),t=t.sibling}function um(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,r=e.attributes;r.length;)e.removeAttributeNode(r[0]);le(e,l,n),e[ee]=t,e[he]=n}catch(o){Mt(t,t.return,o)}}var bn=!1,Kt=!1,go=!1,rm=typeof WeakSet=="function"?WeakSet:Set,$t=null;function X1(t,e){if(t=t.containerInfo,Uo=$s,t=Sd(t),or(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,b=-1,T=-1,z=0,U=0,G=t,j=null;e:for(;;){for(var B;G!==n||r!==0&&G.nodeType!==3||(b=h+r),G!==o||l!==0&&G.nodeType!==3||(T=h+l),G.nodeType===3&&(h+=G.nodeValue.length),(B=G.firstChild)!==null;)j=G,G=B;for(;;){if(G===t)break e;if(j===n&&++z===r&&(b=h),j===o&&++U===l&&(T=h),(B=G.nextSibling)!==null)break;G=j,j=G.parentNode}G=B}n=b===-1||T===-1?null:{start:b,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ho={focusedElem:t,selectionRange:n},$s=!1,$t=e;$t!==null;)if(e=$t,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,$t=t;else for(;$t!==null;){switch(e=$t,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 et=Sa(n.type,r);t=l.getSnapshotBeforeUpdate(et,o),l.__reactInternalSnapshotBeforeUpdate=t}catch(ut){Mt(n,n.return,ut)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)Go(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Go(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,$t=t;break}$t=e.return}}function om(t,e,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:Tn(t,n),l&4&&ul(5,n);break;case 1:if(Tn(t,n),l&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(h){Mt(n,n.return,h)}else{var r=Sa(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(r,e,t.__reactInternalSnapshotBeforeUpdate)}catch(h){Mt(n,n.return,h)}}l&64&&am(n),l&512&&rl(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{Kd(t,e)}catch(h){Mt(n,n.return,h)}}break;case 27:e===null&&l&4&&um(n);case 26:case 5:Tn(t,n),e===null&&l&4&&lm(n),l&512&&rl(n,n.return);break;case 12:Tn(t,n);break;case 31:Tn(t,n),l&4&&dm(t,n);break;case 13:Tn(t,n),l&4&&hm(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=$1.bind(null,n),vb(t,n))));break;case 22:if(l=n.memoizedState!==null||bn,!l){e=e!==null&&e.memoizedState!==null||Kt,r=bn;var o=Kt;bn=l,(Kt=e)&&!o?xn(t,n,(n.subtreeFlags&8772)!==0):Tn(t,n),bn=r,Kt=o}break;case 30:break;default:Tn(t,n)}}function cm(t){var e=t.alternate;e!==null&&(t.alternate=null,cm(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Qu(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 Lt=null,pe=!1;function Sn(t,e,n){for(n=n.child;n!==null;)fm(t,e,n),n=n.sibling}function fm(t,e,n){if(Te&&typeof Te.onCommitFiberUnmount=="function")try{Te.onCommitFiberUnmount(_i,n)}catch{}switch(n.tag){case 26:Kt||$e(n,e),Sn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Kt||$e(n,e);var l=Lt,r=pe;Qn(n.type)&&(Lt=n.stateNode,pe=!1),Sn(t,e,n),gl(n.stateNode),Lt=l,pe=r;break;case 5:Kt||$e(n,e);case 6:if(l=Lt,r=pe,Lt=null,Sn(t,e,n),Lt=l,pe=r,Lt!==null)if(pe)try{(Lt.nodeType===9?Lt.body:Lt.nodeName==="HTML"?Lt.ownerDocument.body:Lt).removeChild(n.stateNode)}catch(o){Mt(n,e,o)}else try{Lt.removeChild(n.stateNode)}catch(o){Mt(n,e,o)}break;case 18:Lt!==null&&(pe?(t=Lt,ap(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),yi(t)):ap(Lt,n.stateNode));break;case 4:l=Lt,r=pe,Lt=n.stateNode.containerInfo,pe=!0,Sn(t,e,n),Lt=l,pe=r;break;case 0:case 11:case 14:case 15:Hn(2,n,e),Kt||Hn(4,n,e),Sn(t,e,n);break;case 1:Kt||($e(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&im(n,e,l)),Sn(t,e,n);break;case 21:Sn(t,e,n);break;case 22:Kt=(l=Kt)||n.memoizedState!==null,Sn(t,e,n),Kt=l;break;default:Sn(t,e,n)}}function dm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{yi(t)}catch(n){Mt(e,e.return,n)}}}function hm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{yi(t)}catch(n){Mt(e,e.return,n)}}function k1(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new rm),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new rm),e;default:throw Error(u(435,t.tag))}}function _s(t,e){var n=k1(t);e.forEach(function(l){if(!n.has(l)){n.add(l);var r=I1.bind(null,t,l);l.then(r,r)}})}function ye(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,b=h;t:for(;b!==null;){switch(b.tag){case 27:if(Qn(b.type)){Lt=b.stateNode,pe=!1;break t}break;case 5:Lt=b.stateNode,pe=!1;break t;case 3:case 4:Lt=b.stateNode.containerInfo,pe=!0;break t}b=b.return}if(Lt===null)throw Error(u(160));fm(o,h,r),Lt=null,pe=!1,o=r.alternate,o!==null&&(o.return=null),r.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)mm(e,t),e=e.sibling}var ke=null;function mm(t,e){var n=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ye(e,t),ge(t),l&4&&(Hn(3,t,t.return),ul(3,t),Hn(5,t,t.return));break;case 1:ye(e,t),ge(t),l&512&&(Kt||n===null||$e(n,n.return)),l&64&&bn&&(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(ye(e,t),ge(t),l&512&&(Kt||n===null||$e(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[Ni]||o[ee]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=r.createElement(l),r.head.insertBefore(o,r.querySelector("head > title"))),le(o,l,n),o[ee]=t,Wt(o),l=o;break t;case"link":var h=mp("link","href",r).get(l+(n.href||""));if(h){for(var b=0;b<h.length;b++)if(o=h[b],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(b,1);break e}}o=r.createElement(l),le(o,l,n),r.head.appendChild(o);break;case"meta":if(h=mp("meta","content",r).get(l+(n.content||""))){for(b=0;b<h.length;b++)if(o=h[b],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(b,1);break e}}o=r.createElement(l),le(o,l,n),r.head.appendChild(o);break;default:throw Error(u(468,l))}o[ee]=t,Wt(o),l=o}t.stateNode=l}else pp(r,t.type,t.stateNode);else t.stateNode=hp(r,l,t.memoizedProps);else o!==l?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,l===null?pp(r,t.type,t.stateNode):hp(r,l,t.memoizedProps)):l===null&&t.stateNode!==null&&mo(t,t.memoizedProps,n.memoizedProps)}break;case 27:ye(e,t),ge(t),l&512&&(Kt||n===null||$e(n,n.return)),n!==null&&l&4&&mo(t,t.memoizedProps,n.memoizedProps);break;case 5:if(ye(e,t),ge(t),l&512&&(Kt||n===null||$e(n,n.return)),t.flags&32){r=t.stateNode;try{Ha(r,"")}catch(et){Mt(t,t.return,et)}}l&4&&t.stateNode!=null&&(r=t.memoizedProps,mo(t,r,n!==null?n.memoizedProps:r)),l&1024&&(go=!0);break;case 6:if(ye(e,t),ge(t),l&4){if(t.stateNode===null)throw Error(u(162));l=t.memoizedProps,n=t.stateNode;try{n.nodeValue=l}catch(et){Mt(t,t.return,et)}}break;case 3:if(Js=null,r=ke,ke=Qs(e.containerInfo),ye(e,t),ke=r,ge(t),l&4&&n!==null&&n.memoizedState.isDehydrated)try{yi(e.containerInfo)}catch(et){Mt(t,t.return,et)}go&&(go=!1,pm(t));break;case 4:l=ke,ke=Qs(t.stateNode.containerInfo),ye(e,t),ge(t),ke=l;break;case 12:ye(e,t),ge(t);break;case 31:ye(e,t),ge(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,_s(t,l)));break;case 13:ye(e,t),ge(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Vs=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,z=bn,U=Kt;if(bn=z||r,Kt=U||T,ye(e,t),Kt=U,bn=z,ge(t),l&8192)t:for(e=t.stateNode,e._visibility=r?e._visibility&-2:e._visibility|1,r&&(n===null||T||bn||Kt||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{b=T.stateNode;var G=T.memoizedProps.style,j=G!=null&&G.hasOwnProperty("display")?G.display:null;b.style.display=j==null||typeof j=="boolean"?"":(""+j).trim()}}catch(et){Mt(T,T.return,et)}}}else if(e.tag===6){if(n===null){T=e;try{T.stateNode.nodeValue=r?"":T.memoizedProps}catch(et){Mt(T,T.return,et)}}}else if(e.tag===18){if(n===null){T=e;try{var B=T.stateNode;r?ip(B,!0):ip(T.stateNode,!1)}catch(et){Mt(T,T.return,et)}}}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:ye(e,t),ge(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,_s(t,l)));break;case 30:break;case 21:break;default:ye(e,t),ge(t)}}function ge(t){var e=t.flags;if(e&2){try{for(var n,l=t.return;l!==null;){if(sm(l)){n=l;break}l=l.return}if(n==null)throw Error(u(160));switch(n.tag){case 27:var r=n.stateNode,o=po(t);Os(t,o,r);break;case 5:var h=n.stateNode;n.flags&32&&(Ha(h,""),n.flags&=-33);var b=po(t);Os(t,b,h);break;case 3:case 4:var T=n.stateNode.containerInfo,z=po(t);yo(t,z,T);break;default:throw Error(u(161))}}catch(U){Mt(t,t.return,U)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function pm(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;pm(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;)om(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:Hn(4,e,e.return),Ta(e);break;case 1:$e(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&im(e,e.return,n),Ta(e);break;case 27:gl(e.stateNode);case 26:case 5:$e(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),ul(4,o);break;case 1:if(xn(r,o,n),l=o,r=l.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(z){Mt(l,l.return,z)}if(l=o,r=l.updateQueue,r!==null){var b=l.stateNode;try{var T=r.shared.hiddenCallbacks;if(T!==null)for(r.shared.hiddenCallbacks=null,r=0;r<T.length;r++)Qd(T[r],b)}catch(z){Mt(l,l.return,z)}}n&&h&64&&am(o),rl(o,o.return);break;case 27:um(o);case 26:case 5:xn(r,o,n),n&&l===null&&h&4&&lm(o),rl(o,o.return);break;case 12:xn(r,o,n);break;case 31:xn(r,o,n),n&&h&4&&dm(r,o);break;case 13:xn(r,o,n),n&&h&4&&hm(r,o);break;case 22:o.memoizedState===null&&xn(r,o,n),rl(o,o.return);break;case 30:break;default:xn(r,o,n)}e=e.sibling}}function vo(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&&Ji(n))}function bo(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Ji(t))}function Ze(t,e,n,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ym(t,e,n,l),e=e.sibling}function ym(t,e,n,l){var r=e.flags;switch(e.tag){case 0:case 11:case 15:Ze(t,e,n,l),r&2048&&ul(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&&Ji(t)));break;case 12:if(r&2048){Ze(t,e,n,l),t=e.stateNode;try{var o=e.memoizedProps,h=o.id,b=o.onPostCommit;typeof b=="function"&&b(h,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(T){Mt(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):ol(t,e):o._visibility&2?Ze(t,e,n,l):(o._visibility|=2,li(t,e,n,l,(e.subtreeFlags&10256)!==0||!1)),r&2048&&vo(h,e);break;case 24:Ze(t,e,n,l),r&2048&&bo(e.alternate,e);break;default:Ze(t,e,n,l)}}function li(t,e,n,l,r){for(r=r&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var o=t,h=e,b=n,T=l,z=h.flags;switch(h.tag){case 0:case 11:case 15:li(o,h,b,T,r),ul(8,h);break;case 23:break;case 22:var U=h.stateNode;h.memoizedState!==null?U._visibility&2?li(o,h,b,T,r):ol(o,h):(U._visibility|=2,li(o,h,b,T,r)),r&&z&2048&&vo(h.alternate,h);break;case 24:li(o,h,b,T,r),r&&z&2048&&bo(h.alternate,h);break;default:li(o,h,b,T,r)}e=e.sibling}}function ol(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:ol(n,l),r&2048&&vo(l.alternate,l);break;case 24:ol(n,l),r&2048&&bo(l.alternate,l);break;default:ol(n,l)}e=e.sibling}}var cl=8192;function si(t,e,n){if(t.subtreeFlags&cl)for(t=t.child;t!==null;)gm(t,e,n),t=t.sibling}function gm(t,e,n){switch(t.tag){case 26:si(t,e,n),t.flags&cl&&t.memoizedState!==null&&zb(n,ke,t.memoizedState,t.memoizedProps);break;case 5:si(t,e,n);break;case 3:case 4:var l=ke;ke=Qs(t.stateNode.containerInfo),si(t,e,n),ke=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=cl,cl=16777216,si(t,e,n),cl=l):si(t,e,n));break;default:si(t,e,n)}}function vm(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 fl(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];$t=l,Sm(l,t)}vm(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)bm(t),t=t.sibling}function bm(t){switch(t.tag){case 0:case 11:case 15:fl(t),t.flags&2048&&Hn(9,t,t.return);break;case 3:fl(t);break;case 12:fl(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,js(t)):fl(t);break;default:fl(t)}}function js(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];$t=l,Sm(l,t)}vm(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Hn(8,e,e.return),js(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,js(e));break;default:js(e)}t=t.sibling}}function Sm(t,e){for(;$t!==null;){var n=$t;switch(n.tag){case 0:case 11:case 15:Hn(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:Ji(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,$t=l;else t:for(n=t;$t!==null;){l=$t;var r=l.sibling,o=l.return;if(cm(l),l===n){$t=null;break t}if(r!==null){r.return=o,$t=r;break t}$t=o}}}var Z1={getCacheForType:function(t){var e=ae(kt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return ae(kt).controller.signal}},Q1=typeof WeakMap=="function"?WeakMap:Map,xt=0,Ot=null,mt=null,yt=0,At=0,De=null,Yn=!1,ui=!1,So=!1,En=0,Yt=0,qn=0,xa=0,To=0,Re=0,ri=0,dl=null,ve=null,xo=!1,Vs=0,Tm=0,Ns=1/0,Bs=null,Gn=null,Pt=0,Xn=null,oi=null,An=0,Eo=0,Ao=null,xm=null,hl=0,Mo=null;function we(){return(xt&2)!==0&&yt!==0?yt&-yt:N.T!==null?Oo():Uf()}function Em(){if(Re===0)if((yt&536870912)===0||vt){var t=kl;kl<<=1,(kl&3932160)===0&&(kl=262144),Re=t}else Re=536870912;return t=Me.current,t!==null&&(t.flags|=32),Re}function be(t,e,n){(t===Ot&&(At===2||At===9)||t.cancelPendingCommit!==null)&&(ci(t,0),kn(t,yt,Re,!1)),Vi(t,n),((xt&2)===0||t!==Ot)&&(t===Ot&&((xt&2)===0&&(xa|=n),Yt===4&&kn(t,yt,Re,!1)),Ie(t))}function Am(t,e,n){if((xt&6)!==0)throw Error(u(327));var l=!n&&(e&127)===0&&(e&t.expiredLanes)===0||ji(t,e),r=l?P1(t,e):Do(t,e,!0),o=l;do{if(r===0){ui&&!l&&kn(t,e,0,!1);break}else{if(n=t.current.alternate,o&&!K1(n)){r=Do(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 b=t;r=dl;var T=b.current.memoizedState.isDehydrated;if(T&&(ci(b,h).flags|=256),h=Do(b,h,!1),h!==2){if(So&&!T){b.errorRecoveryDisabledLanes|=o,xa|=o,r=4;break t}o=ve,ve=r,o!==null&&(ve===null?ve=o:ve.push.apply(ve,o))}r=h}if(o=!1,r!==2)continue}}if(r===1){ci(t,0),kn(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:kn(l,e,Re,!Yn);break t;case 2:ve=null;break;case 3:case 5:break;default:throw Error(u(329))}if((e&62914560)===e&&(r=Vs+300-oe(),10<r)){if(kn(l,e,Re,!Yn),Ql(l,0,!0)!==0)break t;An=e,l.timeoutHandle=ep(Mm.bind(null,l,n,ve,Bs,xo,e,Re,xa,ri,Yn,o,"Throttled",-0,0),r);break t}Mm(l,n,ve,Bs,xo,e,Re,xa,ri,Yn,o,null,-0,0)}}break}while(!0);Ie(t)}function Mm(t,e,n,l,r,o,h,b,T,z,U,G,j,B){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},gm(e,o,G);var et=(o&62914560)===o?Vs-oe():(o&4194048)===o?Tm-oe():0;if(et=Ob(G,et),et!==null){An=o,t.cancelPendingCommit=et(jm.bind(null,t,e,o,n,l,r,h,b,T,U,G,null,j,B)),kn(t,o,h,!z);return}}jm(t,e,o,n,l,r,h,b,T)}function K1(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 kn(t,e,n,l){e&=~To,e&=~xa,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var r=e;0<r;){var o=31-xe(r),h=1<<o;l[o]=-1,r&=~h}n!==0&&Nf(t,n,e)}function Ls(){return(xt&6)===0?(ml(0),!1):!0}function Co(){if(mt!==null){if(At===0)var t=mt.return;else t=mt,hn=ha=null,qr(t),ti=null,Fi=0,t=mt;for(;t!==null;)nm(t.alternate,t),t=t.return;mt=null}}function ci(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,hb(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),An=0,Co(),Ot=t,mt=n=fn(t.current,null),yt=e,At=0,De=null,Yn=!1,ui=ji(t,e),So=!1,ri=Re=To=xa=qn=Yt=0,ve=dl=null,xo=!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-xe(l),o=1<<r;e|=t[r],l&=~o}return En=e,is(),n}function Cm(t,e){ct=null,N.H=il,e===Ia||e===ds?(e=Gd(),At=3):e===wr?(e=Gd(),At=4):At=e===ao?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,De=e,mt===null&&(Yt=1,Cs(t,Ve(e,t.current)))}function Dm(){var t=Me.current;return t===null?!0:(yt&4194048)===yt?Ue===null:(yt&62914560)===yt||(yt&536870912)!==0?t===Ue:!1}function Rm(){var t=N.H;return N.H=il,t===null?il:t}function wm(){var t=N.A;return N.A=Z1,t}function Us(){Yt=4,Yn||(yt&4194048)!==yt&&Me.current!==null||(ui=!0),(qn&134217727)===0&&(xa&134217727)===0||Ot===null||kn(Ot,yt,Re,!1)}function Do(t,e,n){var l=xt;xt|=2;var r=Rm(),o=wm();(Ot!==t||yt!==e)&&(Bs=null,ci(t,e)),e=!1;var h=Yt;t:do try{if(At!==0&&mt!==null){var b=mt,T=De;switch(At){case 8:Co(),h=6;break t;case 3:case 2:case 9:case 6:Me.current===null&&(e=!0);var z=At;if(At=0,De=null,fi(t,b,T,z),n&&ui){h=0;break t}break;default:z=At,At=0,De=null,fi(t,b,T,z)}}J1(),h=Yt;break}catch(U){Cm(t,U)}while(!0);return e&&t.shellSuspendCounter++,hn=ha=null,xt=l,N.H=r,N.A=o,mt===null&&(Ot=null,yt=0,is()),h}function J1(){for(;mt!==null;)zm(mt)}function P1(t,e){var n=xt;xt|=2;var l=Rm(),r=wm();Ot!==t||yt!==e?(Bs=null,Ns=oe()+500,ci(t,e)):ui=ji(t,e);t:do try{if(At!==0&&mt!==null){e=mt;var o=De;e:switch(At){case 1:At=0,De=null,fi(t,e,o,1);break;case 2:case 9:if(Yd(o)){At=0,De=null,Om(e);break}e=function(){At!==2&&At!==9||Ot!==t||(At=7),Ie(t)},o.then(e,e);break t;case 3:At=7;break t;case 4:At=5;break t;case 7:Yd(o)?(At=0,De=null,Om(e)):(At=0,De=null,fi(t,e,o,7));break;case 5:var h=null;switch(mt.tag){case 26:h=mt.memoizedState;case 5:case 27:var b=mt;if(h?yp(h):b.stateNode.complete){At=0,De=null;var T=b.sibling;if(T!==null)mt=T;else{var z=b.return;z!==null?(mt=z,Hs(z)):mt=null}break e}}At=0,De=null,fi(t,e,o,5);break;case 6:At=0,De=null,fi(t,e,o,6);break;case 8:Co(),Yt=6;break t;default:throw Error(u(462))}}F1();break}catch(U){Cm(t,U)}while(!0);return hn=ha=null,N.H=l,N.A=r,xt=n,mt!==null?0:(Ot=null,yt=0,is(),Yt)}function F1(){for(;mt!==null&&!qu();)zm(mt)}function zm(t){var e=tm(t.alternate,t,En);t.memoizedProps=t.pendingProps,e===null?Hs(t):mt=e}function Om(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Jh(n,e,e.pendingProps,e.type,void 0,yt);break;case 11:e=Jh(n,e,e.pendingProps,e.type.render,e.ref,yt);break;case 5:qr(e);default:nm(n,e),e=mt=wd(e,En),e=tm(n,e,En)}t.memoizedProps=t.pendingProps,e===null?Hs(t):mt=e}function fi(t,e,n,l){hn=ha=null,qr(e),ti=null,Fi=0;var r=e.return;try{if(U1(t,r,e,n,yt)){Yt=1,Cs(t,Ve(n,t.current)),mt=null;return}}catch(o){if(r!==null)throw mt=r,o;Yt=1,Cs(t,Ve(n,t.current)),mt=null;return}e.flags&32768?(vt||l===1?t=!0:ui||(yt&536870912)!==0?t=!1:(Yn=t=!0,(l===2||l===9||l===3||l===6)&&(l=Me.current,l!==null&&l.tag===13&&(l.flags|=16384))),_m(e,t)):Hs(e)}function Hs(t){var e=t;do{if((e.flags&32768)!==0){_m(e,Yn);return}t=e.return;var n=q1(e.alternate,e,En);if(n!==null){mt=n;return}if(e=e.sibling,e!==null){mt=e;return}mt=e=t}while(e!==null);Yt===0&&(Yt=5)}function _m(t,e){do{var n=G1(t.alternate,t);if(n!==null){n.flags&=32767,mt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){mt=t;return}mt=t=n}while(t!==null);Yt=6,mt=null}function jm(t,e,n,l,r,o,h,b,T){t.cancelPendingCommit=null;do Ys();while(Pt!==0);if((xt&6)!==0)throw Error(u(327));if(e!==null){if(e===t.current)throw Error(u(177));if(o=e.lanes|e.childLanes,o|=mr,wv(t,n,o,h,b,T),t===Ot&&(mt=Ot=null,yt=0),oi=e,Xn=t,An=n,Eo=o,Ao=r,xm=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,tb(_a,function(){return Um(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=N.T,N.T=null,r=J.p,J.p=2,h=xt,xt|=4;try{X1(t,e,n)}finally{xt=h,J.p=r,N.T=l}}Pt=1,Vm(),Nm(),Bm()}}function Vm(){if(Pt===1){Pt=0;var t=Xn,e=oi,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=N.T,N.T=null;var l=J.p;J.p=2;var r=xt;xt|=4;try{mm(e,t);var o=Ho,h=Sd(t.containerInfo),b=o.focusedElem,T=o.selectionRange;if(h!==b&&b&&b.ownerDocument&&bd(b.ownerDocument.documentElement,b)){if(T!==null&&or(b)){var z=T.start,U=T.end;if(U===void 0&&(U=z),"selectionStart"in b)b.selectionStart=z,b.selectionEnd=Math.min(U,b.value.length);else{var G=b.ownerDocument||document,j=G&&G.defaultView||window;if(j.getSelection){var B=j.getSelection(),et=b.textContent.length,ut=Math.min(T.start,et),wt=T.end===void 0?ut:Math.min(T.end,et);!B.extend&&ut>wt&&(h=wt,wt=ut,ut=h);var R=vd(b,ut),C=vd(b,wt);if(R&&C&&(B.rangeCount!==1||B.anchorNode!==R.node||B.anchorOffset!==R.offset||B.focusNode!==C.node||B.focusOffset!==C.offset)){var w=G.createRange();w.setStart(R.node,R.offset),B.removeAllRanges(),ut>wt?(B.addRange(w),B.extend(C.node,C.offset)):(w.setEnd(C.node,C.offset),B.addRange(w))}}}}for(G=[],B=b;B=B.parentNode;)B.nodeType===1&&G.push({element:B,left:B.scrollLeft,top:B.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<G.length;b++){var q=G[b];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}$s=!!Uo,Ho=Uo=null}finally{xt=r,J.p=l,N.T=n}}t.current=e,Pt=2}}function Nm(){if(Pt===2){Pt=0;var t=Xn,e=oi,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=N.T,N.T=null;var l=J.p;J.p=2;var r=xt;xt|=4;try{om(t,e.alternate,e)}finally{xt=r,J.p=l,N.T=n}}Pt=3}}function Bm(){if(Pt===4||Pt===3){Pt=0,Gl();var t=Xn,e=oi,n=An,l=xm;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Pt=5:(Pt=0,oi=Xn=null,Lm(t,t.pendingLanes));var r=t.pendingLanes;if(r===0&&(Gn=null),ku(n),e=e.stateNode,Te&&typeof Te.onCommitFiberRoot=="function")try{Te.onCommitFiberRoot(_i,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=N.T,r=J.p,J.p=2,N.T=null;try{for(var o=t.onRecoverableError,h=0;h<l.length;h++){var b=l[h];o(b.value,{componentStack:b.stack})}}finally{N.T=e,J.p=r}}(An&3)!==0&&Ys(),Ie(t),r=t.pendingLanes,(n&261930)!==0&&(r&42)!==0?t===Mo?hl++:(hl=0,Mo=t):hl=0,ml(0)}}function Lm(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Ji(e)))}function Ys(){return Vm(),Nm(),Bm(),Um()}function Um(){if(Pt!==5)return!1;var t=Xn,e=Eo;Eo=0;var n=ku(An),l=N.T,r=J.p;try{J.p=32>n?32:n,N.T=null,n=Ao,Ao=null;var o=Xn,h=An;if(Pt=0,oi=Xn=null,An=0,(xt&6)!==0)throw Error(u(331));var b=xt;if(xt|=4,bm(o.current),ym(o,o.current,h,n),xt=b,ml(0,!1),Te&&typeof Te.onPostCommitFiberRoot=="function")try{Te.onPostCommitFiberRoot(_i,o)}catch{}return!0}finally{J.p=r,N.T=l,Lm(t,e)}}function Hm(t,e,n){e=Ve(n,e),e=no(t.stateNode,e,2),t=Bn(t,e,2),t!==null&&(Vi(t,2),Ie(t))}function Mt(t,e,n){if(t.tag===3)Hm(t,t,n);else for(;e!==null;){if(e.tag===3){Hm(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Gn===null||!Gn.has(l))){t=Ve(n,t),n=Yh(2),l=Bn(e,n,2),l!==null&&(qh(n,l,e,t),Vi(l,2),Ie(l));break}}e=e.return}}function Ro(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new Q1;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)||(So=!0,r.add(n),t=W1.bind(null,t,e,n),e.then(t,t))}function W1(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Ot===t&&(yt&n)===n&&(Yt===4||Yt===3&&(yt&62914560)===yt&&300>oe()-Vs?(xt&2)===0&&ci(t,0):To|=n,ri===yt&&(ri=0)),Ie(t)}function Ym(t,e){e===0&&(e=Vf()),t=ca(t,e),t!==null&&(Vi(t,e),Ie(t))}function $1(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Ym(t,n)}function I1(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),Ym(t,n)}function tb(t,e){return Oa(t,e)}var qs=null,di=null,wo=!1,Gs=!1,zo=!1,Zn=0;function Ie(t){t!==di&&t.next===null&&(di===null?qs=di=t:di=di.next=t),Gs=!0,wo||(wo=!0,nb())}function ml(t,e){if(!zo&&Gs){zo=!0;do for(var n=!1,l=qs;l!==null;){if(t!==0){var r=l.pendingLanes;if(r===0)var o=0;else{var h=l.suspendedLanes,b=l.pingedLanes;o=(1<<31-xe(42|t)+1)-1,o&=r&~(h&~b),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,km(l,o))}else o=yt,o=Ql(l,l===Ot?o:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(o&3)===0||ji(l,o)||(n=!0,km(l,o));l=l.next}while(n);zo=!1}}function eb(){qm()}function qm(){Gs=wo=!1;var t=0;Zn!==0&&db()&&(t=Zn);for(var e=oe(),n=null,l=qs;l!==null;){var r=l.next,o=Gm(l,e);o===0?(l.next=null,n===null?qs=r:n.next=r,r===null&&(di=n)):(n=l,(t!==0||(o&3)!==0)&&(Gs=!0)),l=r}Pt!==0&&Pt!==5||ml(t),Zn!==0&&(Zn=0)}function Gm(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,r=t.expirationTimes,o=t.pendingLanes&-62914561;0<o;){var h=31-xe(o),b=1<<h,T=r[h];T===-1?((b&n)===0||(b&l)!==0)&&(r[h]=Rv(b,e)):T<=e&&(t.expiredLanes|=b),o&=~b}if(e=Ot,n=yt,n=Ql(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,n===0||t===e&&(At===2||At===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&Oi(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&&Oi(l),ku(n)){case 2:case 8:n=un;break;case 32:n=_a;break;case 268435456:n=jf;break;default:n=_a}return l=Xm.bind(null,t),n=Oa(n,l),t.callbackPriority=e,t.callbackNode=n,e}return l!==null&&l!==null&&Oi(l),t.callbackPriority=2,t.callbackNode=null,2}function Xm(t,e){if(Pt!==0&&Pt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Ys()&&t.callbackNode!==n)return null;var l=yt;return l=Ql(t,t===Ot?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(Am(t,l,e),Gm(t,oe()),t.callbackNode!=null&&t.callbackNode===n?Xm.bind(null,t):null)}function km(t,e){if(Ys())return null;Am(t,e,!0)}function nb(){mb(function(){(xt&6)!==0?Oa(Se,eb):qm()})}function Oo(){if(Zn===0){var t=Wa;t===0&&(t=Xl,Xl<<=1,(Xl&261888)===0&&(Xl=256)),Zn=t}return Zn}function Zm(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Fl(""+t)}function Qm(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 ab(t,e,n,l,r){if(e==="submit"&&n&&n.stateNode===r){var o=Zm((r[he]||null).action),h=l.submitter;h&&(e=(e=h[he]||null)?Zm(e.formAction):h.getAttribute("formAction"),e!==null&&(o=e,h=null));var b=new ts("action","action",null,l,r);t.push({event:b,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Zn!==0){var T=h?Qm(r,h):new FormData(r);Fr(n,{pending:!0,data:T,method:r.method,action:o},null,T)}}else typeof o=="function"&&(b.preventDefault(),T=h?Qm(r,h):new FormData(r),Fr(n,{pending:!0,data:T,method:r.method,action:o},o,T))},currentTarget:r}]})}}for(var _o=0;_o<hr.length;_o++){var jo=hr[_o],ib=jo.toLowerCase(),lb=jo[0].toUpperCase()+jo.slice(1);Xe(ib,"on"+lb)}Xe(Ed,"onAnimationEnd"),Xe(Ad,"onAnimationIteration"),Xe(Md,"onAnimationStart"),Xe("dblclick","onDoubleClick"),Xe("focusin","onFocus"),Xe("focusout","onBlur"),Xe(T1,"onTransitionRun"),Xe(x1,"onTransitionStart"),Xe(E1,"onTransitionCancel"),Xe(Cd,"onTransitionEnd"),La("onMouseEnter",["mouseout","mouseover"]),La("onMouseLeave",["mouseout","mouseover"]),La("onPointerEnter",["pointerout","pointerover"]),La("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 pl="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(" "),sb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(pl));function Km(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 b=l[h],T=b.instance,z=b.currentTarget;if(b=b.listener,T!==o&&r.isPropagationStopped())break t;o=b,r.currentTarget=z;try{o(r)}catch(U){as(U)}r.currentTarget=null,o=T}else for(h=0;h<l.length;h++){if(b=l[h],T=b.instance,z=b.currentTarget,b=b.listener,T!==o&&r.isPropagationStopped())break t;o=b,r.currentTarget=z;try{o(r)}catch(U){as(U)}r.currentTarget=null,o=T}}}}function pt(t,e){var n=e[Zu];n===void 0&&(n=e[Zu]=new Set);var l=t+"__bubble";n.has(l)||(Jm(e,t,2,!1),n.add(l))}function Vo(t,e,n){var l=0;e&&(l|=4),Jm(n,t,l,e)}var Xs="_reactListening"+Math.random().toString(36).slice(2);function No(t){if(!t[Xs]){t[Xs]=!0,qf.forEach(function(n){n!=="selectionchange"&&(sb.has(n)||Vo(n,!1,t),Vo(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Xs]||(e[Xs]=!0,Vo("selectionchange",!1,e))}}function Jm(t,e,n,l){switch(Ep(e)){case 2:var r=Vb;break;case 8:r=Nb;break;default:r=Fo}n=r.bind(null,e,n,t),r=void 0,!tr||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 Bo(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 b=l.stateNode.containerInfo;if(b===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(;b!==null;){if(h=Va(b),h===null)return;if(T=h.tag,T===5||T===6||T===26||T===27){l=o=h;continue t}b=b.parentNode}}l=l.return}If(function(){var z=o,U=$u(n),G=[];t:{var j=Dd.get(t);if(j!==void 0){var B=ts,et=t;switch(t){case"keypress":if($l(n)===0)break t;case"keydown":case"keyup":B=Iv;break;case"focusin":et="focus",B=ir;break;case"focusout":et="blur",B=ir;break;case"beforeblur":case"afterblur":B=ir;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":B=nd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":B=qv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":B=n1;break;case Ed:case Ad:case Md:B=kv;break;case Cd:B=i1;break;case"scroll":case"scrollend":B=Hv;break;case"wheel":B=s1;break;case"copy":case"cut":case"paste":B=Qv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":B=id;break;case"toggle":case"beforetoggle":B=r1}var ut=(e&4)!==0,wt=!ut&&(t==="scroll"||t==="scrollend"),R=ut?j!==null?j+"Capture":null:j;ut=[];for(var C=z,w;C!==null;){var q=C;if(w=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||w===null||R===null||(q=Li(C,R),q!=null&&ut.push(yl(C,q,w))),wt)break;C=C.return}0<ut.length&&(j=new B(j,et,null,n,U),G.push({event:j,listeners:ut}))}}if((e&7)===0){t:{if(j=t==="mouseover"||t==="pointerover",B=t==="mouseout"||t==="pointerout",j&&n!==Wu&&(et=n.relatedTarget||n.fromElement)&&(Va(et)||et[ja]))break t;if((B||j)&&(j=U.window===U?U:(j=U.ownerDocument)?j.defaultView||j.parentWindow:window,B?(et=n.relatedTarget||n.toElement,B=z,et=et?Va(et):null,et!==null&&(wt=d(et),ut=et.tag,et!==wt||ut!==5&&ut!==27&&ut!==6)&&(et=null)):(B=null,et=z),B!==et)){if(ut=nd,q="onMouseLeave",R="onMouseEnter",C="mouse",(t==="pointerout"||t==="pointerover")&&(ut=id,q="onPointerLeave",R="onPointerEnter",C="pointer"),wt=B==null?j:Bi(B),w=et==null?j:Bi(et),j=new ut(q,C+"leave",B,n,U),j.target=wt,j.relatedTarget=w,q=null,Va(U)===z&&(ut=new ut(R,C+"enter",et,n,U),ut.target=w,ut.relatedTarget=wt,q=ut),wt=q,B&&et)e:{for(ut=ub,R=B,C=et,w=0,q=R;q;q=ut(q))w++;q=0;for(var it=C;it;it=ut(it))q++;for(;0<w-q;)R=ut(R),w--;for(;0<q-w;)C=ut(C),q--;for(;w--;){if(R===C||C!==null&&R===C.alternate){ut=R;break e}R=ut(R),C=ut(C)}ut=null}else ut=null;B!==null&&Pm(G,j,B,ut,!1),et!==null&&wt!==null&&Pm(G,wt,et,ut,!0)}}t:{if(j=z?Bi(z):window,B=j.nodeName&&j.nodeName.toLowerCase(),B==="select"||B==="input"&&j.type==="file")var St=dd;else if(cd(j))if(hd)St=v1;else{St=y1;var at=p1}else B=j.nodeName,!B||B.toLowerCase()!=="input"||j.type!=="checkbox"&&j.type!=="radio"?z&&Fu(z.elementType)&&(St=dd):St=g1;if(St&&(St=St(t,z))){fd(G,St,n,U);break t}at&&at(t,j,z),t==="focusout"&&z&&j.type==="number"&&z.memoizedProps.value!=null&&Pu(j,"number",j.value)}switch(at=z?Bi(z):window,t){case"focusin":(cd(at)||at.contentEditable==="true")&&(Xa=at,cr=z,Zi=null);break;case"focusout":Zi=cr=Xa=null;break;case"mousedown":fr=!0;break;case"contextmenu":case"mouseup":case"dragend":fr=!1,Td(G,n,U);break;case"selectionchange":if(S1)break;case"keydown":case"keyup":Td(G,n,U)}var dt;if(sr)t:{switch(t){case"compositionstart":var gt="onCompositionStart";break t;case"compositionend":gt="onCompositionEnd";break t;case"compositionupdate":gt="onCompositionUpdate";break t}gt=void 0}else Ga?rd(t,n)&&(gt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(gt="onCompositionStart");gt&&(ld&&n.locale!=="ko"&&(Ga||gt!=="onCompositionStart"?gt==="onCompositionEnd"&&Ga&&(dt=td()):(wn=U,er="value"in wn?wn.value:wn.textContent,Ga=!0)),at=ks(z,gt),0<at.length&&(gt=new ad(gt,t,null,n,U),G.push({event:gt,listeners:at}),dt?gt.data=dt:(dt=od(n),dt!==null&&(gt.data=dt)))),(dt=c1?f1(t,n):d1(t,n))&&(gt=ks(z,"onBeforeInput"),0<gt.length&&(at=new ad("onBeforeInput","beforeinput",null,n,U),G.push({event:at,listeners:gt}),at.data=dt)),ab(G,t,z,n,U)}Km(G,e)})}function yl(t,e,n){return{instance:t,listener:e,currentTarget:n}}function ks(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=Li(t,n),r!=null&&l.unshift(yl(t,r,o)),r=Li(t,e),r!=null&&l.push(yl(t,r,o))),t.tag===3)return l;t=t.return}return[]}function ub(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Pm(t,e,n,l,r){for(var o=e._reactName,h=[];n!==null&&n!==l;){var b=n,T=b.alternate,z=b.stateNode;if(b=b.tag,T!==null&&T===l)break;b!==5&&b!==26&&b!==27||z===null||(T=z,r?(z=Li(n,o),z!=null&&h.unshift(yl(n,z,T))):r||(z=Li(n,o),z!=null&&h.push(yl(n,z,T)))),n=n.return}h.length!==0&&t.push({event:e,listeners:h})}var rb=/\r\n?/g,ob=/\u0000|\uFFFD/g;function Fm(t){return(typeof t=="string"?t:""+t).replace(rb,`
49
- `).replace(ob,"")}function Wm(t,e){return e=Fm(e),Fm(t)===e}function Rt(t,e,n,l,r,o){switch(n){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||Ha(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&Ha(t,""+l);break;case"className":Jl(t,"class",l);break;case"tabIndex":Jl(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Jl(t,n,l);break;case"style":Wf(t,l,o);break;case"data":if(e!=="object"){Jl(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=Fl(""+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"&&Rt(t,e,"name",r.name,r,null),Rt(t,e,"formEncType",r.formEncType,r,null),Rt(t,e,"formMethod",r.formMethod,r,null),Rt(t,e,"formTarget",r.formTarget,r,null)):(Rt(t,e,"encType",r.encType,r,null),Rt(t,e,"method",r.method,r,null),Rt(t,e,"target",r.target,r,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=Fl(""+l),t.setAttribute(n,l);break;case"onClick":l!=null&&(t.onclick=on);break;case"onScroll":l!=null&&pt("scroll",t);break;case"onScrollEnd":l!=null&&pt("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=Fl(""+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":pt("beforetoggle",t),pt("toggle",t),Kl(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":Kl(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=Lv.get(n)||n,Kl(t,n,l))}}function Lo(t,e,n,l,r,o){switch(n){case"style":Wf(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"?Ha(t,l):(typeof l=="number"||typeof l=="bigint")&&Ha(t,""+l);break;case"onScroll":l!=null&&pt("scroll",t);break;case"onScrollEnd":l!=null&&pt("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(!Gf.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[he]||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,""):Kl(t,n,l)}}}function le(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":pt("error",t),pt("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:Rt(t,e,o,h,n,null)}}r&&Rt(t,e,"srcSet",n.srcSet,n,null),l&&Rt(t,e,"src",n.src,n,null);return;case"input":pt("invalid",t);var b=o=h=r=null,T=null,z=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":z=U;break;case"value":o=U;break;case"defaultValue":b=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(u(137,e));break;default:Rt(t,e,l,U,n,null)}}Kf(t,o,b,T,z,h,r,!1);return;case"select":pt("invalid",t),l=h=o=null;for(r in n)if(n.hasOwnProperty(r)&&(b=n[r],b!=null))switch(r){case"value":o=b;break;case"defaultValue":h=b;break;case"multiple":l=b;default:Rt(t,e,r,b,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":pt("invalid",t),o=r=l=null;for(h in n)if(n.hasOwnProperty(h)&&(b=n[h],b!=null))switch(h){case"value":l=b;break;case"defaultValue":r=b;break;case"children":o=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(u(91));break;default:Rt(t,e,h,b,n,null)}Pf(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:Rt(t,e,T,l,n,null)}return;case"dialog":pt("beforetoggle",t),pt("toggle",t),pt("cancel",t),pt("close",t);break;case"iframe":case"object":pt("load",t);break;case"video":case"audio":for(l=0;l<pl.length;l++)pt(pl[l],t);break;case"image":pt("error",t),pt("load",t);break;case"details":pt("toggle",t);break;case"embed":case"source":case"link":pt("error",t),pt("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(z in n)if(n.hasOwnProperty(z)&&(l=n[z],l!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,e));default:Rt(t,e,z,l,n,null)}return;default:if(Fu(e)){for(U in n)n.hasOwnProperty(U)&&(l=n[U],l!==void 0&&Lo(t,e,U,l,n,void 0));return}}for(b in n)n.hasOwnProperty(b)&&(l=n[b],l!=null&&Rt(t,e,b,l,n,null))}function cb(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,b=null,T=null,z=null,U=null;for(B in n){var G=n[B];if(n.hasOwnProperty(B)&&G!=null)switch(B){case"checked":break;case"value":break;case"defaultValue":T=G;default:l.hasOwnProperty(B)||Rt(t,e,B,null,l,G)}}for(var j in l){var B=l[j];if(G=n[j],l.hasOwnProperty(j)&&(B!=null||G!=null))switch(j){case"type":o=B;break;case"name":r=B;break;case"checked":z=B;break;case"defaultChecked":U=B;break;case"value":h=B;break;case"defaultValue":b=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(u(137,e));break;default:B!==G&&Rt(t,e,j,B,l,G)}}Ju(t,h,b,T,z,U,o,r);return;case"select":B=h=b=j=null;for(o in n)if(T=n[o],n.hasOwnProperty(o)&&T!=null)switch(o){case"value":break;case"multiple":B=T;default:l.hasOwnProperty(o)||Rt(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":j=o;break;case"defaultValue":b=o;break;case"multiple":h=o;default:o!==T&&Rt(t,e,r,o,l,T)}e=b,n=h,l=B,j!=null?Ua(t,!!n,j,!1):!!l!=!!n&&(e!=null?Ua(t,!!n,e,!0):Ua(t,!!n,n?[]:"",!1));return;case"textarea":B=j=null;for(b in n)if(r=n[b],n.hasOwnProperty(b)&&r!=null&&!l.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:Rt(t,e,b,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":j=r;break;case"defaultValue":B=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(u(91));break;default:r!==o&&Rt(t,e,h,r,l,o)}Jf(t,j,B);return;case"option":for(var et in n)if(j=n[et],n.hasOwnProperty(et)&&j!=null&&!l.hasOwnProperty(et))switch(et){case"selected":t.selected=!1;break;default:Rt(t,e,et,null,l,j)}for(T in l)if(j=l[T],B=n[T],l.hasOwnProperty(T)&&j!==B&&(j!=null||B!=null))switch(T){case"selected":t.selected=j&&typeof j!="function"&&typeof j!="symbol";break;default:Rt(t,e,T,j,l,B)}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)j=n[ut],n.hasOwnProperty(ut)&&j!=null&&!l.hasOwnProperty(ut)&&Rt(t,e,ut,null,l,j);for(z in l)if(j=l[z],B=n[z],l.hasOwnProperty(z)&&j!==B&&(j!=null||B!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(u(137,e));break;default:Rt(t,e,z,j,l,B)}return;default:if(Fu(e)){for(var wt in n)j=n[wt],n.hasOwnProperty(wt)&&j!==void 0&&!l.hasOwnProperty(wt)&&Lo(t,e,wt,void 0,l,j);for(U in l)j=l[U],B=n[U],!l.hasOwnProperty(U)||j===B||j===void 0&&B===void 0||Lo(t,e,U,j,l,B);return}}for(var R in n)j=n[R],n.hasOwnProperty(R)&&j!=null&&!l.hasOwnProperty(R)&&Rt(t,e,R,null,l,j);for(G in l)j=l[G],B=n[G],!l.hasOwnProperty(G)||j===B||j==null&&B==null||Rt(t,e,G,j,l,B)}function $m(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function fb(){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,b=r.duration;if(o&&b&&$m(h)){for(h=0,b=r.responseEnd,l+=1;l<n.length;l++){var T=n[l],z=T.startTime;if(z>b)break;var U=T.transferSize,G=T.initiatorType;U&&$m(G)&&(T=T.responseEnd,h+=U*(T<b?1:(b-z)/(T-z)))}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 Uo=null,Ho=null;function Zs(t){return t.nodeType===9?t:t.ownerDocument}function Im(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 tp(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 Yo(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 qo=null;function db(){var t=window.event;return t&&t.type==="popstate"?t===qo?!1:(qo=t,!0):(qo=null,!1)}var ep=typeof setTimeout=="function"?setTimeout:void 0,hb=typeof clearTimeout=="function"?clearTimeout:void 0,np=typeof Promise=="function"?Promise:void 0,mb=typeof queueMicrotask=="function"?queueMicrotask:typeof np<"u"?function(t){return np.resolve(null).then(t).catch(pb)}:ep;function pb(t){setTimeout(function(){throw t})}function Qn(t){return t==="head"}function ap(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),yi(e);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")gl(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,gl(n);for(var o=n.firstChild;o;){var h=o.nextSibling,b=o.nodeName;o[Ni]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=h}}else n==="body"&&gl(t.ownerDocument.body);n=r}while(n);yi(e)}function ip(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 Go(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":Go(n),Qu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function yb(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[Ni])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 gb(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 lp(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 Xo(t){return t.data==="$?"||t.data==="$~"}function ko(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function vb(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 Zo=null;function sp(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 up(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 rp(t,e,n){switch(e=Zs(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 gl(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Qu(t)}var Ye=new Map,op=new Set;function Qs(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Mn=J.d;J.d={f:bb,r:Sb,D:Tb,C:xb,L:Eb,m:Ab,X:Cb,S:Mb,M:Db};function bb(){var t=Mn.f(),e=Ls();return t||e}function Sb(t){var e=Na(t);e!==null&&e.tag===5&&e.type==="form"?Ch(e):Mn.r(t)}var hi=typeof document>"u"?null:document;function cp(t,e,n){var l=hi;if(l&&typeof e=="string"&&e){var r=_e(e);r='link[rel="'+t+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),op.has(r)||(op.add(r),t={rel:t,crossOrigin:n,href:e},l.querySelector(r)===null&&(e=l.createElement("link"),le(e,"link",t),Wt(e),l.head.appendChild(e)))}}function Tb(t){Mn.D(t),cp("dns-prefetch",t,null)}function xb(t,e){Mn.C(t,e),cp("preconnect",t,e)}function Eb(t,e,n){Mn.L(t,e,n);var l=hi;if(l&&t&&e){var r='link[rel="preload"][as="'+_e(e)+'"]';e==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+_e(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+_e(n.imageSizes)+'"]')):r+='[href="'+_e(t)+'"]';var o=r;switch(e){case"style":o=mi(t);break;case"script":o=pi(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(vl(o))||e==="script"&&l.querySelector(bl(o))||(e=l.createElement("link"),le(e,"link",t),Wt(e),l.head.appendChild(e)))}}function Ab(t,e){Mn.m(t,e);var n=hi;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",r='link[rel="modulepreload"][as="'+_e(l)+'"][href="'+_e(t)+'"]',o=r;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=pi(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(bl(o)))return}l=n.createElement("link"),le(l,"link",t),Wt(l),n.head.appendChild(l)}}}function Mb(t,e,n){Mn.S(t,e,n);var l=hi;if(l&&t){var r=Ba(l).hoistableStyles,o=mi(t);e=e||"default";var h=r.get(o);if(!h){var b={loading:0,preload:null};if(h=l.querySelector(vl(o)))b.loading=5;else{t=v({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Ye.get(o))&&Qo(t,n);var T=h=l.createElement("link");Wt(T),le(T,"link",t),T._p=new Promise(function(z,U){T.onload=z,T.onerror=U}),T.addEventListener("load",function(){b.loading|=1}),T.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Ks(h,e,l)}h={type:"stylesheet",instance:h,count:1,state:b},r.set(o,h)}}}function Cb(t,e){Mn.X(t,e);var n=hi;if(n&&t){var l=Ba(n).hoistableScripts,r=pi(t),o=l.get(r);o||(o=n.querySelector(bl(r)),o||(t=v({src:t,async:!0},e),(e=Ye.get(r))&&Ko(t,e),o=n.createElement("script"),Wt(o),le(o,"link",t),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},l.set(r,o))}}function Db(t,e){Mn.M(t,e);var n=hi;if(n&&t){var l=Ba(n).hoistableScripts,r=pi(t),o=l.get(r);o||(o=n.querySelector(bl(r)),o||(t=v({src:t,async:!0,type:"module"},e),(e=Ye.get(r))&&Ko(t,e),o=n.createElement("script"),Wt(o),le(o,"link",t),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},l.set(r,o))}}function fp(t,e,n,l){var r=(r=ht.current)?Qs(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=mi(n.href),n=Ba(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=mi(n.href);var o=Ba(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(vl(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||Rb(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=pi(n),n=Ba(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 mi(t){return'href="'+_e(t)+'"'}function vl(t){return'link[rel="stylesheet"]['+t+"]"}function dp(t){return v({},t,{"data-precedence":t.precedence,precedence:null})}function Rb(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}),le(e,"link",n),Wt(e),t.head.appendChild(e))}function pi(t){return'[src="'+_e(t)+'"]'}function bl(t){return"script[async]"+t}function hp(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+_e(n.href)+'"]');if(l)return e.instance=l,Wt(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"),Wt(l),le(l,"style",r),Ks(l,n.precedence,t),e.instance=l;case"stylesheet":r=mi(n.href);var o=t.querySelector(vl(r));if(o)return e.state.loading|=4,e.instance=o,Wt(o),o;l=dp(n),(r=Ye.get(r))&&Qo(l,r),o=(t.ownerDocument||t).createElement("link"),Wt(o);var h=o;return h._p=new Promise(function(b,T){h.onload=b,h.onerror=T}),le(o,"link",l),e.state.loading|=4,Ks(o,n.precedence,t),e.instance=o;case"script":return o=pi(n.src),(r=t.querySelector(bl(o)))?(e.instance=r,Wt(r),r):(l=n,(r=Ye.get(o))&&(l=v({},n),Ko(l,r)),t=t.ownerDocument||t,r=t.createElement("script"),Wt(r),le(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,Ks(l,n.precedence,t));return e.instance}function Ks(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 b=l[h];if(b.dataset.precedence===e)o=b;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 Qo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Ko(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Js=null;function mp(t,e,n){if(Js===null){var l=new Map,r=Js=new Map;r.set(n,l)}else r=Js,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[Ni]||o[ee]||t==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var h=o.getAttribute(e)||"";h=t+h;var b=l.get(h);b?b.push(o):l.set(h,[o])}}return l}function pp(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function wb(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 yp(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function zb(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=mi(l.href),o=e.querySelector(vl(r));if(o){e=o._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Ps.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=o,Wt(o);return}o=e.ownerDocument||e,l=dp(l),(r=Ye.get(r))&&Qo(l,r),o=o.createElement("link"),Wt(o);var h=o;h._p=new Promise(function(b,T){h.onload=b,h.onerror=T}),le(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=Ps.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var Jo=0;function Ob(t,e){return t.stylesheets&&t.count===0&&Ws(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var l=setTimeout(function(){if(t.stylesheets&&Ws(t,t.stylesheets),t.unsuspend){var o=t.unsuspend;t.unsuspend=null,o()}},6e4+e);0<t.imgBytes&&Jo===0&&(Jo=62500*fb());var r=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Ws(t,t.stylesheets),t.unsuspend)){var o=t.unsuspend;t.unsuspend=null,o()}},(t.imgBytes>Jo?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(r)}}:null}function Ps(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ws(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Fs=null;function Ws(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Fs=new Map,e.forEach(_b,t),Fs=null,Ps.call(t))}function _b(t,e){if(!(e.state.loading&4)){var n=Fs.get(t);if(n)var l=n.get(null);else{n=new Map,Fs.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=Ps.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:L,Provider:null,Consumer:null,_currentValue:$,_currentValue2:$,_threadCount:0};function jb(t,e,n,l,r,o,h,b,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=Gu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gu(0),this.hiddenUpdates=Gu(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 gp(t,e,n,l,r,o,h,b,T,z,U,G){return t=new jb(t,e,n,h,T,z,U,G,b),e=1,o===!0&&(e|=24),o=Ae(3,null,null,e),t.current=o,o.stateNode=t,e=Cr(),e.refCount++,t.pooledCache=e,e.refCount++,o.memoizedState={element:l,isDehydrated:n,cache:e},zr(o),t}function vp(t){return t?(t=Qa,t):Qa}function bp(t,e,n,l,r,o){r=vp(r),l.context===null?l.context=r:l.pendingContext=r,l=Nn(e),l.payload={element:n},o=o===void 0?null:o,o!==null&&(l.callback=o),n=Bn(t,l,e),n!==null&&(be(n,t,e),$i(n,t,e))}function Sp(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Po(t,e){Sp(t,e),(t=t.alternate)&&Sp(t,e)}function Tp(t){if(t.tag===13||t.tag===31){var e=ca(t,67108864);e!==null&&be(e,t,67108864),Po(t,67108864)}}function xp(t){if(t.tag===13||t.tag===31){var e=we();e=Xu(e);var n=ca(t,e);n!==null&&be(n,t,e),Po(t,e)}}var $s=!0;function Vb(t,e,n,l){var r=N.T;N.T=null;var o=J.p;try{J.p=2,Fo(t,e,n,l)}finally{J.p=o,N.T=r}}function Nb(t,e,n,l){var r=N.T;N.T=null;var o=J.p;try{J.p=8,Fo(t,e,n,l)}finally{J.p=o,N.T=r}}function Fo(t,e,n,l){if($s){var r=Wo(l);if(r===null)Bo(t,e,l,Is,n),Ap(t,l);else if(Lb(r,t,e,n,l))l.stopPropagation();else if(Ap(t,l),e&4&&-1<Bb.indexOf(t)){for(;r!==null;){var o=Na(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 b=o;for(b.pendingLanes|=2,b.entangledLanes|=2;h;){var T=1<<31-xe(h);b.entanglements[1]|=T,h&=~T}Ie(o),(xt&6)===0&&(Ns=oe()+500,ml(0))}}break;case 31:case 13:b=ca(o,2),b!==null&&be(b,o,2),Ls(),Po(o,2)}if(o=Wo(l),o===null&&Bo(t,e,l,Is,n),o===r)break;r=o}r!==null&&l.stopPropagation()}else Bo(t,e,l,null,n)}}function Wo(t){return t=$u(t),$o(t)}var Is=null;function $o(t){if(Is=null,t=Va(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 Is=t,null}function Ep(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(te()){case Se:return 2;case un:return 8;case _a:case xv:return 32;case jf:return 268435456;default:return 32}default:return 32}}var Io=!1,Kn=null,Jn=null,Pn=null,Tl=new Map,xl=new Map,Fn=[],Bb="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 Ap(t,e){switch(t){case"focusin":case"focusout":Kn=null;break;case"dragenter":case"dragleave":Jn=null;break;case"mouseover":case"mouseout":Pn=null;break;case"pointerover":case"pointerout":Tl.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":xl.delete(e.pointerId)}}function El(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=Na(e),e!==null&&Tp(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,r!==null&&e.indexOf(r)===-1&&e.push(r),t)}function Lb(t,e,n,l,r){switch(e){case"focusin":return Kn=El(Kn,t,e,n,l,r),!0;case"dragenter":return Jn=El(Jn,t,e,n,l,r),!0;case"mouseover":return Pn=El(Pn,t,e,n,l,r),!0;case"pointerover":var o=r.pointerId;return Tl.set(o,El(Tl.get(o)||null,t,e,n,l,r)),!0;case"gotpointercapture":return o=r.pointerId,xl.set(o,El(xl.get(o)||null,t,e,n,l,r)),!0}return!1}function Mp(t){var e=Va(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,Hf(t.priority,function(){xp(n)});return}}else if(e===31){if(e=m(n),e!==null){t.blockedOn=e,Hf(t.priority,function(){xp(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 tu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Wo(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);Wu=l,n.target.dispatchEvent(l),Wu=null}else return e=Na(n),e!==null&&Tp(e),t.blockedOn=n,!1;e.shift()}return!0}function Cp(t,e,n){tu(t)&&n.delete(e)}function Ub(){Io=!1,Kn!==null&&tu(Kn)&&(Kn=null),Jn!==null&&tu(Jn)&&(Jn=null),Pn!==null&&tu(Pn)&&(Pn=null),Tl.forEach(Cp),xl.forEach(Cp)}function eu(t,e){t.blockedOn===e&&(t.blockedOn=null,Io||(Io=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Ub)))}var nu=null;function Dp(t){nu!==t&&(nu=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){nu===t&&(nu=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($o(l||n)===null)continue;break}var o=Na(n);o!==null&&(t.splice(e,3),e-=3,Fr(o,{pending:!0,data:r,method:n.method,action:l},l,r))}}))}function yi(t){function e(T){return eu(T,t)}Kn!==null&&eu(Kn,t),Jn!==null&&eu(Jn,t),Pn!==null&&eu(Pn,t),Tl.forEach(e),xl.forEach(e);for(var n=0;n<Fn.length;n++){var l=Fn[n];l.blockedOn===t&&(l.blockedOn=null)}for(;0<Fn.length&&(n=Fn[0],n.blockedOn===null);)Mp(n),n.blockedOn===null&&Fn.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[he]||null;if(typeof o=="function")h||Dp(n);else if(h){var b=null;if(o&&o.hasAttribute("formAction")){if(r=o,h=o[he]||null)b=h.formAction;else if($o(r)!==null)continue}else b=h.action;typeof b=="function"?n[l+1]=b:(n.splice(l,3),l-=3),Dp(n)}}}function Rp(){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 tc(t){this._internalRoot=t}au.prototype.render=tc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(u(409));var n=e.current,l=we();bp(n,l,t,e,null,null)},au.prototype.unmount=tc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;bp(t.current,2,null,t,null,null),Ls(),e[ja]=null}};function au(t){this._internalRoot=t}au.prototype.unstable_scheduleHydration=function(t){if(t){var e=Uf();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Fn.length&&e!==0&&e<Fn[n].priority;n++);Fn.splice(n,0,t),n===0&&Mp(t)}};var wp=i.version;if(wp!=="19.2.5")throw Error(u(527,wp,"19.2.5"));J.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 Hb={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var iu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!iu.isDisabled&&iu.supportsFiber)try{_i=iu.inject(Hb),Te=iu}catch{}}return Ml.createRoot=function(t,e){if(!c(t))throw Error(u(299));var n=!1,l="",r=Bh,o=Lh,h=Uh;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=gp(t,1,!1,null,null,n,l,null,r,o,h,Rp),t[ja]=e.current,No(t),new tc(e)},Ml.hydrateRoot=function(t,e,n){if(!c(t))throw Error(u(299));var l=!1,r="",o=Bh,h=Lh,b=Uh,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&&(b=n.onRecoverableError),n.formState!==void 0&&(T=n.formState)),e=gp(t,1,!0,e,n??null,l,r,T,o,h,b,Rp),e.context=vp(null),n=e.current,l=we(),l=Xu(l),r=Nn(l),r.callback=null,Bn(n,r,l),n=l,e.current.lanes=n,Vi(e,n),Ie(e),t[ja]=e.current,No(t),new au(e)},Ml.version="19.2.5",Ml}var Hp;function Pb(){if(Hp)return ac.exports;Hp=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(),ac.exports=Jb(),ac.exports}var Fb=Pb();const hu={scale:1,x:0,y:0};function fg(a){return 1-(1-Math.min(1,Math.max(0,a)))**5}function Yp(a,i,s){if(s>=1)return{...i};const u=fg(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 uc(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 Wb=3e3;function $b(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(Wb,c);return{stepStartTimesMs:s,totalDurationMs:d}}function wc(a,i,s){for(let u=i.length-1;u>=0;u--)if(a>=i[u])return Math.min(u,s);return 0}const Ib=3e3;function dg(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:Ib}const It=450,hg=50,mg=1500,xu=200,rc=600;function pg(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 yg(a){const i=pg(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 tS(a){const i=pg(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 eS="data-cursor-target",nS="data-scroll-target";function Ti(a){return`[${eS}="${a}"]`}function aS(a){return`[${nS}="${a}"]`}const gg="scenar-embed",vg=1;function iS(a){return{source:gg,v:vg,...a}}function lS(a){if(typeof a!="object"||a===null)return!1;const i=a;return i.source===gg&&i.v===vg}function qp(a){return typeof a=="number"&&Number.isFinite(a)}function sS(a){if(!lS(a))return null;const i=a.type;switch(i){case"play":case"pause":case"prefetch":case"destroy":return{type:i};case"seek":return qp(a.timeMs)?{type:i,timeMs:a.timeMs}:null;case"setMuted":return typeof a.muted=="boolean"?{type:i,muted:a.muted}:null;case"setVolume":return qp(a.volume)?{type:i,volume:a.volume}:null;default:return null}}const uS=D.createContext(null);function Vu(){return D.useContext(uS)}const rS={isVideoExport:!1,hideControls:!1,initialMuted:!0},oS=D.createContext(rS);function Nu(){return D.useContext(oS)}const zc=new Map;let cS=0;function fS(a){const i=`sp-${cS++}`;return zc.set(i,a),{id:i,unregister:()=>zc.delete(i)}}function Gp(a){for(const[i,s]of zc)i!==a&&s()}function ef(a){const i=a.play();return i instanceof Promise?i:Promise.resolve()}function lu(a,i,s=1){return a.src=i,a.defaultPlaybackRate=s,a.load(),a.playbackRate=s,ef(a)}function dS(a,i,s,u=1){a.src=i,a.defaultPlaybackRate=u,a.load(),a.playbackRate=u;const c=()=>{a.currentTime=s,ef(a).catch(()=>{})};a.readyState>=HTMLMediaElement.HAVE_METADATA?c():a.addEventListener("loadedmetadata",c,{once:!0})}function su(a){a.pause(),a.removeAttribute("src"),a.load()}function uu(a){for(const i of a.steps)i!=null&&i.src&&fetch(i.src).catch(()=>{})}function hS({manifest:a,stepIndex:i,playing:s,initialMuted:u=!0,playbackRate:c=1,onClipEnded:d}){const[f,m]=D.useState(u),[y,p]=D.useState(!1),g=D.useRef(null),v=D.useRef(!1),S=D.useCallback(Z=>{Z.then(()=>p(!1),()=>p(!0))},[]),x=D.useRef(f);x.current=f;const E=D.useRef(s);E.current=s;const O=D.useRef(d);O.current=d;const _=D.useRef(c);_.current=c;const V=(a==null?void 0:a.steps[i])??null,H=(V==null?void 0:V.src)??null,L=D.useRef(!1),k=D.useCallback((Z,K)=>{L.current=!0,setTimeout(()=>{L.current=!1},0);const I=g.current;if(!I||!a||x.current)return;const lt=a.steps[Z],Ct=lt==null?void 0:lt.src;if(!Ct)return;const Et=(lt==null?void 0:lt.durationMs)??0;if(K>=Et){su(I);return}dS(I,Ct,K/1e3,_.current)},[a]);D.useEffect(()=>{!a||u||v.current||(uu(a),v.current=!0)},[a,u]),D.useEffect(()=>{const Z=g.current;if(!Z||!a)return;const K=()=>{var I;return(I=O.current)==null?void 0:I.call(O)};return Z.addEventListener("ended",K),()=>Z.removeEventListener("ended",K)},[a]),D.useEffect(()=>{if(L.current){L.current=!1;return}const Z=g.current;if(!(!Z||!a)){if(x.current||!H||!E.current){su(Z);return}S(lu(Z,H,_.current))}},[i,H,a,S]),D.useEffect(()=>{const Z=g.current;!Z||!a||x.current||(s?H&&(Z.src?S(ef(Z)):S(lu(Z,H,_.current))):Z.pause())},[s,H,a,S]);const F=D.useCallback(()=>{m(Z=>{const K=!Z,I=g.current;return I&&(K?(su(I),p(!1)):(a&&!v.current&&(uu(a),v.current=!0),H&&S(lu(I,H,_.current)))),K})},[H,a,S]),Q=D.useCallback(()=>{const Z=g.current;!Z||x.current||!H||(a&&!v.current&&(uu(a),v.current=!0),S(lu(Z,H,_.current)))},[H,a,S]),X=D.useCallback(Z=>{const K=g.current;K&&(K.volume=Math.max(0,Math.min(Z,1)))},[]),P=D.useCallback(()=>{!a||v.current||(uu(a),v.current=!0)},[a]);return D.useEffect(()=>{const Z=g.current;Z&&(Z.defaultPlaybackRate=c,Z.playbackRate=c)},[c]),D.useEffect(()=>{const Z=g.current;return()=>{Z&&su(Z)}},[]),{muted:f,toggleMute:F,audioRef:g,seekToStep:k,audioBlocked:y,unlock:Q,setVolume:X,prefetch:P}}const nf=D.createContext({});function af(a){const i=D.useRef(null);return i.current===null&&(i.current=a()),i.current}const mS=typeof window<"u",bg=mS?D.useLayoutEffect:D.useEffect,Bu=D.createContext(null);function lf(a,i){a.indexOf(i)===-1&&a.push(i)}function Eu(a,i){const s=a.indexOf(i);s>-1&&a.splice(s,1)}const ln=(a,i,s)=>s>i?i:s<a?a:s;let sf=()=>{};const ea={},Sg=a=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a);function Tg(a){return typeof a=="object"&&a!==null}const xg=a=>/^0[^.\s]+$/u.test(a);function Eg(a){let i;return()=>(i===void 0&&(i=a()),i)}const Ge=a=>a,pS=(a,i)=>s=>i(a(s)),Bl=(...a)=>a.reduce(pS),_l=(a,i,s)=>{const u=i-a;return u===0?1:(s-a)/u};class uf{constructor(){this.subscriptions=[]}add(i){return lf(this.subscriptions,i),()=>Eu(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 Ag(a,i){return i?a*(1e3/i):0}const Mg=(a,i,s)=>(((1-3*s+3*i)*a+(3*s-6*i))*a+3*i)*a,yS=1e-7,gS=12;function vS(a,i,s,u,c){let d,f,m=0;do f=i+(s-i)/2,d=Mg(f,u,c)-a,d>0?s=f:i=f;while(Math.abs(d)>yS&&++m<gS);return f}function Ll(a,i,s,u){if(a===i&&s===u)return Ge;const c=d=>vS(d,0,1,a,s);return d=>d===0||d===1?d:Mg(c(d),i,u)}const Cg=a=>i=>i<=.5?a(2*i)/2:(2-a(2*(1-i)))/2,Dg=a=>i=>1-a(1-i),Rg=Ll(.33,1.53,.69,.99),rf=Dg(Rg),wg=Cg(rf),zg=a=>a>=1?1:(a*=2)<1?.5*rf(a):.5*(2-Math.pow(2,-10*(a-1))),of=a=>1-Math.sin(Math.acos(a)),Og=Dg(of),_g=Cg(of),bS=Ll(.42,0,1,1),SS=Ll(0,0,.58,1),jg=Ll(.42,0,.58,1),TS=a=>Array.isArray(a)&&typeof a[0]!="number",Vg=a=>Array.isArray(a)&&typeof a[0]=="number",xS={linear:Ge,easeIn:bS,easeInOut:jg,easeOut:SS,circIn:of,circInOut:_g,circOut:Og,backIn:rf,backInOut:wg,backOut:Rg,anticipate:zg},ES=a=>typeof a=="string",Xp=a=>{if(Vg(a)){sf(a.length===4);const[i,s,u,c]=a;return Ll(i,s,u,c)}else if(ES(a))return xS[a];return a},ru=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function AS(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,S=!1)=>{const E=S&&c?s:u;return v&&f.add(g),E.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 MS=40;function Ng(a,i){let s=!1,u=!0;const c={delta:0,timestamp:0,isProcessing:!1},d=()=>s=!0,f=ru.reduce((L,k)=>(L[k]=AS(d),L),{}),{setup:m,read:y,resolveKeyframes:p,preUpdate:g,update:v,preRender:S,render:x,postRender:E}=f,O=()=>{const L=ea.useManualTiming,k=L?c.timestamp:performance.now();s=!1,L||(c.delta=u?1e3/60:Math.max(Math.min(k-c.timestamp,MS),1)),c.timestamp=k,c.isProcessing=!0,m.process(c),y.process(c),p.process(c),g.process(c),v.process(c),S.process(c),x.process(c),E.process(c),c.isProcessing=!1,s&&i&&(u=!1,a(O))},_=()=>{s=!0,u=!0,c.isProcessing||a(O)};return{schedule:ru.reduce((L,k)=>{const F=f[k];return L[k]=(Q,X=!1,P=!1)=>(s||_(),F.schedule(Q,X,P)),L},{}),cancel:L=>{for(let k=0;k<ru.length;k++)f[ru[k]].cancel(L)},state:c,steps:f}}const{schedule:_t,cancel:na,state:se,steps:oc}=Ng(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ge,!0);let mu;function CS(){mu=void 0}const fe={now:()=>(mu===void 0&&fe.set(se.isProcessing||ea.useManualTiming?se.timestamp:performance.now()),mu),set:a=>{mu=a,queueMicrotask(CS)}},Bg=a=>i=>typeof i=="string"&&i.startsWith(a),Lg=Bg("--"),DS=Bg("var(--"),cf=a=>DS(a)?RS.test(a.split("/*")[0].trim()):!1,RS=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function kp(a){return typeof a!="string"?!1:a.split("/*")[0].includes("var(--")}const Mi={test:a=>typeof a=="number",parse:parseFloat,transform:a=>a},jl={...Mi,transform:a=>ln(0,1,a)},ou={...Mi,default:1},Rl=a=>Math.round(a*1e5)/1e5,ff=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function wS(a){return a==null}const zS=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,df=(a,i)=>s=>!!(typeof s=="string"&&zS.test(s)&&s.startsWith(a)||i&&!wS(s)&&Object.prototype.hasOwnProperty.call(s,i)),Ug=(a,i,s)=>u=>{if(typeof u!="string")return u;const[c,d,f,m]=u.match(ff);return{[a]:parseFloat(c),[i]:parseFloat(d),[s]:parseFloat(f),alpha:m!==void 0?parseFloat(m):1}},OS=a=>ln(0,255,a),cc={...Mi,transform:a=>Math.round(OS(a))},Ma={test:df("rgb","red"),parse:Ug("red","green","blue"),transform:({red:a,green:i,blue:s,alpha:u=1})=>"rgba("+cc.transform(a)+", "+cc.transform(i)+", "+cc.transform(s)+", "+Rl(jl.transform(u))+")"};function _S(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 Oc={test:df("#"),parse:_S,transform:Ma.transform},Ul=a=>({test:i=>typeof i=="string"&&i.endsWith(a)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${a}`}),$n=Ul("deg"),nn=Ul("%"),nt=Ul("px"),jS=Ul("vh"),VS=Ul("vw"),Zp={...nn,parse:a=>nn.parse(a)/100,transform:a=>nn.transform(a*100)},vi={test:df("hsl","hue"),parse:Ug("hue","saturation","lightness"),transform:({hue:a,saturation:i,lightness:s,alpha:u=1})=>"hsla("+Math.round(a)+", "+nn.transform(Rl(i))+", "+nn.transform(Rl(s))+", "+Rl(jl.transform(u))+")"},Jt={test:a=>Ma.test(a)||Oc.test(a)||vi.test(a),parse:a=>Ma.test(a)?Ma.parse(a):vi.test(a)?vi.parse(a):Oc.parse(a),transform:a=>typeof a=="string"?a:a.hasOwnProperty("red")?Ma.transform(a):vi.transform(a),getAnimatableNone:a=>{const i=Jt.parse(a);return i.alpha=0,Jt.transform(i)}},NS=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function BS(a){var i,s;return isNaN(a)&&typeof a=="string"&&(((i=a.match(ff))==null?void 0:i.length)||0)+(((s=a.match(NS))==null?void 0:s.length)||0)>0}const Hg="number",Yg="color",LS="var",US="var(",Qp="${}",HS=/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 xi(a){const i=a.toString(),s=[],u={color:[],number:[],var:[]},c=[];let d=0;const m=i.replace(HS,y=>(Jt.test(y)?(u.color.push(d),c.push(Yg),s.push(Jt.parse(y))):y.startsWith(US)?(u.var.push(d),c.push(LS),s.push(y)):(u.number.push(d),c.push(Hg),s.push(parseFloat(y))),++d,Qp)).split(Qp);return{values:s,split:m,indexes:u,types:c}}function YS(a){return xi(a).values}function qg({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===Hg?c+=Rl(u[d]):f===Yg?c+=Jt.transform(u[d]):c+=u[d]}return c}}function qS(a){return qg(xi(a))}const GS=a=>typeof a=="number"?0:Jt.test(a)?Jt.getAnimatableNone(a):a,XS=(a,i)=>typeof a=="number"?i!=null&&i.trim().endsWith("/")?a:0:GS(a);function kS(a){const i=xi(a);return qg(i)(i.values.map((u,c)=>XS(u,i.split[c])))}const Je={test:BS,parse:YS,createTransformer:qS,getAnimatableNone:kS};function fc(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 ZS({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=fc(y,m,a+1/3),d=fc(y,m,a),f=fc(y,m,a-1/3)}return{red:Math.round(c*255),green:Math.round(d*255),blue:Math.round(f*255),alpha:u}}function Au(a,i){return s=>s>0?i:a}const Bt=(a,i,s)=>a+(i-a)*s,dc=(a,i,s)=>{const u=a*a,c=s*(i*i-u)+u;return c<0?0:Math.sqrt(c)},QS=[Oc,Ma,vi],KS=a=>QS.find(i=>i.test(a));function Kp(a){const i=KS(a);if(!i)return!1;let s=i.parse(a);return i===vi&&(s=ZS(s)),s}const Jp=(a,i)=>{const s=Kp(a),u=Kp(i);if(!s||!u)return Au(a,i);const c={...s};return d=>(c.red=dc(s.red,u.red,d),c.green=dc(s.green,u.green,d),c.blue=dc(s.blue,u.blue,d),c.alpha=Bt(s.alpha,u.alpha,d),Ma.transform(c))},_c=new Set(["none","hidden"]);function JS(a,i){return _c.has(a)?s=>s<=0?a:i:s=>s>=1?i:a}function PS(a,i){return s=>Bt(a,i,s)}function hf(a){return typeof a=="number"?PS:typeof a=="string"?cf(a)?Au:Jt.test(a)?Jp:$S:Array.isArray(a)?Gg:typeof a=="object"?Jt.test(a)?Jp:FS:Au}function Gg(a,i){const s=[...a],u=s.length,c=a.map((d,f)=>hf(d)(d,i[f]));return d=>{for(let f=0;f<u;f++)s[f]=c[f](d);return s}}function FS(a,i){const s={...a,...i},u={};for(const c in s)a[c]!==void 0&&i[c]!==void 0&&(u[c]=hf(a[c])(a[c],i[c]));return c=>{for(const d in u)s[d]=u[d](c);return s}}function WS(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 $S=(a,i)=>{const s=Je.createTransformer(i),u=xi(a),c=xi(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?_c.has(a)&&!c.values.length||_c.has(i)&&!u.values.length?JS(a,i):Bl(Gg(WS(u,c),c.values),s):Au(a,i)};function Xg(a,i,s){return typeof a=="number"&&typeof i=="number"&&typeof s=="number"?Bt(a,i,s):hf(a)(a,i)}const IS=a=>{const i=({timestamp:s})=>a(s);return{start:(s=!0)=>_t.update(i,s),stop:()=>na(i),now:()=>se.isProcessing?se.timestamp:fe.now()}},kg=(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)})`},Mu=2e4;function mf(a){let i=0;const s=50;let u=a.next(i);for(;!u.done&&i<Mu;)i+=s,u=a.next(i);return i>=Mu?1/0:i}function tT(a,i=100,s){const u=s({...a,keyframes:[0,i]}),c=Math.min(mf(u),Mu);return{type:"keyframes",ease:d=>u.next(c*d).value/i,duration:qe(c)}}const qt={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 jc(a,i){return a*Math.sqrt(1-i*i)}const eT=12;function nT(a,i,s){let u=s;for(let c=1;c<eT;c++)u=u-a(u)/i(u);return u}const hc=.001;function aT({duration:a=qt.duration,bounce:i=qt.bounce,velocity:s=qt.velocity,mass:u=qt.mass}){let c,d,f=1-i;f=ln(qt.minDamping,qt.maxDamping,f),a=ln(qt.minDuration,qt.maxDuration,qe(a)),f<1?(c=p=>{const g=p*f,v=g*a,S=g-s,x=jc(p,f),E=Math.exp(-v);return hc-S/x*E},d=p=>{const v=p*f*a,S=v*s+s,x=Math.pow(f,2)*Math.pow(p,2)*a,E=Math.exp(-v),O=jc(Math.pow(p,2),f);return(-c(p)+hc>0?-1:1)*((S-x)*E)/O}):(c=p=>{const g=Math.exp(-p*a),v=(p-s)*a+1;return-hc+g*v},d=p=>{const g=Math.exp(-p*a),v=(s-p)*(a*a);return g*v});const m=5/a,y=nT(c,d,m);if(a=ze(a),isNaN(y))return{stiffness:qt.stiffness,damping:qt.damping,duration:a};{const p=Math.pow(y,2)*u;return{stiffness:p,damping:f*2*Math.sqrt(u*p),duration:a}}}const iT=["duration","bounce"],lT=["stiffness","damping","mass"];function Pp(a,i){return i.some(s=>a[s]!==void 0)}function sT(a){let i={velocity:qt.velocity,stiffness:qt.stiffness,damping:qt.damping,mass:qt.mass,isResolvedFromDuration:!1,...a};if(!Pp(a,lT)&&Pp(a,iT))if(i.velocity=0,a.visualDuration){const s=a.visualDuration,u=2*Math.PI/(s*1.2),c=u*u,d=2*ln(.05,1,1-(a.bounce||0))*Math.sqrt(c);i={...i,mass:qt.mass,stiffness:c,damping:d}}else{const s=aT({...a,velocity:0});i={...i,...s,mass:qt.mass},i.isResolvedFromDuration=!0}return i}function Cu(a=qt.visualDuration,i=qt.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:S,isResolvedFromDuration:x}=sT({...s,velocity:-qe(s.velocity||0)}),E=S||0,O=p/(2*Math.sqrt(y*g)),_=f-d,V=qe(Math.sqrt(y/g)),H=Math.abs(_)<5;u||(u=H?qt.restSpeed.granular:qt.restSpeed.default),c||(c=H?qt.restDelta.granular:qt.restDelta.default);let L,k,F,Q,X,P;if(O<1)F=jc(V,O),Q=(E+O*V*_)/F,L=K=>{const I=Math.exp(-O*V*K);return f-I*(Q*Math.sin(F*K)+_*Math.cos(F*K))},X=O*V*Q+_*F,P=O*V*_-Q*F,k=K=>Math.exp(-O*V*K)*(X*Math.sin(F*K)+P*Math.cos(F*K));else if(O===1){L=I=>f-Math.exp(-V*I)*(_+(E+V*_)*I);const K=E+V*_;k=I=>Math.exp(-V*I)*(V*K*I-E)}else{const K=V*Math.sqrt(O*O-1);L=Et=>{const zt=Math.exp(-O*V*Et),N=Math.min(K*Et,300);return f-zt*((E+O*V*_)*Math.sinh(N)+K*_*Math.cosh(N))/K};const I=(E+O*V*_)/K,lt=O*V*I-_*K,Ct=O*V*_-I*K;k=Et=>{const zt=Math.exp(-O*V*Et),N=Math.min(K*Et,300);return zt*(lt*Math.sinh(N)+Ct*Math.cosh(N))}}const Z={calculatedDuration:x&&v||null,velocity:K=>ze(k(K)),next:K=>{if(!x&&O<1){const lt=Math.exp(-O*V*K),Ct=Math.sin(F*K),Et=Math.cos(F*K),zt=f-lt*(Q*Ct+_*Et),N=ze(lt*(X*Ct+P*Et));return m.done=Math.abs(N)<=u&&Math.abs(f-zt)<=c,m.value=m.done?f:zt,m}const I=L(K);if(x)m.done=K>=v;else{const lt=ze(k(K));m.done=Math.abs(lt)<=u&&Math.abs(f-I)<=c}return m.value=m.done?f:I,m},toString:()=>{const K=Math.min(mf(Z),Mu),I=kg(lt=>Z.next(K*lt).value,K,30);return K+"ms "+I},toTransition:()=>{}};return Z}Cu.applyToOptions=a=>{const i=tT(a,100,Cu);return a.ease=i.ease,a.duration=ze(i.duration),a.type="keyframes",a};const uT=5;function Zg(a,i,s){const u=Math.max(i-uT,0);return Ag(s-a(u),i-u)}function Vc({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],S={done:!1,value:v},x=P=>m!==void 0&&P<m||y!==void 0&&P>y,E=P=>m===void 0?y:y===void 0||Math.abs(m-P)<Math.abs(y-P)?m:y;let O=s*i;const _=v+O,V=f===void 0?_:f(_);V!==_&&(O=V-v);const H=P=>-O*Math.exp(-P/u),L=P=>V+H(P),k=P=>{const Z=H(P),K=L(P);S.done=Math.abs(Z)<=p,S.value=S.done?V:K};let F,Q;const X=P=>{x(S.value)&&(F=P,Q=Cu({keyframes:[S.value,E(S.value)],velocity:Zg(L,P,S.value),damping:c,stiffness:d,restDelta:p,restSpeed:g}))};return X(0),{calculatedDuration:null,next:P=>{let Z=!1;return!Q&&F===void 0&&(Z=!0,k(P),X(P)),F!==void 0&&P>=F?Q.next(P-F):(!Z&&k(P),S)}}}function rT(a,i,s){const u=[],c=s||ea.mix||Xg,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=Bl(y,m)}u.push(m)}return u}function oT(a,i,{clamp:s=!0,ease:u,mixer:c}={}){const d=a.length;if(sf(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=rT(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 S=_l(a[v],a[v+1],g);return m[v](S)};return s?g=>p(ln(a[0],a[d-1],g)):p}function cT(a,i){const s=a[a.length-1];for(let u=1;u<=i;u++){const c=_l(0,i,u);a.push(Bt(s,1,c))}}function fT(a){const i=[0];return cT(i,a.length-1),i}function dT(a,i){return a.map(s=>s*i)}function hT(a,i){return a.map(()=>i||jg).splice(0,a.length-1)}function wl({duration:a=300,keyframes:i,times:s,ease:u="easeInOut"}){const c=TS(u)?u.map(Xp):Xp(u),d={done:!1,value:i[0]},f=dT(s&&s.length===i.length?s:fT(i),a),m=oT(f,i,{ease:Array.isArray(c)?c:hT(i,c)});return{calculatedDuration:a,next:y=>(d.value=m(y),d.done=y>=a,d)}}const mT=a=>a!==null;function Lu(a,{repeat:i,repeatType:s="loop"},u,c=1){const d=a.filter(mT),m=c<0||i&&s!=="loop"&&i%2===1?0:d.length-1;return!m||u===void 0?d[m]:u}const pT={decay:Vc,inertia:Vc,tween:wl,keyframes:wl,spring:Cu};function Qg(a){typeof a.type=="string"&&(a.type=pT[a.type])}class pf{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 yT=a=>a/100;class Du extends pf{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!==fe.now()&&this.tick(fe.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;Qg(i);const{type:s=wl,repeat:u=0,repeatDelay:c=0,repeatType:d,velocity:f=0}=i;let{keyframes:m}=i;const y=s||wl;y!==wl&&typeof m[0]!="number"&&(this.mixKeyframes=Bl(yT,Xg(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=mf(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:S,repeatDelay:x,type:E,onUpdate:O,finalKeyframe:_}=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 V=this.currentTime-p*(this.playbackSpeed>=0?1:-1),H=this.playbackSpeed>=0?V<0:V>c;this.currentTime=Math.max(V,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let L=this.currentTime,k=u;if(v){const P=Math.min(this.currentTime,c)/m;let Z=Math.floor(P),K=P%1;!K&&P>=1&&(K=1),K===1&&Z--,Z=Math.min(Z,v+1),!!(Z%2)&&(S==="reverse"?(K=1-K,x&&(K-=x/m)):S==="mirror"&&(k=f)),L=ln(0,1,K)*m}let F;H?(this.delayState.value=g[0],F=this.delayState):F=k.next(L),d&&!H&&(F.value=d(F.value));let{done:Q}=F;!H&&y!==null&&(Q=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const X=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&Q);return X&&E!==Vc&&(F.value=Lu(g,this.options,_,this.speed)),O&&O(F.value),X&&this.finish(),F}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 Zg(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(fe.now()),this.playbackSpeed=i,s&&this.driver&&(this.time=qe(this.currentTime))}play(){var c,d;if(this.isStopped)return;const{driver:i=IS,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(fe.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 gT(a){for(let i=1;i<a.length;i++)a[i]??(a[i]=a[i-1])}const Ca=a=>a*180/Math.PI,Nc=a=>{const i=Ca(Math.atan2(a[1],a[0]));return Bc(i)},vT={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:Nc,rotateZ:Nc,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},Bc=a=>(a=a%360,a<0&&(a+=360),a),Fp=Nc,Wp=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),$p=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),bT={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Wp,scaleY:$p,scale:a=>(Wp(a)+$p(a))/2,rotateX:a=>Bc(Ca(Math.atan2(a[6],a[5]))),rotateY:a=>Bc(Ca(Math.atan2(-a[2],a[0]))),rotateZ:Fp,rotate:Fp,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 Lc(a){return a.includes("scale")?1:0}function Uc(a,i){if(!a||a==="none")return Lc(i);const s=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let u,c;if(s)u=bT,c=s;else{const m=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);u=vT,c=m}if(!c)return Lc(i);const d=u[i],f=c[1].split(",").map(TT);return typeof d=="function"?d(f):f[d]}const ST=(a,i)=>{const{transform:s="none"}=getComputedStyle(a);return Uc(s,i)};function TT(a){return parseFloat(a.trim())}const Ci=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Di=new Set(Ci),Ip=a=>a===Mi||a===nt,xT=new Set(["x","y","z"]),ET=Ci.filter(a=>!xT.has(a));function AT(a){const i=[];return ET.forEach(s=>{const u=a.getValue(s);u!==void 0&&(i.push([s,u.get()]),u.set(s.startsWith("scale")?1:0))}),i}const ta={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})=>Uc(i,"x"),y:(a,{transform:i})=>Uc(i,"y")};ta.translateX=ta.x;ta.translateY=ta.y;const Da=new Set;let Hc=!1,Yc=!1,qc=!1;function Kg(){if(Yc){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=AT(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)})}Yc=!1,Hc=!1,Da.forEach(a=>a.complete(qc)),Da.clear()}function Jg(){Da.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(Yc=!0)})}function MT(){qc=!0,Jg(),Kg(),qc=!1}class yf{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),Hc||(Hc=!0,_t.read(Jg),_t.resolveKeyframes(Kg))):(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])}gT(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 CT=a=>a.startsWith("--");function Pg(a,i,s){CT(i)?a.style.setProperty(i,s):a.style[i]=s}const DT={};function Fg(a,i){const s=Eg(a);return()=>DT[i]??s()}const RT=Fg(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Wg=Fg(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Dl=([a,i,s,u])=>`cubic-bezier(${a}, ${i}, ${s}, ${u})`,ty={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Dl([0,.65,.55,1]),circOut:Dl([.55,0,1,.45]),backIn:Dl([.31,.01,.66,-.59]),backOut:Dl([.33,1.53,.69,.99])};function $g(a,i){if(a)return typeof a=="function"?Wg()?kg(a,i):"ease-out":Vg(a)?Dl(a):Array.isArray(a)?a.map(s=>$g(s,i)||ty.easeOut):ty[a]}function wT(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=$g(m,c);Array.isArray(v)&&(g.easing=v);const S={delay:u,duration:c,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:d+1,direction:f==="reverse"?"alternate":"normal"};return p&&(S.pseudoElement=p),a.animate(g,S)}function Ig(a){return typeof a=="function"&&"applyToOptions"in a}function zT({type:a,...i}){return Ig(a)&&Wg()?a.applyToOptions(i):(i.duration??(i.duration=300),i.ease??(i.ease="easeOut"),i)}class t0 extends pf{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,sf(typeof i.type!="string");const p=zT(i);this.animation=wT(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),Pg(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&&RT()?(this.animation.timeline=i,s&&(this.animation.rangeStart=s),u&&(this.animation.rangeEnd=u),Ge):c(this)}}const e0={anticipate:zg,backInOut:wg,circInOut:_g};function OT(a){return a in e0}function _T(a){typeof a.ease=="string"&&OT(a.ease)&&(a.ease=e0[a.ease])}const mc=10;class jT extends t0{constructor(i){_T(i),Qg(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 Du({...f,autoplay:!1}),y=Math.max(mc,fe.now()-this.startTime),p=ln(0,mc,y-mc),g=m.sample(y).value,{name:v}=this.options;d&&v&&Pg(d,v,g),s.setWithVelocity(m.sample(Math.max(0,y-p)).value,g,p),m.stop()}}const ey=(a,i)=>i==="zIndex"?!1:!!(typeof a=="number"||Array.isArray(a)||typeof a=="string"&&(Je.test(a)||a==="0")&&!a.startsWith("url("));function VT(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 NT(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=ey(c,i),m=ey(d,i);return!f||!m?!1:VT(a)||(s==="spring"||Ig(s))&&u}function Gc(a){a.duration=0,a.type="keyframes"}const n0=new Set(["opacity","clipPath","filter","transform"]),BT=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function LT(a){for(let i=0;i<a.length;i++)if(typeof a[i]=="string"&&BT.test(a[i]))return!0;return!1}const UT=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),HT=Eg(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function YT(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 HT()&&s&&(n0.has(s)||UT.has(s)&&LT(m))&&(s!=="transform"||!g)&&!p&&!u&&c!=="mirror"&&d!==0&&f!=="inertia"}const qT=40;class GT extends pf{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 E;super(),this.stop=()=>{var O,_;this._animation&&(this._animation.stop(),(O=this.stopTimeline)==null||O.call(this)),(_=this.keyframeResolver)==null||_.cancel()},this.createdAt=fe.now();const S={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)||yf;this.keyframeResolver=new x(m,(O,_,V)=>this.onKeyframesResolved(O,_,S,!V),y,p,g),(E=this.keyframeResolver)==null||E.scheduleResolve()}onKeyframesResolved(i,s,u,c){var V,H;this.keyframeResolver=void 0;const{name:d,type:f,velocity:m,delay:y,isHandoff:p,onUpdate:g}=u;this.resolvedAt=fe.now();let v=!0;NT(i,d,f,m)||(v=!1,(ea.instantAnimations||!y)&&(g==null||g(Lu(i,u,s))),i[0]=i[i.length-1],Gc(u),u.repeat=0);const x={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>qT?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...u,keyframes:i},E=v&&!p&&YT(x),O=(H=(V=x.motionValue)==null?void 0:V.owner)==null?void 0:H.current;let _;if(E)try{_=new jT({...x,element:O})}catch{_=new Du(x)}else _=new Du(x);_.finished.then(()=>{this.notifyFinished()}).catch(Ge),this.pendingTimeline&&(this.stopTimeline=_.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=_}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(),MT()),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 a0(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 XT=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function kT(a){const i=XT.exec(a);if(!i)return[,];const[,s,u,c]=i;return[`--${s??u}`,c]}function i0(a,i,s=1){const[u,c]=kT(a);if(!u)return;const d=window.getComputedStyle(i).getPropertyValue(u);if(d){const f=d.trim();return Sg(f)?parseFloat(f):f}return cf(c)?i0(c,i,s+1):c}const ZT={type:"spring",stiffness:500,damping:25,restSpeed:10},QT=a=>({type:"spring",stiffness:550,damping:a===0?2*Math.sqrt(550):30,restSpeed:10}),KT={type:"keyframes",duration:.8},JT={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},PT=(a,{keyframes:i})=>i.length>2?KT:Di.has(a)?a.startsWith("scale")?QT(i[1]):ZT:JT;function l0(a,i){if(a!=null&&a.inherit&&i){const{inherit:s,...u}=a;return{...i,...u}}return a}function gf(a,i){const s=(a==null?void 0:a[i])??(a==null?void 0:a.default)??a;return s!==a?l0(s,a):s}const FT=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function WT(a){for(const i in a)if(!FT.has(i))return!0;return!1}const vf=(a,i,s,u={},c,d)=>f=>{const m=gf(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:S=>{i.set(S),m.onUpdate&&m.onUpdate(S)},onComplete:()=>{f(),m.onComplete&&m.onComplete()},name:a,motionValue:i,element:d?void 0:c};WT(m)||Object.assign(g,PT(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)&&(Gc(g),g.delay===0&&(v=!0)),(ea.instantAnimations||ea.skipAnimations||c!=null&&c.shouldSkipAnimations)&&(v=!0,Gc(g),g.delay=0),g.allowFlatten=!m.type&&!m.ease,v&&!d&&i.get()!==void 0){const S=Lu(g.keyframes,m);if(S!==void 0){_t.update(()=>{g.onUpdate(S),g.onComplete()});return}}return m.isSync?new Du(g):new GT(g)};function ny(a){const i=[{},{}];return a==null||a.values.forEach((s,u)=>{i[0][u]=s.get(),i[1][u]=s.getVelocity()}),i}function bf(a,i,s,u){if(typeof i=="function"){const[c,d]=ny(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]=ny(u);i=i(s!==void 0?s:a.custom,c,d)}return i}function Ra(a,i,s){const u=a.getProps();return bf(u,i,s!==void 0?s:u.custom,a)}const s0=new Set(["width","height","top","left","right","bottom",...Ci]),ay=30,$T=a=>!isNaN(parseFloat(a));class IT{constructor(i,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=u=>{var d;const c=fe.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=fe.now(),this.canTrackVelocity===null&&i!==void 0&&(this.canTrackVelocity=$T(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 uf);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=fe.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||i-this.updatedAt>ay)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,ay);return Ag(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 Ei(a,i){return new IT(a,i)}const Xc=a=>Array.isArray(a);function tx(a,i,s){a.hasValue(i)?a.getValue(i).set(s):a.addValue(i,Ei(s))}function ex(a){return Xc(a)?a[a.length-1]||0:a}function nx(a,i){const s=Ra(a,i);let{transitionEnd:u={},transition:c={},...d}=s||{};d={...d,...u};for(const f in d){const m=ex(d[f]);tx(a,f,m)}}const ue=a=>!!(a&&a.getVelocity);function ax(a){return!!(ue(a)&&a.add)}function kc(a,i){const s=a.getValue("willChange");if(ax(s))return s.add(i);if(!s&&ea.WillChange){const u=new ea.WillChange("auto");a.addValue("willChange",u),u.add(i)}}function Sf(a){return a.replace(/([A-Z])/g,i=>`-${i.toLowerCase()}`)}const ix="framerAppearId",u0="data-"+Sf(ix);function r0(a){return a.props[u0]}function lx({protectedKeys:a,needsAnimating:i},s){const u=a.hasOwnProperty(s)&&i[s]!==!0;return i[s]=!1,u}function o0(a,i,{delay:s=0,transitionOverride:u,type:c}={}){let{transition:d,transitionEnd:f,...m}=i;const y=a.getDefaultTransition();d=d?l0(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 S in m){const x=a.getValue(S,a.latestValues[S]??null),E=m[S];if(E===void 0||v&&lx(v,S))continue;const O={delay:s,...gf(d||{},S)},_=x.get();if(_!==void 0&&!x.isAnimating()&&!Array.isArray(E)&&E===_&&!O.velocity){_t.update(()=>x.set(E));continue}let V=!1;if(window.MotionHandoffAnimation){const k=r0(a);if(k){const F=window.MotionHandoffAnimation(k,S,_t);F!==null&&(O.startTime=F,V=!0)}}kc(a,S);const H=p??a.shouldReduceMotion;x.start(vf(S,x,E,H&&s0.has(S)?{type:!1}:O,a,V));const L=x.animation;L&&g.push(L)}if(f){const S=()=>_t.update(()=>{f&&nx(a,f)});g.length?Promise.all(g).then(S):S()}return g}function Zc(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(o0(a,u,s)):()=>Promise.resolve(),f=a.variantChildren&&a.variantChildren.size?(p=0)=>{const{delayChildren:g=0,staggerChildren:v,staggerDirection:S}=c;return sx(a,i,p,g,v,S,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 sx(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(Zc(y,i,{...f,delay:s+(typeof u=="function"?0:u)+a0(a.variantChildren,y,u,c,d)}).then(()=>y.notify("AnimationComplete",i)));return Promise.all(m)}function ux(a,i,s={}){a.notify("AnimationStart",i);let u;if(Array.isArray(i)){const c=i.map(d=>Zc(a,d,s));u=Promise.all(c)}else if(typeof i=="string")u=Zc(a,i,s);else{const c=typeof i=="function"?Ra(a,i,s.custom):i;u=Promise.all(o0(a,c,s))}return u.then(()=>{a.notify("AnimationComplete",i)})}const rx={test:a=>a==="auto",parse:a=>a},c0=a=>i=>i.test(a),f0=[Mi,nt,nn,$n,VS,jS,rx],iy=a=>f0.find(c0(a));function ox(a){return typeof a=="number"?a===0:a!==null?a==="none"||a==="0"||xg(a):!0}const cx=new Set(["brightness","contrast","saturate","opacity"]);function fx(a){const[i,s]=a.slice(0,-1).split("(");if(i==="drop-shadow")return a;const[u]=s.match(ff)||[];if(!u)return a;const c=s.replace(u,"");let d=cx.has(i)?1:0;return u!==s&&(d*=100),i+"("+d+c+")"}const dx=/\b([a-z-]*)\(.*?\)/gu,Qc={...Je,getAnimatableNone:a=>{const i=a.match(dx);return i?i.map(fx).join(" "):a}},Kc={...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))}},ly={...Mi,transform:Math.round},hx={rotate:$n,rotateX:$n,rotateY:$n,rotateZ:$n,scale:ou,scaleX:ou,scaleY:ou,scaleZ:ou,skew:$n,skewX:$n,skewY:$n,distance:nt,translateX:nt,translateY:nt,translateZ:nt,x:nt,y:nt,z:nt,perspective:nt,transformPerspective:nt,opacity:jl,originX:Zp,originY:Zp,originZ:nt},Tf={borderWidth:nt,borderTopWidth:nt,borderRightWidth:nt,borderBottomWidth:nt,borderLeftWidth:nt,borderRadius:nt,borderTopLeftRadius:nt,borderTopRightRadius:nt,borderBottomRightRadius:nt,borderBottomLeftRadius:nt,width:nt,maxWidth:nt,height:nt,maxHeight:nt,top:nt,right:nt,bottom:nt,left:nt,inset:nt,insetBlock:nt,insetBlockStart:nt,insetBlockEnd:nt,insetInline:nt,insetInlineStart:nt,insetInlineEnd:nt,padding:nt,paddingTop:nt,paddingRight:nt,paddingBottom:nt,paddingLeft:nt,paddingBlock:nt,paddingBlockStart:nt,paddingBlockEnd:nt,paddingInline:nt,paddingInlineStart:nt,paddingInlineEnd:nt,margin:nt,marginTop:nt,marginRight:nt,marginBottom:nt,marginLeft:nt,marginBlock:nt,marginBlockStart:nt,marginBlockEnd:nt,marginInline:nt,marginInlineStart:nt,marginInlineEnd:nt,fontSize:nt,backgroundPositionX:nt,backgroundPositionY:nt,...hx,zIndex:ly,fillOpacity:jl,strokeOpacity:jl,numOctaves:ly},mx={...Tf,color:Jt,backgroundColor:Jt,outlineColor:Jt,fill:Jt,stroke:Jt,borderColor:Jt,borderTopColor:Jt,borderRightColor:Jt,borderBottomColor:Jt,borderLeftColor:Jt,filter:Qc,WebkitFilter:Qc,mask:Kc,WebkitMask:Kc},d0=a=>mx[a],px=new Set([Qc,Kc]);function h0(a,i){let s=d0(a);return px.has(s)||(s=Je),s.getAnimatableNone?s.getAnimatableNone(i):void 0}const yx=new Set(["auto","none","0"]);function gx(a,i,s){let u=0,c;for(;u<a.length&&!c;){const d=a[u];typeof d=="string"&&!yx.has(d)&&xi(d).values.length&&(c=a[u]),u++}if(c&&s)for(const d of i)a[d]=h0(s,c)}class vx extends yf{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(),cf(v))){const S=i0(v,s.current);S!==void 0&&(i[g]=S),g===i.length-1&&(this.finalKeyframe=v)}}if(this.resolveNoneKeyframes(),!s0.has(u)||i.length!==2)return;const[c,d]=i,f=iy(c),m=iy(d),y=kp(c),p=kp(d);if(y!==p&&ta[u]){this.needsMeasurement=!0;return}if(f!==m)if(Ip(f)&&Ip(m))for(let g=0;g<i.length;g++){const v=i[g];typeof v=="string"&&(i[g]=parseFloat(v))}else ta[u]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:i,name:s}=this,u=[];for(let c=0;c<i.length;c++)(i[c]===null||ox(i[c]))&&u.push(c);u.length&&gx(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=ta[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]=ta[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 m0(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 p0=(a,i)=>i&&typeof a=="number"?i.transform(a):a;function pu(a){return Tg(a)&&"offsetHeight"in a&&!("ownerSVGElement"in a)}const{schedule:xf}=Ng(queueMicrotask,!1),Ke={x:!1,y:!1};function y0(){return Ke.x||Ke.y}function bx(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 g0(a,i){const s=m0(a),u=new AbortController,c={passive:!0,...i,signal:u.signal};return[s,c,()=>u.abort()]}function Sx(a){return!(a.pointerType==="touch"||y0())}function Tx(a,i,s={}){const[u,c,d]=g0(a,s);return u.forEach(f=>{let m=!1,y=!1,p;const g=()=>{f.removeEventListener("pointerleave",E)},v=_=>{p&&(p(_),p=void 0),g()},S=_=>{m=!1,window.removeEventListener("pointerup",S),window.removeEventListener("pointercancel",S),y&&(y=!1,v(_))},x=()=>{m=!0,window.addEventListener("pointerup",S,c),window.addEventListener("pointercancel",S,c)},E=_=>{if(_.pointerType!=="touch"){if(m){y=!0;return}v(_)}},O=_=>{if(!Sx(_))return;y=!1;const V=i(f,_);typeof V=="function"&&(p=V,f.addEventListener("pointerleave",E,c))};f.addEventListener("pointerenter",O,c),f.addEventListener("pointerdown",x,c)}),d}const v0=(a,i)=>i?a===i?!0:v0(a,i.parentElement):!1,Ef=a=>a.pointerType==="mouse"?typeof a.button!="number"||a.button<=0:a.isPrimary!==!1,xx=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Ex(a){return xx.has(a.tagName)||a.isContentEditable===!0}const Ax=new Set(["INPUT","SELECT","TEXTAREA"]);function Mx(a){return Ax.has(a.tagName)||a.isContentEditable===!0}const yu=new WeakSet;function sy(a){return i=>{i.key==="Enter"&&a(i)}}function pc(a,i){a.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const Cx=(a,i)=>{const s=a.currentTarget;if(!s)return;const u=sy(()=>{if(yu.has(s))return;pc(s,"down");const c=sy(()=>{pc(s,"up")}),d=()=>pc(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 uy(a){return Ef(a)&&!y0()}const ry=new WeakSet;function Dx(a,i,s={}){const[u,c,d]=g0(a,s),f=m=>{const y=m.currentTarget;if(!uy(m)||ry.has(m))return;yu.add(y),s.stopPropagation&&ry.add(m);const p=i(y,m),g=(x,E)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",S),yu.has(y)&&yu.delete(y),uy(x)&&typeof p=="function"&&p(x,{success:E})},v=x=>{g(x,y===window||y===document||s.useGlobalTarget||v0(y,x.target))},S=x=>{g(x,!1)};window.addEventListener("pointerup",v,c),window.addEventListener("pointercancel",S,c)};return u.forEach(m=>{(s.useGlobalTarget?window:m).addEventListener("pointerdown",f,c),pu(m)&&(m.addEventListener("focus",p=>Cx(p,c)),!Ex(m)&&!m.hasAttribute("tabindex")&&(m.tabIndex=0))}),d}function Af(a){return Tg(a)&&"ownerSVGElement"in a}const gu=new WeakMap;let In;const b0=(a,i,s)=>(u,c)=>c&&c[0]?c[0][a+"Size"]:Af(u)&&"getBBox"in u?u.getBBox()[i]:u[s],Rx=b0("inline","width","offsetWidth"),wx=b0("block","height","offsetHeight");function zx({target:a,borderBoxSize:i}){var s;(s=gu.get(a))==null||s.forEach(u=>{u(a,{get width(){return Rx(a,i)},get height(){return wx(a,i)}})})}function Ox(a){a.forEach(zx)}function _x(){typeof ResizeObserver>"u"||(In=new ResizeObserver(Ox))}function jx(a,i){In||_x();const s=m0(a);return s.forEach(u=>{let c=gu.get(u);c||(c=new Set,gu.set(u,c)),c.add(i),In==null||In.observe(u)}),()=>{s.forEach(u=>{const c=gu.get(u);c==null||c.delete(i),c!=null&&c.size||In==null||In.unobserve(u)})}}const vu=new Set;let bi;function Vx(){bi=()=>{const a={get width(){return window.innerWidth},get height(){return window.innerHeight}};vu.forEach(i=>i(a))},window.addEventListener("resize",bi)}function Nx(a){return vu.add(a),bi||Vx(),()=>{vu.delete(a),!vu.size&&typeof bi=="function"&&(window.removeEventListener("resize",bi),bi=void 0)}}function oy(a,i){return typeof a=="function"?Nx(a):jx(a,i)}function Bx(a){return Af(a)&&a.tagName==="svg"}const Lx=[...f0,Jt,Je],Ux=a=>Lx.find(c0(a)),cy=()=>({translate:0,scale:1,origin:0,originPoint:0}),Si=()=>({x:cy(),y:cy()}),fy=()=>({min:0,max:0}),Ft=()=>({x:fy(),y:fy()}),Hx=new WeakMap;function Uu(a){return a!==null&&typeof a=="object"&&typeof a.start=="function"}function Vl(a){return typeof a=="string"||Array.isArray(a)}const Mf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Cf=["initial",...Mf];function Hu(a){return Uu(a.animate)||Cf.some(i=>Vl(a[i]))}function S0(a){return!!(Hu(a)||a.variants)}function Yx(a,i,s){for(const u in i){const c=i[u],d=s[u];if(ue(c))a.addValue(u,c);else if(ue(d))a.addValue(u,Ei(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,Ei(f!==void 0?f:c,{owner:a}))}}for(const u in s)i[u]===void 0&&a.removeValue(u);return i}const Ru={current:null},Df={current:!1},qx=typeof window<"u";function T0(){if(Df.current=!0,!!qx)if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)"),i=()=>Ru.current=a.matches;a.addEventListener("change",i),i()}else Ru.current=!1}const dy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let wu={};function x0(a){wu=a}function Gx(){return wu}class Xx{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=yf,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=fe.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=Hu(s),this.isVariantNode=S0(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(i&&i.current);const{willChange:v,...S}=this.scrapeMotionValuesFromProps(s,{},this);for(const x in S){const E=S[x];p[x]!==void 0&&ue(E)&&E.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,Hx.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:(Df.current||T0(),this.shouldReduceMotion=Ru.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(),na(this.notifyUpdate),na(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&&n0.has(i)&&this.current instanceof HTMLElement){const{factory:f,keyframes:m,times:y,ease:p,duration:g}=s.accelerate,v=new t0({element:this.current,name:i,keyframes:m,times:y,ease:p,duration:ze(g)}),S=f(v);this.valueSubscriptions.set(i,()=>{S(),v.cancel()});return}const u=Di.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 wu){const s=wu[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):Ft()}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<dy.length;u++){const c=dy[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=Yx(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=Ei(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"&&(Sg(u)||xg(u))?u=parseFloat(u):!Ux(u)&&Je.test(s)&&(u=h0(i,s)),this.setBaseTarget(i,ue(u)?u.get():u)),ue(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=bf(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&&!ue(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 uf),this.events[i].add(s)}notify(i,...s){this.events[i]&&this.events[i].notify(...s)}scheduleRenderMicrotask(){xf.render(this.render)}}class E0 extends Xx{constructor(){super(...arguments),this.KeyframeResolver=vx}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;ue(i)&&(this.childSubscription=i.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}class aa{constructor(i){this.isMounted=!1,this.node=i}update(){}}function A0({top:a,left:i,right:s,bottom:u}){return{x:{min:i,max:s},y:{min:a,max:u}}}function kx({x:a,y:i}){return{top:i.min,right:a.max,bottom:i.max,left:a.min}}function Zx(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 yc(a){return a===void 0||a===1}function Jc({scale:a,scaleX:i,scaleY:s}){return!yc(a)||!yc(i)||!yc(s)}function Aa(a){return Jc(a)||M0(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function M0(a){return hy(a.x)||hy(a.y)}function hy(a){return a&&a!=="0%"}function zu(a,i,s){const u=a-s,c=i*u;return s+c}function my(a,i,s,u,c){return c!==void 0&&(a=zu(a,c,u)),zu(a,s,u)+i}function Pc(a,i=0,s=1,u,c){a.min=my(a.min,i,s,u,c),a.max=my(a.max,i,s,u,c)}function C0(a,{x:i,y:s}){Pc(a.x,i.translate,i.scale,i.originPoint),Pc(a.y,s.translate,s.scale,s.originPoint)}const py=.999999999999,yy=1.0000000000001;function Qx(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&&(en(a.x,-d.scroll.offset.x),en(a.y,-d.scroll.offset.y)),f&&(i.x*=f.x.scale,i.y*=f.y.scale,C0(a,f)),u&&Aa(d.latestValues)&&bu(a,d.latestValues,(m=d.layout)==null?void 0:m.layoutBox))}i.x<yy&&i.x>py&&(i.x=1),i.y<yy&&i.y>py&&(i.y=1)}function en(a,i){a.min+=i,a.max+=i}function gy(a,i,s,u,c=.5){const d=Bt(a.min,a.max,c);Pc(a,i,s,d,u)}function vy(a,i){return typeof a=="string"?parseFloat(a)/100*(i.max-i.min):a}function bu(a,i,s){const u=s??a;gy(a.x,vy(i.x,u.x),i.scaleX,i.scale,i.originX),gy(a.y,vy(i.y,u.y),i.scaleY,i.scale,i.originY)}function D0(a,i){return A0(Zx(a.getBoundingClientRect(),i))}function Kx(a,i,s){const u=D0(a,s),{scroll:c}=i;return c&&(en(u.x,c.offset.x),en(u.y,c.offset.y)),u}const Jx={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Px=Ci.length;function Fx(a,i,s){let u="",c=!0;for(let d=0;d<Px;d++){const f=Ci[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=p0(m,Tf[f]);if(!y){c=!1;const g=Jx[f]||f;u+=`${g}(${p}) `}s&&(i[f]=p)}}return u=u.trim(),s?u=s(i,c?"":u):c&&(u="none"),u}function Rf(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(Di.has(y)){f=!0;continue}else if(Lg(y)){c[y]=p;continue}else{const g=p0(p,Tf[y]);y.startsWith("origin")?(m=!0,d[y]=g):u[y]=g}}if(i.transform||(f||s?u.transform=Fx(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 R0(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 by(a,i){return i.max===i.min?0:a/(i.max-i.min)*100}const Cl={correct:(a,i)=>{if(!i.target)return a;if(typeof a=="string")if(nt.test(a))a=parseFloat(a);else return a;const s=by(a,i.target.x),u=by(a,i.target.y);return`${s}% ${u}%`}},Wx={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=Bt(m,y,.5);return typeof c[2+f]=="number"&&(c[2+f]/=p),typeof c[3+f]=="number"&&(c[3+f]/=p),d(c)}},Fc={borderRadius:{...Cl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Cl,borderTopRightRadius:Cl,borderBottomLeftRadius:Cl,borderBottomRightRadius:Cl,boxShadow:Wx};function w0(a,{layout:i,layoutId:s}){return Di.has(a)||a.startsWith("origin")||(i||s!==void 0)&&(!!Fc[a]||a==="opacity")}function wf(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)(ue(u[m])||c&&ue(c[m])||w0(m,a)||((f=s==null?void 0:s.getValue(m))==null?void 0:f.liveStyle)!==void 0)&&(d[m]=u[m]);return d}function $x(a){return window.getComputedStyle(a)}class Ix extends E0{constructor(){super(...arguments),this.type="html",this.renderInstance=R0}readValueFromInstance(i,s){var u;if(Di.has(s))return(u=this.projection)!=null&&u.isProjecting?Lc(s):ST(i,s);{const c=$x(i),d=(Lg(s)?c.getPropertyValue(s):c[s])||0;return typeof d=="string"?d.trim():d}}measureInstanceViewportBox(i,{transformPagePoint:s}){return D0(i,s)}build(i,s,u){Rf(i,s,u.transformTemplate)}scrapeMotionValuesFromProps(i,s,u){return wf(i,s,u)}}const t2={offset:"stroke-dashoffset",array:"stroke-dasharray"},e2={offset:"strokeDashoffset",array:"strokeDasharray"};function n2(a,i,s=1,u=0,c=!0){a.pathLength=1;const d=c?t2:e2;a[d.offset]=`${-u}`,a[d.array]=`${i} ${s}`}const a2=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function z0(a,{attrX:i,attrY:s,attrScale:u,pathLength:c,pathSpacing:d=1,pathOffset:f=0,...m},y,p,g){if(Rf(a,m,p),y){a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox);return}a.attrs=a.style,a.style={};const{attrs:v,style:S}=a;v.transform&&(S.transform=v.transform,delete v.transform),(S.transform||v.transformOrigin)&&(S.transformOrigin=v.transformOrigin??"50% 50%",delete v.transformOrigin),S.transform&&(S.transformBox=(g==null?void 0:g.transformBox)??"fill-box",delete v.transformBox);for(const x of a2)v[x]!==void 0&&(S[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&&n2(v,c,d,f,!1)}const O0=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"]),_0=a=>typeof a=="string"&&a.toLowerCase()==="svg";function i2(a,i,s,u){R0(a,i,void 0,u);for(const c in i.attrs)a.setAttribute(O0.has(c)?c:Sf(c),i.attrs[c])}function j0(a,i,s){const u=wf(a,i,s);for(const c in a)if(ue(a[c])||ue(i[c])){const d=Ci.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;u[d]=a[c]}return u}class l2 extends E0{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ft}getBaseTargetFromProps(i,s){return i[s]}readValueFromInstance(i,s){if(Di.has(s)){const u=d0(s);return u&&u.default||0}return s=O0.has(s)?s:Sf(s),i.getAttribute(s)}scrapeMotionValuesFromProps(i,s,u){return j0(i,s,u)}build(i,s,u){z0(i,s,this.isSVGTag,u.transformTemplate,u.style)}renderInstance(i,s,u,c){i2(i,s,u,c)}mount(i){this.isSVGTag=_0(i.tagName),super.mount(i)}}const s2=Cf.length;function V0(a){if(!a)return;if(!a.isControllingVariants){const s=a.parent?V0(a.parent)||{}:{};return a.props.initial!==void 0&&(s.initial=a.props.initial),s}const i={};for(let s=0;s<s2;s++){const u=Cf[s],c=a.props[u];(Vl(c)||c===!1)&&(i[u]=c)}return i}function N0(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 u2=[...Mf].reverse(),r2=Mf.length;function o2(a){return i=>Promise.all(i.map(({animation:s,options:u})=>ux(a,s,u)))}function c2(a){let i=o2(a),s=Sy(),u=!0,c=!1;const d=p=>(g,v)=>{var x;const S=Ra(a,v,p==="exit"?(x=a.presenceContext)==null?void 0:x.custom:void 0);if(S){const{transition:E,transitionEnd:O,..._}=S;g={...g,..._,...O}}return g};function f(p){i=p(a)}function m(p){const{props:g}=a,v=V0(a.parent)||{},S=[],x=new Set;let E={},O=1/0;for(let V=0;V<r2;V++){const H=u2[V],L=s[H],k=g[H]!==void 0?g[H]:v[H],F=Vl(k),Q=H===p?L.isActive:null;Q===!1&&(O=V);let X=k===v[H]&&k!==g[H]&&F;if(X&&(u||c)&&a.manuallyAnimateOnMount&&(X=!1),L.protectedKeys={...E},!L.isActive&&Q===null||!k&&!L.prevProp||Uu(k)||typeof k=="boolean")continue;if(H==="exit"&&L.isActive&&Q!==!0){L.prevResolvedValues&&(E={...E,...L.prevResolvedValues});continue}const P=f2(L.prevProp,k);let Z=P||H===p&&L.isActive&&!X&&F||V>O&&F,K=!1;const I=Array.isArray(k)?k:[k];let lt=I.reduce(d(H),{});Q===!1&&(lt={});const{prevResolvedValues:Ct={}}=L,Et={...Ct,...lt},zt=$=>{Z=!0,x.has($)&&(K=!0,x.delete($)),L.needsAnimating[$]=!0;const rt=a.getValue($);rt&&(rt.liveStyle=!1)};for(const $ in Et){const rt=lt[$],ft=Ct[$];if(E.hasOwnProperty($))continue;let A=!1;Xc(rt)&&Xc(ft)?A=!N0(rt,ft):A=rt!==ft,A?rt!=null?zt($):x.add($):rt!==void 0&&x.has($)?zt($):L.protectedKeys[$]=!0}L.prevProp=k,L.prevResolvedValues=lt,L.isActive&&(E={...E,...lt}),(u||c)&&a.blockInitialAnimation&&(Z=!1);const N=X&&P;Z&&(!N||K)&&S.push(...I.map($=>{const rt={type:H};if(typeof $=="string"&&(u||c)&&!N&&a.manuallyAnimateOnMount&&a.parent){const{parent:ft}=a,A=Ra(ft,$);if(ft.enteringChildren&&A){const{delayChildren:Y}=A.transition||{};rt.delay=a0(ft.enteringChildren,a,Y)}}return{animation:$,options:rt}}))}if(x.size){const V={};if(typeof g.initial!="boolean"){const H=Ra(a,Array.isArray(g.initial)?g.initial[0]:g.initial);H&&H.transition&&(V.transition=H.transition)}x.forEach(H=>{const L=a.getBaseTarget(H),k=a.getValue(H);k&&(k.liveStyle=!0),V[H]=L??null}),S.push({animation:V})}let _=!!S.length;return u&&(g.initial===!1||g.initial===g.animate)&&!a.manuallyAnimateOnMount&&(_=!1),u=!1,c=!1,_?i(S):Promise.resolve()}function y(p,g){var S;if(s[p].isActive===g)return Promise.resolve();(S=a.variantChildren)==null||S.forEach(x=>{var E;return(E=x.animationState)==null?void 0:E.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=Sy(),c=!0}}}function f2(a,i){return typeof i=="string"?i!==a:Array.isArray(i)?!N0(i,a):!1}function Ea(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Sy(){return{animate:Ea(!0),whileInView:Ea(),whileHover:Ea(),whileTap:Ea(),whileDrag:Ea(),whileFocus:Ea(),exit:Ea()}}function Wc(a,i){a.min=i.min,a.max=i.max}function Qe(a,i){Wc(a.x,i.x),Wc(a.y,i.y)}function Ty(a,i){a.translate=i.translate,a.scale=i.scale,a.originPoint=i.originPoint,a.origin=i.origin}const B0=1e-4,d2=1-B0,h2=1+B0,L0=.01,m2=0-L0,p2=0+L0;function de(a){return a.max-a.min}function y2(a,i,s){return Math.abs(a-i)<=s}function xy(a,i,s,u=.5){a.origin=u,a.originPoint=Bt(i.min,i.max,a.origin),a.scale=de(s)/de(i),a.translate=Bt(s.min,s.max,a.origin)-a.originPoint,(a.scale>=d2&&a.scale<=h2||isNaN(a.scale))&&(a.scale=1),(a.translate>=m2&&a.translate<=p2||isNaN(a.translate))&&(a.translate=0)}function zl(a,i,s,u){xy(a.x,i.x,s.x,u?u.originX:void 0),xy(a.y,i.y,s.y,u?u.originY:void 0)}function Ey(a,i,s,u=0){const c=u?Bt(s.min,s.max,u):s.min;a.min=c+i.min,a.max=a.min+de(i)}function g2(a,i,s,u){Ey(a.x,i.x,s.x,u==null?void 0:u.x),Ey(a.y,i.y,s.y,u==null?void 0:u.y)}function Ay(a,i,s,u=0){const c=u?Bt(s.min,s.max,u):s.min;a.min=i.min-c,a.max=a.min+de(i)}function Ou(a,i,s,u){Ay(a.x,i.x,s.x,u==null?void 0:u.x),Ay(a.y,i.y,s.y,u==null?void 0:u.y)}function My(a,i,s,u,c){return a-=i,a=zu(a,1/s,u),c!==void 0&&(a=zu(a,1/c,u)),a}function v2(a,i=0,s=1,u=.5,c,d=a,f=a){if(nn.test(i)&&(i=parseFloat(i),i=Bt(f.min,f.max,i/100)-f.min),typeof i!="number")return;let m=Bt(d.min,d.max,u);a===d&&(m-=i),a.min=My(a.min,i,s,m,c),a.max=My(a.max,i,s,m,c)}function Cy(a,i,[s,u,c],d,f){v2(a,i[s],i[u],i[c],i.scale,d,f)}const b2=["x","scaleX","originX"],S2=["y","scaleY","originY"];function Dy(a,i,s,u){Cy(a.x,i,b2,s?s.x:void 0,u?u.x:void 0),Cy(a.y,i,S2,s?s.y:void 0,u?u.y:void 0)}function Ry(a){return a.translate===0&&a.scale===1}function U0(a){return Ry(a.x)&&Ry(a.y)}function wy(a,i){return a.min===i.min&&a.max===i.max}function T2(a,i){return wy(a.x,i.x)&&wy(a.y,i.y)}function zy(a,i){return Math.round(a.min)===Math.round(i.min)&&Math.round(a.max)===Math.round(i.max)}function H0(a,i){return zy(a.x,i.x)&&zy(a.y,i.y)}function Oy(a){return de(a.x)/de(a.y)}function _y(a,i){return a.translate===i.translate&&a.scale===i.scale&&a.originPoint===i.originPoint}function tn(a){return[a("x"),a("y")]}function x2(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:S,skewX:x,skewY:E}=s;p&&(u=`perspective(${p}px) ${u}`),g&&(u+=`rotate(${g}deg) `),v&&(u+=`rotateX(${v}deg) `),S&&(u+=`rotateY(${S}deg) `),x&&(u+=`skewX(${x}deg) `),E&&(u+=`skewY(${E}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 Y0=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],E2=Y0.length,jy=a=>typeof a=="string"?parseFloat(a):a,Vy=a=>typeof a=="number"||nt.test(a);function A2(a,i,s,u,c,d){c?(a.opacity=Bt(0,s.opacity??1,M2(u)),a.opacityExit=Bt(i.opacity??1,0,C2(u))):d&&(a.opacity=Bt(i.opacity??1,s.opacity??1,u));for(let f=0;f<E2;f++){const m=Y0[f];let y=Ny(i,m),p=Ny(s,m);if(y===void 0&&p===void 0)continue;y||(y=0),p||(p=0),y===0||p===0||Vy(y)===Vy(p)?(a[m]=Math.max(Bt(jy(y),jy(p),u),0),(nn.test(p)||nn.test(y))&&(a[m]+="%")):a[m]=p}(i.rotate||s.rotate)&&(a.rotate=Bt(i.rotate||0,s.rotate||0,u))}function Ny(a,i){return a[i]!==void 0?a[i]:a.borderRadius}const M2=q0(0,.5,Og),C2=q0(.5,.95,Ge);function q0(a,i,s){return u=>u<a?0:u>i?1:s(_l(a,i,u))}function D2(a,i,s){const u=ue(a)?a:Ei(a);return u.start(vf("",u,i,s)),u.animation}function Nl(a,i,s,u={passive:!0}){return a.addEventListener(i,s,u),()=>a.removeEventListener(i,s)}const R2=(a,i)=>a.depth-i.depth;class w2{constructor(){this.children=[],this.isDirty=!1}add(i){lf(this.children,i),this.isDirty=!0}remove(i){Eu(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(R2),this.isDirty=!1,this.children.forEach(i)}}function z2(a,i){const s=fe.now(),u=({timestamp:c})=>{const d=c-s;d>=i&&(na(u),a(d-i))};return _t.setup(u,!0),()=>na(u)}function Su(a){return ue(a)?a.get():a}class O2{constructor(){this.members=[]}add(i){lf(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&&(Eu(this.members,u),u.unmount())}i.scheduleRender()}remove(i){if(Eu(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 Tu={hasAnimatedSinceResize:!0,hasEverUpdated:!1},gc=["","X","Y","Z"],_2=1e3;let j2=0;function vc(a,i,s,u){const{latestValues:c}=i;c[a]&&(s[a]=c[a],i.setStaticValue(a,0),u&&(u[a]=0))}function G0(a){if(a.hasCheckedOptimisedAppear=!0,a.root===a)return;const{visualElement:i}=a.options;if(!i)return;const s=r0(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&&G0(u)}function X0({attachResizeListener:a,defaultParent:i,measureScroll:s,checkIsScrollRoot:u,resetTransform:c}){return class{constructor(f={},m=i==null?void 0:i()){this.id=j2++,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(B2),this.nodes.forEach(G2),this.nodes.forEach(X2),this.nodes.forEach(L2)},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 w2)}addEventListener(f,m){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new uf),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=Af(f)&&!Bx(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 S=()=>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=z2(S,250),Tu.hasAnimatedSinceResize&&(Tu.hasAnimatedSinceResize=!1,this.nodes.forEach(Uy)))})}m&&this.root.registerSharedNode(m,this),this.options.animate!==!1&&p&&(m||y)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:v,hasRelativeLayoutChanged:S,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const E=this.options.transition||p.getDefaultTransition()||J2,{onLayoutAnimationStart:O,onLayoutAnimationComplete:_}=p.getProps(),V=!this.targetLayout||!H0(this.targetLayout,x),H=!v&&S;if(this.options.layoutRoot||this.resumeFrom||H||v&&(V||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const L={...gf(E,"layout"),onPlay:O,onComplete:_};(p.shouldReduceMotion||this.options.layoutRoot)&&(L.delay=0,L.type=!1),this.startAnimation(L),this.setAnimationOrigin(g,H)}else v||Uy(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(),na(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(k2),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&&G0(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(H2),this.nodes.forEach(By);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ly);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Y2),this.nodes.forEach(q2),this.nodes.forEach(V2),this.nodes.forEach(N2)):this.nodes.forEach(Ly),this.clearAllSnapshots();const m=fe.now();se.delta=ln(0,1e3/60,m-se.timestamp),se.timestamp=m,se.isProcessing=!0,oc.update.process(se),oc.preRender.process(se),oc.render.process(se),se.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,xf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(U2),this.sharedNodes.forEach(Z2)}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&&!de(this.snapshot.measuredBox.x)&&!de(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=Ft()),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&&!U0(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)),P2(y),{animationId:this.root.animationId,measuredBox:m,layoutBox:y,latestValues:{},source:this.id}}measurePageBox(){var p;const{visualElement:f}=this.options;if(!f)return Ft();const m=f.measureViewportBox();if(!(((p=this.scroll)==null?void 0:p.wasRoot)||this.path.some(F2))){const{scroll:g}=this.root;g&&(en(m.x,g.offset.x),en(m.y,g.offset.y))}return m}removeElementScroll(f){var y;const m=Ft();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:S}=g;g!==this.root&&v&&S.layoutScroll&&(v.wasRoot&&Qe(m,f),en(m.x,v.offset.x),en(m.y,v.offset.y))}return m}applyTransform(f,m=!1,y){var g,v;const p=y||Ft();Qe(p,f);for(let S=0;S<this.path.length;S++){const x=this.path[S];!m&&x.options.layoutScroll&&x.scroll&&x!==x.root&&(en(p.x,-x.scroll.offset.x),en(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=Ft();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&&(Jc(g.latestValues)&&g.updateSnapshot(),v=Ft(),Qe(v,g.measurePageBox())),Dy(m,g.latestValues,(y=g.snapshot)==null?void 0:y.layoutBox,v)}return Aa(this.latestValues)&&Dy(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!==se.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=se.timestamp;const S=this.getClosestProjectingParent();S&&this.linkedParentVersion!==S.layoutVersion&&!S.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&S&&S.layout?this.createRelativeTarget(S,this.layout.layoutBox,S.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ft(),this.targetWithTransforms=Ft()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),g2(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),C0(this.target,this.targetDelta)):Qe(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&S&&!!S.resumingFrom==!!this.resumingFrom&&!S.options.layoutScroll&&S.target&&this.animationProgress!==1?this.createRelativeTarget(S,this.target,S.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Jc(this.parent.latestValues)||M0(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=Ft(),this.relativeTargetOrigin=Ft(),Ou(this.relativeTargetOrigin,m,y,this.options.layoutAnchor||void 0),Qe(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var E;const f=this.getLead(),m=!!this.resumingFrom||this!==f;let y=!0;if((this.isProjectionDirty||(E=this.parent)!=null&&E.isProjectionDirty)&&(y=!1),m&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(y=!1),this.resolvedRelativeTargetAt===se.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,S=this.treeScale.y;Qx(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=Ft());const{target:x}=f;if(!x){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ty(this.prevProjectionDelta.x,this.projectionDelta.x),Ty(this.prevProjectionDelta.y,this.projectionDelta.y)),zl(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==S||!_y(this.projectionDelta.x,this.prevProjectionDelta.x)||!_y(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 S=Ft(),x=y?y.source:void 0,E=this.layout?this.layout.source:void 0,O=x!==E,_=this.getStack(),V=!_||_.members.length<=1,H=!!(O&&!V&&this.options.crossfade===!0&&!this.path.some(K2));this.animationProgress=0;let L;this.mixTargetDelta=k=>{const F=k/1e3;Hy(v.x,f.x,F),Hy(v.y,f.y,F),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ou(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Q2(this.relativeTarget,this.relativeTargetOrigin,S,F),L&&T2(this.relativeTarget,L)&&(this.isProjectionDirty=!1),L||(L=Ft()),Qe(L,this.relativeTarget)),O&&(this.animationValues=g,A2(g,p,this.latestValues,F,H,V)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=F},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&&(na(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=_t.update(()=>{Tu.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ei(0)),this.motionValue.jump(0,!1),this.currentAnimation=D2(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(_2),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&&k0(this.options.animationType,this.layout.layoutBox,p.layoutBox)){y=this.target||Ft();const v=de(this.layout.layoutBox.x);y.x.min=f.target.x.min,y.x.max=y.x.min+v;const S=de(this.layout.layoutBox.y);y.y.min=f.target.y.min,y.y.max=y.y.min+S}Qe(m,y),bu(m,g),zl(this.projectionDeltaWithTransform,this.layoutCorrected,m,g)}}registerSharedNode(f,m){this.sharedNodes.has(f)||this.sharedNodes.set(f,new O2),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&&vc("z",f,p,this.animationValues);for(let g=0;g<gc.length;g++)vc(`rotate${gc[g]}`,f,p,this.animationValues),vc(`skew${gc[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=Su(m==null?void 0:m.pointerEvents)||"",f.transform=y?y(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(f.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,f.pointerEvents=Su(m==null?void 0:m.pointerEvents)||""),this.hasProjected&&!Aa(this.latestValues)&&(f.transform=y?y({},""):"none",this.hasProjected=!1);return}f.visibility="";const g=p.animationValues||p.latestValues;this.applyTransformsToTarget();let v=x2(this.projectionDeltaWithTransform,this.treeScale,g);y&&(v=y(g,v)),f.transform=v;const{x:S,y:x}=this.projectionDelta;f.transformOrigin=`${S.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 E in Fc){if(g[E]===void 0)continue;const{correct:O,applyTo:_,isCSSVariable:V}=Fc[E],H=v==="none"?g[E]:O(g[E],p);if(_){const L=_.length;for(let k=0;k<L;k++)f[_[k]]=H}else V?this.options.visualElement.renderState.vars[E]=H:f[E]=H}this.options.layoutId&&(f.pointerEvents=p===this?Su(m==null?void 0:m.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(f=>{var m;return(m=f.currentAnimation)==null?void 0:m.stop()}),this.root.nodes.forEach(By),this.root.sharedNodes.clear()}}}function V2(a){a.updateLayout()}function N2(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")tn(v=>{const S=f?i.measuredBox[v]:i.layoutBox[v],x=de(S);S.min=u[v].min,S.max=S.min+x});else if(d==="x"||d==="y"){const v=d==="x"?"y":"x";Wc(f?i.measuredBox[v]:i.layoutBox[v],u[v])}else k0(d,i.layoutBox,u)&&tn(v=>{const S=f?i.measuredBox[v]:i.layoutBox[v],x=de(u[v]);S.max=S.min+x,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[v].max=a.relativeTarget[v].min+x)});const m=Si();zl(m,u,i.layoutBox);const y=Si();f?zl(y,a.applyTransform(c,!0),i.measuredBox):zl(y,u,i.layoutBox);const p=!U0(m);let g=!1;if(!a.resumeFrom){const v=a.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:S,layout:x}=v;if(S&&x){const E=a.options.layoutAnchor||void 0,O=Ft();Ou(O,i.layoutBox,S.layoutBox,E);const _=Ft();Ou(_,u,x.layoutBox,E),H0(O,_)||(g=!0),v.options.layoutRoot&&(a.relativeTarget=_,a.relativeTargetOrigin=O,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 B2(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 L2(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function U2(a){a.clearSnapshot()}function By(a){a.clearMeasurements()}function H2(a){a.isLayoutDirty=!0,a.updateLayout()}function Ly(a){a.isLayoutDirty=!1}function Y2(a){a.isAnimationBlocked&&a.layout&&!a.isLayoutDirty&&(a.snapshot=a.layout,a.isLayoutDirty=!0)}function q2(a){const{visualElement:i}=a.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),a.resetTransform()}function Uy(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function G2(a){a.resolveTargetDelta()}function X2(a){a.calcProjection()}function k2(a){a.resetSkewAndRotation()}function Z2(a){a.removeLeadSnapshot()}function Hy(a,i,s){a.translate=Bt(i.translate,0,s),a.scale=Bt(i.scale,1,s),a.origin=i.origin,a.originPoint=i.originPoint}function Yy(a,i,s,u){a.min=Bt(i.min,s.min,u),a.max=Bt(i.max,s.max,u)}function Q2(a,i,s,u){Yy(a.x,i.x,s.x,u),Yy(a.y,i.y,s.y,u)}function K2(a){return a.animationValues&&a.animationValues.opacityExit!==void 0}const J2={duration:.45,ease:[.4,0,.1,1]},qy=a=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),Gy=qy("applewebkit/")&&!qy("chrome/")?Math.round:Ge;function Xy(a){a.min=Gy(a.min),a.max=Gy(a.max)}function P2(a){Xy(a.x),Xy(a.y)}function k0(a,i,s){return a==="position"||a==="preserve-aspect"&&!y2(Oy(i),Oy(s),.2)}function F2(a){var i;return a!==a.root&&((i=a.scroll)==null?void 0:i.wasRoot)}const W2=X0({attachResizeListener:(a,i)=>Nl(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}),bc={current:void 0},Z0=X0({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!bc.current){const a=new W2({});a.mount(window),a.setOptions({layoutScroll:!0}),bc.current=a}return bc.current},resetTransform:(a,i)=>{a.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:a=>window.getComputedStyle(a).position==="fixed"}),zf=D.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 $2(...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 I2(...a){return D.useCallback($2(...a),a)}class tE extends D.Component{getSnapshotBeforeUpdate(i){const s=this.props.childRef.current;if(pu(s)&&i.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const u=s.offsetParent,c=pu(u)&&u.offsetWidth||0,d=pu(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 eE({children:a,isPresent:i,anchorX:s,anchorY:u,root:c,pop:d}){var S;const f=D.useId(),m=D.useRef(null),y=D.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:p}=D.useContext(zf),g=((S=a.props)==null?void 0:S.ref)??(a==null?void 0:a.ref),v=I2(m,g);return D.useInsertionEffect(()=>{const{width:x,height:E,top:O,left:_,right:V,bottom:H}=y.current;if(i||d===!1||!m.current||!x||!E)return;const L=s==="left"?`left: ${_}`:`right: ${V}`,k=u==="bottom"?`bottom: ${H}`:`top: ${O}`;m.current.dataset.motionPopId=f;const F=document.createElement("style");p&&(F.nonce=p);const Q=c??document.head;return Q.appendChild(F),F.sheet&&F.sheet.insertRule(`
50
- [data-motion-pop-id="${f}"] {
51
- position: absolute !important;
52
- width: ${x}px !important;
53
- height: ${E}px !important;
54
- ${L}px !important;
55
- ${k}px !important;
56
- }
57
- `),()=>{var X;(X=m.current)==null||X.removeAttribute("data-motion-pop-id"),Q.contains(F)&&Q.removeChild(F)}},[i]),M.jsx(tE,{isPresent:i,childRef:m,sizeRef:y,pop:d,children:d===!1?a:D.cloneElement(a,{ref:v})})}const nE=({children:a,initial:i,isPresent:s,onExitComplete:u,custom:c,presenceAffectsLayout:d,mode:f,anchorX:m,anchorY:y,root:p})=>{const g=af(aE),v=D.useId();let S=!0,x=D.useMemo(()=>(S=!1,{id:v,initial:i,isPresent:s,custom:c,onExitComplete:E=>{g.set(E,!0);for(const O of g.values())if(!O)return;u&&u()},register:E=>(g.set(E,!1),()=>g.delete(E))}),[s,g,u]);return d&&S&&(x={...x}),D.useMemo(()=>{g.forEach((E,O)=>g.set(O,!1))},[s]),D.useEffect(()=>{!s&&!g.size&&u&&u()},[s]),a=M.jsx(eE,{pop:f==="popLayout",isPresent:s,anchorX:m,anchorY:y,root:p,children:a}),M.jsx(Bu.Provider,{value:x,children:a})};function aE(){return new Map}function Q0(a=!0){const i=D.useContext(Bu);if(i===null)return[!0,null];const{isPresent:s,onExitComplete:u,register:c}=i,d=D.useId();D.useEffect(()=>{if(a)return c(d)},[a]);const f=D.useCallback(()=>a&&u&&u(d),[d,u,a]);return!s&&u?[!1,f]:[!0]}const cu=a=>a.key||"";function Zy(a){const i=[];return D.Children.forEach(a,s=>{D.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]=Q0(f),S=D.useMemo(()=>Zy(a),[a]),x=f&&!g?[]:S.map(cu),E=D.useRef(!0),O=D.useRef(S),_=af(()=>new Map),V=D.useRef(new Set),[H,L]=D.useState(S),[k,F]=D.useState(S);bg(()=>{E.current=!1,O.current=S;for(let P=0;P<k.length;P++){const Z=cu(k[P]);x.includes(Z)?(_.delete(Z),V.current.delete(Z)):_.get(Z)!==!0&&_.set(Z,!1)}},[k,x.length,x.join("-")]);const Q=[];if(S!==H){let P=[...S];for(let Z=0;Z<k.length;Z++){const K=k[Z],I=cu(K);x.includes(I)||(P.splice(Z,0,K),Q.push(K))}return d==="wait"&&Q.length&&(P=Q),F(Zy(P)),L(S),null}const{forceRender:X}=D.useContext(nf);return M.jsx(M.Fragment,{children:k.map(P=>{const Z=cu(P),K=f&&!g?!1:S===k||x.includes(Z),I=()=>{if(V.current.has(Z))return;if(_.has(Z))V.current.add(Z),_.set(Z,!0);else return;let lt=!0;_.forEach(Ct=>{Ct||(lt=!1)}),lt&&(X==null||X(),F(O.current),f&&(v==null||v()),u&&u())};return M.jsx(nE,{isPresent:K,initial:!E.current||s?void 0:!1,custom:i,presenceAffectsLayout:c,mode:d,root:p,onExitComplete:K?void 0:I,anchorX:m,anchorY:y,children:P},Z)})})},K0=D.createContext({strict:!1}),Qy={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 Ky=!1;function iE(){if(Ky)return;const a={};for(const i in Qy)a[i]={isEnabled:s=>Qy[i].some(u=>!!s[u])};x0(a),Ky=!0}function J0(){return iE(),Gx()}function lE(a){const i=J0();for(const s in a)i[s]={...i[s],...a[s]};x0(i)}const sE=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 ju(a){return a.startsWith("while")||a.startsWith("drag")&&a!=="draggable"||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||sE.has(a)}let P0=a=>!ju(a);function uE(a){typeof a=="function"&&(P0=i=>i.startsWith("on")?!ju(i):a(i))}try{uE(require("@emotion/is-prop-valid").default)}catch{}function rE(a,i,s){const u={};for(const c in a)c==="values"&&typeof a.values=="object"||ue(a[c])||(P0(c)||s===!0&&ju(c)||!i&&!ju(c)||a.draggable&&c.startsWith("onDrag"))&&(u[c]=a[c]);return u}const Yu=D.createContext({});function oE(a,i){if(Hu(a)){const{initial:s,animate:u}=a;return{initial:s===!1||Vl(s)?s:void 0,animate:Vl(u)?u:void 0}}return a.inherit!==!1?i:{}}function cE(a){const{initial:i,animate:s}=oE(a,D.useContext(Yu));return D.useMemo(()=>({initial:i,animate:s}),[Jy(i),Jy(s)])}function Jy(a){return Array.isArray(a)?a.join(" "):a}const Of=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function F0(a,i,s){for(const u in i)!ue(i[u])&&!w0(u,s)&&(a[u]=i[u])}function fE({transformTemplate:a},i){return D.useMemo(()=>{const s=Of();return Rf(s,i,a),Object.assign({},s.vars,s.style)},[i])}function dE(a,i){const s=a.style||{},u={};return F0(u,s,a),Object.assign(u,fE(a,i)),u}function hE(a,i){const s={},u=dE(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 W0=()=>({...Of(),attrs:{}});function mE(a,i,s,u){const c=D.useMemo(()=>{const d=W0();return z0(d,i,_0(u),a.transformTemplate,a.style),{...d.attrs,style:{...d.style}}},[i]);if(a.style){const d={};F0(d,a.style,a),c.style={...d,...c.style}}return c}const pE=["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 _f(a){return typeof a!="string"||a.includes("-")?!1:!!(pE.indexOf(a)>-1||/[A-Z]/u.test(a))}function yE(a,i,s,{latestValues:u},c,d=!1,f){const y=(f??_f(a)?mE:hE)(i,u,c,a),p=rE(i,typeof a=="string",d),g=a!==D.Fragment?{...p,...y,ref:s}:{},{children:v}=i,S=D.useMemo(()=>ue(v)?v.get():v,[v]);return D.createElement(a,{...g,children:S})}function gE({scrapeMotionValuesFromProps:a,createRenderState:i},s,u,c){return{latestValues:vE(s,u,c,a),renderState:i()}}function vE(a,i,s,u){const c={},d=u(a,{});for(const S in d)c[S]=Su(d[S]);let{initial:f,animate:m}=a;const y=Hu(a),p=S0(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"&&!Uu(v)){const S=Array.isArray(v)?v:[v];for(let x=0;x<S.length;x++){const E=bf(a,S[x]);if(E){const{transitionEnd:O,transition:_,...V}=E;for(const H in V){let L=V[H];if(Array.isArray(L)){const k=g?L.length-1:0;L=L[k]}L!==null&&(c[H]=L)}for(const H in O)c[H]=O[H]}}}return c}const $0=a=>(i,s)=>{const u=D.useContext(Yu),c=D.useContext(Bu),d=()=>gE(a,i,u,c);return s?d():af(d)},bE=$0({scrapeMotionValuesFromProps:wf,createRenderState:Of}),SE=$0({scrapeMotionValuesFromProps:j0,createRenderState:W0}),TE=Symbol.for("motionComponentSymbol");function xE(a,i,s){const u=D.useRef(s);D.useInsertionEffect(()=>{u.current=s});const c=D.useRef(null);return D.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 I0=D.createContext({});function gi(a){return a&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"current")}function EE(a,i,s,u,c,d){var L,k;const{visualElement:f}=D.useContext(Yu),m=D.useContext(K0),y=D.useContext(Bu),p=D.useContext(zf),g=p.reducedMotion,v=p.skipAnimations,S=D.useRef(null),x=D.useRef(!1);u=u||m.renderer,!S.current&&u&&(S.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&&S.current&&(S.current.manuallyAnimateOnMount=!0));const E=S.current,O=D.useContext(I0);E&&!E.projection&&c&&(E.type==="html"||E.type==="svg")&&AE(S.current,s,c,O);const _=D.useRef(!1);D.useInsertionEffect(()=>{E&&_.current&&E.update(s,y)});const V=s[u0],H=D.useRef(!!V&&typeof window<"u"&&!((L=window.MotionHandoffIsComplete)!=null&&L.call(window,V))&&((k=window.MotionHasOptimisedAnimation)==null?void 0:k.call(window,V)));return bg(()=>{x.current=!0,E&&(_.current=!0,window.MotionIsMounted=!0,E.updateFeatures(),E.scheduleRenderMicrotask(),H.current&&E.animationState&&E.animationState.animateChanges())}),D.useEffect(()=>{E&&(!H.current&&E.animationState&&E.animationState.animateChanges(),H.current&&(queueMicrotask(()=>{var F;(F=window.MotionHandoffMarkAsComplete)==null||F.call(window,V)}),H.current=!1),E.enteringChildren=void 0)}),E}function AE(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:tv(a.parent)),a.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!f||m&&gi(m),visualElement:a,animationType:typeof d=="string"?d:"both",initialPromotionConfig:u,crossfade:v,layoutScroll:y,layoutRoot:p,layoutAnchor:g})}function tv(a){if(a)return a.options.allowProjection!==!1?a.projection:tv(a.parent)}function Sc(a,{forwardMotionProps:i=!1,type:s}={},u,c){u&&lE(u);const d=s?s==="svg":_f(a),f=d?SE:bE;function m(p,g){let v;const S={...D.useContext(zf),...p,layoutId:ME(p)},{isStatic:x}=S,E=cE(p),O=f(p,x);if(!x&&typeof window<"u"){CE();const _=DE(S);v=_.MeasureLayout,E.visualElement=EE(a,O,S,c,_.ProjectionNode,d)}return M.jsxs(Yu.Provider,{value:E,children:[v&&E.visualElement?M.jsx(v,{visualElement:E.visualElement,...S}):null,yE(a,p,xE(O,E.visualElement,g),O,x,i,d)]})}m.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const y=D.forwardRef(m);return y[TE]=a,y}function ME({layoutId:a}){const i=D.useContext(nf).id;return i&&a!==void 0?i+"-"+a:a}function CE(a,i){D.useContext(K0).strict}function DE(a){const i=J0(),{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 RE(a,i){if(typeof Proxy>"u")return Sc;const s=new Map,u=(d,f)=>Sc(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,Sc(f,void 0,a,i)),s.get(f))})}const wE=(a,i)=>i.isSVG??_f(a)?new l2(i):new Ix(i,{allowProjection:a!==D.Fragment});class zE extends aa{constructor(i){super(i),i.animationState||(i.animationState=c2(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();Uu(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 OE=0;class _E extends aa{constructor(){super(...arguments),this.id=OE++,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 S in v)(d=this.node.getValue(S))==null||d.jump(v[S])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const c=this.node.animationState.setActive("exit",!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 jE={animation:{Feature:zE},exit:{Feature:_E}};function Hl(a){return{point:{x:a.pageX,y:a.pageY}}}const VE=a=>i=>Ef(i)&&a(i,Hl(i));function Ol(a,i,s,u){return Nl(a,i,VE(s),u)}const ev=({current:a})=>a?a.ownerDocument.defaultView:null,Py=(a,i)=>Math.abs(a-i);function NE(a,i){const s=Py(a.x,i.x),u=Py(a.y,i.y);return Math.sqrt(s**2+u**2)}const Fy=new Set(["auto","scroll"]);class nv{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=fu(this.lastRawMoveEventInfo,this.transformPagePoint));const x=Tc(this.lastMoveEventInfo,this.history),E=this.startEvent!==null,O=NE(x.offset,{x:0,y:0})>=this.distanceThreshold;if(!E&&!O)return;const{point:_}=x,{timestamp:V}=se;this.history.push({..._,timestamp:V});const{onStart:H,onMove:L}=this.handlers;E||(H&&H(this.lastMoveEvent,x),this.startEvent=this.lastMoveEvent),L&&L(this.lastMoveEvent,x)},this.handlePointerMove=(x,E)=>{this.lastMoveEvent=x,this.lastRawMoveEventInfo=E,this.lastMoveEventInfo=fu(E,this.transformPagePoint),_t.update(this.updatePoint,!0)},this.handlePointerUp=(x,E)=>{this.end();const{onEnd:O,onSessionEnd:_,resumeAnimation:V}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&V&&V(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const H=Tc(x.type==="pointercancel"?this.lastMoveEventInfo:fu(E,this.transformPagePoint),this.history);this.startEvent&&O&&O(x,H),_&&_(x,H)},!Ef(i))return;this.dragSnapToOrigin=d,this.handlers=s,this.transformPagePoint=u,this.distanceThreshold=f,this.contextWindow=c||window;const y=Hl(i),p=fu(y,this.transformPagePoint),{point:g}=p,{timestamp:v}=se;this.history=[{...g,timestamp:v}];const{onSessionStart:S}=s;S&&S(i,Tc(p,this.history)),this.removeListeners=Bl(Ol(this.contextWindow,"pointermove",this.handlePointerMove),Ol(this.contextWindow,"pointerup",this.handlePointerUp),Ol(this.contextWindow,"pointercancel",this.handlePointerUp)),m&&this.startScrollTracking(m)}startScrollTracking(i){let s=i.parentElement;for(;s;){const u=getComputedStyle(s);(Fy.has(u.overflowX)||Fy.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(),na(this.updatePoint)}}function fu(a,i){return i?{point:i(a.point)}:a}function Wy(a,i){return{x:a.x-i.x,y:a.y-i.y}}function Tc({point:a},i){return{point:a,delta:Wy(a,av(i)),offset:Wy(a,BE(i)),velocity:LE(i,.1)}}function BE(a){return a[0]}function av(a){return a[a.length-1]}function LE(a,i){if(a.length<2)return{x:0,y:0};let s=a.length-1,u=null;const c=av(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 UE(a,{min:i,max:s},u){return i!==void 0&&a<i?a=u?Bt(i,a,u.min):Math.max(a,i):s!==void 0&&a>s&&(a=u?Bt(s,a,u.max):Math.min(a,s)),a}function $y(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 HE(a,{top:i,left:s,bottom:u,right:c}){return{x:$y(a.x,s,c),y:$y(a.y,i,u)}}function Iy(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 YE(a,i){return{x:Iy(a.x,i.x),y:Iy(a.y,i.y)}}function qE(a,i){let s=.5;const u=de(a),c=de(i);return c>u?s=_l(i.min,i.max-u,a.min):u>c&&(s=_l(a.min,a.max-c,i.min)),ln(0,1,s)}function GE(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 $c=.35;function XE(a=$c){return a===!1?a=0:a===!0&&(a=$c),{x:tg(a,"left","right"),y:tg(a,"top","bottom")}}function tg(a,i,s){return{min:eg(a,i),max:eg(a,s)}}function eg(a,i){return typeof a=="number"?a:a[i]||0}const kE=new WeakMap;class ZE{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=Ft(),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(Hl(v).point),this.stopAnimation()},f=(v,S)=>{const{drag:x,dragPropagation:E,onDragStart:O}=this.getProps();if(x&&!E&&(this.openDragLock&&this.openDragLock(),this.openDragLock=bx(x),!this.openDragLock))return;this.latestPointerEvent=v,this.latestPanInfo=S,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),tn(V=>{let H=this.getAxisMotionValue(V).get()||0;if(nn.test(H)){const{projection:L}=this.visualElement;if(L&&L.layout){const k=L.layout.layoutBox[V];k&&(H=de(k)*(parseFloat(H)/100))}}this.originPoint[V]=H}),O&&_t.update(()=>O(v,S),!1,!0),kc(this.visualElement,"transform");const{animationState:_}=this.visualElement;_&&_.setActive("whileDrag",!0)},m=(v,S)=>{this.latestPointerEvent=v,this.latestPanInfo=S;const{dragPropagation:x,dragDirectionLock:E,onDirectionLock:O,onDrag:_}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:V}=S;if(E&&this.currentDirection===null){this.currentDirection=KE(V),this.currentDirection!==null&&O&&O(this.currentDirection);return}this.updateAxis("x",S.point,V),this.updateAxis("y",S.point,V),this.visualElement.render(),_&&_t.update(()=>_(v,S),!1,!0)},y=(v,S)=>{this.latestPointerEvent=v,this.latestPanInfo=S,this.stop(v,S),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 nv(i,{onSessionStart:d,onStart:f,onMove:m,onSessionEnd:y,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,distanceThreshold:u,contextWindow:ev(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||!du(i,c,this.currentDirection))return;const d=this.getAxisMotionValue(i);let f=this.originPoint[i]+u[i];this.constraints&&this.constraints[i]&&(f=UE(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&&gi(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):i&&u?this.constraints=HE(u.layoutBox,i):this.constraints=!1,this.elastic=XE(s),c!==this.constraints&&!gi(i)&&u&&this.constraints&&!this.hasMutatedConstraints&&tn(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=GE(u.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:s}=this.getProps();if(!i||!gi(i))return!1;const u=i.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const d=Kx(u,c.root,this.visualElement.getTransformPagePoint());let f=YE(c.layout.layoutBox,d);if(s){const m=s(kx(f));this.hasMutatedConstraints=!!m,m&&(f=A0(m))}return f}startAnimation(i){const{drag:s,dragMomentum:u,dragElastic:c,dragTransition:d,dragSnapToOrigin:f,onDragTransitionEnd:m}=this.getProps(),y=this.constraints||{},p=tn(g=>{if(!du(g,s,this.currentDirection))return;let v=y&&y[g]||{};(f===!0||f===g)&&(v={min:0,max:0});const S=c?200:1e6,x=c?40:1e7,E={type:"inertia",velocity:u?i[g]:0,bounceStiffness:S,bounceDamping:x,timeConstant:750,restDelta:1,restSpeed:10,...d,...v};return this.startAxisValueAnimation(g,E)});return Promise.all(p).then(m)}startAxisValueAnimation(i,s){const u=this.getAxisMotionValue(i);return kc(this.visualElement,i),u.start(vf(i,u,0,s,this.visualElement,!1))}stopAnimation(){tn(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){tn(s=>{const{drag:u}=this.getProps();if(!du(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]-Bt(f,m,.5)+y)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:s}=this.getProps(),{projection:u}=this.visualElement;if(!gi(s)||!u||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};tn(f=>{const m=this.getAxisMotionValue(f);if(m&&this.constraints!==!1){const y=m.get();c[f]=qE({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(),tn(f=>{if(!du(f,i,null))return;const m=this.getAxisMotionValue(f),{min:y,max:p}=this.constraints[f];m.set(Bt(y,p,c[f]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;kE.set(this.visualElement,this);const i=this.visualElement.current,s=Ol(i,"pointerdown",p=>{const{drag:g,dragListener:v=!0}=this.getProps(),S=p.target,x=S!==i&&Mx(S);g&&v&&!x&&this.start(p)});let u;const c=()=>{const{dragConstraints:p}=this.getProps();gi(p)&&p.current&&(this.constraints=this.resolveRefConstraints(),u||(u=QE(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=Nl(window,"resize",()=>this.scalePositionWithinConstraints()),y=d.addEventListener("didUpdate",({delta:p,hasLayoutChanged:g})=>{this.isDragging&&g&&(tn(v=>{const S=this.getAxisMotionValue(v);S&&(this.originPoint[v]+=p[v].translate,S.set(S.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=$c,dragMomentum:m=!0}=i;return{...i,drag:s,dragDirectionLock:u,dragPropagation:c,dragConstraints:d,dragElastic:f,dragMomentum:m}}}function ng(a){let i=!0;return()=>{if(i){i=!1;return}a()}}function QE(a,i,s){const u=oy(a,ng(s)),c=oy(i,ng(s));return()=>{u(),c()}}function du(a,i,s){return(i===!0||i===a)&&(s===null||s===a)}function KE(a,i=10){let s=null;return Math.abs(a.y)>i?s="y":Math.abs(a.x)>i&&(s="x"),s}class JE extends aa{constructor(i){super(i),this.removeGroupControls=Ge,this.removeListeners=Ge,this.controls=new ZE(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 xc=a=>(i,s)=>{a&&_t.update(()=>a(i,s),!1,!0)};class PE extends aa{constructor(){super(...arguments),this.removePointerDownListener=Ge}onPointerDown(i){this.session=new nv(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ev(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:s,onPan:u,onPanEnd:c}=this.node.getProps();return{onSessionStart:xc(i),onStart:xc(s),onMove:xc(u),onEnd:(d,f)=>{delete this.session,c&&_t.postRender(()=>c(d,f))}}}mount(){this.removePointerDownListener=Ol(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 Ec=!1;class FE extends D.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),Ec&&d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Tu.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}),Ec=!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(),xf.postRender(()=>{!u.currentAnimation&&u.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:s,switchLayoutGroup:u}=this.props,{projection:c}=i;Ec=!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 iv(a){const[i,s]=Q0(),u=D.useContext(nf);return M.jsx(FE,{...a,layoutGroup:u,switchLayoutGroup:D.useContext(I0),isPresent:i,safeToRemove:s})}const WE={pan:{Feature:PE},drag:{Feature:JE,ProjectionNode:Z0,MeasureLayout:iv}};function ag(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,Hl(i)))}class $E extends aa{mount(){const{current:i}=this.node;i&&(this.unmount=Tx(i,(s,u)=>(ag(this.node,u,"Start"),c=>ag(this.node,c,"End"))))}unmount(){}}class IE extends aa{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=Bl(Nl(this.node.current,"focus",()=>this.onFocus()),Nl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ig(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,Hl(i)))}class tA extends aa{mount(){const{current:i}=this.node;if(!i)return;const{globalTapTarget:s,propagate:u}=this.node.props;this.unmount=Dx(i,(c,d)=>(ig(this.node,d,"Start"),(f,{success:m})=>ig(this.node,f,m?"End":"Cancel")),{useGlobalTarget:s,stopPropagation:(u==null?void 0:u.tap)===!1})}unmount(){}}const Ic=new WeakMap,Ac=new WeakMap,eA=a=>{const i=Ic.get(a.target);i&&i(a)},nA=a=>{a.forEach(eA)};function aA({root:a,...i}){const s=a||document;Ac.has(s)||Ac.set(s,{});const u=Ac.get(s),c=JSON.stringify(i);return u[c]||(u[c]=new IntersectionObserver(nA,{root:a,...i})),u[c]}function iA(a,i,s){const u=aA(i);return Ic.set(a,s),u.observe(a),()=>{Ic.delete(a),u.unobserve(a)}}const lA={some:0,all:1};class sA extends aa{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:lA[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:S}=this.node.getProps(),x=g?v:S;x&&x(p)};this.stopObserver=iA(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(uA(i,s))&&this.startObserver()}unmount(){var i;(i=this.stopObserver)==null||i.call(this),this.hasEnteredView=!1,this.isInView=!1}}function uA({viewport:a={}},{viewport:i={}}={}){return s=>a[s]!==i[s]}const rA={inView:{Feature:sA},tap:{Feature:tA},focus:{Feature:IE},hover:{Feature:$E}},oA={layout:{ProjectionNode:Z0,MeasureLayout:iv}},cA={...jE,...rA,...WE,...oA},an=RE(cA,wE);function fA(){!Df.current&&T0();const[a]=D.useState(Ru.current);return a}const lg=.24,dA=.42,hA=1400,mA=.15;function pA(a){return{type:"spring",visualDuration:Math.min(dA,Math.max(lg,lg+a/hA)),bounce:mA}}const yA=80,gA=12,vA=400,bA=100;function SA({target:a,containerRef:i,showRipple:s=!0,isDragging:u=!1}){const[c,d]=D.useState(null),f=D.useRef(null),m=D.useCallback(Q=>{if(Q===null){f.current=null,d(null);return}const X=f.current,P=X?Math.hypot(Q.x-X.x,Q.y-X.y):0;f.current=Q,d({pos:Q,distancePx:P})},[]),y=(c==null?void 0:c.pos)??null,p=Vu(),[g,v]=D.useState(!1),S=D.useRef(void 0),x=D.useRef(void 0),E=D.useRef(void 0),[O,_]=D.useState(null),V=D.useRef(void 0);D.useEffect(()=>{p&&a!==V.current&&(V.current=a,_(a?p.currentTimeMs:null))},[a]);const H=s&&!u&&p!=null&&O!=null&&p.currentTimeMs-O>=It,L=p?H:g&&!u,k=D.useRef(!1);k.current=p!=null,D.useEffect(()=>{if(!k.current)return;if(!a){m(null);return}const Q=i.current;if(!Q)return;const X=Q.querySelector(Ti(a));X&&m(uc(Q,X))},[a,i]),D.useEffect(()=>{if(k.current)return;if(clearTimeout(S.current),clearTimeout(x.current),clearTimeout(E.current),v(!1),!a){m(null);return}let Q=!1,X=0;function P(){if(Q)return;const K=i.current;if(!K)return;const I=K.querySelector(Ti(a));if(!I){X<gA&&(X++,x.current=setTimeout(P,yA));return}const lt=yg(I);E.current=setTimeout(()=>{requestAnimationFrame(()=>{Q||(m(uc(K,I)),s&&(S.current=setTimeout(()=>{Q||v(!0)},It)))})},lt?vA:0)}const Z=requestAnimationFrame(P);return()=>{Q=!0,cancelAnimationFrame(Z),clearTimeout(x.current),clearTimeout(E.current),clearTimeout(S.current)}},[a,i,s]),D.useEffect(()=>()=>{clearTimeout(S.current),clearTimeout(x.current),clearTimeout(E.current)},[]);const F=D.useCallback(()=>{const Q=i.current;if(!Q||!a)return;const X=Q.querySelector(Ti(a));X&&m(uc(Q,X))},[a,i]);return D.useEffect(()=>{if(k.current)return;const Q=i.current;if(!Q||!a)return;let X;const P=new ResizeObserver(()=>{clearTimeout(X),X=setTimeout(F,bA)});return P.observe(Q),()=>{clearTimeout(X),P.disconnect()}},[a,i,F]),M.jsx(_u,{children:y&&M.jsxs(an.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:pA((c==null?void 0:c.distancePx)??0),children:[M.jsx(an.span,{className:"block",animate:L?{scale:[1,.85,1]}:{scale:1},transition:{duration:.25,ease:"easeOut"},style:{transformOrigin:"top left"},children:u?M.jsx(xA,{}):M.jsx(TA,{})}),M.jsx(_u,{children:L&&M.jsx(an.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 TA(){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 xA(){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 sg(a){return a.scale===hu.scale&&a.x===hu.x&&a.y===hu.y}function EA(a,i){return a.scale===i.scale&&a.x===i.x&&a.y===i.y}function AA({children:a,transform:i,contentRef:s}){const{isVideoExport:u}=Nu(),c=Vu(),d=(c==null?void 0:c.currentTimeMs)??0,f=D.useRef({from:i,to:i,atTimeMs:0});if(u&&!EA(i,f.current.to)){const g=(d-f.current.atTimeMs)/rc;f.current={from:Yp(f.current.from,f.current.to,g),to:i,atTimeMs:d}}const[m,y]=D.useState(!1);if(D.useEffect(()=>{u||y(!0)},[u,i.scale,i.x,i.y]),u){const g=Yp(f.current.from,f.current.to,(d-f.current.atTimeMs)/rc);return M.jsx("div",{className:sg(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=!sg(i)||m;return M.jsx("div",{className:p?"overflow-hidden":void 0,children:M.jsx(an.div,{ref:s,animate:{scale:i.scale,x:i.x,y:i.y},transition:{duration:rc/1e3,ease:fg},onAnimationComplete:()=>y(!1),style:{position:"relative",transformOrigin:"0 0"},children:a})})}const MA=896,CA=0,ug="relative mx-auto overflow-hidden";function DA({containerRef:a,children:i,className:s,canonicalWidth:u=MA,minZoom:c=CA,shellHeight:d,wrapperClassName:f=ug}){const{isVideoExport:m}=Nu(),y=D.useRef(null),p=D.useRef(null),[g,v]=D.useState(1),S=a??p;D.useLayoutEffect(()=>{if(m)return;const _=y.current;if(!_)return;const V=L=>{v(Math.max(Math.min(L/u,1),c))};V(_.getBoundingClientRect().width);const H=new ResizeObserver(L=>{V(L[0].contentRect.width)});return H.observe(_),()=>H.disconnect()},[m,u,c]);const x=s?`${f} ${s}`:f;if(m)return M.jsx("div",{ref:S,className:x,children:i});const E={width:u,zoom:g};d!=null&&(E["--scenar-shell-height"]=`${d}px`);const O=f===ug?{maxWidth:u}:void 0;return M.jsx("div",{ref:y,className:x,style:O,children:M.jsx("div",{ref:S,className:"relative",style:E,children:i})})}function RA({steps:a,narrationManifest:i,muted:s,playbackRate:u,isVideoExport:c,prefersReducedMotion:d}){const f=Vu(),m=a.length-1,[y,p]=D.useState(()=>d?m:0),[g,v]=D.useState(c?"playing":"idle"),S=g==="playing",x=f?wc(f.currentTimeMs,f.stepStartTimesMs,m):y,E=D.useRef(x);E.current=x;const O=D.useRef(null),_=D.useRef(0),[V,H]=D.useState(0),L=D.useRef(Math.max(u,.25));L.current=Math.max(u,.25),D.useEffect(()=>{var N,J;if(f||!S||d)return;const I=L.current;if(x>=m){const $=!s&&i?((N=i.steps[x])==null?void 0:N.durationMs)??0:0;if($>0){O.current=()=>v("paused");const rt=setTimeout(()=>{O.current=null,v("paused")},($+2e3)/I);return()=>{clearTimeout(rt),O.current=null}}v("paused");return}const lt=x+1,Ct=a[lt].delayMs/I,Et=!s&&i?((J=i.steps[x])==null?void 0:J.durationMs)??0:0;if(Et>0){let $=!1,rt=!1,ft=!1;const A=()=>{ft||(ft=!0,O.current=null,p(lt))},Y=()=>{$&&rt&&A()};O.current=()=>{$=!0,Y()};const W=setTimeout(()=>{rt=!0,Y()},Ct),tt=setTimeout(A,(Math.max(a[lt].delayMs,Et)+2e3)/I);return()=>{clearTimeout(W),clearTimeout(tt),O.current=null}}const zt=setTimeout(()=>p(lt),Ct);return()=>clearTimeout(zt)},[f,S,x,a,m,d,s,i]);const k=D.useCallback(I=>{v("paused"),p(Math.max(0,Math.min(I,m)))},[m]),F=D.useCallback((I,lt)=>{const Ct=Math.max(0,Math.min(I,lt.totalDurationMs)),Et=wc(Ct,lt.stepStartTimesMs,m),zt=lt.stepStartTimesMs[Et]??0;_.current=Ct-zt,p(Et),v("playing"),H(N=>N+1)},[m]),Q=D.useCallback(()=>{E.current>=m&&p(0),v("playing")},[m]),X=D.useCallback(()=>{v("paused")},[]),P=D.useCallback(()=>{S?X():Q()},[S,Q,X]),Z=D.useCallback(()=>{var I;(I=O.current)==null||I.call(O)},[]),K=D.useCallback(I=>{O.current=I},[]);return{stepIndex:x,playbackState:g,playing:S,play:Q,pause:X,togglePlay:P,goTo:k,seekToTime:F,seekOffsetRef:_,seekGeneration:V,handleClipEnded:Z,setPendingAdvance:K,coordinatorId:void 0}}function wA(a,i,s,u,c,d,f,m,y,p){const g=D.useRef(0),v=D.useRef(0),S=D.useRef(0),x=D.useRef(d);x.current=d;const E=D.useRef(s);E.current=s;const O=D.useRef(Math.max(c,.25));O.current=Math.max(c,.25);const _=D.useCallback(H=>{const L=`${Math.max(0,Math.min(H,1))*100}%`;f.current&&(f.current.style.width=L),m.current&&(m.current.style.left=L)},[f,m]),V=D.useRef(void 0);V.current=()=>{const H=performance.now();v.current+=(H-S.current)*O.current,S.current=H;const L=x.current,k=E.current,F=L.stepStartTimesMs[k]??0,Q=k<u?L.stepStartTimesMs[k+1]??L.totalDurationMs:L.totalDurationMs,X=Math.max(Q-F,1),P=Math.min(v.current/X,1),Z=(F+P*(Q-F))/L.totalDurationMs;_(Z),g.current=requestAnimationFrame(()=>{var K;return(K=V.current)==null?void 0:K.call(V)})},D.useEffect(()=>(a?(S.current=performance.now(),g.current=requestAnimationFrame(()=>{var H;return(H=V.current)==null?void 0:H.call(V)})):cancelAnimationFrame(g.current),()=>cancelAnimationFrame(g.current)),[a]),D.useEffect(()=>{v.current=y.current,y.current=0,S.current=performance.now()},[s,p,y]),D.useEffect(()=>{if(i==="idle"){_(0);return}if(i==="paused"){const H=x.current,L=E.current,k=H.stepStartTimesMs[L]??0,F=L<u?H.stepStartTimesMs[L+1]??H.totalDurationMs:H.totalDurationMs,Q=Math.max(F-k,1),X=Math.min(v.current/Q,1),P=(k+X*(F-k))/H.totalDurationMs;_(P)}},[i,s,u,_])}function lv({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 sv({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 uv(a){return i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),i.stopPropagation(),a())}}function zA({onPlay:a,PlayIcon:i,hasNarration:s=!1}){const u=i??lv,c=s?"Play walkthrough with narration":"Play demo";return M.jsxs(an.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:uv(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(sv,{size:14})})]})}function OA({onResume:a,PlayIcon:i}){const s=i??lv;return M.jsx(an.div,{className:"absolute inset-0 z-10 flex cursor-pointer items-center justify-center rounded-lg",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},onClick:u=>{u.stopPropagation(),a()},onKeyDown:uv(a),role:"button",tabIndex:0,"aria-label":"Resume demo",children:M.jsx("div",{className:"flex h-14 w-14 items-center justify-center rounded-full bg-white/90 ring-1 ring-black/10 shadow-[0_6px_18px_rgba(0,0,0,0.3)] transition-transform duration-200 hover:scale-105",children:M.jsx(s,{size:24,className:"ml-1 text-neutral-900"})})})}function _A({onEnableAudio:a}){return M.jsxs(an.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(sv,{size:14}),"Tap to enable audio"]})}const jA=[.5,1,1.5,2];function VA({playbackRate:a,onSelectSpeed:i}){const[s,u]=D.useState(!1),c=D.useRef(null);return D.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-6 min-w-[2rem] items-center justify-center rounded px-1 text-[11px] font-medium tabular-nums text-white/75 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(an.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:jA.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-[11px] 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 NA({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:S,onSelectSpeed:x,onSeekToTime:E}){const O=D.useMemo(()=>c.stepStartTimesMs.slice(1).map(V=>V/c.totalDurationMs*100),[c]),_=D.useCallback(V=>{V.stopPropagation();const H=V.currentTarget.getBoundingClientRect(),L=Math.max(0,Math.min(1,(V.clientX-H.left)/H.width));E(L*c.totalDurationMs)},[c,E]);return M.jsxs(an.div,{className:"absolute inset-x-0 bottom-0 z-20 rounded-b-lg bg-gradient-to-t from-black/60 via-black/25 to-transparent px-3 pb-1.5 pt-8",initial:!1,animate:{opacity:a?1:0},transition:{duration:.2},style:{pointerEvents:a?"auto":"none"},onClick:V=>V.stopPropagation(),children:[M.jsxs("div",{className:"group relative mb-2 h-1 w-full cursor-pointer rounded-full bg-white/30 transition-[height] duration-150 hover:h-1.5",onClick:_,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 w-3 -translate-x-1/2 -translate-y-1/2 rounded-full bg-white opacity-0 shadow-sm transition-opacity group-hover:opacity-100"}),O.map((V,H)=>M.jsx("div",{className:"absolute top-0 h-full w-0.5 rounded-full bg-black/50",style:{left:`${V}%`}},H))]}),M.jsxs("div",{className:"flex items-center gap-1.5",children:[M.jsx("button",{onClick:V=>{V.stopPropagation(),v()},className:"flex h-6 w-6 items-center justify-center rounded text-white/75 transition-colors hover:text-white","aria-label":i?"Pause":"Play",children:i?M.jsx(LA,{}):M.jsx(BA,{})}),f&&M.jsx("button",{onClick:V=>{V.stopPropagation(),S()},className:"flex h-6 w-6 items-center justify-center rounded text-white/75 transition-colors hover:text-white","aria-label":s?"Unmute narration":"Mute narration",children:s?M.jsx(HA,{}):M.jsx(UA,{})}),d&&M.jsx(VA,{playbackRate:u,onSelectSpeed:x}),m&&M.jsx("button",{onClick:V=>{V.stopPropagation(),m()},className:"ml-auto flex h-6 w-6 items-center justify-center rounded text-white/75 transition-colors hover:text-white","aria-label":y?"Exit fullscreen":"Enter fullscreen",children:y?M.jsx(qA,{}):M.jsx(YA,{})})]})]})}function BA(){return M.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0,children:M.jsx("path",{d:"M8 5v14l11-7z"})})}function LA(){return M.jsxs("svg",{width:"14",height:"14",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 UA(){return M.jsxs("svg",{width:"14",height:"14",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 HA(){return M.jsxs("svg",{width:"14",height:"14",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 YA(){return M.jsxs("svg",{width:"14",height:"14",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 qA(){return M.jsxs("svg",{width:"14",height:"14",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 GA(a){const i=typeof window<"u"&&window.parent!==window,s=a.enabled&&i,u=D.useRef(s);u.current=s;const c=D.useRef(null),d=D.useRef(a.controls);d.current=a.controls;const f=D.useCallback(g=>{!u.current||typeof window>"u"||window.parent.postMessage(iS(g),c.current??"*")},[]),m=D.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}},[]);D.useEffect(()=>{if(!s)return;const g=v=>{if(v.source!==window.parent)return;const S=sS(v.data);S&&(v.origin&&v.origin!=="null"&&(c.current=v.origin),m(S))};return window.addEventListener("message",g),()=>window.removeEventListener("message",g)},[s,m]),D.useEffect(()=>{if(!s)return;const g=a.containerRef.current;if(!g||typeof ResizeObserver>"u")return;const v=new ResizeObserver(()=>{const S=g.getBoundingClientRect();f({type:"resize",widthPx:Math.round(S.width),heightPx:Math.round(S.height)})});return v.observe(g),()=>v.disconnect()},[s,a.containerRef,f]);const y=D.useRef(!1);D.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;D.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]),D.useEffect(()=>{if(!s)return;const g=a.stepTimeline.totalDurationMs,v=a.stepTimeline.stepStartTimesMs[a.stepIndex]??0,S=g>0?v/g:0;f({type:"stepchange",stepIndex:a.stepIndex,totalSteps:a.totalSteps}),f({type:"progress",stepIndex:a.stepIndex,totalSteps:a.totalSteps,fraction:S})},[s,a.stepIndex,a.totalSteps,a.stepTimeline,f]),D.useEffect(()=>{!s||!a.audioBlocked||f({type:"audioBlocked"})},[s,a.audioBlocked,f])}const XA=3e3;function kA({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=fA(),{isVideoExport:v,hideControls:S,initialMuted:x}=Nu(),E=y.length-1,O=D.useRef(null),[_,V]=D.useState(()=>{if(typeof window>"u")return 1;const te=new URLSearchParams(window.location.search).get("__test_speed"),Se=te?Number(te):NaN;return Se>0&&Se<=16?Se:1}),H=v?x:!1,[L,k]=D.useState(H),F=RA({steps:y,narrationManifest:p,muted:L,playbackRate:_,isVideoExport:v,prefersReducedMotion:g}),{stepIndex:Q,playbackState:X,playing:P,play:Z,pause:K,togglePlay:I,seekToTime:lt,seekOffsetRef:Ct,seekGeneration:Et,handleClipEnded:zt}=F,N=D.useRef(null);D.useEffect(()=>{if(!v)return N.current=fS(()=>{K()}),()=>{var te;return(te=N.current)==null?void 0:te.unregister()}},[v,K]),D.useEffect(()=>{const te=O.current;if(!te||v)return;const Se=new IntersectionObserver(([un])=>{!(un!=null&&un.isIntersecting)&&P&&K()},{threshold:.5});return Se.observe(te),()=>Se.disconnect()},[v,P,K]);const{muted:J,toggleMute:$,audioRef:rt,seekToStep:ft,audioBlocked:A,unlock:Y,setVolume:W,prefetch:tt}=hS({manifest:p,stepIndex:Q,playing:P,initialMuted:H,playbackRate:_,onClipEnded:zt});D.useEffect(()=>{k(J)},[J]);const st=D.useMemo(()=>$b(y,J?null:p),[y,J,p]);D.useEffect(()=>{c==null||c(y[Q].data,Q)},[Q,y,c]);const[ht,bt]=D.useState(!0),Ut=D.useRef(void 0),jt=D.useCallback(()=>{Ut.current&&clearTimeout(Ut.current),Ut.current=setTimeout(()=>bt(!1),XA)},[]),ia=D.useCallback(()=>{bt(!0),X==="playing"&&jt()},[X,jt]);D.useEffect(()=>(X!=="playing"?(bt(!0),Ut.current&&clearTimeout(Ut.current)):jt(),()=>{Ut.current&&clearTimeout(Ut.current)}),[X,jt]);const Cn=D.useCallback(()=>{Y(),Z(),N.current&&Gp(N.current.id)},[Z,Y]),wa=D.useCallback(te=>{const Se=Math.max(0,Math.min(te,st.totalDurationMs)),un=wc(Se,st.stepStartTimesMs,E),_a=st.stepStartTimesMs[un]??0;ft(un,Math.max(0,Se-_a)),lt(Se,st),N.current&&Gp(N.current.id)},[lt,ft,st,E]),Yl=D.useCallback(()=>{X!=="idle"&&I()},[X,I]),sn=D.useCallback(()=>{Y()},[Y]),[Ri,wi]=D.useState(!1),zi=m&&typeof document<"u"&&document.fullscreenEnabled;D.useEffect(()=>{if(!zi)return;const te=()=>wi(document.fullscreenElement!=null);return document.addEventListener("fullscreenchange",te),()=>document.removeEventListener("fullscreenchange",te)},[zi]);const ql=D.useCallback(()=>{document.fullscreenElement?document.exitFullscreen().catch(()=>{}):document.documentElement.requestFullscreen().catch(()=>{})},[]),za=D.useRef(null),Oa=D.useRef(null);wA(P,X,Q,E,_,st,za,Oa,Ct,Et),GA({enabled:m,containerRef:O,playbackState:X,stepIndex:Q,totalSteps:y.length,stepTimeline:st,hasNarration:!!p,audioBlocked:A,controls:{play:Cn,pause:K,seekToTime:wa,setMuted:te=>{J!==te&&$()},setVolume:W,prefetch:tt}});const Oi=X==="idle"&&!v&&!g,qu=X==="paused"&&!v,Gl=X!=="idle"&&!S,oe=A&&!v&&X!=="idle";return M.jsxs("div",{ref:O,className:u,"data-demo-step":Q,"data-demo-state":X,"data-demo-total-steps":y.length,"data-demo-audio-blocked":A?"":void 0,onMouseMove:Gl?ia:void 0,children:[M.jsxs("div",{className:"relative",onClick:Yl,style:{cursor:X!=="idle"?"pointer":void 0},children:[s(y[Q].data,Q),M.jsxs(_u,{children:[Oi&&M.jsx(zA,{onPlay:Cn,hasNarration:!!p}),qu&&M.jsx(OA,{onResume:Cn}),oe&&M.jsx(_A,{onEnableAudio:sn})]}),Gl&&M.jsx(NA,{visible:ht,playing:P,muted:J,playbackRate:_,stepTimeline:st,showSpeedControl:f,hasNarration:!!p,onToggleFullscreen:zi?ql:void 0,isFullscreen:Ri,progressTrackRef:za,playheadRef:Oa,onTogglePlay:I,onToggleMute:$,onSelectSpeed:V,onSeekToTime:wa})]}),p&&M.jsx("audio",{ref:rt,preload:"none",hidden:!0})]})}function Ai(a,i){if(!a||!i)return null;const s=i.querySelector(Ti(a));return!s||!(s instanceof HTMLElement)?null:s}function ZA(a,i){if(!a||!i)return null;const s=i.querySelector(aS(a));return s||null}function QA(a,i){if(!i)return null;const s=i.querySelector(Ti(a));return s?s instanceof HTMLInputElement||s instanceof HTMLTextAreaElement?s:s.querySelector("input, textarea"):null}function rv(a,i){const s=ZA(a.target,i.containerRef.current);s&&(i.isVideoExport?tS(s):yg(s))}function ov(a,i){i.setCursorTarget(a.target)}function cv(a,i){i.setCursorTarget(void 0)}function fv(a,i){const s=Ai(a.target,i.containerRef.current);s&&s.click()}function dv(a,i,s){var f;if(!a.target)return;const u=QA(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 hv(a,i){const s=Ai(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 mv(a,i){const s=Ai(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 pv(a,i){const s=Ai(a.target,i.containerRef.current);s&&(s.dispatchEvent(new PointerEvent("pointerdown",{bubbles:!0})),s.setAttribute("data-dragging","true"))}function yv(a,i){const s=Ai(a.dragTarget,i.containerRef.current);s&&s.dispatchEvent(new PointerEvent("pointerup",{bubbles:!0}));const u=Ai(a.target,i.containerRef.current);u&&u.removeAttribute("data-dragging")}const KA=1.5;function JA(a,i,s){const u=s.querySelector(Ti(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 gv(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??KA,c=JA(a.target,u,s);c&&i.setViewportTransform(c)}function PA(a,i){const{stepIndex:s,narrationManifest:u,steps:c,playbackRate:d=1}=a;D.useEffect(()=>{var g;const f=(g=c[s])==null?void 0:g.interactions;if(!f||f.length===0)return;const m=dg(s,u,c),y=Math.max(d,.25),p=[];for(const v of f){const S=v.atPercent*m/y;if(v.type==="click")p.push(setTimeout(()=>i.setCursorTarget(v.target),S)),p.push(setTimeout(()=>fv(v,i),S+It/y));else if(v.type==="type"){const x=v.text??"";if(x.length===0)continue;const E=v.typeDelay??hg;p.push(setTimeout(()=>i.setCursorTarget(v.target),S));const O=S+It/y;for(let _=0;_<x.length;_++){const V=x.substring(0,_+1);p.push(setTimeout(()=>dv(v,V,i),O+_*E/y))}}else if(v.type==="hover"){const x=v.hoverDuration??mg;p.push(setTimeout(()=>{var E;(E=i.setShowRipple)==null||E.call(i,!1),i.setCursorTarget(v.target)},S)),p.push(setTimeout(()=>hv(v,i),S+It/y)),p.push(setTimeout(()=>{var E;mv(v,i),(E=i.setShowRipple)==null||E.call(i,!0)},S+(It+x)/y))}else v.type==="drag"?(p.push(setTimeout(()=>{var x;(x=i.setShowRipple)==null||x.call(i,!1),i.setCursorTarget(v.target)},S)),p.push(setTimeout(()=>{var x;(x=i.setDragging)==null||x.call(i,!0),pv(v,i)},S+It/y)),p.push(setTimeout(()=>i.setCursorTarget(v.dragTarget),S+(It+xu)/y)),p.push(setTimeout(()=>{var x,E;yv(v,i),(x=i.setDragging)==null||x.call(i,!1),(E=i.setShowRipple)==null||E.call(i,!0)},S+(It+xu+It)/y))):v.type==="viewport_transition"?p.push(setTimeout(()=>gv(v,i),S)):p.push(setTimeout(()=>FA(v,i),S))}return()=>{for(const v of p)clearTimeout(v)}},[s,u,i,c,d])}function FA(a,i){switch(a.type){case"scroll_to":rv(a,i);break;case"set_cursor":ov(a,i);break;case"clear_cursor":cv(a,i);break;default:i.setCursorTarget(a.target);break}}function WA(a,i,s){const{stepIndex:u,narrationManifest:c,steps:d}=a,f=D.useRef(new Set);D.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:dg(u,c,d),S=s.currentTimeMs-p;for(const E of y){const O=E.atPercent*v;if(E.type==="click")m(`${u}-${E.atPercent}-click-cursor`,S,O,()=>{i.setCursorTarget(E.target)}),m(`${u}-${E.atPercent}-click-dispatch`,S,O+It,()=>{fv(E,i)});else if(E.type==="type"){const _=E.text??"";if(_.length===0)continue;const V=E.typeDelay??hg;m(`${u}-${E.atPercent}-type-cursor`,S,O,()=>{i.setCursorTarget(E.target)});const H=O+It;if(S>=H){const L=Math.min(Math.floor((S-H)/V)+1,_.length);m(`${u}-${E.atPercent}-type-char-${L}`,S,0,()=>{dv(E,_.substring(0,L),i)})}}else if(E.type==="hover"){const _=E.hoverDuration??mg;m(`${u}-${E.atPercent}-hover-cursor`,S,O,()=>{var V;(V=i.setShowRipple)==null||V.call(i,!1),i.setCursorTarget(E.target)}),m(`${u}-${E.atPercent}-hover-enter`,S,O+It,()=>{hv(E,i)}),m(`${u}-${E.atPercent}-hover-leave`,S,O+It+_,()=>{var V;mv(E,i),(V=i.setShowRipple)==null||V.call(i,!0)})}else E.type==="drag"?(m(`${u}-${E.atPercent}-drag-cursor`,S,O,()=>{var _;(_=i.setShowRipple)==null||_.call(i,!1),i.setCursorTarget(E.target)}),m(`${u}-${E.atPercent}-drag-press`,S,O+It,()=>{var _;(_=i.setDragging)==null||_.call(i,!0),pv(E,i)}),m(`${u}-${E.atPercent}-drag-move`,S,O+It+xu,()=>{i.setCursorTarget(E.dragTarget)}),m(`${u}-${E.atPercent}-drag-release`,S,O+It+xu+It,()=>{var _,V;yv(E,i),(_=i.setDragging)==null||_.call(i,!1),(V=i.setShowRipple)==null||V.call(i,!0)})):E.type==="viewport_transition"?m(`${u}-${E.atPercent}-viewport`,S,O,()=>{gv(E,i)}):m(`${u}-${E.atPercent}-${E.type}`,S,O,()=>{$A(E,i)})}}),D.useEffect(()=>{f.current.clear()},[u]);function m(y,p,g,v){p>=g&&!f.current.has(y)&&(f.current.add(y),v())}}function $A(a,i){switch(a.type){case"scroll_to":rv(a,i);break;case"set_cursor":ov(a,i);break;case"clear_cursor":cv(a,i);break;default:i.setCursorTarget(a.target);break}}function IA(a){const i=Vu(),{isVideoExport:s}=Nu(),u=D.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?WA(a,u,i):PA(a,u)}const rg="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 vv=(...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 tM=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 eM=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 og=a=>{const i=eM(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 Mc={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 nM=a=>{for(const i in a)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1},aM=D.createContext({}),iM=()=>D.useContext(aM),lM=D.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:S="currentColor",className:x=""}=iM()??{},E=u??v?Number(s??g)*24/Number(i??p):s??g;return D.createElement("svg",{ref:y,...Mc,width:i??p??Mc.width,height:i??p??Mc.height,stroke:a??S,strokeWidth:E,className:vv("lucide",x,c),...!d&&!nM(m)&&{"aria-hidden":"true"},...m},[...f.map(([O,_])=>D.createElement(O,_)),...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=D.forwardRef(({className:u,...c},d)=>D.createElement(lM,{ref:d,iconNode:i,className:vv(`lucide-${tM(og(a))}`,`lucide-${a}`,u),...c}));return s.displayName=og(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 sM=[["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"}]],uM=Pe("bell",sM);/**
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 rM=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],oM=Pe("chevron-left",rM);/**
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 cM=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],fM=Pe("chevron-right",cM);/**
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 dM=[["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"}]],hM=Pe("ellipsis-vertical",dM);/**
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 mM=[["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"}]],pM=Pe("globe",mM);/**
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 yM=[["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"}]],gM=Pe("lock",yM);/**
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 vM=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],bM=Pe("plus",vM);/**
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 SM=[["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"}]],TM=Pe("rotate-ccw",SM);/**
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 xM=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],EM=Pe("search",xM);/**
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 AM=[["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"}]],MM=Pe("star",AM);/**
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 CM=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],DM=Pe("x",CM),RM=420;function wM(a){const i=a.replace(/^https?:\/\//,"");return i.split("/")[0]??i}function zM({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, ${RM}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(pM,{className:"h-3.5 w-3.5 shrink-0 text-[#9aa0a6]"}),M.jsx("span",{className:"max-w-[180px] truncate text-xs text-[#e8eaed]",children:wM(a)}),M.jsx(DM,{className:"h-3 w-3 shrink-0 text-[#9aa0a6]"})]}),M.jsx(bM,{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(oM,{className:"h-4 w-4 text-[#9aa0a6]"}),M.jsx(fM,{className:"h-4 w-4 text-[#9aa0a6]"}),M.jsx(TM,{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(gM,{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(MM,{className:"h-3.5 w-3.5 text-[#9aa0a6]"}),M.jsx("div",{className:"h-4 w-4 rounded-full bg-[#5f6368]"}),M.jsx(hM,{className:"h-4 w-4 text-[#9aa0a6]"})]})]}),M.jsx(an.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 OM({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 _M({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(EM,{className:"h-3.5 w-3.5 text-[var(--scenar-muted-foreground)]"}),!d&&M.jsx(uM,{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 jM({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 bv({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 VM({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 NM={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 Cc({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 ${NM[i]}`,children:a})}function BM({appName:a,logo:i,subtitle:s,fields:u,submitLabel:c="Sign in",footerText:d,cardWidth:f=280,background:m,topBar:y,submitTargetId:p}){var S;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:((S=a[0])==null?void 0:S.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(bv,{title:a,subtitle:s??"Sign in to your account",headerSlot:v,fields:u,submitLabel:c,footerText:d,width:f})})})]})}function Dc({appName:a,logo:i,navLinks:s,userName:u,sidebarItems:c,sidebarWidth:d,children:f}){return M.jsx(OM,{header:M.jsx(_M,{appName:a,logo:i,navLinks:s,userName:u}),sidebar:c?M.jsx(jM,{items:c,width:d}):void 0,children:f})}const LM=""+new URL("logo-f-5LjVqJ.png",import.meta.url).href;function UM(a,i){return M.jsx(zM,{url:`https://${a.url}`,contentKey:String(i),children:YM(a.screen)})}const HM=[{label:"Home",active:!0},{label:"Projects"},{label:"Settings"}],Rc=[{label:"Workspace",isSection:!0},{label:"Overview",active:!0},{label:"Projects"},{label:"Members"},{label:"Account",isSection:!0},{label:"Profile"},{label:"Billing"}];function YM(a){switch(a){case"login":return M.jsx(BM,{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(Dc,{appName:"Acme Cloud",userName:"Jordan",navLinks:HM,sidebarItems:Rc,children:M.jsxs("div",{className:"p-5",children:[M.jsxs("div",{className:"mb-4 flex items-center gap-2",children:[M.jsx("img",{src:LM,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(Dc,{appName:"Acme Cloud",userName:"Jordan",navLinks:[{label:"Home"},{label:"Projects",active:!0},{label:"Settings"}],sidebarItems:Rc,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(VM,{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(Cc,{label:"Healthy",variant:"success"})}},{id:"2",cells:{name:"web-frontend",env:"production",status:M.jsx(Cc,{label:"Deploying",variant:"info"})}},{id:"3",cells:{name:"billing-worker",env:"staging",status:M.jsx(Cc,{label:"Degraded",variant:"warning"})}}]})]})});case"settings":return M.jsx(Dc,{appName:"Acme Cloud",userName:"Jordan",navLinks:[{label:"Home"},{label:"Projects"},{label:"Settings",active:!0}],sidebarItems:Rc,children:M.jsx("div",{className:"flex justify-center p-6",children:M.jsx(bv,{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 qM=[{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"}}],GM=Object.freeze(Object.defineProperty({__proto__:null,steps:qM},Symbol.toStringTag,{value:"Module"}));function XM(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 cg=XM(GM),kM=(()=>{try{return new URLSearchParams(window.location.search).get("theme")}catch{return null}})(),Sv=kM==="dark"?rg+" dark":rg;window.parent===window&&(document.body.classList.add(...Sv.split(" ")),document.body.style.background="var(--scenar-surface)");function ZM(){const a=D.useRef(null),i=D.useRef(null),[s,u]=D.useState(0),[c,d]=D.useState(void 0),[f,m]=D.useState(!0),[y,p]=D.useState(!1),[g,v]=D.useState(hu),S=D.useCallback((E,O)=>{u(O),d(void 0)},[]);IA({stepIndex:s,narrationManifest:void 0,containerRef:a,cameraRef:i,setCursorTarget:d,setShowRipple:m,setDragging:p,setViewportTransform:v,steps:cg});const x={id:"welcome-tour",steps:cg,narrationManifest:void 0};return M.jsx("div",{className:Sv,children:M.jsx(DA,{containerRef:a,canonicalWidth:896,shellHeight:480,children:M.jsxs(AA,{transform:g,contentRef:i,children:[M.jsx(kA,{bundle:x,embed:!0,onStepChange:S,children:(E,O)=>UM(E,O)}),M.jsx(SA,{target:c,containerRef:i,showRipple:f,isDragging:y})]})})})}const Tv=document.getElementById("root");if(!Tv)throw new Error("Embed root element #root not found");Fb.createRoot(Tv).render(M.jsx(ZM,{}));