@ouro.bot/cli 0.1.0-alpha.665 → 0.1.0-alpha.667

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.
Files changed (35) hide show
  1. package/changelog.json +13 -0
  2. package/dist/arc/flight-recorder.js +324 -5
  3. package/dist/heart/core.js +167 -4
  4. package/dist/heart/cross-chat-delivery.js +3 -2
  5. package/dist/heart/daemon/cli-exec.js +139 -1
  6. package/dist/heart/daemon/cli-help.js +13 -2
  7. package/dist/heart/daemon/cli-parse.js +138 -2
  8. package/dist/heart/daemon/daemon-entry.js +24 -5
  9. package/dist/heart/daemon/daemon.js +10 -1
  10. package/dist/heart/habits/habit-parser.js +8 -0
  11. package/dist/heart/habits/habit-runtime-state.js +17 -3
  12. package/dist/heart/habits/habit-scheduler.js +24 -5
  13. package/dist/heart/habits/habit-session-summary.js +318 -0
  14. package/dist/heart/habits/habit-session.js +618 -0
  15. package/dist/heart/mailbox/mailbox-http-hooks.js +29 -1
  16. package/dist/heart/mailbox/mailbox-http-routes.js +122 -1
  17. package/dist/heart/mailbox/mailbox-read.js +5 -1
  18. package/dist/heart/mailbox/readers/runtime-readers.js +87 -0
  19. package/dist/mailbox-ui/assets/index-CaTIFDmv.js +1 -0
  20. package/dist/mailbox-ui/assets/index-Du_9G9WO.css +1 -0
  21. package/dist/mailbox-ui/assets/vendor-CcN1XpQ9.js +61 -0
  22. package/dist/mailbox-ui/index.html +3 -2
  23. package/dist/repertoire/tools-notes.js +50 -0
  24. package/dist/repertoire/tools-record.js +13 -0
  25. package/dist/repertoire/tools-session.js +140 -0
  26. package/dist/repertoire/tools-surface.js +11 -0
  27. package/dist/repertoire/tools.js +7 -0
  28. package/dist/senses/habit-turn-message.js +41 -3
  29. package/dist/senses/inner-dialog-worker.js +264 -68
  30. package/dist/senses/inner-dialog.js +29 -15
  31. package/dist/senses/pipeline.js +2 -11
  32. package/dist/senses/surface-tool.js +2 -1
  33. package/package.json +1 -1
  34. package/dist/mailbox-ui/assets/index-BZ60na8O.js +0 -61
  35. package/dist/mailbox-ui/assets/index-DG6Xf5uL.css +0 -1
@@ -0,0 +1,61 @@
1
+ function ET(n,a){for(var s=0;s<a.length;s++){const u=a[s];if(typeof u!="string"&&!Array.isArray(u)){for(const o in u)if(o!=="default"&&!(o in n)){const d=Object.getOwnPropertyDescriptor(u,o);d&&Object.defineProperty(n,o,d.get?d:{enumerable:!0,get:()=>u[o]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}function AT(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Gc={exports:{}},jl={};/**
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 _y;function MT(){if(_y)return jl;_y=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function s(u,o,d){var f=null;if(d!==void 0&&(f=""+d),o.key!==void 0&&(f=""+o.key),"key"in o){d={};for(var h in o)h!=="key"&&(d[h]=o[h])}else d=o;return o=d.ref,{$$typeof:n,type:u,key:f,ref:o!==void 0?o:null,props:d}}return jl.Fragment=a,jl.jsx=s,jl.jsxs=s,jl}var Ny;function xT(){return Ny||(Ny=1,Gc.exports=MT()),Gc.exports}var Ku=xT(),Yc={exports:{}},st={};/**
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 Uy;function DT(){if(Uy)return st;Uy=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),S=Symbol.iterator;function E(A){return A===null||typeof A!="object"?null:(A=S&&A[S]||A["@@iterator"],typeof A=="function"?A:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z=Object.assign,V={};function N(A,j,q){this.props=A,this.context=j,this.refs=V,this.updater=q||D}N.prototype.isReactComponent={},N.prototype.setState=function(A,j){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,j,"setState")},N.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function Y(){}Y.prototype=N.prototype;function B(A,j,q){this.props=A,this.context=j,this.refs=V,this.updater=q||D}var $=B.prototype=new Y;$.constructor=B,z($,N.prototype),$.isPureReactComponent=!0;var K=Array.isArray;function et(){}var Z={H:null,A:null,T:null,S:null},tt=Object.prototype.hasOwnProperty;function bt(A,j,q){var F=q.ref;return{$$typeof:n,type:A,key:j,ref:F!==void 0?F:null,props:q}}function k(A,j){return bt(A.type,j,A.props)}function ct(A){return typeof A=="object"&&A!==null&&A.$$typeof===n}function yt(A){var j={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(q){return j[q]})}var zt=/\/+/g;function Dt(A,j){return typeof A=="object"&&A!==null&&A.key!=null?yt(""+A.key):j.toString(36)}function Vt(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(et,et):(A.status="pending",A.then(function(j){A.status==="pending"&&(A.status="fulfilled",A.value=j)},function(j){A.status==="pending"&&(A.status="rejected",A.reason=j)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function _(A,j,q,F,at){var ft=typeof A;(ft==="undefined"||ft==="boolean")&&(A=null);var gt=!1;if(A===null)gt=!0;else switch(ft){case"bigint":case"string":case"number":gt=!0;break;case"object":switch(A.$$typeof){case n:case a:gt=!0;break;case v:return gt=A._init,_(gt(A._payload),j,q,F,at)}}if(gt)return at=at(A),gt=F===""?"."+Dt(A,0):F,K(at)?(q="",gt!=null&&(q=gt.replace(zt,"$&/")+"/"),_(at,j,q,"",function(Qa){return Qa})):at!=null&&(ct(at)&&(at=k(at,q+(at.key==null||A&&A.key===at.key?"":(""+at.key).replace(zt,"$&/")+"/")+gt)),j.push(at)),1;gt=0;var Xt=F===""?".":F+":";if(K(A))for(var Lt=0;Lt<A.length;Lt++)F=A[Lt],ft=Xt+Dt(F,Lt),gt+=_(F,j,q,ft,at);else if(Lt=E(A),typeof Lt=="function")for(A=Lt.call(A),Lt=0;!(F=A.next()).done;)F=F.value,ft=Xt+Dt(F,Lt++),gt+=_(F,j,q,ft,at);else if(ft==="object"){if(typeof A.then=="function")return _(Vt(A),j,q,F,at);throw j=String(A),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.")}return gt}function X(A,j,q){if(A==null)return A;var F=[],at=0;return _(A,F,"","",function(ft){return j.call(q,ft,at++)}),F}function Q(A){if(A._status===-1){var j=A._result;j=j(),j.then(function(q){(A._status===0||A._status===-1)&&(A._status=1,A._result=q)},function(q){(A._status===0||A._status===-1)&&(A._status=2,A._result=q)}),A._status===-1&&(A._status=0,A._result=j)}if(A._status===1)return A._result.default;throw A._result}var it=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var j=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(j))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},ot={map:X,forEach:function(A,j,q){X(A,function(){j.apply(this,arguments)},q)},count:function(A){var j=0;return X(A,function(){j++}),j},toArray:function(A){return X(A,function(j){return j})||[]},only:function(A){if(!ct(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return st.Activity=b,st.Children=ot,st.Component=N,st.Fragment=s,st.Profiler=o,st.PureComponent=B,st.StrictMode=u,st.Suspense=m,st.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,st.__COMPILER_RUNTIME={__proto__:null,c:function(A){return Z.H.useMemoCache(A)}},st.cache=function(A){return function(){return A.apply(null,arguments)}},st.cacheSignal=function(){return null},st.cloneElement=function(A,j,q){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var F=z({},A.props),at=A.key;if(j!=null)for(ft in j.key!==void 0&&(at=""+j.key),j)!tt.call(j,ft)||ft==="key"||ft==="__self"||ft==="__source"||ft==="ref"&&j.ref===void 0||(F[ft]=j[ft]);var ft=arguments.length-2;if(ft===1)F.children=q;else if(1<ft){for(var gt=Array(ft),Xt=0;Xt<ft;Xt++)gt[Xt]=arguments[Xt+2];F.children=gt}return bt(A.type,at,F)},st.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},st.createElement=function(A,j,q){var F,at={},ft=null;if(j!=null)for(F in j.key!==void 0&&(ft=""+j.key),j)tt.call(j,F)&&F!=="key"&&F!=="__self"&&F!=="__source"&&(at[F]=j[F]);var gt=arguments.length-2;if(gt===1)at.children=q;else if(1<gt){for(var Xt=Array(gt),Lt=0;Lt<gt;Lt++)Xt[Lt]=arguments[Lt+2];at.children=Xt}if(A&&A.defaultProps)for(F in gt=A.defaultProps,gt)at[F]===void 0&&(at[F]=gt[F]);return bt(A,ft,at)},st.createRef=function(){return{current:null}},st.forwardRef=function(A){return{$$typeof:h,render:A}},st.isValidElement=ct,st.lazy=function(A){return{$$typeof:v,_payload:{_status:-1,_result:A},_init:Q}},st.memo=function(A,j){return{$$typeof:y,type:A,compare:j===void 0?null:j}},st.startTransition=function(A){var j=Z.T,q={};Z.T=q;try{var F=A(),at=Z.S;at!==null&&at(q,F),typeof F=="object"&&F!==null&&typeof F.then=="function"&&F.then(et,it)}catch(ft){it(ft)}finally{j!==null&&q.types!==null&&(j.types=q.types),Z.T=j}},st.unstable_useCacheRefresh=function(){return Z.H.useCacheRefresh()},st.use=function(A){return Z.H.use(A)},st.useActionState=function(A,j,q){return Z.H.useActionState(A,j,q)},st.useCallback=function(A,j){return Z.H.useCallback(A,j)},st.useContext=function(A){return Z.H.useContext(A)},st.useDebugValue=function(){},st.useDeferredValue=function(A,j){return Z.H.useDeferredValue(A,j)},st.useEffect=function(A,j){return Z.H.useEffect(A,j)},st.useEffectEvent=function(A){return Z.H.useEffectEvent(A)},st.useId=function(){return Z.H.useId()},st.useImperativeHandle=function(A,j,q){return Z.H.useImperativeHandle(A,j,q)},st.useInsertionEffect=function(A,j){return Z.H.useInsertionEffect(A,j)},st.useLayoutEffect=function(A,j){return Z.H.useLayoutEffect(A,j)},st.useMemo=function(A,j){return Z.H.useMemo(A,j)},st.useOptimistic=function(A,j){return Z.H.useOptimistic(A,j)},st.useReducer=function(A,j,q){return Z.H.useReducer(A,j,q)},st.useRef=function(A){return Z.H.useRef(A)},st.useState=function(A){return Z.H.useState(A)},st.useSyncExternalStore=function(A,j,q){return Z.H.useSyncExternalStore(A,j,q)},st.useTransition=function(){return Z.H.useTransition()},st.version="19.2.4",st}var By;function ur(){return By||(By=1,Yc.exports=DT()),Yc.exports}var x=ur();const lt=AT(x),Hy=ET({__proto__:null,default:lt},[x]);var qc={exports:{}},Gl={},$c={exports:{}},Xc={};/**
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 jy;function CT(){return jy||(jy=1,(function(n){function a(_,X){var Q=_.length;_.push(X);t:for(;0<Q;){var it=Q-1>>>1,ot=_[it];if(0<o(ot,X))_[it]=X,_[Q]=ot,Q=it;else break t}}function s(_){return _.length===0?null:_[0]}function u(_){if(_.length===0)return null;var X=_[0],Q=_.pop();if(Q!==X){_[0]=Q;t:for(var it=0,ot=_.length,A=ot>>>1;it<A;){var j=2*(it+1)-1,q=_[j],F=j+1,at=_[F];if(0>o(q,Q))F<ot&&0>o(at,q)?(_[it]=at,_[F]=Q,it=F):(_[it]=q,_[j]=Q,it=j);else if(F<ot&&0>o(at,Q))_[it]=at,_[F]=Q,it=F;else break t}}return X}function o(_,X){var Q=_.sortIndex-X.sortIndex;return Q!==0?Q:_.id-X.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;n.unstable_now=function(){return d.now()}}else{var f=Date,h=f.now();n.unstable_now=function(){return f.now()-h}}var m=[],y=[],v=1,b=null,S=3,E=!1,D=!1,z=!1,V=!1,N=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;function $(_){for(var X=s(y);X!==null;){if(X.callback===null)u(y);else if(X.startTime<=_)u(y),X.sortIndex=X.expirationTime,a(m,X);else break;X=s(y)}}function K(_){if(z=!1,$(_),!D)if(s(m)!==null)D=!0,et||(et=!0,yt());else{var X=s(y);X!==null&&Vt(K,X.startTime-_)}}var et=!1,Z=-1,tt=5,bt=-1;function k(){return V?!0:!(n.unstable_now()-bt<tt)}function ct(){if(V=!1,et){var _=n.unstable_now();bt=_;var X=!0;try{t:{D=!1,z&&(z=!1,Y(Z),Z=-1),E=!0;var Q=S;try{e:{for($(_),b=s(m);b!==null&&!(b.expirationTime>_&&k());){var it=b.callback;if(typeof it=="function"){b.callback=null,S=b.priorityLevel;var ot=it(b.expirationTime<=_);if(_=n.unstable_now(),typeof ot=="function"){b.callback=ot,$(_),X=!0;break e}b===s(m)&&u(m),$(_)}else u(m);b=s(m)}if(b!==null)X=!0;else{var A=s(y);A!==null&&Vt(K,A.startTime-_),X=!1}}break t}finally{b=null,S=Q,E=!1}X=void 0}}finally{X?yt():et=!1}}}var yt;if(typeof B=="function")yt=function(){B(ct)};else if(typeof MessageChannel<"u"){var zt=new MessageChannel,Dt=zt.port2;zt.port1.onmessage=ct,yt=function(){Dt.postMessage(null)}}else yt=function(){N(ct,0)};function Vt(_,X){Z=N(function(){_(n.unstable_now())},X)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(_){_.callback=null},n.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):tt=0<_?Math.floor(1e3/_):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(_){switch(S){case 1:case 2:case 3:var X=3;break;default:X=S}var Q=S;S=X;try{return _()}finally{S=Q}},n.unstable_requestPaint=function(){V=!0},n.unstable_runWithPriority=function(_,X){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var Q=S;S=_;try{return X()}finally{S=Q}},n.unstable_scheduleCallback=function(_,X,Q){var it=n.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?it+Q:it):Q=it,_){case 1:var ot=-1;break;case 2:ot=250;break;case 5:ot=1073741823;break;case 4:ot=1e4;break;default:ot=5e3}return ot=Q+ot,_={id:v++,callback:X,priorityLevel:_,startTime:Q,expirationTime:ot,sortIndex:-1},Q>it?(_.sortIndex=Q,a(y,_),s(m)===null&&_===s(y)&&(z?(Y(Z),Z=-1):z=!0,Vt(K,Q-it))):(_.sortIndex=ot,a(m,_),D||E||(D=!0,et||(et=!0,yt()))),_},n.unstable_shouldYield=k,n.unstable_wrapCallback=function(_){var X=S;return function(){var Q=S;S=X;try{return _.apply(this,arguments)}finally{S=Q}}}})(Xc)),Xc}var Gy;function OT(){return Gy||(Gy=1,$c.exports=CT()),$c.exports}var Kc={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 Yy;function RT(){if(Yy)return re;Yy=1;var n=ur();function a(m){var y="https://react.dev/errors/"+m;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)y+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+m+"; visit "+y+" 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(a(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},o=Symbol.for("react.portal");function d(m,y,v){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:b==null?null:""+b,children:m,containerInfo:y,implementation:v}}var f=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,y){if(m==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return re.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,re.createPortal=function(m,y){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(a(299));return d(m,y,null,v)},re.flushSync=function(m){var y=f.T,v=u.p;try{if(f.T=null,u.p=2,m)return m()}finally{f.T=y,u.p=v,u.d.f()}},re.preconnect=function(m,y){typeof m=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,u.d.C(m,y))},re.prefetchDNS=function(m){typeof m=="string"&&u.d.D(m)},re.preinit=function(m,y){if(typeof m=="string"&&y&&typeof y.as=="string"){var v=y.as,b=h(v,y.crossOrigin),S=typeof y.integrity=="string"?y.integrity:void 0,E=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;v==="style"?u.d.S(m,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:b,integrity:S,fetchPriority:E}):v==="script"&&u.d.X(m,{crossOrigin:b,integrity:S,fetchPriority:E,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},re.preinitModule=function(m,y){if(typeof m=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var v=h(y.as,y.crossOrigin);u.d.M(m,{crossOrigin:v,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&u.d.M(m)},re.preload=function(m,y){if(typeof m=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var v=y.as,b=h(v,y.crossOrigin);u.d.L(m,v,{crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},re.preloadModule=function(m,y){if(typeof m=="string")if(y){var v=h(y.as,y.crossOrigin);u.d.m(m,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:v,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else u.d.m(m)},re.requestFormReset=function(m){u.d.r(m)},re.unstable_batchedUpdates=function(m,y){return m(y)},re.useFormState=function(m,y,v){return f.H.useFormState(m,y,v)},re.useFormStatus=function(){return f.H.useHostTransitionStatus()},re.version="19.2.4",re}var qy;function Eg(){if(qy)return Kc.exports;qy=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Kc.exports=RT(),Kc.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 $y;function wT(){if($y)return Gl;$y=1;var n=OT(),a=ur(),s=Eg();function u(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)e+="&args[]="+encodeURIComponent(arguments[i])}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 o(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function d(t){var e=t,i=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(i=e.return),t=e.return;while(t)}return e.tag===3?i:null}function f(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function h(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function m(t){if(d(t)!==t)throw Error(u(188))}function y(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(u(188));return e!==t?null:t}for(var i=t,l=e;;){var r=i.return;if(r===null)break;var c=r.alternate;if(c===null){if(l=r.return,l!==null){i=l;continue}break}if(r.child===c.child){for(c=r.child;c;){if(c===i)return m(r),t;if(c===l)return m(r),e;c=c.sibling}throw Error(u(188))}if(i.return!==l.return)i=r,l=c;else{for(var p=!1,g=r.child;g;){if(g===i){p=!0,i=r,l=c;break}if(g===l){p=!0,l=r,i=c;break}g=g.sibling}if(!p){for(g=c.child;g;){if(g===i){p=!0,i=c,l=r;break}if(g===l){p=!0,l=c,i=r;break}g=g.sibling}if(!p)throw Error(u(189))}}if(i.alternate!==l)throw Error(u(190))}if(i.tag!==3)throw Error(u(188));return i.stateNode.current===i?t:e}function v(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=v(t),e!==null)return e;t=t.sibling}return null}var b=Object.assign,S=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),D=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),B=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),et=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),tt=Symbol.for("react.lazy"),bt=Symbol.for("react.activity"),k=Symbol.for("react.memo_cache_sentinel"),ct=Symbol.iterator;function yt(t){return t===null||typeof t!="object"?null:(t=ct&&t[ct]||t["@@iterator"],typeof t=="function"?t:null)}var zt=Symbol.for("react.client.reference");function Dt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===zt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case z:return"Fragment";case N:return"Profiler";case V:return"StrictMode";case K:return"Suspense";case et:return"SuspenseList";case bt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case D:return"Portal";case B:return t.displayName||"Context";case Y:return(t._context.displayName||"Context")+".Consumer";case $:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Z:return e=t.displayName||null,e!==null?e:Dt(t.type)||"Memo";case tt:e=t._payload,t=t._init;try{return Dt(t(e))}catch{}}return null}var Vt=Array.isArray,_=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},it=[],ot=-1;function A(t){return{current:t}}function j(t){0>ot||(t.current=it[ot],it[ot]=null,ot--)}function q(t,e){ot++,it[ot]=t.current,t.current=e}var F=A(null),at=A(null),ft=A(null),gt=A(null);function Xt(t,e){switch(q(ft,e),q(at,t),q(F,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?iy(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=iy(e),t=ay(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}j(F),q(F,t)}function Lt(){j(F),j(at),j(ft)}function Qa(t){t.memoizedState!==null&&q(gt,t);var e=F.current,i=ay(e,t.type);e!==i&&(q(at,t),q(F,i))}function ds(t){at.current===t&&(j(F),j(at)),gt.current===t&&(j(gt),Nl._currentValue=Q)}var Tr,Ld;function pi(t){if(Tr===void 0)try{throw Error()}catch(i){var e=i.stack.trim().match(/\n( *(at )?)/);Tr=e&&e[1]||"",Ld=-1<i.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Tr+t+Ld}var Er=!1;function Ar(t,e){if(!t||Er)return"";Er=!0;var i=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(L){var w=L}Reflect.construct(t,[],G)}else{try{G.call()}catch(L){w=L}t.call(G.prototype)}}else{try{throw Error()}catch(L){w=L}(G=t())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(L){if(L&&w&&typeof L.stack=="string")return[L.stack,w.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 c=l.DetermineComponentFrameRoot(),p=c[0],g=c[1];if(p&&g){var T=p.split(`
44
+ `),R=g.split(`
45
+ `);for(r=l=0;l<T.length&&!T[l].includes("DetermineComponentFrameRoot");)l++;for(;r<R.length&&!R[r].includes("DetermineComponentFrameRoot");)r++;if(l===T.length||r===R.length)for(l=T.length-1,r=R.length-1;1<=l&&0<=r&&T[l]!==R[r];)r--;for(;1<=l&&0<=r;l--,r--)if(T[l]!==R[r]){if(l!==1||r!==1)do if(l--,r--,0>r||T[l]!==R[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{Er=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?pi(i):""}function I1(t,e){switch(t.tag){case 26:case 27:case 5:return pi(t.type);case 16:return pi("Lazy");case 13:return t.child!==e&&e!==null?pi("Suspense Fallback"):pi("Suspense");case 19:return pi("SuspenseList");case 0:case 15:return Ar(t.type,!1);case 11:return Ar(t.type.render,!1);case 1:return Ar(t.type,!0);case 31:return pi("Activity");default:return""}}function _d(t){try{var e="",i=null;do e+=I1(t,i),i=t,t=t.return;while(t);return e}catch(l){return`
47
+ Error generating stack: `+l.message+`
48
+ `+l.stack}}var Mr=Object.prototype.hasOwnProperty,xr=n.unstable_scheduleCallback,Dr=n.unstable_cancelCallback,tb=n.unstable_shouldYield,eb=n.unstable_requestPaint,Ee=n.unstable_now,nb=n.unstable_getCurrentPriorityLevel,Nd=n.unstable_ImmediatePriority,Ud=n.unstable_UserBlockingPriority,hs=n.unstable_NormalPriority,ib=n.unstable_LowPriority,Bd=n.unstable_IdlePriority,ab=n.log,lb=n.unstable_setDisableYieldValue,Za=null,Ae=null;function Ln(t){if(typeof ab=="function"&&lb(t),Ae&&typeof Ae.setStrictMode=="function")try{Ae.setStrictMode(Za,t)}catch{}}var Me=Math.clz32?Math.clz32:rb,sb=Math.log,ub=Math.LN2;function rb(t){return t>>>=0,t===0?32:31-(sb(t)/ub|0)|0}var ms=256,ps=262144,ys=4194304;function yi(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 vs(t,e,i){var l=t.pendingLanes;if(l===0)return 0;var r=0,c=t.suspendedLanes,p=t.pingedLanes;t=t.warmLanes;var g=l&134217727;return g!==0?(l=g&~c,l!==0?r=yi(l):(p&=g,p!==0?r=yi(p):i||(i=g&~t,i!==0&&(r=yi(i))))):(g=l&~c,g!==0?r=yi(g):p!==0?r=yi(p):i||(i=l&~t,i!==0&&(r=yi(i)))),r===0?0:e!==0&&e!==r&&(e&c)===0&&(c=r&-r,i=e&-e,c>=i||c===32&&(i&4194048)!==0)?e:r}function Fa(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function ob(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 Hd(){var t=ys;return ys<<=1,(ys&62914560)===0&&(ys=4194304),t}function Cr(t){for(var e=[],i=0;31>i;i++)e.push(t);return e}function ka(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function cb(t,e,i,l,r,c){var p=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var g=t.entanglements,T=t.expirationTimes,R=t.hiddenUpdates;for(i=p&~i;0<i;){var U=31-Me(i),G=1<<U;g[U]=0,T[U]=-1;var w=R[U];if(w!==null)for(R[U]=null,U=0;U<w.length;U++){var L=w[U];L!==null&&(L.lane&=-536870913)}i&=~G}l!==0&&jd(t,l,0),c!==0&&r===0&&t.tag!==0&&(t.suspendedLanes|=c&~(p&~e))}function jd(t,e,i){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-Me(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|i&261930}function Gd(t,e){var i=t.entangledLanes|=e;for(t=t.entanglements;i;){var l=31-Me(i),r=1<<l;r&e|t[l]&e&&(t[l]|=e),i&=~r}}function Yd(t,e){var i=e&-e;return i=(i&42)!==0?1:Or(i),(i&(t.suspendedLanes|e))!==0?0:i}function Or(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 Rr(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function qd(){var t=X.p;return t!==0?t:(t=window.event,t===void 0?32:Cy(t.type))}function $d(t,e){var i=X.p;try{return X.p=t,e()}finally{X.p=i}}var _n=Math.random().toString(36).slice(2),te="__reactFiber$"+_n,he="__reactProps$"+_n,ki="__reactContainer$"+_n,wr="__reactEvents$"+_n,fb="__reactListeners$"+_n,db="__reactHandles$"+_n,Xd="__reactResources$"+_n,Pa="__reactMarker$"+_n;function zr(t){delete t[te],delete t[he],delete t[wr],delete t[fb],delete t[db]}function Pi(t){var e=t[te];if(e)return e;for(var i=t.parentNode;i;){if(e=i[ki]||i[te]){if(i=e.alternate,e.child!==null||i!==null&&i.child!==null)for(t=fy(t);t!==null;){if(i=t[te])return i;t=fy(t)}return e}t=i,i=t.parentNode}return null}function Ji(t){if(t=t[te]||t[ki]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Ja(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(u(33))}function Wi(t){var e=t[Xd];return e||(e=t[Xd]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Wt(t){t[Pa]=!0}var Kd=new Set,Qd={};function vi(t,e){Ii(t,e),Ii(t+"Capture",e)}function Ii(t,e){for(Qd[t]=e,t=0;t<e.length;t++)Kd.add(e[t])}var hb=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]*$"),Zd={},Fd={};function mb(t){return Mr.call(Fd,t)?!0:Mr.call(Zd,t)?!1:hb.test(t)?Fd[t]=!0:(Zd[t]=!0,!1)}function gs(t,e,i){if(mb(e))if(i===null)t.removeAttribute(e);else{switch(typeof i){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,""+i)}}function bs(t,e,i){if(i===null)t.removeAttribute(e);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+i)}}function fn(t,e,i,l){if(l===null)t.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttributeNS(e,i,""+l)}}function Le(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function kd(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function pb(t,e,i){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,c=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(p){i=""+p,c.call(this,p)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return i},setValue:function(p){i=""+p},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Vr(t){if(!t._valueTracker){var e=kd(t)?"checked":"value";t._valueTracker=pb(t,e,""+t[e])}}function Pd(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var i=e.getValue(),l="";return t&&(l=kd(t)?t.checked?"true":"false":t.value),t=l,t!==i?(e.setValue(t),!0):!1}function Ss(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 yb=/[\n"\\]/g;function _e(t){return t.replace(yb,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Lr(t,e,i,l,r,c,p,g){t.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?t.type=p:t.removeAttribute("type"),e!=null?p==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Le(e)):t.value!==""+Le(e)&&(t.value=""+Le(e)):p!=="submit"&&p!=="reset"||t.removeAttribute("value"),e!=null?_r(t,p,Le(e)):i!=null?_r(t,p,Le(i)):l!=null&&t.removeAttribute("value"),r==null&&c!=null&&(t.defaultChecked=!!c),r!=null&&(t.checked=r&&typeof r!="function"&&typeof r!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?t.name=""+Le(g):t.removeAttribute("name")}function Jd(t,e,i,l,r,c,p,g){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(t.type=c),e!=null||i!=null){if(!(c!=="submit"&&c!=="reset"||e!=null)){Vr(t);return}i=i!=null?""+Le(i):"",e=e!=null?""+Le(e):i,g||e===t.value||(t.value=e),t.defaultValue=e}l=l??r,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=g?t.checked:!!l,t.defaultChecked=!!l,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(t.name=p),Vr(t)}function _r(t,e,i){e==="number"&&Ss(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function ta(t,e,i,l){if(t=t.options,e){e={};for(var r=0;r<i.length;r++)e["$"+i[r]]=!0;for(i=0;i<t.length;i++)r=e.hasOwnProperty("$"+t[i].value),t[i].selected!==r&&(t[i].selected=r),r&&l&&(t[i].defaultSelected=!0)}else{for(i=""+Le(i),e=null,r=0;r<t.length;r++){if(t[r].value===i){t[r].selected=!0,l&&(t[r].defaultSelected=!0);return}e!==null||t[r].disabled||(e=t[r])}e!==null&&(e.selected=!0)}}function Wd(t,e,i){if(e!=null&&(e=""+Le(e),e!==t.value&&(t.value=e),i==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=i!=null?""+Le(i):""}function Id(t,e,i,l){if(e==null){if(l!=null){if(i!=null)throw Error(u(92));if(Vt(l)){if(1<l.length)throw Error(u(93));l=l[0]}i=l}i==null&&(i=""),e=i}i=Le(e),t.defaultValue=i,l=t.textContent,l===i&&l!==""&&l!==null&&(t.value=l),Vr(t)}function ea(t,e){if(e){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=e;return}}t.textContent=e}var vb=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 th(t,e,i){var l=e.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,i):typeof i!="number"||i===0||vb.has(e)?e==="float"?t.cssFloat=i:t[e]=(""+i).trim():t[e]=i+"px"}function eh(t,e,i){if(e!=null&&typeof e!="object")throw Error(u(62));if(t=t.style,i!=null){for(var l in i)!i.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)&&i[r]!==l&&th(t,r,l)}else for(var c in e)e.hasOwnProperty(c)&&th(t,c,e[c])}function Nr(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 gb=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"]]),bb=/^[\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 Ts(t){return bb.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function dn(){}var Ur=null;function Br(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var na=null,ia=null;function nh(t){var e=Ji(t);if(e&&(t=e.stateNode)){var i=t[he]||null;t:switch(t=e.stateNode,e.type){case"input":if(Lr(t,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),e=i.name,i.type==="radio"&&e!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+_e(""+e)+'"][type="radio"]'),e=0;e<i.length;e++){var l=i[e];if(l!==t&&l.form===t.form){var r=l[he]||null;if(!r)throw Error(u(90));Lr(l,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(e=0;e<i.length;e++)l=i[e],l.form===t.form&&Pd(l)}break t;case"textarea":Wd(t,i.value,i.defaultValue);break t;case"select":e=i.value,e!=null&&ta(t,!!i.multiple,e,!1)}}}var Hr=!1;function ih(t,e,i){if(Hr)return t(e,i);Hr=!0;try{var l=t(e);return l}finally{if(Hr=!1,(na!==null||ia!==null)&&(ru(),na&&(e=na,t=ia,ia=na=null,nh(e),t)))for(e=0;e<t.length;e++)nh(t[e])}}function Wa(t,e){var i=t.stateNode;if(i===null)return null;var l=i[he]||null;if(l===null)return null;i=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(i&&typeof i!="function")throw Error(u(231,e,typeof i));return i}var hn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),jr=!1;if(hn)try{var Ia={};Object.defineProperty(Ia,"passive",{get:function(){jr=!0}}),window.addEventListener("test",Ia,Ia),window.removeEventListener("test",Ia,Ia)}catch{jr=!1}var Nn=null,Gr=null,Es=null;function ah(){if(Es)return Es;var t,e=Gr,i=e.length,l,r="value"in Nn?Nn.value:Nn.textContent,c=r.length;for(t=0;t<i&&e[t]===r[t];t++);var p=i-t;for(l=1;l<=p&&e[i-l]===r[c-l];l++);return Es=r.slice(t,1<l?1-l:void 0)}function As(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 Ms(){return!0}function lh(){return!1}function me(t){function e(i,l,r,c,p){this._reactName=i,this._targetInst=r,this.type=l,this.nativeEvent=c,this.target=p,this.currentTarget=null;for(var g in t)t.hasOwnProperty(g)&&(i=t[g],this[g]=i?i(c):c[g]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Ms:lh,this.isPropagationStopped=lh,this}return b(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Ms)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Ms)},persist:function(){},isPersistent:Ms}),e}var gi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xs=me(gi),tl=b({},gi,{view:0,detail:0}),Sb=me(tl),Yr,qr,el,Ds=b({},tl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xr,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!==el&&(el&&t.type==="mousemove"?(Yr=t.screenX-el.screenX,qr=t.screenY-el.screenY):qr=Yr=0,el=t),Yr)},movementY:function(t){return"movementY"in t?t.movementY:qr}}),sh=me(Ds),Tb=b({},Ds,{dataTransfer:0}),Eb=me(Tb),Ab=b({},tl,{relatedTarget:0}),$r=me(Ab),Mb=b({},gi,{animationName:0,elapsedTime:0,pseudoElement:0}),xb=me(Mb),Db=b({},gi,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Cb=me(Db),Ob=b({},gi,{data:0}),uh=me(Ob),Rb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wb={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"},zb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Vb(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=zb[t])?!!e[t]:!1}function Xr(){return Vb}var Lb=b({},tl,{key:function(t){if(t.key){var e=Rb[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=As(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?wb[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xr,charCode:function(t){return t.type==="keypress"?As(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?As(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),_b=me(Lb),Nb=b({},Ds,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),rh=me(Nb),Ub=b({},tl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xr}),Bb=me(Ub),Hb=b({},gi,{propertyName:0,elapsedTime:0,pseudoElement:0}),jb=me(Hb),Gb=b({},Ds,{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}),Yb=me(Gb),qb=b({},gi,{newState:0,oldState:0}),$b=me(qb),Xb=[9,13,27,32],Kr=hn&&"CompositionEvent"in window,nl=null;hn&&"documentMode"in document&&(nl=document.documentMode);var Kb=hn&&"TextEvent"in window&&!nl,oh=hn&&(!Kr||nl&&8<nl&&11>=nl),ch=" ",fh=!1;function dh(t,e){switch(t){case"keyup":return Xb.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hh(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var aa=!1;function Qb(t,e){switch(t){case"compositionend":return hh(e);case"keypress":return e.which!==32?null:(fh=!0,ch);case"textInput":return t=e.data,t===ch&&fh?null:t;default:return null}}function Zb(t,e){if(aa)return t==="compositionend"||!Kr&&dh(t,e)?(t=ah(),Es=Gr=Nn=null,aa=!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 oh&&e.locale!=="ko"?null:e.data;default:return null}}var Fb={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 mh(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Fb[t.type]:e==="textarea"}function ph(t,e,i,l){na?ia?ia.push(l):ia=[l]:na=l,e=pu(e,"onChange"),0<e.length&&(i=new xs("onChange","change",null,i,l),t.push({event:i,listeners:e}))}var il=null,al=null;function kb(t){Jp(t,0)}function Cs(t){var e=Ja(t);if(Pd(e))return t}function yh(t,e){if(t==="change")return e}var vh=!1;if(hn){var Qr;if(hn){var Zr="oninput"in document;if(!Zr){var gh=document.createElement("div");gh.setAttribute("oninput","return;"),Zr=typeof gh.oninput=="function"}Qr=Zr}else Qr=!1;vh=Qr&&(!document.documentMode||9<document.documentMode)}function bh(){il&&(il.detachEvent("onpropertychange",Sh),al=il=null)}function Sh(t){if(t.propertyName==="value"&&Cs(al)){var e=[];ph(e,al,t,Br(t)),ih(kb,e)}}function Pb(t,e,i){t==="focusin"?(bh(),il=e,al=i,il.attachEvent("onpropertychange",Sh)):t==="focusout"&&bh()}function Jb(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Cs(al)}function Wb(t,e){if(t==="click")return Cs(e)}function Ib(t,e){if(t==="input"||t==="change")return Cs(e)}function tS(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var xe=typeof Object.is=="function"?Object.is:tS;function ll(t,e){if(xe(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var i=Object.keys(t),l=Object.keys(e);if(i.length!==l.length)return!1;for(l=0;l<i.length;l++){var r=i[l];if(!Mr.call(e,r)||!xe(t[r],e[r]))return!1}return!0}function Th(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Eh(t,e){var i=Th(t);t=0;for(var l;i;){if(i.nodeType===3){if(l=t+i.textContent.length,t<=e&&l>=e)return{node:i,offset:e-t};t=l}t:{for(;i;){if(i.nextSibling){i=i.nextSibling;break t}i=i.parentNode}i=void 0}i=Th(i)}}function Ah(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Ah(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Mh(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Ss(t.document);e instanceof t.HTMLIFrameElement;){try{var i=typeof e.contentWindow.location.href=="string"}catch{i=!1}if(i)t=e.contentWindow;else break;e=Ss(t.document)}return e}function Fr(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 eS=hn&&"documentMode"in document&&11>=document.documentMode,la=null,kr=null,sl=null,Pr=!1;function xh(t,e,i){var l=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Pr||la==null||la!==Ss(l)||(l=la,"selectionStart"in l&&Fr(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}),sl&&ll(sl,l)||(sl=l,l=pu(kr,"onSelect"),0<l.length&&(e=new xs("onSelect","select",null,e,i),t.push({event:e,listeners:l}),e.target=la)))}function bi(t,e){var i={};return i[t.toLowerCase()]=e.toLowerCase(),i["Webkit"+t]="webkit"+e,i["Moz"+t]="moz"+e,i}var sa={animationend:bi("Animation","AnimationEnd"),animationiteration:bi("Animation","AnimationIteration"),animationstart:bi("Animation","AnimationStart"),transitionrun:bi("Transition","TransitionRun"),transitionstart:bi("Transition","TransitionStart"),transitioncancel:bi("Transition","TransitionCancel"),transitionend:bi("Transition","TransitionEnd")},Jr={},Dh={};hn&&(Dh=document.createElement("div").style,"AnimationEvent"in window||(delete sa.animationend.animation,delete sa.animationiteration.animation,delete sa.animationstart.animation),"TransitionEvent"in window||delete sa.transitionend.transition);function Si(t){if(Jr[t])return Jr[t];if(!sa[t])return t;var e=sa[t],i;for(i in e)if(e.hasOwnProperty(i)&&i in Dh)return Jr[t]=e[i];return t}var Ch=Si("animationend"),Oh=Si("animationiteration"),Rh=Si("animationstart"),nS=Si("transitionrun"),iS=Si("transitionstart"),aS=Si("transitioncancel"),wh=Si("transitionend"),zh=new Map,Wr="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(" ");Wr.push("scrollEnd");function Qe(t,e){zh.set(t,e),vi(e,[t])}var Os=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)},Ne=[],ua=0,Ir=0;function Rs(){for(var t=ua,e=Ir=ua=0;e<t;){var i=Ne[e];Ne[e++]=null;var l=Ne[e];Ne[e++]=null;var r=Ne[e];Ne[e++]=null;var c=Ne[e];if(Ne[e++]=null,l!==null&&r!==null){var p=l.pending;p===null?r.next=r:(r.next=p.next,p.next=r),l.pending=r}c!==0&&Vh(i,r,c)}}function ws(t,e,i,l){Ne[ua++]=t,Ne[ua++]=e,Ne[ua++]=i,Ne[ua++]=l,Ir|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function to(t,e,i,l){return ws(t,e,i,l),zs(t)}function Ti(t,e){return ws(t,null,null,e),zs(t)}function Vh(t,e,i){t.lanes|=i;var l=t.alternate;l!==null&&(l.lanes|=i);for(var r=!1,c=t.return;c!==null;)c.childLanes|=i,l=c.alternate,l!==null&&(l.childLanes|=i),c.tag===22&&(t=c.stateNode,t===null||t._visibility&1||(r=!0)),t=c,c=c.return;return t.tag===3?(c=t.stateNode,r&&e!==null&&(r=31-Me(i),t=c.hiddenUpdates,l=t[r],l===null?t[r]=[e]:l.push(e),e.lane=i|536870912),c):null}function zs(t){if(50<Ol)throw Ol=0,cc=null,Error(u(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var ra={};function lS(t,e,i,l){this.tag=t,this.key=i,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 De(t,e,i,l){return new lS(t,e,i,l)}function eo(t){return t=t.prototype,!(!t||!t.isReactComponent)}function mn(t,e){var i=t.alternate;return i===null?(i=De(t.tag,e,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=e,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&65011712,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,e=t.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i.refCleanup=t.refCleanup,i}function Lh(t,e){t.flags&=65011714;var i=t.alternate;return i===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=i.childLanes,t.lanes=i.lanes,t.child=i.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=i.memoizedProps,t.memoizedState=i.memoizedState,t.updateQueue=i.updateQueue,t.type=i.type,e=i.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Vs(t,e,i,l,r,c){var p=0;if(l=t,typeof t=="function")eo(t)&&(p=1);else if(typeof t=="string")p=cT(t,i,F.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case bt:return t=De(31,i,e,r),t.elementType=bt,t.lanes=c,t;case z:return Ei(i.children,r,c,e);case V:p=8,r|=24;break;case N:return t=De(12,i,e,r|2),t.elementType=N,t.lanes=c,t;case K:return t=De(13,i,e,r),t.elementType=K,t.lanes=c,t;case et:return t=De(19,i,e,r),t.elementType=et,t.lanes=c,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case B:p=10;break t;case Y:p=9;break t;case $:p=11;break t;case Z:p=14;break t;case tt:p=16,l=null;break t}p=29,i=Error(u(130,t===null?"null":typeof t,"")),l=null}return e=De(p,i,e,r),e.elementType=t,e.type=l,e.lanes=c,e}function Ei(t,e,i,l){return t=De(7,t,l,e),t.lanes=i,t}function no(t,e,i){return t=De(6,t,null,e),t.lanes=i,t}function _h(t){var e=De(18,null,null,0);return e.stateNode=t,e}function io(t,e,i){return e=De(4,t.children!==null?t.children:[],t.key,e),e.lanes=i,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Nh=new WeakMap;function Ue(t,e){if(typeof t=="object"&&t!==null){var i=Nh.get(t);return i!==void 0?i:(e={value:t,source:e,stack:_d(e)},Nh.set(t,e),e)}return{value:t,source:e,stack:_d(e)}}var oa=[],ca=0,Ls=null,ul=0,Be=[],He=0,Un=null,Ie=1,tn="";function pn(t,e){oa[ca++]=ul,oa[ca++]=Ls,Ls=t,ul=e}function Uh(t,e,i){Be[He++]=Ie,Be[He++]=tn,Be[He++]=Un,Un=t;var l=Ie;t=tn;var r=32-Me(l)-1;l&=~(1<<r),i+=1;var c=32-Me(e)+r;if(30<c){var p=r-r%5;c=(l&(1<<p)-1).toString(32),l>>=p,r-=p,Ie=1<<32-Me(e)+r|i<<r|l,tn=c+t}else Ie=1<<c|i<<r|l,tn=t}function ao(t){t.return!==null&&(pn(t,1),Uh(t,1,0))}function lo(t){for(;t===Ls;)Ls=oa[--ca],oa[ca]=null,ul=oa[--ca],oa[ca]=null;for(;t===Un;)Un=Be[--He],Be[He]=null,tn=Be[--He],Be[He]=null,Ie=Be[--He],Be[He]=null}function Bh(t,e){Be[He++]=Ie,Be[He++]=tn,Be[He++]=Un,Ie=e.id,tn=e.overflow,Un=t}var ee=null,Nt=null,vt=!1,Bn=null,je=!1,so=Error(u(519));function Hn(t){var e=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw rl(Ue(e,t)),so}function Hh(t){var e=t.stateNode,i=t.type,l=t.memoizedProps;switch(e[te]=t,e[he]=l,i){case"dialog":ht("cancel",e),ht("close",e);break;case"iframe":case"object":case"embed":ht("load",e);break;case"video":case"audio":for(i=0;i<wl.length;i++)ht(wl[i],e);break;case"source":ht("error",e);break;case"img":case"image":case"link":ht("error",e),ht("load",e);break;case"details":ht("toggle",e);break;case"input":ht("invalid",e),Jd(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":ht("invalid",e);break;case"textarea":ht("invalid",e),Id(e,l.value,l.defaultValue,l.children)}i=l.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||e.textContent===""+i||l.suppressHydrationWarning===!0||ey(e.textContent,i)?(l.popover!=null&&(ht("beforetoggle",e),ht("toggle",e)),l.onScroll!=null&&ht("scroll",e),l.onScrollEnd!=null&&ht("scrollend",e),l.onClick!=null&&(e.onclick=dn),e=!0):e=!1,e||Hn(t,!0)}function jh(t){for(ee=t.return;ee;)switch(ee.tag){case 5:case 31:case 13:je=!1;return;case 27:case 3:je=!0;return;default:ee=ee.return}}function fa(t){if(t!==ee)return!1;if(!vt)return jh(t),vt=!0,!1;var e=t.tag,i;if((i=e!==3&&e!==27)&&((i=e===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||xc(t.type,t.memoizedProps)),i=!i),i&&Nt&&Hn(t),jh(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));Nt=cy(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));Nt=cy(t)}else e===27?(e=Nt,Wn(t.type)?(t=wc,wc=null,Nt=t):Nt=e):Nt=ee?Ye(t.stateNode.nextSibling):null;return!0}function Ai(){Nt=ee=null,vt=!1}function uo(){var t=Bn;return t!==null&&(ge===null?ge=t:ge.push.apply(ge,t),Bn=null),t}function rl(t){Bn===null?Bn=[t]:Bn.push(t)}var ro=A(null),Mi=null,yn=null;function jn(t,e,i){q(ro,e._currentValue),e._currentValue=i}function vn(t){t._currentValue=ro.current,j(ro)}function oo(t,e,i){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===i)break;t=t.return}}function co(t,e,i,l){var r=t.child;for(r!==null&&(r.return=t);r!==null;){var c=r.dependencies;if(c!==null){var p=r.child;c=c.firstContext;t:for(;c!==null;){var g=c;c=r;for(var T=0;T<e.length;T++)if(g.context===e[T]){c.lanes|=i,g=c.alternate,g!==null&&(g.lanes|=i),oo(c.return,i,t),l||(p=null);break t}c=g.next}}else if(r.tag===18){if(p=r.return,p===null)throw Error(u(341));p.lanes|=i,c=p.alternate,c!==null&&(c.lanes|=i),oo(p,i,t),p=null}else p=r.child;if(p!==null)p.return=r;else for(p=r;p!==null;){if(p===t){p=null;break}if(r=p.sibling,r!==null){r.return=p.return,p=r;break}p=p.return}r=p}}function da(t,e,i,l){t=null;for(var r=e,c=!1;r!==null;){if(!c){if((r.flags&524288)!==0)c=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var p=r.alternate;if(p===null)throw Error(u(387));if(p=p.memoizedProps,p!==null){var g=r.type;xe(r.pendingProps.value,p.value)||(t!==null?t.push(g):t=[g])}}else if(r===gt.current){if(p=r.alternate,p===null)throw Error(u(387));p.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(t!==null?t.push(Nl):t=[Nl])}r=r.return}t!==null&&co(e,t,i,l),e.flags|=262144}function _s(t){for(t=t.firstContext;t!==null;){if(!xe(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function xi(t){Mi=t,yn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ne(t){return Gh(Mi,t)}function Ns(t,e){return Mi===null&&xi(t),Gh(t,e)}function Gh(t,e){var i=e._currentValue;if(e={context:e,memoizedValue:i,next:null},yn===null){if(t===null)throw Error(u(308));yn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else yn=yn.next=e;return i}var sS=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(i,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(i){return i()})}},uS=n.unstable_scheduleCallback,rS=n.unstable_NormalPriority,Kt={$$typeof:B,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function fo(){return{controller:new sS,data:new Map,refCount:0}}function ol(t){t.refCount--,t.refCount===0&&uS(rS,function(){t.controller.abort()})}var cl=null,ho=0,ha=0,ma=null;function oS(t,e){if(cl===null){var i=cl=[];ho=0,ha=yc(),ma={status:"pending",value:void 0,then:function(l){i.push(l)}}}return ho++,e.then(Yh,Yh),e}function Yh(){if(--ho===0&&cl!==null){ma!==null&&(ma.status="fulfilled");var t=cl;cl=null,ha=0,ma=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function cS(t,e){var i=[],l={status:"pending",value:null,reason:null,then:function(r){i.push(r)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var r=0;r<i.length;r++)(0,i[r])(e)},function(r){for(l.status="rejected",l.reason=r,r=0;r<i.length;r++)(0,i[r])(void 0)}),l}var qh=_.S;_.S=function(t,e){xp=Ee(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&oS(t,e),qh!==null&&qh(t,e)};var Di=A(null);function mo(){var t=Di.current;return t!==null?t:_t.pooledCache}function Us(t,e){e===null?q(Di,Di.current):q(Di,e.pool)}function $h(){var t=mo();return t===null?null:{parent:Kt._currentValue,pool:t}}var pa=Error(u(460)),po=Error(u(474)),Bs=Error(u(542)),Hs={then:function(){}};function Xh(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Kh(t,e,i){switch(i=t[i],i===void 0?t.push(e):i!==e&&(e.then(dn,dn),e=i),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Zh(t),t;default:if(typeof e.status=="string")e.then(dn,dn);else{if(t=_t,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,Zh(t),t}throw Oi=e,pa}}function Ci(t){try{var e=t._init;return e(t._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Oi=i,pa):i}}var Oi=null;function Qh(){if(Oi===null)throw Error(u(459));var t=Oi;return Oi=null,t}function Zh(t){if(t===pa||t===Bs)throw Error(u(483))}var ya=null,fl=0;function js(t){var e=fl;return fl+=1,ya===null&&(ya=[]),Kh(ya,t,e)}function dl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Gs(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 Fh(t){function e(C,M){if(t){var O=C.deletions;O===null?(C.deletions=[M],C.flags|=16):O.push(M)}}function i(C,M){if(!t)return null;for(;M!==null;)e(C,M),M=M.sibling;return null}function l(C){for(var M=new Map;C!==null;)C.key!==null?M.set(C.key,C):M.set(C.index,C),C=C.sibling;return M}function r(C,M){return C=mn(C,M),C.index=0,C.sibling=null,C}function c(C,M,O){return C.index=O,t?(O=C.alternate,O!==null?(O=O.index,O<M?(C.flags|=67108866,M):O):(C.flags|=67108866,M)):(C.flags|=1048576,M)}function p(C){return t&&C.alternate===null&&(C.flags|=67108866),C}function g(C,M,O,H){return M===null||M.tag!==6?(M=no(O,C.mode,H),M.return=C,M):(M=r(M,O),M.return=C,M)}function T(C,M,O,H){var I=O.type;return I===z?U(C,M,O.props.children,H,O.key):M!==null&&(M.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===tt&&Ci(I)===M.type)?(M=r(M,O.props),dl(M,O),M.return=C,M):(M=Vs(O.type,O.key,O.props,null,C.mode,H),dl(M,O),M.return=C,M)}function R(C,M,O,H){return M===null||M.tag!==4||M.stateNode.containerInfo!==O.containerInfo||M.stateNode.implementation!==O.implementation?(M=io(O,C.mode,H),M.return=C,M):(M=r(M,O.children||[]),M.return=C,M)}function U(C,M,O,H,I){return M===null||M.tag!==7?(M=Ei(O,C.mode,H,I),M.return=C,M):(M=r(M,O),M.return=C,M)}function G(C,M,O){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=no(""+M,C.mode,O),M.return=C,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case E:return O=Vs(M.type,M.key,M.props,null,C.mode,O),dl(O,M),O.return=C,O;case D:return M=io(M,C.mode,O),M.return=C,M;case tt:return M=Ci(M),G(C,M,O)}if(Vt(M)||yt(M))return M=Ei(M,C.mode,O,null),M.return=C,M;if(typeof M.then=="function")return G(C,js(M),O);if(M.$$typeof===B)return G(C,Ns(C,M),O);Gs(C,M)}return null}function w(C,M,O,H){var I=M!==null?M.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return I!==null?null:g(C,M,""+O,H);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case E:return O.key===I?T(C,M,O,H):null;case D:return O.key===I?R(C,M,O,H):null;case tt:return O=Ci(O),w(C,M,O,H)}if(Vt(O)||yt(O))return I!==null?null:U(C,M,O,H,null);if(typeof O.then=="function")return w(C,M,js(O),H);if(O.$$typeof===B)return w(C,M,Ns(C,O),H);Gs(C,O)}return null}function L(C,M,O,H,I){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return C=C.get(O)||null,g(M,C,""+H,I);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case E:return C=C.get(H.key===null?O:H.key)||null,T(M,C,H,I);case D:return C=C.get(H.key===null?O:H.key)||null,R(M,C,H,I);case tt:return H=Ci(H),L(C,M,O,H,I)}if(Vt(H)||yt(H))return C=C.get(O)||null,U(M,C,H,I,null);if(typeof H.then=="function")return L(C,M,O,js(H),I);if(H.$$typeof===B)return L(C,M,O,Ns(M,H),I);Gs(M,H)}return null}function P(C,M,O,H){for(var I=null,St=null,W=M,rt=M=0,pt=null;W!==null&&rt<O.length;rt++){W.index>rt?(pt=W,W=null):pt=W.sibling;var Tt=w(C,W,O[rt],H);if(Tt===null){W===null&&(W=pt);break}t&&W&&Tt.alternate===null&&e(C,W),M=c(Tt,M,rt),St===null?I=Tt:St.sibling=Tt,St=Tt,W=pt}if(rt===O.length)return i(C,W),vt&&pn(C,rt),I;if(W===null){for(;rt<O.length;rt++)W=G(C,O[rt],H),W!==null&&(M=c(W,M,rt),St===null?I=W:St.sibling=W,St=W);return vt&&pn(C,rt),I}for(W=l(W);rt<O.length;rt++)pt=L(W,C,rt,O[rt],H),pt!==null&&(t&&pt.alternate!==null&&W.delete(pt.key===null?rt:pt.key),M=c(pt,M,rt),St===null?I=pt:St.sibling=pt,St=pt);return t&&W.forEach(function(ii){return e(C,ii)}),vt&&pn(C,rt),I}function nt(C,M,O,H){if(O==null)throw Error(u(151));for(var I=null,St=null,W=M,rt=M=0,pt=null,Tt=O.next();W!==null&&!Tt.done;rt++,Tt=O.next()){W.index>rt?(pt=W,W=null):pt=W.sibling;var ii=w(C,W,Tt.value,H);if(ii===null){W===null&&(W=pt);break}t&&W&&ii.alternate===null&&e(C,W),M=c(ii,M,rt),St===null?I=ii:St.sibling=ii,St=ii,W=pt}if(Tt.done)return i(C,W),vt&&pn(C,rt),I;if(W===null){for(;!Tt.done;rt++,Tt=O.next())Tt=G(C,Tt.value,H),Tt!==null&&(M=c(Tt,M,rt),St===null?I=Tt:St.sibling=Tt,St=Tt);return vt&&pn(C,rt),I}for(W=l(W);!Tt.done;rt++,Tt=O.next())Tt=L(W,C,rt,Tt.value,H),Tt!==null&&(t&&Tt.alternate!==null&&W.delete(Tt.key===null?rt:Tt.key),M=c(Tt,M,rt),St===null?I=Tt:St.sibling=Tt,St=Tt);return t&&W.forEach(function(TT){return e(C,TT)}),vt&&pn(C,rt),I}function Rt(C,M,O,H){if(typeof O=="object"&&O!==null&&O.type===z&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case E:t:{for(var I=O.key;M!==null;){if(M.key===I){if(I=O.type,I===z){if(M.tag===7){i(C,M.sibling),H=r(M,O.props.children),H.return=C,C=H;break t}}else if(M.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===tt&&Ci(I)===M.type){i(C,M.sibling),H=r(M,O.props),dl(H,O),H.return=C,C=H;break t}i(C,M);break}else e(C,M);M=M.sibling}O.type===z?(H=Ei(O.props.children,C.mode,H,O.key),H.return=C,C=H):(H=Vs(O.type,O.key,O.props,null,C.mode,H),dl(H,O),H.return=C,C=H)}return p(C);case D:t:{for(I=O.key;M!==null;){if(M.key===I)if(M.tag===4&&M.stateNode.containerInfo===O.containerInfo&&M.stateNode.implementation===O.implementation){i(C,M.sibling),H=r(M,O.children||[]),H.return=C,C=H;break t}else{i(C,M);break}else e(C,M);M=M.sibling}H=io(O,C.mode,H),H.return=C,C=H}return p(C);case tt:return O=Ci(O),Rt(C,M,O,H)}if(Vt(O))return P(C,M,O,H);if(yt(O)){if(I=yt(O),typeof I!="function")throw Error(u(150));return O=I.call(O),nt(C,M,O,H)}if(typeof O.then=="function")return Rt(C,M,js(O),H);if(O.$$typeof===B)return Rt(C,M,Ns(C,O),H);Gs(C,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,M!==null&&M.tag===6?(i(C,M.sibling),H=r(M,O),H.return=C,C=H):(i(C,M),H=no(O,C.mode,H),H.return=C,C=H),p(C)):i(C,M)}return function(C,M,O,H){try{fl=0;var I=Rt(C,M,O,H);return ya=null,I}catch(W){if(W===pa||W===Bs)throw W;var St=De(29,W,null,C.mode);return St.lanes=H,St.return=C,St}finally{}}}var Ri=Fh(!0),kh=Fh(!1),Gn=!1;function yo(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vo(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 Yn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function qn(t,e,i){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Et&2)!==0){var r=l.pending;return r===null?e.next=e:(e.next=r.next,r.next=e),l.pending=e,e=zs(t),Vh(t,null,i),e}return ws(t,l,e,i),zs(t)}function hl(t,e,i){if(e=e.updateQueue,e!==null&&(e=e.shared,(i&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,i|=l,e.lanes=i,Gd(t,i)}}function go(t,e){var i=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,i===l)){var r=null,c=null;if(i=i.firstBaseUpdate,i!==null){do{var p={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};c===null?r=c=p:c=c.next=p,i=i.next}while(i!==null);c===null?r=c=e:c=c.next=e}else r=c=e;i={baseState:l.baseState,firstBaseUpdate:r,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=e:t.next=e,i.lastBaseUpdate=e}var bo=!1;function ml(){if(bo){var t=ma;if(t!==null)throw t}}function pl(t,e,i,l){bo=!1;var r=t.updateQueue;Gn=!1;var c=r.firstBaseUpdate,p=r.lastBaseUpdate,g=r.shared.pending;if(g!==null){r.shared.pending=null;var T=g,R=T.next;T.next=null,p===null?c=R:p.next=R,p=T;var U=t.alternate;U!==null&&(U=U.updateQueue,g=U.lastBaseUpdate,g!==p&&(g===null?U.firstBaseUpdate=R:g.next=R,U.lastBaseUpdate=T))}if(c!==null){var G=r.baseState;p=0,U=R=T=null,g=c;do{var w=g.lane&-536870913,L=w!==g.lane;if(L?(mt&w)===w:(l&w)===w){w!==0&&w===ha&&(bo=!0),U!==null&&(U=U.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});t:{var P=t,nt=g;w=e;var Rt=i;switch(nt.tag){case 1:if(P=nt.payload,typeof P=="function"){G=P.call(Rt,G,w);break t}G=P;break t;case 3:P.flags=P.flags&-65537|128;case 0:if(P=nt.payload,w=typeof P=="function"?P.call(Rt,G,w):P,w==null)break t;G=b({},G,w);break t;case 2:Gn=!0}}w=g.callback,w!==null&&(t.flags|=64,L&&(t.flags|=8192),L=r.callbacks,L===null?r.callbacks=[w]:L.push(w))}else L={lane:w,tag:g.tag,payload:g.payload,callback:g.callback,next:null},U===null?(R=U=L,T=G):U=U.next=L,p|=w;if(g=g.next,g===null){if(g=r.shared.pending,g===null)break;L=g,g=L.next,L.next=null,r.lastBaseUpdate=L,r.shared.pending=null}}while(!0);U===null&&(T=G),r.baseState=T,r.firstBaseUpdate=R,r.lastBaseUpdate=U,c===null&&(r.shared.lanes=0),Zn|=p,t.lanes=p,t.memoizedState=G}}function Ph(t,e){if(typeof t!="function")throw Error(u(191,t));t.call(e)}function Jh(t,e){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)Ph(i[t],e)}var va=A(null),Ys=A(0);function Wh(t,e){t=Dn,q(Ys,t),q(va,e),Dn=t|e.baseLanes}function So(){q(Ys,Dn),q(va,va.current)}function To(){Dn=Ys.current,j(va),j(Ys)}var Ce=A(null),Ge=null;function $n(t){var e=t.alternate;q(qt,qt.current&1),q(Ce,t),Ge===null&&(e===null||va.current!==null||e.memoizedState!==null)&&(Ge=t)}function Eo(t){q(qt,qt.current),q(Ce,t),Ge===null&&(Ge=t)}function Ih(t){t.tag===22?(q(qt,qt.current),q(Ce,t),Ge===null&&(Ge=t)):Xn()}function Xn(){q(qt,qt.current),q(Ce,Ce.current)}function Oe(t){j(Ce),Ge===t&&(Ge=null),j(qt)}var qt=A(0);function qs(t){for(var e=t;e!==null;){if(e.tag===13){var i=e.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||Oc(i)||Rc(i)))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 gn=0,ut=null,Ct=null,Qt=null,$s=!1,ga=!1,wi=!1,Xs=0,yl=0,ba=null,fS=0;function jt(){throw Error(u(321))}function Ao(t,e){if(e===null)return!1;for(var i=0;i<e.length&&i<t.length;i++)if(!xe(t[i],e[i]))return!1;return!0}function Mo(t,e,i,l,r,c){return gn=c,ut=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,_.H=t===null||t.memoizedState===null?Um:jo,wi=!1,c=i(l,r),wi=!1,ga&&(c=em(e,i,l,r)),tm(t),c}function tm(t){_.H=bl;var e=Ct!==null&&Ct.next!==null;if(gn=0,Qt=Ct=ut=null,$s=!1,yl=0,ba=null,e)throw Error(u(300));t===null||Zt||(t=t.dependencies,t!==null&&_s(t)&&(Zt=!0))}function em(t,e,i,l){ut=t;var r=0;do{if(ga&&(ba=null),yl=0,ga=!1,25<=r)throw Error(u(301));if(r+=1,Qt=Ct=null,t.updateQueue!=null){var c=t.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}_.H=Bm,c=e(i,l)}while(ga);return c}function dS(){var t=_.H,e=t.useState()[0];return e=typeof e.then=="function"?vl(e):e,t=t.useState()[0],(Ct!==null?Ct.memoizedState:null)!==t&&(ut.flags|=1024),e}function xo(){var t=Xs!==0;return Xs=0,t}function Do(t,e,i){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i}function Co(t){if($s){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}$s=!1}gn=0,Qt=Ct=ut=null,ga=!1,yl=Xs=0,ba=null}function oe(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qt===null?ut.memoizedState=Qt=t:Qt=Qt.next=t,Qt}function $t(){if(Ct===null){var t=ut.alternate;t=t!==null?t.memoizedState:null}else t=Ct.next;var e=Qt===null?ut.memoizedState:Qt.next;if(e!==null)Qt=e,Ct=t;else{if(t===null)throw ut.alternate===null?Error(u(467)):Error(u(310));Ct=t,t={memoizedState:Ct.memoizedState,baseState:Ct.baseState,baseQueue:Ct.baseQueue,queue:Ct.queue,next:null},Qt===null?ut.memoizedState=Qt=t:Qt=Qt.next=t}return Qt}function Ks(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function vl(t){var e=yl;return yl+=1,ba===null&&(ba=[]),t=Kh(ba,t,e),e=ut,(Qt===null?e.memoizedState:Qt.next)===null&&(e=e.alternate,_.H=e===null||e.memoizedState===null?Um:jo),t}function Qs(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return vl(t);if(t.$$typeof===B)return ne(t)}throw Error(u(438,String(t)))}function Oo(t){var e=null,i=ut.updateQueue;if(i!==null&&(e=i.memoCache),e==null){var l=ut.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}),i===null&&(i=Ks(),ut.updateQueue=i),i.memoCache=e,i=e.data[e.index],i===void 0)for(i=e.data[e.index]=Array(t),l=0;l<t;l++)i[l]=k;return e.index++,i}function bn(t,e){return typeof e=="function"?e(t):e}function Zs(t){var e=$t();return Ro(e,Ct,t)}function Ro(t,e,i){var l=t.queue;if(l===null)throw Error(u(311));l.lastRenderedReducer=i;var r=t.baseQueue,c=l.pending;if(c!==null){if(r!==null){var p=r.next;r.next=c.next,c.next=p}e.baseQueue=r=c,l.pending=null}if(c=t.baseState,r===null)t.memoizedState=c;else{e=r.next;var g=p=null,T=null,R=e,U=!1;do{var G=R.lane&-536870913;if(G!==R.lane?(mt&G)===G:(gn&G)===G){var w=R.revertLane;if(w===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null}),G===ha&&(U=!0);else if((gn&w)===w){R=R.next,w===ha&&(U=!0);continue}else G={lane:0,revertLane:R.revertLane,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},T===null?(g=T=G,p=c):T=T.next=G,ut.lanes|=w,Zn|=w;G=R.action,wi&&i(c,G),c=R.hasEagerState?R.eagerState:i(c,G)}else w={lane:G,revertLane:R.revertLane,gesture:R.gesture,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},T===null?(g=T=w,p=c):T=T.next=w,ut.lanes|=G,Zn|=G;R=R.next}while(R!==null&&R!==e);if(T===null?p=c:T.next=g,!xe(c,t.memoizedState)&&(Zt=!0,U&&(i=ma,i!==null)))throw i;t.memoizedState=c,t.baseState=p,t.baseQueue=T,l.lastRenderedState=c}return r===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function wo(t){var e=$t(),i=e.queue;if(i===null)throw Error(u(311));i.lastRenderedReducer=t;var l=i.dispatch,r=i.pending,c=e.memoizedState;if(r!==null){i.pending=null;var p=r=r.next;do c=t(c,p.action),p=p.next;while(p!==r);xe(c,e.memoizedState)||(Zt=!0),e.memoizedState=c,e.baseQueue===null&&(e.baseState=c),i.lastRenderedState=c}return[c,l]}function nm(t,e,i){var l=ut,r=$t(),c=vt;if(c){if(i===void 0)throw Error(u(407));i=i()}else i=e();var p=!xe((Ct||r).memoizedState,i);if(p&&(r.memoizedState=i,Zt=!0),r=r.queue,Lo(lm.bind(null,l,r,t),[t]),r.getSnapshot!==e||p||Qt!==null&&Qt.memoizedState.tag&1){if(l.flags|=2048,Sa(9,{destroy:void 0},am.bind(null,l,r,i,e),null),_t===null)throw Error(u(349));c||(gn&127)!==0||im(l,e,i)}return i}function im(t,e,i){t.flags|=16384,t={getSnapshot:e,value:i},e=ut.updateQueue,e===null?(e=Ks(),ut.updateQueue=e,e.stores=[t]):(i=e.stores,i===null?e.stores=[t]:i.push(t))}function am(t,e,i,l){e.value=i,e.getSnapshot=l,sm(e)&&um(t)}function lm(t,e,i){return i(function(){sm(e)&&um(t)})}function sm(t){var e=t.getSnapshot;t=t.value;try{var i=e();return!xe(t,i)}catch{return!0}}function um(t){var e=Ti(t,2);e!==null&&be(e,t,2)}function zo(t){var e=oe();if(typeof t=="function"){var i=t;if(t=i(),wi){Ln(!0);try{i()}finally{Ln(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bn,lastRenderedState:t},e}function rm(t,e,i,l){return t.baseState=i,Ro(t,Ct,typeof l=="function"?l:bn)}function hS(t,e,i,l,r){if(Ps(t))throw Error(u(485));if(t=e.action,t!==null){var c={payload:r,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){c.listeners.push(p)}};_.T!==null?i(!0):c.isTransition=!1,l(c),i=e.pending,i===null?(c.next=e.pending=c,om(e,c)):(c.next=i.next,e.pending=i.next=c)}}function om(t,e){var i=e.action,l=e.payload,r=t.state;if(e.isTransition){var c=_.T,p={};_.T=p;try{var g=i(r,l),T=_.S;T!==null&&T(p,g),cm(t,e,g)}catch(R){Vo(t,e,R)}finally{c!==null&&p.types!==null&&(c.types=p.types),_.T=c}}else try{c=i(r,l),cm(t,e,c)}catch(R){Vo(t,e,R)}}function cm(t,e,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(l){fm(t,e,l)},function(l){return Vo(t,e,l)}):fm(t,e,i)}function fm(t,e,i){e.status="fulfilled",e.value=i,dm(e),t.state=i,e=t.pending,e!==null&&(i=e.next,i===e?t.pending=null:(i=i.next,e.next=i,om(t,i)))}function Vo(t,e,i){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=i,dm(e),e=e.next;while(e!==l)}t.action=null}function dm(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function hm(t,e){return e}function mm(t,e){if(vt){var i=_t.formState;if(i!==null){t:{var l=ut;if(vt){if(Nt){e:{for(var r=Nt,c=je;r.nodeType!==8;){if(!c){r=null;break e}if(r=Ye(r.nextSibling),r===null){r=null;break e}}c=r.data,r=c==="F!"||c==="F"?r:null}if(r){Nt=Ye(r.nextSibling),l=r.data==="F!";break t}}Hn(l)}l=!1}l&&(e=i[0])}}return i=oe(),i.memoizedState=i.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hm,lastRenderedState:e},i.queue=l,i=Lm.bind(null,ut,l),l.dispatch=i,l=zo(!1),c=Ho.bind(null,ut,!1,l.queue),l=oe(),r={state:e,dispatch:null,action:t,pending:null},l.queue=r,i=hS.bind(null,ut,r,c,i),r.dispatch=i,l.memoizedState=t,[e,i,!1]}function pm(t){var e=$t();return ym(e,Ct,t)}function ym(t,e,i){if(e=Ro(t,e,hm)[0],t=Zs(bn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=vl(e)}catch(p){throw p===pa?Bs:p}else l=e;e=$t();var r=e.queue,c=r.dispatch;return i!==e.memoizedState&&(ut.flags|=2048,Sa(9,{destroy:void 0},mS.bind(null,r,i),null)),[l,c,t]}function mS(t,e){t.action=e}function vm(t){var e=$t(),i=Ct;if(i!==null)return ym(e,i,t);$t(),e=e.memoizedState,i=$t();var l=i.queue.dispatch;return i.memoizedState=t,[e,l,!1]}function Sa(t,e,i,l){return t={tag:t,create:i,deps:l,inst:e,next:null},e=ut.updateQueue,e===null&&(e=Ks(),ut.updateQueue=e),i=e.lastEffect,i===null?e.lastEffect=t.next=t:(l=i.next,i.next=t,t.next=l,e.lastEffect=t),t}function gm(){return $t().memoizedState}function Fs(t,e,i,l){var r=oe();ut.flags|=t,r.memoizedState=Sa(1|e,{destroy:void 0},i,l===void 0?null:l)}function ks(t,e,i,l){var r=$t();l=l===void 0?null:l;var c=r.memoizedState.inst;Ct!==null&&l!==null&&Ao(l,Ct.memoizedState.deps)?r.memoizedState=Sa(e,c,i,l):(ut.flags|=t,r.memoizedState=Sa(1|e,c,i,l))}function bm(t,e){Fs(8390656,8,t,e)}function Lo(t,e){ks(2048,8,t,e)}function pS(t){ut.flags|=4;var e=ut.updateQueue;if(e===null)e=Ks(),ut.updateQueue=e,e.events=[t];else{var i=e.events;i===null?e.events=[t]:i.push(t)}}function Sm(t){var e=$t().memoizedState;return pS({ref:e,nextImpl:t}),function(){if((Et&2)!==0)throw Error(u(440));return e.impl.apply(void 0,arguments)}}function Tm(t,e){return ks(4,2,t,e)}function Em(t,e){return ks(4,4,t,e)}function Am(t,e){if(typeof e=="function"){t=t();var i=e(t);return function(){typeof i=="function"?i():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Mm(t,e,i){i=i!=null?i.concat([t]):null,ks(4,4,Am.bind(null,e,t),i)}function _o(){}function xm(t,e){var i=$t();e=e===void 0?null:e;var l=i.memoizedState;return e!==null&&Ao(e,l[1])?l[0]:(i.memoizedState=[t,e],t)}function Dm(t,e){var i=$t();e=e===void 0?null:e;var l=i.memoizedState;if(e!==null&&Ao(e,l[1]))return l[0];if(l=t(),wi){Ln(!0);try{t()}finally{Ln(!1)}}return i.memoizedState=[l,e],l}function No(t,e,i){return i===void 0||(gn&1073741824)!==0&&(mt&261930)===0?t.memoizedState=e:(t.memoizedState=i,t=Cp(),ut.lanes|=t,Zn|=t,i)}function Cm(t,e,i,l){return xe(i,e)?i:va.current!==null?(t=No(t,i,l),xe(t,e)||(Zt=!0),t):(gn&42)===0||(gn&1073741824)!==0&&(mt&261930)===0?(Zt=!0,t.memoizedState=i):(t=Cp(),ut.lanes|=t,Zn|=t,e)}function Om(t,e,i,l,r){var c=X.p;X.p=c!==0&&8>c?c:8;var p=_.T,g={};_.T=g,Ho(t,!1,e,i);try{var T=r(),R=_.S;if(R!==null&&R(g,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var U=cS(T,l);gl(t,e,U,ze(t))}else gl(t,e,l,ze(t))}catch(G){gl(t,e,{then:function(){},status:"rejected",reason:G},ze())}finally{X.p=c,p!==null&&g.types!==null&&(p.types=g.types),_.T=p}}function yS(){}function Uo(t,e,i,l){if(t.tag!==5)throw Error(u(476));var r=Rm(t).queue;Om(t,r,e,Q,i===null?yS:function(){return wm(t),i(l)})}function Rm(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bn,lastRenderedState:Q},next:null};var i={};return e.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bn,lastRenderedState:i},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function wm(t){var e=Rm(t);e.next===null&&(e=t.alternate.memoizedState),gl(t,e.next.queue,{},ze())}function Bo(){return ne(Nl)}function zm(){return $t().memoizedState}function Vm(){return $t().memoizedState}function vS(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var i=ze();t=Yn(i);var l=qn(e,t,i);l!==null&&(be(l,e,i),hl(l,e,i)),e={cache:fo()},t.payload=e;return}e=e.return}}function gS(t,e,i){var l=ze();i={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Ps(t)?_m(e,i):(i=to(t,e,i,l),i!==null&&(be(i,t,l),Nm(i,e,l)))}function Lm(t,e,i){var l=ze();gl(t,e,i,l)}function gl(t,e,i,l){var r={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(Ps(t))_m(e,r);else{var c=t.alternate;if(t.lanes===0&&(c===null||c.lanes===0)&&(c=e.lastRenderedReducer,c!==null))try{var p=e.lastRenderedState,g=c(p,i);if(r.hasEagerState=!0,r.eagerState=g,xe(g,p))return ws(t,e,r,0),_t===null&&Rs(),!1}catch{}finally{}if(i=to(t,e,r,l),i!==null)return be(i,t,l),Nm(i,e,l),!0}return!1}function Ho(t,e,i,l){if(l={lane:2,revertLane:yc(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ps(t)){if(e)throw Error(u(479))}else e=to(t,i,l,2),e!==null&&be(e,t,2)}function Ps(t){var e=t.alternate;return t===ut||e!==null&&e===ut}function _m(t,e){ga=$s=!0;var i=t.pending;i===null?e.next=e:(e.next=i.next,i.next=e),t.pending=e}function Nm(t,e,i){if((i&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,i|=l,e.lanes=i,Gd(t,i)}}var bl={readContext:ne,use:Qs,useCallback:jt,useContext:jt,useEffect:jt,useImperativeHandle:jt,useLayoutEffect:jt,useInsertionEffect:jt,useMemo:jt,useReducer:jt,useRef:jt,useState:jt,useDebugValue:jt,useDeferredValue:jt,useTransition:jt,useSyncExternalStore:jt,useId:jt,useHostTransitionStatus:jt,useFormState:jt,useActionState:jt,useOptimistic:jt,useMemoCache:jt,useCacheRefresh:jt};bl.useEffectEvent=jt;var Um={readContext:ne,use:Qs,useCallback:function(t,e){return oe().memoizedState=[t,e===void 0?null:e],t},useContext:ne,useEffect:bm,useImperativeHandle:function(t,e,i){i=i!=null?i.concat([t]):null,Fs(4194308,4,Am.bind(null,e,t),i)},useLayoutEffect:function(t,e){return Fs(4194308,4,t,e)},useInsertionEffect:function(t,e){Fs(4,2,t,e)},useMemo:function(t,e){var i=oe();e=e===void 0?null:e;var l=t();if(wi){Ln(!0);try{t()}finally{Ln(!1)}}return i.memoizedState=[l,e],l},useReducer:function(t,e,i){var l=oe();if(i!==void 0){var r=i(e);if(wi){Ln(!0);try{i(e)}finally{Ln(!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=gS.bind(null,ut,t),[l.memoizedState,t]},useRef:function(t){var e=oe();return t={current:t},e.memoizedState=t},useState:function(t){t=zo(t);var e=t.queue,i=Lm.bind(null,ut,e);return e.dispatch=i,[t.memoizedState,i]},useDebugValue:_o,useDeferredValue:function(t,e){var i=oe();return No(i,t,e)},useTransition:function(){var t=zo(!1);return t=Om.bind(null,ut,t.queue,!0,!1),oe().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,i){var l=ut,r=oe();if(vt){if(i===void 0)throw Error(u(407));i=i()}else{if(i=e(),_t===null)throw Error(u(349));(mt&127)!==0||im(l,e,i)}r.memoizedState=i;var c={value:i,getSnapshot:e};return r.queue=c,bm(lm.bind(null,l,c,t),[t]),l.flags|=2048,Sa(9,{destroy:void 0},am.bind(null,l,c,i,e),null),i},useId:function(){var t=oe(),e=_t.identifierPrefix;if(vt){var i=tn,l=Ie;i=(l&~(1<<32-Me(l)-1)).toString(32)+i,e="_"+e+"R_"+i,i=Xs++,0<i&&(e+="H"+i.toString(32)),e+="_"}else i=fS++,e="_"+e+"r_"+i.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Bo,useFormState:mm,useActionState:mm,useOptimistic:function(t){var e=oe();e.memoizedState=e.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=i,e=Ho.bind(null,ut,!0,i),i.dispatch=e,[t,e]},useMemoCache:Oo,useCacheRefresh:function(){return oe().memoizedState=vS.bind(null,ut)},useEffectEvent:function(t){var e=oe(),i={impl:t};return e.memoizedState=i,function(){if((Et&2)!==0)throw Error(u(440));return i.impl.apply(void 0,arguments)}}},jo={readContext:ne,use:Qs,useCallback:xm,useContext:ne,useEffect:Lo,useImperativeHandle:Mm,useInsertionEffect:Tm,useLayoutEffect:Em,useMemo:Dm,useReducer:Zs,useRef:gm,useState:function(){return Zs(bn)},useDebugValue:_o,useDeferredValue:function(t,e){var i=$t();return Cm(i,Ct.memoizedState,t,e)},useTransition:function(){var t=Zs(bn)[0],e=$t().memoizedState;return[typeof t=="boolean"?t:vl(t),e]},useSyncExternalStore:nm,useId:zm,useHostTransitionStatus:Bo,useFormState:pm,useActionState:pm,useOptimistic:function(t,e){var i=$t();return rm(i,Ct,t,e)},useMemoCache:Oo,useCacheRefresh:Vm};jo.useEffectEvent=Sm;var Bm={readContext:ne,use:Qs,useCallback:xm,useContext:ne,useEffect:Lo,useImperativeHandle:Mm,useInsertionEffect:Tm,useLayoutEffect:Em,useMemo:Dm,useReducer:wo,useRef:gm,useState:function(){return wo(bn)},useDebugValue:_o,useDeferredValue:function(t,e){var i=$t();return Ct===null?No(i,t,e):Cm(i,Ct.memoizedState,t,e)},useTransition:function(){var t=wo(bn)[0],e=$t().memoizedState;return[typeof t=="boolean"?t:vl(t),e]},useSyncExternalStore:nm,useId:zm,useHostTransitionStatus:Bo,useFormState:vm,useActionState:vm,useOptimistic:function(t,e){var i=$t();return Ct!==null?rm(i,Ct,t,e):(i.baseState=t,[t,i.queue.dispatch])},useMemoCache:Oo,useCacheRefresh:Vm};Bm.useEffectEvent=Sm;function Go(t,e,i,l){e=t.memoizedState,i=i(l,e),i=i==null?e:b({},e,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var Yo={enqueueSetState:function(t,e,i){t=t._reactInternals;var l=ze(),r=Yn(l);r.payload=e,i!=null&&(r.callback=i),e=qn(t,r,l),e!==null&&(be(e,t,l),hl(e,t,l))},enqueueReplaceState:function(t,e,i){t=t._reactInternals;var l=ze(),r=Yn(l);r.tag=1,r.payload=e,i!=null&&(r.callback=i),e=qn(t,r,l),e!==null&&(be(e,t,l),hl(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var i=ze(),l=Yn(i);l.tag=2,e!=null&&(l.callback=e),e=qn(t,l,i),e!==null&&(be(e,t,i),hl(e,t,i))}};function Hm(t,e,i,l,r,c,p){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,c,p):e.prototype&&e.prototype.isPureReactComponent?!ll(i,l)||!ll(r,c):!0}function jm(t,e,i,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(i,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(i,l),e.state!==t&&Yo.enqueueReplaceState(e,e.state,null)}function zi(t,e){var i=e;if("ref"in e){i={};for(var l in e)l!=="ref"&&(i[l]=e[l])}if(t=t.defaultProps){i===e&&(i=b({},i));for(var r in t)i[r]===void 0&&(i[r]=t[r])}return i}function Gm(t){Os(t)}function Ym(t){console.error(t)}function qm(t){Os(t)}function Js(t,e){try{var i=t.onUncaughtError;i(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function $m(t,e,i){try{var l=t.onCaughtError;l(i.value,{componentStack:i.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function qo(t,e,i){return i=Yn(i),i.tag=3,i.payload={element:null},i.callback=function(){Js(t,e)},i}function Xm(t){return t=Yn(t),t.tag=3,t}function Km(t,e,i,l){var r=i.type.getDerivedStateFromError;if(typeof r=="function"){var c=l.value;t.payload=function(){return r(c)},t.callback=function(){$m(e,i,l)}}var p=i.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(t.callback=function(){$m(e,i,l),typeof r!="function"&&(Fn===null?Fn=new Set([this]):Fn.add(this));var g=l.stack;this.componentDidCatch(l.value,{componentStack:g!==null?g:""})})}function bS(t,e,i,l,r){if(i.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=i.alternate,e!==null&&da(e,i,r,!0),i=Ce.current,i!==null){switch(i.tag){case 31:case 13:return Ge===null?ou():i.alternate===null&&Gt===0&&(Gt=3),i.flags&=-257,i.flags|=65536,i.lanes=r,l===Hs?i.flags|=16384:(e=i.updateQueue,e===null?i.updateQueue=new Set([l]):e.add(l),hc(t,l,r)),!1;case 22:return i.flags|=65536,l===Hs?i.flags|=16384:(e=i.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},i.updateQueue=e):(i=e.retryQueue,i===null?e.retryQueue=new Set([l]):i.add(l)),hc(t,l,r)),!1}throw Error(u(435,i.tag))}return hc(t,l,r),ou(),!1}if(vt)return e=Ce.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=r,l!==so&&(t=Error(u(422),{cause:l}),rl(Ue(t,i)))):(l!==so&&(e=Error(u(423),{cause:l}),rl(Ue(e,i))),t=t.current.alternate,t.flags|=65536,r&=-r,t.lanes|=r,l=Ue(l,i),r=qo(t.stateNode,l,r),go(t,r),Gt!==4&&(Gt=2)),!1;var c=Error(u(520),{cause:l});if(c=Ue(c,i),Cl===null?Cl=[c]:Cl.push(c),Gt!==4&&(Gt=2),e===null)return!0;l=Ue(l,i),i=e;do{switch(i.tag){case 3:return i.flags|=65536,t=r&-r,i.lanes|=t,t=qo(i.stateNode,l,t),go(i,t),!1;case 1:if(e=i.type,c=i.stateNode,(i.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Fn===null||!Fn.has(c))))return i.flags|=65536,r&=-r,i.lanes|=r,r=Xm(r),Km(r,t,i,l),go(i,r),!1}i=i.return}while(i!==null);return!1}var $o=Error(u(461)),Zt=!1;function ie(t,e,i,l){e.child=t===null?kh(e,null,i,l):Ri(e,t.child,i,l)}function Qm(t,e,i,l,r){i=i.render;var c=e.ref;if("ref"in l){var p={};for(var g in l)g!=="ref"&&(p[g]=l[g])}else p=l;return xi(e),l=Mo(t,e,i,p,c,r),g=xo(),t!==null&&!Zt?(Do(t,e,r),Sn(t,e,r)):(vt&&g&&ao(e),e.flags|=1,ie(t,e,l,r),e.child)}function Zm(t,e,i,l,r){if(t===null){var c=i.type;return typeof c=="function"&&!eo(c)&&c.defaultProps===void 0&&i.compare===null?(e.tag=15,e.type=c,Fm(t,e,c,l,r)):(t=Vs(i.type,null,l,e,e.mode,r),t.ref=e.ref,t.return=e,e.child=t)}if(c=t.child,!Jo(t,r)){var p=c.memoizedProps;if(i=i.compare,i=i!==null?i:ll,i(p,l)&&t.ref===e.ref)return Sn(t,e,r)}return e.flags|=1,t=mn(c,l),t.ref=e.ref,t.return=e,e.child=t}function Fm(t,e,i,l,r){if(t!==null){var c=t.memoizedProps;if(ll(c,l)&&t.ref===e.ref)if(Zt=!1,e.pendingProps=l=c,Jo(t,r))(t.flags&131072)!==0&&(Zt=!0);else return e.lanes=t.lanes,Sn(t,e,r)}return Xo(t,e,i,l,r)}function km(t,e,i,l){var r=l.children,c=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(c=c!==null?c.baseLanes|i:i,t!==null){for(l=e.child=t.child,r=0;l!==null;)r=r|l.lanes|l.childLanes,l=l.sibling;l=r&~c}else l=0,e.child=null;return Pm(t,e,c,i,l)}if((i&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Us(e,c!==null?c.cachePool:null),c!==null?Wh(e,c):So(),Ih(e);else return l=e.lanes=536870912,Pm(t,e,c!==null?c.baseLanes|i:i,i,l)}else c!==null?(Us(e,c.cachePool),Wh(e,c),Xn(),e.memoizedState=null):(t!==null&&Us(e,null),So(),Xn());return ie(t,e,r,i),e.child}function Sl(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Pm(t,e,i,l,r){var c=mo();return c=c===null?null:{parent:Kt._currentValue,pool:c},e.memoizedState={baseLanes:i,cachePool:c},t!==null&&Us(e,null),So(),Ih(e),t!==null&&da(t,e,l,!0),e.childLanes=r,null}function Ws(t,e){return e=tu({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Jm(t,e,i){return Ri(e,t.child,null,i),t=Ws(e,e.pendingProps),t.flags|=2,Oe(e),e.memoizedState=null,t}function SS(t,e,i){var l=e.pendingProps,r=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(vt){if(l.mode==="hidden")return t=Ws(e,l),e.lanes=536870912,Sl(null,t);if(Eo(e),(t=Nt)?(t=oy(t,je),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Un!==null?{id:Ie,overflow:tn}:null,retryLane:536870912,hydrationErrors:null},i=_h(t),i.return=e,e.child=i,ee=e,Nt=null)):t=null,t===null)throw Hn(e);return e.lanes=536870912,null}return Ws(e,l)}var c=t.memoizedState;if(c!==null){var p=c.dehydrated;if(Eo(e),r)if(e.flags&256)e.flags&=-257,e=Jm(t,e,i);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(u(558));else if(Zt||da(t,e,i,!1),r=(i&t.childLanes)!==0,Zt||r){if(l=_t,l!==null&&(p=Yd(l,i),p!==0&&p!==c.retryLane))throw c.retryLane=p,Ti(t,p),be(l,t,p),$o;ou(),e=Jm(t,e,i)}else t=c.treeContext,Nt=Ye(p.nextSibling),ee=e,vt=!0,Bn=null,je=!1,t!==null&&Bh(e,t),e=Ws(e,l),e.flags|=4096;return e}return t=mn(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Is(t,e){var i=e.ref;if(i===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(u(284));(t===null||t.ref!==i)&&(e.flags|=4194816)}}function Xo(t,e,i,l,r){return xi(e),i=Mo(t,e,i,l,void 0,r),l=xo(),t!==null&&!Zt?(Do(t,e,r),Sn(t,e,r)):(vt&&l&&ao(e),e.flags|=1,ie(t,e,i,r),e.child)}function Wm(t,e,i,l,r,c){return xi(e),e.updateQueue=null,i=em(e,l,i,r),tm(t),l=xo(),t!==null&&!Zt?(Do(t,e,c),Sn(t,e,c)):(vt&&l&&ao(e),e.flags|=1,ie(t,e,i,c),e.child)}function Im(t,e,i,l,r){if(xi(e),e.stateNode===null){var c=ra,p=i.contextType;typeof p=="object"&&p!==null&&(c=ne(p)),c=new i(l,c),e.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Yo,e.stateNode=c,c._reactInternals=e,c=e.stateNode,c.props=l,c.state=e.memoizedState,c.refs={},yo(e),p=i.contextType,c.context=typeof p=="object"&&p!==null?ne(p):ra,c.state=e.memoizedState,p=i.getDerivedStateFromProps,typeof p=="function"&&(Go(e,i,p,l),c.state=e.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(p=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),p!==c.state&&Yo.enqueueReplaceState(c,c.state,null),pl(e,l,c,r),ml(),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){c=e.stateNode;var g=e.memoizedProps,T=zi(i,g);c.props=T;var R=c.context,U=i.contextType;p=ra,typeof U=="object"&&U!==null&&(p=ne(U));var G=i.getDerivedStateFromProps;U=typeof G=="function"||typeof c.getSnapshotBeforeUpdate=="function",g=e.pendingProps!==g,U||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(g||R!==p)&&jm(e,c,l,p),Gn=!1;var w=e.memoizedState;c.state=w,pl(e,l,c,r),ml(),R=e.memoizedState,g||w!==R||Gn?(typeof G=="function"&&(Go(e,i,G,l),R=e.memoizedState),(T=Gn||Hm(e,i,T,l,w,R,p))?(U||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(e.flags|=4194308)):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=R),c.props=l,c.state=R,c.context=p,l=T):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{c=e.stateNode,vo(t,e),p=e.memoizedProps,U=zi(i,p),c.props=U,G=e.pendingProps,w=c.context,R=i.contextType,T=ra,typeof R=="object"&&R!==null&&(T=ne(R)),g=i.getDerivedStateFromProps,(R=typeof g=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(p!==G||w!==T)&&jm(e,c,l,T),Gn=!1,w=e.memoizedState,c.state=w,pl(e,l,c,r),ml();var L=e.memoizedState;p!==G||w!==L||Gn||t!==null&&t.dependencies!==null&&_s(t.dependencies)?(typeof g=="function"&&(Go(e,i,g,l),L=e.memoizedState),(U=Gn||Hm(e,i,U,l,w,L,T)||t!==null&&t.dependencies!==null&&_s(t.dependencies))?(R||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,L,T),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,L,T)),typeof c.componentDidUpdate=="function"&&(e.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof c.componentDidUpdate!="function"||p===t.memoizedProps&&w===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===t.memoizedProps&&w===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=L),c.props=l,c.state=L,c.context=T,l=U):(typeof c.componentDidUpdate!="function"||p===t.memoizedProps&&w===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===t.memoizedProps&&w===t.memoizedState||(e.flags|=1024),l=!1)}return c=l,Is(t,e),l=(e.flags&128)!==0,c||l?(c=e.stateNode,i=l&&typeof i.getDerivedStateFromError!="function"?null:c.render(),e.flags|=1,t!==null&&l?(e.child=Ri(e,t.child,null,r),e.child=Ri(e,null,i,r)):ie(t,e,i,r),e.memoizedState=c.state,t=e.child):t=Sn(t,e,r),t}function tp(t,e,i,l){return Ai(),e.flags|=256,ie(t,e,i,l),e.child}var Ko={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Qo(t){return{baseLanes:t,cachePool:$h()}}function Zo(t,e,i){return t=t!==null?t.childLanes&~i:0,e&&(t|=we),t}function ep(t,e,i){var l=e.pendingProps,r=!1,c=(e.flags&128)!==0,p;if((p=c)||(p=t!==null&&t.memoizedState===null?!1:(qt.current&2)!==0),p&&(r=!0,e.flags&=-129),p=(e.flags&32)!==0,e.flags&=-33,t===null){if(vt){if(r?$n(e):Xn(),(t=Nt)?(t=oy(t,je),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Un!==null?{id:Ie,overflow:tn}:null,retryLane:536870912,hydrationErrors:null},i=_h(t),i.return=e,e.child=i,ee=e,Nt=null)):t=null,t===null)throw Hn(e);return Rc(t)?e.lanes=32:e.lanes=536870912,null}var g=l.children;return l=l.fallback,r?(Xn(),r=e.mode,g=tu({mode:"hidden",children:g},r),l=Ei(l,r,i,null),g.return=e,l.return=e,g.sibling=l,e.child=g,l=e.child,l.memoizedState=Qo(i),l.childLanes=Zo(t,p,i),e.memoizedState=Ko,Sl(null,l)):($n(e),Fo(e,g))}var T=t.memoizedState;if(T!==null&&(g=T.dehydrated,g!==null)){if(c)e.flags&256?($n(e),e.flags&=-257,e=ko(t,e,i)):e.memoizedState!==null?(Xn(),e.child=t.child,e.flags|=128,e=null):(Xn(),g=l.fallback,r=e.mode,l=tu({mode:"visible",children:l.children},r),g=Ei(g,r,i,null),g.flags|=2,l.return=e,g.return=e,l.sibling=g,e.child=l,Ri(e,t.child,null,i),l=e.child,l.memoizedState=Qo(i),l.childLanes=Zo(t,p,i),e.memoizedState=Ko,e=Sl(null,l));else if($n(e),Rc(g)){if(p=g.nextSibling&&g.nextSibling.dataset,p)var R=p.dgst;p=R,l=Error(u(419)),l.stack="",l.digest=p,rl({value:l,source:null,stack:null}),e=ko(t,e,i)}else if(Zt||da(t,e,i,!1),p=(i&t.childLanes)!==0,Zt||p){if(p=_t,p!==null&&(l=Yd(p,i),l!==0&&l!==T.retryLane))throw T.retryLane=l,Ti(t,l),be(p,t,l),$o;Oc(g)||ou(),e=ko(t,e,i)}else Oc(g)?(e.flags|=192,e.child=t.child,e=null):(t=T.treeContext,Nt=Ye(g.nextSibling),ee=e,vt=!0,Bn=null,je=!1,t!==null&&Bh(e,t),e=Fo(e,l.children),e.flags|=4096);return e}return r?(Xn(),g=l.fallback,r=e.mode,T=t.child,R=T.sibling,l=mn(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,R!==null?g=mn(R,g):(g=Ei(g,r,i,null),g.flags|=2),g.return=e,l.return=e,l.sibling=g,e.child=l,Sl(null,l),l=e.child,g=t.child.memoizedState,g===null?g=Qo(i):(r=g.cachePool,r!==null?(T=Kt._currentValue,r=r.parent!==T?{parent:T,pool:T}:r):r=$h(),g={baseLanes:g.baseLanes|i,cachePool:r}),l.memoizedState=g,l.childLanes=Zo(t,p,i),e.memoizedState=Ko,Sl(t.child,l)):($n(e),i=t.child,t=i.sibling,i=mn(i,{mode:"visible",children:l.children}),i.return=e,i.sibling=null,t!==null&&(p=e.deletions,p===null?(e.deletions=[t],e.flags|=16):p.push(t)),e.child=i,e.memoizedState=null,i)}function Fo(t,e){return e=tu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function tu(t,e){return t=De(22,t,null,e),t.lanes=0,t}function ko(t,e,i){return Ri(e,t.child,null,i),t=Fo(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function np(t,e,i){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),oo(t.return,e,i)}function Po(t,e,i,l,r,c){var p=t.memoizedState;p===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:i,tailMode:r,treeForkCount:c}:(p.isBackwards=e,p.rendering=null,p.renderingStartTime=0,p.last=l,p.tail=i,p.tailMode=r,p.treeForkCount=c)}function ip(t,e,i){var l=e.pendingProps,r=l.revealOrder,c=l.tail;l=l.children;var p=qt.current,g=(p&2)!==0;if(g?(p=p&1|2,e.flags|=128):p&=1,q(qt,p),ie(t,e,l,i),l=vt?ul:0,!g&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&np(t,i,e);else if(t.tag===19)np(t,i,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(i=e.child,r=null;i!==null;)t=i.alternate,t!==null&&qs(t)===null&&(r=i),i=i.sibling;i=r,i===null?(r=e.child,e.child=null):(r=i.sibling,i.sibling=null),Po(e,!1,r,i,c,l);break;case"backwards":case"unstable_legacy-backwards":for(i=null,r=e.child,e.child=null;r!==null;){if(t=r.alternate,t!==null&&qs(t)===null){e.child=r;break}t=r.sibling,r.sibling=i,i=r,r=t}Po(e,!0,i,null,c,l);break;case"together":Po(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function Sn(t,e,i){if(t!==null&&(e.dependencies=t.dependencies),Zn|=e.lanes,(i&e.childLanes)===0)if(t!==null){if(da(t,e,i,!1),(i&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,i=mn(t,t.pendingProps),e.child=i,i.return=e;t.sibling!==null;)t=t.sibling,i=i.sibling=mn(t,t.pendingProps),i.return=e;i.sibling=null}return e.child}function Jo(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&_s(t)))}function TS(t,e,i){switch(e.tag){case 3:Xt(e,e.stateNode.containerInfo),jn(e,Kt,t.memoizedState.cache),Ai();break;case 27:case 5:Qa(e);break;case 4:Xt(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,Eo(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?($n(e),e.flags|=128,null):(i&e.child.childLanes)!==0?ep(t,e,i):($n(e),t=Sn(t,e,i),t!==null?t.sibling:null);$n(e);break;case 19:var r=(t.flags&128)!==0;if(l=(i&e.childLanes)!==0,l||(da(t,e,i,!1),l=(i&e.childLanes)!==0),r){if(l)return ip(t,e,i);e.flags|=128}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),q(qt,qt.current),l)break;return null;case 22:return e.lanes=0,km(t,e,i,e.pendingProps);case 24:jn(e,Kt,t.memoizedState.cache)}return Sn(t,e,i)}function ap(t,e,i){if(t!==null)if(t.memoizedProps!==e.pendingProps)Zt=!0;else{if(!Jo(t,i)&&(e.flags&128)===0)return Zt=!1,TS(t,e,i);Zt=(t.flags&131072)!==0}else Zt=!1,vt&&(e.flags&1048576)!==0&&Uh(e,ul,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=Ci(e.elementType),e.type=t,typeof t=="function")eo(t)?(l=zi(t,l),e.tag=1,e=Im(null,e,t,l,i)):(e.tag=0,e=Xo(null,e,t,l,i));else{if(t!=null){var r=t.$$typeof;if(r===$){e.tag=11,e=Qm(null,e,t,l,i);break t}else if(r===Z){e.tag=14,e=Zm(null,e,t,l,i);break t}}throw e=Dt(t)||t,Error(u(306,e,""))}}return e;case 0:return Xo(t,e,e.type,e.pendingProps,i);case 1:return l=e.type,r=zi(l,e.pendingProps),Im(t,e,l,r,i);case 3:t:{if(Xt(e,e.stateNode.containerInfo),t===null)throw Error(u(387));l=e.pendingProps;var c=e.memoizedState;r=c.element,vo(t,e),pl(e,l,null,i);var p=e.memoizedState;if(l=p.cache,jn(e,Kt,l),l!==c.cache&&co(e,[Kt],i,!0),ml(),l=p.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:p.cache},e.updateQueue.baseState=c,e.memoizedState=c,e.flags&256){e=tp(t,e,l,i);break t}else if(l!==r){r=Ue(Error(u(424)),e),rl(r),e=tp(t,e,l,i);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(Nt=Ye(t.firstChild),ee=e,vt=!0,Bn=null,je=!0,i=kh(e,null,l,i),e.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(Ai(),l===r){e=Sn(t,e,i);break t}ie(t,e,l,i)}e=e.child}return e;case 26:return Is(t,e),t===null?(i=py(e.type,null,e.pendingProps,null))?e.memoizedState=i:vt||(i=e.type,t=e.pendingProps,l=yu(ft.current).createElement(i),l[te]=e,l[he]=t,ae(l,i,t),Wt(l),e.stateNode=l):e.memoizedState=py(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Qa(e),t===null&&vt&&(l=e.stateNode=dy(e.type,e.pendingProps,ft.current),ee=e,je=!0,r=Nt,Wn(e.type)?(wc=r,Nt=Ye(l.firstChild)):Nt=r),ie(t,e,e.pendingProps.children,i),Is(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&vt&&((r=l=Nt)&&(l=JS(l,e.type,e.pendingProps,je),l!==null?(e.stateNode=l,ee=e,Nt=Ye(l.firstChild),je=!1,r=!0):r=!1),r||Hn(e)),Qa(e),r=e.type,c=e.pendingProps,p=t!==null?t.memoizedProps:null,l=c.children,xc(r,c)?l=null:p!==null&&xc(r,p)&&(e.flags|=32),e.memoizedState!==null&&(r=Mo(t,e,dS,null,null,i),Nl._currentValue=r),Is(t,e),ie(t,e,l,i),e.child;case 6:return t===null&&vt&&((t=i=Nt)&&(i=WS(i,e.pendingProps,je),i!==null?(e.stateNode=i,ee=e,Nt=null,t=!0):t=!1),t||Hn(e)),null;case 13:return ep(t,e,i);case 4:return Xt(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=Ri(e,null,l,i):ie(t,e,l,i),e.child;case 11:return Qm(t,e,e.type,e.pendingProps,i);case 7:return ie(t,e,e.pendingProps,i),e.child;case 8:return ie(t,e,e.pendingProps.children,i),e.child;case 12:return ie(t,e,e.pendingProps.children,i),e.child;case 10:return l=e.pendingProps,jn(e,e.type,l.value),ie(t,e,l.children,i),e.child;case 9:return r=e.type._context,l=e.pendingProps.children,xi(e),r=ne(r),l=l(r),e.flags|=1,ie(t,e,l,i),e.child;case 14:return Zm(t,e,e.type,e.pendingProps,i);case 15:return Fm(t,e,e.type,e.pendingProps,i);case 19:return ip(t,e,i);case 31:return SS(t,e,i);case 22:return km(t,e,i,e.pendingProps);case 24:return xi(e),l=ne(Kt),t===null?(r=mo(),r===null&&(r=_t,c=fo(),r.pooledCache=c,c.refCount++,c!==null&&(r.pooledCacheLanes|=i),r=c),e.memoizedState={parent:l,cache:r},yo(e),jn(e,Kt,r)):((t.lanes&i)!==0&&(vo(t,e),pl(e,null,null,i),ml()),r=t.memoizedState,c=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=c.cache,jn(e,Kt,l),l!==r.cache&&co(e,[Kt],i,!0))),ie(t,e,e.pendingProps.children,i),e.child;case 29:throw e.pendingProps}throw Error(u(156,e.tag))}function Tn(t){t.flags|=4}function Wo(t,e,i,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(zp())t.flags|=8192;else throw Oi=Hs,po}else t.flags&=-16777217}function lp(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Sy(e))if(zp())t.flags|=8192;else throw Oi=Hs,po}function eu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Hd():536870912,t.lanes|=e,Ma|=e)}function Tl(t,e){if(!vt)switch(t.tailMode){case"hidden":e=t.tail;for(var i=null;e!==null;)e.alternate!==null&&(i=e),e=e.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function Ut(t){var e=t.alternate!==null&&t.alternate.child===t.child,i=0,l=0;if(e)for(var r=t.child;r!==null;)i|=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;)i|=r.lanes|r.childLanes,l|=r.subtreeFlags,l|=r.flags,r.return=t,r=r.sibling;return t.subtreeFlags|=l,t.childLanes=i,e}function ES(t,e,i){var l=e.pendingProps;switch(lo(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ut(e),null;case 1:return Ut(e),null;case 3:return i=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),vn(Kt),Lt(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(fa(e)?Tn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,uo())),Ut(e),null;case 26:var r=e.type,c=e.memoizedState;return t===null?(Tn(e),c!==null?(Ut(e),lp(e,c)):(Ut(e),Wo(e,r,null,l,i))):c?c!==t.memoizedState?(Tn(e),Ut(e),lp(e,c)):(Ut(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&Tn(e),Ut(e),Wo(e,r,t,l,i)),null;case 27:if(ds(e),i=ft.current,r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&Tn(e);else{if(!l){if(e.stateNode===null)throw Error(u(166));return Ut(e),null}t=F.current,fa(e)?Hh(e):(t=dy(r,l,i),e.stateNode=t,Tn(e))}return Ut(e),null;case 5:if(ds(e),r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&Tn(e);else{if(!l){if(e.stateNode===null)throw Error(u(166));return Ut(e),null}if(c=F.current,fa(e))Hh(e);else{var p=yu(ft.current);switch(c){case 1:c=p.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:c=p.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":c=p.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":c=p.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":c=p.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?p.createElement("select",{is:l.is}):p.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?p.createElement(r,{is:l.is}):p.createElement(r)}}c[te]=e,c[he]=l;t:for(p=e.child;p!==null;){if(p.tag===5||p.tag===6)c.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break t;for(;p.sibling===null;){if(p.return===null||p.return===e)break t;p=p.return}p.sibling.return=p.return,p=p.sibling}e.stateNode=c;t:switch(ae(c,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&&Tn(e)}}return Ut(e),Wo(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,i),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&Tn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(u(166));if(t=ft.current,fa(e)){if(t=e.stateNode,i=e.memoizedProps,l=null,r=ee,r!==null)switch(r.tag){case 27:case 5:l=r.memoizedProps}t[te]=e,t=!!(t.nodeValue===i||l!==null&&l.suppressHydrationWarning===!0||ey(t.nodeValue,i)),t||Hn(e,!0)}else t=yu(t).createTextNode(l),t[te]=e,e.stateNode=t}return Ut(e),null;case 31:if(i=e.memoizedState,t===null||t.memoizedState!==null){if(l=fa(e),i!==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[te]=e}else Ai(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ut(e),t=!1}else i=uo(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),t=!0;if(!t)return e.flags&256?(Oe(e),e):(Oe(e),null);if((e.flags&128)!==0)throw Error(u(558))}return Ut(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(r=fa(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[te]=e}else Ai(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ut(e),r=!1}else r=uo(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=r),r=!0;if(!r)return e.flags&256?(Oe(e),e):(Oe(e),null)}return Oe(e),(e.flags&128)!==0?(e.lanes=i,e):(i=l!==null,t=t!==null&&t.memoizedState!==null,i&&(l=e.child,r=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(r=l.alternate.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==r&&(l.flags|=2048)),i!==t&&i&&(e.child.flags|=8192),eu(e,e.updateQueue),Ut(e),null);case 4:return Lt(),t===null&&Sc(e.stateNode.containerInfo),Ut(e),null;case 10:return vn(e.type),Ut(e),null;case 19:if(j(qt),l=e.memoizedState,l===null)return Ut(e),null;if(r=(e.flags&128)!==0,c=l.rendering,c===null)if(r)Tl(l,!1);else{if(Gt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(c=qs(t),c!==null){for(e.flags|=128,Tl(l,!1),t=c.updateQueue,e.updateQueue=t,eu(e,t),e.subtreeFlags=0,t=i,i=e.child;i!==null;)Lh(i,t),i=i.sibling;return q(qt,qt.current&1|2),vt&&pn(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&Ee()>su&&(e.flags|=128,r=!0,Tl(l,!1),e.lanes=4194304)}else{if(!r)if(t=qs(c),t!==null){if(e.flags|=128,r=!0,t=t.updateQueue,e.updateQueue=t,eu(e,t),Tl(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!vt)return Ut(e),null}else 2*Ee()-l.renderingStartTime>su&&i!==536870912&&(e.flags|=128,r=!0,Tl(l,!1),e.lanes=4194304);l.isBackwards?(c.sibling=e.child,e.child=c):(t=l.last,t!==null?t.sibling=c:e.child=c,l.last=c)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Ee(),t.sibling=null,i=qt.current,q(qt,r?i&1|2:i&1),vt&&pn(e,l.treeForkCount),t):(Ut(e),null);case 22:case 23:return Oe(e),To(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(i&536870912)!==0&&(e.flags&128)===0&&(Ut(e),e.subtreeFlags&6&&(e.flags|=8192)):Ut(e),i=e.updateQueue,i!==null&&eu(e,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==i&&(e.flags|=2048),t!==null&&j(Di),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),e.memoizedState.cache!==i&&(e.flags|=2048),vn(Kt),Ut(e),null;case 25:return null;case 30:return null}throw Error(u(156,e.tag))}function AS(t,e){switch(lo(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return vn(Kt),Lt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return ds(e),null;case 31:if(e.memoizedState!==null){if(Oe(e),e.alternate===null)throw Error(u(340));Ai()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Oe(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(u(340));Ai()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return j(qt),null;case 4:return Lt(),null;case 10:return vn(e.type),null;case 22:case 23:return Oe(e),To(),t!==null&&j(Di),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return vn(Kt),null;case 25:return null;default:return null}}function sp(t,e){switch(lo(e),e.tag){case 3:vn(Kt),Lt();break;case 26:case 27:case 5:ds(e);break;case 4:Lt();break;case 31:e.memoizedState!==null&&Oe(e);break;case 13:Oe(e);break;case 19:j(qt);break;case 10:vn(e.type);break;case 22:case 23:Oe(e),To(),t!==null&&j(Di);break;case 24:vn(Kt)}}function El(t,e){try{var i=e.updateQueue,l=i!==null?i.lastEffect:null;if(l!==null){var r=l.next;i=r;do{if((i.tag&t)===t){l=void 0;var c=i.create,p=i.inst;l=c(),p.destroy=l}i=i.next}while(i!==r)}}catch(g){Mt(e,e.return,g)}}function Kn(t,e,i){try{var l=e.updateQueue,r=l!==null?l.lastEffect:null;if(r!==null){var c=r.next;l=c;do{if((l.tag&t)===t){var p=l.inst,g=p.destroy;if(g!==void 0){p.destroy=void 0,r=e;var T=i,R=g;try{R()}catch(U){Mt(r,T,U)}}}l=l.next}while(l!==c)}}catch(U){Mt(e,e.return,U)}}function up(t){var e=t.updateQueue;if(e!==null){var i=t.stateNode;try{Jh(e,i)}catch(l){Mt(t,t.return,l)}}}function rp(t,e,i){i.props=zi(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(l){Mt(t,e,l)}}function Al(t,e){try{var i=t.ref;if(i!==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 i=="function"?t.refCleanup=i(l):i.current=l}}catch(r){Mt(t,e,r)}}function en(t,e){var i=t.ref,l=t.refCleanup;if(i!==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 i=="function")try{i(null)}catch(r){Mt(t,e,r)}else i.current=null}function op(t){var e=t.type,i=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":i.autoFocus&&l.focus();break t;case"img":i.src?l.src=i.src:i.srcSet&&(l.srcset=i.srcSet)}}catch(r){Mt(t,t.return,r)}}function Io(t,e,i){try{var l=t.stateNode;KS(l,t.type,i,e),l[he]=e}catch(r){Mt(t,t.return,r)}}function cp(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Wn(t.type)||t.tag===4}function tc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||cp(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&&Wn(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 ec(t,e,i){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(t,e):(e=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,e.appendChild(t),i=i._reactRootContainer,i!=null||e.onclick!==null||(e.onclick=dn));else if(l!==4&&(l===27&&Wn(t.type)&&(i=t.stateNode,e=null),t=t.child,t!==null))for(ec(t,e,i),t=t.sibling;t!==null;)ec(t,e,i),t=t.sibling}function nu(t,e,i){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?i.insertBefore(t,e):i.appendChild(t);else if(l!==4&&(l===27&&Wn(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(nu(t,e,i),t=t.sibling;t!==null;)nu(t,e,i),t=t.sibling}function fp(t){var e=t.stateNode,i=t.memoizedProps;try{for(var l=t.type,r=e.attributes;r.length;)e.removeAttributeNode(r[0]);ae(e,l,i),e[te]=t,e[he]=i}catch(c){Mt(t,t.return,c)}}var En=!1,Ft=!1,nc=!1,dp=typeof WeakSet=="function"?WeakSet:Set,It=null;function MS(t,e){if(t=t.containerInfo,Ac=Au,t=Mh(t),Fr(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else t:{i=(i=t.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var r=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{i.nodeType,c.nodeType}catch{i=null;break t}var p=0,g=-1,T=-1,R=0,U=0,G=t,w=null;e:for(;;){for(var L;G!==i||r!==0&&G.nodeType!==3||(g=p+r),G!==c||l!==0&&G.nodeType!==3||(T=p+l),G.nodeType===3&&(p+=G.nodeValue.length),(L=G.firstChild)!==null;)w=G,G=L;for(;;){if(G===t)break e;if(w===i&&++R===r&&(g=p),w===c&&++U===l&&(T=p),(L=G.nextSibling)!==null)break;G=w,w=G.parentNode}G=L}i=g===-1||T===-1?null:{start:g,end:T}}else i=null}i=i||{start:0,end:0}}else i=null;for(Mc={focusedElem:t,selectionRange:i},Au=!1,It=e;It!==null;)if(e=It,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,It=t;else for(;It!==null;){switch(e=It,c=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(i=0;i<t.length;i++)r=t[i],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&c!==null){t=void 0,i=e,r=c.memoizedProps,c=c.memoizedState,l=i.stateNode;try{var P=zi(i.type,r);t=l.getSnapshotBeforeUpdate(P,c),l.__reactInternalSnapshotBeforeUpdate=t}catch(nt){Mt(i,i.return,nt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,i=t.nodeType,i===9)Cc(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Cc(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,It=t;break}It=e.return}}function hp(t,e,i){var l=i.flags;switch(i.tag){case 0:case 11:case 15:Mn(t,i),l&4&&El(5,i);break;case 1:if(Mn(t,i),l&4)if(t=i.stateNode,e===null)try{t.componentDidMount()}catch(p){Mt(i,i.return,p)}else{var r=zi(i.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(r,e,t.__reactInternalSnapshotBeforeUpdate)}catch(p){Mt(i,i.return,p)}}l&64&&up(i),l&512&&Al(i,i.return);break;case 3:if(Mn(t,i),l&64&&(t=i.updateQueue,t!==null)){if(e=null,i.child!==null)switch(i.child.tag){case 27:case 5:e=i.child.stateNode;break;case 1:e=i.child.stateNode}try{Jh(t,e)}catch(p){Mt(i,i.return,p)}}break;case 27:e===null&&l&4&&fp(i);case 26:case 5:Mn(t,i),e===null&&l&4&&op(i),l&512&&Al(i,i.return);break;case 12:Mn(t,i);break;case 31:Mn(t,i),l&4&&yp(t,i);break;case 13:Mn(t,i),l&4&&vp(t,i),l&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=LS.bind(null,i),IS(t,i))));break;case 22:if(l=i.memoizedState!==null||En,!l){e=e!==null&&e.memoizedState!==null||Ft,r=En;var c=Ft;En=l,(Ft=e)&&!c?xn(t,i,(i.subtreeFlags&8772)!==0):Mn(t,i),En=r,Ft=c}break;case 30:break;default:Mn(t,i)}}function mp(t){var e=t.alternate;e!==null&&(t.alternate=null,mp(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&zr(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Ht=null,pe=!1;function An(t,e,i){for(i=i.child;i!==null;)pp(t,e,i),i=i.sibling}function pp(t,e,i){if(Ae&&typeof Ae.onCommitFiberUnmount=="function")try{Ae.onCommitFiberUnmount(Za,i)}catch{}switch(i.tag){case 26:Ft||en(i,e),An(t,e,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:Ft||en(i,e);var l=Ht,r=pe;Wn(i.type)&&(Ht=i.stateNode,pe=!1),An(t,e,i),Vl(i.stateNode),Ht=l,pe=r;break;case 5:Ft||en(i,e);case 6:if(l=Ht,r=pe,Ht=null,An(t,e,i),Ht=l,pe=r,Ht!==null)if(pe)try{(Ht.nodeType===9?Ht.body:Ht.nodeName==="HTML"?Ht.ownerDocument.body:Ht).removeChild(i.stateNode)}catch(c){Mt(i,e,c)}else try{Ht.removeChild(i.stateNode)}catch(c){Mt(i,e,c)}break;case 18:Ht!==null&&(pe?(t=Ht,uy(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),Va(t)):uy(Ht,i.stateNode));break;case 4:l=Ht,r=pe,Ht=i.stateNode.containerInfo,pe=!0,An(t,e,i),Ht=l,pe=r;break;case 0:case 11:case 14:case 15:Kn(2,i,e),Ft||Kn(4,i,e),An(t,e,i);break;case 1:Ft||(en(i,e),l=i.stateNode,typeof l.componentWillUnmount=="function"&&rp(i,e,l)),An(t,e,i);break;case 21:An(t,e,i);break;case 22:Ft=(l=Ft)||i.memoizedState!==null,An(t,e,i),Ft=l;break;default:An(t,e,i)}}function yp(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Va(t)}catch(i){Mt(e,e.return,i)}}}function vp(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Va(t)}catch(i){Mt(e,e.return,i)}}function xS(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new dp),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new dp),e;default:throw Error(u(435,t.tag))}}function iu(t,e){var i=xS(t);e.forEach(function(l){if(!i.has(l)){i.add(l);var r=_S.bind(null,t,l);l.then(r,r)}})}function ye(t,e){var i=e.deletions;if(i!==null)for(var l=0;l<i.length;l++){var r=i[l],c=t,p=e,g=p;t:for(;g!==null;){switch(g.tag){case 27:if(Wn(g.type)){Ht=g.stateNode,pe=!1;break t}break;case 5:Ht=g.stateNode,pe=!1;break t;case 3:case 4:Ht=g.stateNode.containerInfo,pe=!0;break t}g=g.return}if(Ht===null)throw Error(u(160));pp(c,p,r),Ht=null,pe=!1,c=r.alternate,c!==null&&(c.return=null),r.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)gp(e,t),e=e.sibling}var Ze=null;function gp(t,e){var i=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ye(e,t),ve(t),l&4&&(Kn(3,t,t.return),El(3,t),Kn(5,t,t.return));break;case 1:ye(e,t),ve(t),l&512&&(Ft||i===null||en(i,i.return)),l&64&&En&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(i=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=i===null?l:i.concat(l))));break;case 26:var r=Ze;if(ye(e,t),ve(t),l&512&&(Ft||i===null||en(i,i.return)),l&4){var c=i!==null?i.memoizedState:null;if(l=t.memoizedState,i===null)if(l===null)if(t.stateNode===null){t:{l=t.type,i=t.memoizedProps,r=r.ownerDocument||r;e:switch(l){case"title":c=r.getElementsByTagName("title")[0],(!c||c[Pa]||c[te]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=r.createElement(l),r.head.insertBefore(c,r.querySelector("head > title"))),ae(c,l,i),c[te]=t,Wt(c),l=c;break t;case"link":var p=gy("link","href",r).get(l+(i.href||""));if(p){for(var g=0;g<p.length;g++)if(c=p[g],c.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&c.getAttribute("rel")===(i.rel==null?null:i.rel)&&c.getAttribute("title")===(i.title==null?null:i.title)&&c.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){p.splice(g,1);break e}}c=r.createElement(l),ae(c,l,i),r.head.appendChild(c);break;case"meta":if(p=gy("meta","content",r).get(l+(i.content||""))){for(g=0;g<p.length;g++)if(c=p[g],c.getAttribute("content")===(i.content==null?null:""+i.content)&&c.getAttribute("name")===(i.name==null?null:i.name)&&c.getAttribute("property")===(i.property==null?null:i.property)&&c.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&c.getAttribute("charset")===(i.charSet==null?null:i.charSet)){p.splice(g,1);break e}}c=r.createElement(l),ae(c,l,i),r.head.appendChild(c);break;default:throw Error(u(468,l))}c[te]=t,Wt(c),l=c}t.stateNode=l}else by(r,t.type,t.stateNode);else t.stateNode=vy(r,l,t.memoizedProps);else c!==l?(c===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):c.count--,l===null?by(r,t.type,t.stateNode):vy(r,l,t.memoizedProps)):l===null&&t.stateNode!==null&&Io(t,t.memoizedProps,i.memoizedProps)}break;case 27:ye(e,t),ve(t),l&512&&(Ft||i===null||en(i,i.return)),i!==null&&l&4&&Io(t,t.memoizedProps,i.memoizedProps);break;case 5:if(ye(e,t),ve(t),l&512&&(Ft||i===null||en(i,i.return)),t.flags&32){r=t.stateNode;try{ea(r,"")}catch(P){Mt(t,t.return,P)}}l&4&&t.stateNode!=null&&(r=t.memoizedProps,Io(t,r,i!==null?i.memoizedProps:r)),l&1024&&(nc=!0);break;case 6:if(ye(e,t),ve(t),l&4){if(t.stateNode===null)throw Error(u(162));l=t.memoizedProps,i=t.stateNode;try{i.nodeValue=l}catch(P){Mt(t,t.return,P)}}break;case 3:if(bu=null,r=Ze,Ze=vu(e.containerInfo),ye(e,t),Ze=r,ve(t),l&4&&i!==null&&i.memoizedState.isDehydrated)try{Va(e.containerInfo)}catch(P){Mt(t,t.return,P)}nc&&(nc=!1,bp(t));break;case 4:l=Ze,Ze=vu(t.stateNode.containerInfo),ye(e,t),ve(t),Ze=l;break;case 12:ye(e,t),ve(t);break;case 31:ye(e,t),ve(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,iu(t,l)));break;case 13:ye(e,t),ve(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(lu=Ee()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,iu(t,l)));break;case 22:r=t.memoizedState!==null;var T=i!==null&&i.memoizedState!==null,R=En,U=Ft;if(En=R||r,Ft=U||T,ye(e,t),Ft=U,En=R,ve(t),l&8192)t:for(e=t.stateNode,e._visibility=r?e._visibility&-2:e._visibility|1,r&&(i===null||T||En||Ft||Vi(t)),i=null,e=t;;){if(e.tag===5||e.tag===26){if(i===null){T=i=e;try{if(c=T.stateNode,r)p=c.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{g=T.stateNode;var G=T.memoizedProps.style,w=G!=null&&G.hasOwnProperty("display")?G.display:null;g.style.display=w==null||typeof w=="boolean"?"":(""+w).trim()}}catch(P){Mt(T,T.return,P)}}}else if(e.tag===6){if(i===null){T=e;try{T.stateNode.nodeValue=r?"":T.memoizedProps}catch(P){Mt(T,T.return,P)}}}else if(e.tag===18){if(i===null){T=e;try{var L=T.stateNode;r?ry(L,!0):ry(T.stateNode,!1)}catch(P){Mt(T,T.return,P)}}}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;i===e&&(i=null),e=e.return}i===e&&(i=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(i=l.retryQueue,i!==null&&(l.retryQueue=null,iu(t,i))));break;case 19:ye(e,t),ve(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,iu(t,l)));break;case 30:break;case 21:break;default:ye(e,t),ve(t)}}function ve(t){var e=t.flags;if(e&2){try{for(var i,l=t.return;l!==null;){if(cp(l)){i=l;break}l=l.return}if(i==null)throw Error(u(160));switch(i.tag){case 27:var r=i.stateNode,c=tc(t);nu(t,c,r);break;case 5:var p=i.stateNode;i.flags&32&&(ea(p,""),i.flags&=-33);var g=tc(t);nu(t,g,p);break;case 3:case 4:var T=i.stateNode.containerInfo,R=tc(t);ec(t,R,T);break;default:throw Error(u(161))}}catch(U){Mt(t,t.return,U)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function bp(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;bp(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Mn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)hp(t,e.alternate,e),e=e.sibling}function Vi(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Kn(4,e,e.return),Vi(e);break;case 1:en(e,e.return);var i=e.stateNode;typeof i.componentWillUnmount=="function"&&rp(e,e.return,i),Vi(e);break;case 27:Vl(e.stateNode);case 26:case 5:en(e,e.return),Vi(e);break;case 22:e.memoizedState===null&&Vi(e);break;case 30:Vi(e);break;default:Vi(e)}t=t.sibling}}function xn(t,e,i){for(i=i&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,r=t,c=e,p=c.flags;switch(c.tag){case 0:case 11:case 15:xn(r,c,i),El(4,c);break;case 1:if(xn(r,c,i),l=c,r=l.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(R){Mt(l,l.return,R)}if(l=c,r=l.updateQueue,r!==null){var g=l.stateNode;try{var T=r.shared.hiddenCallbacks;if(T!==null)for(r.shared.hiddenCallbacks=null,r=0;r<T.length;r++)Ph(T[r],g)}catch(R){Mt(l,l.return,R)}}i&&p&64&&up(c),Al(c,c.return);break;case 27:fp(c);case 26:case 5:xn(r,c,i),i&&l===null&&p&4&&op(c),Al(c,c.return);break;case 12:xn(r,c,i);break;case 31:xn(r,c,i),i&&p&4&&yp(r,c);break;case 13:xn(r,c,i),i&&p&4&&vp(r,c);break;case 22:c.memoizedState===null&&xn(r,c,i),Al(c,c.return);break;case 30:break;default:xn(r,c,i)}e=e.sibling}}function ic(t,e){var i=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==i&&(t!=null&&t.refCount++,i!=null&&ol(i))}function ac(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ol(t))}function Fe(t,e,i,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Sp(t,e,i,l),e=e.sibling}function Sp(t,e,i,l){var r=e.flags;switch(e.tag){case 0:case 11:case 15:Fe(t,e,i,l),r&2048&&El(9,e);break;case 1:Fe(t,e,i,l);break;case 3:Fe(t,e,i,l),r&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ol(t)));break;case 12:if(r&2048){Fe(t,e,i,l),t=e.stateNode;try{var c=e.memoizedProps,p=c.id,g=c.onPostCommit;typeof g=="function"&&g(p,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(T){Mt(e,e.return,T)}}else Fe(t,e,i,l);break;case 31:Fe(t,e,i,l);break;case 13:Fe(t,e,i,l);break;case 23:break;case 22:c=e.stateNode,p=e.alternate,e.memoizedState!==null?c._visibility&2?Fe(t,e,i,l):Ml(t,e):c._visibility&2?Fe(t,e,i,l):(c._visibility|=2,Ta(t,e,i,l,(e.subtreeFlags&10256)!==0||!1)),r&2048&&ic(p,e);break;case 24:Fe(t,e,i,l),r&2048&&ac(e.alternate,e);break;default:Fe(t,e,i,l)}}function Ta(t,e,i,l,r){for(r=r&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var c=t,p=e,g=i,T=l,R=p.flags;switch(p.tag){case 0:case 11:case 15:Ta(c,p,g,T,r),El(8,p);break;case 23:break;case 22:var U=p.stateNode;p.memoizedState!==null?U._visibility&2?Ta(c,p,g,T,r):Ml(c,p):(U._visibility|=2,Ta(c,p,g,T,r)),r&&R&2048&&ic(p.alternate,p);break;case 24:Ta(c,p,g,T,r),r&&R&2048&&ac(p.alternate,p);break;default:Ta(c,p,g,T,r)}e=e.sibling}}function Ml(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var i=t,l=e,r=l.flags;switch(l.tag){case 22:Ml(i,l),r&2048&&ic(l.alternate,l);break;case 24:Ml(i,l),r&2048&&ac(l.alternate,l);break;default:Ml(i,l)}e=e.sibling}}var xl=8192;function Ea(t,e,i){if(t.subtreeFlags&xl)for(t=t.child;t!==null;)Tp(t,e,i),t=t.sibling}function Tp(t,e,i){switch(t.tag){case 26:Ea(t,e,i),t.flags&xl&&t.memoizedState!==null&&fT(i,Ze,t.memoizedState,t.memoizedProps);break;case 5:Ea(t,e,i);break;case 3:case 4:var l=Ze;Ze=vu(t.stateNode.containerInfo),Ea(t,e,i),Ze=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=xl,xl=16777216,Ea(t,e,i),xl=l):Ea(t,e,i));break;default:Ea(t,e,i)}}function Ep(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 Dl(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var i=0;i<e.length;i++){var l=e[i];It=l,Mp(l,t)}Ep(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ap(t),t=t.sibling}function Ap(t){switch(t.tag){case 0:case 11:case 15:Dl(t),t.flags&2048&&Kn(9,t,t.return);break;case 3:Dl(t);break;case 12:Dl(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,au(t)):Dl(t);break;default:Dl(t)}}function au(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var i=0;i<e.length;i++){var l=e[i];It=l,Mp(l,t)}Ep(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Kn(8,e,e.return),au(e);break;case 22:i=e.stateNode,i._visibility&2&&(i._visibility&=-3,au(e));break;default:au(e)}t=t.sibling}}function Mp(t,e){for(;It!==null;){var i=It;switch(i.tag){case 0:case 11:case 15:Kn(8,i,e);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var l=i.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:ol(i.memoizedState.cache)}if(l=i.child,l!==null)l.return=i,It=l;else t:for(i=t;It!==null;){l=It;var r=l.sibling,c=l.return;if(mp(l),l===i){It=null;break t}if(r!==null){r.return=c,It=r;break t}It=c}}}var DS={getCacheForType:function(t){var e=ne(Kt),i=e.data.get(t);return i===void 0&&(i=t(),e.data.set(t,i)),i},cacheSignal:function(){return ne(Kt).controller.signal}},CS=typeof WeakMap=="function"?WeakMap:Map,Et=0,_t=null,dt=null,mt=0,At=0,Re=null,Qn=!1,Aa=!1,lc=!1,Dn=0,Gt=0,Zn=0,Li=0,sc=0,we=0,Ma=0,Cl=null,ge=null,uc=!1,lu=0,xp=0,su=1/0,uu=null,Fn=null,Pt=0,kn=null,xa=null,Cn=0,rc=0,oc=null,Dp=null,Ol=0,cc=null;function ze(){return(Et&2)!==0&&mt!==0?mt&-mt:_.T!==null?yc():qd()}function Cp(){if(we===0)if((mt&536870912)===0||vt){var t=ps;ps<<=1,(ps&3932160)===0&&(ps=262144),we=t}else we=536870912;return t=Ce.current,t!==null&&(t.flags|=32),we}function be(t,e,i){(t===_t&&(At===2||At===9)||t.cancelPendingCommit!==null)&&(Da(t,0),Pn(t,mt,we,!1)),ka(t,i),((Et&2)===0||t!==_t)&&(t===_t&&((Et&2)===0&&(Li|=i),Gt===4&&Pn(t,mt,we,!1)),nn(t))}function Op(t,e,i){if((Et&6)!==0)throw Error(u(327));var l=!i&&(e&127)===0&&(e&t.expiredLanes)===0||Fa(t,e),r=l?wS(t,e):dc(t,e,!0),c=l;do{if(r===0){Aa&&!l&&Pn(t,e,0,!1);break}else{if(i=t.current.alternate,c&&!OS(i)){r=dc(t,e,!1),c=!1;continue}if(r===2){if(c=e,t.errorRecoveryDisabledLanes&c)var p=0;else p=t.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){e=p;t:{var g=t;r=Cl;var T=g.current.memoizedState.isDehydrated;if(T&&(Da(g,p).flags|=256),p=dc(g,p,!1),p!==2){if(lc&&!T){g.errorRecoveryDisabledLanes|=c,Li|=c,r=4;break t}c=ge,ge=r,c!==null&&(ge===null?ge=c:ge.push.apply(ge,c))}r=p}if(c=!1,r!==2)continue}}if(r===1){Da(t,0),Pn(t,e,0,!0);break}t:{switch(l=t,c=r,c){case 0:case 1:throw Error(u(345));case 4:if((e&4194048)!==e)break;case 6:Pn(l,e,we,!Qn);break t;case 2:ge=null;break;case 3:case 5:break;default:throw Error(u(329))}if((e&62914560)===e&&(r=lu+300-Ee(),10<r)){if(Pn(l,e,we,!Qn),vs(l,0,!0)!==0)break t;Cn=e,l.timeoutHandle=ly(Rp.bind(null,l,i,ge,uu,uc,e,we,Li,Ma,Qn,c,"Throttled",-0,0),r);break t}Rp(l,i,ge,uu,uc,e,we,Li,Ma,Qn,c,null,-0,0)}}break}while(!0);nn(t)}function Rp(t,e,i,l,r,c,p,g,T,R,U,G,w,L){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:dn},Tp(e,c,G);var P=(c&62914560)===c?lu-Ee():(c&4194048)===c?xp-Ee():0;if(P=dT(G,P),P!==null){Cn=c,t.cancelPendingCommit=P(Bp.bind(null,t,e,c,i,l,r,p,g,T,U,G,null,w,L)),Pn(t,c,p,!R);return}}Bp(t,e,c,i,l,r,p,g,T)}function OS(t){for(var e=t;;){var i=e.tag;if((i===0||i===11||i===15)&&e.flags&16384&&(i=e.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var l=0;l<i.length;l++){var r=i[l],c=r.getSnapshot;r=r.value;try{if(!xe(c(),r))return!1}catch{return!1}}if(i=e.child,e.subtreeFlags&16384&&i!==null)i.return=e,e=i;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 Pn(t,e,i,l){e&=~sc,e&=~Li,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var r=e;0<r;){var c=31-Me(r),p=1<<c;l[c]=-1,r&=~p}i!==0&&jd(t,i,e)}function ru(){return(Et&6)===0?(Rl(0),!1):!0}function fc(){if(dt!==null){if(At===0)var t=dt.return;else t=dt,yn=Mi=null,Co(t),ya=null,fl=0,t=dt;for(;t!==null;)sp(t.alternate,t),t=t.return;dt=null}}function Da(t,e){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,FS(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),Cn=0,fc(),_t=t,dt=i=mn(t.current,null),mt=e,At=0,Re=null,Qn=!1,Aa=Fa(t,e),lc=!1,Ma=we=sc=Li=Zn=Gt=0,ge=Cl=null,uc=!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-Me(l),c=1<<r;e|=t[r],l&=~c}return Dn=e,Rs(),i}function wp(t,e){ut=null,_.H=bl,e===pa||e===Bs?(e=Qh(),At=3):e===po?(e=Qh(),At=4):At=e===$o?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Re=e,dt===null&&(Gt=1,Js(t,Ue(e,t.current)))}function zp(){var t=Ce.current;return t===null?!0:(mt&4194048)===mt?Ge===null:(mt&62914560)===mt||(mt&536870912)!==0?t===Ge:!1}function Vp(){var t=_.H;return _.H=bl,t===null?bl:t}function Lp(){var t=_.A;return _.A=DS,t}function ou(){Gt=4,Qn||(mt&4194048)!==mt&&Ce.current!==null||(Aa=!0),(Zn&134217727)===0&&(Li&134217727)===0||_t===null||Pn(_t,mt,we,!1)}function dc(t,e,i){var l=Et;Et|=2;var r=Vp(),c=Lp();(_t!==t||mt!==e)&&(uu=null,Da(t,e)),e=!1;var p=Gt;t:do try{if(At!==0&&dt!==null){var g=dt,T=Re;switch(At){case 8:fc(),p=6;break t;case 3:case 2:case 9:case 6:Ce.current===null&&(e=!0);var R=At;if(At=0,Re=null,Ca(t,g,T,R),i&&Aa){p=0;break t}break;default:R=At,At=0,Re=null,Ca(t,g,T,R)}}RS(),p=Gt;break}catch(U){wp(t,U)}while(!0);return e&&t.shellSuspendCounter++,yn=Mi=null,Et=l,_.H=r,_.A=c,dt===null&&(_t=null,mt=0,Rs()),p}function RS(){for(;dt!==null;)_p(dt)}function wS(t,e){var i=Et;Et|=2;var l=Vp(),r=Lp();_t!==t||mt!==e?(uu=null,su=Ee()+500,Da(t,e)):Aa=Fa(t,e);t:do try{if(At!==0&&dt!==null){e=dt;var c=Re;e:switch(At){case 1:At=0,Re=null,Ca(t,e,c,1);break;case 2:case 9:if(Xh(c)){At=0,Re=null,Np(e);break}e=function(){At!==2&&At!==9||_t!==t||(At=7),nn(t)},c.then(e,e);break t;case 3:At=7;break t;case 4:At=5;break t;case 7:Xh(c)?(At=0,Re=null,Np(e)):(At=0,Re=null,Ca(t,e,c,7));break;case 5:var p=null;switch(dt.tag){case 26:p=dt.memoizedState;case 5:case 27:var g=dt;if(p?Sy(p):g.stateNode.complete){At=0,Re=null;var T=g.sibling;if(T!==null)dt=T;else{var R=g.return;R!==null?(dt=R,cu(R)):dt=null}break e}}At=0,Re=null,Ca(t,e,c,5);break;case 6:At=0,Re=null,Ca(t,e,c,6);break;case 8:fc(),Gt=6;break t;default:throw Error(u(462))}}zS();break}catch(U){wp(t,U)}while(!0);return yn=Mi=null,_.H=l,_.A=r,Et=i,dt!==null?0:(_t=null,mt=0,Rs(),Gt)}function zS(){for(;dt!==null&&!tb();)_p(dt)}function _p(t){var e=ap(t.alternate,t,Dn);t.memoizedProps=t.pendingProps,e===null?cu(t):dt=e}function Np(t){var e=t,i=e.alternate;switch(e.tag){case 15:case 0:e=Wm(i,e,e.pendingProps,e.type,void 0,mt);break;case 11:e=Wm(i,e,e.pendingProps,e.type.render,e.ref,mt);break;case 5:Co(e);default:sp(i,e),e=dt=Lh(e,Dn),e=ap(i,e,Dn)}t.memoizedProps=t.pendingProps,e===null?cu(t):dt=e}function Ca(t,e,i,l){yn=Mi=null,Co(e),ya=null,fl=0;var r=e.return;try{if(bS(t,r,e,i,mt)){Gt=1,Js(t,Ue(i,t.current)),dt=null;return}}catch(c){if(r!==null)throw dt=r,c;Gt=1,Js(t,Ue(i,t.current)),dt=null;return}e.flags&32768?(vt||l===1?t=!0:Aa||(mt&536870912)!==0?t=!1:(Qn=t=!0,(l===2||l===9||l===3||l===6)&&(l=Ce.current,l!==null&&l.tag===13&&(l.flags|=16384))),Up(e,t)):cu(e)}function cu(t){var e=t;do{if((e.flags&32768)!==0){Up(e,Qn);return}t=e.return;var i=ES(e.alternate,e,Dn);if(i!==null){dt=i;return}if(e=e.sibling,e!==null){dt=e;return}dt=e=t}while(e!==null);Gt===0&&(Gt=5)}function Up(t,e){do{var i=AS(t.alternate,t);if(i!==null){i.flags&=32767,dt=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!e&&(t=t.sibling,t!==null)){dt=t;return}dt=t=i}while(t!==null);Gt=6,dt=null}function Bp(t,e,i,l,r,c,p,g,T){t.cancelPendingCommit=null;do fu();while(Pt!==0);if((Et&6)!==0)throw Error(u(327));if(e!==null){if(e===t.current)throw Error(u(177));if(c=e.lanes|e.childLanes,c|=Ir,cb(t,i,c,p,g,T),t===_t&&(dt=_t=null,mt=0),xa=e,kn=t,Cn=i,rc=c,oc=r,Dp=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,NS(hs,function(){return qp(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=_.T,_.T=null,r=X.p,X.p=2,p=Et,Et|=4;try{MS(t,e,i)}finally{Et=p,X.p=r,_.T=l}}Pt=1,Hp(),jp(),Gp()}}function Hp(){if(Pt===1){Pt=0;var t=kn,e=xa,i=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||i){i=_.T,_.T=null;var l=X.p;X.p=2;var r=Et;Et|=4;try{gp(e,t);var c=Mc,p=Mh(t.containerInfo),g=c.focusedElem,T=c.selectionRange;if(p!==g&&g&&g.ownerDocument&&Ah(g.ownerDocument.documentElement,g)){if(T!==null&&Fr(g)){var R=T.start,U=T.end;if(U===void 0&&(U=R),"selectionStart"in g)g.selectionStart=R,g.selectionEnd=Math.min(U,g.value.length);else{var G=g.ownerDocument||document,w=G&&G.defaultView||window;if(w.getSelection){var L=w.getSelection(),P=g.textContent.length,nt=Math.min(T.start,P),Rt=T.end===void 0?nt:Math.min(T.end,P);!L.extend&&nt>Rt&&(p=Rt,Rt=nt,nt=p);var C=Eh(g,nt),M=Eh(g,Rt);if(C&&M&&(L.rangeCount!==1||L.anchorNode!==C.node||L.anchorOffset!==C.offset||L.focusNode!==M.node||L.focusOffset!==M.offset)){var O=G.createRange();O.setStart(C.node,C.offset),L.removeAllRanges(),nt>Rt?(L.addRange(O),L.extend(M.node,M.offset)):(O.setEnd(M.node,M.offset),L.addRange(O))}}}}for(G=[],L=g;L=L.parentNode;)L.nodeType===1&&G.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<G.length;g++){var H=G[g];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}Au=!!Ac,Mc=Ac=null}finally{Et=r,X.p=l,_.T=i}}t.current=e,Pt=2}}function jp(){if(Pt===2){Pt=0;var t=kn,e=xa,i=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||i){i=_.T,_.T=null;var l=X.p;X.p=2;var r=Et;Et|=4;try{hp(t,e.alternate,e)}finally{Et=r,X.p=l,_.T=i}}Pt=3}}function Gp(){if(Pt===4||Pt===3){Pt=0,eb();var t=kn,e=xa,i=Cn,l=Dp;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Pt=5:(Pt=0,xa=kn=null,Yp(t,t.pendingLanes));var r=t.pendingLanes;if(r===0&&(Fn=null),Rr(i),e=e.stateNode,Ae&&typeof Ae.onCommitFiberRoot=="function")try{Ae.onCommitFiberRoot(Za,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=_.T,r=X.p,X.p=2,_.T=null;try{for(var c=t.onRecoverableError,p=0;p<l.length;p++){var g=l[p];c(g.value,{componentStack:g.stack})}}finally{_.T=e,X.p=r}}(Cn&3)!==0&&fu(),nn(t),r=t.pendingLanes,(i&261930)!==0&&(r&42)!==0?t===cc?Ol++:(Ol=0,cc=t):Ol=0,Rl(0)}}function Yp(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,ol(e)))}function fu(){return Hp(),jp(),Gp(),qp()}function qp(){if(Pt!==5)return!1;var t=kn,e=rc;rc=0;var i=Rr(Cn),l=_.T,r=X.p;try{X.p=32>i?32:i,_.T=null,i=oc,oc=null;var c=kn,p=Cn;if(Pt=0,xa=kn=null,Cn=0,(Et&6)!==0)throw Error(u(331));var g=Et;if(Et|=4,Ap(c.current),Sp(c,c.current,p,i),Et=g,Rl(0,!1),Ae&&typeof Ae.onPostCommitFiberRoot=="function")try{Ae.onPostCommitFiberRoot(Za,c)}catch{}return!0}finally{X.p=r,_.T=l,Yp(t,e)}}function $p(t,e,i){e=Ue(i,e),e=qo(t.stateNode,e,2),t=qn(t,e,2),t!==null&&(ka(t,2),nn(t))}function Mt(t,e,i){if(t.tag===3)$p(t,t,i);else for(;e!==null;){if(e.tag===3){$p(e,t,i);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Fn===null||!Fn.has(l))){t=Ue(i,t),i=Xm(2),l=qn(e,i,2),l!==null&&(Km(i,l,e,t),ka(l,2),nn(l));break}}e=e.return}}function hc(t,e,i){var l=t.pingCache;if(l===null){l=t.pingCache=new CS;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(i)||(lc=!0,r.add(i),t=VS.bind(null,t,e,i),e.then(t,t))}function VS(t,e,i){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,_t===t&&(mt&i)===i&&(Gt===4||Gt===3&&(mt&62914560)===mt&&300>Ee()-lu?(Et&2)===0&&Da(t,0):sc|=i,Ma===mt&&(Ma=0)),nn(t)}function Xp(t,e){e===0&&(e=Hd()),t=Ti(t,e),t!==null&&(ka(t,e),nn(t))}function LS(t){var e=t.memoizedState,i=0;e!==null&&(i=e.retryLane),Xp(t,i)}function _S(t,e){var i=0;switch(t.tag){case 31:case 13:var l=t.stateNode,r=t.memoizedState;r!==null&&(i=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),Xp(t,i)}function NS(t,e){return xr(t,e)}var du=null,Oa=null,mc=!1,hu=!1,pc=!1,Jn=0;function nn(t){t!==Oa&&t.next===null&&(Oa===null?du=Oa=t:Oa=Oa.next=t),hu=!0,mc||(mc=!0,BS())}function Rl(t,e){if(!pc&&hu){pc=!0;do for(var i=!1,l=du;l!==null;){if(t!==0){var r=l.pendingLanes;if(r===0)var c=0;else{var p=l.suspendedLanes,g=l.pingedLanes;c=(1<<31-Me(42|t)+1)-1,c&=r&~(p&~g),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(i=!0,Fp(l,c))}else c=mt,c=vs(l,l===_t?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||Fa(l,c)||(i=!0,Fp(l,c));l=l.next}while(i);pc=!1}}function US(){Kp()}function Kp(){hu=mc=!1;var t=0;Jn!==0&&ZS()&&(t=Jn);for(var e=Ee(),i=null,l=du;l!==null;){var r=l.next,c=Qp(l,e);c===0?(l.next=null,i===null?du=r:i.next=r,r===null&&(Oa=i)):(i=l,(t!==0||(c&3)!==0)&&(hu=!0)),l=r}Pt!==0&&Pt!==5||Rl(t),Jn!==0&&(Jn=0)}function Qp(t,e){for(var i=t.suspendedLanes,l=t.pingedLanes,r=t.expirationTimes,c=t.pendingLanes&-62914561;0<c;){var p=31-Me(c),g=1<<p,T=r[p];T===-1?((g&i)===0||(g&l)!==0)&&(r[p]=ob(g,e)):T<=e&&(t.expiredLanes|=g),c&=~g}if(e=_t,i=mt,i=vs(t,t===e?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,i===0||t===e&&(At===2||At===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&Dr(l),t.callbackNode=null,t.callbackPriority=0;if((i&3)===0||Fa(t,i)){if(e=i&-i,e===t.callbackPriority)return e;switch(l!==null&&Dr(l),Rr(i)){case 2:case 8:i=Ud;break;case 32:i=hs;break;case 268435456:i=Bd;break;default:i=hs}return l=Zp.bind(null,t),i=xr(i,l),t.callbackPriority=e,t.callbackNode=i,e}return l!==null&&l!==null&&Dr(l),t.callbackPriority=2,t.callbackNode=null,2}function Zp(t,e){if(Pt!==0&&Pt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(fu()&&t.callbackNode!==i)return null;var l=mt;return l=vs(t,t===_t?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(Op(t,l,e),Qp(t,Ee()),t.callbackNode!=null&&t.callbackNode===i?Zp.bind(null,t):null)}function Fp(t,e){if(fu())return null;Op(t,e,!0)}function BS(){kS(function(){(Et&6)!==0?xr(Nd,US):Kp()})}function yc(){if(Jn===0){var t=ha;t===0&&(t=ms,ms<<=1,(ms&261888)===0&&(ms=256)),Jn=t}return Jn}function kp(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Ts(""+t)}function Pp(t,e){var i=e.ownerDocument.createElement("input");return i.name=e.name,i.value=e.value,t.id&&i.setAttribute("form",t.id),e.parentNode.insertBefore(i,e),t=new FormData(t),i.parentNode.removeChild(i),t}function HS(t,e,i,l,r){if(e==="submit"&&i&&i.stateNode===r){var c=kp((r[he]||null).action),p=l.submitter;p&&(e=(e=p[he]||null)?kp(e.formAction):p.getAttribute("formAction"),e!==null&&(c=e,p=null));var g=new xs("action","action",null,l,r);t.push({event:g,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Jn!==0){var T=p?Pp(r,p):new FormData(r);Uo(i,{pending:!0,data:T,method:r.method,action:c},null,T)}}else typeof c=="function"&&(g.preventDefault(),T=p?Pp(r,p):new FormData(r),Uo(i,{pending:!0,data:T,method:r.method,action:c},c,T))},currentTarget:r}]})}}for(var vc=0;vc<Wr.length;vc++){var gc=Wr[vc],jS=gc.toLowerCase(),GS=gc[0].toUpperCase()+gc.slice(1);Qe(jS,"on"+GS)}Qe(Ch,"onAnimationEnd"),Qe(Oh,"onAnimationIteration"),Qe(Rh,"onAnimationStart"),Qe("dblclick","onDoubleClick"),Qe("focusin","onFocus"),Qe("focusout","onBlur"),Qe(nS,"onTransitionRun"),Qe(iS,"onTransitionStart"),Qe(aS,"onTransitionCancel"),Qe(wh,"onTransitionEnd"),Ii("onMouseEnter",["mouseout","mouseover"]),Ii("onMouseLeave",["mouseout","mouseover"]),Ii("onPointerEnter",["pointerout","pointerover"]),Ii("onPointerLeave",["pointerout","pointerover"]),vi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),vi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),vi("onBeforeInput",["compositionend","keypress","textInput","paste"]),vi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),vi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),vi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wl="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(" "),YS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(wl));function Jp(t,e){e=(e&4)!==0;for(var i=0;i<t.length;i++){var l=t[i],r=l.event;l=l.listeners;t:{var c=void 0;if(e)for(var p=l.length-1;0<=p;p--){var g=l[p],T=g.instance,R=g.currentTarget;if(g=g.listener,T!==c&&r.isPropagationStopped())break t;c=g,r.currentTarget=R;try{c(r)}catch(U){Os(U)}r.currentTarget=null,c=T}else for(p=0;p<l.length;p++){if(g=l[p],T=g.instance,R=g.currentTarget,g=g.listener,T!==c&&r.isPropagationStopped())break t;c=g,r.currentTarget=R;try{c(r)}catch(U){Os(U)}r.currentTarget=null,c=T}}}}function ht(t,e){var i=e[wr];i===void 0&&(i=e[wr]=new Set);var l=t+"__bubble";i.has(l)||(Wp(e,t,2,!1),i.add(l))}function bc(t,e,i){var l=0;e&&(l|=4),Wp(i,t,l,e)}var mu="_reactListening"+Math.random().toString(36).slice(2);function Sc(t){if(!t[mu]){t[mu]=!0,Kd.forEach(function(i){i!=="selectionchange"&&(YS.has(i)||bc(i,!1,t),bc(i,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[mu]||(e[mu]=!0,bc("selectionchange",!1,e))}}function Wp(t,e,i,l){switch(Cy(e)){case 2:var r=pT;break;case 8:r=yT;break;default:r=Nc}i=r.bind(null,e,i,t),r=void 0,!jr||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(r=!0),l?r!==void 0?t.addEventListener(e,i,{capture:!0,passive:r}):t.addEventListener(e,i,!0):r!==void 0?t.addEventListener(e,i,{passive:r}):t.addEventListener(e,i,!1)}function Tc(t,e,i,l,r){var c=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var p=l.tag;if(p===3||p===4){var g=l.stateNode.containerInfo;if(g===r)break;if(p===4)for(p=l.return;p!==null;){var T=p.tag;if((T===3||T===4)&&p.stateNode.containerInfo===r)return;p=p.return}for(;g!==null;){if(p=Pi(g),p===null)return;if(T=p.tag,T===5||T===6||T===26||T===27){l=c=p;continue t}g=g.parentNode}}l=l.return}ih(function(){var R=c,U=Br(i),G=[];t:{var w=zh.get(t);if(w!==void 0){var L=xs,P=t;switch(t){case"keypress":if(As(i)===0)break t;case"keydown":case"keyup":L=_b;break;case"focusin":P="focus",L=$r;break;case"focusout":P="blur",L=$r;break;case"beforeblur":case"afterblur":L=$r;break;case"click":if(i.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":L=sh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=Eb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=Bb;break;case Ch:case Oh:case Rh:L=xb;break;case wh:L=jb;break;case"scroll":case"scrollend":L=Sb;break;case"wheel":L=Yb;break;case"copy":case"cut":case"paste":L=Cb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=rh;break;case"toggle":case"beforetoggle":L=$b}var nt=(e&4)!==0,Rt=!nt&&(t==="scroll"||t==="scrollend"),C=nt?w!==null?w+"Capture":null:w;nt=[];for(var M=R,O;M!==null;){var H=M;if(O=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||O===null||C===null||(H=Wa(M,C),H!=null&&nt.push(zl(M,H,O))),Rt)break;M=M.return}0<nt.length&&(w=new L(w,P,null,i,U),G.push({event:w,listeners:nt}))}}if((e&7)===0){t:{if(w=t==="mouseover"||t==="pointerover",L=t==="mouseout"||t==="pointerout",w&&i!==Ur&&(P=i.relatedTarget||i.fromElement)&&(Pi(P)||P[ki]))break t;if((L||w)&&(w=U.window===U?U:(w=U.ownerDocument)?w.defaultView||w.parentWindow:window,L?(P=i.relatedTarget||i.toElement,L=R,P=P?Pi(P):null,P!==null&&(Rt=d(P),nt=P.tag,P!==Rt||nt!==5&&nt!==27&&nt!==6)&&(P=null)):(L=null,P=R),L!==P)){if(nt=sh,H="onMouseLeave",C="onMouseEnter",M="mouse",(t==="pointerout"||t==="pointerover")&&(nt=rh,H="onPointerLeave",C="onPointerEnter",M="pointer"),Rt=L==null?w:Ja(L),O=P==null?w:Ja(P),w=new nt(H,M+"leave",L,i,U),w.target=Rt,w.relatedTarget=O,H=null,Pi(U)===R&&(nt=new nt(C,M+"enter",P,i,U),nt.target=O,nt.relatedTarget=Rt,H=nt),Rt=H,L&&P)e:{for(nt=qS,C=L,M=P,O=0,H=C;H;H=nt(H))O++;H=0;for(var I=M;I;I=nt(I))H++;for(;0<O-H;)C=nt(C),O--;for(;0<H-O;)M=nt(M),H--;for(;O--;){if(C===M||M!==null&&C===M.alternate){nt=C;break e}C=nt(C),M=nt(M)}nt=null}else nt=null;L!==null&&Ip(G,w,L,nt,!1),P!==null&&Rt!==null&&Ip(G,Rt,P,nt,!0)}}t:{if(w=R?Ja(R):window,L=w.nodeName&&w.nodeName.toLowerCase(),L==="select"||L==="input"&&w.type==="file")var St=yh;else if(mh(w))if(vh)St=Ib;else{St=Jb;var W=Pb}else L=w.nodeName,!L||L.toLowerCase()!=="input"||w.type!=="checkbox"&&w.type!=="radio"?R&&Nr(R.elementType)&&(St=yh):St=Wb;if(St&&(St=St(t,R))){ph(G,St,i,U);break t}W&&W(t,w,R),t==="focusout"&&R&&w.type==="number"&&R.memoizedProps.value!=null&&_r(w,"number",w.value)}switch(W=R?Ja(R):window,t){case"focusin":(mh(W)||W.contentEditable==="true")&&(la=W,kr=R,sl=null);break;case"focusout":sl=kr=la=null;break;case"mousedown":Pr=!0;break;case"contextmenu":case"mouseup":case"dragend":Pr=!1,xh(G,i,U);break;case"selectionchange":if(eS)break;case"keydown":case"keyup":xh(G,i,U)}var rt;if(Kr)t:{switch(t){case"compositionstart":var pt="onCompositionStart";break t;case"compositionend":pt="onCompositionEnd";break t;case"compositionupdate":pt="onCompositionUpdate";break t}pt=void 0}else aa?dh(t,i)&&(pt="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(pt="onCompositionStart");pt&&(oh&&i.locale!=="ko"&&(aa||pt!=="onCompositionStart"?pt==="onCompositionEnd"&&aa&&(rt=ah()):(Nn=U,Gr="value"in Nn?Nn.value:Nn.textContent,aa=!0)),W=pu(R,pt),0<W.length&&(pt=new uh(pt,t,null,i,U),G.push({event:pt,listeners:W}),rt?pt.data=rt:(rt=hh(i),rt!==null&&(pt.data=rt)))),(rt=Kb?Qb(t,i):Zb(t,i))&&(pt=pu(R,"onBeforeInput"),0<pt.length&&(W=new uh("onBeforeInput","beforeinput",null,i,U),G.push({event:W,listeners:pt}),W.data=rt)),HS(G,t,R,i,U)}Jp(G,e)})}function zl(t,e,i){return{instance:t,listener:e,currentTarget:i}}function pu(t,e){for(var i=e+"Capture",l=[];t!==null;){var r=t,c=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||c===null||(r=Wa(t,i),r!=null&&l.unshift(zl(t,r,c)),r=Wa(t,e),r!=null&&l.push(zl(t,r,c))),t.tag===3)return l;t=t.return}return[]}function qS(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Ip(t,e,i,l,r){for(var c=e._reactName,p=[];i!==null&&i!==l;){var g=i,T=g.alternate,R=g.stateNode;if(g=g.tag,T!==null&&T===l)break;g!==5&&g!==26&&g!==27||R===null||(T=R,r?(R=Wa(i,c),R!=null&&p.unshift(zl(i,R,T))):r||(R=Wa(i,c),R!=null&&p.push(zl(i,R,T)))),i=i.return}p.length!==0&&t.push({event:e,listeners:p})}var $S=/\r\n?/g,XS=/\u0000|\uFFFD/g;function ty(t){return(typeof t=="string"?t:""+t).replace($S,`
49
+ `).replace(XS,"")}function ey(t,e){return e=ty(e),ty(t)===e}function Ot(t,e,i,l,r,c){switch(i){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||ea(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&ea(t,""+l);break;case"className":bs(t,"class",l);break;case"tabIndex":bs(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":bs(t,i,l);break;case"style":eh(t,l,c);break;case"data":if(e!=="object"){bs(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||i!=="href")){t.removeAttribute(i);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(i);break}l=Ts(""+l),t.setAttribute(i,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(i,"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 c=="function"&&(i==="formAction"?(e!=="input"&&Ot(t,e,"name",r.name,r,null),Ot(t,e,"formEncType",r.formEncType,r,null),Ot(t,e,"formMethod",r.formMethod,r,null),Ot(t,e,"formTarget",r.formTarget,r,null)):(Ot(t,e,"encType",r.encType,r,null),Ot(t,e,"method",r.method,r,null),Ot(t,e,"target",r.target,r,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(i);break}l=Ts(""+l),t.setAttribute(i,l);break;case"onClick":l!=null&&(t.onclick=dn);break;case"onScroll":l!=null&&ht("scroll",t);break;case"onScrollEnd":l!=null&&ht("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(u(61));if(i=l.__html,i!=null){if(r.children!=null)throw Error(u(60));t.innerHTML=i}}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}i=Ts(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);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(i,""+l):t.removeAttribute(i);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(i,""):t.removeAttribute(i);break;case"capture":case"download":l===!0?t.setAttribute(i,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(i,l):t.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(i,l):t.removeAttribute(i);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(i):t.setAttribute(i,l);break;case"popover":ht("beforetoggle",t),ht("toggle",t),gs(t,"popover",l);break;case"xlinkActuate":fn(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":fn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":fn(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":fn(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":fn(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":fn(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":fn(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":fn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":fn(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":gs(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=gb.get(i)||i,gs(t,i,l))}}function Ec(t,e,i,l,r,c){switch(i){case"style":eh(t,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(u(61));if(i=l.__html,i!=null){if(r.children!=null)throw Error(u(60));t.innerHTML=i}}break;case"children":typeof l=="string"?ea(t,l):(typeof l=="number"||typeof l=="bigint")&&ea(t,""+l);break;case"onScroll":l!=null&&ht("scroll",t);break;case"onScrollEnd":l!=null&&ht("scrollend",t);break;case"onClick":l!=null&&(t.onclick=dn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Qd.hasOwnProperty(i))t:{if(i[0]==="o"&&i[1]==="n"&&(r=i.endsWith("Capture"),e=i.slice(2,r?i.length-7:void 0),c=t[he]||null,c=c!=null?c[i]:null,typeof c=="function"&&t.removeEventListener(e,c,r),typeof l=="function")){typeof c!="function"&&c!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(e,l,r);break t}i in t?t[i]=l:l===!0?t.setAttribute(i,""):gs(t,i,l)}}}function ae(t,e,i){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ht("error",t),ht("load",t);var l=!1,r=!1,c;for(c in i)if(i.hasOwnProperty(c)){var p=i[c];if(p!=null)switch(c){case"src":l=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,e));default:Ot(t,e,c,p,i,null)}}r&&Ot(t,e,"srcSet",i.srcSet,i,null),l&&Ot(t,e,"src",i.src,i,null);return;case"input":ht("invalid",t);var g=c=p=r=null,T=null,R=null;for(l in i)if(i.hasOwnProperty(l)){var U=i[l];if(U!=null)switch(l){case"name":r=U;break;case"type":p=U;break;case"checked":T=U;break;case"defaultChecked":R=U;break;case"value":c=U;break;case"defaultValue":g=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(u(137,e));break;default:Ot(t,e,l,U,i,null)}}Jd(t,c,g,T,R,p,r,!1);return;case"select":ht("invalid",t),l=p=c=null;for(r in i)if(i.hasOwnProperty(r)&&(g=i[r],g!=null))switch(r){case"value":c=g;break;case"defaultValue":p=g;break;case"multiple":l=g;default:Ot(t,e,r,g,i,null)}e=c,i=p,t.multiple=!!l,e!=null?ta(t,!!l,e,!1):i!=null&&ta(t,!!l,i,!0);return;case"textarea":ht("invalid",t),c=r=l=null;for(p in i)if(i.hasOwnProperty(p)&&(g=i[p],g!=null))switch(p){case"value":l=g;break;case"defaultValue":r=g;break;case"children":c=g;break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(u(91));break;default:Ot(t,e,p,g,i,null)}Id(t,l,r,c);return;case"option":for(T in i)if(i.hasOwnProperty(T)&&(l=i[T],l!=null))switch(T){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ot(t,e,T,l,i,null)}return;case"dialog":ht("beforetoggle",t),ht("toggle",t),ht("cancel",t),ht("close",t);break;case"iframe":case"object":ht("load",t);break;case"video":case"audio":for(l=0;l<wl.length;l++)ht(wl[l],t);break;case"image":ht("error",t),ht("load",t);break;case"details":ht("toggle",t);break;case"embed":case"source":case"link":ht("error",t),ht("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(R in i)if(i.hasOwnProperty(R)&&(l=i[R],l!=null))switch(R){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,e));default:Ot(t,e,R,l,i,null)}return;default:if(Nr(e)){for(U in i)i.hasOwnProperty(U)&&(l=i[U],l!==void 0&&Ec(t,e,U,l,i,void 0));return}}for(g in i)i.hasOwnProperty(g)&&(l=i[g],l!=null&&Ot(t,e,g,l,i,null))}function KS(t,e,i,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,c=null,p=null,g=null,T=null,R=null,U=null;for(L in i){var G=i[L];if(i.hasOwnProperty(L)&&G!=null)switch(L){case"checked":break;case"value":break;case"defaultValue":T=G;default:l.hasOwnProperty(L)||Ot(t,e,L,null,l,G)}}for(var w in l){var L=l[w];if(G=i[w],l.hasOwnProperty(w)&&(L!=null||G!=null))switch(w){case"type":c=L;break;case"name":r=L;break;case"checked":R=L;break;case"defaultChecked":U=L;break;case"value":p=L;break;case"defaultValue":g=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(u(137,e));break;default:L!==G&&Ot(t,e,w,L,l,G)}}Lr(t,p,g,T,R,U,c,r);return;case"select":L=p=g=w=null;for(c in i)if(T=i[c],i.hasOwnProperty(c)&&T!=null)switch(c){case"value":break;case"multiple":L=T;default:l.hasOwnProperty(c)||Ot(t,e,c,null,l,T)}for(r in l)if(c=l[r],T=i[r],l.hasOwnProperty(r)&&(c!=null||T!=null))switch(r){case"value":w=c;break;case"defaultValue":g=c;break;case"multiple":p=c;default:c!==T&&Ot(t,e,r,c,l,T)}e=g,i=p,l=L,w!=null?ta(t,!!i,w,!1):!!l!=!!i&&(e!=null?ta(t,!!i,e,!0):ta(t,!!i,i?[]:"",!1));return;case"textarea":L=w=null;for(g in i)if(r=i[g],i.hasOwnProperty(g)&&r!=null&&!l.hasOwnProperty(g))switch(g){case"value":break;case"children":break;default:Ot(t,e,g,null,l,r)}for(p in l)if(r=l[p],c=i[p],l.hasOwnProperty(p)&&(r!=null||c!=null))switch(p){case"value":w=r;break;case"defaultValue":L=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(u(91));break;default:r!==c&&Ot(t,e,p,r,l,c)}Wd(t,w,L);return;case"option":for(var P in i)if(w=i[P],i.hasOwnProperty(P)&&w!=null&&!l.hasOwnProperty(P))switch(P){case"selected":t.selected=!1;break;default:Ot(t,e,P,null,l,w)}for(T in l)if(w=l[T],L=i[T],l.hasOwnProperty(T)&&w!==L&&(w!=null||L!=null))switch(T){case"selected":t.selected=w&&typeof w!="function"&&typeof w!="symbol";break;default:Ot(t,e,T,w,l,L)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var nt in i)w=i[nt],i.hasOwnProperty(nt)&&w!=null&&!l.hasOwnProperty(nt)&&Ot(t,e,nt,null,l,w);for(R in l)if(w=l[R],L=i[R],l.hasOwnProperty(R)&&w!==L&&(w!=null||L!=null))switch(R){case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(u(137,e));break;default:Ot(t,e,R,w,l,L)}return;default:if(Nr(e)){for(var Rt in i)w=i[Rt],i.hasOwnProperty(Rt)&&w!==void 0&&!l.hasOwnProperty(Rt)&&Ec(t,e,Rt,void 0,l,w);for(U in l)w=l[U],L=i[U],!l.hasOwnProperty(U)||w===L||w===void 0&&L===void 0||Ec(t,e,U,w,l,L);return}}for(var C in i)w=i[C],i.hasOwnProperty(C)&&w!=null&&!l.hasOwnProperty(C)&&Ot(t,e,C,null,l,w);for(G in l)w=l[G],L=i[G],!l.hasOwnProperty(G)||w===L||w==null&&L==null||Ot(t,e,G,w,l,L)}function ny(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function QS(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,i=performance.getEntriesByType("resource"),l=0;l<i.length;l++){var r=i[l],c=r.transferSize,p=r.initiatorType,g=r.duration;if(c&&g&&ny(p)){for(p=0,g=r.responseEnd,l+=1;l<i.length;l++){var T=i[l],R=T.startTime;if(R>g)break;var U=T.transferSize,G=T.initiatorType;U&&ny(G)&&(T=T.responseEnd,p+=U*(T<g?1:(g-R)/(T-R)))}if(--l,e+=8*(c+p)/(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 Ac=null,Mc=null;function yu(t){return t.nodeType===9?t:t.ownerDocument}function iy(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 ay(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 xc(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 Dc=null;function ZS(){var t=window.event;return t&&t.type==="popstate"?t===Dc?!1:(Dc=t,!0):(Dc=null,!1)}var ly=typeof setTimeout=="function"?setTimeout:void 0,FS=typeof clearTimeout=="function"?clearTimeout:void 0,sy=typeof Promise=="function"?Promise:void 0,kS=typeof queueMicrotask=="function"?queueMicrotask:typeof sy<"u"?function(t){return sy.resolve(null).then(t).catch(PS)}:ly;function PS(t){setTimeout(function(){throw t})}function Wn(t){return t==="head"}function uy(t,e){var i=e,l=0;do{var r=i.nextSibling;if(t.removeChild(i),r&&r.nodeType===8)if(i=r.data,i==="/$"||i==="/&"){if(l===0){t.removeChild(r),Va(e);return}l--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")l++;else if(i==="html")Vl(t.ownerDocument.documentElement);else if(i==="head"){i=t.ownerDocument.head,Vl(i);for(var c=i.firstChild;c;){var p=c.nextSibling,g=c.nodeName;c[Pa]||g==="SCRIPT"||g==="STYLE"||g==="LINK"&&c.rel.toLowerCase()==="stylesheet"||i.removeChild(c),c=p}}else i==="body"&&Vl(t.ownerDocument.body);i=r}while(i);Va(e)}function ry(t,e){var i=t;t=0;do{var l=i.nextSibling;if(i.nodeType===1?e?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(e?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),l&&l.nodeType===8)if(i=l.data,i==="/$"){if(t===0)break;t--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||t++;i=l}while(i)}function Cc(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var i=e;switch(e=e.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Cc(i),zr(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function JS(t,e,i,l){for(;t.nodeType===1;){var r=i;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[Pa])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(c=t.getAttribute("rel"),c==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(c!==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(c=t.getAttribute("src"),(c!==(r.src==null?null:r.src)||t.getAttribute("type")!==(r.type==null?null:r.type)||t.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&c&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var c=r.name==null?null:""+r.name;if(r.type==="hidden"&&t.getAttribute("name")===c)return t}else return t;if(t=Ye(t.nextSibling),t===null)break}return null}function WS(t,e,i){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=Ye(t.nextSibling),t===null))return null;return t}function oy(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ye(t.nextSibling),t===null))return null;return t}function Oc(t){return t.data==="$?"||t.data==="$~"}function Rc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function IS(t,e){var i=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||i.readyState!=="loading")e();else{var l=function(){e(),i.removeEventListener("DOMContentLoaded",l)};i.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function Ye(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 wc=null;function cy(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var i=t.data;if(i==="/$"||i==="/&"){if(e===0)return Ye(t.nextSibling);e--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||e++}t=t.nextSibling}return null}function fy(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var i=t.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(e===0)return t;e--}else i!=="/$"&&i!=="/&"||e++}t=t.previousSibling}return null}function dy(t,e,i){switch(e=yu(i),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 Vl(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);zr(t)}var qe=new Map,hy=new Set;function vu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var On=X.d;X.d={f:tT,r:eT,D:nT,C:iT,L:aT,m:lT,X:uT,S:sT,M:rT};function tT(){var t=On.f(),e=ru();return t||e}function eT(t){var e=Ji(t);e!==null&&e.tag===5&&e.type==="form"?wm(e):On.r(t)}var Ra=typeof document>"u"?null:document;function my(t,e,i){var l=Ra;if(l&&typeof e=="string"&&e){var r=_e(e);r='link[rel="'+t+'"][href="'+r+'"]',typeof i=="string"&&(r+='[crossorigin="'+i+'"]'),hy.has(r)||(hy.add(r),t={rel:t,crossOrigin:i,href:e},l.querySelector(r)===null&&(e=l.createElement("link"),ae(e,"link",t),Wt(e),l.head.appendChild(e)))}}function nT(t){On.D(t),my("dns-prefetch",t,null)}function iT(t,e){On.C(t,e),my("preconnect",t,e)}function aT(t,e,i){On.L(t,e,i);var l=Ra;if(l&&t&&e){var r='link[rel="preload"][as="'+_e(e)+'"]';e==="image"&&i&&i.imageSrcSet?(r+='[imagesrcset="'+_e(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(r+='[imagesizes="'+_e(i.imageSizes)+'"]')):r+='[href="'+_e(t)+'"]';var c=r;switch(e){case"style":c=wa(t);break;case"script":c=za(t)}qe.has(c)||(t=b({rel:"preload",href:e==="image"&&i&&i.imageSrcSet?void 0:t,as:e},i),qe.set(c,t),l.querySelector(r)!==null||e==="style"&&l.querySelector(Ll(c))||e==="script"&&l.querySelector(_l(c))||(e=l.createElement("link"),ae(e,"link",t),Wt(e),l.head.appendChild(e)))}}function lT(t,e){On.m(t,e);var i=Ra;if(i&&t){var l=e&&typeof e.as=="string"?e.as:"script",r='link[rel="modulepreload"][as="'+_e(l)+'"][href="'+_e(t)+'"]',c=r;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=za(t)}if(!qe.has(c)&&(t=b({rel:"modulepreload",href:t},e),qe.set(c,t),i.querySelector(r)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(_l(c)))return}l=i.createElement("link"),ae(l,"link",t),Wt(l),i.head.appendChild(l)}}}function sT(t,e,i){On.S(t,e,i);var l=Ra;if(l&&t){var r=Wi(l).hoistableStyles,c=wa(t);e=e||"default";var p=r.get(c);if(!p){var g={loading:0,preload:null};if(p=l.querySelector(Ll(c)))g.loading=5;else{t=b({rel:"stylesheet",href:t,"data-precedence":e},i),(i=qe.get(c))&&zc(t,i);var T=p=l.createElement("link");Wt(T),ae(T,"link",t),T._p=new Promise(function(R,U){T.onload=R,T.onerror=U}),T.addEventListener("load",function(){g.loading|=1}),T.addEventListener("error",function(){g.loading|=2}),g.loading|=4,gu(p,e,l)}p={type:"stylesheet",instance:p,count:1,state:g},r.set(c,p)}}}function uT(t,e){On.X(t,e);var i=Ra;if(i&&t){var l=Wi(i).hoistableScripts,r=za(t),c=l.get(r);c||(c=i.querySelector(_l(r)),c||(t=b({src:t,async:!0},e),(e=qe.get(r))&&Vc(t,e),c=i.createElement("script"),Wt(c),ae(c,"link",t),i.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(r,c))}}function rT(t,e){On.M(t,e);var i=Ra;if(i&&t){var l=Wi(i).hoistableScripts,r=za(t),c=l.get(r);c||(c=i.querySelector(_l(r)),c||(t=b({src:t,async:!0,type:"module"},e),(e=qe.get(r))&&Vc(t,e),c=i.createElement("script"),Wt(c),ae(c,"link",t),i.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(r,c))}}function py(t,e,i,l){var r=(r=ft.current)?vu(r):null;if(!r)throw Error(u(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(e=wa(i.href),i=Wi(r).hoistableStyles,l=i.get(e),l||(l={type:"style",instance:null,count:0,state:null},i.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){t=wa(i.href);var c=Wi(r).hoistableStyles,p=c.get(t);if(p||(r=r.ownerDocument||r,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(t,p),(c=r.querySelector(Ll(t)))&&!c._p&&(p.instance=c,p.state.loading=5),qe.has(t)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},qe.set(t,i),c||oT(r,t,i,p.state))),e&&l===null)throw Error(u(528,""));return p}if(e&&l!==null)throw Error(u(529,""));return null;case"script":return e=i.async,i=i.src,typeof i=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=za(i),i=Wi(r).hoistableScripts,l=i.get(e),l||(l={type:"script",instance:null,count:0,state:null},i.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,t))}}function wa(t){return'href="'+_e(t)+'"'}function Ll(t){return'link[rel="stylesheet"]['+t+"]"}function yy(t){return b({},t,{"data-precedence":t.precedence,precedence:null})}function oT(t,e,i,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}),ae(e,"link",i),Wt(e),t.head.appendChild(e))}function za(t){return'[src="'+_e(t)+'"]'}function _l(t){return"script[async]"+t}function vy(t,e,i){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+_e(i.href)+'"]');if(l)return e.instance=l,Wt(l),l;var r=b({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),Wt(l),ae(l,"style",r),gu(l,i.precedence,t),e.instance=l;case"stylesheet":r=wa(i.href);var c=t.querySelector(Ll(r));if(c)return e.state.loading|=4,e.instance=c,Wt(c),c;l=yy(i),(r=qe.get(r))&&zc(l,r),c=(t.ownerDocument||t).createElement("link"),Wt(c);var p=c;return p._p=new Promise(function(g,T){p.onload=g,p.onerror=T}),ae(c,"link",l),e.state.loading|=4,gu(c,i.precedence,t),e.instance=c;case"script":return c=za(i.src),(r=t.querySelector(_l(c)))?(e.instance=r,Wt(r),r):(l=i,(r=qe.get(c))&&(l=b({},i),Vc(l,r)),t=t.ownerDocument||t,r=t.createElement("script"),Wt(r),ae(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,gu(l,i.precedence,t));return e.instance}function gu(t,e,i){for(var l=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=l.length?l[l.length-1]:null,c=r,p=0;p<l.length;p++){var g=l[p];if(g.dataset.precedence===e)c=g;else if(c!==r)break}c?c.parentNode.insertBefore(t,c.nextSibling):(e=i.nodeType===9?i.head:i,e.insertBefore(t,e.firstChild))}function zc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Vc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var bu=null;function gy(t,e,i){if(bu===null){var l=new Map,r=bu=new Map;r.set(i,l)}else r=bu,l=r.get(i),l||(l=new Map,r.set(i,l));if(l.has(t))return l;for(l.set(t,null),i=i.getElementsByTagName(t),r=0;r<i.length;r++){var c=i[r];if(!(c[Pa]||c[te]||t==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var p=c.getAttribute(e)||"";p=t+p;var g=l.get(p);g?g.push(c):l.set(p,[c])}}return l}function by(t,e,i){t=t.ownerDocument||t,t.head.insertBefore(i,e==="title"?t.querySelector("head > title"):null)}function cT(t,e,i){if(i===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 Sy(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function fT(t,e,i,l){if(i.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var r=wa(l.href),c=e.querySelector(Ll(r));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Su.bind(t),e.then(t,t)),i.state.loading|=4,i.instance=c,Wt(c);return}c=e.ownerDocument||e,l=yy(l),(r=qe.get(r))&&zc(l,r),c=c.createElement("link"),Wt(c);var p=c;p._p=new Promise(function(g,T){p.onload=g,p.onerror=T}),ae(c,"link",l),i.instance=c}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(i,e),(e=i.state.preload)&&(i.state.loading&3)===0&&(t.count++,i=Su.bind(t),e.addEventListener("load",i),e.addEventListener("error",i))}}var Lc=0;function dT(t,e){return t.stylesheets&&t.count===0&&Eu(t,t.stylesheets),0<t.count||0<t.imgCount?function(i){var l=setTimeout(function(){if(t.stylesheets&&Eu(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4+e);0<t.imgBytes&&Lc===0&&(Lc=62500*QS());var r=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Eu(t,t.stylesheets),t.unsuspend)){var c=t.unsuspend;t.unsuspend=null,c()}},(t.imgBytes>Lc?50:800)+e);return t.unsuspend=i,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(r)}}:null}function Su(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Eu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Tu=null;function Eu(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Tu=new Map,e.forEach(hT,t),Tu=null,Su.call(t))}function hT(t,e){if(!(e.state.loading&4)){var i=Tu.get(t);if(i)var l=i.get(null);else{i=new Map,Tu.set(t,i);for(var r=t.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<r.length;c++){var p=r[c];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(i.set(p.dataset.precedence,p),l=p)}l&&i.set(null,l)}r=e.instance,p=r.getAttribute("data-precedence"),c=i.get(p)||l,c===l&&i.set(null,r),i.set(p,r),this.count++,l=Su.bind(this),r.addEventListener("load",l),r.addEventListener("error",l),c?c.parentNode.insertBefore(r,c.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(r,t.firstChild)),e.state.loading|=4}}var Nl={$$typeof:B,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function mT(t,e,i,l,r,c,p,g,T){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Cr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cr(0),this.hiddenUpdates=Cr(null),this.identifierPrefix=l,this.onUncaughtError=r,this.onCaughtError=c,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function Ty(t,e,i,l,r,c,p,g,T,R,U,G){return t=new mT(t,e,i,p,T,R,U,G,g),e=1,c===!0&&(e|=24),c=De(3,null,null,e),t.current=c,c.stateNode=t,e=fo(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:l,isDehydrated:i,cache:e},yo(c),t}function Ey(t){return t?(t=ra,t):ra}function Ay(t,e,i,l,r,c){r=Ey(r),l.context===null?l.context=r:l.pendingContext=r,l=Yn(e),l.payload={element:i},c=c===void 0?null:c,c!==null&&(l.callback=c),i=qn(t,l,e),i!==null&&(be(i,t,e),hl(i,t,e))}function My(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<e?i:e}}function _c(t,e){My(t,e),(t=t.alternate)&&My(t,e)}function xy(t){if(t.tag===13||t.tag===31){var e=Ti(t,67108864);e!==null&&be(e,t,67108864),_c(t,67108864)}}function Dy(t){if(t.tag===13||t.tag===31){var e=ze();e=Or(e);var i=Ti(t,e);i!==null&&be(i,t,e),_c(t,e)}}var Au=!0;function pT(t,e,i,l){var r=_.T;_.T=null;var c=X.p;try{X.p=2,Nc(t,e,i,l)}finally{X.p=c,_.T=r}}function yT(t,e,i,l){var r=_.T;_.T=null;var c=X.p;try{X.p=8,Nc(t,e,i,l)}finally{X.p=c,_.T=r}}function Nc(t,e,i,l){if(Au){var r=Uc(l);if(r===null)Tc(t,e,l,Mu,i),Oy(t,l);else if(gT(r,t,e,i,l))l.stopPropagation();else if(Oy(t,l),e&4&&-1<vT.indexOf(t)){for(;r!==null;){var c=Ji(r);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var p=yi(c.pendingLanes);if(p!==0){var g=c;for(g.pendingLanes|=2,g.entangledLanes|=2;p;){var T=1<<31-Me(p);g.entanglements[1]|=T,p&=~T}nn(c),(Et&6)===0&&(su=Ee()+500,Rl(0))}}break;case 31:case 13:g=Ti(c,2),g!==null&&be(g,c,2),ru(),_c(c,2)}if(c=Uc(l),c===null&&Tc(t,e,l,Mu,i),c===r)break;r=c}r!==null&&l.stopPropagation()}else Tc(t,e,l,null,i)}}function Uc(t){return t=Br(t),Bc(t)}var Mu=null;function Bc(t){if(Mu=null,t=Pi(t),t!==null){var e=d(t);if(e===null)t=null;else{var i=e.tag;if(i===13){if(t=f(e),t!==null)return t;t=null}else if(i===31){if(t=h(e),t!==null)return t;t=null}else if(i===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Mu=t,null}function Cy(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(nb()){case Nd:return 2;case Ud:return 8;case hs:case ib:return 32;case Bd:return 268435456;default:return 32}default:return 32}}var Hc=!1,In=null,ti=null,ei=null,Ul=new Map,Bl=new Map,ni=[],vT="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 Oy(t,e){switch(t){case"focusin":case"focusout":In=null;break;case"dragenter":case"dragleave":ti=null;break;case"mouseover":case"mouseout":ei=null;break;case"pointerover":case"pointerout":Ul.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bl.delete(e.pointerId)}}function Hl(t,e,i,l,r,c){return t===null||t.nativeEvent!==c?(t={blockedOn:e,domEventName:i,eventSystemFlags:l,nativeEvent:c,targetContainers:[r]},e!==null&&(e=Ji(e),e!==null&&xy(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,r!==null&&e.indexOf(r)===-1&&e.push(r),t)}function gT(t,e,i,l,r){switch(e){case"focusin":return In=Hl(In,t,e,i,l,r),!0;case"dragenter":return ti=Hl(ti,t,e,i,l,r),!0;case"mouseover":return ei=Hl(ei,t,e,i,l,r),!0;case"pointerover":var c=r.pointerId;return Ul.set(c,Hl(Ul.get(c)||null,t,e,i,l,r)),!0;case"gotpointercapture":return c=r.pointerId,Bl.set(c,Hl(Bl.get(c)||null,t,e,i,l,r)),!0}return!1}function Ry(t){var e=Pi(t.target);if(e!==null){var i=d(e);if(i!==null){if(e=i.tag,e===13){if(e=f(i),e!==null){t.blockedOn=e,$d(t.priority,function(){Dy(i)});return}}else if(e===31){if(e=h(i),e!==null){t.blockedOn=e,$d(t.priority,function(){Dy(i)});return}}else if(e===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function xu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var i=Uc(t.nativeEvent);if(i===null){i=t.nativeEvent;var l=new i.constructor(i.type,i);Ur=l,i.target.dispatchEvent(l),Ur=null}else return e=Ji(i),e!==null&&xy(e),t.blockedOn=i,!1;e.shift()}return!0}function wy(t,e,i){xu(t)&&i.delete(e)}function bT(){Hc=!1,In!==null&&xu(In)&&(In=null),ti!==null&&xu(ti)&&(ti=null),ei!==null&&xu(ei)&&(ei=null),Ul.forEach(wy),Bl.forEach(wy)}function Du(t,e){t.blockedOn===e&&(t.blockedOn=null,Hc||(Hc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,bT)))}var Cu=null;function zy(t){Cu!==t&&(Cu=t,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Cu===t&&(Cu=null);for(var e=0;e<t.length;e+=3){var i=t[e],l=t[e+1],r=t[e+2];if(typeof l!="function"){if(Bc(l||i)===null)continue;break}var c=Ji(i);c!==null&&(t.splice(e,3),e-=3,Uo(c,{pending:!0,data:r,method:i.method,action:l},l,r))}}))}function Va(t){function e(T){return Du(T,t)}In!==null&&Du(In,t),ti!==null&&Du(ti,t),ei!==null&&Du(ei,t),Ul.forEach(e),Bl.forEach(e);for(var i=0;i<ni.length;i++){var l=ni[i];l.blockedOn===t&&(l.blockedOn=null)}for(;0<ni.length&&(i=ni[0],i.blockedOn===null);)Ry(i),i.blockedOn===null&&ni.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(l=0;l<i.length;l+=3){var r=i[l],c=i[l+1],p=r[he]||null;if(typeof c=="function")p||zy(i);else if(p){var g=null;if(c&&c.hasAttribute("formAction")){if(r=c,p=c[he]||null)g=p.formAction;else if(Bc(r)!==null)continue}else g=p.action;typeof g=="function"?i[l+1]=g:(i.splice(l,3),l-=3),zy(i)}}}function Vy(){function t(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(p){return r=p})},focusReset:"manual",scroll:"manual"})}function e(){r!==null&&(r(),r=null),l||setTimeout(i,20)}function i(){if(!l&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.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(i,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),r!==null&&(r(),r=null)}}}function jc(t){this._internalRoot=t}Ou.prototype.render=jc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(u(409));var i=e.current,l=ze();Ay(i,l,t,e,null,null)},Ou.prototype.unmount=jc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Ay(t.current,2,null,t,null,null),ru(),e[ki]=null}};function Ou(t){this._internalRoot=t}Ou.prototype.unstable_scheduleHydration=function(t){if(t){var e=qd();t={blockedOn:null,target:t,priority:e};for(var i=0;i<ni.length&&e!==0&&e<ni[i].priority;i++);ni.splice(i,0,t),i===0&&Ry(t)}};var Ly=a.version;if(Ly!=="19.2.4")throw Error(u(527,Ly,"19.2.4"));X.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=y(e),t=t!==null?v(t):null,t=t===null?null:t.stateNode,t};var ST={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ru.isDisabled&&Ru.supportsFiber)try{Za=Ru.inject(ST),Ae=Ru}catch{}}return Gl.createRoot=function(t,e){if(!o(t))throw Error(u(299));var i=!1,l="",r=Gm,c=Ym,p=qm;return e!=null&&(e.unstable_strictMode===!0&&(i=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(r=e.onUncaughtError),e.onCaughtError!==void 0&&(c=e.onCaughtError),e.onRecoverableError!==void 0&&(p=e.onRecoverableError)),e=Ty(t,1,!1,null,null,i,l,null,r,c,p,Vy),t[ki]=e.current,Sc(t),new jc(e)},Gl.hydrateRoot=function(t,e,i){if(!o(t))throw Error(u(299));var l=!1,r="",c=Gm,p=Ym,g=qm,T=null;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(r=i.identifierPrefix),i.onUncaughtError!==void 0&&(c=i.onUncaughtError),i.onCaughtError!==void 0&&(p=i.onCaughtError),i.onRecoverableError!==void 0&&(g=i.onRecoverableError),i.formState!==void 0&&(T=i.formState)),e=Ty(t,1,!0,e,i??null,l,r,T,c,p,g,Vy),e.context=Ey(null),i=e.current,l=ze(),l=Or(l),r=Yn(l),r.callback=null,qn(i,r,l),i=l,e.current.lanes=i,ka(e,i),nn(e),t[ki]=e.current,Sc(t),new Ou(e)},Gl.version="19.2.4",Gl}var Xy;function zT(){if(Xy)return qc.exports;Xy=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),qc.exports=wT(),qc.exports}var bC=zT();const VT=typeof document<"u"?lt.useLayoutEffect:()=>{},hi=n=>{var a;return(a=n==null?void 0:n.ownerDocument)!==null&&a!==void 0?a:document},Hi=n=>n&&"window"in n&&n.window===n?n:hi(n).defaultView||window;function LT(n){return n!==null&&typeof n=="object"&&"nodeType"in n&&typeof n.nodeType=="number"}function _T(n){return LT(n)&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in n}let NT=!1;function Jf(){return NT}function ji(n,a){if(!Jf())return a&&n?n.contains(a):!1;if(!n||!a)return!1;let s=a;for(;s!==null;){if(s===n)return!0;s.tagName==="SLOT"&&s.assignedSlot?s=s.assignedSlot.parentNode:_T(s)?s=s.host:s=s.parentNode}return!1}const Ha=(n=document)=>{var a;if(!Jf())return n.activeElement;let s=n.activeElement;for(;s&&"shadowRoot"in s&&(!((a=s.shadowRoot)===null||a===void 0)&&a.activeElement);)s=s.shadowRoot.activeElement;return s};function ce(n){if(Jf()&&n.target instanceof Element&&n.target.shadowRoot){var a,s;if("composedPath"in n)return(a=n.composedPath()[0])!==null&&a!==void 0?a:null;if("composedPath"in n.nativeEvent)return(s=n.nativeEvent.composedPath()[0])!==null&&s!==void 0?s:null}return n.target}function Ag(n){var a,s,u="";if(typeof n=="string"||typeof n=="number")u+=n;else if(typeof n=="object")if(Array.isArray(n)){var o=n.length;for(a=0;a<o;a++)n[a]&&(s=Ag(n[a]))&&(u&&(u+=" "),u+=s)}else for(s in n)n[s]&&(u&&(u+=" "),u+=s);return u}function SC(){for(var n,a,s=0,u="",o=arguments.length;s<o;s++)(n=arguments[s])&&(a=Ag(n))&&(u&&(u+=" "),u+=a);return u}function UT(n){if(BT())n.focus({preventScroll:!0});else{let a=HT(n);n.focus(),jT(a)}}let wu=null;function BT(){if(wu==null){wu=!1;try{document.createElement("div").focus({get preventScroll(){return wu=!0,!0}})}catch{}}return wu}function HT(n){let a=n.parentNode,s=[],u=document.scrollingElement||document.documentElement;for(;a instanceof HTMLElement&&a!==u;)(a.offsetHeight<a.scrollHeight||a.offsetWidth<a.scrollWidth)&&s.push({element:a,scrollTop:a.scrollTop,scrollLeft:a.scrollLeft}),a=a.parentNode;return u instanceof HTMLElement&&s.push({element:u,scrollTop:u.scrollTop,scrollLeft:u.scrollLeft}),s}function jT(n){for(let{element:a,scrollTop:s,scrollLeft:u}of n)a.scrollTop=s,a.scrollLeft=u}function rr(n){var a;if(typeof window>"u"||window.navigator==null)return!1;let s=(a=window.navigator.userAgentData)===null||a===void 0?void 0:a.brands;return Array.isArray(s)&&s.some(u=>n.test(u.brand))||n.test(window.navigator.userAgent)}function Mg(n){var a;return typeof window<"u"&&window.navigator!=null?n.test(((a=window.navigator.userAgentData)===null||a===void 0?void 0:a.platform)||window.navigator.platform):!1}function Ya(n){let a=null;return()=>(a==null&&(a=n()),a)}const Qu=Ya(function(){return Mg(/^Mac/i)}),GT=Ya(function(){return Mg(/^iPad/i)||Qu()&&navigator.maxTouchPoints>1}),YT=Ya(function(){return rr(/AppleWebKit/i)&&!qT()}),qT=Ya(function(){return rr(/Chrome/i)}),$T=Ya(function(){return rr(/Android/i)}),XT=Ya(function(){return rr(/Firefox/i)});function ts(n,a,s=!0){var u,o;let{metaKey:d,ctrlKey:f,altKey:h,shiftKey:m}=a;XT()&&(!((o=window.event)===null||o===void 0||(u=o.type)===null||u===void 0)&&u.startsWith("key"))&&n.target==="_blank"&&(Qu()?d=!0:f=!0);let y=YT()&&Qu()&&!GT()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:d,ctrlKey:f,altKey:h,shiftKey:m}):new MouseEvent("click",{metaKey:d,ctrlKey:f,altKey:h,shiftKey:m,detail:1,bubbles:!0,cancelable:!0});ts.isOpening=s,UT(n),n.dispatchEvent(y),ts.isOpening=!1}ts.isOpening=!1;function xg(){let n=x.useRef(new Map),a=x.useCallback((o,d,f,h)=>{let m=h!=null&&h.once?(...y)=>{n.current.delete(f),f(...y)}:f;n.current.set(f,{type:d,eventTarget:o,fn:m,options:h}),o.addEventListener(d,m,h)},[]),s=x.useCallback((o,d,f,h)=>{var m;let y=((m=n.current.get(f))===null||m===void 0?void 0:m.fn)||f;o.removeEventListener(d,y,h),n.current.delete(f)},[]),u=x.useCallback(()=>{n.current.forEach((o,d)=>{s(o.eventTarget,o.type,d,o.options)})},[s]);return x.useEffect(()=>u,[u]),{addGlobalListener:a,removeGlobalListener:s,removeAllGlobalListeners:u}}function KT(n){return n.pointerType===""&&n.isTrusted?!0:$T()&&n.pointerType?n.type==="click"&&n.buttons===1:n.detail===0&&!n.pointerType}var QT=Eg();function Dg(n){let a=n;return a.nativeEvent=n,a.isDefaultPrevented=()=>a.defaultPrevented,a.isPropagationStopped=()=>a.cancelBubble,a.persist=()=>{},a}function ZT(n,a){Object.defineProperty(n,"target",{value:a}),Object.defineProperty(n,"currentTarget",{value:a})}function Cg(n){let a=x.useRef({isFocused:!1,observer:null});return VT(()=>{const s=a.current;return()=>{s.observer&&(s.observer.disconnect(),s.observer=null)}},[]),x.useCallback(s=>{let u=ce(s);if(u instanceof HTMLButtonElement||u instanceof HTMLInputElement||u instanceof HTMLTextAreaElement||u instanceof HTMLSelectElement){a.current.isFocused=!0;let o=u,d=f=>{if(a.current.isFocused=!1,o.disabled){let h=Dg(f);n==null||n(h)}a.current.observer&&(a.current.observer.disconnect(),a.current.observer=null)};o.addEventListener("focusout",d,{once:!0}),a.current.observer=new MutationObserver(()=>{if(a.current.isFocused&&o.disabled){var f;(f=a.current.observer)===null||f===void 0||f.disconnect();let h=o===Ha()?null:Ha();o.dispatchEvent(new FocusEvent("blur",{relatedTarget:h})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:h}))}}),a.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let FT=!1,ls=null;const pf=new Set;let Ql=new Map,Ki=!1,yf=!1;const kT={Tab:!0,Escape:!0};function Wf(n,a){for(let s of pf)s(n,a)}function PT(n){return!(n.metaKey||!Qu()&&n.altKey||n.ctrlKey||n.key==="Control"||n.key==="Shift"||n.key==="Meta")}function Zu(n){Ki=!0,!ts.isOpening&&PT(n)&&(ls="keyboard",Wf("keyboard",n))}function Ba(n){ls="pointer","pointerType"in n&&n.pointerType,(n.type==="mousedown"||n.type==="pointerdown")&&(Ki=!0,Wf("pointer",n))}function Og(n){!ts.isOpening&&KT(n)&&(Ki=!0,ls="virtual")}function Rg(n){ce(n)===window||ce(n)===document||FT||!n.isTrusted||(!Ki&&!yf&&(ls="virtual",Wf("virtual",n)),Ki=!1,yf=!1)}function wg(){Ki=!1,yf=!0}function vf(n){if(typeof window>"u"||typeof document>"u"||Ql.get(Hi(n)))return;const a=Hi(n),s=hi(n);let u=a.HTMLElement.prototype.focus;a.HTMLElement.prototype.focus=function(){Ki=!0,u.apply(this,arguments)},s.addEventListener("keydown",Zu,!0),s.addEventListener("keyup",Zu,!0),s.addEventListener("click",Og,!0),a.addEventListener("focus",Rg,!0),a.addEventListener("blur",wg,!1),typeof PointerEvent<"u"&&(s.addEventListener("pointerdown",Ba,!0),s.addEventListener("pointermove",Ba,!0),s.addEventListener("pointerup",Ba,!0)),a.addEventListener("beforeunload",()=>{zg(n)},{once:!0}),Ql.set(a,{focus:u})}const zg=(n,a)=>{const s=Hi(n),u=hi(n);a&&u.removeEventListener("DOMContentLoaded",a),Ql.has(s)&&(s.HTMLElement.prototype.focus=Ql.get(s).focus,u.removeEventListener("keydown",Zu,!0),u.removeEventListener("keyup",Zu,!0),u.removeEventListener("click",Og,!0),s.removeEventListener("focus",Rg,!0),s.removeEventListener("blur",wg,!1),typeof PointerEvent<"u"&&(u.removeEventListener("pointerdown",Ba,!0),u.removeEventListener("pointermove",Ba,!0),u.removeEventListener("pointerup",Ba,!0)),Ql.delete(s))};function JT(n){const a=hi(n);let s;return a.readyState!=="loading"?vf(n):(s=()=>{vf(n)},a.addEventListener("DOMContentLoaded",s)),()=>zg(n,s)}typeof document<"u"&&JT();function gf(){return ls!=="pointer"}const WT=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function IT(n,a,s){let u=hi(s?ce(s):void 0),o=s?ce(s):void 0;const d=typeof window<"u"?Hi(o).HTMLInputElement:HTMLInputElement,f=typeof window<"u"?Hi(o).HTMLTextAreaElement:HTMLTextAreaElement,h=typeof window<"u"?Hi(o).HTMLElement:HTMLElement,m=typeof window<"u"?Hi(o).KeyboardEvent:KeyboardEvent;let y=Ha(u);return n=n||y instanceof d&&!WT.has(y.type)||y instanceof f||y instanceof h&&y.isContentEditable,!(n&&a==="keyboard"&&s instanceof m&&!kT[s.key])}function tE(n,a,s){vf(),x.useEffect(()=>{if((s==null?void 0:s.enabled)===!1)return;let u=(o,d)=>{IT(!!(s!=null&&s.isTextInput),o,d)&&n(gf())};return pf.add(u),()=>{pf.delete(u)}},a)}function eE(n){let{isDisabled:a,onFocus:s,onBlur:u,onFocusChange:o}=n;const d=x.useCallback(m=>{if(ce(m)===m.currentTarget)return u&&u(m),o&&o(!1),!0},[u,o]),f=Cg(d),h=x.useCallback(m=>{let y=ce(m);const v=hi(y),b=v?Ha(v):Ha();y===m.currentTarget&&y===b&&(s&&s(m),o&&o(!0),f(m))},[o,s,f]);return{focusProps:{onFocus:!a&&(s||o||u)?h:void 0,onBlur:!a&&(u||o)?d:void 0}}}function nE(n){let{isDisabled:a,onBlurWithin:s,onFocusWithin:u,onFocusWithinChange:o}=n,d=x.useRef({isFocusWithin:!1}),{addGlobalListener:f,removeAllGlobalListeners:h}=xg(),m=x.useCallback(b=>{ji(b.currentTarget,ce(b))&&d.current.isFocusWithin&&!ji(b.currentTarget,b.relatedTarget)&&(d.current.isFocusWithin=!1,h(),s&&s(b),o&&o(!1))},[s,o,d,h]),y=Cg(m),v=x.useCallback(b=>{if(!ji(b.currentTarget,ce(b)))return;let S=ce(b);const E=hi(S),D=Ha(E);if(!d.current.isFocusWithin&&D===S){u&&u(b),o&&o(!0),d.current.isFocusWithin=!0,y(b);let z=b.currentTarget;f(E,"focus",V=>{let N=ce(V);if(d.current.isFocusWithin&&!ji(z,N)){let Y=new E.defaultView.FocusEvent("blur",{relatedTarget:N});ZT(Y,z);let B=Dg(Y);m(B)}},{capture:!0})}},[u,o,y,f,m]);return a?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:v,onBlur:m}}}let bf=!1,zu=0;function iE(){bf=!0,setTimeout(()=>{bf=!1},50)}function Ky(n){n.pointerType==="touch"&&iE()}function aE(){if(!(typeof document>"u"))return zu===0&&typeof PointerEvent<"u"&&document.addEventListener("pointerup",Ky),zu++,()=>{zu--,!(zu>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",Ky)}}function Vg(n){let{onHoverStart:a,onHoverChange:s,onHoverEnd:u,isDisabled:o}=n,[d,f]=x.useState(!1),h=x.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;x.useEffect(aE,[]);let{addGlobalListener:m,removeAllGlobalListeners:y}=xg(),{hoverProps:v,triggerHoverEnd:b}=x.useMemo(()=>{let S=(z,V)=>{if(h.pointerType=V,o||V==="touch"||h.isHovered||!ji(z.currentTarget,ce(z)))return;h.isHovered=!0;let N=z.currentTarget;h.target=N,m(hi(ce(z)),"pointerover",Y=>{h.isHovered&&h.target&&!ji(h.target,ce(Y))&&E(Y,Y.pointerType)},{capture:!0}),a&&a({type:"hoverstart",target:N,pointerType:V}),s&&s(!0),f(!0)},E=(z,V)=>{let N=h.target;h.pointerType="",h.target=null,!(V==="touch"||!h.isHovered||!N)&&(h.isHovered=!1,y(),u&&u({type:"hoverend",target:N,pointerType:V}),s&&s(!1),f(!1))},D={};return typeof PointerEvent<"u"&&(D.onPointerEnter=z=>{bf&&z.pointerType==="mouse"||S(z,z.pointerType)},D.onPointerLeave=z=>{!o&&ji(z.currentTarget,ce(z))&&E(z,z.pointerType)}),{hoverProps:D,triggerHoverEnd:E}},[a,s,u,o,h,m,y]);return x.useEffect(()=>{o&&b({currentTarget:h.target},h.pointerType)},[o]),{hoverProps:v,isHovered:d}}function Lg(n={}){let{autoFocus:a=!1,isTextInput:s,within:u}=n,o=x.useRef({isFocused:!1,isFocusVisible:a||gf()}),[d,f]=x.useState(!1),[h,m]=x.useState(()=>o.current.isFocused&&o.current.isFocusVisible),y=x.useCallback(()=>m(o.current.isFocused&&o.current.isFocusVisible),[]),v=x.useCallback(E=>{o.current.isFocused=E,o.current.isFocusVisible=gf(),f(E),y()},[y]);tE(E=>{o.current.isFocusVisible=E,y()},[s,d],{enabled:d,isTextInput:s});let{focusProps:b}=eE({isDisabled:u,onFocusChange:v}),{focusWithinProps:S}=nE({isDisabled:!u,onFocusWithinChange:v});return{isFocused:d,isFocusVisible:h,focusProps:u?S:b}}var lE=Object.defineProperty,sE=(n,a,s)=>a in n?lE(n,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[a]=s,Qc=(n,a,s)=>(sE(n,typeof a!="symbol"?a+"":a,s),s);let uE=class{constructor(){Qc(this,"current",this.detect()),Qc(this,"handoffState","pending"),Qc(this,"currentId",0)}set(a){this.current!==a&&(this.handoffState="pending",this.currentId=0,this.current=a)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},un=new uE;function qa(n){var a;return un.isServer?null:n==null?document:(a=n==null?void 0:n.ownerDocument)!=null?a:document}function Sf(n){var a,s;return un.isServer?null:n==null?document:(s=(a=n==null?void 0:n.getRootNode)==null?void 0:a.call(n))!=null?s:document}function _g(n){var a,s;return(s=(a=Sf(n))==null?void 0:a.activeElement)!=null?s:null}function rE(n){return _g(n)===n}function or(n){typeof queueMicrotask=="function"?queueMicrotask(n):Promise.resolve().then(n).catch(a=>setTimeout(()=>{throw a}))}function Vn(){let n=[],a={addEventListener(s,u,o,d){return s.addEventListener(u,o,d),a.add(()=>s.removeEventListener(u,o,d))},requestAnimationFrame(...s){let u=requestAnimationFrame(...s);return a.add(()=>cancelAnimationFrame(u))},nextFrame(...s){return a.requestAnimationFrame(()=>a.requestAnimationFrame(...s))},setTimeout(...s){let u=setTimeout(...s);return a.add(()=>clearTimeout(u))},microTask(...s){let u={current:!0};return or(()=>{u.current&&s[0]()}),a.add(()=>{u.current=!1})},style(s,u,o){let d=s.style.getPropertyValue(u);return Object.assign(s.style,{[u]:o}),this.add(()=>{Object.assign(s.style,{[u]:d})})},group(s){let u=Vn();return s(u),this.add(()=>u.dispose())},add(s){return n.includes(s)||n.push(s),()=>{let u=n.indexOf(s);if(u>=0)for(let o of n.splice(u,1))o()}},dispose(){for(let s of n.splice(0))s()}};return a}function ss(){let[n]=x.useState(Vn);return x.useEffect(()=>()=>n.dispose(),[n]),n}let Se=(n,a)=>{un.isServer?x.useEffect(n,a):x.useLayoutEffect(n,a)};function Zi(n){let a=x.useRef(n);return Se(()=>{a.current=n},[n]),a}let xt=function(n){let a=Zi(n);return lt.useCallback((...s)=>a.current(...s),[a])};function oE(n){let a=n.width/2,s=n.height/2;return{top:n.clientY-s,right:n.clientX+a,bottom:n.clientY+s,left:n.clientX-a}}function cE(n,a){return!(!n||!a||n.right<a.left||n.left>a.right||n.bottom<a.top||n.top>a.bottom)}function Ng({disabled:n=!1}={}){let a=x.useRef(null),[s,u]=x.useState(!1),o=ss(),d=xt(()=>{a.current=null,u(!1),o.dispose()}),f=xt(h=>{if(o.dispose(),a.current===null){a.current=h.currentTarget,u(!0);{let m=qa(h.currentTarget);o.addEventListener(m,"pointerup",d,!1),o.addEventListener(m,"pointermove",y=>{if(a.current){let v=oE(y);u(cE(v,a.current.getBoundingClientRect()))}},!1),o.addEventListener(m,"pointercancel",d,!1)}}});return{pressed:s,pressProps:n?{}:{onPointerDown:f,onPointerUp:d,onClick:d}}}function Fi(n){return x.useMemo(()=>n,Object.values(n))}let fE=x.createContext(void 0);function Ug(){return x.useContext(fE)}function Tf(...n){return Array.from(new Set(n.flatMap(a=>typeof a=="string"?a.split(" "):[]))).filter(Boolean).join(" ")}function zn(n,a,...s){if(n in a){let o=a[n];return typeof o=="function"?o(...s):o}let u=new Error(`Tried to handle "${n}" but there is no handler defined. Only defined handlers are: ${Object.keys(a).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(u,zn),u}var Fu=(n=>(n[n.None=0]="None",n[n.RenderStrategy=1]="RenderStrategy",n[n.Static=2]="Static",n))(Fu||{}),ui=(n=>(n[n.Unmount=0]="Unmount",n[n.Hidden=1]="Hidden",n))(ui||{});function Te(){let n=hE();return x.useCallback(a=>dE({mergeRefs:n,...a}),[n])}function dE({ourProps:n,theirProps:a,slot:s,defaultTag:u,features:o,visible:d=!0,name:f,mergeRefs:h}){h=h??mE;let m=Bg(a,n);if(d)return Vu(m,s,u,f,h);let y=o??0;if(y&2){let{static:v=!1,...b}=m;if(v)return Vu(b,s,u,f,h)}if(y&1){let{unmount:v=!0,...b}=m;return zn(v?0:1,{0(){return null},1(){return Vu({...b,hidden:!0,style:{display:"none"}},s,u,f,h)}})}return Vu(m,s,u,f,h)}function Vu(n,a={},s,u,o){let{as:d=s,children:f,refName:h="ref",...m}=Zc(n,["unmount","static"]),y=n.ref!==void 0?{[h]:n.ref}:{},v=typeof f=="function"?f(a):f;"className"in m&&m.className&&typeof m.className=="function"&&(m.className=m.className(a)),m["aria-labelledby"]&&m["aria-labelledby"]===m.id&&(m["aria-labelledby"]=void 0);let b={};if(a){let S=!1,E=[];for(let[D,z]of Object.entries(a))typeof z=="boolean"&&(S=!0),z===!0&&E.push(D.replace(/([A-Z])/g,V=>`-${V.toLowerCase()}`));if(S){b["data-headlessui-state"]=E.join(" ");for(let D of E)b[`data-${D}`]=""}}if(Zl(d)&&(Object.keys(Ni(m)).length>0||Object.keys(Ni(b)).length>0))if(!x.isValidElement(v)||Array.isArray(v)&&v.length>1||yE(v)){if(Object.keys(Ni(m)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${u} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(Ni(m)).concat(Object.keys(Ni(b))).map(S=>` - ${S}`).join(`
50
+ `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(S=>` - ${S}`).join(`
51
+ `)].join(`
52
+ `))}else{let S=v.props,E=S==null?void 0:S.className,D=typeof E=="function"?(...N)=>Tf(E(...N),m.className):Tf(E,m.className),z=D?{className:D}:{},V=Bg(v.props,Ni(Zc(m,["ref"])));for(let N in b)N in V&&delete b[N];return x.cloneElement(v,Object.assign({},V,b,y,{ref:o(pE(v),y.ref)},z))}return x.createElement(d,Object.assign({},Zc(m,["ref"]),!Zl(d)&&y,!Zl(d)&&b),v)}function hE(){let n=x.useRef([]),a=x.useCallback(s=>{for(let u of n.current)u!=null&&(typeof u=="function"?u(s):u.current=s)},[]);return(...s)=>{if(!s.every(u=>u==null))return n.current=s,a}}function mE(...n){return n.every(a=>a==null)?void 0:a=>{for(let s of n)s!=null&&(typeof s=="function"?s(a):s.current=a)}}function Bg(...n){if(n.length===0)return{};if(n.length===1)return n[0];let a={},s={};for(let u of n)for(let o in u)o.startsWith("on")&&typeof u[o]=="function"?(s[o]!=null||(s[o]=[]),s[o].push(u[o])):a[o]=u[o];if(a.disabled||a["aria-disabled"])for(let u in s)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(u)&&(s[u]=[o=>{var d;return(d=o==null?void 0:o.preventDefault)==null?void 0:d.call(o)}]);for(let u in s)Object.assign(a,{[u](o,...d){let f=s[u];for(let h of f){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;h(o,...d)}}});return a}function If(...n){if(n.length===0)return{};if(n.length===1)return n[0];let a={},s={};for(let u of n)for(let o in u)o.startsWith("on")&&typeof u[o]=="function"?(s[o]!=null||(s[o]=[]),s[o].push(u[o])):a[o]=u[o];for(let u in s)Object.assign(a,{[u](...o){let d=s[u];for(let f of d)f==null||f(...o)}});return a}function ue(n){var a;return Object.assign(x.forwardRef(n),{displayName:(a=n.displayName)!=null?a:n.name})}function Ni(n){let a=Object.assign({},n);for(let s in a)a[s]===void 0&&delete a[s];return a}function Zc(n,a=[]){let s=Object.assign({},n);for(let u of a)u in s&&delete s[u];return s}function pE(n){return lt.version.split(".")[0]>="19"?n.props.ref:n.ref}function Zl(n){return n===x.Fragment||n===Symbol.for("react.fragment")}function yE(n){return Zl(n.type)}let vE="button";function gE(n,a){var s;let u=Ug(),{disabled:o=u||!1,autoFocus:d=!1,...f}=n,{isFocusVisible:h,focusProps:m}=Lg({autoFocus:d}),{isHovered:y,hoverProps:v}=Vg({isDisabled:o}),{pressed:b,pressProps:S}=Ng({disabled:o}),E=If({ref:a,type:(s=f.type)!=null?s:"button",disabled:o||void 0,autoFocus:d},m,v,S),D=Fi({disabled:o,hover:y,focus:h,active:b,autofocus:d});return Te()({ourProps:E,theirProps:f,slot:D,defaultTag:vE,name:"Button"})}let bE=ue(gE),SE="span";var ku=(n=>(n[n.None=1]="None",n[n.Focusable=2]="Focusable",n[n.Hidden=4]="Hidden",n))(ku||{});function TE(n,a){var s;let{features:u=1,...o}=n,d={ref:a,"aria-hidden":(u&2)===2?!0:(s=o["aria-hidden"])!=null?s:void 0,hidden:(u&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(u&4)===4&&(u&2)!==2&&{display:"none"}}};return Te()({ourProps:d,theirProps:o,slot:{},defaultTag:SE,name:"Hidden"})}let Ef=ue(TE);function EE(n){return typeof n!="object"||n===null?!1:"nodeType"in n}function ci(n){return EE(n)&&"tagName"in n}function Qi(n){return ci(n)&&"accessKey"in n}function ri(n){return ci(n)&&"tabIndex"in n}function AE(n){return ci(n)&&"style"in n}function ME(n){return Qi(n)&&n.nodeName==="IFRAME"}function xE(n){return Qi(n)&&n.nodeName==="INPUT"}let Hg=Symbol();function DE(n,a=!0){return Object.assign(n,{[Hg]:a})}function cn(...n){let a=x.useRef(n);x.useEffect(()=>{a.current=n},[n]);let s=xt(u=>{for(let o of a.current)o!=null&&(typeof o=="function"?o(u):o.current=u)});return n.every(u=>u==null||(u==null?void 0:u[Hg]))?void 0:s}let td=x.createContext(null);td.displayName="DescriptionContext";function jg(){let n=x.useContext(td);if(n===null){let a=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(a,jg),a}return n}function CE(){let[n,a]=x.useState([]);return[n.length>0?n.join(" "):void 0,x.useMemo(()=>function(s){let u=xt(d=>(a(f=>[...f,d]),()=>a(f=>{let h=f.slice(),m=h.indexOf(d);return m!==-1&&h.splice(m,1),h}))),o=x.useMemo(()=>({register:u,slot:s.slot,name:s.name,props:s.props,value:s.value}),[u,s.slot,s.name,s.props,s.value]);return lt.createElement(td.Provider,{value:o},s.children)},[a])]}let OE="p";function RE(n,a){let s=x.useId(),u=Ug(),{id:o=`headlessui-description-${s}`,...d}=n,f=jg(),h=cn(a);Se(()=>f.register(o),[o,f.register]);let m=Fi({...f.slot,disabled:u||!1}),y={ref:h,...f.props,id:o};return Te()({ourProps:y,theirProps:d,slot:m,defaultTag:OE,name:f.name||"Description"})}let wE=ue(RE),zE=Object.assign(wE,{});var Gg=(n=>(n.Space=" ",n.Enter="Enter",n.Escape="Escape",n.Backspace="Backspace",n.Delete="Delete",n.ArrowLeft="ArrowLeft",n.ArrowUp="ArrowUp",n.ArrowRight="ArrowRight",n.ArrowDown="ArrowDown",n.Home="Home",n.End="End",n.PageUp="PageUp",n.PageDown="PageDown",n.Tab="Tab",n))(Gg||{});let Yg=x.createContext(()=>{});function VE(){return x.useContext(Yg)}function LE({value:n,children:a}){return lt.createElement(Yg.Provider,{value:n},a)}function _E(n,a){let s=VE();return lt.createElement(bE,{ref:a,...If({onClick:s},n)})}let EC=ue(_E),qg=class extends Map{constructor(a){super(),this.factory=a}get(a){let s=super.get(a);return s===void 0&&(s=this.factory(a),this.set(a,s)),s}};var NE=Object.defineProperty,UE=(n,a,s)=>a in n?NE(n,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[a]=s,BE=(n,a,s)=>(UE(n,a+"",s),s),$g=(n,a,s)=>{if(!a.has(n))throw TypeError("Cannot "+s)},$e=(n,a,s)=>($g(n,a,"read from private field"),s?s.call(n):a.get(n)),Fc=(n,a,s)=>{if(a.has(n))throw TypeError("Cannot add the same private member more than once");a instanceof WeakSet?a.add(n):a.set(n,s)},Qy=(n,a,s,u)=>($g(n,a,"write to private field"),a.set(n,s),s),an,ql,$l;let HE=class{constructor(a){Fc(this,an,{}),Fc(this,ql,new qg(()=>new Set)),Fc(this,$l,new Set),BE(this,"disposables",Vn()),Qy(this,an,a),un.isServer&&this.disposables.microTask(()=>{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return $e(this,an)}subscribe(a,s){if(un.isServer)return()=>{};let u={selector:a,callback:s,current:a($e(this,an))};return $e(this,$l).add(u),this.disposables.add(()=>{$e(this,$l).delete(u)})}on(a,s){return un.isServer?()=>{}:($e(this,ql).get(a).add(s),this.disposables.add(()=>{$e(this,ql).get(a).delete(s)}))}send(a){let s=this.reduce($e(this,an),a);if(s!==$e(this,an)){Qy(this,an,s);for(let u of $e(this,$l)){let o=u.selector($e(this,an));Xg(u.current,o)||(u.current=o,u.callback(o))}for(let u of $e(this,ql).get(a.type))u($e(this,an),a)}}};an=new WeakMap,ql=new WeakMap,$l=new WeakMap;function Xg(n,a){return Object.is(n,a)?!0:typeof n!="object"||n===null||typeof a!="object"||a===null?!1:Array.isArray(n)&&Array.isArray(a)?n.length!==a.length?!1:kc(n[Symbol.iterator](),a[Symbol.iterator]()):n instanceof Map&&a instanceof Map||n instanceof Set&&a instanceof Set?n.size!==a.size?!1:kc(n.entries(),a.entries()):Zy(n)&&Zy(a)?kc(Object.entries(n)[Symbol.iterator](),Object.entries(a)[Symbol.iterator]()):!1}function kc(n,a){do{let s=n.next(),u=a.next();if(s.done&&u.done)return!0;if(s.done||u.done||!Object.is(s.value,u.value))return!1}while(!0)}function Zy(n){if(Object.prototype.toString.call(n)!=="[object Object]")return!1;let a=Object.getPrototypeOf(n);return a===null||Object.getPrototypeOf(a)===null}var jE=Object.defineProperty,GE=(n,a,s)=>a in n?jE(n,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[a]=s,Fy=(n,a,s)=>(GE(n,typeof a!="symbol"?a+"":a,s),s),YE=(n=>(n[n.Push=0]="Push",n[n.Pop=1]="Pop",n))(YE||{});let qE={0(n,a){let s=a.id,u=n.stack,o=n.stack.indexOf(s);if(o!==-1){let d=n.stack.slice();return d.splice(o,1),d.push(s),u=d,{...n,stack:u}}return{...n,stack:[...n.stack,s]}},1(n,a){let s=a.id,u=n.stack.indexOf(s);if(u===-1)return n;let o=n.stack.slice();return o.splice(u,1),{...n,stack:o}}},$E=class Kg extends HE{constructor(){super(...arguments),Fy(this,"actions",{push:a=>this.send({type:0,id:a}),pop:a=>this.send({type:1,id:a})}),Fy(this,"selectors",{isTop:(a,s)=>a.stack[a.stack.length-1]===s,inStack:(a,s)=>a.stack.includes(s)})}static new(){return new Kg({stack:[]})}reduce(a,s){return zn(s.type,qE,a,s)}};const Qg=new qg(()=>$E.new());var Pc={exports:{}},Jc={};/**
53
+ * @license React
54
+ * use-sync-external-store-with-selector.production.js
55
+ *
56
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
57
+ *
58
+ * This source code is licensed under the MIT license found in the
59
+ * LICENSE file in the root directory of this source tree.
60
+ */var ky;function XE(){if(ky)return Jc;ky=1;var n=ur();function a(m,y){return m===y&&(m!==0||1/m===1/y)||m!==m&&y!==y}var s=typeof Object.is=="function"?Object.is:a,u=n.useSyncExternalStore,o=n.useRef,d=n.useEffect,f=n.useMemo,h=n.useDebugValue;return Jc.useSyncExternalStoreWithSelector=function(m,y,v,b,S){var E=o(null);if(E.current===null){var D={hasValue:!1,value:null};E.current=D}else D=E.current;E=f(function(){function V(K){if(!N){if(N=!0,Y=K,K=b(K),S!==void 0&&D.hasValue){var et=D.value;if(S(et,K))return B=et}return B=K}if(et=B,s(Y,K))return et;var Z=b(K);return S!==void 0&&S(et,Z)?(Y=K,et):(Y=K,B=Z)}var N=!1,Y,B,$=v===void 0?null:v;return[function(){return V(y())},$===null?void 0:function(){return V($())}]},[y,v,b,S]);var z=u(m,E[0],E[1]);return d(function(){D.hasValue=!0,D.value=z},[z]),h(z),z},Jc}var Py;function KE(){return Py||(Py=1,Pc.exports=XE()),Pc.exports}var QE=KE();function Zg(n,a,s=Xg){return QE.useSyncExternalStoreWithSelector(xt(u=>n.subscribe(ZE,u)),xt(()=>n.state),xt(()=>n.state),xt(a),s)}function ZE(n){return n}function us(n,a){let s=x.useId(),u=Qg.get(a),[o,d]=Zg(u,x.useCallback(f=>[u.selectors.isTop(f,s),u.selectors.inStack(f,s)],[u,s]));return Se(()=>{if(n)return u.actions.push(s),()=>u.actions.pop(s)},[u,n,s]),n?d?o:!0:!1}let Af=new Map,Fl=new Map;function Jy(n){var a;let s=(a=Fl.get(n))!=null?a:0;return Fl.set(n,s+1),s!==0?()=>Wy(n):(Af.set(n,{"aria-hidden":n.getAttribute("aria-hidden"),inert:n.inert}),n.setAttribute("aria-hidden","true"),n.inert=!0,()=>Wy(n))}function Wy(n){var a;let s=(a=Fl.get(n))!=null?a:1;if(s===1?Fl.delete(n):Fl.set(n,s-1),s!==1)return;let u=Af.get(n);u&&(u["aria-hidden"]===null?n.removeAttribute("aria-hidden"):n.setAttribute("aria-hidden",u["aria-hidden"]),n.inert=u.inert,Af.delete(n))}function FE(n,{allowed:a,disallowed:s}={}){let u=us(n,"inert-others");Se(()=>{var o,d;if(!u)return;let f=Vn();for(let m of(o=s==null?void 0:s())!=null?o:[])m&&f.add(Jy(m));let h=(d=a==null?void 0:a())!=null?d:[];for(let m of h){if(!m)continue;let y=qa(m);if(!y)continue;let v=m.parentElement;for(;v&&v!==y.body;){for(let b of v.children)h.some(S=>b.contains(S))||f.add(Jy(b));v=v.parentElement}}return f.dispose},[u,a,s])}function kE(n,a,s){let u=Zi(o=>{let d=o.getBoundingClientRect();d.x===0&&d.y===0&&d.width===0&&d.height===0&&s()});x.useEffect(()=>{if(!n)return;let o=a===null?null:Qi(a)?a:a.current;if(!o)return;let d=Vn();if(typeof ResizeObserver<"u"){let f=new ResizeObserver(()=>u.current(o));f.observe(o),d.add(()=>f.disconnect())}if(typeof IntersectionObserver<"u"){let f=new IntersectionObserver(()=>u.current(o));f.observe(o),d.add(()=>f.disconnect())}return()=>d.dispose()},[a,u,n])}let Pu=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","details>summary","textarea:not([disabled])"].map(n=>`${n}:not([tabindex='-1'])`).join(","),PE=["[data-autofocus]"].map(n=>`${n}:not([tabindex='-1'])`).join(",");var Rn=(n=>(n[n.First=1]="First",n[n.Previous=2]="Previous",n[n.Next=4]="Next",n[n.Last=8]="Last",n[n.WrapAround=16]="WrapAround",n[n.NoScroll=32]="NoScroll",n[n.AutoFocus=64]="AutoFocus",n))(Rn||{}),Mf=(n=>(n[n.Error=0]="Error",n[n.Overflow=1]="Overflow",n[n.Success=2]="Success",n[n.Underflow=3]="Underflow",n))(Mf||{}),JE=(n=>(n[n.Previous=-1]="Previous",n[n.Next=1]="Next",n))(JE||{});function WE(n=document.body){return n==null?[]:Array.from(n.querySelectorAll(Pu)).sort((a,s)=>Math.sign((a.tabIndex||Number.MAX_SAFE_INTEGER)-(s.tabIndex||Number.MAX_SAFE_INTEGER)))}function IE(n=document.body){return n==null?[]:Array.from(n.querySelectorAll(PE)).sort((a,s)=>Math.sign((a.tabIndex||Number.MAX_SAFE_INTEGER)-(s.tabIndex||Number.MAX_SAFE_INTEGER)))}var Fg=(n=>(n[n.Strict=0]="Strict",n[n.Loose=1]="Loose",n))(Fg||{});function tA(n,a=0){var s;return n===((s=qa(n))==null?void 0:s.body)?!1:zn(a,{0(){return n.matches(Pu)},1(){let u=n;for(;u!==null;){if(u.matches(Pu))return!0;u=u.parentElement}return!1}})}var eA=(n=>(n[n.Keyboard=0]="Keyboard",n[n.Mouse=1]="Mouse",n))(eA||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",n=>{n.metaKey||n.altKey||n.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",n=>{n.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:n.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function wn(n){n==null||n.focus({preventScroll:!0})}let nA=["textarea","input"].join(",");function iA(n){var a,s;return(s=(a=n==null?void 0:n.matches)==null?void 0:a.call(n,nA))!=null?s:!1}function aA(n,a=s=>s){return n.slice().sort((s,u)=>{let o=a(s),d=a(u);if(o===null||d===null)return 0;let f=o.compareDocumentPosition(d);return f&Node.DOCUMENT_POSITION_FOLLOWING?-1:f&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function kl(n,a,{sorted:s=!0,relativeTo:u=null,skipElements:o=[]}={}){let d=Array.isArray(n)?n.length>0?Sf(n[0]):document:Sf(n),f=Array.isArray(n)?s?aA(n):n:a&64?IE(n):WE(n);o.length>0&&f.length>1&&(f=f.filter(E=>!o.some(D=>D!=null&&"current"in D?(D==null?void 0:D.current)===E:D===E))),u=u??(d==null?void 0:d.activeElement);let h=(()=>{if(a&5)return 1;if(a&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),m=(()=>{if(a&1)return 0;if(a&2)return Math.max(0,f.indexOf(u))-1;if(a&4)return Math.max(0,f.indexOf(u))+1;if(a&8)return f.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),y=a&32?{preventScroll:!0}:{},v=0,b=f.length,S;do{if(v>=b||v+b<=0)return 0;let E=m+v;if(a&16)E=(E+b)%b;else{if(E<0)return 3;if(E>=b)return 1}S=f[E],S==null||S.focus(y),v+=h}while(S!==_g(S));return a&6&&iA(S)&&S.select(),2}function kg(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function lA(){return/Android/gi.test(window.navigator.userAgent)}function Iy(){return kg()||lA()}function Lu(n,a,s,u){let o=Zi(s);x.useEffect(()=>{if(!n)return;function d(f){o.current(f)}return document.addEventListener(a,d,u),()=>document.removeEventListener(a,d,u)},[n,a,u])}function Pg(n,a,s,u){let o=Zi(s);x.useEffect(()=>{if(!n)return;function d(f){o.current(f)}return window.addEventListener(a,d,u),()=>window.removeEventListener(a,d,u)},[n,a,u])}const tv=30;function sA(n,a,s){let u=Zi(s),o=x.useCallback(function(h,m){if(h.defaultPrevented)return;let y=m(h);if(y===null||!y.getRootNode().contains(y)||!y.isConnected)return;let v=(function b(S){return typeof S=="function"?b(S()):Array.isArray(S)||S instanceof Set?S:[S]})(a);for(let b of v)if(b!==null&&(b.contains(y)||h.composed&&h.composedPath().includes(b)))return;return!tA(y,Fg.Loose)&&y.tabIndex!==-1&&h.preventDefault(),u.current(h,y)},[u,a]),d=x.useRef(null);Lu(n,"pointerdown",h=>{var m,y;Iy()||(d.current=((y=(m=h.composedPath)==null?void 0:m.call(h))==null?void 0:y[0])||h.target)},!0),Lu(n,"pointerup",h=>{if(Iy()||!d.current)return;let m=d.current;return d.current=null,o(h,()=>m)},!0);let f=x.useRef({x:0,y:0});Lu(n,"touchstart",h=>{f.current.x=h.touches[0].clientX,f.current.y=h.touches[0].clientY},!0),Lu(n,"touchend",h=>{let m={x:h.changedTouches[0].clientX,y:h.changedTouches[0].clientY};if(!(Math.abs(m.x-f.current.x)>=tv||Math.abs(m.y-f.current.y)>=tv))return o(h,()=>ri(h.target)?h.target:null)},!0),Pg(n,"blur",h=>o(h,()=>ME(window.document.activeElement)?window.document.activeElement:null),!0)}function ed(...n){return x.useMemo(()=>qa(...n),[...n])}function Jg(n,a,s,u){let o=Zi(s);x.useEffect(()=>{n=n??window;function d(f){o.current(f)}return n.addEventListener(a,d,u),()=>n.removeEventListener(a,d,u)},[n,a,u])}function uA(n){return x.useSyncExternalStore(n.subscribe,n.getSnapshot,n.getSnapshot)}function rA(n,a){let s=n(),u=new Set;return{getSnapshot(){return s},subscribe(o){return u.add(o),()=>u.delete(o)},dispatch(o,...d){let f=a[o].call(s,...d);f&&(s=f,u.forEach(h=>h()))}}}function oA(){let n;return{before({doc:a}){var s;let u=a.documentElement,o=(s=a.defaultView)!=null?s:window;n=Math.max(0,o.innerWidth-u.clientWidth)},after({doc:a,d:s}){let u=a.documentElement,o=Math.max(0,u.clientWidth-u.offsetWidth),d=Math.max(0,n-o);s.style(u,"paddingRight",`${d}px`)}}}function cA(){return kg()?{before({doc:n,d:a,meta:s}){function u(o){for(let d of s().containers)for(let f of d())if(f.contains(o))return!0;return!1}a.microTask(()=>{var o;if(window.getComputedStyle(n.documentElement).scrollBehavior!=="auto"){let h=Vn();h.style(n.documentElement,"scrollBehavior","auto"),a.add(()=>a.microTask(()=>h.dispose()))}let d=(o=window.scrollY)!=null?o:window.pageYOffset,f=null;a.addEventListener(n,"click",h=>{if(ri(h.target))try{let m=h.target.closest("a");if(!m)return;let{hash:y}=new URL(m.href),v=n.querySelector(y);ri(v)&&!u(v)&&(f=v)}catch{}},!0),a.group(h=>{a.addEventListener(n,"touchstart",m=>{if(h.dispose(),ri(m.target)&&AE(m.target))if(u(m.target)){let y=m.target;for(;y.parentElement&&u(y.parentElement);)y=y.parentElement;h.style(y,"overscrollBehavior","contain")}else h.style(m.target,"touchAction","none")})}),a.addEventListener(n,"touchmove",h=>{if(ri(h.target)){if(xE(h.target))return;if(u(h.target)){let m=h.target;for(;m.parentElement&&m.dataset.headlessuiPortal!==""&&!(m.scrollHeight>m.clientHeight||m.scrollWidth>m.clientWidth);)m=m.parentElement;m.dataset.headlessuiPortal===""&&h.preventDefault()}else h.preventDefault()}},{passive:!1}),a.add(()=>{var h;let m=(h=window.scrollY)!=null?h:window.pageYOffset;d!==m&&window.scrollTo(0,d),f&&f.isConnected&&(f.scrollIntoView({block:"nearest"}),f=null)})})}}:{}}function fA(){return{before({doc:n,d:a}){a.style(n.documentElement,"overflow","hidden")}}}function ev(n){let a={};for(let s of n)Object.assign(a,s(a));return a}let Gi=rA(()=>new Map,{PUSH(n,a){var s;let u=(s=this.get(n))!=null?s:{doc:n,count:0,d:Vn(),meta:new Set,computedMeta:{}};return u.count++,u.meta.add(a),u.computedMeta=ev(u.meta),this.set(n,u),this},POP(n,a){let s=this.get(n);return s&&(s.count--,s.meta.delete(a),s.computedMeta=ev(s.meta)),this},SCROLL_PREVENT(n){let a={doc:n.doc,d:n.d,meta(){return n.computedMeta}},s=[cA(),oA(),fA()];s.forEach(({before:u})=>u==null?void 0:u(a)),s.forEach(({after:u})=>u==null?void 0:u(a))},SCROLL_ALLOW({d:n}){n.dispose()},TEARDOWN({doc:n}){this.delete(n)}});Gi.subscribe(()=>{let n=Gi.getSnapshot(),a=new Map;for(let[s]of n)a.set(s,s.documentElement.style.overflow);for(let s of n.values()){let u=a.get(s.doc)==="hidden",o=s.count!==0;(o&&!u||!o&&u)&&Gi.dispatch(s.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",s),s.count===0&&Gi.dispatch("TEARDOWN",s)}});function dA(n,a,s=()=>({containers:[]})){let u=uA(Gi),o=a?u.get(a):void 0,d=o?o.count>0:!1;return Se(()=>{if(!(!a||!n))return Gi.dispatch("PUSH",a,s),()=>Gi.dispatch("POP",a,s)},[n,a]),d}function hA(n,a,s=()=>[document.body]){let u=us(n,"scroll-lock");dA(u,a,o=>{var d;return{containers:[...(d=o.containers)!=null?d:[],s]}})}function mA(n=0){let[a,s]=x.useState(n),u=x.useCallback(m=>s(m),[]),o=x.useCallback(m=>s(y=>y|m),[]),d=x.useCallback(m=>(a&m)===m,[a]),f=x.useCallback(m=>s(y=>y&~m),[]),h=x.useCallback(m=>s(y=>y^m),[]);return{flags:a,setFlag:u,addFlag:o,hasFlag:d,removeFlag:f,toggleFlag:h}}var pA={},nv,iv;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((nv=process==null?void 0:pA)==null?void 0:nv.NODE_ENV)==="test"&&typeof((iv=Element==null?void 0:Element.prototype)==null?void 0:iv.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
61
+ `)),[]});var yA=(n=>(n[n.None=0]="None",n[n.Closed=1]="Closed",n[n.Enter=2]="Enter",n[n.Leave=4]="Leave",n))(yA||{});function vA(n){let a={};for(let s in n)n[s]===!0&&(a[`data-${s}`]="");return a}function gA(n,a,s,u){let[o,d]=x.useState(s),{hasFlag:f,addFlag:h,removeFlag:m}=mA(n&&o?3:0),y=x.useRef(!1),v=x.useRef(!1),b=ss();return Se(()=>{var S;if(n){if(s&&d(!0),!a){s&&h(3);return}return(S=u==null?void 0:u.start)==null||S.call(u,s),bA(a,{inFlight:y,prepare(){v.current?v.current=!1:v.current=y.current,y.current=!0,!v.current&&(s?(h(3),m(4)):(h(4),m(2)))},run(){v.current?s?(m(3),h(4)):(m(4),h(3)):s?m(1):h(1)},done(){var E;v.current&&EA(a)||(y.current=!1,m(7),s||d(!1),(E=u==null?void 0:u.end)==null||E.call(u,s))}})}},[n,s,a,b]),n?[o,{closed:f(1),enter:f(2),leave:f(4),transition:f(2)||f(4)}]:[s,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function bA(n,{prepare:a,run:s,done:u,inFlight:o}){let d=Vn();return TA(n,{prepare:a,inFlight:o}),d.nextFrame(()=>{s(),d.requestAnimationFrame(()=>{d.add(SA(n,u))})}),d.dispose}function SA(n,a){var s,u;let o=Vn();if(!n)return o.dispose;let d=!1;o.add(()=>{d=!0});let f=(u=(s=n.getAnimations)==null?void 0:s.call(n).filter(h=>h instanceof CSSTransition))!=null?u:[];return f.length===0?(a(),o.dispose):(Promise.allSettled(f.map(h=>h.finished)).then(()=>{d||a()}),o.dispose)}function TA(n,{inFlight:a,prepare:s}){if(a!=null&&a.current){s();return}let u=n.style.transition;n.style.transition="none",s(),n.offsetHeight,n.style.transition=u}function EA(n){var a,s;return((s=(a=n.getAnimations)==null?void 0:a.call(n))!=null?s:[]).some(u=>u instanceof CSSTransition&&u.playState!=="finished")}function nd(n,a){let s=x.useRef([]),u=xt(n);x.useEffect(()=>{let o=[...s.current];for(let[d,f]of a.entries())if(s.current[d]!==f){let h=u(a,o);return s.current=a,h}},[u,...a])}let cr=x.createContext(null);cr.displayName="OpenClosedContext";var Je=(n=>(n[n.Open=1]="Open",n[n.Closed=2]="Closed",n[n.Closing=4]="Closing",n[n.Opening=8]="Opening",n))(Je||{});function fr(){return x.useContext(cr)}function AA({value:n,children:a}){return lt.createElement(cr.Provider,{value:n},a)}function MA({children:n}){return lt.createElement(cr.Provider,{value:null},n)}function xA(n){function a(){document.readyState!=="loading"&&(n(),document.removeEventListener("DOMContentLoaded",a))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",a),a())}let si=[];xA(()=>{function n(a){if(!ri(a.target)||a.target===document.body||si[0]===a.target)return;let s=a.target;s=s.closest(Pu),si.unshift(s??a.target),si=si.filter(u=>u!=null&&u.isConnected),si.splice(10)}window.addEventListener("click",n,{capture:!0}),window.addEventListener("mousedown",n,{capture:!0}),window.addEventListener("focus",n,{capture:!0}),document.body.addEventListener("click",n,{capture:!0}),document.body.addEventListener("mousedown",n,{capture:!0}),document.body.addEventListener("focus",n,{capture:!0})});function Wg(n){let a=xt(n),s=x.useRef(!1);x.useEffect(()=>(s.current=!1,()=>{s.current=!0,or(()=>{s.current&&a()})}),[a])}let Ig=x.createContext(!1);function DA(){return x.useContext(Ig)}function av(n){return lt.createElement(Ig.Provider,{value:n.force},n.children)}function CA(n){let a=DA(),s=x.useContext(e0),[u,o]=x.useState(()=>{var d;if(!a&&s!==null)return(d=s.current)!=null?d:null;if(un.isServer)return null;let f=n==null?void 0:n.getElementById("headlessui-portal-root");if(f)return f;if(n===null)return null;let h=n.createElement("div");return h.setAttribute("id","headlessui-portal-root"),n.body.appendChild(h)});return x.useEffect(()=>{u!==null&&(n!=null&&n.body.contains(u)||n==null||n.body.appendChild(u))},[u,n]),x.useEffect(()=>{a||s!==null&&o(s.current)},[s,o,a]),u}let t0=x.Fragment,OA=ue(function(n,a){let{ownerDocument:s=null,...u}=n,o=x.useRef(null),d=cn(DE(S=>{o.current=S}),a),f=ed(o.current),h=s??f,m=CA(h),y=x.useContext(xf),v=ss(),b=Te();return Wg(()=>{var S;m&&m.childNodes.length<=0&&((S=m.parentElement)==null||S.removeChild(m))}),m?QT.createPortal(lt.createElement("div",{"data-headlessui-portal":"",ref:S=>{v.dispose(),y&&S&&v.add(y.register(S))}},b({ourProps:{ref:d},theirProps:u,slot:{},defaultTag:t0,name:"Portal"})),m):null});function RA(n,a){let s=cn(a),{enabled:u=!0,ownerDocument:o,...d}=n,f=Te();return u?lt.createElement(OA,{...d,ownerDocument:o,ref:s}):f({ourProps:{ref:s},theirProps:d,slot:{},defaultTag:t0,name:"Portal"})}let wA=x.Fragment,e0=x.createContext(null);function zA(n,a){let{target:s,...u}=n,o={ref:cn(a)},d=Te();return lt.createElement(e0.Provider,{value:s},d({ourProps:o,theirProps:u,defaultTag:wA,name:"Popover.Group"}))}let xf=x.createContext(null);function VA(){let n=x.useContext(xf),a=x.useRef([]),s=xt(d=>(a.current.push(d),n&&n.register(d),()=>u(d))),u=xt(d=>{let f=a.current.indexOf(d);f!==-1&&a.current.splice(f,1),n&&n.unregister(d)}),o=x.useMemo(()=>({register:s,unregister:u,portals:a}),[s,u,a]);return[a,x.useMemo(()=>function({children:d}){return lt.createElement(xf.Provider,{value:o},d)},[o])]}let LA=ue(RA),n0=ue(zA),_A=Object.assign(LA,{Group:n0}),NA=x.Fragment;function UA(n,a){let{...s}=n,u=!1,{isFocusVisible:o,focusProps:d}=Lg(),{isHovered:f,hoverProps:h}=Vg({isDisabled:u}),{pressed:m,pressProps:y}=Ng({disabled:u}),v=If({ref:a},d,h,y),b=Fi({hover:f,focus:o,active:m});return Te()({ourProps:v,theirProps:s,slot:b,defaultTag:NA,name:"DataInteractive"})}let xC=ue(UA);function BA(n,a=typeof document<"u"?document.defaultView:null,s){let u=us(n,"escape");Jg(a,"keydown",o=>{u&&(o.defaultPrevented||o.key===Gg.Escape&&s(o))})}function HA(){var n;let[a]=x.useState(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[s,u]=x.useState((n=a==null?void 0:a.matches)!=null?n:!1);return Se(()=>{if(!a)return;function o(d){u(d.matches)}return a.addEventListener("change",o),()=>a.removeEventListener("change",o)},[a]),s}function jA({defaultContainers:n=[],portals:a,mainTreeNode:s}={}){let u=xt(()=>{var o,d;let f=qa(s),h=[];for(let m of n)m!==null&&(ci(m)?h.push(m):"current"in m&&ci(m.current)&&h.push(m.current));if(a!=null&&a.current)for(let m of a.current)h.push(m);for(let m of(o=f==null?void 0:f.querySelectorAll("html > *, body > *"))!=null?o:[])m!==document.body&&m!==document.head&&ci(m)&&m.id!=="headlessui-portal-root"&&(s&&(m.contains(s)||m.contains((d=s==null?void 0:s.getRootNode())==null?void 0:d.host))||h.some(y=>m.contains(y))||h.push(m));return h});return{resolveContainers:u,contains:xt(o=>u().some(d=>d.contains(o)))}}let i0=x.createContext(null);function lv({children:n,node:a}){let[s,u]=x.useState(null),o=a0(a??s);return lt.createElement(i0.Provider,{value:o},n,o===null&&lt.createElement(Ef,{features:ku.Hidden,ref:d=>{var f,h;if(d){for(let m of(h=(f=qa(d))==null?void 0:f.querySelectorAll("html > *, body > *"))!=null?h:[])if(m!==document.body&&m!==document.head&&ci(m)&&m!=null&&m.contains(d)){u(m);break}}}}))}function a0(n=null){var a;return(a=x.useContext(i0))!=null?a:n}function GA(){let n=typeof document>"u";return"useSyncExternalStore"in Hy?(a=>a.useSyncExternalStore)(Hy)(()=>()=>{},()=>!1,()=>!n):!1}function dr(){let n=GA(),[a,s]=x.useState(un.isHandoffComplete);return a&&un.isHandoffComplete===!1&&s(!1),x.useEffect(()=>{a!==!0&&s(!0)},[a]),x.useEffect(()=>un.handoff(),[]),n?!1:a}function id(){let n=x.useRef(!1);return Se(()=>(n.current=!0,()=>{n.current=!1}),[]),n}var Xl=(n=>(n[n.Forwards=0]="Forwards",n[n.Backwards=1]="Backwards",n))(Xl||{});function YA(){let n=x.useRef(0);return Pg(!0,"keydown",a=>{a.key==="Tab"&&(n.current=a.shiftKey?1:0)},!0),n}function l0(n){if(!n)return new Set;if(typeof n=="function")return new Set(n());let a=new Set;for(let s of n.current)ci(s.current)&&a.add(s.current);return a}let qA="div";var Bi=(n=>(n[n.None=0]="None",n[n.InitialFocus=1]="InitialFocus",n[n.TabLock=2]="TabLock",n[n.FocusLock=4]="FocusLock",n[n.RestoreFocus=8]="RestoreFocus",n[n.AutoFocus=16]="AutoFocus",n))(Bi||{});function $A(n,a){let s=x.useRef(null),u=cn(s,a),{initialFocus:o,initialFocusFallback:d,containers:f,features:h=15,...m}=n;dr()||(h=0);let y=ed(s.current);ZA(h,{ownerDocument:y});let v=FA(h,{ownerDocument:y,container:s,initialFocus:o,initialFocusFallback:d});kA(h,{ownerDocument:y,container:s,containers:f,previousActiveElement:v});let b=YA(),S=xt(Y=>{if(!Qi(s.current))return;let B=s.current;($=>$())(()=>{zn(b.current,{[Xl.Forwards]:()=>{kl(B,Rn.First,{skipElements:[Y.relatedTarget,d]})},[Xl.Backwards]:()=>{kl(B,Rn.Last,{skipElements:[Y.relatedTarget,d]})}})})}),E=us(!!(h&2),"focus-trap#tab-lock"),D=ss(),z=x.useRef(!1),V={ref:u,onKeyDown(Y){Y.key=="Tab"&&(z.current=!0,D.requestAnimationFrame(()=>{z.current=!1}))},onBlur(Y){if(!(h&4))return;let B=l0(f);Qi(s.current)&&B.add(s.current);let $=Y.relatedTarget;ri($)&&$.dataset.headlessuiFocusGuard!=="true"&&(s0(B,$)||(z.current?kl(s.current,zn(b.current,{[Xl.Forwards]:()=>Rn.Next,[Xl.Backwards]:()=>Rn.Previous})|Rn.WrapAround,{relativeTo:Y.target}):ri(Y.target)&&wn(Y.target)))}},N=Te();return lt.createElement(lt.Fragment,null,E&&lt.createElement(Ef,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:S,features:ku.Focusable}),N({ourProps:V,theirProps:m,defaultTag:qA,name:"FocusTrap"}),E&&lt.createElement(Ef,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:S,features:ku.Focusable}))}let XA=ue($A),KA=Object.assign(XA,{features:Bi});function QA(n=!0){let a=x.useRef(si.slice());return nd(([s],[u])=>{u===!0&&s===!1&&or(()=>{a.current.splice(0)}),u===!1&&s===!0&&(a.current=si.slice())},[n,si,a]),xt(()=>{var s;return(s=a.current.find(u=>u!=null&&u.isConnected))!=null?s:null})}function ZA(n,{ownerDocument:a}){let s=!!(n&8),u=QA(s);nd(()=>{s||rE(a==null?void 0:a.body)&&wn(u())},[s]),Wg(()=>{s&&wn(u())})}function FA(n,{ownerDocument:a,container:s,initialFocus:u,initialFocusFallback:o}){let d=x.useRef(null),f=us(!!(n&1),"focus-trap#initial-focus"),h=id();return nd(()=>{if(n===0)return;if(!f){o!=null&&o.current&&wn(o.current);return}let m=s.current;m&&or(()=>{if(!h.current)return;let y=a==null?void 0:a.activeElement;if(u!=null&&u.current){if((u==null?void 0:u.current)===y){d.current=y;return}}else if(m.contains(y)){d.current=y;return}if(u!=null&&u.current)wn(u.current);else{if(n&16){if(kl(m,Rn.First|Rn.AutoFocus)!==Mf.Error)return}else if(kl(m,Rn.First)!==Mf.Error)return;if(o!=null&&o.current&&(wn(o.current),(a==null?void 0:a.activeElement)===o.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}d.current=a==null?void 0:a.activeElement})},[o,f,n]),d}function kA(n,{ownerDocument:a,container:s,containers:u,previousActiveElement:o}){let d=id(),f=!!(n&4);Jg(a==null?void 0:a.defaultView,"focus",h=>{if(!f||!d.current)return;let m=l0(u);Qi(s.current)&&m.add(s.current);let y=o.current;if(!y)return;let v=h.target;Qi(v)?s0(m,v)?(o.current=v,wn(v)):(h.preventDefault(),h.stopPropagation(),wn(y)):wn(o.current)},!0)}function s0(n,a){for(let s of n)if(s.contains(a))return!0;return!1}function u0(n){var a;return!!(n.enter||n.enterFrom||n.enterTo||n.leave||n.leaveFrom||n.leaveTo)||!Zl((a=n.as)!=null?a:o0)||lt.Children.count(n.children)===1}let hr=x.createContext(null);hr.displayName="TransitionContext";var PA=(n=>(n.Visible="visible",n.Hidden="hidden",n))(PA||{});function JA(){let n=x.useContext(hr);if(n===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return n}function WA(){let n=x.useContext(mr);if(n===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return n}let mr=x.createContext(null);mr.displayName="NestingContext";function pr(n){return"children"in n?pr(n.children):n.current.filter(({el:a})=>a.current!==null).filter(({state:a})=>a==="visible").length>0}function r0(n,a){let s=Zi(n),u=x.useRef([]),o=id(),d=ss(),f=xt((E,D=ui.Hidden)=>{let z=u.current.findIndex(({el:V})=>V===E);z!==-1&&(zn(D,{[ui.Unmount](){u.current.splice(z,1)},[ui.Hidden](){u.current[z].state="hidden"}}),d.microTask(()=>{var V;!pr(u)&&o.current&&((V=s.current)==null||V.call(s))}))}),h=xt(E=>{let D=u.current.find(({el:z})=>z===E);return D?D.state!=="visible"&&(D.state="visible"):u.current.push({el:E,state:"visible"}),()=>f(E,ui.Unmount)}),m=x.useRef([]),y=x.useRef(Promise.resolve()),v=x.useRef({enter:[],leave:[]}),b=xt((E,D,z)=>{m.current.splice(0),a&&(a.chains.current[D]=a.chains.current[D].filter(([V])=>V!==E)),a==null||a.chains.current[D].push([E,new Promise(V=>{m.current.push(V)})]),a==null||a.chains.current[D].push([E,new Promise(V=>{Promise.all(v.current[D].map(([N,Y])=>Y)).then(()=>V())})]),D==="enter"?y.current=y.current.then(()=>a==null?void 0:a.wait.current).then(()=>z(D)):z(D)}),S=xt((E,D,z)=>{Promise.all(v.current[D].splice(0).map(([V,N])=>N)).then(()=>{var V;(V=m.current.shift())==null||V()}).then(()=>z(D))});return x.useMemo(()=>({children:u,register:h,unregister:f,onStart:b,onStop:S,wait:y,chains:v}),[h,f,u,b,S,v,y])}let o0=x.Fragment,c0=Fu.RenderStrategy;function IA(n,a){var s,u;let{transition:o=!0,beforeEnter:d,afterEnter:f,beforeLeave:h,afterLeave:m,enter:y,enterFrom:v,enterTo:b,entered:S,leave:E,leaveFrom:D,leaveTo:z,...V}=n,[N,Y]=x.useState(null),B=x.useRef(null),$=u0(n),K=cn(...$?[B,a,Y]:a===null?[]:[a]),et=(s=V.unmount)==null||s?ui.Unmount:ui.Hidden,{show:Z,appear:tt,initial:bt}=JA(),[k,ct]=x.useState(Z?"visible":"hidden"),yt=WA(),{register:zt,unregister:Dt}=yt;Se(()=>zt(B),[zt,B]),Se(()=>{if(et===ui.Hidden&&B.current){if(Z&&k!=="visible"){ct("visible");return}return zn(k,{hidden:()=>Dt(B),visible:()=>zt(B)})}},[k,B,zt,Dt,Z,et]);let Vt=dr();Se(()=>{if($&&Vt&&k==="visible"&&B.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[B,k,Vt,$]);let _=bt&&!tt,X=tt&&Z&&bt,Q=x.useRef(!1),it=r0(()=>{Q.current||(ct("hidden"),Dt(B))},yt),ot=xt(gt=>{Q.current=!0;let Xt=gt?"enter":"leave";it.onStart(B,Xt,Lt=>{Lt==="enter"?d==null||d():Lt==="leave"&&(h==null||h())})}),A=xt(gt=>{let Xt=gt?"enter":"leave";Q.current=!1,it.onStop(B,Xt,Lt=>{Lt==="enter"?f==null||f():Lt==="leave"&&(m==null||m())}),Xt==="leave"&&!pr(it)&&(ct("hidden"),Dt(B))});x.useEffect(()=>{$&&o||(ot(Z),A(Z))},[Z,$,o]);let j=!(!o||!$||!Vt||_),[,q]=gA(j,N,Z,{start:ot,end:A}),F=Ni({ref:K,className:((u=Tf(V.className,X&&y,X&&v,q.enter&&y,q.enter&&q.closed&&v,q.enter&&!q.closed&&b,q.leave&&E,q.leave&&!q.closed&&D,q.leave&&q.closed&&z,!q.transition&&Z&&S))==null?void 0:u.trim())||void 0,...vA(q)}),at=0;k==="visible"&&(at|=Je.Open),k==="hidden"&&(at|=Je.Closed),Z&&k==="hidden"&&(at|=Je.Opening),!Z&&k==="visible"&&(at|=Je.Closing);let ft=Te();return lt.createElement(mr.Provider,{value:it},lt.createElement(AA,{value:at},ft({ourProps:F,theirProps:V,defaultTag:o0,features:c0,visible:k==="visible",name:"Transition.Child"})))}function t2(n,a){let{show:s,appear:u=!1,unmount:o=!0,...d}=n,f=x.useRef(null),h=u0(n),m=cn(...h?[f,a]:a===null?[]:[a]);dr();let y=fr();if(s===void 0&&y!==null&&(s=(y&Je.Open)===Je.Open),s===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[v,b]=x.useState(s?"visible":"hidden"),S=r0(()=>{s||b("hidden")}),[E,D]=x.useState(!0),z=x.useRef([s]);Se(()=>{E!==!1&&z.current[z.current.length-1]!==s&&(z.current.push(s),D(!1))},[z,s]);let V=x.useMemo(()=>({show:s,appear:u,initial:E}),[s,u,E]);Se(()=>{s?b("visible"):!pr(S)&&f.current!==null&&b("hidden")},[s,S]);let N={unmount:o},Y=xt(()=>{var K;E&&D(!1),(K=n.beforeEnter)==null||K.call(n)}),B=xt(()=>{var K;E&&D(!1),(K=n.beforeLeave)==null||K.call(n)}),$=Te();return lt.createElement(mr.Provider,{value:S},lt.createElement(hr.Provider,{value:V},$({ourProps:{...N,as:x.Fragment,children:lt.createElement(f0,{ref:m,...N,...d,beforeEnter:Y,beforeLeave:B})},theirProps:{},defaultTag:x.Fragment,features:c0,visible:v==="visible",name:"Transition"})))}function e2(n,a){let s=x.useContext(hr)!==null,u=fr()!==null;return lt.createElement(lt.Fragment,null,!s&&u?lt.createElement(Df,{ref:a,...n}):lt.createElement(f0,{ref:a,...n}))}let Df=ue(t2),f0=ue(IA),ad=ue(e2),n2=Object.assign(Df,{Child:ad,Root:Df});var i2=(n=>(n[n.Open=0]="Open",n[n.Closed=1]="Closed",n))(i2||{}),a2=(n=>(n[n.SetTitleId=0]="SetTitleId",n))(a2||{});let l2={0(n,a){return n.titleId===a.id?n:{...n,titleId:a.id}}},ld=x.createContext(null);ld.displayName="DialogContext";function yr(n){let a=x.useContext(ld);if(a===null){let s=new Error(`<${n} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(s,yr),s}return a}function s2(n,a){return zn(a.type,l2,n,a)}let sv=ue(function(n,a){let s=x.useId(),{id:u=`headlessui-dialog-${s}`,open:o,onClose:d,initialFocus:f,role:h="dialog",autoFocus:m=!0,__demoMode:y=!1,unmount:v=!1,...b}=n,S=x.useRef(!1);h=(function(){return h==="dialog"||h==="alertdialog"?h:(S.current||(S.current=!0,console.warn(`Invalid role [${h}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")})();let E=fr();o===void 0&&E!==null&&(o=(E&Je.Open)===Je.Open);let D=x.useRef(null),z=cn(D,a),V=ed(D.current),N=o?0:1,[Y,B]=x.useReducer(s2,{titleId:null,descriptionId:null,panelRef:x.createRef()}),$=xt(()=>d(!1)),K=xt(q=>B({type:0,id:q})),et=dr()?N===0:!1,[Z,tt]=VA(),bt={get current(){var q;return(q=Y.panelRef.current)!=null?q:D.current}},k=a0(),{resolveContainers:ct}=jA({mainTreeNode:k,portals:Z,defaultContainers:[bt]}),yt=E!==null?(E&Je.Closing)===Je.Closing:!1;FE(y||yt?!1:et,{allowed:xt(()=>{var q,F;return[(F=(q=D.current)==null?void 0:q.closest("[data-headlessui-portal]"))!=null?F:null]}),disallowed:xt(()=>{var q;return[(q=k==null?void 0:k.closest("body > *:not(#headlessui-portal-root)"))!=null?q:null]})});let zt=Qg.get(null);Se(()=>{if(et)return zt.actions.push(u),()=>zt.actions.pop(u)},[zt,u,et]);let Dt=Zg(zt,x.useCallback(q=>zt.selectors.isTop(q,u),[zt,u]));sA(Dt,ct,q=>{q.preventDefault(),$()}),BA(Dt,V==null?void 0:V.defaultView,q=>{q.preventDefault(),q.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),$()}),hA(y||yt?!1:et,V,ct),kE(et,D,$);let[Vt,_]=CE(),X=x.useMemo(()=>[{dialogState:N,close:$,setTitleId:K,unmount:v},Y],[N,$,K,v,Y]),Q=Fi({open:N===0}),it={ref:z,id:u,role:h,tabIndex:-1,"aria-modal":y?void 0:N===0?!0:void 0,"aria-labelledby":Y.titleId,"aria-describedby":Vt,unmount:v},ot=!HA(),A=Bi.None;et&&!y&&(A|=Bi.RestoreFocus,A|=Bi.TabLock,m&&(A|=Bi.AutoFocus),ot&&(A|=Bi.InitialFocus));let j=Te();return lt.createElement(MA,null,lt.createElement(av,{force:!0},lt.createElement(_A,null,lt.createElement(ld.Provider,{value:X},lt.createElement(n0,{target:D},lt.createElement(av,{force:!1},lt.createElement(_,{slot:Q},lt.createElement(tt,null,lt.createElement(KA,{initialFocus:f,initialFocusFallback:D,containers:ct,features:A},lt.createElement(LE,{value:$},j({ourProps:it,theirProps:b,slot:Q,defaultTag:u2,features:r2,visible:N===0,name:"Dialog"})))))))))))}),u2="div",r2=Fu.RenderStrategy|Fu.Static;function o2(n,a){let{transition:s=!1,open:u,...o}=n,d=fr(),f=n.hasOwnProperty("open")||d!==null,h=n.hasOwnProperty("onClose");if(!f&&!h)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!f)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!h)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!d&&typeof n.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${n.open}`);if(typeof n.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${n.onClose}`);return(u!==void 0||s)&&!o.static?lt.createElement(lv,null,lt.createElement(n2,{show:u,transition:s,unmount:o.unmount},lt.createElement(sv,{ref:a,...o}))):lt.createElement(lv,null,lt.createElement(sv,{ref:a,open:u,...o}))}let c2="div";function f2(n,a){let s=x.useId(),{id:u=`headlessui-dialog-panel-${s}`,transition:o=!1,...d}=n,[{dialogState:f,unmount:h},m]=yr("Dialog.Panel"),y=cn(a,m.panelRef),v=Fi({open:f===0}),b=xt(V=>{V.stopPropagation()}),S={ref:y,id:u,onClick:b},E=o?ad:x.Fragment,D=o?{unmount:h}:{},z=Te();return lt.createElement(E,{...D},z({ourProps:S,theirProps:d,slot:v,defaultTag:c2,name:"Dialog.Panel"}))}let d2="div";function h2(n,a){let{transition:s=!1,...u}=n,[{dialogState:o,unmount:d}]=yr("Dialog.Backdrop"),f=Fi({open:o===0}),h={ref:a,"aria-hidden":!0},m=s?ad:x.Fragment,y=s?{unmount:d}:{},v=Te();return lt.createElement(m,{...y},v({ourProps:h,theirProps:u,slot:f,defaultTag:d2,name:"Dialog.Backdrop"}))}let m2="h2";function p2(n,a){let s=x.useId(),{id:u=`headlessui-dialog-title-${s}`,...o}=n,[{dialogState:d,setTitleId:f}]=yr("Dialog.Title"),h=cn(a);x.useEffect(()=>(f(u),()=>f(null)),[u,f]);let m=Fi({open:d===0}),y={ref:h,id:u};return Te()({ourProps:y,theirProps:o,slot:m,defaultTag:m2,name:"Dialog.Title"})}let y2=ue(o2),v2=ue(f2),DC=ue(h2),g2=ue(p2),CC=Object.assign(y2,{Panel:v2,Title:g2,Description:zE});const Ju=x.createContext({});function b2(n){const a=x.useRef(null);return a.current===null&&(a.current=n()),a.current}const S2=typeof window<"u",d0=S2?x.useLayoutEffect:x.useEffect,sd=x.createContext(null);function ud(n,a){n.indexOf(a)===-1&&n.push(a)}function Wu(n,a){const s=n.indexOf(a);s>-1&&n.splice(s,1)}const on=(n,a,s)=>s>a?a:s<n?n:s;let rd=()=>{};const fi={},h0=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n);function m0(n){return typeof n=="object"&&n!==null}const p0=n=>/^0[^.\s]+$/u.test(n);function y0(n){let a;return()=>(a===void 0&&(a=n()),a)}const Ke=n=>n,T2=(n,a)=>s=>a(n(s)),rs=(...n)=>n.reduce(T2),es=(n,a,s)=>{const u=a-n;return u===0?1:(s-n)/u};class od{constructor(){this.subscriptions=[]}add(a){return ud(this.subscriptions,a),()=>Wu(this.subscriptions,a)}notify(a,s,u){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](a,s,u);else for(let d=0;d<o;d++){const f=this.subscriptions[d];f&&f(a,s,u)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ve=n=>n*1e3,Xe=n=>n/1e3;function v0(n,a){return a?n*(1e3/a):0}const g0=(n,a,s)=>(((1-3*s+3*a)*n+(3*s-6*a))*n+3*a)*n,E2=1e-7,A2=12;function M2(n,a,s,u,o){let d,f,h=0;do f=a+(s-a)/2,d=g0(f,u,o)-n,d>0?s=f:a=f;while(Math.abs(d)>E2&&++h<A2);return f}function os(n,a,s,u){if(n===a&&s===u)return Ke;const o=d=>M2(d,0,1,n,s);return d=>d===0||d===1?d:g0(o(d),a,u)}const b0=n=>a=>a<=.5?n(2*a)/2:(2-n(2*(1-a)))/2,S0=n=>a=>1-n(1-a),T0=os(.33,1.53,.69,.99),cd=S0(T0),E0=b0(cd),A0=n=>n>=1?1:(n*=2)<1?.5*cd(n):.5*(2-Math.pow(2,-10*(n-1))),fd=n=>1-Math.sin(Math.acos(n)),M0=S0(fd),x0=b0(fd),x2=os(.42,0,1,1),D2=os(0,0,.58,1),D0=os(.42,0,.58,1),C2=n=>Array.isArray(n)&&typeof n[0]!="number",C0=n=>Array.isArray(n)&&typeof n[0]=="number",O2={linear:Ke,easeIn:x2,easeInOut:D0,easeOut:D2,circIn:fd,circInOut:x0,circOut:M0,backIn:cd,backInOut:E0,backOut:T0,anticipate:A0},R2=n=>typeof n=="string",uv=n=>{if(C0(n)){rd(n.length===4);const[a,s,u,o]=n;return os(a,s,u,o)}else if(R2(n))return O2[n];return n},_u=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function w2(n,a){let s=new Set,u=new Set,o=!1,d=!1;const f=new WeakSet;let h={delta:0,timestamp:0,isProcessing:!1};function m(v){f.has(v)&&(y.schedule(v),n()),v(h)}const y={schedule:(v,b=!1,S=!1)=>{const D=S&&o?s:u;return b&&f.add(v),D.add(v),v},cancel:v=>{u.delete(v),f.delete(v)},process:v=>{if(h=v,o){d=!0;return}o=!0;const b=s;s=u,u=b,s.forEach(m),s.clear(),o=!1,d&&(d=!1,y.process(v))}};return y}const z2=40;function O0(n,a){let s=!1,u=!0;const o={delta:0,timestamp:0,isProcessing:!1},d=()=>s=!0,f=_u.reduce((B,$)=>(B[$]=w2(d),B),{}),{setup:h,read:m,resolveKeyframes:y,preUpdate:v,update:b,preRender:S,render:E,postRender:D}=f,z=()=>{const B=fi.useManualTiming,$=B?o.timestamp:performance.now();s=!1,B||(o.delta=u?1e3/60:Math.max(Math.min($-o.timestamp,z2),1)),o.timestamp=$,o.isProcessing=!0,h.process(o),m.process(o),y.process(o),v.process(o),b.process(o),S.process(o),E.process(o),D.process(o),o.isProcessing=!1,s&&a&&(u=!1,n(z))},V=()=>{s=!0,u=!0,o.isProcessing||n(z)};return{schedule:_u.reduce((B,$)=>{const K=f[$];return B[$]=(et,Z=!1,tt=!1)=>(s||V(),K.schedule(et,Z,tt)),B},{}),cancel:B=>{for(let $=0;$<_u.length;$++)f[_u[$]].cancel(B)},state:o,steps:f}}const{schedule:wt,cancel:di,state:le,steps:Wc}=O0(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ke,!0);let Hu;function V2(){Hu=void 0}const fe={now:()=>(Hu===void 0&&fe.set(le.isProcessing||fi.useManualTiming?le.timestamp:performance.now()),Hu),set:n=>{Hu=n,queueMicrotask(V2)}},R0=n=>a=>typeof a=="string"&&a.startsWith(n),w0=R0("--"),L2=R0("var(--"),dd=n=>L2(n)?_2.test(n.split("/*")[0].trim()):!1,_2=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function rv(n){return typeof n!="string"?!1:n.split("/*")[0].includes("var(--")}const $a={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},ns={...$a,transform:n=>on(0,1,n)},Nu={...$a,default:1},Pl=n=>Math.round(n*1e5)/1e5,hd=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function N2(n){return n==null}const U2=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,md=(n,a)=>s=>!!(typeof s=="string"&&U2.test(s)&&s.startsWith(n)||a&&!N2(s)&&Object.prototype.hasOwnProperty.call(s,a)),z0=(n,a,s)=>u=>{if(typeof u!="string")return u;const[o,d,f,h]=u.match(hd);return{[n]:parseFloat(o),[a]:parseFloat(d),[s]:parseFloat(f),alpha:h!==void 0?parseFloat(h):1}},B2=n=>on(0,255,n),Ic={...$a,transform:n=>Math.round(B2(n))},Yi={test:md("rgb","red"),parse:z0("red","green","blue"),transform:({red:n,green:a,blue:s,alpha:u=1})=>"rgba("+Ic.transform(n)+", "+Ic.transform(a)+", "+Ic.transform(s)+", "+Pl(ns.transform(u))+")"};function H2(n){let a="",s="",u="",o="";return n.length>5?(a=n.substring(1,3),s=n.substring(3,5),u=n.substring(5,7),o=n.substring(7,9)):(a=n.substring(1,2),s=n.substring(2,3),u=n.substring(3,4),o=n.substring(4,5),a+=a,s+=s,u+=u,o+=o),{red:parseInt(a,16),green:parseInt(s,16),blue:parseInt(u,16),alpha:o?parseInt(o,16)/255:1}}const Cf={test:md("#"),parse:H2,transform:Yi.transform},cs=n=>({test:a=>typeof a=="string"&&a.endsWith(n)&&a.split(" ").length===1,parse:parseFloat,transform:a=>`${a}${n}`}),ai=cs("deg"),rn=cs("%"),J=cs("px"),j2=cs("vh"),G2=cs("vw"),ov={...rn,parse:n=>rn.parse(n)/100,transform:n=>rn.transform(n*100)},_a={test:md("hsl","hue"),parse:z0("hue","saturation","lightness"),transform:({hue:n,saturation:a,lightness:s,alpha:u=1})=>"hsla("+Math.round(n)+", "+rn.transform(Pl(a))+", "+rn.transform(Pl(s))+", "+Pl(ns.transform(u))+")"},kt={test:n=>Yi.test(n)||Cf.test(n)||_a.test(n),parse:n=>Yi.test(n)?Yi.parse(n):_a.test(n)?_a.parse(n):Cf.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?Yi.transform(n):_a.transform(n),getAnimatableNone:n=>{const a=kt.parse(n);return a.alpha=0,kt.transform(a)}},Y2=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function q2(n){var a,s;return isNaN(n)&&typeof n=="string"&&(((a=n.match(hd))==null?void 0:a.length)||0)+(((s=n.match(Y2))==null?void 0:s.length)||0)>0}const V0="number",L0="color",$2="var",X2="var(",cv="${}",K2=/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 ja(n){const a=n.toString(),s=[],u={color:[],number:[],var:[]},o=[];let d=0;const h=a.replace(K2,m=>(kt.test(m)?(u.color.push(d),o.push(L0),s.push(kt.parse(m))):m.startsWith(X2)?(u.var.push(d),o.push($2),s.push(m)):(u.number.push(d),o.push(V0),s.push(parseFloat(m))),++d,cv)).split(cv);return{values:s,split:h,indexes:u,types:o}}function Q2(n){return ja(n).values}function _0({split:n,types:a}){const s=n.length;return u=>{let o="";for(let d=0;d<s;d++)if(o+=n[d],u[d]!==void 0){const f=a[d];f===V0?o+=Pl(u[d]):f===L0?o+=kt.transform(u[d]):o+=u[d]}return o}}function Z2(n){return _0(ja(n))}const F2=n=>typeof n=="number"?0:kt.test(n)?kt.getAnimatableNone(n):n,k2=(n,a)=>typeof n=="number"?a!=null&&a.trim().endsWith("/")?n:0:F2(n);function P2(n){const a=ja(n);return _0(a)(a.values.map((u,o)=>k2(u,a.split[o])))}const We={test:q2,parse:Q2,createTransformer:Z2,getAnimatableNone:P2};function tf(n,a,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?n+(a-n)*6*s:s<1/2?a:s<2/3?n+(a-n)*(2/3-s)*6:n}function J2({hue:n,saturation:a,lightness:s,alpha:u}){n/=360,a/=100,s/=100;let o=0,d=0,f=0;if(!a)o=d=f=s;else{const h=s<.5?s*(1+a):s+a-s*a,m=2*s-h;o=tf(m,h,n+1/3),d=tf(m,h,n),f=tf(m,h,n-1/3)}return{red:Math.round(o*255),green:Math.round(d*255),blue:Math.round(f*255),alpha:u}}function Iu(n,a){return s=>s>0?a:n}const Bt=(n,a,s)=>n+(a-n)*s,ef=(n,a,s)=>{const u=n*n,o=s*(a*a-u)+u;return o<0?0:Math.sqrt(o)},W2=[Cf,Yi,_a],I2=n=>W2.find(a=>a.test(n));function fv(n){const a=I2(n);if(!a)return!1;let s=a.parse(n);return a===_a&&(s=J2(s)),s}const dv=(n,a)=>{const s=fv(n),u=fv(a);if(!s||!u)return Iu(n,a);const o={...s};return d=>(o.red=ef(s.red,u.red,d),o.green=ef(s.green,u.green,d),o.blue=ef(s.blue,u.blue,d),o.alpha=Bt(s.alpha,u.alpha,d),Yi.transform(o))},Of=new Set(["none","hidden"]);function tM(n,a){return Of.has(n)?s=>s<=0?n:a:s=>s>=1?a:n}function eM(n,a){return s=>Bt(n,a,s)}function pd(n){return typeof n=="number"?eM:typeof n=="string"?dd(n)?Iu:kt.test(n)?dv:aM:Array.isArray(n)?N0:typeof n=="object"?kt.test(n)?dv:nM:Iu}function N0(n,a){const s=[...n],u=s.length,o=n.map((d,f)=>pd(d)(d,a[f]));return d=>{for(let f=0;f<u;f++)s[f]=o[f](d);return s}}function nM(n,a){const s={...n,...a},u={};for(const o in s)n[o]!==void 0&&a[o]!==void 0&&(u[o]=pd(n[o])(n[o],a[o]));return o=>{for(const d in u)s[d]=u[d](o);return s}}function iM(n,a){const s=[],u={color:0,var:0,number:0};for(let o=0;o<a.values.length;o++){const d=a.types[o],f=n.indexes[d][u[d]],h=n.values[f]??0;s[o]=h,u[d]++}return s}const aM=(n,a)=>{const s=We.createTransformer(a),u=ja(n),o=ja(a);return u.indexes.var.length===o.indexes.var.length&&u.indexes.color.length===o.indexes.color.length&&u.indexes.number.length>=o.indexes.number.length?Of.has(n)&&!o.values.length||Of.has(a)&&!u.values.length?tM(n,a):rs(N0(iM(u,o),o.values),s):Iu(n,a)};function U0(n,a,s){return typeof n=="number"&&typeof a=="number"&&typeof s=="number"?Bt(n,a,s):pd(n)(n,a)}const lM=n=>{const a=({timestamp:s})=>n(s);return{start:(s=!0)=>wt.update(a,s),stop:()=>di(a),now:()=>le.isProcessing?le.timestamp:fe.now()}},B0=(n,a,s=10)=>{let u="";const o=Math.max(Math.round(a/s),2);for(let d=0;d<o;d++)u+=Math.round(n(d/(o-1))*1e4)/1e4+", ";return`linear(${u.substring(0,u.length-2)})`},tr=2e4;function yd(n){let a=0;const s=50;let u=n.next(a);for(;!u.done&&a<tr;)a+=s,u=n.next(a);return a>=tr?1/0:a}function sM(n,a=100,s){const u=s({...n,keyframes:[0,a]}),o=Math.min(yd(u),tr);return{type:"keyframes",ease:d=>u.next(o*d).value/a,duration:Xe(o)}}const Yt={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 Rf(n,a){return n*Math.sqrt(1-a*a)}const uM=12;function rM(n,a,s){let u=s;for(let o=1;o<uM;o++)u=u-n(u)/a(u);return u}const nf=.001;function oM({duration:n=Yt.duration,bounce:a=Yt.bounce,velocity:s=Yt.velocity,mass:u=Yt.mass}){let o,d,f=1-a;f=on(Yt.minDamping,Yt.maxDamping,f),n=on(Yt.minDuration,Yt.maxDuration,Xe(n)),f<1?(o=y=>{const v=y*f,b=v*n,S=v-s,E=Rf(y,f),D=Math.exp(-b);return nf-S/E*D},d=y=>{const b=y*f*n,S=b*s+s,E=Math.pow(f,2)*Math.pow(y,2)*n,D=Math.exp(-b),z=Rf(Math.pow(y,2),f);return(-o(y)+nf>0?-1:1)*((S-E)*D)/z}):(o=y=>{const v=Math.exp(-y*n),b=(y-s)*n+1;return-nf+v*b},d=y=>{const v=Math.exp(-y*n),b=(s-y)*(n*n);return v*b});const h=5/n,m=rM(o,d,h);if(n=Ve(n),isNaN(m))return{stiffness:Yt.stiffness,damping:Yt.damping,duration:n};{const y=Math.pow(m,2)*u;return{stiffness:y,damping:f*2*Math.sqrt(u*y),duration:n}}}const cM=["duration","bounce"],fM=["stiffness","damping","mass"];function hv(n,a){return a.some(s=>n[s]!==void 0)}function dM(n){let a={velocity:Yt.velocity,stiffness:Yt.stiffness,damping:Yt.damping,mass:Yt.mass,isResolvedFromDuration:!1,...n};if(!hv(n,fM)&&hv(n,cM))if(a.velocity=0,n.visualDuration){const s=n.visualDuration,u=2*Math.PI/(s*1.2),o=u*u,d=2*on(.05,1,1-(n.bounce||0))*Math.sqrt(o);a={...a,mass:Yt.mass,stiffness:o,damping:d}}else{const s=oM({...n,velocity:0});a={...a,...s,mass:Yt.mass},a.isResolvedFromDuration=!0}return a}function er(n=Yt.visualDuration,a=Yt.bounce){const s=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:a}:n;let{restSpeed:u,restDelta:o}=s;const d=s.keyframes[0],f=s.keyframes[s.keyframes.length-1],h={done:!1,value:d},{stiffness:m,damping:y,mass:v,duration:b,velocity:S,isResolvedFromDuration:E}=dM({...s,velocity:-Xe(s.velocity||0)}),D=S||0,z=y/(2*Math.sqrt(m*v)),V=f-d,N=Xe(Math.sqrt(m/v)),Y=Math.abs(V)<5;u||(u=Y?Yt.restSpeed.granular:Yt.restSpeed.default),o||(o=Y?Yt.restDelta.granular:Yt.restDelta.default);let B,$,K,et,Z,tt;if(z<1)K=Rf(N,z),et=(D+z*N*V)/K,B=k=>{const ct=Math.exp(-z*N*k);return f-ct*(et*Math.sin(K*k)+V*Math.cos(K*k))},Z=z*N*et+V*K,tt=z*N*V-et*K,$=k=>Math.exp(-z*N*k)*(Z*Math.sin(K*k)+tt*Math.cos(K*k));else if(z===1){B=ct=>f-Math.exp(-N*ct)*(V+(D+N*V)*ct);const k=D+N*V;$=ct=>Math.exp(-N*ct)*(N*k*ct-D)}else{const k=N*Math.sqrt(z*z-1);B=Dt=>{const Vt=Math.exp(-z*N*Dt),_=Math.min(k*Dt,300);return f-Vt*((D+z*N*V)*Math.sinh(_)+k*V*Math.cosh(_))/k};const ct=(D+z*N*V)/k,yt=z*N*ct-V*k,zt=z*N*V-ct*k;$=Dt=>{const Vt=Math.exp(-z*N*Dt),_=Math.min(k*Dt,300);return Vt*(yt*Math.sinh(_)+zt*Math.cosh(_))}}const bt={calculatedDuration:E&&b||null,velocity:k=>Ve($(k)),next:k=>{if(!E&&z<1){const yt=Math.exp(-z*N*k),zt=Math.sin(K*k),Dt=Math.cos(K*k),Vt=f-yt*(et*zt+V*Dt),_=Ve(yt*(Z*zt+tt*Dt));return h.done=Math.abs(_)<=u&&Math.abs(f-Vt)<=o,h.value=h.done?f:Vt,h}const ct=B(k);if(E)h.done=k>=b;else{const yt=Ve($(k));h.done=Math.abs(yt)<=u&&Math.abs(f-ct)<=o}return h.value=h.done?f:ct,h},toString:()=>{const k=Math.min(yd(bt),tr),ct=B0(yt=>bt.next(k*yt).value,k,30);return k+"ms "+ct},toTransition:()=>{}};return bt}er.applyToOptions=n=>{const a=sM(n,100,er);return n.ease=a.ease,n.duration=Ve(a.duration),n.type="keyframes",n};const hM=5;function H0(n,a,s){const u=Math.max(a-hM,0);return v0(s-n(u),a-u)}function wf({keyframes:n,velocity:a=0,power:s=.8,timeConstant:u=325,bounceDamping:o=10,bounceStiffness:d=500,modifyTarget:f,min:h,max:m,restDelta:y=.5,restSpeed:v}){const b=n[0],S={done:!1,value:b},E=tt=>h!==void 0&&tt<h||m!==void 0&&tt>m,D=tt=>h===void 0?m:m===void 0||Math.abs(h-tt)<Math.abs(m-tt)?h:m;let z=s*a;const V=b+z,N=f===void 0?V:f(V);N!==V&&(z=N-b);const Y=tt=>-z*Math.exp(-tt/u),B=tt=>N+Y(tt),$=tt=>{const bt=Y(tt),k=B(tt);S.done=Math.abs(bt)<=y,S.value=S.done?N:k};let K,et;const Z=tt=>{E(S.value)&&(K=tt,et=er({keyframes:[S.value,D(S.value)],velocity:H0(B,tt,S.value),damping:o,stiffness:d,restDelta:y,restSpeed:v}))};return Z(0),{calculatedDuration:null,next:tt=>{let bt=!1;return!et&&K===void 0&&(bt=!0,$(tt),Z(tt)),K!==void 0&&tt>=K?et.next(tt-K):(!bt&&$(tt),S)}}}function mM(n,a,s){const u=[],o=s||fi.mix||U0,d=n.length-1;for(let f=0;f<d;f++){let h=o(n[f],n[f+1]);if(a){const m=Array.isArray(a)?a[f]||Ke:a;h=rs(m,h)}u.push(h)}return u}function pM(n,a,{clamp:s=!0,ease:u,mixer:o}={}){const d=n.length;if(rd(d===a.length),d===1)return()=>a[0];if(d===2&&a[0]===a[1])return()=>a[1];const f=n[0]===n[1];n[0]>n[d-1]&&(n=[...n].reverse(),a=[...a].reverse());const h=mM(a,u,o),m=h.length,y=v=>{if(f&&v<n[0])return a[0];let b=0;if(m>1)for(;b<n.length-2&&!(v<n[b+1]);b++);const S=es(n[b],n[b+1],v);return h[b](S)};return s?v=>y(on(n[0],n[d-1],v)):y}function yM(n,a){const s=n[n.length-1];for(let u=1;u<=a;u++){const o=es(0,a,u);n.push(Bt(s,1,o))}}function vM(n){const a=[0];return yM(a,n.length-1),a}function gM(n,a){return n.map(s=>s*a)}function bM(n,a){return n.map(()=>a||D0).splice(0,n.length-1)}function Jl({duration:n=300,keyframes:a,times:s,ease:u="easeInOut"}){const o=C2(u)?u.map(uv):uv(u),d={done:!1,value:a[0]},f=gM(s&&s.length===a.length?s:vM(a),n),h=pM(f,a,{ease:Array.isArray(o)?o:bM(a,o)});return{calculatedDuration:n,next:m=>(d.value=h(m),d.done=m>=n,d)}}const SM=n=>n!==null;function vr(n,{repeat:a,repeatType:s="loop"},u,o=1){const d=n.filter(SM),h=o<0||a&&s!=="loop"&&a%2===1?0:d.length-1;return!h||u===void 0?d[h]:u}const TM={decay:wf,inertia:wf,tween:Jl,keyframes:Jl,spring:er};function j0(n){typeof n.type=="string"&&(n.type=TM[n.type])}class vd{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(a=>{this.resolve=a})}notifyFinished(){this.resolve()}then(a,s){return this.finished.then(a,s)}}const EM=n=>n/100;class nr extends vd{constructor(a){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,o;const{motionValue:s}=this.options;s&&s.updatedAt!==fe.now()&&this.tick(fe.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(o=(u=this.options).onStop)==null||o.call(u))},this.options=a,this.initAnimation(),this.play(),a.autoplay===!1&&this.pause()}initAnimation(){const{options:a}=this;j0(a);const{type:s=Jl,repeat:u=0,repeatDelay:o=0,repeatType:d,velocity:f=0}=a;let{keyframes:h}=a;const m=s||Jl;m!==Jl&&typeof h[0]!="number"&&(this.mixKeyframes=rs(EM,U0(h[0],h[1])),h=[0,100]);const y=m({...a,keyframes:h});d==="mirror"&&(this.mirroredGenerator=m({...a,keyframes:[...h].reverse(),velocity:-f})),y.calculatedDuration===null&&(y.calculatedDuration=yd(y));const{calculatedDuration:v}=y;this.calculatedDuration=v,this.resolvedDuration=v+o,this.totalDuration=this.resolvedDuration*(u+1)-o,this.generator=y}updateTime(a){const s=Math.round(a-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=s}tick(a,s=!1){const{generator:u,totalDuration:o,mixKeyframes:d,mirroredGenerator:f,resolvedDuration:h,calculatedDuration:m}=this;if(this.startTime===null)return u.next(0);const{delay:y=0,keyframes:v,repeat:b,repeatType:S,repeatDelay:E,type:D,onUpdate:z,finalKeyframe:V}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,a):this.speed<0&&(this.startTime=Math.min(a-o/this.speed,this.startTime)),s?this.currentTime=a:this.updateTime(a);const N=this.currentTime-y*(this.playbackSpeed>=0?1:-1),Y=this.playbackSpeed>=0?N<0:N>o;this.currentTime=Math.max(N,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let B=this.currentTime,$=u;if(b){const tt=Math.min(this.currentTime,o)/h;let bt=Math.floor(tt),k=tt%1;!k&&tt>=1&&(k=1),k===1&&bt--,bt=Math.min(bt,b+1),!!(bt%2)&&(S==="reverse"?(k=1-k,E&&(k-=E/h)):S==="mirror"&&($=f)),B=on(0,1,k)*h}let K;Y?(this.delayState.value=v[0],K=this.delayState):K=$.next(B),d&&!Y&&(K.value=d(K.value));let{done:et}=K;!Y&&m!==null&&(et=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const Z=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&et);return Z&&D!==wf&&(K.value=vr(v,this.options,V,this.speed)),z&&z(K.value),Z&&this.finish(),K}then(a,s){return this.finished.then(a,s)}get duration(){return Xe(this.calculatedDuration)}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+Xe(a)}get time(){return Xe(this.currentTime)}set time(a){a=Ve(a),this.currentTime=a,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=a:this.driver&&(this.startTime=this.driver.now()-a/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=a,this.tick(a))}getGeneratorVelocity(){const a=this.currentTime;if(a<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(a);const s=this.generator.next(a).value;return H0(u=>this.generator.next(u).value,a,s)}get speed(){return this.playbackSpeed}set speed(a){const s=this.playbackSpeed!==a;s&&this.driver&&this.updateTime(fe.now()),this.playbackSpeed=a,s&&this.driver&&(this.time=Xe(this.currentTime))}play(){var o,d;if(this.isStopped)return;const{driver:a=lM,startTime:s}=this.options;this.driver||(this.driver=a(f=>this.tick(f))),(d=(o=this.options).onPlay)==null||d.call(o);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 a,s;this.notifyFinished(),this.teardown(),this.state="finished",(s=(a=this.options).onComplete)==null||s.call(a)}cancel(){var a,s;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(s=(a=this.options).onCancel)==null||s.call(a)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(a){return this.startTime=0,this.tick(a,!0)}attachTimeline(a){var s;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(s=this.driver)==null||s.stop(),a.observe(this)}}function AM(n){for(let a=1;a<n.length;a++)n[a]??(n[a]=n[a-1])}const qi=n=>n*180/Math.PI,zf=n=>{const a=qi(Math.atan2(n[1],n[0]));return Vf(a)},MM={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:n=>(Math.abs(n[0])+Math.abs(n[3]))/2,rotate:zf,rotateZ:zf,skewX:n=>qi(Math.atan(n[1])),skewY:n=>qi(Math.atan(n[2])),skew:n=>(Math.abs(n[1])+Math.abs(n[2]))/2},Vf=n=>(n=n%360,n<0&&(n+=360),n),mv=zf,pv=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),yv=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),xM={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:pv,scaleY:yv,scale:n=>(pv(n)+yv(n))/2,rotateX:n=>Vf(qi(Math.atan2(n[6],n[5]))),rotateY:n=>Vf(qi(Math.atan2(-n[2],n[0]))),rotateZ:mv,rotate:mv,skewX:n=>qi(Math.atan(n[4])),skewY:n=>qi(Math.atan(n[1])),skew:n=>(Math.abs(n[1])+Math.abs(n[4]))/2};function Lf(n){return n.includes("scale")?1:0}function _f(n,a){if(!n||n==="none")return Lf(a);const s=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let u,o;if(s)u=xM,o=s;else{const h=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);u=MM,o=h}if(!o)return Lf(a);const d=u[a],f=o[1].split(",").map(CM);return typeof d=="function"?d(f):f[d]}const DM=(n,a)=>{const{transform:s="none"}=getComputedStyle(n);return _f(s,a)};function CM(n){return parseFloat(n.trim())}const Xa=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ka=new Set(Xa),vv=n=>n===$a||n===J,OM=new Set(["x","y","z"]),RM=Xa.filter(n=>!OM.has(n));function wM(n){const a=[];return RM.forEach(s=>{const u=n.getValue(s);u!==void 0&&(a.push([s,u.get()]),u.set(s.startsWith("scale")?1:0))}),a}const oi={width:({x:n},{paddingLeft:a="0",paddingRight:s="0",boxSizing:u})=>{const o=n.max-n.min;return u==="border-box"?o:o-parseFloat(a)-parseFloat(s)},height:({y:n},{paddingTop:a="0",paddingBottom:s="0",boxSizing:u})=>{const o=n.max-n.min;return u==="border-box"?o:o-parseFloat(a)-parseFloat(s)},top:(n,{top:a})=>parseFloat(a),left:(n,{left:a})=>parseFloat(a),bottom:({y:n},{top:a})=>parseFloat(a)+(n.max-n.min),right:({x:n},{left:a})=>parseFloat(a)+(n.max-n.min),x:(n,{transform:a})=>_f(a,"x"),y:(n,{transform:a})=>_f(a,"y")};oi.translateX=oi.x;oi.translateY=oi.y;const $i=new Set;let Nf=!1,Uf=!1,Bf=!1;function G0(){if(Uf){const n=Array.from($i).filter(u=>u.needsMeasurement),a=new Set(n.map(u=>u.element)),s=new Map;a.forEach(u=>{const o=wM(u);o.length&&(s.set(u,o),u.render())}),n.forEach(u=>u.measureInitialState()),a.forEach(u=>{u.render();const o=s.get(u);o&&o.forEach(([d,f])=>{var h;(h=u.getValue(d))==null||h.set(f)})}),n.forEach(u=>u.measureEndState()),n.forEach(u=>{u.suspendedScrollY!==void 0&&window.scrollTo(0,u.suspendedScrollY)})}Uf=!1,Nf=!1,$i.forEach(n=>n.complete(Bf)),$i.clear()}function Y0(){$i.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(Uf=!0)})}function zM(){Bf=!0,Y0(),G0(),Bf=!1}class gd{constructor(a,s,u,o,d,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...a],this.onComplete=s,this.name=u,this.motionValue=o,this.element=d,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?($i.add(this),Nf||(Nf=!0,wt.read(Y0),wt.resolveKeyframes(G0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:a,name:s,element:u,motionValue:o}=this;if(a[0]===null){const d=o==null?void 0:o.get(),f=a[a.length-1];if(d!==void 0)a[0]=d;else if(u&&s){const h=u.readValue(s,f);h!=null&&(a[0]=h)}a[0]===void 0&&(a[0]=f),o&&d===void 0&&o.set(a[0])}AM(a)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(a=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,a),$i.delete(this)}cancel(){this.state==="scheduled"&&($i.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const VM=n=>n.startsWith("--");function q0(n,a,s){VM(a)?n.style.setProperty(a,s):n.style[a]=s}const LM={};function $0(n,a){const s=y0(n);return()=>LM[a]??s()}const _M=$0(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),X0=$0(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Kl=([n,a,s,u])=>`cubic-bezier(${n}, ${a}, ${s}, ${u})`,gv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Kl([0,.65,.55,1]),circOut:Kl([.55,0,1,.45]),backIn:Kl([.31,.01,.66,-.59]),backOut:Kl([.33,1.53,.69,.99])};function K0(n,a){if(n)return typeof n=="function"?X0()?B0(n,a):"ease-out":C0(n)?Kl(n):Array.isArray(n)?n.map(s=>K0(s,a)||gv.easeOut):gv[n]}function NM(n,a,s,{delay:u=0,duration:o=300,repeat:d=0,repeatType:f="loop",ease:h="easeOut",times:m}={},y=void 0){const v={[a]:s};m&&(v.offset=m);const b=K0(h,o);Array.isArray(b)&&(v.easing=b);const S={delay:u,duration:o,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:d+1,direction:f==="reverse"?"alternate":"normal"};return y&&(S.pseudoElement=y),n.animate(v,S)}function Q0(n){return typeof n=="function"&&"applyToOptions"in n}function UM({type:n,...a}){return Q0(n)&&X0()?n.applyToOptions(a):(a.duration??(a.duration=300),a.ease??(a.ease="easeOut"),a)}class Z0 extends vd{constructor(a){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!a)return;const{element:s,name:u,keyframes:o,pseudoElement:d,allowFlatten:f=!1,finalKeyframe:h,onComplete:m}=a;this.isPseudoElement=!!d,this.allowFlatten=f,this.options=a,rd(typeof a.type!="string");const y=UM(a);this.animation=NM(s,u,o,y,d),y.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!d){const v=vr(o,this.options,h,this.speed);this.updateMotionValue&&this.updateMotionValue(v),q0(s,u,v),this.animation.cancel()}m==null||m(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var a,s;(s=(a=this.animation).finish)==null||s.call(a)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:a}=this;a==="idle"||a==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var s,u,o;const a=(s=this.options)==null?void 0:s.element;!this.isPseudoElement&&(a!=null&&a.isConnected)&&((o=(u=this.animation).commitStyles)==null||o.call(u))}get duration(){var s,u;const a=((u=(s=this.animation.effect)==null?void 0:s.getComputedTiming)==null?void 0:u.call(s).duration)||0;return Xe(Number(a))}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+Xe(a)}get time(){return Xe(Number(this.animation.currentTime)||0)}set time(a){const s=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Ve(a),s&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(a){a<0&&(this.finishedTime=null),this.animation.playbackRate=a}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(a){this.manualStartTime=this.animation.startTime=a}attachTimeline({timeline:a,rangeStart:s,rangeEnd:u,observe:o}){var d;return this.allowFlatten&&((d=this.animation.effect)==null||d.updateTiming({easing:"linear"})),this.animation.onfinish=null,a&&_M()?(this.animation.timeline=a,s&&(this.animation.rangeStart=s),u&&(this.animation.rangeEnd=u),Ke):o(this)}}const F0={anticipate:A0,backInOut:E0,circInOut:x0};function BM(n){return n in F0}function HM(n){typeof n.ease=="string"&&BM(n.ease)&&(n.ease=F0[n.ease])}const af=10;class jM extends Z0{constructor(a){HM(a),j0(a),super(a),a.startTime!==void 0&&a.autoplay!==!1&&(this.startTime=a.startTime),this.options=a}updateMotionValue(a){const{motionValue:s,onUpdate:u,onComplete:o,element:d,...f}=this.options;if(!s)return;if(a!==void 0){s.set(a);return}const h=new nr({...f,autoplay:!1}),m=Math.max(af,fe.now()-this.startTime),y=on(0,af,m-af),v=h.sample(m).value,{name:b}=this.options;d&&b&&q0(d,b,v),s.setWithVelocity(h.sample(Math.max(0,m-y)).value,v,y),h.stop()}}const bv=(n,a)=>a==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(We.test(n)||n==="0")&&!n.startsWith("url("));function GM(n){const a=n[0];if(n.length===1)return!0;for(let s=0;s<n.length;s++)if(n[s]!==a)return!0}function YM(n,a,s,u){const o=n[0];if(o===null)return!1;if(a==="display"||a==="visibility")return!0;const d=n[n.length-1],f=bv(o,a),h=bv(d,a);return!f||!h?!1:GM(n)||(s==="spring"||Q0(s))&&u}function Hf(n){n.duration=0,n.type="keyframes"}const k0=new Set(["opacity","clipPath","filter","transform"]),qM=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function $M(n){for(let a=0;a<n.length;a++)if(typeof n[a]=="string"&&qM.test(n[a]))return!0;return!1}const XM=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),KM=y0(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function QM(n){var b;const{motionValue:a,name:s,repeatDelay:u,repeatType:o,damping:d,type:f,keyframes:h}=n;if(!(((b=a==null?void 0:a.owner)==null?void 0:b.current)instanceof HTMLElement))return!1;const{onUpdate:y,transformTemplate:v}=a.owner.getProps();return KM()&&s&&(k0.has(s)||XM.has(s)&&$M(h))&&(s!=="transform"||!v)&&!y&&!u&&o!=="mirror"&&d!==0&&f!=="inertia"}const ZM=40;class FM extends vd{constructor({autoplay:a=!0,delay:s=0,type:u="keyframes",repeat:o=0,repeatDelay:d=0,repeatType:f="loop",keyframes:h,name:m,motionValue:y,element:v,...b}){var D;super(),this.stop=()=>{var z,V;this._animation&&(this._animation.stop(),(z=this.stopTimeline)==null||z.call(this)),(V=this.keyframeResolver)==null||V.cancel()},this.createdAt=fe.now();const S={autoplay:a,delay:s,type:u,repeat:o,repeatDelay:d,repeatType:f,name:m,motionValue:y,element:v,...b},E=(v==null?void 0:v.KeyframeResolver)||gd;this.keyframeResolver=new E(h,(z,V,N)=>this.onKeyframesResolved(z,V,S,!N),m,y,v),(D=this.keyframeResolver)==null||D.scheduleResolve()}onKeyframesResolved(a,s,u,o){var N,Y;this.keyframeResolver=void 0;const{name:d,type:f,velocity:h,delay:m,isHandoff:y,onUpdate:v}=u;this.resolvedAt=fe.now();let b=!0;YM(a,d,f,h)||(b=!1,(fi.instantAnimations||!m)&&(v==null||v(vr(a,u,s))),a[0]=a[a.length-1],Hf(u),u.repeat=0);const E={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>ZM?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...u,keyframes:a},D=b&&!y&&QM(E),z=(Y=(N=E.motionValue)==null?void 0:N.owner)==null?void 0:Y.current;let V;if(D)try{V=new jM({...E,element:z})}catch{V=new nr(E)}else V=new nr(E);V.finished.then(()=>{this.notifyFinished()}).catch(Ke),this.pendingTimeline&&(this.stopTimeline=V.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=V}get finished(){return this._animation?this.animation.finished:this._finished}then(a,s){return this.finished.finally(a).then(()=>{})}get animation(){var a;return this._animation||((a=this.keyframeResolver)==null||a.resume(),zM()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(a){this.animation.time=a}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(a){this.animation.speed=a}get startTime(){return this.animation.startTime}attachTimeline(a){return this._animation?this.stopTimeline=this.animation.attachTimeline(a):this.pendingTimeline=a,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var a;this._animation&&this.animation.cancel(),(a=this.keyframeResolver)==null||a.cancel()}}function P0(n,a,s,u=0,o=1){const d=Array.from(n).sort((y,v)=>y.sortNodePosition(v)).indexOf(a),f=n.size,h=(f-1)*u;return typeof s=="function"?s(d,f):o===1?d*u:h-d*u}const kM=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function PM(n){const a=kM.exec(n);if(!a)return[,];const[,s,u,o]=a;return[`--${s??u}`,o]}function J0(n,a,s=1){const[u,o]=PM(n);if(!u)return;const d=window.getComputedStyle(a).getPropertyValue(u);if(d){const f=d.trim();return h0(f)?parseFloat(f):f}return dd(o)?J0(o,a,s+1):o}const JM={type:"spring",stiffness:500,damping:25,restSpeed:10},WM=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),IM={type:"keyframes",duration:.8},tx={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ex=(n,{keyframes:a})=>a.length>2?IM:Ka.has(n)?n.startsWith("scale")?WM(a[1]):JM:tx;function W0(n,a){if(n!=null&&n.inherit&&a){const{inherit:s,...u}=n;return{...a,...u}}return n}function bd(n,a){const s=(n==null?void 0:n[a])??(n==null?void 0:n.default)??n;return s!==n?W0(s,n):s}const nx=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function ix(n){for(const a in n)if(!nx.has(a))return!0;return!1}const Sd=(n,a,s,u={},o,d)=>f=>{const h=bd(u,n)||{},m=h.delay||u.delay||0;let{elapsed:y=0}=u;y=y-Ve(m);const v={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:a.getVelocity(),...h,delay:-y,onUpdate:S=>{a.set(S),h.onUpdate&&h.onUpdate(S)},onComplete:()=>{f(),h.onComplete&&h.onComplete()},name:n,motionValue:a,element:d?void 0:o};ix(h)||Object.assign(v,ex(n,v)),v.duration&&(v.duration=Ve(v.duration)),v.repeatDelay&&(v.repeatDelay=Ve(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let b=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(Hf(v),v.delay===0&&(b=!0)),(fi.instantAnimations||fi.skipAnimations||o!=null&&o.shouldSkipAnimations)&&(b=!0,Hf(v),v.delay=0),v.allowFlatten=!h.type&&!h.ease,b&&!d&&a.get()!==void 0){const S=vr(v.keyframes,h);if(S!==void 0){wt.update(()=>{v.onUpdate(S),v.onComplete()});return}}return h.isSync?new nr(v):new FM(v)};function Sv(n){const a=[{},{}];return n==null||n.values.forEach((s,u)=>{a[0][u]=s.get(),a[1][u]=s.getVelocity()}),a}function Td(n,a,s,u){if(typeof a=="function"){const[o,d]=Sv(u);a=a(s!==void 0?s:n.custom,o,d)}if(typeof a=="string"&&(a=n.variants&&n.variants[a]),typeof a=="function"){const[o,d]=Sv(u);a=a(s!==void 0?s:n.custom,o,d)}return a}function Xi(n,a,s){const u=n.getProps();return Td(u,a,s!==void 0?s:u.custom,n)}const I0=new Set(["width","height","top","left","right","bottom",...Xa]),Tv=30,ax=n=>!isNaN(parseFloat(n));class lx{constructor(a,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=u=>{var d;const o=fe.now();if(this.updatedAt!==o&&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(a),this.owner=s.owner}setCurrent(a){this.current=a,this.updatedAt=fe.now(),this.canTrackVelocity===null&&a!==void 0&&(this.canTrackVelocity=ax(this.current))}setPrevFrameValue(a=this.current){this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt}onChange(a){return this.on("change",a)}on(a,s){this.events[a]||(this.events[a]=new od);const u=this.events[a].add(s);return a==="change"?()=>{u(),wt.read(()=>{this.events.change.getSize()||this.stop()})}:u}clearListeners(){for(const a in this.events)this.events[a].clear()}attach(a,s){this.passiveEffect=a,this.stopPassiveEffect=s}set(a){this.passiveEffect?this.passiveEffect(a,this.updateAndNotify):this.updateAndNotify(a)}setWithVelocity(a,s,u){this.set(s),this.prev=void 0,this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt-u}jump(a,s=!0){this.updateAndNotify(a),this.prev=a,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var a;(a=this.events.change)==null||a.notify(this.current)}addDependent(a){this.dependents||(this.dependents=new Set),this.dependents.add(a)}removeDependent(a){this.dependents&&this.dependents.delete(a)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const a=fe.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||a-this.updatedAt>Tv)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,Tv);return v0(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(a){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=a(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 a,s;(a=this.dependents)==null||a.clear(),(s=this.events.destroy)==null||s.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ga(n,a){return new lx(n,a)}const jf=n=>Array.isArray(n);function sx(n,a,s){n.hasValue(a)?n.getValue(a).set(s):n.addValue(a,Ga(s))}function ux(n){return jf(n)?n[n.length-1]||0:n}function rx(n,a){const s=Xi(n,a);let{transitionEnd:u={},transition:o={},...d}=s||{};d={...d,...u};for(const f in d){const h=ux(d[f]);sx(n,f,h)}}const se=n=>!!(n&&n.getVelocity);function ox(n){return!!(se(n)&&n.add)}function Gf(n,a){const s=n.getValue("willChange");if(ox(s))return s.add(a);if(!s&&fi.WillChange){const u=new fi.WillChange("auto");n.addValue("willChange",u),u.add(a)}}function Ed(n){return n.replace(/([A-Z])/g,a=>`-${a.toLowerCase()}`)}const cx="framerAppearId",t1="data-"+Ed(cx);function e1(n){return n.props[t1]}function fx({protectedKeys:n,needsAnimating:a},s){const u=n.hasOwnProperty(s)&&a[s]!==!0;return a[s]=!1,u}function n1(n,a,{delay:s=0,transitionOverride:u,type:o}={}){let{transition:d,transitionEnd:f,...h}=a;const m=n.getDefaultTransition();d=d?W0(d,m):m;const y=d==null?void 0:d.reduceMotion;u&&(d=u);const v=[],b=o&&n.animationState&&n.animationState.getState()[o];for(const S in h){const E=n.getValue(S,n.latestValues[S]??null),D=h[S];if(D===void 0||b&&fx(b,S))continue;const z={delay:s,...bd(d||{},S)},V=E.get();if(V!==void 0&&!E.isAnimating()&&!Array.isArray(D)&&D===V&&!z.velocity){wt.update(()=>E.set(D));continue}let N=!1;if(window.MotionHandoffAnimation){const $=e1(n);if($){const K=window.MotionHandoffAnimation($,S,wt);K!==null&&(z.startTime=K,N=!0)}}Gf(n,S);const Y=y??n.shouldReduceMotion;E.start(Sd(S,E,D,Y&&I0.has(S)?{type:!1}:z,n,N));const B=E.animation;B&&v.push(B)}if(f){const S=()=>wt.update(()=>{f&&rx(n,f)});v.length?Promise.all(v).then(S):S()}return v}function Yf(n,a,s={}){var m;const u=Xi(n,a,s.type==="exit"?(m=n.presenceContext)==null?void 0:m.custom:void 0);let{transition:o=n.getDefaultTransition()||{}}=u||{};s.transitionOverride&&(o=s.transitionOverride);const d=u?()=>Promise.all(n1(n,u,s)):()=>Promise.resolve(),f=n.variantChildren&&n.variantChildren.size?(y=0)=>{const{delayChildren:v=0,staggerChildren:b,staggerDirection:S}=o;return dx(n,a,y,v,b,S,s)}:()=>Promise.resolve(),{when:h}=o;if(h){const[y,v]=h==="beforeChildren"?[d,f]:[f,d];return y().then(()=>v())}else return Promise.all([d(),f(s.delay)])}function dx(n,a,s=0,u=0,o=0,d=1,f){const h=[];for(const m of n.variantChildren)m.notify("AnimationStart",a),h.push(Yf(m,a,{...f,delay:s+(typeof u=="function"?0:u)+P0(n.variantChildren,m,u,o,d)}).then(()=>m.notify("AnimationComplete",a)));return Promise.all(h)}function hx(n,a,s={}){n.notify("AnimationStart",a);let u;if(Array.isArray(a)){const o=a.map(d=>Yf(n,d,s));u=Promise.all(o)}else if(typeof a=="string")u=Yf(n,a,s);else{const o=typeof a=="function"?Xi(n,a,s.custom):a;u=Promise.all(n1(n,o,s))}return u.then(()=>{n.notify("AnimationComplete",a)})}const mx={test:n=>n==="auto",parse:n=>n},i1=n=>a=>a.test(n),a1=[$a,J,rn,ai,G2,j2,mx],Ev=n=>a1.find(i1(n));function px(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||p0(n):!0}const yx=new Set(["brightness","contrast","saturate","opacity"]);function vx(n){const[a,s]=n.slice(0,-1).split("(");if(a==="drop-shadow")return n;const[u]=s.match(hd)||[];if(!u)return n;const o=s.replace(u,"");let d=yx.has(a)?1:0;return u!==s&&(d*=100),a+"("+d+o+")"}const gx=/\b([a-z-]*)\(.*?\)/gu,qf={...We,getAnimatableNone:n=>{const a=n.match(gx);return a?a.map(vx).join(" "):n}},$f={...We,getAnimatableNone:n=>{const a=We.parse(n);return We.createTransformer(n)(a.map(u=>typeof u=="number"?0:typeof u=="object"?{...u,alpha:1}:u))}},Av={...$a,transform:Math.round},bx={rotate:ai,rotateX:ai,rotateY:ai,rotateZ:ai,scale:Nu,scaleX:Nu,scaleY:Nu,scaleZ:Nu,skew:ai,skewX:ai,skewY:ai,distance:J,translateX:J,translateY:J,translateZ:J,x:J,y:J,z:J,perspective:J,transformPerspective:J,opacity:ns,originX:ov,originY:ov,originZ:J},Ad={borderWidth:J,borderTopWidth:J,borderRightWidth:J,borderBottomWidth:J,borderLeftWidth:J,borderRadius:J,borderTopLeftRadius:J,borderTopRightRadius:J,borderBottomRightRadius:J,borderBottomLeftRadius:J,width:J,maxWidth:J,height:J,maxHeight:J,top:J,right:J,bottom:J,left:J,inset:J,insetBlock:J,insetBlockStart:J,insetBlockEnd:J,insetInline:J,insetInlineStart:J,insetInlineEnd:J,padding:J,paddingTop:J,paddingRight:J,paddingBottom:J,paddingLeft:J,paddingBlock:J,paddingBlockStart:J,paddingBlockEnd:J,paddingInline:J,paddingInlineStart:J,paddingInlineEnd:J,margin:J,marginTop:J,marginRight:J,marginBottom:J,marginLeft:J,marginBlock:J,marginBlockStart:J,marginBlockEnd:J,marginInline:J,marginInlineStart:J,marginInlineEnd:J,fontSize:J,backgroundPositionX:J,backgroundPositionY:J,...bx,zIndex:Av,fillOpacity:ns,strokeOpacity:ns,numOctaves:Av},Sx={...Ad,color:kt,backgroundColor:kt,outlineColor:kt,fill:kt,stroke:kt,borderColor:kt,borderTopColor:kt,borderRightColor:kt,borderBottomColor:kt,borderLeftColor:kt,filter:qf,WebkitFilter:qf,mask:$f,WebkitMask:$f},l1=n=>Sx[n],Tx=new Set([qf,$f]);function s1(n,a){let s=l1(n);return Tx.has(s)||(s=We),s.getAnimatableNone?s.getAnimatableNone(a):void 0}const Ex=new Set(["auto","none","0"]);function Ax(n,a,s){let u=0,o;for(;u<n.length&&!o;){const d=n[u];typeof d=="string"&&!Ex.has(d)&&ja(d).values.length&&(o=n[u]),u++}if(o&&s)for(const d of a)n[d]=s1(s,o)}class Mx extends gd{constructor(a,s,u,o,d){super(a,s,u,o,d,!0)}readKeyframes(){const{unresolvedKeyframes:a,element:s,name:u}=this;if(!s||!s.current)return;super.readKeyframes();for(let v=0;v<a.length;v++){let b=a[v];if(typeof b=="string"&&(b=b.trim(),dd(b))){const S=J0(b,s.current);S!==void 0&&(a[v]=S),v===a.length-1&&(this.finalKeyframe=b)}}if(this.resolveNoneKeyframes(),!I0.has(u)||a.length!==2)return;const[o,d]=a,f=Ev(o),h=Ev(d),m=rv(o),y=rv(d);if(m!==y&&oi[u]){this.needsMeasurement=!0;return}if(f!==h)if(vv(f)&&vv(h))for(let v=0;v<a.length;v++){const b=a[v];typeof b=="string"&&(a[v]=parseFloat(b))}else oi[u]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:a,name:s}=this,u=[];for(let o=0;o<a.length;o++)(a[o]===null||px(a[o]))&&u.push(o);u.length&&Ax(a,u,s)}measureInitialState(){const{element:a,unresolvedKeyframes:s,name:u}=this;if(!a||!a.current)return;u==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=oi[u](a.measureViewportBox(),window.getComputedStyle(a.current)),s[0]=this.measuredOrigin;const o=s[s.length-1];o!==void 0&&a.getValue(u,o).jump(o,!1)}measureEndState(){var h;const{element:a,name:s,unresolvedKeyframes:u}=this;if(!a||!a.current)return;const o=a.getValue(s);o&&o.jump(this.measuredOrigin,!1);const d=u.length-1,f=u[d];u[d]=oi[s](a.measureViewportBox(),window.getComputedStyle(a.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),(h=this.removedTransforms)!=null&&h.length&&this.removedTransforms.forEach(([m,y])=>{a.getValue(m).set(y)}),this.resolveNoneKeyframes()}}function u1(n,a,s){if(n==null)return[];if(n instanceof EventTarget)return[n];if(typeof n=="string"){let u=document;const o=(s==null?void 0:s[n])??u.querySelectorAll(n);return o?Array.from(o):[]}return Array.from(n).filter(u=>u!=null)}const r1=(n,a)=>a&&typeof n=="number"?a.transform(n):n;function xx(n){return m0(n)&&"offsetHeight"in n&&!("ownerSVGElement"in n)}const{schedule:Md}=O0(queueMicrotask,!1),Pe={x:!1,y:!1};function o1(){return Pe.x||Pe.y}function Dx(n){return n==="x"||n==="y"?Pe[n]?null:(Pe[n]=!0,()=>{Pe[n]=!1}):Pe.x||Pe.y?null:(Pe.x=Pe.y=!0,()=>{Pe.x=Pe.y=!1})}function c1(n,a){const s=u1(n),u=new AbortController,o={passive:!0,...a,signal:u.signal};return[s,o,()=>u.abort()]}function Cx(n){return!(n.pointerType==="touch"||o1())}function Ox(n,a,s={}){const[u,o,d]=c1(n,s);return u.forEach(f=>{let h=!1,m=!1,y;const v=()=>{f.removeEventListener("pointerleave",D)},b=V=>{y&&(y(V),y=void 0),v()},S=V=>{h=!1,window.removeEventListener("pointerup",S),window.removeEventListener("pointercancel",S),m&&(m=!1,b(V))},E=()=>{h=!0,window.addEventListener("pointerup",S,o),window.addEventListener("pointercancel",S,o)},D=V=>{if(V.pointerType!=="touch"){if(h){m=!0;return}b(V)}},z=V=>{if(!Cx(V))return;m=!1;const N=a(f,V);typeof N=="function"&&(y=N,f.addEventListener("pointerleave",D,o))};f.addEventListener("pointerenter",z,o),f.addEventListener("pointerdown",E,o)}),d}const f1=(n,a)=>a?n===a?!0:f1(n,a.parentElement):!1,xd=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,Rx=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function wx(n){return Rx.has(n.tagName)||n.isContentEditable===!0}const zx=new Set(["INPUT","SELECT","TEXTAREA"]);function Vx(n){return zx.has(n.tagName)||n.isContentEditable===!0}const ju=new WeakSet;function Mv(n){return a=>{a.key==="Enter"&&n(a)}}function lf(n,a){n.dispatchEvent(new PointerEvent("pointer"+a,{isPrimary:!0,bubbles:!0}))}const Lx=(n,a)=>{const s=n.currentTarget;if(!s)return;const u=Mv(()=>{if(ju.has(s))return;lf(s,"down");const o=Mv(()=>{lf(s,"up")}),d=()=>lf(s,"cancel");s.addEventListener("keyup",o,a),s.addEventListener("blur",d,a)});s.addEventListener("keydown",u,a),s.addEventListener("blur",()=>s.removeEventListener("keydown",u),a)};function xv(n){return xd(n)&&!o1()}const Dv=new WeakSet;function _x(n,a,s={}){const[u,o,d]=c1(n,s),f=h=>{const m=h.currentTarget;if(!xv(h)||Dv.has(h))return;ju.add(m),s.stopPropagation&&Dv.add(h);const y=a(m,h),v=(E,D)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",S),ju.has(m)&&ju.delete(m),xv(E)&&typeof y=="function"&&y(E,{success:D})},b=E=>{v(E,m===window||m===document||s.useGlobalTarget||f1(m,E.target))},S=E=>{v(E,!1)};window.addEventListener("pointerup",b,o),window.addEventListener("pointercancel",S,o)};return u.forEach(h=>{(s.useGlobalTarget?window:h).addEventListener("pointerdown",f,o),xx(h)&&(h.addEventListener("focus",y=>Lx(y,o)),!wx(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),d}function Dd(n){return m0(n)&&"ownerSVGElement"in n}const Gu=new WeakMap;let li;const d1=(n,a,s)=>(u,o)=>o&&o[0]?o[0][n+"Size"]:Dd(u)&&"getBBox"in u?u.getBBox()[a]:u[s],Nx=d1("inline","width","offsetWidth"),Ux=d1("block","height","offsetHeight");function Bx({target:n,borderBoxSize:a}){var s;(s=Gu.get(n))==null||s.forEach(u=>{u(n,{get width(){return Nx(n,a)},get height(){return Ux(n,a)}})})}function Hx(n){n.forEach(Bx)}function jx(){typeof ResizeObserver>"u"||(li=new ResizeObserver(Hx))}function Gx(n,a){li||jx();const s=u1(n);return s.forEach(u=>{let o=Gu.get(u);o||(o=new Set,Gu.set(u,o)),o.add(a),li==null||li.observe(u)}),()=>{s.forEach(u=>{const o=Gu.get(u);o==null||o.delete(a),o!=null&&o.size||li==null||li.unobserve(u)})}}const Yu=new Set;let Na;function Yx(){Na=()=>{const n={get width(){return window.innerWidth},get height(){return window.innerHeight}};Yu.forEach(a=>a(n))},window.addEventListener("resize",Na)}function qx(n){return Yu.add(n),Na||Yx(),()=>{Yu.delete(n),!Yu.size&&typeof Na=="function"&&(window.removeEventListener("resize",Na),Na=void 0)}}function Cv(n,a){return typeof n=="function"?qx(n):Gx(n,a)}function $x(n){return Dd(n)&&n.tagName==="svg"}const Xx=[...a1,kt,We],Kx=n=>Xx.find(i1(n)),Ov=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ua=()=>({x:Ov(),y:Ov()}),Rv=()=>({min:0,max:0}),Jt=()=>({x:Rv(),y:Rv()}),Qx=new WeakMap;function gr(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function is(n){return typeof n=="string"||Array.isArray(n)}const Cd=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Od=["initial",...Cd];function br(n){return gr(n.animate)||Od.some(a=>is(n[a]))}function h1(n){return!!(br(n)||n.variants)}function Zx(n,a,s){for(const u in a){const o=a[u],d=s[u];if(se(o))n.addValue(u,o);else if(se(d))n.addValue(u,Ga(o,{owner:n}));else if(d!==o)if(n.hasValue(u)){const f=n.getValue(u);f.liveStyle===!0?f.jump(o):f.hasAnimated||f.set(o)}else{const f=n.getStaticValue(u);n.addValue(u,Ga(f!==void 0?f:o,{owner:n}))}}for(const u in s)a[u]===void 0&&n.removeValue(u);return a}const Xf={current:null},m1={current:!1},Fx=typeof window<"u";function kx(){if(m1.current=!0,!!Fx)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),a=()=>Xf.current=n.matches;n.addEventListener("change",a),a()}else Xf.current=!1}const wv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let ir={};function p1(n){ir=n}function Px(){return ir}class Jx{scrapeMotionValuesFromProps(a,s,u){return{}}constructor({parent:a,props:s,presenceContext:u,reducedMotionConfig:o,skipAnimations:d,blockInitialAnimation:f,visualState:h},m={}){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=gd,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 E=fe.now();this.renderScheduledAt<E&&(this.renderScheduledAt=E,wt.render(this.render,!1,!0))};const{latestValues:y,renderState:v}=h;this.latestValues=y,this.baseTarget={...y},this.initialValues=s.initial?{...y}:{},this.renderState=v,this.parent=a,this.props=s,this.presenceContext=u,this.depth=a?a.depth+1:0,this.reducedMotionConfig=o,this.skipAnimationsConfig=d,this.options=m,this.blockInitialAnimation=!!f,this.isControllingVariants=br(s),this.isVariantNode=h1(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(a&&a.current);const{willChange:b,...S}=this.scrapeMotionValuesFromProps(s,{},this);for(const E in S){const D=S[E];y[E]!==void 0&&se(D)&&D.set(y[E])}}mount(a){var s,u;if(this.hasBeenMounted)for(const o in this.initialValues)(s=this.values.get(o))==null||s.jump(this.initialValues[o]),this.latestValues[o]=this.initialValues[o];this.current=a,Qx.set(a,this),this.projection&&!this.projection.instance&&this.projection.mount(a),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((o,d)=>this.bindToMotionValue(d,o)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(m1.current||kx(),this.shouldReduceMotion=Xf.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(u=this.parent)==null||u.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var a;this.projection&&this.projection.unmount(),di(this.notifyUpdate),di(this.render),this.valueSubscriptions.forEach(s=>s()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(a=this.parent)==null||a.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(a){this.children.add(a),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(a)}removeChild(a){this.children.delete(a),this.enteringChildren&&this.enteringChildren.delete(a)}bindToMotionValue(a,s){if(this.valueSubscriptions.has(a)&&this.valueSubscriptions.get(a)(),s.accelerate&&k0.has(a)&&this.current instanceof HTMLElement){const{factory:f,keyframes:h,times:m,ease:y,duration:v}=s.accelerate,b=new Z0({element:this.current,name:a,keyframes:h,times:m,ease:y,duration:Ve(v)}),S=f(b);this.valueSubscriptions.set(a,()=>{S(),b.cancel()});return}const u=Ka.has(a);u&&this.onBindTransform&&this.onBindTransform();const o=s.on("change",f=>{this.latestValues[a]=f,this.props.onUpdate&&wt.preRender(this.notifyUpdate),u&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let d;typeof window<"u"&&window.MotionCheckAppearSync&&(d=window.MotionCheckAppearSync(this,a,s)),this.valueSubscriptions.set(a,()=>{o(),d&&d(),s.owner&&s.stop()})}sortNodePosition(a){return!this.current||!this.sortInstanceNodePosition||this.type!==a.type?0:this.sortInstanceNodePosition(this.current,a.current)}updateFeatures(){let a="animation";for(a in ir){const s=ir[a];if(!s)continue;const{isEnabled:u,Feature:o}=s;if(!this.features[a]&&o&&u(this.props)&&(this.features[a]=new o(this)),this.features[a]){const d=this.features[a];d.isMounted?d.update():(d.mount(),d.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Jt()}getStaticValue(a){return this.latestValues[a]}setStaticValue(a,s){this.latestValues[a]=s}update(a,s){(a.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=a,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let u=0;u<wv.length;u++){const o=wv[u];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const d="on"+o,f=a[d];f&&(this.propEventSubscriptions[o]=this.on(o,f))}this.prevMotionValues=Zx(this,this.scrapeMotionValuesFromProps(a,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(a){return this.props.variants?this.props.variants[a]: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(a){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(a),()=>s.variantChildren.delete(a)}addValue(a,s){const u=this.values.get(a);s!==u&&(u&&this.removeValue(a),this.bindToMotionValue(a,s),this.values.set(a,s),this.latestValues[a]=s.get())}removeValue(a){this.values.delete(a);const s=this.valueSubscriptions.get(a);s&&(s(),this.valueSubscriptions.delete(a)),delete this.latestValues[a],this.removeValueFromRenderState(a,this.renderState)}hasValue(a){return this.values.has(a)}getValue(a,s){if(this.props.values&&this.props.values[a])return this.props.values[a];let u=this.values.get(a);return u===void 0&&s!==void 0&&(u=Ga(s===null?void 0:s,{owner:this}),this.addValue(a,u)),u}readValue(a,s){let u=this.latestValues[a]!==void 0||!this.current?this.latestValues[a]:this.getBaseTargetFromProps(this.props,a)??this.readValueFromInstance(this.current,a,this.options);return u!=null&&(typeof u=="string"&&(h0(u)||p0(u))?u=parseFloat(u):!Kx(u)&&We.test(s)&&(u=s1(a,s)),this.setBaseTarget(a,se(u)?u.get():u)),se(u)?u.get():u}setBaseTarget(a,s){this.baseTarget[a]=s}getBaseTarget(a){var d;const{initial:s}=this.props;let u;if(typeof s=="string"||typeof s=="object"){const f=Td(this.props,s,(d=this.presenceContext)==null?void 0:d.custom);f&&(u=f[a])}if(s&&u!==void 0)return u;const o=this.getBaseTargetFromProps(this.props,a);return o!==void 0&&!se(o)?o:this.initialValues[a]!==void 0&&u===void 0?void 0:this.baseTarget[a]}on(a,s){return this.events[a]||(this.events[a]=new od),this.events[a].add(s)}notify(a,...s){this.events[a]&&this.events[a].notify(...s)}scheduleRenderMicrotask(){Md.render(this.render)}}class y1 extends Jx{constructor(){super(...arguments),this.KeyframeResolver=Mx}sortInstanceNodePosition(a,s){return a.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(a,s){const u=a.style;return u?u[s]:void 0}removeValueFromRenderState(a,{vars:s,style:u}){delete s[a],delete u[a]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:a}=this.props;se(a)&&(this.childSubscription=a.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}class mi{constructor(a){this.isMounted=!1,this.node=a}update(){}}function v1({top:n,left:a,right:s,bottom:u}){return{x:{min:a,max:s},y:{min:n,max:u}}}function Wx({x:n,y:a}){return{top:a.min,right:n.max,bottom:a.max,left:n.min}}function Ix(n,a){if(!a)return n;const s=a({x:n.left,y:n.top}),u=a({x:n.right,y:n.bottom});return{top:s.y,left:s.x,bottom:u.y,right:u.x}}function sf(n){return n===void 0||n===1}function Kf({scale:n,scaleX:a,scaleY:s}){return!sf(n)||!sf(a)||!sf(s)}function Ui(n){return Kf(n)||g1(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function g1(n){return zv(n.x)||zv(n.y)}function zv(n){return n&&n!=="0%"}function ar(n,a,s){const u=n-s,o=a*u;return s+o}function Vv(n,a,s,u,o){return o!==void 0&&(n=ar(n,o,u)),ar(n,s,u)+a}function Qf(n,a=0,s=1,u,o){n.min=Vv(n.min,a,s,u,o),n.max=Vv(n.max,a,s,u,o)}function b1(n,{x:a,y:s}){Qf(n.x,a.translate,a.scale,a.originPoint),Qf(n.y,s.translate,s.scale,s.originPoint)}const Lv=.999999999999,_v=1.0000000000001;function tD(n,a,s,u=!1){var h;const o=s.length;if(!o)return;a.x=a.y=1;let d,f;for(let m=0;m<o;m++){d=s[m],f=d.projectionDelta;const{visualElement:y}=d.options;y&&y.props.style&&y.props.style.display==="contents"||(u&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(sn(n.x,-d.scroll.offset.x),sn(n.y,-d.scroll.offset.y)),f&&(a.x*=f.x.scale,a.y*=f.y.scale,b1(n,f)),u&&Ui(d.latestValues)&&qu(n,d.latestValues,(h=d.layout)==null?void 0:h.layoutBox))}a.x<_v&&a.x>Lv&&(a.x=1),a.y<_v&&a.y>Lv&&(a.y=1)}function sn(n,a){n.min+=a,n.max+=a}function Nv(n,a,s,u,o=.5){const d=Bt(n.min,n.max,o);Qf(n,a,s,d,u)}function Uv(n,a){return typeof n=="string"?parseFloat(n)/100*(a.max-a.min):n}function qu(n,a,s){const u=s??n;Nv(n.x,Uv(a.x,u.x),a.scaleX,a.scale,a.originX),Nv(n.y,Uv(a.y,u.y),a.scaleY,a.scale,a.originY)}function S1(n,a){return v1(Ix(n.getBoundingClientRect(),a))}function eD(n,a,s){const u=S1(n,s),{scroll:o}=a;return o&&(sn(u.x,o.offset.x),sn(u.y,o.offset.y)),u}const nD={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},iD=Xa.length;function aD(n,a,s){let u="",o=!0;for(let d=0;d<iD;d++){const f=Xa[d],h=n[f];if(h===void 0)continue;let m=!0;if(typeof h=="number")m=h===(f.startsWith("scale")?1:0);else{const y=parseFloat(h);m=f.startsWith("scale")?y===1:y===0}if(!m||s){const y=r1(h,Ad[f]);if(!m){o=!1;const v=nD[f]||f;u+=`${v}(${y}) `}s&&(a[f]=y)}}return u=u.trim(),s?u=s(a,o?"":u):o&&(u="none"),u}function Rd(n,a,s){const{style:u,vars:o,transformOrigin:d}=n;let f=!1,h=!1;for(const m in a){const y=a[m];if(Ka.has(m)){f=!0;continue}else if(w0(m)){o[m]=y;continue}else{const v=r1(y,Ad[m]);m.startsWith("origin")?(h=!0,d[m]=v):u[m]=v}}if(a.transform||(f||s?u.transform=aD(a,n.transform,s):u.transform&&(u.transform="none")),h){const{originX:m="50%",originY:y="50%",originZ:v=0}=d;u.transformOrigin=`${m} ${y} ${v}`}}function T1(n,{style:a,vars:s},u,o){const d=n.style;let f;for(f in a)d[f]=a[f];o==null||o.applyProjectionStyles(d,u);for(f in s)d.setProperty(f,s[f])}function Bv(n,a){return a.max===a.min?0:n/(a.max-a.min)*100}const Yl={correct:(n,a)=>{if(!a.target)return n;if(typeof n=="string")if(J.test(n))n=parseFloat(n);else return n;const s=Bv(n,a.target.x),u=Bv(n,a.target.y);return`${s}% ${u}%`}},lD={correct:(n,{treeScale:a,projectionDelta:s})=>{const u=n,o=We.parse(n);if(o.length>5)return u;const d=We.createTransformer(n),f=typeof o[0]!="number"?1:0,h=s.x.scale*a.x,m=s.y.scale*a.y;o[0+f]/=h,o[1+f]/=m;const y=Bt(h,m,.5);return typeof o[2+f]=="number"&&(o[2+f]/=y),typeof o[3+f]=="number"&&(o[3+f]/=y),d(o)}},Zf={borderRadius:{...Yl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Yl,borderTopRightRadius:Yl,borderBottomLeftRadius:Yl,borderBottomRightRadius:Yl,boxShadow:lD};function E1(n,{layout:a,layoutId:s}){return Ka.has(n)||n.startsWith("origin")||(a||s!==void 0)&&(!!Zf[n]||n==="opacity")}function wd(n,a,s){var f;const u=n.style,o=a==null?void 0:a.style,d={};if(!u)return d;for(const h in u)(se(u[h])||o&&se(o[h])||E1(h,n)||((f=s==null?void 0:s.getValue(h))==null?void 0:f.liveStyle)!==void 0)&&(d[h]=u[h]);return d}function sD(n){return window.getComputedStyle(n)}class uD extends y1{constructor(){super(...arguments),this.type="html",this.renderInstance=T1}readValueFromInstance(a,s){var u;if(Ka.has(s))return(u=this.projection)!=null&&u.isProjecting?Lf(s):DM(a,s);{const o=sD(a),d=(w0(s)?o.getPropertyValue(s):o[s])||0;return typeof d=="string"?d.trim():d}}measureInstanceViewportBox(a,{transformPagePoint:s}){return S1(a,s)}build(a,s,u){Rd(a,s,u.transformTemplate)}scrapeMotionValuesFromProps(a,s,u){return wd(a,s,u)}}const rD={offset:"stroke-dashoffset",array:"stroke-dasharray"},oD={offset:"strokeDashoffset",array:"strokeDasharray"};function cD(n,a,s=1,u=0,o=!0){n.pathLength=1;const d=o?rD:oD;n[d.offset]=`${-u}`,n[d.array]=`${a} ${s}`}const fD=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function A1(n,{attrX:a,attrY:s,attrScale:u,pathLength:o,pathSpacing:d=1,pathOffset:f=0,...h},m,y,v){if(Rd(n,h,y),m){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:b,style:S}=n;b.transform&&(S.transform=b.transform,delete b.transform),(S.transform||b.transformOrigin)&&(S.transformOrigin=b.transformOrigin??"50% 50%",delete b.transformOrigin),S.transform&&(S.transformBox=(v==null?void 0:v.transformBox)??"fill-box",delete b.transformBox);for(const E of fD)b[E]!==void 0&&(S[E]=b[E],delete b[E]);a!==void 0&&(b.x=a),s!==void 0&&(b.y=s),u!==void 0&&(b.scale=u),o!==void 0&&cD(b,o,d,f,!1)}const M1=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"]),x1=n=>typeof n=="string"&&n.toLowerCase()==="svg";function dD(n,a,s,u){T1(n,a,void 0,u);for(const o in a.attrs)n.setAttribute(M1.has(o)?o:Ed(o),a.attrs[o])}function D1(n,a,s){const u=wd(n,a,s);for(const o in n)if(se(n[o])||se(a[o])){const d=Xa.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;u[d]=n[o]}return u}class hD extends y1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Jt}getBaseTargetFromProps(a,s){return a[s]}readValueFromInstance(a,s){if(Ka.has(s)){const u=l1(s);return u&&u.default||0}return s=M1.has(s)?s:Ed(s),a.getAttribute(s)}scrapeMotionValuesFromProps(a,s,u){return D1(a,s,u)}build(a,s,u){A1(a,s,this.isSVGTag,u.transformTemplate,u.style)}renderInstance(a,s,u,o){dD(a,s,u,o)}mount(a){this.isSVGTag=x1(a.tagName),super.mount(a)}}const mD=Od.length;function C1(n){if(!n)return;if(!n.isControllingVariants){const s=n.parent?C1(n.parent)||{}:{};return n.props.initial!==void 0&&(s.initial=n.props.initial),s}const a={};for(let s=0;s<mD;s++){const u=Od[s],o=n.props[u];(is(o)||o===!1)&&(a[u]=o)}return a}function O1(n,a){if(!Array.isArray(a))return!1;const s=a.length;if(s!==n.length)return!1;for(let u=0;u<s;u++)if(a[u]!==n[u])return!1;return!0}const pD=[...Cd].reverse(),yD=Cd.length;function vD(n){return a=>Promise.all(a.map(({animation:s,options:u})=>hx(n,s,u)))}function gD(n){let a=vD(n),s=Hv(),u=!0,o=!1;const d=y=>(v,b)=>{var E;const S=Xi(n,b,y==="exit"?(E=n.presenceContext)==null?void 0:E.custom:void 0);if(S){const{transition:D,transitionEnd:z,...V}=S;v={...v,...V,...z}}return v};function f(y){a=y(n)}function h(y){const{props:v}=n,b=C1(n.parent)||{},S=[],E=new Set;let D={},z=1/0;for(let N=0;N<yD;N++){const Y=pD[N],B=s[Y],$=v[Y]!==void 0?v[Y]:b[Y],K=is($),et=Y===y?B.isActive:null;et===!1&&(z=N);let Z=$===b[Y]&&$!==v[Y]&&K;if(Z&&(u||o)&&n.manuallyAnimateOnMount&&(Z=!1),B.protectedKeys={...D},!B.isActive&&et===null||!$&&!B.prevProp||gr($)||typeof $=="boolean")continue;if(Y==="exit"&&B.isActive&&et!==!0){B.prevResolvedValues&&(D={...D,...B.prevResolvedValues});continue}const tt=bD(B.prevProp,$);let bt=tt||Y===y&&B.isActive&&!Z&&K||N>z&&K,k=!1;const ct=Array.isArray($)?$:[$];let yt=ct.reduce(d(Y),{});et===!1&&(yt={});const{prevResolvedValues:zt={}}=B,Dt={...zt,...yt},Vt=Q=>{bt=!0,E.has(Q)&&(k=!0,E.delete(Q)),B.needsAnimating[Q]=!0;const it=n.getValue(Q);it&&(it.liveStyle=!1)};for(const Q in Dt){const it=yt[Q],ot=zt[Q];if(D.hasOwnProperty(Q))continue;let A=!1;jf(it)&&jf(ot)?A=!O1(it,ot):A=it!==ot,A?it!=null?Vt(Q):E.add(Q):it!==void 0&&E.has(Q)?Vt(Q):B.protectedKeys[Q]=!0}B.prevProp=$,B.prevResolvedValues=yt,B.isActive&&(D={...D,...yt}),(u||o)&&n.blockInitialAnimation&&(bt=!1);const _=Z&&tt;bt&&(!_||k)&&S.push(...ct.map(Q=>{const it={type:Y};if(typeof Q=="string"&&(u||o)&&!_&&n.manuallyAnimateOnMount&&n.parent){const{parent:ot}=n,A=Xi(ot,Q);if(ot.enteringChildren&&A){const{delayChildren:j}=A.transition||{};it.delay=P0(ot.enteringChildren,n,j)}}return{animation:Q,options:it}}))}if(E.size){const N={};if(typeof v.initial!="boolean"){const Y=Xi(n,Array.isArray(v.initial)?v.initial[0]:v.initial);Y&&Y.transition&&(N.transition=Y.transition)}E.forEach(Y=>{const B=n.getBaseTarget(Y),$=n.getValue(Y);$&&($.liveStyle=!0),N[Y]=B??null}),S.push({animation:N})}let V=!!S.length;return u&&(v.initial===!1||v.initial===v.animate)&&!n.manuallyAnimateOnMount&&(V=!1),u=!1,o=!1,V?a(S):Promise.resolve()}function m(y,v){var S;if(s[y].isActive===v)return Promise.resolve();(S=n.variantChildren)==null||S.forEach(E=>{var D;return(D=E.animationState)==null?void 0:D.setActive(y,v)}),s[y].isActive=v;const b=h(y);for(const E in s)s[E].protectedKeys={};return b}return{animateChanges:h,setActive:m,setAnimateFunction:f,getState:()=>s,reset:()=>{s=Hv(),o=!0}}}function bD(n,a){return typeof a=="string"?a!==n:Array.isArray(a)?!O1(a,n):!1}function _i(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Hv(){return{animate:_i(!0),whileInView:_i(),whileHover:_i(),whileTap:_i(),whileDrag:_i(),whileFocus:_i(),exit:_i()}}function Ff(n,a){n.min=a.min,n.max=a.max}function ke(n,a){Ff(n.x,a.x),Ff(n.y,a.y)}function jv(n,a){n.translate=a.translate,n.scale=a.scale,n.originPoint=a.originPoint,n.origin=a.origin}const R1=1e-4,SD=1-R1,TD=1+R1,w1=.01,ED=0-w1,AD=0+w1;function de(n){return n.max-n.min}function MD(n,a,s){return Math.abs(n-a)<=s}function Gv(n,a,s,u=.5){n.origin=u,n.originPoint=Bt(a.min,a.max,n.origin),n.scale=de(s)/de(a),n.translate=Bt(s.min,s.max,n.origin)-n.originPoint,(n.scale>=SD&&n.scale<=TD||isNaN(n.scale))&&(n.scale=1),(n.translate>=ED&&n.translate<=AD||isNaN(n.translate))&&(n.translate=0)}function Wl(n,a,s,u){Gv(n.x,a.x,s.x,u?u.originX:void 0),Gv(n.y,a.y,s.y,u?u.originY:void 0)}function Yv(n,a,s,u=0){const o=u?Bt(s.min,s.max,u):s.min;n.min=o+a.min,n.max=n.min+de(a)}function xD(n,a,s,u){Yv(n.x,a.x,s.x,u==null?void 0:u.x),Yv(n.y,a.y,s.y,u==null?void 0:u.y)}function qv(n,a,s,u=0){const o=u?Bt(s.min,s.max,u):s.min;n.min=a.min-o,n.max=n.min+de(a)}function lr(n,a,s,u){qv(n.x,a.x,s.x,u==null?void 0:u.x),qv(n.y,a.y,s.y,u==null?void 0:u.y)}function $v(n,a,s,u,o){return n-=a,n=ar(n,1/s,u),o!==void 0&&(n=ar(n,1/o,u)),n}function DD(n,a=0,s=1,u=.5,o,d=n,f=n){if(rn.test(a)&&(a=parseFloat(a),a=Bt(f.min,f.max,a/100)-f.min),typeof a!="number")return;let h=Bt(d.min,d.max,u);n===d&&(h-=a),n.min=$v(n.min,a,s,h,o),n.max=$v(n.max,a,s,h,o)}function Xv(n,a,[s,u,o],d,f){DD(n,a[s],a[u],a[o],a.scale,d,f)}const CD=["x","scaleX","originX"],OD=["y","scaleY","originY"];function Kv(n,a,s,u){Xv(n.x,a,CD,s?s.x:void 0,u?u.x:void 0),Xv(n.y,a,OD,s?s.y:void 0,u?u.y:void 0)}function Qv(n){return n.translate===0&&n.scale===1}function z1(n){return Qv(n.x)&&Qv(n.y)}function Zv(n,a){return n.min===a.min&&n.max===a.max}function RD(n,a){return Zv(n.x,a.x)&&Zv(n.y,a.y)}function Fv(n,a){return Math.round(n.min)===Math.round(a.min)&&Math.round(n.max)===Math.round(a.max)}function V1(n,a){return Fv(n.x,a.x)&&Fv(n.y,a.y)}function kv(n){return de(n.x)/de(n.y)}function Pv(n,a){return n.translate===a.translate&&n.scale===a.scale&&n.originPoint===a.originPoint}function ln(n){return[n("x"),n("y")]}function wD(n,a,s){let u="";const o=n.x.translate/a.x,d=n.y.translate/a.y,f=(s==null?void 0:s.z)||0;if((o||d||f)&&(u=`translate3d(${o}px, ${d}px, ${f}px) `),(a.x!==1||a.y!==1)&&(u+=`scale(${1/a.x}, ${1/a.y}) `),s){const{transformPerspective:y,rotate:v,rotateX:b,rotateY:S,skewX:E,skewY:D}=s;y&&(u=`perspective(${y}px) ${u}`),v&&(u+=`rotate(${v}deg) `),b&&(u+=`rotateX(${b}deg) `),S&&(u+=`rotateY(${S}deg) `),E&&(u+=`skewX(${E}deg) `),D&&(u+=`skewY(${D}deg) `)}const h=n.x.scale*a.x,m=n.y.scale*a.y;return(h!==1||m!==1)&&(u+=`scale(${h}, ${m})`),u||"none"}const L1=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],zD=L1.length,Jv=n=>typeof n=="string"?parseFloat(n):n,Wv=n=>typeof n=="number"||J.test(n);function VD(n,a,s,u,o,d){o?(n.opacity=Bt(0,s.opacity??1,LD(u)),n.opacityExit=Bt(a.opacity??1,0,_D(u))):d&&(n.opacity=Bt(a.opacity??1,s.opacity??1,u));for(let f=0;f<zD;f++){const h=L1[f];let m=Iv(a,h),y=Iv(s,h);if(m===void 0&&y===void 0)continue;m||(m=0),y||(y=0),m===0||y===0||Wv(m)===Wv(y)?(n[h]=Math.max(Bt(Jv(m),Jv(y),u),0),(rn.test(y)||rn.test(m))&&(n[h]+="%")):n[h]=y}(a.rotate||s.rotate)&&(n.rotate=Bt(a.rotate||0,s.rotate||0,u))}function Iv(n,a){return n[a]!==void 0?n[a]:n.borderRadius}const LD=_1(0,.5,M0),_D=_1(.5,.95,Ke);function _1(n,a,s){return u=>u<n?0:u>a?1:s(es(n,a,u))}function ND(n,a,s){const u=se(n)?n:Ga(n);return u.start(Sd("",u,a,s)),u.animation}function as(n,a,s,u={passive:!0}){return n.addEventListener(a,s,u),()=>n.removeEventListener(a,s)}const UD=(n,a)=>n.depth-a.depth;class BD{constructor(){this.children=[],this.isDirty=!1}add(a){ud(this.children,a),this.isDirty=!0}remove(a){Wu(this.children,a),this.isDirty=!0}forEach(a){this.isDirty&&this.children.sort(UD),this.isDirty=!1,this.children.forEach(a)}}function HD(n,a){const s=fe.now(),u=({timestamp:o})=>{const d=o-s;d>=a&&(di(u),n(d-a))};return wt.setup(u,!0),()=>di(u)}function $u(n){return se(n)?n.get():n}class jD{constructor(){this.members=[]}add(a){ud(this.members,a);for(let s=this.members.length-1;s>=0;s--){const u=this.members[s];if(u===a||u===this.lead||u===this.prevLead)continue;const o=u.instance;(!o||o.isConnected===!1)&&!u.snapshot&&(Wu(this.members,u),u.unmount())}a.scheduleRender()}remove(a){if(Wu(this.members,a),a===this.prevLead&&(this.prevLead=void 0),a===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(a){var s;for(let u=this.members.indexOf(a)-1;u>=0;u--){const o=this.members[u];if(o.isPresent!==!1&&((s=o.instance)==null?void 0:s.isConnected)!==!1)return this.promote(o),!0}return!1}promote(a,s){var o;const u=this.lead;if(a!==u&&(this.prevLead=u,this.lead=a,a.show(),u)){u.updateSnapshot(),a.scheduleRender();const{layoutDependency:d}=u.options,{layoutDependency:f}=a.options;(d===void 0||d!==f)&&(a.resumeFrom=u,s&&(u.preserveOpacity=!0),u.snapshot&&(a.snapshot=u.snapshot,a.snapshot.latestValues=u.animationValues||u.latestValues),(o=a.root)!=null&&o.isUpdating&&(a.isLayoutDirty=!0)),a.options.crossfade===!1&&u.hide()}}exitAnimationComplete(){this.members.forEach(a=>{var s,u,o,d,f;(u=(s=a.options).onExitComplete)==null||u.call(s),(f=(o=a.resumingFrom)==null?void 0:(d=o.options).onExitComplete)==null||f.call(d)})}scheduleRender(){this.members.forEach(a=>a.instance&&a.scheduleRender(!1))}removeLeadSnapshot(){var a;(a=this.lead)!=null&&a.snapshot&&(this.lead.snapshot=void 0)}}const Xu={hasAnimatedSinceResize:!0,hasEverUpdated:!1},uf=["","X","Y","Z"],GD=1e3;let YD=0;function rf(n,a,s,u){const{latestValues:o}=a;o[n]&&(s[n]=o[n],a.setStaticValue(n,0),u&&(u[n]=0))}function N1(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:a}=n.options;if(!a)return;const s=e1(a);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:o,layoutId:d}=n.options;window.MotionCancelOptimisedAnimation(s,"transform",wt,!(o||d))}const{parent:u}=n;u&&!u.hasCheckedOptimisedAppear&&N1(u)}function U1({attachResizeListener:n,defaultParent:a,measureScroll:s,checkIsScrollRoot:u,resetTransform:o}){return class{constructor(f={},h=a==null?void 0:a()){this.id=YD++,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(XD),this.nodes.forEach(PD),this.nodes.forEach(JD),this.nodes.forEach(KD)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,this.root=h?h.root||h:this,this.path=h?[...h.path,h]:[],this.parent=h,this.depth=h?h.depth+1:0;for(let m=0;m<this.path.length;m++)this.path[m].shouldResetTransform=!0;this.root===this&&(this.nodes=new BD)}addEventListener(f,h){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new od),this.eventHandlers.get(f).add(h)}notifyListeners(f,...h){const m=this.eventHandlers.get(f);m&&m.notify(...h)}hasListeners(f){return this.eventHandlers.has(f)}mount(f){if(this.instance)return;this.isSVG=Dd(f)&&!$x(f),this.instance=f;const{layoutId:h,layout:m,visualElement:y}=this.options;if(y&&!y.current&&y.mount(f),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(m||h)&&(this.isLayoutDirty=!0),n){let v,b=0;const S=()=>this.root.updateBlockedByResize=!1;wt.read(()=>{b=window.innerWidth}),n(f,()=>{const E=window.innerWidth;E!==b&&(b=E,this.root.updateBlockedByResize=!0,v&&v(),v=HD(S,250),Xu.hasAnimatedSinceResize&&(Xu.hasAnimatedSinceResize=!1,this.nodes.forEach(ng)))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&y&&(h||m)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:b,hasRelativeLayoutChanged:S,layout:E})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const D=this.options.transition||y.getDefaultTransition()||n3,{onLayoutAnimationStart:z,onLayoutAnimationComplete:V}=y.getProps(),N=!this.targetLayout||!V1(this.targetLayout,E),Y=!b&&S;if(this.options.layoutRoot||this.resumeFrom||Y||b&&(N||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const B={...bd(D,"layout"),onPlay:z,onComplete:V};(y.shouldReduceMotion||this.options.layoutRoot)&&(B.delay=0,B.type=!1),this.startAnimation(B),this.setAnimationOrigin(v,Y)}else b||ng(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=E})}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(),di(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(WD),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&&N1(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const b=this.path[v];b.shouldResetTransform=!0,(typeof b.latestValues.x=="string"||typeof b.latestValues.y=="string")&&(b.isLayoutDirty=!0),b.updateScroll("snapshot"),b.options.layoutRoot&&b.willUpdate(!1)}const{layoutId:h,layout:m}=this.options;if(h===void 0&&!m)return;const y=this.getTransformTemplate();this.prevTransformTemplateValue=y?y(this.latestValues,""):void 0,this.updateSnapshot(),f&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const m=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),m&&this.nodes.forEach(ZD),this.nodes.forEach(tg);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(eg);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(FD),this.nodes.forEach(kD),this.nodes.forEach(qD),this.nodes.forEach($D)):this.nodes.forEach(eg),this.clearAllSnapshots();const h=fe.now();le.delta=on(0,1e3/60,h-le.timestamp),le.timestamp=h,le.isProcessing=!0,Wc.update.process(le),Wc.preRender.process(le),Wc.render.process(le),le.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Md.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(QD),this.sharedNodes.forEach(ID)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,wt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){wt.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 m=0;m<this.path.length;m++)this.path[m].updateScroll();const f=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=Jt()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:h}=this.options;h&&h.notify("LayoutMeasure",this.layout.layoutBox,f?f.layoutBox:void 0)}updateScroll(f="measure"){let h=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===f&&(h=!1),h&&this.instance){const m=u(this.instance);this.scroll={animationId:this.root.animationId,phase:f,isRoot:m,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:m}}}resetTransform(){if(!o)return;const f=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!z1(this.projectionDelta),m=this.getTransformTemplate(),y=m?m(this.latestValues,""):void 0,v=y!==this.prevTransformTemplateValue;f&&this.instance&&(h||Ui(this.latestValues)||v)&&(o(this.instance,y),this.shouldResetTransform=!1,this.scheduleRender())}measure(f=!0){const h=this.measurePageBox();let m=this.removeElementScroll(h);return f&&(m=this.removeTransform(m)),i3(m),{animationId:this.root.animationId,measuredBox:h,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){var y;const{visualElement:f}=this.options;if(!f)return Jt();const h=f.measureViewportBox();if(!(((y=this.scroll)==null?void 0:y.wasRoot)||this.path.some(a3))){const{scroll:v}=this.root;v&&(sn(h.x,v.offset.x),sn(h.y,v.offset.y))}return h}removeElementScroll(f){var m;const h=Jt();if(ke(h,f),(m=this.scroll)!=null&&m.wasRoot)return h;for(let y=0;y<this.path.length;y++){const v=this.path[y],{scroll:b,options:S}=v;v!==this.root&&b&&S.layoutScroll&&(b.wasRoot&&ke(h,f),sn(h.x,b.offset.x),sn(h.y,b.offset.y))}return h}applyTransform(f,h=!1,m){var v,b;const y=m||Jt();ke(y,f);for(let S=0;S<this.path.length;S++){const E=this.path[S];!h&&E.options.layoutScroll&&E.scroll&&E!==E.root&&(sn(y.x,-E.scroll.offset.x),sn(y.y,-E.scroll.offset.y)),Ui(E.latestValues)&&qu(y,E.latestValues,(v=E.layout)==null?void 0:v.layoutBox)}return Ui(this.latestValues)&&qu(y,this.latestValues,(b=this.layout)==null?void 0:b.layoutBox),y}removeTransform(f){var m;const h=Jt();ke(h,f);for(let y=0;y<this.path.length;y++){const v=this.path[y];if(!Ui(v.latestValues))continue;let b;v.instance&&(Kf(v.latestValues)&&v.updateSnapshot(),b=Jt(),ke(b,v.measurePageBox())),Kv(h,v.latestValues,(m=v.snapshot)==null?void 0:m.layoutBox,b)}return Ui(this.latestValues)&&Kv(h,this.latestValues),h}setTargetDelta(f){this.targetDelta=f,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(f){this.options={...this.options,...f,crossfade:f.crossfade!==void 0?f.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==le.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(f=!1){var E;const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==h;if(!(f||m&&this.isSharedProjectionDirty||this.isProjectionDirty||(E=this.parent)!=null&&E.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:v,layoutId:b}=this.options;if(!this.layout||!(v||b))return;this.resolvedRelativeTargetAt=le.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=Jt(),this.targetWithTransforms=Jt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),xD(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):ke(this.target,this.layout.layoutBox),b1(this.target,this.targetDelta)):ke(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||Kf(this.parent.latestValues)||g1(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(f,h,m){this.relativeParent=f,this.linkedParentVersion=f.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Jt(),this.relativeTargetOrigin=Jt(),lr(this.relativeTargetOrigin,h,m,this.options.layoutAnchor||void 0),ke(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var D;const f=this.getLead(),h=!!this.resumingFrom||this!==f;let m=!0;if((this.isProjectionDirty||(D=this.parent)!=null&&D.isProjectionDirty)&&(m=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===le.timestamp&&(m=!1),m)return;const{layout:y,layoutId:v}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(y||v))return;ke(this.layoutCorrected,this.layout.layoutBox);const b=this.treeScale.x,S=this.treeScale.y;tD(this.layoutCorrected,this.treeScale,this.path,h),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=Jt());const{target:E}=f;if(!E){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(jv(this.prevProjectionDelta.x,this.projectionDelta.x),jv(this.prevProjectionDelta.y,this.projectionDelta.y)),Wl(this.projectionDelta,this.layoutCorrected,E,this.latestValues),(this.treeScale.x!==b||this.treeScale.y!==S||!Pv(this.projectionDelta.x,this.prevProjectionDelta.x)||!Pv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",E))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(f=!0){var h;if((h=this.options.visualElement)==null||h.scheduleRender(),f){const m=this.getStack();m&&m.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ua(),this.projectionDelta=Ua(),this.projectionDeltaWithTransform=Ua()}setAnimationOrigin(f,h=!1){const m=this.snapshot,y=m?m.latestValues:{},v={...this.latestValues},b=Ua();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const S=Jt(),E=m?m.source:void 0,D=this.layout?this.layout.source:void 0,z=E!==D,V=this.getStack(),N=!V||V.members.length<=1,Y=!!(z&&!N&&this.options.crossfade===!0&&!this.path.some(e3));this.animationProgress=0;let B;this.mixTargetDelta=$=>{const K=$/1e3;ig(b.x,f.x,K),ig(b.y,f.y,K),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(lr(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),t3(this.relativeTarget,this.relativeTargetOrigin,S,K),B&&RD(this.relativeTarget,B)&&(this.isProjectionDirty=!1),B||(B=Jt()),ke(B,this.relativeTarget)),z&&(this.animationValues=v,VD(v,y,this.latestValues,K,Y,N)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=K},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){var h,m,y;this.notifyListeners("animationStart"),(h=this.currentAnimation)==null||h.stop(),(y=(m=this.resumingFrom)==null?void 0:m.currentAnimation)==null||y.stop(),this.pendingAnimation&&(di(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=wt.update(()=>{Xu.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ga(0)),this.motionValue.jump(0,!1),this.currentAnimation=ND(this.motionValue,[0,1e3],{...f,velocity:0,isSync:!0,onUpdate:v=>{this.mixTargetDelta(v),f.onUpdate&&f.onUpdate(v)},onStop:()=>{},onComplete:()=>{f.onComplete&&f.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const f=this.getStack();f&&f.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(GD),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:h,target:m,layout:y,latestValues:v}=f;if(!(!h||!m||!y)){if(this!==f&&this.layout&&y&&B1(this.options.animationType,this.layout.layoutBox,y.layoutBox)){m=this.target||Jt();const b=de(this.layout.layoutBox.x);m.x.min=f.target.x.min,m.x.max=m.x.min+b;const S=de(this.layout.layoutBox.y);m.y.min=f.target.y.min,m.y.max=m.y.min+S}ke(h,m),qu(h,v),Wl(this.projectionDeltaWithTransform,this.layoutCorrected,h,v)}}registerSharedNode(f,h){this.sharedNodes.has(f)||this.sharedNodes.set(f,new jD),this.sharedNodes.get(f).add(h);const y=h.options.initialPromotionConfig;h.promote({transition:y?y.transition:void 0,preserveFollowOpacity:y&&y.shouldPreserveFollowOpacity?y.shouldPreserveFollowOpacity(h):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){var h;const{layoutId:f}=this.options;return f?((h=this.getStack())==null?void 0:h.lead)||this:this}getPrevLead(){var h;const{layoutId:f}=this.options;return f?(h=this.getStack())==null?void 0:h.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:h,preserveFollowOpacity:m}={}){const y=this.getStack();y&&y.promote(this,m),f&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let h=!1;const{latestValues:m}=f;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(h=!0),!h)return;const y={};m.z&&rf("z",f,y,this.animationValues);for(let v=0;v<uf.length;v++)rf(`rotate${uf[v]}`,f,y,this.animationValues),rf(`skew${uf[v]}`,f,y,this.animationValues);f.render();for(const v in y)f.setStaticValue(v,y[v]),this.animationValues&&(this.animationValues[v]=y[v]);f.scheduleRender()}applyProjectionStyles(f,h){if(!this.instance||this.isSVG)return;if(!this.isVisible){f.visibility="hidden";return}const m=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,f.visibility="",f.opacity="",f.pointerEvents=$u(h==null?void 0:h.pointerEvents)||"",f.transform=m?m(this.latestValues,""):"none";return}const y=this.getLead();if(!this.projectionDelta||!this.layout||!y.target){this.options.layoutId&&(f.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,f.pointerEvents=$u(h==null?void 0:h.pointerEvents)||""),this.hasProjected&&!Ui(this.latestValues)&&(f.transform=m?m({},""):"none",this.hasProjected=!1);return}f.visibility="";const v=y.animationValues||y.latestValues;this.applyTransformsToTarget();let b=wD(this.projectionDeltaWithTransform,this.treeScale,v);m&&(b=m(v,b)),f.transform=b;const{x:S,y:E}=this.projectionDelta;f.transformOrigin=`${S.origin*100}% ${E.origin*100}% 0`,y.animationValues?f.opacity=y===this?v.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:f.opacity=y===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const D in Zf){if(v[D]===void 0)continue;const{correct:z,applyTo:V,isCSSVariable:N}=Zf[D],Y=b==="none"?v[D]:z(v[D],y);if(V){const B=V.length;for(let $=0;$<B;$++)f[V[$]]=Y}else N?this.options.visualElement.renderState.vars[D]=Y:f[D]=Y}this.options.layoutId&&(f.pointerEvents=y===this?$u(h==null?void 0:h.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(f=>{var h;return(h=f.currentAnimation)==null?void 0:h.stop()}),this.root.nodes.forEach(tg),this.root.sharedNodes.clear()}}}function qD(n){n.updateLayout()}function $D(n){var s;const a=((s=n.resumeFrom)==null?void 0:s.snapshot)||n.snapshot;if(n.isLead()&&n.layout&&a&&n.hasListeners("didUpdate")){const{layoutBox:u,measuredBox:o}=n.layout,{animationType:d}=n.options,f=a.source!==n.layout.source;if(d==="size")ln(b=>{const S=f?a.measuredBox[b]:a.layoutBox[b],E=de(S);S.min=u[b].min,S.max=S.min+E});else if(d==="x"||d==="y"){const b=d==="x"?"y":"x";Ff(f?a.measuredBox[b]:a.layoutBox[b],u[b])}else B1(d,a.layoutBox,u)&&ln(b=>{const S=f?a.measuredBox[b]:a.layoutBox[b],E=de(u[b]);S.max=S.min+E,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[b].max=n.relativeTarget[b].min+E)});const h=Ua();Wl(h,u,a.layoutBox);const m=Ua();f?Wl(m,n.applyTransform(o,!0),a.measuredBox):Wl(m,u,a.layoutBox);const y=!z1(h);let v=!1;if(!n.resumeFrom){const b=n.getClosestProjectingParent();if(b&&!b.resumeFrom){const{snapshot:S,layout:E}=b;if(S&&E){const D=n.options.layoutAnchor||void 0,z=Jt();lr(z,a.layoutBox,S.layoutBox,D);const V=Jt();lr(V,u,E.layoutBox,D),V1(z,V)||(v=!0),b.options.layoutRoot&&(n.relativeTarget=V,n.relativeTargetOrigin=z,n.relativeParent=b)}}}n.notifyListeners("didUpdate",{layout:u,snapshot:a,delta:m,layoutDelta:h,hasLayoutChanged:y,hasRelativeLayoutChanged:v})}else if(n.isLead()){const{onExitComplete:u}=n.options;u&&u()}n.options.transition=void 0}function XD(n){n.parent&&(n.isProjecting()||(n.isProjectionDirty=n.parent.isProjectionDirty),n.isSharedProjectionDirty||(n.isSharedProjectionDirty=!!(n.isProjectionDirty||n.parent.isProjectionDirty||n.parent.isSharedProjectionDirty)),n.isTransformDirty||(n.isTransformDirty=n.parent.isTransformDirty))}function KD(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function QD(n){n.clearSnapshot()}function tg(n){n.clearMeasurements()}function ZD(n){n.isLayoutDirty=!0,n.updateLayout()}function eg(n){n.isLayoutDirty=!1}function FD(n){n.isAnimationBlocked&&n.layout&&!n.isLayoutDirty&&(n.snapshot=n.layout,n.isLayoutDirty=!0)}function kD(n){const{visualElement:a}=n.options;a&&a.getProps().onBeforeLayoutMeasure&&a.notify("BeforeLayoutMeasure"),n.resetTransform()}function ng(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function PD(n){n.resolveTargetDelta()}function JD(n){n.calcProjection()}function WD(n){n.resetSkewAndRotation()}function ID(n){n.removeLeadSnapshot()}function ig(n,a,s){n.translate=Bt(a.translate,0,s),n.scale=Bt(a.scale,1,s),n.origin=a.origin,n.originPoint=a.originPoint}function ag(n,a,s,u){n.min=Bt(a.min,s.min,u),n.max=Bt(a.max,s.max,u)}function t3(n,a,s,u){ag(n.x,a.x,s.x,u),ag(n.y,a.y,s.y,u)}function e3(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const n3={duration:.45,ease:[.4,0,.1,1]},lg=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),sg=lg("applewebkit/")&&!lg("chrome/")?Math.round:Ke;function ug(n){n.min=sg(n.min),n.max=sg(n.max)}function i3(n){ug(n.x),ug(n.y)}function B1(n,a,s){return n==="position"||n==="preserve-aspect"&&!MD(kv(a),kv(s),.2)}function a3(n){var a;return n!==n.root&&((a=n.scroll)==null?void 0:a.wasRoot)}const l3=U1({attachResizeListener:(n,a)=>as(n,"resize",a),measureScroll:()=>{var n,a;return{x:document.documentElement.scrollLeft||((n=document.body)==null?void 0:n.scrollLeft)||0,y:document.documentElement.scrollTop||((a=document.body)==null?void 0:a.scrollTop)||0}},checkIsScrollRoot:()=>!0}),s3=n=>!n.isLayoutDirty&&n.willUpdate(!1);function rg(){const n=new Set,a=new WeakMap,s=()=>n.forEach(s3);return{add:u=>{n.add(u),a.set(u,u.addEventListener("willUpdate",s))},remove:u=>{n.delete(u);const o=a.get(u);o&&(o(),a.delete(u)),s()},dirty:s}}const of={current:void 0},H1=U1({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!of.current){const n=new l3({});n.mount(window),n.setOptions({layoutScroll:!0}),of.current=n}return of.current},resetTransform:(n,a)=>{n.style.transform=a!==void 0?a:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),j1=x.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});function u3(n=!0){const a=x.useContext(sd);if(a===null)return[!0,null];const{isPresent:s,onExitComplete:u,register:o}=a,d=x.useId();x.useEffect(()=>{if(n)return o(d)},[n]);const f=x.useCallback(()=>n&&u&&u(d),[d,u,n]);return!s&&u?[!1,f]:[!0]}const r3=x.createContext(null);function o3(){const n=x.useRef(!1);return d0(()=>(n.current=!0,()=>{n.current=!1}),[]),n}function c3(){const n=o3(),[a,s]=x.useState(0),u=x.useCallback(()=>{n.current&&s(a+1)},[a]);return[x.useCallback(()=>wt.postRender(u),[u]),a]}const G1=n=>n===!0,f3=n=>G1(n===!0)||n==="id",RC=({children:n,id:a,inherit:s=!0})=>{const u=x.useContext(Ju),o=x.useContext(r3),[d,f]=c3(),h=x.useRef(null),m=u.id||o;h.current===null&&(f3(s)&&m&&(a=a?m+"-"+a:m),h.current={id:a,group:G1(s)&&u.group||rg()});const y=x.useMemo(()=>({...h.current,forceRender:d}),[f]);return Ku.jsx(Ju.Provider,{value:y,children:n})},Y1=x.createContext({strict:!1}),og={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 cg=!1;function d3(){if(cg)return;const n={};for(const a in og)n[a]={isEnabled:s=>og[a].some(u=>!!s[u])};p1(n),cg=!0}function q1(){return d3(),Px()}function h3(n){const a=q1();for(const s in n)a[s]={...a[s],...n[s]};p1(a)}const m3=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 sr(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||m3.has(n)}let $1=n=>!sr(n);function p3(n){typeof n=="function"&&($1=a=>a.startsWith("on")?!sr(a):n(a))}try{p3(require("@emotion/is-prop-valid").default)}catch{}function y3(n,a,s){const u={};for(const o in n)o==="values"&&typeof n.values=="object"||se(n[o])||($1(o)||s===!0&&sr(o)||!a&&!sr(o)||n.draggable&&o.startsWith("onDrag"))&&(u[o]=n[o]);return u}const Sr=x.createContext({});function v3(n,a){if(br(n)){const{initial:s,animate:u}=n;return{initial:s===!1||is(s)?s:void 0,animate:is(u)?u:void 0}}return n.inherit!==!1?a:{}}function g3(n){const{initial:a,animate:s}=v3(n,x.useContext(Sr));return x.useMemo(()=>({initial:a,animate:s}),[fg(a),fg(s)])}function fg(n){return Array.isArray(n)?n.join(" "):n}const zd=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function X1(n,a,s){for(const u in a)!se(a[u])&&!E1(u,s)&&(n[u]=a[u])}function b3({transformTemplate:n},a){return x.useMemo(()=>{const s=zd();return Rd(s,a,n),Object.assign({},s.vars,s.style)},[a])}function S3(n,a){const s=n.style||{},u={};return X1(u,s,n),Object.assign(u,b3(n,a)),u}function T3(n,a){const s={},u=S3(n,a);return n.drag&&n.dragListener!==!1&&(s.draggable=!1,u.userSelect=u.WebkitUserSelect=u.WebkitTouchCallout="none",u.touchAction=n.drag===!0?"none":`pan-${n.drag==="x"?"y":"x"}`),n.tabIndex===void 0&&(n.onTap||n.onTapStart||n.whileTap)&&(s.tabIndex=0),s.style=u,s}const K1=()=>({...zd(),attrs:{}});function E3(n,a,s,u){const o=x.useMemo(()=>{const d=K1();return A1(d,a,x1(u),n.transformTemplate,n.style),{...d.attrs,style:{...d.style}}},[a]);if(n.style){const d={};X1(d,n.style,n),o.style={...d,...o.style}}return o}const A3=["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 Vd(n){return typeof n!="string"||n.includes("-")?!1:!!(A3.indexOf(n)>-1||/[A-Z]/u.test(n))}function M3(n,a,s,{latestValues:u},o,d=!1,f){const m=(f??Vd(n)?E3:T3)(a,u,o,n),y=y3(a,typeof n=="string",d),v=n!==x.Fragment?{...y,...m,ref:s}:{},{children:b}=a,S=x.useMemo(()=>se(b)?b.get():b,[b]);return x.createElement(n,{...v,children:S})}function x3({scrapeMotionValuesFromProps:n,createRenderState:a},s,u,o){return{latestValues:D3(s,u,o,n),renderState:a()}}function D3(n,a,s,u){const o={},d=u(n,{});for(const S in d)o[S]=$u(d[S]);let{initial:f,animate:h}=n;const m=br(n),y=h1(n);a&&y&&!m&&n.inherit!==!1&&(f===void 0&&(f=a.initial),h===void 0&&(h=a.animate));let v=s?s.initial===!1:!1;v=v||f===!1;const b=v?h:f;if(b&&typeof b!="boolean"&&!gr(b)){const S=Array.isArray(b)?b:[b];for(let E=0;E<S.length;E++){const D=Td(n,S[E]);if(D){const{transitionEnd:z,transition:V,...N}=D;for(const Y in N){let B=N[Y];if(Array.isArray(B)){const $=v?B.length-1:0;B=B[$]}B!==null&&(o[Y]=B)}for(const Y in z)o[Y]=z[Y]}}}return o}const Q1=n=>(a,s)=>{const u=x.useContext(Sr),o=x.useContext(sd),d=()=>x3(n,a,u,o);return s?d():b2(d)},C3=Q1({scrapeMotionValuesFromProps:wd,createRenderState:zd}),O3=Q1({scrapeMotionValuesFromProps:D1,createRenderState:K1}),R3=Symbol.for("motionComponentSymbol");function w3(n,a,s){const u=x.useRef(s);x.useInsertionEffect(()=>{u.current=s});const o=x.useRef(null);return x.useCallback(d=>{var h;d&&((h=n.onMount)==null||h.call(n,d));const f=u.current;if(typeof f=="function")if(d){const m=f(d);typeof m=="function"&&(o.current=m)}else o.current?(o.current(),o.current=null):f(d);else f&&(f.current=d);a&&(d?a.mount(d):a.unmount())},[a])}const Z1=x.createContext({});function La(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function z3(n,a,s,u,o,d){var B,$;const{visualElement:f}=x.useContext(Sr),h=x.useContext(Y1),m=x.useContext(sd),y=x.useContext(j1),v=y.reducedMotion,b=y.skipAnimations,S=x.useRef(null),E=x.useRef(!1);u=u||h.renderer,!S.current&&u&&(S.current=u(n,{visualState:a,parent:f,props:s,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:v,skipAnimations:b,isSVG:d}),E.current&&S.current&&(S.current.manuallyAnimateOnMount=!0));const D=S.current,z=x.useContext(Z1);D&&!D.projection&&o&&(D.type==="html"||D.type==="svg")&&V3(S.current,s,o,z);const V=x.useRef(!1);x.useInsertionEffect(()=>{D&&V.current&&D.update(s,m)});const N=s[t1],Y=x.useRef(!!N&&typeof window<"u"&&!((B=window.MotionHandoffIsComplete)!=null&&B.call(window,N))&&(($=window.MotionHasOptimisedAnimation)==null?void 0:$.call(window,N)));return d0(()=>{E.current=!0,D&&(V.current=!0,window.MotionIsMounted=!0,D.updateFeatures(),D.scheduleRenderMicrotask(),Y.current&&D.animationState&&D.animationState.animateChanges())}),x.useEffect(()=>{D&&(!Y.current&&D.animationState&&D.animationState.animateChanges(),Y.current&&(queueMicrotask(()=>{var K;(K=window.MotionHandoffMarkAsComplete)==null||K.call(window,N)}),Y.current=!1),D.enteringChildren=void 0)}),D}function V3(n,a,s,u){const{layoutId:o,layout:d,drag:f,dragConstraints:h,layoutScroll:m,layoutRoot:y,layoutAnchor:v,layoutCrossfade:b}=a;n.projection=new s(n.latestValues,a["data-framer-portal-id"]?void 0:F1(n.parent)),n.projection.setOptions({layoutId:o,layout:d,alwaysMeasureLayout:!!f||h&&La(h),visualElement:n,animationType:typeof d=="string"?d:"both",initialPromotionConfig:u,crossfade:b,layoutScroll:m,layoutRoot:y,layoutAnchor:v})}function F1(n){if(n)return n.options.allowProjection!==!1?n.projection:F1(n.parent)}function cf(n,{forwardMotionProps:a=!1,type:s}={},u,o){u&&h3(u);const d=s?s==="svg":Vd(n),f=d?O3:C3;function h(y,v){let b;const S={...x.useContext(j1),...y,layoutId:L3(y)},{isStatic:E}=S,D=g3(y),z=f(y,E);if(!E&&typeof window<"u"){_3();const V=N3(S);b=V.MeasureLayout,D.visualElement=z3(n,z,S,o,V.ProjectionNode,d)}return Ku.jsxs(Sr.Provider,{value:D,children:[b&&D.visualElement?Ku.jsx(b,{visualElement:D.visualElement,...S}):null,M3(n,y,w3(z,D.visualElement,v),z,E,a,d)]})}h.displayName=`motion.${typeof n=="string"?n:`create(${n.displayName??n.name??""})`}`;const m=x.forwardRef(h);return m[R3]=n,m}function L3({layoutId:n}){const a=x.useContext(Ju).id;return a&&n!==void 0?a+"-"+n:n}function _3(n,a){x.useContext(Y1).strict}function N3(n){const a=q1(),{drag:s,layout:u}=a;if(!s&&!u)return{};const o={...s,...u};return{MeasureLayout:s!=null&&s.isEnabled(n)||u!=null&&u.isEnabled(n)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function U3(n,a){if(typeof Proxy>"u")return cf;const s=new Map,u=(d,f)=>cf(d,f,n,a),o=(d,f)=>u(d,f);return new Proxy(o,{get:(d,f)=>f==="create"?u:(s.has(f)||s.set(f,cf(f,void 0,n,a)),s.get(f))})}const B3=(n,a)=>a.isSVG??Vd(n)?new hD(a):new uD(a,{allowProjection:n!==x.Fragment});class H3 extends mi{constructor(a){super(a),a.animationState||(a.animationState=gD(a))}updateAnimationControlsSubscription(){const{animate:a}=this.node.getProps();gr(a)&&(this.unmountControls=a.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:a}=this.node.getProps(),{animate:s}=this.node.prevProps||{};a!==s&&this.updateAnimationControlsSubscription()}unmount(){var a;this.node.animationState.reset(),(a=this.unmountControls)==null||a.call(this)}}let j3=0;class G3 extends mi{constructor(){super(...arguments),this.id=j3++,this.isExitComplete=!1}update(){var d;if(!this.node.presenceContext)return;const{isPresent:a,onExitComplete:s}=this.node.presenceContext,{isPresent:u}=this.node.prevPresenceContext||{};if(!this.node.animationState||a===u)return;if(a&&u===!1){if(this.isExitComplete){const{initial:f,custom:h}=this.node.getProps();if(typeof f=="string"){const m=Xi(this.node,f,h);if(m){const{transition:y,transitionEnd:v,...b}=m;for(const S in b)(d=this.node.getValue(S))==null||d.jump(b[S])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const o=this.node.animationState.setActive("exit",!a);s&&!a&&o.then(()=>{this.isExitComplete=!0,s(this.id)})}mount(){const{register:a,onExitComplete:s}=this.node.presenceContext||{};s&&s(this.id),a&&(this.unmount=a(this.id))}unmount(){}}const Y3={animation:{Feature:H3},exit:{Feature:G3}};function fs(n){return{point:{x:n.pageX,y:n.pageY}}}const q3=n=>a=>xd(a)&&n(a,fs(a));function Il(n,a,s,u){return as(n,a,q3(s),u)}const k1=({current:n})=>n?n.ownerDocument.defaultView:null,dg=(n,a)=>Math.abs(n-a);function $3(n,a){const s=dg(n.x,a.x),u=dg(n.y,a.y);return Math.sqrt(s**2+u**2)}const hg=new Set(["auto","scroll"]);class P1{constructor(a,s,{transformPagePoint:u,contextWindow:o=window,dragSnapToOrigin:d=!1,distanceThreshold:f=3,element:h}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=E=>{this.handleScroll(E.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Uu(this.lastRawMoveEventInfo,this.transformPagePoint));const E=ff(this.lastMoveEventInfo,this.history),D=this.startEvent!==null,z=$3(E.offset,{x:0,y:0})>=this.distanceThreshold;if(!D&&!z)return;const{point:V}=E,{timestamp:N}=le;this.history.push({...V,timestamp:N});const{onStart:Y,onMove:B}=this.handlers;D||(Y&&Y(this.lastMoveEvent,E),this.startEvent=this.lastMoveEvent),B&&B(this.lastMoveEvent,E)},this.handlePointerMove=(E,D)=>{this.lastMoveEvent=E,this.lastRawMoveEventInfo=D,this.lastMoveEventInfo=Uu(D,this.transformPagePoint),wt.update(this.updatePoint,!0)},this.handlePointerUp=(E,D)=>{this.end();const{onEnd:z,onSessionEnd:V,resumeAnimation:N}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&N&&N(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const Y=ff(E.type==="pointercancel"?this.lastMoveEventInfo:Uu(D,this.transformPagePoint),this.history);this.startEvent&&z&&z(E,Y),V&&V(E,Y)},!xd(a))return;this.dragSnapToOrigin=d,this.handlers=s,this.transformPagePoint=u,this.distanceThreshold=f,this.contextWindow=o||window;const m=fs(a),y=Uu(m,this.transformPagePoint),{point:v}=y,{timestamp:b}=le;this.history=[{...v,timestamp:b}];const{onSessionStart:S}=s;S&&S(a,ff(y,this.history)),this.removeListeners=rs(Il(this.contextWindow,"pointermove",this.handlePointerMove),Il(this.contextWindow,"pointerup",this.handlePointerUp),Il(this.contextWindow,"pointercancel",this.handlePointerUp)),h&&this.startScrollTracking(h)}startScrollTracking(a){let s=a.parentElement;for(;s;){const u=getComputedStyle(s);(hg.has(u.overflowX)||hg.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(a){const s=this.scrollPositions.get(a);if(!s)return;const u=a===window,o=u?{x:window.scrollX,y:window.scrollY}:{x:a.scrollLeft,y:a.scrollTop},d={x:o.x-s.x,y:o.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(a,o),wt.update(this.updatePoint,!0))}updateHandlers(a){this.handlers=a}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),di(this.updatePoint)}}function Uu(n,a){return a?{point:a(n.point)}:n}function mg(n,a){return{x:n.x-a.x,y:n.y-a.y}}function ff({point:n},a){return{point:n,delta:mg(n,J1(a)),offset:mg(n,X3(a)),velocity:K3(a,.1)}}function X3(n){return n[0]}function J1(n){return n[n.length-1]}function K3(n,a){if(n.length<2)return{x:0,y:0};let s=n.length-1,u=null;const o=J1(n);for(;s>=0&&(u=n[s],!(o.timestamp-u.timestamp>Ve(a)));)s--;if(!u)return{x:0,y:0};u===n[0]&&n.length>2&&o.timestamp-u.timestamp>Ve(a)*2&&(u=n[1]);const d=Xe(o.timestamp-u.timestamp);if(d===0)return{x:0,y:0};const f={x:(o.x-u.x)/d,y:(o.y-u.y)/d};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}function Q3(n,{min:a,max:s},u){return a!==void 0&&n<a?n=u?Bt(a,n,u.min):Math.max(n,a):s!==void 0&&n>s&&(n=u?Bt(s,n,u.max):Math.min(n,s)),n}function pg(n,a,s){return{min:a!==void 0?n.min+a:void 0,max:s!==void 0?n.max+s-(n.max-n.min):void 0}}function Z3(n,{top:a,left:s,bottom:u,right:o}){return{x:pg(n.x,s,o),y:pg(n.y,a,u)}}function yg(n,a){let s=a.min-n.min,u=a.max-n.max;return a.max-a.min<n.max-n.min&&([s,u]=[u,s]),{min:s,max:u}}function F3(n,a){return{x:yg(n.x,a.x),y:yg(n.y,a.y)}}function k3(n,a){let s=.5;const u=de(n),o=de(a);return o>u?s=es(a.min,a.max-u,n.min):u>o&&(s=es(n.min,n.max-o,a.min)),on(0,1,s)}function P3(n,a){const s={};return a.min!==void 0&&(s.min=a.min-n.min),a.max!==void 0&&(s.max=a.max-n.min),s}const kf=.35;function J3(n=kf){return n===!1?n=0:n===!0&&(n=kf),{x:vg(n,"left","right"),y:vg(n,"top","bottom")}}function vg(n,a,s){return{min:gg(n,a),max:gg(n,s)}}function gg(n,a){return typeof n=="number"?n:n[a]||0}const W3=new WeakMap;class I3{constructor(a){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Jt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=a}start(a,{snapToCursor:s=!1,distanceThreshold:u}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const d=b=>{s&&this.snapToCursor(fs(b).point),this.stopAnimation()},f=(b,S)=>{const{drag:E,dragPropagation:D,onDragStart:z}=this.getProps();if(E&&!D&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Dx(E),!this.openDragLock))return;this.latestPointerEvent=b,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),ln(N=>{let Y=this.getAxisMotionValue(N).get()||0;if(rn.test(Y)){const{projection:B}=this.visualElement;if(B&&B.layout){const $=B.layout.layoutBox[N];$&&(Y=de($)*(parseFloat(Y)/100))}}this.originPoint[N]=Y}),z&&wt.update(()=>z(b,S),!1,!0),Gf(this.visualElement,"transform");const{animationState:V}=this.visualElement;V&&V.setActive("whileDrag",!0)},h=(b,S)=>{this.latestPointerEvent=b,this.latestPanInfo=S;const{dragPropagation:E,dragDirectionLock:D,onDirectionLock:z,onDrag:V}=this.getProps();if(!E&&!this.openDragLock)return;const{offset:N}=S;if(D&&this.currentDirection===null){this.currentDirection=eC(N),this.currentDirection!==null&&z&&z(this.currentDirection);return}this.updateAxis("x",S.point,N),this.updateAxis("y",S.point,N),this.visualElement.render(),V&&wt.update(()=>V(b,S),!1,!0)},m=(b,S)=>{this.latestPointerEvent=b,this.latestPanInfo=S,this.stop(b,S),this.latestPointerEvent=null,this.latestPanInfo=null},y=()=>{const{dragSnapToOrigin:b}=this.getProps();(b||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:v}=this.getProps();this.panSession=new P1(a,{onSessionStart:d,onStart:f,onMove:h,onSessionEnd:m,resumeAnimation:y},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:v,distanceThreshold:u,contextWindow:k1(this.visualElement),element:this.visualElement.current})}stop(a,s){const u=a||this.latestPointerEvent,o=s||this.latestPanInfo,d=this.isDragging;if(this.cancel(),!d||!o||!u)return;const{velocity:f}=o;this.startAnimation(f);const{onDragEnd:h}=this.getProps();h&&wt.postRender(()=>h(u,o))}cancel(){this.isDragging=!1;const{projection:a,animationState:s}=this.visualElement;a&&(a.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(a,s,u){const{drag:o}=this.getProps();if(!u||!Bu(a,o,this.currentDirection))return;const d=this.getAxisMotionValue(a);let f=this.originPoint[a]+u[a];this.constraints&&this.constraints[a]&&(f=Q3(f,this.constraints[a],this.elastic[a])),d.set(f)}resolveConstraints(){var d;const{dragConstraints:a,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,o=this.constraints;a&&La(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&u?this.constraints=Z3(u.layoutBox,a):this.constraints=!1,this.elastic=J3(s),o!==this.constraints&&!La(a)&&u&&this.constraints&&!this.hasMutatedConstraints&&ln(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=P3(u.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:a,onMeasureDragConstraints:s}=this.getProps();if(!a||!La(a))return!1;const u=a.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const d=eD(u,o.root,this.visualElement.getTransformPagePoint());let f=F3(o.layout.layoutBox,d);if(s){const h=s(Wx(f));this.hasMutatedConstraints=!!h,h&&(f=v1(h))}return f}startAnimation(a){const{drag:s,dragMomentum:u,dragElastic:o,dragTransition:d,dragSnapToOrigin:f,onDragTransitionEnd:h}=this.getProps(),m=this.constraints||{},y=ln(v=>{if(!Bu(v,s,this.currentDirection))return;let b=m&&m[v]||{};(f===!0||f===v)&&(b={min:0,max:0});const S=o?200:1e6,E=o?40:1e7,D={type:"inertia",velocity:u?a[v]:0,bounceStiffness:S,bounceDamping:E,timeConstant:750,restDelta:1,restSpeed:10,...d,...b};return this.startAxisValueAnimation(v,D)});return Promise.all(y).then(h)}startAxisValueAnimation(a,s){const u=this.getAxisMotionValue(a);return Gf(this.visualElement,a),u.start(Sd(a,u,0,s,this.visualElement,!1))}stopAnimation(){ln(a=>this.getAxisMotionValue(a).stop())}getAxisMotionValue(a){const s=`_drag${a.toUpperCase()}`,u=this.visualElement.getProps(),o=u[s];return o||this.visualElement.getValue(a,(u.initial?u.initial[a]:void 0)||0)}snapToCursor(a){ln(s=>{const{drag:u}=this.getProps();if(!Bu(s,u,this.currentDirection))return;const{projection:o}=this.visualElement,d=this.getAxisMotionValue(s);if(o&&o.layout){const{min:f,max:h}=o.layout.layoutBox[s],m=d.get()||0;d.set(a[s]-Bt(f,h,.5)+m)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:a,dragConstraints:s}=this.getProps(),{projection:u}=this.visualElement;if(!La(s)||!u||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};ln(f=>{const h=this.getAxisMotionValue(f);if(h&&this.constraints!==!1){const m=h.get();o[f]=k3({min:m,max:m},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(),ln(f=>{if(!Bu(f,a,null))return;const h=this.getAxisMotionValue(f),{min:m,max:y}=this.constraints[f];h.set(Bt(m,y,o[f]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;W3.set(this.visualElement,this);const a=this.visualElement.current,s=Il(a,"pointerdown",y=>{const{drag:v,dragListener:b=!0}=this.getProps(),S=y.target,E=S!==a&&Vx(S);v&&b&&!E&&this.start(y)});let u;const o=()=>{const{dragConstraints:y}=this.getProps();La(y)&&y.current&&(this.constraints=this.resolveRefConstraints(),u||(u=tC(a,y.current,()=>this.scalePositionWithinConstraints())))},{projection:d}=this.visualElement,f=d.addEventListener("measure",o);d&&!d.layout&&(d.root&&d.root.updateScroll(),d.updateLayout()),wt.read(o);const h=as(window,"resize",()=>this.scalePositionWithinConstraints()),m=d.addEventListener("didUpdate",(({delta:y,hasLayoutChanged:v})=>{this.isDragging&&v&&(ln(b=>{const S=this.getAxisMotionValue(b);S&&(this.originPoint[b]+=y[b].translate,S.set(S.get()+y[b].translate))}),this.visualElement.render())}));return()=>{h(),s(),f(),m&&m(),u&&u()}}getProps(){const a=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:u=!1,dragPropagation:o=!1,dragConstraints:d=!1,dragElastic:f=kf,dragMomentum:h=!0}=a;return{...a,drag:s,dragDirectionLock:u,dragPropagation:o,dragConstraints:d,dragElastic:f,dragMomentum:h}}}function bg(n){let a=!0;return()=>{if(a){a=!1;return}n()}}function tC(n,a,s){const u=Cv(n,bg(s)),o=Cv(a,bg(s));return()=>{u(),o()}}function Bu(n,a,s){return(a===!0||a===n)&&(s===null||s===n)}function eC(n,a=10){let s=null;return Math.abs(n.y)>a?s="y":Math.abs(n.x)>a&&(s="x"),s}class nC extends mi{constructor(a){super(a),this.removeGroupControls=Ke,this.removeListeners=Ke,this.controls=new I3(a)}mount(){const{dragControls:a}=this.node.getProps();a&&(this.removeGroupControls=a.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ke}update(){const{dragControls:a}=this.node.getProps(),{dragControls:s}=this.node.prevProps||{};a!==s&&(this.removeGroupControls(),a&&(this.removeGroupControls=a.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const df=n=>(a,s)=>{n&&wt.update(()=>n(a,s),!1,!0)};class iC extends mi{constructor(){super(...arguments),this.removePointerDownListener=Ke}onPointerDown(a){this.session=new P1(a,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:k1(this.node)})}createPanHandlers(){const{onPanSessionStart:a,onPanStart:s,onPan:u,onPanEnd:o}=this.node.getProps();return{onSessionStart:df(a),onStart:df(s),onMove:df(u),onEnd:(d,f)=>{delete this.session,o&&wt.postRender(()=>o(d,f))}}}mount(){this.removePointerDownListener=Il(this.node.current,"pointerdown",a=>this.onPointerDown(a))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let hf=!1;class aC extends x.Component{componentDidMount(){const{visualElement:a,layoutGroup:s,switchLayoutGroup:u,layoutId:o}=this.props,{projection:d}=a;d&&(s.group&&s.group.add(d),u&&u.register&&o&&u.register(d),hf&&d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Xu.hasEverUpdated=!0}getSnapshotBeforeUpdate(a){const{layoutDependency:s,visualElement:u,drag:o,isPresent:d}=this.props,{projection:f}=u;return f&&(f.isPresent=d,a.layoutDependency!==s&&f.setOptions({...f.options,layoutDependency:s}),hf=!0,o||a.layoutDependency!==s||s===void 0||a.isPresent!==d?f.willUpdate():this.safeToRemove(),a.isPresent!==d&&(d?f.promote():f.relegate()||wt.postRender(()=>{const h=f.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:a,layoutAnchor:s}=this.props,{projection:u}=a;u&&(u.options.layoutAnchor=s,u.root.didUpdate(),Md.postRender(()=>{!u.currentAnimation&&u.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:a,layoutGroup:s,switchLayoutGroup:u}=this.props,{projection:o}=a;hf=!0,o&&(o.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(o),u&&u.deregister&&u.deregister(o))}safeToRemove(){const{safeToRemove:a}=this.props;a&&a()}render(){return null}}function W1(n){const[a,s]=u3(),u=x.useContext(Ju);return Ku.jsx(aC,{...n,layoutGroup:u,switchLayoutGroup:x.useContext(Z1),isPresent:a,safeToRemove:s})}const lC={pan:{Feature:iC},drag:{Feature:nC,ProjectionNode:H1,MeasureLayout:W1}};function Sg(n,a,s){const{props:u}=n;n.animationState&&u.whileHover&&n.animationState.setActive("whileHover",s==="Start");const o="onHover"+s,d=u[o];d&&wt.postRender(()=>d(a,fs(a)))}class sC extends mi{mount(){const{current:a}=this.node;a&&(this.unmount=Ox(a,(s,u)=>(Sg(this.node,u,"Start"),o=>Sg(this.node,o,"End"))))}unmount(){}}class uC extends mi{constructor(){super(...arguments),this.isActive=!1}onFocus(){let a=!1;try{a=this.node.current.matches(":focus-visible")}catch{a=!0}!a||!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=rs(as(this.node.current,"focus",()=>this.onFocus()),as(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Tg(n,a,s){const{props:u}=n;if(n.current instanceof HTMLButtonElement&&n.current.disabled)return;n.animationState&&u.whileTap&&n.animationState.setActive("whileTap",s==="Start");const o="onTap"+(s==="End"?"":s),d=u[o];d&&wt.postRender(()=>d(a,fs(a)))}class rC extends mi{mount(){const{current:a}=this.node;if(!a)return;const{globalTapTarget:s,propagate:u}=this.node.props;this.unmount=_x(a,(o,d)=>(Tg(this.node,d,"Start"),(f,{success:h})=>Tg(this.node,f,h?"End":"Cancel")),{useGlobalTarget:s,stopPropagation:(u==null?void 0:u.tap)===!1})}unmount(){}}const Pf=new WeakMap,mf=new WeakMap,oC=n=>{const a=Pf.get(n.target);a&&a(n)},cC=n=>{n.forEach(oC)};function fC({root:n,...a}){const s=n||document;mf.has(s)||mf.set(s,{});const u=mf.get(s),o=JSON.stringify(a);return u[o]||(u[o]=new IntersectionObserver(cC,{root:n,...a})),u[o]}function dC(n,a,s){const u=fC(a);return Pf.set(n,s),u.observe(n),()=>{Pf.delete(n),u.unobserve(n)}}const hC={some:0,all:1};class mC extends mi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var m;(m=this.stopObserver)==null||m.call(this);const{viewport:a={}}=this.node.getProps(),{root:s,margin:u,amount:o="some",once:d}=a,f={root:s?s.current:void 0,rootMargin:u,threshold:typeof o=="number"?o:hC[o]},h=y=>{const{isIntersecting:v}=y;if(this.isInView===v||(this.isInView=v,d&&!v&&this.hasEnteredView))return;v&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",v);const{onViewportEnter:b,onViewportLeave:S}=this.node.getProps(),E=v?b:S;E&&E(y)};this.stopObserver=dC(this.node.current,f,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:a,prevProps:s}=this.node;["amount","margin","root"].some(pC(a,s))&&this.startObserver()}unmount(){var a;(a=this.stopObserver)==null||a.call(this),this.hasEnteredView=!1,this.isInView=!1}}function pC({viewport:n={}},{viewport:a={}}={}){return s=>n[s]!==a[s]}const yC={inView:{Feature:mC},tap:{Feature:rC},focus:{Feature:uC},hover:{Feature:sC}},vC={layout:{ProjectionNode:H1,MeasureLayout:W1}},gC={...Y3,...yC,...lC,...vC},wC=U3(gC,B3);export{bE as L,RC as a,xC as b,SC as c,DC as d,bC as e,CC as h,Ku as j,wC as m,x as r,EC as y,v2 as z};