agentmast 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/bin.js +153 -0
  2. package/dist/bot-PIWTZVU6.js +215 -0
  3. package/dist/bus-NKXT3JWW.js +168 -0
  4. package/dist/chunk-FRKDGPVA.js +216 -0
  5. package/dist/chunk-IU75ISXR.js +67 -0
  6. package/dist/chunk-LOCISTVR.js +125 -0
  7. package/dist/chunk-QCSXSHRA.js +16 -0
  8. package/dist/chunk-TV3CPBRC.js +62 -0
  9. package/dist/chunk-VDPOIHPJ.js +40 -0
  10. package/dist/chunk-WBDMHW7H.js +153 -0
  11. package/dist/config-OOQXKXZZ.js +12 -0
  12. package/dist/hook-transport-RLSLV56I.js +11 -0
  13. package/dist/hook.js +11 -0
  14. package/dist/hooks-AALI75O7.js +231 -0
  15. package/dist/local-state-4SIAMX2F.js +17 -0
  16. package/dist/pairing-SAMT2H37.js +119 -0
  17. package/dist/replay-4LHZWBSJ.js +81 -0
  18. package/dist/server-XMPT35QI.js +487 -0
  19. package/dist/video-RJZII4N6.js +153 -0
  20. package/dist/web/assets/index-CMw6GB5R.css +1 -0
  21. package/dist/web/assets/index-DXwpAjuO.js +48 -0
  22. package/dist/web/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
  23. package/dist/web/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
  24. package/dist/web/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
  25. package/dist/web/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
  26. package/dist/web/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
  27. package/dist/web/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
  28. package/dist/web/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
  29. package/dist/web/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2 +0 -0
  30. package/dist/web/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2 +0 -0
  31. package/dist/web/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2 +0 -0
  32. package/dist/web/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
  33. package/dist/web/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2 +0 -0
  34. package/dist/web/index.html +14 -0
  35. package/dist/web/licenses/Inter.txt +93 -0
  36. package/dist/web/licenses/JetBrains-Mono.txt +93 -0
  37. package/package.json +34 -4
  38. package/README.md +0 -3
@@ -0,0 +1,48 @@
1
+ (function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))l(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&l(d)}).observe(document,{childList:!0,subtree:!0});function s(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function l(u){if(u.ep)return;u.ep=!0;const f=s(u);fetch(u.href,f)}})();var ql={exports:{}},si={},Jl={exports:{}},oe={};/**
2
+ * @license React
3
+ * react.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its 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 af;function dy(){if(af)return oe;af=1;var n=Symbol.for("react.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),w=Symbol.iterator;function k(P){return P===null||typeof P!="object"?null:(P=w&&P[w]||P["@@iterator"],typeof P=="function"?P:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,j={};function M(P,_,ie){this.props=P,this.context=_,this.refs=j,this.updater=ie||R}M.prototype.isReactComponent={},M.prototype.setState=function(P,_){if(typeof P!="object"&&typeof P!="function"&&P!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,P,_,"setState")},M.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function D(){}D.prototype=M.prototype;function O(P,_,ie){this.props=P,this.context=_,this.refs=j,this.updater=ie||R}var $=O.prototype=new D;$.constructor=O,A($,M.prototype),$.isPureReactComponent=!0;var Q=Array.isArray,U=Object.prototype.hasOwnProperty,X={current:null},re={key:!0,ref:!0,__self:!0,__source:!0};function Z(P,_,ie){var le,ue={},ce=null,pe=null;if(_!=null)for(le in _.ref!==void 0&&(pe=_.ref),_.key!==void 0&&(ce=""+_.key),_)U.call(_,le)&&!re.hasOwnProperty(le)&&(ue[le]=_[le]);var fe=arguments.length-2;if(fe===1)ue.children=ie;else if(1<fe){for(var we=Array(fe),ot=0;ot<fe;ot++)we[ot]=arguments[ot+2];ue.children=we}if(P&&P.defaultProps)for(le in fe=P.defaultProps,fe)ue[le]===void 0&&(ue[le]=fe[le]);return{$$typeof:n,type:P,key:ce,ref:pe,props:ue,_owner:X.current}}function ge(P,_){return{$$typeof:n,type:P.type,key:_,ref:P.ref,props:P.props,_owner:P._owner}}function Ee(P){return typeof P=="object"&&P!==null&&P.$$typeof===n}function Ze(P){var _={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(ie){return _[ie]})}var st=/\/+/g;function Ge(P,_){return typeof P=="object"&&P!==null&&P.key!=null?Ze(""+P.key):_.toString(36)}function qe(P,_,ie,le,ue){var ce=typeof P;(ce==="undefined"||ce==="boolean")&&(P=null);var pe=!1;if(P===null)pe=!0;else switch(ce){case"string":case"number":pe=!0;break;case"object":switch(P.$$typeof){case n:case i:pe=!0}}if(pe)return pe=P,ue=ue(pe),P=le===""?"."+Ge(pe,0):le,Q(ue)?(ie="",P!=null&&(ie=P.replace(st,"$&/")+"/"),qe(ue,_,ie,"",function(ot){return ot})):ue!=null&&(Ee(ue)&&(ue=ge(ue,ie+(!ue.key||pe&&pe.key===ue.key?"":(""+ue.key).replace(st,"$&/")+"/")+P)),_.push(ue)),1;if(pe=0,le=le===""?".":le+":",Q(P))for(var fe=0;fe<P.length;fe++){ce=P[fe];var we=le+Ge(ce,fe);pe+=qe(ce,_,ie,we,ue)}else if(we=k(P),typeof we=="function")for(P=we.call(P),fe=0;!(ce=P.next()).done;)ce=ce.value,we=le+Ge(ce,fe++),pe+=qe(ce,_,ie,we,ue);else if(ce==="object")throw _=String(P),Error("Objects are not valid as a React child (found: "+(_==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":_)+"). If you meant to render a collection of children, use an array instead.");return pe}function kt(P,_,ie){if(P==null)return P;var le=[],ue=0;return qe(P,le,"","",function(ce){return _.call(ie,ce,ue++)}),le}function Qe(P){if(P._status===-1){var _=P._result;_=_(),_.then(function(ie){(P._status===0||P._status===-1)&&(P._status=1,P._result=ie)},function(ie){(P._status===0||P._status===-1)&&(P._status=2,P._result=ie)}),P._status===-1&&(P._status=0,P._result=_)}if(P._status===1)return P._result.default;throw P._result}var se={current:null},B={transition:null},q={ReactCurrentDispatcher:se,ReactCurrentBatchConfig:B,ReactCurrentOwner:X};function b(){throw Error("act(...) is not supported in production builds of React.")}return oe.Children={map:kt,forEach:function(P,_,ie){kt(P,function(){_.apply(this,arguments)},ie)},count:function(P){var _=0;return kt(P,function(){_++}),_},toArray:function(P){return kt(P,function(_){return _})||[]},only:function(P){if(!Ee(P))throw Error("React.Children.only expected to receive a single React element child.");return P}},oe.Component=M,oe.Fragment=s,oe.Profiler=u,oe.PureComponent=O,oe.StrictMode=l,oe.Suspense=m,oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=q,oe.act=b,oe.cloneElement=function(P,_,ie){if(P==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+P+".");var le=A({},P.props),ue=P.key,ce=P.ref,pe=P._owner;if(_!=null){if(_.ref!==void 0&&(ce=_.ref,pe=X.current),_.key!==void 0&&(ue=""+_.key),P.type&&P.type.defaultProps)var fe=P.type.defaultProps;for(we in _)U.call(_,we)&&!re.hasOwnProperty(we)&&(le[we]=_[we]===void 0&&fe!==void 0?fe[we]:_[we])}var we=arguments.length-2;if(we===1)le.children=ie;else if(1<we){fe=Array(we);for(var ot=0;ot<we;ot++)fe[ot]=arguments[ot+2];le.children=fe}return{$$typeof:n,type:P.type,key:ue,ref:ce,props:le,_owner:pe}},oe.createContext=function(P){return P={$$typeof:d,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},P.Provider={$$typeof:f,_context:P},P.Consumer=P},oe.createElement=Z,oe.createFactory=function(P){var _=Z.bind(null,P);return _.type=P,_},oe.createRef=function(){return{current:null}},oe.forwardRef=function(P){return{$$typeof:h,render:P}},oe.isValidElement=Ee,oe.lazy=function(P){return{$$typeof:y,_payload:{_status:-1,_result:P},_init:Qe}},oe.memo=function(P,_){return{$$typeof:g,type:P,compare:_===void 0?null:_}},oe.startTransition=function(P){var _=B.transition;B.transition={};try{P()}finally{B.transition=_}},oe.unstable_act=b,oe.useCallback=function(P,_){return se.current.useCallback(P,_)},oe.useContext=function(P){return se.current.useContext(P)},oe.useDebugValue=function(){},oe.useDeferredValue=function(P){return se.current.useDeferredValue(P)},oe.useEffect=function(P,_){return se.current.useEffect(P,_)},oe.useId=function(){return se.current.useId()},oe.useImperativeHandle=function(P,_,ie){return se.current.useImperativeHandle(P,_,ie)},oe.useInsertionEffect=function(P,_){return se.current.useInsertionEffect(P,_)},oe.useLayoutEffect=function(P,_){return se.current.useLayoutEffect(P,_)},oe.useMemo=function(P,_){return se.current.useMemo(P,_)},oe.useReducer=function(P,_,ie){return se.current.useReducer(P,_,ie)},oe.useRef=function(P){return se.current.useRef(P)},oe.useState=function(P){return se.current.useState(P)},oe.useSyncExternalStore=function(P,_,ie){return se.current.useSyncExternalStore(P,_,ie)},oe.useTransition=function(){return se.current.useTransition()},oe.version="18.3.1",oe}var uf;function Da(){return uf||(uf=1,Jl.exports=dy()),Jl.exports}/**
10
+ * @license React
11
+ * react-jsx-runtime.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its 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 cf;function fy(){if(cf)return si;cf=1;var n=Da(),i=Symbol.for("react.element"),s=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,u=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function d(h,m,g){var y,w={},k=null,R=null;g!==void 0&&(k=""+g),m.key!==void 0&&(k=""+m.key),m.ref!==void 0&&(R=m.ref);for(y in m)l.call(m,y)&&!f.hasOwnProperty(y)&&(w[y]=m[y]);if(h&&h.defaultProps)for(y in m=h.defaultProps,m)w[y]===void 0&&(w[y]=m[y]);return{$$typeof:i,type:h,key:k,ref:R,props:w,_owner:u.current}}return si.Fragment=s,si.jsx=d,si.jsxs=d,si}var df;function hy(){return df||(df=1,ql.exports=fy()),ql.exports}var v=hy(),F=Da(),_s={},ea={exports:{}},it={},ta={exports:{}},na={};/**
18
+ * @license React
19
+ * scheduler.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its 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 ff;function py(){return ff||(ff=1,(function(n){function i(B,q){var b=B.length;B.push(q);e:for(;0<b;){var P=b-1>>>1,_=B[P];if(0<u(_,q))B[P]=q,B[b]=_,b=P;else break e}}function s(B){return B.length===0?null:B[0]}function l(B){if(B.length===0)return null;var q=B[0],b=B.pop();if(b!==q){B[0]=b;e:for(var P=0,_=B.length,ie=_>>>1;P<ie;){var le=2*(P+1)-1,ue=B[le],ce=le+1,pe=B[ce];if(0>u(ue,b))ce<_&&0>u(pe,ue)?(B[P]=pe,B[ce]=b,P=ce):(B[P]=ue,B[le]=b,P=le);else if(ce<_&&0>u(pe,b))B[P]=pe,B[ce]=b,P=ce;else break e}}return q}function u(B,q){var b=B.sortIndex-q.sortIndex;return b!==0?b:B.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,h=d.now();n.unstable_now=function(){return d.now()-h}}var m=[],g=[],y=1,w=null,k=3,R=!1,A=!1,j=!1,M=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function $(B){for(var q=s(g);q!==null;){if(q.callback===null)l(g);else if(q.startTime<=B)l(g),q.sortIndex=q.expirationTime,i(m,q);else break;q=s(g)}}function Q(B){if(j=!1,$(B),!A)if(s(m)!==null)A=!0,Qe(U);else{var q=s(g);q!==null&&se(Q,q.startTime-B)}}function U(B,q){A=!1,j&&(j=!1,D(Z),Z=-1),R=!0;var b=k;try{for($(q),w=s(m);w!==null&&(!(w.expirationTime>q)||B&&!Ze());){var P=w.callback;if(typeof P=="function"){w.callback=null,k=w.priorityLevel;var _=P(w.expirationTime<=q);q=n.unstable_now(),typeof _=="function"?w.callback=_:w===s(m)&&l(m),$(q)}else l(m);w=s(m)}if(w!==null)var ie=!0;else{var le=s(g);le!==null&&se(Q,le.startTime-q),ie=!1}return ie}finally{w=null,k=b,R=!1}}var X=!1,re=null,Z=-1,ge=5,Ee=-1;function Ze(){return!(n.unstable_now()-Ee<ge)}function st(){if(re!==null){var B=n.unstable_now();Ee=B;var q=!0;try{q=re(!0,B)}finally{q?Ge():(X=!1,re=null)}}else X=!1}var Ge;if(typeof O=="function")Ge=function(){O(st)};else if(typeof MessageChannel<"u"){var qe=new MessageChannel,kt=qe.port2;qe.port1.onmessage=st,Ge=function(){kt.postMessage(null)}}else Ge=function(){M(st,0)};function Qe(B){re=B,X||(X=!0,Ge())}function se(B,q){Z=M(function(){B(n.unstable_now())},q)}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(B){B.callback=null},n.unstable_continueExecution=function(){A||R||(A=!0,Qe(U))},n.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ge=0<B?Math.floor(1e3/B):5},n.unstable_getCurrentPriorityLevel=function(){return k},n.unstable_getFirstCallbackNode=function(){return s(m)},n.unstable_next=function(B){switch(k){case 1:case 2:case 3:var q=3;break;default:q=k}var b=k;k=q;try{return B()}finally{k=b}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(B,q){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var b=k;k=B;try{return q()}finally{k=b}},n.unstable_scheduleCallback=function(B,q,b){var P=n.unstable_now();switch(typeof b=="object"&&b!==null?(b=b.delay,b=typeof b=="number"&&0<b?P+b:P):b=P,B){case 1:var _=-1;break;case 2:_=250;break;case 5:_=1073741823;break;case 4:_=1e4;break;default:_=5e3}return _=b+_,B={id:y++,callback:q,priorityLevel:B,startTime:b,expirationTime:_,sortIndex:-1},b>P?(B.sortIndex=b,i(g,B),s(m)===null&&B===s(g)&&(j?(D(Z),Z=-1):j=!0,se(Q,b-P))):(B.sortIndex=_,i(m,B),A||R||(A=!0,Qe(U))),B},n.unstable_shouldYield=Ze,n.unstable_wrapCallback=function(B){var q=k;return function(){var b=k;k=q;try{return B.apply(this,arguments)}finally{k=b}}}})(na)),na}var hf;function my(){return hf||(hf=1,ta.exports=py()),ta.exports}/**
26
+ * @license React
27
+ * react-dom.production.min.js
28
+ *
29
+ * Copyright (c) Facebook, Inc. and its 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 pf;function gy(){if(pf)return it;pf=1;var n=Da(),i=my();function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var l=new Set,u={};function f(e,t){d(e,t),d(e+"Capture",t)}function d(e,t){for(u[e]=t,e=0;e<t.length;e++)l.add(t[e])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),m=Object.prototype.hasOwnProperty,g=/^[: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]*$/,y={},w={};function k(e){return m.call(w,e)?!0:m.call(y,e)?!1:g.test(e)?w[e]=!0:(y[e]=!0,!1)}function R(e,t,r,o){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function A(e,t,r,o){if(t===null||typeof t>"u"||R(e,t,r,o))return!0;if(o)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function j(e,t,r,o,a,c,p){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=c,this.removeEmptyString=p}var M={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){M[e]=new j(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];M[t]=new j(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){M[e]=new j(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){M[e]=new j(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){M[e]=new j(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){M[e]=new j(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){M[e]=new j(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){M[e]=new j(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){M[e]=new j(e,5,!1,e.toLowerCase(),null,!1,!1)});var D=/[\-:]([a-z])/g;function O(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(D,O);M[t]=new j(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(D,O);M[t]=new j(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(D,O);M[t]=new j(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){M[e]=new j(e,1,!1,e.toLowerCase(),null,!1,!1)}),M.xlinkHref=new j("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){M[e]=new j(e,1,!1,e.toLowerCase(),null,!0,!0)});function $(e,t,r,o){var a=M.hasOwnProperty(t)?M[t]:null;(a!==null?a.type!==0:o||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(A(t,r,a,o)&&(r=null),o||a===null?k(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):a.mustUseProperty?e[a.propertyName]=r===null?a.type===3?!1:"":r:(t=a.attributeName,o=a.attributeNamespace,r===null?e.removeAttribute(t):(a=a.type,r=a===3||a===4&&r===!0?"":""+r,o?e.setAttributeNS(o,t,r):e.setAttribute(t,r))))}var Q=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,U=Symbol.for("react.element"),X=Symbol.for("react.portal"),re=Symbol.for("react.fragment"),Z=Symbol.for("react.strict_mode"),ge=Symbol.for("react.profiler"),Ee=Symbol.for("react.provider"),Ze=Symbol.for("react.context"),st=Symbol.for("react.forward_ref"),Ge=Symbol.for("react.suspense"),qe=Symbol.for("react.suspense_list"),kt=Symbol.for("react.memo"),Qe=Symbol.for("react.lazy"),se=Symbol.for("react.offscreen"),B=Symbol.iterator;function q(e){return e===null||typeof e!="object"?null:(e=B&&e[B]||e["@@iterator"],typeof e=="function"?e:null)}var b=Object.assign,P;function _(e){if(P===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);P=t&&t[1]||""}return`
34
+ `+P+e}var ie=!1;function le(e,t){if(!e||ie)return"";ie=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(N){var o=N}Reflect.construct(e,[],t)}else{try{t.call()}catch(N){o=N}e.call(t.prototype)}else{try{throw Error()}catch(N){o=N}e()}}catch(N){if(N&&o&&typeof N.stack=="string"){for(var a=N.stack.split(`
35
+ `),c=o.stack.split(`
36
+ `),p=a.length-1,x=c.length-1;1<=p&&0<=x&&a[p]!==c[x];)x--;for(;1<=p&&0<=x;p--,x--)if(a[p]!==c[x]){if(p!==1||x!==1)do if(p--,x--,0>x||a[p]!==c[x]){var S=`
37
+ `+a[p].replace(" at new "," at ");return e.displayName&&S.includes("<anonymous>")&&(S=S.replace("<anonymous>",e.displayName)),S}while(1<=p&&0<=x);break}}}finally{ie=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?_(e):""}function ue(e){switch(e.tag){case 5:return _(e.type);case 16:return _("Lazy");case 13:return _("Suspense");case 19:return _("SuspenseList");case 0:case 2:case 15:return e=le(e.type,!1),e;case 11:return e=le(e.type.render,!1),e;case 1:return e=le(e.type,!0),e;default:return""}}function ce(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case re:return"Fragment";case X:return"Portal";case ge:return"Profiler";case Z:return"StrictMode";case Ge:return"Suspense";case qe:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ze:return(e.displayName||"Context")+".Consumer";case Ee:return(e._context.displayName||"Context")+".Provider";case st:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case kt:return t=e.displayName||null,t!==null?t:ce(e.type)||"Memo";case Qe:t=e._payload,e=e._init;try{return ce(e(t))}catch{}}return null}function pe(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ce(t);case 8:return t===Z?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function fe(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function we(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ot(e){var t=we(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,c=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(p){o=""+p,c.call(this,p)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return o},setValue:function(p){o=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Pi(e){e._valueTracker||(e._valueTracker=ot(e))}function hu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),o="";return e&&(o=we(e)?e.checked?"true":"false":e.value),e=o,e!==r?(t.setValue(e),!0):!1}function Ci(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function io(e,t){var r=t.checked;return b({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function pu(e,t){var r=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;r=fe(t.value!=null?t.value:r),e._wrapperState={initialChecked:o,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function mu(e,t){t=t.checked,t!=null&&$(e,"checked",t,!1)}function so(e,t){mu(e,t);var r=fe(t.value),o=t.type;if(r!=null)o==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?oo(e,t.type,r):t.hasOwnProperty("defaultValue")&&oo(e,t.type,fe(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function gu(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function oo(e,t,r){(t!=="number"||Ci(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var wr=Array.isArray;function On(e,t,r,o){if(e=e.options,t){t={};for(var a=0;a<r.length;a++)t["$"+r[a]]=!0;for(r=0;r<e.length;r++)a=t.hasOwnProperty("$"+e[r].value),e[r].selected!==a&&(e[r].selected=a),a&&o&&(e[r].defaultSelected=!0)}else{for(r=""+fe(r),t=null,a=0;a<e.length;a++){if(e[a].value===r){e[a].selected=!0,o&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function lo(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(s(91));return b({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function yu(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(s(92));if(wr(r)){if(1<r.length)throw Error(s(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:fe(r)}}function vu(e,t){var r=fe(t.value),o=fe(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),o!=null&&(e.defaultValue=""+o)}function xu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function wu(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ao(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?wu(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ei,Su=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,o,a){MSApp.execUnsafeLocalFunction(function(){return e(t,r,o,a)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ei=Ei||document.createElement("div"),Ei.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ei.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Sr(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var kr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},mm=["Webkit","ms","Moz","O"];Object.keys(kr).forEach(function(e){mm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),kr[t]=kr[e]})});function ku(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||kr.hasOwnProperty(e)&&kr[e]?(""+t).trim():t+"px"}function Tu(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var o=r.indexOf("--")===0,a=ku(r,t[r],o);r==="float"&&(r="cssFloat"),o?e.setProperty(r,a):e[r]=a}}var gm=b({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function uo(e,t){if(t){if(gm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(s(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(s(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(t.style!=null&&typeof t.style!="object")throw Error(s(62))}}function co(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 fo=null;function ho(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var po=null,Bn=null,Un=null;function Pu(e){if(e=br(e)){if(typeof po!="function")throw Error(s(280));var t=e.stateNode;t&&(t=Yi(t),po(e.stateNode,e.type,t))}}function Cu(e){Bn?Un?Un.push(e):Un=[e]:Bn=e}function Eu(){if(Bn){var e=Bn,t=Un;if(Un=Bn=null,Pu(e),t)for(e=0;e<t.length;e++)Pu(t[e])}}function ju(e,t){return e(t)}function Nu(){}var mo=!1;function Ru(e,t,r){if(mo)return e(t,r);mo=!0;try{return ju(e,t,r)}finally{mo=!1,(Bn!==null||Un!==null)&&(Nu(),Eu())}}function Tr(e,t){var r=e.stateNode;if(r===null)return null;var o=Yi(r);if(o===null)return null;r=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(s(231,t,typeof r));return r}var go=!1;if(h)try{var Pr={};Object.defineProperty(Pr,"passive",{get:function(){go=!0}}),window.addEventListener("test",Pr,Pr),window.removeEventListener("test",Pr,Pr)}catch{go=!1}function ym(e,t,r,o,a,c,p,x,S){var N=Array.prototype.slice.call(arguments,3);try{t.apply(r,N)}catch(V){this.onError(V)}}var Cr=!1,ji=null,Ni=!1,yo=null,vm={onError:function(e){Cr=!0,ji=e}};function xm(e,t,r,o,a,c,p,x,S){Cr=!1,ji=null,ym.apply(vm,arguments)}function wm(e,t,r,o,a,c,p,x,S){if(xm.apply(this,arguments),Cr){if(Cr){var N=ji;Cr=!1,ji=null}else throw Error(s(198));Ni||(Ni=!0,yo=N)}}function xn(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function Au(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Mu(e){if(xn(e)!==e)throw Error(s(188))}function Sm(e){var t=e.alternate;if(!t){if(t=xn(e),t===null)throw Error(s(188));return t!==e?null:e}for(var r=e,o=t;;){var a=r.return;if(a===null)break;var c=a.alternate;if(c===null){if(o=a.return,o!==null){r=o;continue}break}if(a.child===c.child){for(c=a.child;c;){if(c===r)return Mu(a),e;if(c===o)return Mu(a),t;c=c.sibling}throw Error(s(188))}if(r.return!==o.return)r=a,o=c;else{for(var p=!1,x=a.child;x;){if(x===r){p=!0,r=a,o=c;break}if(x===o){p=!0,o=a,r=c;break}x=x.sibling}if(!p){for(x=c.child;x;){if(x===r){p=!0,r=c,o=a;break}if(x===o){p=!0,o=c,r=a;break}x=x.sibling}if(!p)throw Error(s(189))}}if(r.alternate!==o)throw Error(s(190))}if(r.tag!==3)throw Error(s(188));return r.stateNode.current===r?e:t}function Du(e){return e=Sm(e),e!==null?Lu(e):null}function Lu(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Lu(e);if(t!==null)return t;e=e.sibling}return null}var _u=i.unstable_scheduleCallback,Vu=i.unstable_cancelCallback,km=i.unstable_shouldYield,Tm=i.unstable_requestPaint,Re=i.unstable_now,Pm=i.unstable_getCurrentPriorityLevel,vo=i.unstable_ImmediatePriority,zu=i.unstable_UserBlockingPriority,Ri=i.unstable_NormalPriority,Cm=i.unstable_LowPriority,Fu=i.unstable_IdlePriority,Ai=null,Mt=null;function Em(e){if(Mt&&typeof Mt.onCommitFiberRoot=="function")try{Mt.onCommitFiberRoot(Ai,e,void 0,(e.current.flags&128)===128)}catch{}}var Tt=Math.clz32?Math.clz32:Rm,jm=Math.log,Nm=Math.LN2;function Rm(e){return e>>>=0,e===0?32:31-(jm(e)/Nm|0)|0}var Mi=64,Di=4194304;function Er(e){switch(e&-e){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: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&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Li(e,t){var r=e.pendingLanes;if(r===0)return 0;var o=0,a=e.suspendedLanes,c=e.pingedLanes,p=r&268435455;if(p!==0){var x=p&~a;x!==0?o=Er(x):(c&=p,c!==0&&(o=Er(c)))}else p=r&~a,p!==0?o=Er(p):c!==0&&(o=Er(c));if(o===0)return 0;if(t!==0&&t!==o&&(t&a)===0&&(a=o&-o,c=t&-t,a>=c||a===16&&(c&4194240)!==0))return t;if((o&4)!==0&&(o|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0<t;)r=31-Tt(t),a=1<<r,o|=e[r],t&=~a;return o}function Am(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Mm(e,t){for(var r=e.suspendedLanes,o=e.pingedLanes,a=e.expirationTimes,c=e.pendingLanes;0<c;){var p=31-Tt(c),x=1<<p,S=a[p];S===-1?((x&r)===0||(x&o)!==0)&&(a[p]=Am(x,t)):S<=t&&(e.expiredLanes|=x),c&=~x}}function xo(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Iu(){var e=Mi;return Mi<<=1,(Mi&4194240)===0&&(Mi=64),e}function wo(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function jr(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Tt(t),e[t]=r}function Dm(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var o=e.eventTimes;for(e=e.expirationTimes;0<r;){var a=31-Tt(r),c=1<<a;t[a]=0,o[a]=-1,e[a]=-1,r&=~c}}function So(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var o=31-Tt(r),a=1<<o;a&t|e[o]&t&&(e[o]|=t),r&=~a}}var he=0;function Ou(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Bu,ko,Uu,$u,Wu,To=!1,_i=[],Yt=null,Xt=null,Zt=null,Nr=new Map,Rr=new Map,qt=[],Lm="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 submit".split(" ");function bu(e,t){switch(e){case"focusin":case"focusout":Yt=null;break;case"dragenter":case"dragleave":Xt=null;break;case"mouseover":case"mouseout":Zt=null;break;case"pointerover":case"pointerout":Nr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rr.delete(t.pointerId)}}function Ar(e,t,r,o,a,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:r,eventSystemFlags:o,nativeEvent:c,targetContainers:[a]},t!==null&&(t=br(t),t!==null&&ko(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function _m(e,t,r,o,a){switch(t){case"focusin":return Yt=Ar(Yt,e,t,r,o,a),!0;case"dragenter":return Xt=Ar(Xt,e,t,r,o,a),!0;case"mouseover":return Zt=Ar(Zt,e,t,r,o,a),!0;case"pointerover":var c=a.pointerId;return Nr.set(c,Ar(Nr.get(c)||null,e,t,r,o,a)),!0;case"gotpointercapture":return c=a.pointerId,Rr.set(c,Ar(Rr.get(c)||null,e,t,r,o,a)),!0}return!1}function Hu(e){var t=wn(e.target);if(t!==null){var r=xn(t);if(r!==null){if(t=r.tag,t===13){if(t=Au(r),t!==null){e.blockedOn=t,Wu(e.priority,function(){Uu(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Vi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Co(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var o=new r.constructor(r.type,r);fo=o,r.target.dispatchEvent(o),fo=null}else return t=br(r),t!==null&&ko(t),e.blockedOn=r,!1;t.shift()}return!0}function Ku(e,t,r){Vi(e)&&r.delete(t)}function Vm(){To=!1,Yt!==null&&Vi(Yt)&&(Yt=null),Xt!==null&&Vi(Xt)&&(Xt=null),Zt!==null&&Vi(Zt)&&(Zt=null),Nr.forEach(Ku),Rr.forEach(Ku)}function Mr(e,t){e.blockedOn===t&&(e.blockedOn=null,To||(To=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Vm)))}function Dr(e){function t(a){return Mr(a,e)}if(0<_i.length){Mr(_i[0],e);for(var r=1;r<_i.length;r++){var o=_i[r];o.blockedOn===e&&(o.blockedOn=null)}}for(Yt!==null&&Mr(Yt,e),Xt!==null&&Mr(Xt,e),Zt!==null&&Mr(Zt,e),Nr.forEach(t),Rr.forEach(t),r=0;r<qt.length;r++)o=qt[r],o.blockedOn===e&&(o.blockedOn=null);for(;0<qt.length&&(r=qt[0],r.blockedOn===null);)Hu(r),r.blockedOn===null&&qt.shift()}var $n=Q.ReactCurrentBatchConfig,zi=!0;function zm(e,t,r,o){var a=he,c=$n.transition;$n.transition=null;try{he=1,Po(e,t,r,o)}finally{he=a,$n.transition=c}}function Fm(e,t,r,o){var a=he,c=$n.transition;$n.transition=null;try{he=4,Po(e,t,r,o)}finally{he=a,$n.transition=c}}function Po(e,t,r,o){if(zi){var a=Co(e,t,r,o);if(a===null)$o(e,t,o,Fi,r),bu(e,o);else if(_m(a,e,t,r,o))o.stopPropagation();else if(bu(e,o),t&4&&-1<Lm.indexOf(e)){for(;a!==null;){var c=br(a);if(c!==null&&Bu(c),c=Co(e,t,r,o),c===null&&$o(e,t,o,Fi,r),c===a)break;a=c}a!==null&&o.stopPropagation()}else $o(e,t,o,null,r)}}var Fi=null;function Co(e,t,r,o){if(Fi=null,e=ho(o),e=wn(e),e!==null)if(t=xn(e),t===null)e=null;else if(r=t.tag,r===13){if(e=Au(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Fi=e,null}function Gu(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Pm()){case vo:return 1;case zu:return 4;case Ri:case Cm:return 16;case Fu:return 536870912;default:return 16}default:return 16}}var Jt=null,Eo=null,Ii=null;function Qu(){if(Ii)return Ii;var e,t=Eo,r=t.length,o,a="value"in Jt?Jt.value:Jt.textContent,c=a.length;for(e=0;e<r&&t[e]===a[e];e++);var p=r-e;for(o=1;o<=p&&t[r-o]===a[c-o];o++);return Ii=a.slice(e,1<o?1-o:void 0)}function Oi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Bi(){return!0}function Yu(){return!1}function lt(e){function t(r,o,a,c,p){this._reactName=r,this._targetInst=a,this.type=o,this.nativeEvent=c,this.target=p,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(r=e[x],this[x]=r?r(c):c[x]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Bi:Yu,this.isPropagationStopped=Yu,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Bi)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Bi)},persist:function(){},isPersistent:Bi}),t}var Wn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jo=lt(Wn),Lr=b({},Wn,{view:0,detail:0}),Im=lt(Lr),No,Ro,_r,Ui=b({},Lr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mo,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==_r&&(_r&&e.type==="mousemove"?(No=e.screenX-_r.screenX,Ro=e.screenY-_r.screenY):Ro=No=0,_r=e),No)},movementY:function(e){return"movementY"in e?e.movementY:Ro}}),Xu=lt(Ui),Om=b({},Ui,{dataTransfer:0}),Bm=lt(Om),Um=b({},Lr,{relatedTarget:0}),Ao=lt(Um),$m=b({},Wn,{animationName:0,elapsedTime:0,pseudoElement:0}),Wm=lt($m),bm=b({},Wn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Hm=lt(bm),Km=b({},Wn,{data:0}),Zu=lt(Km),Gm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Qm={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"},Ym={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Xm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ym[e])?!!t[e]:!1}function Mo(){return Xm}var Zm=b({},Lr,{key:function(e){if(e.key){var t=Gm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Oi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Qm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mo,charCode:function(e){return e.type==="keypress"?Oi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Oi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),qm=lt(Zm),Jm=b({},Ui,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),qu=lt(Jm),eg=b({},Lr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mo}),tg=lt(eg),ng=b({},Wn,{propertyName:0,elapsedTime:0,pseudoElement:0}),rg=lt(ng),ig=b({},Ui,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),sg=lt(ig),og=[9,13,27,32],Do=h&&"CompositionEvent"in window,Vr=null;h&&"documentMode"in document&&(Vr=document.documentMode);var lg=h&&"TextEvent"in window&&!Vr,Ju=h&&(!Do||Vr&&8<Vr&&11>=Vr),ec=" ",tc=!1;function nc(e,t){switch(e){case"keyup":return og.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var bn=!1;function ag(e,t){switch(e){case"compositionend":return rc(t);case"keypress":return t.which!==32?null:(tc=!0,ec);case"textInput":return e=t.data,e===ec&&tc?null:e;default:return null}}function ug(e,t){if(bn)return e==="compositionend"||!Do&&nc(e,t)?(e=Qu(),Ii=Eo=Jt=null,bn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ju&&t.locale!=="ko"?null:t.data;default:return null}}var cg={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 ic(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!cg[e.type]:t==="textarea"}function sc(e,t,r,o){Cu(o),t=Ki(t,"onChange"),0<t.length&&(r=new jo("onChange","change",null,r,o),e.push({event:r,listeners:t}))}var zr=null,Fr=null;function dg(e){Tc(e,0)}function $i(e){var t=Yn(e);if(hu(t))return e}function fg(e,t){if(e==="change")return t}var oc=!1;if(h){var Lo;if(h){var _o="oninput"in document;if(!_o){var lc=document.createElement("div");lc.setAttribute("oninput","return;"),_o=typeof lc.oninput=="function"}Lo=_o}else Lo=!1;oc=Lo&&(!document.documentMode||9<document.documentMode)}function ac(){zr&&(zr.detachEvent("onpropertychange",uc),Fr=zr=null)}function uc(e){if(e.propertyName==="value"&&$i(Fr)){var t=[];sc(t,Fr,e,ho(e)),Ru(dg,t)}}function hg(e,t,r){e==="focusin"?(ac(),zr=t,Fr=r,zr.attachEvent("onpropertychange",uc)):e==="focusout"&&ac()}function pg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return $i(Fr)}function mg(e,t){if(e==="click")return $i(t)}function gg(e,t){if(e==="input"||e==="change")return $i(t)}function yg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Pt=typeof Object.is=="function"?Object.is:yg;function Ir(e,t){if(Pt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(o=0;o<r.length;o++){var a=r[o];if(!m.call(t,a)||!Pt(e[a],t[a]))return!1}return!0}function cc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dc(e,t){var r=cc(e);e=0;for(var o;r;){if(r.nodeType===3){if(o=e+r.textContent.length,e<=t&&o>=t)return{node:r,offset:t-e};e=o}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cc(r)}}function fc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?fc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hc(){for(var e=window,t=Ci();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Ci(e.document)}return t}function Vo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function vg(e){var t=hc(),r=e.focusedElem,o=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&fc(r.ownerDocument.documentElement,r)){if(o!==null&&Vo(r)){if(t=o.start,e=o.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=r.textContent.length,c=Math.min(o.start,a);o=o.end===void 0?c:Math.min(o.end,a),!e.extend&&c>o&&(a=o,o=c,c=a),a=dc(r,c);var p=dc(r,o);a&&p&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==p.node||e.focusOffset!==p.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),c>o?(e.addRange(t),e.extend(p.node,p.offset)):(t.setEnd(p.node,p.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var xg=h&&"documentMode"in document&&11>=document.documentMode,Hn=null,zo=null,Or=null,Fo=!1;function pc(e,t,r){var o=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Fo||Hn==null||Hn!==Ci(o)||(o=Hn,"selectionStart"in o&&Vo(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Or&&Ir(Or,o)||(Or=o,o=Ki(zo,"onSelect"),0<o.length&&(t=new jo("onSelect","select",null,t,r),e.push({event:t,listeners:o}),t.target=Hn)))}function Wi(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Kn={animationend:Wi("Animation","AnimationEnd"),animationiteration:Wi("Animation","AnimationIteration"),animationstart:Wi("Animation","AnimationStart"),transitionend:Wi("Transition","TransitionEnd")},Io={},mc={};h&&(mc=document.createElement("div").style,"AnimationEvent"in window||(delete Kn.animationend.animation,delete Kn.animationiteration.animation,delete Kn.animationstart.animation),"TransitionEvent"in window||delete Kn.transitionend.transition);function bi(e){if(Io[e])return Io[e];if(!Kn[e])return e;var t=Kn[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in mc)return Io[e]=t[r];return e}var gc=bi("animationend"),yc=bi("animationiteration"),vc=bi("animationstart"),xc=bi("transitionend"),wc=new Map,Sc="abort auxClick 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(" ");function en(e,t){wc.set(e,t),f(t,[e])}for(var Oo=0;Oo<Sc.length;Oo++){var Bo=Sc[Oo],wg=Bo.toLowerCase(),Sg=Bo[0].toUpperCase()+Bo.slice(1);en(wg,"on"+Sg)}en(gc,"onAnimationEnd"),en(yc,"onAnimationIteration"),en(vc,"onAnimationStart"),en("dblclick","onDoubleClick"),en("focusin","onFocus"),en("focusout","onBlur"),en(xc,"onTransitionEnd"),d("onMouseEnter",["mouseout","mouseover"]),d("onMouseLeave",["mouseout","mouseover"]),d("onPointerEnter",["pointerout","pointerover"]),d("onPointerLeave",["pointerout","pointerover"]),f("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),f("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),f("onBeforeInput",["compositionend","keypress","textInput","paste"]),f("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Br="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(" "),kg=new Set("cancel close invalid load scroll toggle".split(" ").concat(Br));function kc(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,wm(o,t,void 0,e),e.currentTarget=null}function Tc(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var o=e[r],a=o.event;o=o.listeners;e:{var c=void 0;if(t)for(var p=o.length-1;0<=p;p--){var x=o[p],S=x.instance,N=x.currentTarget;if(x=x.listener,S!==c&&a.isPropagationStopped())break e;kc(a,x,N),c=S}else for(p=0;p<o.length;p++){if(x=o[p],S=x.instance,N=x.currentTarget,x=x.listener,S!==c&&a.isPropagationStopped())break e;kc(a,x,N),c=S}}}if(Ni)throw e=yo,Ni=!1,yo=null,e}function ye(e,t){var r=t[Qo];r===void 0&&(r=t[Qo]=new Set);var o=e+"__bubble";r.has(o)||(Pc(t,e,2,!1),r.add(o))}function Uo(e,t,r){var o=0;t&&(o|=4),Pc(r,e,o,t)}var Hi="_reactListening"+Math.random().toString(36).slice(2);function Ur(e){if(!e[Hi]){e[Hi]=!0,l.forEach(function(r){r!=="selectionchange"&&(kg.has(r)||Uo(r,!1,e),Uo(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Hi]||(t[Hi]=!0,Uo("selectionchange",!1,t))}}function Pc(e,t,r,o){switch(Gu(t)){case 1:var a=zm;break;case 4:a=Fm;break;default:a=Po}r=a.bind(null,t,r,e),a=void 0,!go||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),o?a!==void 0?e.addEventListener(t,r,{capture:!0,passive:a}):e.addEventListener(t,r,!0):a!==void 0?e.addEventListener(t,r,{passive:a}):e.addEventListener(t,r,!1)}function $o(e,t,r,o,a){var c=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var p=o.tag;if(p===3||p===4){var x=o.stateNode.containerInfo;if(x===a||x.nodeType===8&&x.parentNode===a)break;if(p===4)for(p=o.return;p!==null;){var S=p.tag;if((S===3||S===4)&&(S=p.stateNode.containerInfo,S===a||S.nodeType===8&&S.parentNode===a))return;p=p.return}for(;x!==null;){if(p=wn(x),p===null)return;if(S=p.tag,S===5||S===6){o=c=p;continue e}x=x.parentNode}}o=o.return}Ru(function(){var N=c,V=ho(r),z=[];e:{var L=wc.get(e);if(L!==void 0){var W=jo,K=e;switch(e){case"keypress":if(Oi(r)===0)break e;case"keydown":case"keyup":W=qm;break;case"focusin":K="focus",W=Ao;break;case"focusout":K="blur",W=Ao;break;case"beforeblur":case"afterblur":W=Ao;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":W=Xu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":W=Bm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":W=tg;break;case gc:case yc:case vc:W=Wm;break;case xc:W=rg;break;case"scroll":W=Im;break;case"wheel":W=sg;break;case"copy":case"cut":case"paste":W=Hm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":W=qu}var G=(t&4)!==0,Ae=!G&&e==="scroll",C=G?L!==null?L+"Capture":null:L;G=[];for(var T=N,E;T!==null;){E=T;var I=E.stateNode;if(E.tag===5&&I!==null&&(E=I,C!==null&&(I=Tr(T,C),I!=null&&G.push($r(T,I,E)))),Ae)break;T=T.return}0<G.length&&(L=new W(L,K,null,r,V),z.push({event:L,listeners:G}))}}if((t&7)===0){e:{if(L=e==="mouseover"||e==="pointerover",W=e==="mouseout"||e==="pointerout",L&&r!==fo&&(K=r.relatedTarget||r.fromElement)&&(wn(K)||K[It]))break e;if((W||L)&&(L=V.window===V?V:(L=V.ownerDocument)?L.defaultView||L.parentWindow:window,W?(K=r.relatedTarget||r.toElement,W=N,K=K?wn(K):null,K!==null&&(Ae=xn(K),K!==Ae||K.tag!==5&&K.tag!==6)&&(K=null)):(W=null,K=N),W!==K)){if(G=Xu,I="onMouseLeave",C="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(G=qu,I="onPointerLeave",C="onPointerEnter",T="pointer"),Ae=W==null?L:Yn(W),E=K==null?L:Yn(K),L=new G(I,T+"leave",W,r,V),L.target=Ae,L.relatedTarget=E,I=null,wn(V)===N&&(G=new G(C,T+"enter",K,r,V),G.target=E,G.relatedTarget=Ae,I=G),Ae=I,W&&K)t:{for(G=W,C=K,T=0,E=G;E;E=Gn(E))T++;for(E=0,I=C;I;I=Gn(I))E++;for(;0<T-E;)G=Gn(G),T--;for(;0<E-T;)C=Gn(C),E--;for(;T--;){if(G===C||C!==null&&G===C.alternate)break t;G=Gn(G),C=Gn(C)}G=null}else G=null;W!==null&&Cc(z,L,W,G,!1),K!==null&&Ae!==null&&Cc(z,Ae,K,G,!0)}}e:{if(L=N?Yn(N):window,W=L.nodeName&&L.nodeName.toLowerCase(),W==="select"||W==="input"&&L.type==="file")var Y=fg;else if(ic(L))if(oc)Y=gg;else{Y=pg;var J=hg}else(W=L.nodeName)&&W.toLowerCase()==="input"&&(L.type==="checkbox"||L.type==="radio")&&(Y=mg);if(Y&&(Y=Y(e,N))){sc(z,Y,r,V);break e}J&&J(e,L,N),e==="focusout"&&(J=L._wrapperState)&&J.controlled&&L.type==="number"&&oo(L,"number",L.value)}switch(J=N?Yn(N):window,e){case"focusin":(ic(J)||J.contentEditable==="true")&&(Hn=J,zo=N,Or=null);break;case"focusout":Or=zo=Hn=null;break;case"mousedown":Fo=!0;break;case"contextmenu":case"mouseup":case"dragend":Fo=!1,pc(z,r,V);break;case"selectionchange":if(xg)break;case"keydown":case"keyup":pc(z,r,V)}var ee;if(Do)e:{switch(e){case"compositionstart":var ne="onCompositionStart";break e;case"compositionend":ne="onCompositionEnd";break e;case"compositionupdate":ne="onCompositionUpdate";break e}ne=void 0}else bn?nc(e,r)&&(ne="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(ne="onCompositionStart");ne&&(Ju&&r.locale!=="ko"&&(bn||ne!=="onCompositionStart"?ne==="onCompositionEnd"&&bn&&(ee=Qu()):(Jt=V,Eo="value"in Jt?Jt.value:Jt.textContent,bn=!0)),J=Ki(N,ne),0<J.length&&(ne=new Zu(ne,e,null,r,V),z.push({event:ne,listeners:J}),ee?ne.data=ee:(ee=rc(r),ee!==null&&(ne.data=ee)))),(ee=lg?ag(e,r):ug(e,r))&&(N=Ki(N,"onBeforeInput"),0<N.length&&(V=new Zu("onBeforeInput","beforeinput",null,r,V),z.push({event:V,listeners:N}),V.data=ee))}Tc(z,t)})}function $r(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Ki(e,t){for(var r=t+"Capture",o=[];e!==null;){var a=e,c=a.stateNode;a.tag===5&&c!==null&&(a=c,c=Tr(e,r),c!=null&&o.unshift($r(e,c,a)),c=Tr(e,t),c!=null&&o.push($r(e,c,a))),e=e.return}return o}function Gn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Cc(e,t,r,o,a){for(var c=t._reactName,p=[];r!==null&&r!==o;){var x=r,S=x.alternate,N=x.stateNode;if(S!==null&&S===o)break;x.tag===5&&N!==null&&(x=N,a?(S=Tr(r,c),S!=null&&p.unshift($r(r,S,x))):a||(S=Tr(r,c),S!=null&&p.push($r(r,S,x)))),r=r.return}p.length!==0&&e.push({event:t,listeners:p})}var Tg=/\r\n?/g,Pg=/\u0000|\uFFFD/g;function Ec(e){return(typeof e=="string"?e:""+e).replace(Tg,`
38
+ `).replace(Pg,"")}function Gi(e,t,r){if(t=Ec(t),Ec(e)!==t&&r)throw Error(s(425))}function Qi(){}var Wo=null,bo=null;function Ho(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ko=typeof setTimeout=="function"?setTimeout:void 0,Cg=typeof clearTimeout=="function"?clearTimeout:void 0,jc=typeof Promise=="function"?Promise:void 0,Eg=typeof queueMicrotask=="function"?queueMicrotask:typeof jc<"u"?function(e){return jc.resolve(null).then(e).catch(jg)}:Ko;function jg(e){setTimeout(function(){throw e})}function Go(e,t){var r=t,o=0;do{var a=r.nextSibling;if(e.removeChild(r),a&&a.nodeType===8)if(r=a.data,r==="/$"){if(o===0){e.removeChild(a),Dr(t);return}o--}else r!=="$"&&r!=="$?"&&r!=="$!"||o++;r=a}while(r);Dr(t)}function tn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Nc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Qn=Math.random().toString(36).slice(2),Dt="__reactFiber$"+Qn,Wr="__reactProps$"+Qn,It="__reactContainer$"+Qn,Qo="__reactEvents$"+Qn,Ng="__reactListeners$"+Qn,Rg="__reactHandles$"+Qn;function wn(e){var t=e[Dt];if(t)return t;for(var r=e.parentNode;r;){if(t=r[It]||r[Dt]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Nc(e);e!==null;){if(r=e[Dt])return r;e=Nc(e)}return t}e=r,r=e.parentNode}return null}function br(e){return e=e[Dt]||e[It],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Yn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(s(33))}function Yi(e){return e[Wr]||null}var Yo=[],Xn=-1;function nn(e){return{current:e}}function ve(e){0>Xn||(e.current=Yo[Xn],Yo[Xn]=null,Xn--)}function me(e,t){Xn++,Yo[Xn]=e.current,e.current=t}var rn={},Ue=nn(rn),Je=nn(!1),Sn=rn;function Zn(e,t){var r=e.type.contextTypes;if(!r)return rn;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var a={},c;for(c in r)a[c]=t[c];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function et(e){return e=e.childContextTypes,e!=null}function Xi(){ve(Je),ve(Ue)}function Rc(e,t,r){if(Ue.current!==rn)throw Error(s(168));me(Ue,t),me(Je,r)}function Ac(e,t,r){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return r;o=o.getChildContext();for(var a in o)if(!(a in t))throw Error(s(108,pe(e)||"Unknown",a));return b({},r,o)}function Zi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||rn,Sn=Ue.current,me(Ue,e),me(Je,Je.current),!0}function Mc(e,t,r){var o=e.stateNode;if(!o)throw Error(s(169));r?(e=Ac(e,t,Sn),o.__reactInternalMemoizedMergedChildContext=e,ve(Je),ve(Ue),me(Ue,e)):ve(Je),me(Je,r)}var Ot=null,qi=!1,Xo=!1;function Dc(e){Ot===null?Ot=[e]:Ot.push(e)}function Ag(e){qi=!0,Dc(e)}function sn(){if(!Xo&&Ot!==null){Xo=!0;var e=0,t=he;try{var r=Ot;for(he=1;e<r.length;e++){var o=r[e];do o=o(!0);while(o!==null)}Ot=null,qi=!1}catch(a){throw Ot!==null&&(Ot=Ot.slice(e+1)),_u(vo,sn),a}finally{he=t,Xo=!1}}return null}var qn=[],Jn=0,Ji=null,es=0,ht=[],pt=0,kn=null,Bt=1,Ut="";function Tn(e,t){qn[Jn++]=es,qn[Jn++]=Ji,Ji=e,es=t}function Lc(e,t,r){ht[pt++]=Bt,ht[pt++]=Ut,ht[pt++]=kn,kn=e;var o=Bt;e=Ut;var a=32-Tt(o)-1;o&=~(1<<a),r+=1;var c=32-Tt(t)+a;if(30<c){var p=a-a%5;c=(o&(1<<p)-1).toString(32),o>>=p,a-=p,Bt=1<<32-Tt(t)+a|r<<a|o,Ut=c+e}else Bt=1<<c|r<<a|o,Ut=e}function Zo(e){e.return!==null&&(Tn(e,1),Lc(e,1,0))}function qo(e){for(;e===Ji;)Ji=qn[--Jn],qn[Jn]=null,es=qn[--Jn],qn[Jn]=null;for(;e===kn;)kn=ht[--pt],ht[pt]=null,Ut=ht[--pt],ht[pt]=null,Bt=ht[--pt],ht[pt]=null}var at=null,ut=null,Se=!1,Ct=null;function _c(e,t){var r=vt(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function Vc(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,at=e,ut=tn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,at=e,ut=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=kn!==null?{id:Bt,overflow:Ut}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=vt(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,at=e,ut=null,!0):!1;default:return!1}}function Jo(e){return(e.mode&1)!==0&&(e.flags&128)===0}function el(e){if(Se){var t=ut;if(t){var r=t;if(!Vc(e,t)){if(Jo(e))throw Error(s(418));t=tn(r.nextSibling);var o=at;t&&Vc(e,t)?_c(o,r):(e.flags=e.flags&-4097|2,Se=!1,at=e)}}else{if(Jo(e))throw Error(s(418));e.flags=e.flags&-4097|2,Se=!1,at=e}}}function zc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;at=e}function ts(e){if(e!==at)return!1;if(!Se)return zc(e),Se=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ho(e.type,e.memoizedProps)),t&&(t=ut)){if(Jo(e))throw Fc(),Error(s(418));for(;t;)_c(e,t),t=tn(t.nextSibling)}if(zc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){ut=tn(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}ut=null}}else ut=at?tn(e.stateNode.nextSibling):null;return!0}function Fc(){for(var e=ut;e;)e=tn(e.nextSibling)}function er(){ut=at=null,Se=!1}function tl(e){Ct===null?Ct=[e]:Ct.push(e)}var Mg=Q.ReactCurrentBatchConfig;function Hr(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(s(309));var o=r.stateNode}if(!o)throw Error(s(147,e));var a=o,c=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===c?t.ref:(t=function(p){var x=a.refs;p===null?delete x[c]:x[c]=p},t._stringRef=c,t)}if(typeof e!="string")throw Error(s(284));if(!r._owner)throw Error(s(290,e))}return e}function ns(e,t){throw e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ic(e){var t=e._init;return t(e._payload)}function Oc(e){function t(C,T){if(e){var E=C.deletions;E===null?(C.deletions=[T],C.flags|=16):E.push(T)}}function r(C,T){if(!e)return null;for(;T!==null;)t(C,T),T=T.sibling;return null}function o(C,T){for(C=new Map;T!==null;)T.key!==null?C.set(T.key,T):C.set(T.index,T),T=T.sibling;return C}function a(C,T){return C=hn(C,T),C.index=0,C.sibling=null,C}function c(C,T,E){return C.index=E,e?(E=C.alternate,E!==null?(E=E.index,E<T?(C.flags|=2,T):E):(C.flags|=2,T)):(C.flags|=1048576,T)}function p(C){return e&&C.alternate===null&&(C.flags|=2),C}function x(C,T,E,I){return T===null||T.tag!==6?(T=Kl(E,C.mode,I),T.return=C,T):(T=a(T,E),T.return=C,T)}function S(C,T,E,I){var Y=E.type;return Y===re?V(C,T,E.props.children,I,E.key):T!==null&&(T.elementType===Y||typeof Y=="object"&&Y!==null&&Y.$$typeof===Qe&&Ic(Y)===T.type)?(I=a(T,E.props),I.ref=Hr(C,T,E),I.return=C,I):(I=Es(E.type,E.key,E.props,null,C.mode,I),I.ref=Hr(C,T,E),I.return=C,I)}function N(C,T,E,I){return T===null||T.tag!==4||T.stateNode.containerInfo!==E.containerInfo||T.stateNode.implementation!==E.implementation?(T=Gl(E,C.mode,I),T.return=C,T):(T=a(T,E.children||[]),T.return=C,T)}function V(C,T,E,I,Y){return T===null||T.tag!==7?(T=Mn(E,C.mode,I,Y),T.return=C,T):(T=a(T,E),T.return=C,T)}function z(C,T,E){if(typeof T=="string"&&T!==""||typeof T=="number")return T=Kl(""+T,C.mode,E),T.return=C,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case U:return E=Es(T.type,T.key,T.props,null,C.mode,E),E.ref=Hr(C,null,T),E.return=C,E;case X:return T=Gl(T,C.mode,E),T.return=C,T;case Qe:var I=T._init;return z(C,I(T._payload),E)}if(wr(T)||q(T))return T=Mn(T,C.mode,E,null),T.return=C,T;ns(C,T)}return null}function L(C,T,E,I){var Y=T!==null?T.key:null;if(typeof E=="string"&&E!==""||typeof E=="number")return Y!==null?null:x(C,T,""+E,I);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case U:return E.key===Y?S(C,T,E,I):null;case X:return E.key===Y?N(C,T,E,I):null;case Qe:return Y=E._init,L(C,T,Y(E._payload),I)}if(wr(E)||q(E))return Y!==null?null:V(C,T,E,I,null);ns(C,E)}return null}function W(C,T,E,I,Y){if(typeof I=="string"&&I!==""||typeof I=="number")return C=C.get(E)||null,x(T,C,""+I,Y);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case U:return C=C.get(I.key===null?E:I.key)||null,S(T,C,I,Y);case X:return C=C.get(I.key===null?E:I.key)||null,N(T,C,I,Y);case Qe:var J=I._init;return W(C,T,E,J(I._payload),Y)}if(wr(I)||q(I))return C=C.get(E)||null,V(T,C,I,Y,null);ns(T,I)}return null}function K(C,T,E,I){for(var Y=null,J=null,ee=T,ne=T=0,Fe=null;ee!==null&&ne<E.length;ne++){ee.index>ne?(Fe=ee,ee=null):Fe=ee.sibling;var de=L(C,ee,E[ne],I);if(de===null){ee===null&&(ee=Fe);break}e&&ee&&de.alternate===null&&t(C,ee),T=c(de,T,ne),J===null?Y=de:J.sibling=de,J=de,ee=Fe}if(ne===E.length)return r(C,ee),Se&&Tn(C,ne),Y;if(ee===null){for(;ne<E.length;ne++)ee=z(C,E[ne],I),ee!==null&&(T=c(ee,T,ne),J===null?Y=ee:J.sibling=ee,J=ee);return Se&&Tn(C,ne),Y}for(ee=o(C,ee);ne<E.length;ne++)Fe=W(ee,C,ne,E[ne],I),Fe!==null&&(e&&Fe.alternate!==null&&ee.delete(Fe.key===null?ne:Fe.key),T=c(Fe,T,ne),J===null?Y=Fe:J.sibling=Fe,J=Fe);return e&&ee.forEach(function(pn){return t(C,pn)}),Se&&Tn(C,ne),Y}function G(C,T,E,I){var Y=q(E);if(typeof Y!="function")throw Error(s(150));if(E=Y.call(E),E==null)throw Error(s(151));for(var J=Y=null,ee=T,ne=T=0,Fe=null,de=E.next();ee!==null&&!de.done;ne++,de=E.next()){ee.index>ne?(Fe=ee,ee=null):Fe=ee.sibling;var pn=L(C,ee,de.value,I);if(pn===null){ee===null&&(ee=Fe);break}e&&ee&&pn.alternate===null&&t(C,ee),T=c(pn,T,ne),J===null?Y=pn:J.sibling=pn,J=pn,ee=Fe}if(de.done)return r(C,ee),Se&&Tn(C,ne),Y;if(ee===null){for(;!de.done;ne++,de=E.next())de=z(C,de.value,I),de!==null&&(T=c(de,T,ne),J===null?Y=de:J.sibling=de,J=de);return Se&&Tn(C,ne),Y}for(ee=o(C,ee);!de.done;ne++,de=E.next())de=W(ee,C,ne,de.value,I),de!==null&&(e&&de.alternate!==null&&ee.delete(de.key===null?ne:de.key),T=c(de,T,ne),J===null?Y=de:J.sibling=de,J=de);return e&&ee.forEach(function(cy){return t(C,cy)}),Se&&Tn(C,ne),Y}function Ae(C,T,E,I){if(typeof E=="object"&&E!==null&&E.type===re&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case U:e:{for(var Y=E.key,J=T;J!==null;){if(J.key===Y){if(Y=E.type,Y===re){if(J.tag===7){r(C,J.sibling),T=a(J,E.props.children),T.return=C,C=T;break e}}else if(J.elementType===Y||typeof Y=="object"&&Y!==null&&Y.$$typeof===Qe&&Ic(Y)===J.type){r(C,J.sibling),T=a(J,E.props),T.ref=Hr(C,J,E),T.return=C,C=T;break e}r(C,J);break}else t(C,J);J=J.sibling}E.type===re?(T=Mn(E.props.children,C.mode,I,E.key),T.return=C,C=T):(I=Es(E.type,E.key,E.props,null,C.mode,I),I.ref=Hr(C,T,E),I.return=C,C=I)}return p(C);case X:e:{for(J=E.key;T!==null;){if(T.key===J)if(T.tag===4&&T.stateNode.containerInfo===E.containerInfo&&T.stateNode.implementation===E.implementation){r(C,T.sibling),T=a(T,E.children||[]),T.return=C,C=T;break e}else{r(C,T);break}else t(C,T);T=T.sibling}T=Gl(E,C.mode,I),T.return=C,C=T}return p(C);case Qe:return J=E._init,Ae(C,T,J(E._payload),I)}if(wr(E))return K(C,T,E,I);if(q(E))return G(C,T,E,I);ns(C,E)}return typeof E=="string"&&E!==""||typeof E=="number"?(E=""+E,T!==null&&T.tag===6?(r(C,T.sibling),T=a(T,E),T.return=C,C=T):(r(C,T),T=Kl(E,C.mode,I),T.return=C,C=T),p(C)):r(C,T)}return Ae}var tr=Oc(!0),Bc=Oc(!1),rs=nn(null),is=null,nr=null,nl=null;function rl(){nl=nr=is=null}function il(e){var t=rs.current;ve(rs),e._currentValue=t}function sl(e,t,r){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===r)break;e=e.return}}function rr(e,t){is=e,nl=nr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(tt=!0),e.firstContext=null)}function mt(e){var t=e._currentValue;if(nl!==e)if(e={context:e,memoizedValue:t,next:null},nr===null){if(is===null)throw Error(s(308));nr=e,is.dependencies={lanes:0,firstContext:e}}else nr=nr.next=e;return t}var Pn=null;function ol(e){Pn===null?Pn=[e]:Pn.push(e)}function Uc(e,t,r,o){var a=t.interleaved;return a===null?(r.next=r,ol(t)):(r.next=a.next,a.next=r),t.interleaved=r,$t(e,o)}function $t(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var on=!1;function ll(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function $c(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Wt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ln(e,t,r){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(ae&2)!==0){var a=o.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),o.pending=t,$t(e,r)}return a=o.interleaved,a===null?(t.next=t,ol(o)):(t.next=a.next,a.next=t),o.interleaved=t,$t(e,r)}function ss(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,So(e,r)}}function Wc(e,t){var r=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,r===o)){var a=null,c=null;if(r=r.firstBaseUpdate,r!==null){do{var p={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};c===null?a=c=p:c=c.next=p,r=r.next}while(r!==null);c===null?a=c=t:c=c.next=t}else a=c=t;r={baseState:o.baseState,firstBaseUpdate:a,lastBaseUpdate:c,shared:o.shared,effects:o.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function os(e,t,r,o){var a=e.updateQueue;on=!1;var c=a.firstBaseUpdate,p=a.lastBaseUpdate,x=a.shared.pending;if(x!==null){a.shared.pending=null;var S=x,N=S.next;S.next=null,p===null?c=N:p.next=N,p=S;var V=e.alternate;V!==null&&(V=V.updateQueue,x=V.lastBaseUpdate,x!==p&&(x===null?V.firstBaseUpdate=N:x.next=N,V.lastBaseUpdate=S))}if(c!==null){var z=a.baseState;p=0,V=N=S=null,x=c;do{var L=x.lane,W=x.eventTime;if((o&L)===L){V!==null&&(V=V.next={eventTime:W,lane:0,tag:x.tag,payload:x.payload,callback:x.callback,next:null});e:{var K=e,G=x;switch(L=t,W=r,G.tag){case 1:if(K=G.payload,typeof K=="function"){z=K.call(W,z,L);break e}z=K;break e;case 3:K.flags=K.flags&-65537|128;case 0:if(K=G.payload,L=typeof K=="function"?K.call(W,z,L):K,L==null)break e;z=b({},z,L);break e;case 2:on=!0}}x.callback!==null&&x.lane!==0&&(e.flags|=64,L=a.effects,L===null?a.effects=[x]:L.push(x))}else W={eventTime:W,lane:L,tag:x.tag,payload:x.payload,callback:x.callback,next:null},V===null?(N=V=W,S=z):V=V.next=W,p|=L;if(x=x.next,x===null){if(x=a.shared.pending,x===null)break;L=x,x=L.next,L.next=null,a.lastBaseUpdate=L,a.shared.pending=null}}while(!0);if(V===null&&(S=z),a.baseState=S,a.firstBaseUpdate=N,a.lastBaseUpdate=V,t=a.shared.interleaved,t!==null){a=t;do p|=a.lane,a=a.next;while(a!==t)}else c===null&&(a.shared.lanes=0);jn|=p,e.lanes=p,e.memoizedState=z}}function bc(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var o=e[t],a=o.callback;if(a!==null){if(o.callback=null,o=r,typeof a!="function")throw Error(s(191,a));a.call(o)}}}var Kr={},Lt=nn(Kr),Gr=nn(Kr),Qr=nn(Kr);function Cn(e){if(e===Kr)throw Error(s(174));return e}function al(e,t){switch(me(Qr,t),me(Gr,e),me(Lt,Kr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ao(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ao(t,e)}ve(Lt),me(Lt,t)}function ir(){ve(Lt),ve(Gr),ve(Qr)}function Hc(e){Cn(Qr.current);var t=Cn(Lt.current),r=ao(t,e.type);t!==r&&(me(Gr,e),me(Lt,r))}function ul(e){Gr.current===e&&(ve(Lt),ve(Gr))}var Te=nn(0);function ls(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var cl=[];function dl(){for(var e=0;e<cl.length;e++)cl[e]._workInProgressVersionPrimary=null;cl.length=0}var as=Q.ReactCurrentDispatcher,fl=Q.ReactCurrentBatchConfig,En=0,Pe=null,Le=null,Ve=null,us=!1,Yr=!1,Xr=0,Dg=0;function $e(){throw Error(s(321))}function hl(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Pt(e[r],t[r]))return!1;return!0}function pl(e,t,r,o,a,c){if(En=c,Pe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,as.current=e===null||e.memoizedState===null?zg:Fg,e=r(o,a),Yr){c=0;do{if(Yr=!1,Xr=0,25<=c)throw Error(s(301));c+=1,Ve=Le=null,t.updateQueue=null,as.current=Ig,e=r(o,a)}while(Yr)}if(as.current=fs,t=Le!==null&&Le.next!==null,En=0,Ve=Le=Pe=null,us=!1,t)throw Error(s(300));return e}function ml(){var e=Xr!==0;return Xr=0,e}function _t(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ve===null?Pe.memoizedState=Ve=e:Ve=Ve.next=e,Ve}function gt(){if(Le===null){var e=Pe.alternate;e=e!==null?e.memoizedState:null}else e=Le.next;var t=Ve===null?Pe.memoizedState:Ve.next;if(t!==null)Ve=t,Le=e;else{if(e===null)throw Error(s(310));Le=e,e={memoizedState:Le.memoizedState,baseState:Le.baseState,baseQueue:Le.baseQueue,queue:Le.queue,next:null},Ve===null?Pe.memoizedState=Ve=e:Ve=Ve.next=e}return Ve}function Zr(e,t){return typeof t=="function"?t(e):t}function gl(e){var t=gt(),r=t.queue;if(r===null)throw Error(s(311));r.lastRenderedReducer=e;var o=Le,a=o.baseQueue,c=r.pending;if(c!==null){if(a!==null){var p=a.next;a.next=c.next,c.next=p}o.baseQueue=a=c,r.pending=null}if(a!==null){c=a.next,o=o.baseState;var x=p=null,S=null,N=c;do{var V=N.lane;if((En&V)===V)S!==null&&(S=S.next={lane:0,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),o=N.hasEagerState?N.eagerState:e(o,N.action);else{var z={lane:V,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null};S===null?(x=S=z,p=o):S=S.next=z,Pe.lanes|=V,jn|=V}N=N.next}while(N!==null&&N!==c);S===null?p=o:S.next=x,Pt(o,t.memoizedState)||(tt=!0),t.memoizedState=o,t.baseState=p,t.baseQueue=S,r.lastRenderedState=o}if(e=r.interleaved,e!==null){a=e;do c=a.lane,Pe.lanes|=c,jn|=c,a=a.next;while(a!==e)}else a===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function yl(e){var t=gt(),r=t.queue;if(r===null)throw Error(s(311));r.lastRenderedReducer=e;var o=r.dispatch,a=r.pending,c=t.memoizedState;if(a!==null){r.pending=null;var p=a=a.next;do c=e(c,p.action),p=p.next;while(p!==a);Pt(c,t.memoizedState)||(tt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),r.lastRenderedState=c}return[c,o]}function Kc(){}function Gc(e,t){var r=Pe,o=gt(),a=t(),c=!Pt(o.memoizedState,a);if(c&&(o.memoizedState=a,tt=!0),o=o.queue,vl(Xc.bind(null,r,o,e),[e]),o.getSnapshot!==t||c||Ve!==null&&Ve.memoizedState.tag&1){if(r.flags|=2048,qr(9,Yc.bind(null,r,o,a,t),void 0,null),ze===null)throw Error(s(349));(En&30)!==0||Qc(r,t,a)}return a}function Qc(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Pe.updateQueue,t===null?(t={lastEffect:null,stores:null},Pe.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function Yc(e,t,r,o){t.value=r,t.getSnapshot=o,Zc(t)&&qc(e)}function Xc(e,t,r){return r(function(){Zc(t)&&qc(e)})}function Zc(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Pt(e,r)}catch{return!0}}function qc(e){var t=$t(e,1);t!==null&&Rt(t,e,1,-1)}function Jc(e){var t=_t();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Zr,lastRenderedState:e},t.queue=e,e=e.dispatch=Vg.bind(null,Pe,e),[t.memoizedState,e]}function qr(e,t,r,o){return e={tag:e,create:t,destroy:r,deps:o,next:null},t=Pe.updateQueue,t===null?(t={lastEffect:null,stores:null},Pe.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(o=r.next,r.next=e,e.next=o,t.lastEffect=e)),e}function ed(){return gt().memoizedState}function cs(e,t,r,o){var a=_t();Pe.flags|=e,a.memoizedState=qr(1|t,r,void 0,o===void 0?null:o)}function ds(e,t,r,o){var a=gt();o=o===void 0?null:o;var c=void 0;if(Le!==null){var p=Le.memoizedState;if(c=p.destroy,o!==null&&hl(o,p.deps)){a.memoizedState=qr(t,r,c,o);return}}Pe.flags|=e,a.memoizedState=qr(1|t,r,c,o)}function td(e,t){return cs(8390656,8,e,t)}function vl(e,t){return ds(2048,8,e,t)}function nd(e,t){return ds(4,2,e,t)}function rd(e,t){return ds(4,4,e,t)}function id(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function sd(e,t,r){return r=r!=null?r.concat([e]):null,ds(4,4,id.bind(null,t,e),r)}function xl(){}function od(e,t){var r=gt();t=t===void 0?null:t;var o=r.memoizedState;return o!==null&&t!==null&&hl(t,o[1])?o[0]:(r.memoizedState=[e,t],e)}function ld(e,t){var r=gt();t=t===void 0?null:t;var o=r.memoizedState;return o!==null&&t!==null&&hl(t,o[1])?o[0]:(e=e(),r.memoizedState=[e,t],e)}function ad(e,t,r){return(En&21)===0?(e.baseState&&(e.baseState=!1,tt=!0),e.memoizedState=r):(Pt(r,t)||(r=Iu(),Pe.lanes|=r,jn|=r,e.baseState=!0),t)}function Lg(e,t){var r=he;he=r!==0&&4>r?r:4,e(!0);var o=fl.transition;fl.transition={};try{e(!1),t()}finally{he=r,fl.transition=o}}function ud(){return gt().memoizedState}function _g(e,t,r){var o=dn(e);if(r={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null},cd(e))dd(t,r);else if(r=Uc(e,t,r,o),r!==null){var a=Xe();Rt(r,e,o,a),fd(r,t,o)}}function Vg(e,t,r){var o=dn(e),a={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null};if(cd(e))dd(t,a);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var p=t.lastRenderedState,x=c(p,r);if(a.hasEagerState=!0,a.eagerState=x,Pt(x,p)){var S=t.interleaved;S===null?(a.next=a,ol(t)):(a.next=S.next,S.next=a),t.interleaved=a;return}}catch{}finally{}r=Uc(e,t,a,o),r!==null&&(a=Xe(),Rt(r,e,o,a),fd(r,t,o))}}function cd(e){var t=e.alternate;return e===Pe||t!==null&&t===Pe}function dd(e,t){Yr=us=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function fd(e,t,r){if((r&4194240)!==0){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,So(e,r)}}var fs={readContext:mt,useCallback:$e,useContext:$e,useEffect:$e,useImperativeHandle:$e,useInsertionEffect:$e,useLayoutEffect:$e,useMemo:$e,useReducer:$e,useRef:$e,useState:$e,useDebugValue:$e,useDeferredValue:$e,useTransition:$e,useMutableSource:$e,useSyncExternalStore:$e,useId:$e,unstable_isNewReconciler:!1},zg={readContext:mt,useCallback:function(e,t){return _t().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:td,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,cs(4194308,4,id.bind(null,t,e),r)},useLayoutEffect:function(e,t){return cs(4194308,4,e,t)},useInsertionEffect:function(e,t){return cs(4,2,e,t)},useMemo:function(e,t){var r=_t();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var o=_t();return t=r!==void 0?r(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=_g.bind(null,Pe,e),[o.memoizedState,e]},useRef:function(e){var t=_t();return e={current:e},t.memoizedState=e},useState:Jc,useDebugValue:xl,useDeferredValue:function(e){return _t().memoizedState=e},useTransition:function(){var e=Jc(!1),t=e[0];return e=Lg.bind(null,e[1]),_t().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=Pe,a=_t();if(Se){if(r===void 0)throw Error(s(407));r=r()}else{if(r=t(),ze===null)throw Error(s(349));(En&30)!==0||Qc(o,t,r)}a.memoizedState=r;var c={value:r,getSnapshot:t};return a.queue=c,td(Xc.bind(null,o,c,e),[e]),o.flags|=2048,qr(9,Yc.bind(null,o,c,r,t),void 0,null),r},useId:function(){var e=_t(),t=ze.identifierPrefix;if(Se){var r=Ut,o=Bt;r=(o&~(1<<32-Tt(o)-1)).toString(32)+r,t=":"+t+"R"+r,r=Xr++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=Dg++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Fg={readContext:mt,useCallback:od,useContext:mt,useEffect:vl,useImperativeHandle:sd,useInsertionEffect:nd,useLayoutEffect:rd,useMemo:ld,useReducer:gl,useRef:ed,useState:function(){return gl(Zr)},useDebugValue:xl,useDeferredValue:function(e){var t=gt();return ad(t,Le.memoizedState,e)},useTransition:function(){var e=gl(Zr)[0],t=gt().memoizedState;return[e,t]},useMutableSource:Kc,useSyncExternalStore:Gc,useId:ud,unstable_isNewReconciler:!1},Ig={readContext:mt,useCallback:od,useContext:mt,useEffect:vl,useImperativeHandle:sd,useInsertionEffect:nd,useLayoutEffect:rd,useMemo:ld,useReducer:yl,useRef:ed,useState:function(){return yl(Zr)},useDebugValue:xl,useDeferredValue:function(e){var t=gt();return Le===null?t.memoizedState=e:ad(t,Le.memoizedState,e)},useTransition:function(){var e=yl(Zr)[0],t=gt().memoizedState;return[e,t]},useMutableSource:Kc,useSyncExternalStore:Gc,useId:ud,unstable_isNewReconciler:!1};function Et(e,t){if(e&&e.defaultProps){t=b({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function wl(e,t,r,o){t=e.memoizedState,r=r(o,t),r=r==null?t:b({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var hs={isMounted:function(e){return(e=e._reactInternals)?xn(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var o=Xe(),a=dn(e),c=Wt(o,a);c.payload=t,r!=null&&(c.callback=r),t=ln(e,c,a),t!==null&&(Rt(t,e,a,o),ss(t,e,a))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var o=Xe(),a=dn(e),c=Wt(o,a);c.tag=1,c.payload=t,r!=null&&(c.callback=r),t=ln(e,c,a),t!==null&&(Rt(t,e,a,o),ss(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Xe(),o=dn(e),a=Wt(r,o);a.tag=2,t!=null&&(a.callback=t),t=ln(e,a,o),t!==null&&(Rt(t,e,o,r),ss(t,e,o))}};function hd(e,t,r,o,a,c,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,c,p):t.prototype&&t.prototype.isPureReactComponent?!Ir(r,o)||!Ir(a,c):!0}function pd(e,t,r){var o=!1,a=rn,c=t.contextType;return typeof c=="object"&&c!==null?c=mt(c):(a=et(t)?Sn:Ue.current,o=t.contextTypes,c=(o=o!=null)?Zn(e,a):rn),t=new t(r,c),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=hs,e.stateNode=t,t._reactInternals=e,o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=c),t}function md(e,t,r,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,o),t.state!==e&&hs.enqueueReplaceState(t,t.state,null)}function Sl(e,t,r,o){var a=e.stateNode;a.props=r,a.state=e.memoizedState,a.refs={},ll(e);var c=t.contextType;typeof c=="object"&&c!==null?a.context=mt(c):(c=et(t)?Sn:Ue.current,a.context=Zn(e,c)),a.state=e.memoizedState,c=t.getDerivedStateFromProps,typeof c=="function"&&(wl(e,t,c,r),a.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(t=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),t!==a.state&&hs.enqueueReplaceState(a,a.state,null),os(e,r,a,o),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}function sr(e,t){try{var r="",o=t;do r+=ue(o),o=o.return;while(o);var a=r}catch(c){a=`
39
+ Error generating stack: `+c.message+`
40
+ `+c.stack}return{value:e,source:t,stack:a,digest:null}}function kl(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Tl(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var Og=typeof WeakMap=="function"?WeakMap:Map;function gd(e,t,r){r=Wt(-1,r),r.tag=3,r.payload={element:null};var o=t.value;return r.callback=function(){ws||(ws=!0,Il=o),Tl(e,t)},r}function yd(e,t,r){r=Wt(-1,r),r.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var a=t.value;r.payload=function(){return o(a)},r.callback=function(){Tl(e,t)}}var c=e.stateNode;return c!==null&&typeof c.componentDidCatch=="function"&&(r.callback=function(){Tl(e,t),typeof o!="function"&&(un===null?un=new Set([this]):un.add(this));var p=t.stack;this.componentDidCatch(t.value,{componentStack:p!==null?p:""})}),r}function vd(e,t,r){var o=e.pingCache;if(o===null){o=e.pingCache=new Og;var a=new Set;o.set(t,a)}else a=o.get(t),a===void 0&&(a=new Set,o.set(t,a));a.has(r)||(a.add(r),e=Jg.bind(null,e,t,r),t.then(e,e))}function xd(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function wd(e,t,r,o,a){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Wt(-1,1),t.tag=2,ln(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var Bg=Q.ReactCurrentOwner,tt=!1;function Ye(e,t,r,o){t.child=e===null?Bc(t,null,r,o):tr(t,e.child,r,o)}function Sd(e,t,r,o,a){r=r.render;var c=t.ref;return rr(t,a),o=pl(e,t,r,o,c,a),r=ml(),e!==null&&!tt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,bt(e,t,a)):(Se&&r&&Zo(t),t.flags|=1,Ye(e,t,o,a),t.child)}function kd(e,t,r,o,a){if(e===null){var c=r.type;return typeof c=="function"&&!Hl(c)&&c.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=c,Td(e,t,c,o,a)):(e=Es(r.type,null,o,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,(e.lanes&a)===0){var p=c.memoizedProps;if(r=r.compare,r=r!==null?r:Ir,r(p,o)&&e.ref===t.ref)return bt(e,t,a)}return t.flags|=1,e=hn(c,o),e.ref=t.ref,e.return=t,t.child=e}function Td(e,t,r,o,a){if(e!==null){var c=e.memoizedProps;if(Ir(c,o)&&e.ref===t.ref)if(tt=!1,t.pendingProps=o=c,(e.lanes&a)!==0)(e.flags&131072)!==0&&(tt=!0);else return t.lanes=e.lanes,bt(e,t,a)}return Pl(e,t,r,o,a)}function Pd(e,t,r){var o=t.pendingProps,a=o.children,c=e!==null?e.memoizedState:null;if(o.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},me(lr,ct),ct|=r;else{if((r&1073741824)===0)return e=c!==null?c.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,me(lr,ct),ct|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=c!==null?c.baseLanes:r,me(lr,ct),ct|=o}else c!==null?(o=c.baseLanes|r,t.memoizedState=null):o=r,me(lr,ct),ct|=o;return Ye(e,t,a,r),t.child}function Cd(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Pl(e,t,r,o,a){var c=et(r)?Sn:Ue.current;return c=Zn(t,c),rr(t,a),r=pl(e,t,r,o,c,a),o=ml(),e!==null&&!tt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,bt(e,t,a)):(Se&&o&&Zo(t),t.flags|=1,Ye(e,t,r,a),t.child)}function Ed(e,t,r,o,a){if(et(r)){var c=!0;Zi(t)}else c=!1;if(rr(t,a),t.stateNode===null)ms(e,t),pd(t,r,o),Sl(t,r,o,a),o=!0;else if(e===null){var p=t.stateNode,x=t.memoizedProps;p.props=x;var S=p.context,N=r.contextType;typeof N=="object"&&N!==null?N=mt(N):(N=et(r)?Sn:Ue.current,N=Zn(t,N));var V=r.getDerivedStateFromProps,z=typeof V=="function"||typeof p.getSnapshotBeforeUpdate=="function";z||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(x!==o||S!==N)&&md(t,p,o,N),on=!1;var L=t.memoizedState;p.state=L,os(t,o,p,a),S=t.memoizedState,x!==o||L!==S||Je.current||on?(typeof V=="function"&&(wl(t,r,V,o),S=t.memoizedState),(x=on||hd(t,r,x,o,L,S,N))?(z||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(t.flags|=4194308)):(typeof p.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=S),p.props=o,p.state=S,p.context=N,o=x):(typeof p.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{p=t.stateNode,$c(e,t),x=t.memoizedProps,N=t.type===t.elementType?x:Et(t.type,x),p.props=N,z=t.pendingProps,L=p.context,S=r.contextType,typeof S=="object"&&S!==null?S=mt(S):(S=et(r)?Sn:Ue.current,S=Zn(t,S));var W=r.getDerivedStateFromProps;(V=typeof W=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(x!==z||L!==S)&&md(t,p,o,S),on=!1,L=t.memoizedState,p.state=L,os(t,o,p,a);var K=t.memoizedState;x!==z||L!==K||Je.current||on?(typeof W=="function"&&(wl(t,r,W,o),K=t.memoizedState),(N=on||hd(t,r,N,o,L,K,S)||!1)?(V||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(o,K,S),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(o,K,S)),typeof p.componentDidUpdate=="function"&&(t.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof p.componentDidUpdate!="function"||x===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=K),p.props=o,p.state=K,p.context=S,o=N):(typeof p.componentDidUpdate!="function"||x===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),o=!1)}return Cl(e,t,r,o,c,a)}function Cl(e,t,r,o,a,c){Cd(e,t);var p=(t.flags&128)!==0;if(!o&&!p)return a&&Mc(t,r,!1),bt(e,t,c);o=t.stateNode,Bg.current=t;var x=p&&typeof r.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&p?(t.child=tr(t,e.child,null,c),t.child=tr(t,null,x,c)):Ye(e,t,x,c),t.memoizedState=o.state,a&&Mc(t,r,!0),t.child}function jd(e){var t=e.stateNode;t.pendingContext?Rc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Rc(e,t.context,!1),al(e,t.containerInfo)}function Nd(e,t,r,o,a){return er(),tl(a),t.flags|=256,Ye(e,t,r,o),t.child}var El={dehydrated:null,treeContext:null,retryLane:0};function jl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Rd(e,t,r){var o=t.pendingProps,a=Te.current,c=!1,p=(t.flags&128)!==0,x;if((x=p)||(x=e!==null&&e.memoizedState===null?!1:(a&2)!==0),x?(c=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),me(Te,a&1),e===null)return el(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(p=o.children,e=o.fallback,c?(o=t.mode,c=t.child,p={mode:"hidden",children:p},(o&1)===0&&c!==null?(c.childLanes=0,c.pendingProps=p):c=js(p,o,0,null),e=Mn(e,o,r,null),c.return=t,e.return=t,c.sibling=e,t.child=c,t.child.memoizedState=jl(r),t.memoizedState=El,e):Nl(t,p));if(a=e.memoizedState,a!==null&&(x=a.dehydrated,x!==null))return Ug(e,t,p,o,x,a,r);if(c){c=o.fallback,p=t.mode,a=e.child,x=a.sibling;var S={mode:"hidden",children:o.children};return(p&1)===0&&t.child!==a?(o=t.child,o.childLanes=0,o.pendingProps=S,t.deletions=null):(o=hn(a,S),o.subtreeFlags=a.subtreeFlags&14680064),x!==null?c=hn(x,c):(c=Mn(c,p,r,null),c.flags|=2),c.return=t,o.return=t,o.sibling=c,t.child=o,o=c,c=t.child,p=e.child.memoizedState,p=p===null?jl(r):{baseLanes:p.baseLanes|r,cachePool:null,transitions:p.transitions},c.memoizedState=p,c.childLanes=e.childLanes&~r,t.memoizedState=El,o}return c=e.child,e=c.sibling,o=hn(c,{mode:"visible",children:o.children}),(t.mode&1)===0&&(o.lanes=r),o.return=t,o.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function Nl(e,t){return t=js({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ps(e,t,r,o){return o!==null&&tl(o),tr(t,e.child,null,r),e=Nl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ug(e,t,r,o,a,c,p){if(r)return t.flags&256?(t.flags&=-257,o=kl(Error(s(422))),ps(e,t,p,o)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(c=o.fallback,a=t.mode,o=js({mode:"visible",children:o.children},a,0,null),c=Mn(c,a,p,null),c.flags|=2,o.return=t,c.return=t,o.sibling=c,t.child=o,(t.mode&1)!==0&&tr(t,e.child,null,p),t.child.memoizedState=jl(p),t.memoizedState=El,c);if((t.mode&1)===0)return ps(e,t,p,null);if(a.data==="$!"){if(o=a.nextSibling&&a.nextSibling.dataset,o)var x=o.dgst;return o=x,c=Error(s(419)),o=kl(c,o,void 0),ps(e,t,p,o)}if(x=(p&e.childLanes)!==0,tt||x){if(o=ze,o!==null){switch(p&-p){case 4:a=2;break;case 16:a=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(o.suspendedLanes|p))!==0?0:a,a!==0&&a!==c.retryLane&&(c.retryLane=a,$t(e,a),Rt(o,e,a,-1))}return bl(),o=kl(Error(s(421))),ps(e,t,p,o)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=ey.bind(null,e),a._reactRetry=t,null):(e=c.treeContext,ut=tn(a.nextSibling),at=t,Se=!0,Ct=null,e!==null&&(ht[pt++]=Bt,ht[pt++]=Ut,ht[pt++]=kn,Bt=e.id,Ut=e.overflow,kn=t),t=Nl(t,o.children),t.flags|=4096,t)}function Ad(e,t,r){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),sl(e.return,t,r)}function Rl(e,t,r,o,a){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:r,tailMode:a}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=o,c.tail=r,c.tailMode=a)}function Md(e,t,r){var o=t.pendingProps,a=o.revealOrder,c=o.tail;if(Ye(e,t,o.children,r),o=Te.current,(o&2)!==0)o=o&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ad(e,r,t);else if(e.tag===19)Ad(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if(me(Te,o),(t.mode&1)===0)t.memoizedState=null;else switch(a){case"forwards":for(r=t.child,a=null;r!==null;)e=r.alternate,e!==null&&ls(e)===null&&(a=r),r=r.sibling;r=a,r===null?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null),Rl(t,!1,a,r,c);break;case"backwards":for(r=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&ls(e)===null){t.child=a;break}e=a.sibling,a.sibling=r,r=a,a=e}Rl(t,!0,r,null,c);break;case"together":Rl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ms(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function bt(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),jn|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,r=hn(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=hn(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function $g(e,t,r){switch(t.tag){case 3:jd(t),er();break;case 5:Hc(t);break;case 1:et(t.type)&&Zi(t);break;case 4:al(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,a=t.memoizedProps.value;me(rs,o._currentValue),o._currentValue=a;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?(me(Te,Te.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?Rd(e,t,r):(me(Te,Te.current&1),e=bt(e,t,r),e!==null?e.sibling:null);me(Te,Te.current&1);break;case 19:if(o=(r&t.childLanes)!==0,(e.flags&128)!==0){if(o)return Md(e,t,r);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),me(Te,Te.current),o)break;return null;case 22:case 23:return t.lanes=0,Pd(e,t,r)}return bt(e,t,r)}var Dd,Al,Ld,_d;Dd=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Al=function(){},Ld=function(e,t,r,o){var a=e.memoizedProps;if(a!==o){e=t.stateNode,Cn(Lt.current);var c=null;switch(r){case"input":a=io(e,a),o=io(e,o),c=[];break;case"select":a=b({},a,{value:void 0}),o=b({},o,{value:void 0}),c=[];break;case"textarea":a=lo(e,a),o=lo(e,o),c=[];break;default:typeof a.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=Qi)}uo(r,o);var p;r=null;for(N in a)if(!o.hasOwnProperty(N)&&a.hasOwnProperty(N)&&a[N]!=null)if(N==="style"){var x=a[N];for(p in x)x.hasOwnProperty(p)&&(r||(r={}),r[p]="")}else N!=="dangerouslySetInnerHTML"&&N!=="children"&&N!=="suppressContentEditableWarning"&&N!=="suppressHydrationWarning"&&N!=="autoFocus"&&(u.hasOwnProperty(N)?c||(c=[]):(c=c||[]).push(N,null));for(N in o){var S=o[N];if(x=a!=null?a[N]:void 0,o.hasOwnProperty(N)&&S!==x&&(S!=null||x!=null))if(N==="style")if(x){for(p in x)!x.hasOwnProperty(p)||S&&S.hasOwnProperty(p)||(r||(r={}),r[p]="");for(p in S)S.hasOwnProperty(p)&&x[p]!==S[p]&&(r||(r={}),r[p]=S[p])}else r||(c||(c=[]),c.push(N,r)),r=S;else N==="dangerouslySetInnerHTML"?(S=S?S.__html:void 0,x=x?x.__html:void 0,S!=null&&x!==S&&(c=c||[]).push(N,S)):N==="children"?typeof S!="string"&&typeof S!="number"||(c=c||[]).push(N,""+S):N!=="suppressContentEditableWarning"&&N!=="suppressHydrationWarning"&&(u.hasOwnProperty(N)?(S!=null&&N==="onScroll"&&ye("scroll",e),c||x===S||(c=[])):(c=c||[]).push(N,S))}r&&(c=c||[]).push("style",r);var N=c;(t.updateQueue=N)&&(t.flags|=4)}},_d=function(e,t,r,o){r!==o&&(t.flags|=4)};function Jr(e,t){if(!Se)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function We(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,o=0;if(t)for(var a=e.child;a!==null;)r|=a.lanes|a.childLanes,o|=a.subtreeFlags&14680064,o|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)r|=a.lanes|a.childLanes,o|=a.subtreeFlags,o|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=o,e.childLanes=r,t}function Wg(e,t,r){var o=t.pendingProps;switch(qo(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(t),null;case 1:return et(t.type)&&Xi(),We(t),null;case 3:return o=t.stateNode,ir(),ve(Je),ve(Ue),dl(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(ts(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ct!==null&&(Ul(Ct),Ct=null))),Al(e,t),We(t),null;case 5:ul(t);var a=Cn(Qr.current);if(r=t.type,e!==null&&t.stateNode!=null)Ld(e,t,r,o,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(t.stateNode===null)throw Error(s(166));return We(t),null}if(e=Cn(Lt.current),ts(t)){o=t.stateNode,r=t.type;var c=t.memoizedProps;switch(o[Dt]=t,o[Wr]=c,e=(t.mode&1)!==0,r){case"dialog":ye("cancel",o),ye("close",o);break;case"iframe":case"object":case"embed":ye("load",o);break;case"video":case"audio":for(a=0;a<Br.length;a++)ye(Br[a],o);break;case"source":ye("error",o);break;case"img":case"image":case"link":ye("error",o),ye("load",o);break;case"details":ye("toggle",o);break;case"input":pu(o,c),ye("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!c.multiple},ye("invalid",o);break;case"textarea":yu(o,c),ye("invalid",o)}uo(r,c),a=null;for(var p in c)if(c.hasOwnProperty(p)){var x=c[p];p==="children"?typeof x=="string"?o.textContent!==x&&(c.suppressHydrationWarning!==!0&&Gi(o.textContent,x,e),a=["children",x]):typeof x=="number"&&o.textContent!==""+x&&(c.suppressHydrationWarning!==!0&&Gi(o.textContent,x,e),a=["children",""+x]):u.hasOwnProperty(p)&&x!=null&&p==="onScroll"&&ye("scroll",o)}switch(r){case"input":Pi(o),gu(o,c,!0);break;case"textarea":Pi(o),xu(o);break;case"select":case"option":break;default:typeof c.onClick=="function"&&(o.onclick=Qi)}o=a,t.updateQueue=o,o!==null&&(t.flags|=4)}else{p=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=wu(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=p.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=p.createElement(r,{is:o.is}):(e=p.createElement(r),r==="select"&&(p=e,o.multiple?p.multiple=!0:o.size&&(p.size=o.size))):e=p.createElementNS(e,r),e[Dt]=t,e[Wr]=o,Dd(e,t,!1,!1),t.stateNode=e;e:{switch(p=co(r,o),r){case"dialog":ye("cancel",e),ye("close",e),a=o;break;case"iframe":case"object":case"embed":ye("load",e),a=o;break;case"video":case"audio":for(a=0;a<Br.length;a++)ye(Br[a],e);a=o;break;case"source":ye("error",e),a=o;break;case"img":case"image":case"link":ye("error",e),ye("load",e),a=o;break;case"details":ye("toggle",e),a=o;break;case"input":pu(e,o),a=io(e,o),ye("invalid",e);break;case"option":a=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},a=b({},o,{value:void 0}),ye("invalid",e);break;case"textarea":yu(e,o),a=lo(e,o),ye("invalid",e);break;default:a=o}uo(r,a),x=a;for(c in x)if(x.hasOwnProperty(c)){var S=x[c];c==="style"?Tu(e,S):c==="dangerouslySetInnerHTML"?(S=S?S.__html:void 0,S!=null&&Su(e,S)):c==="children"?typeof S=="string"?(r!=="textarea"||S!=="")&&Sr(e,S):typeof S=="number"&&Sr(e,""+S):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(u.hasOwnProperty(c)?S!=null&&c==="onScroll"&&ye("scroll",e):S!=null&&$(e,c,S,p))}switch(r){case"input":Pi(e),gu(e,o,!1);break;case"textarea":Pi(e),xu(e);break;case"option":o.value!=null&&e.setAttribute("value",""+fe(o.value));break;case"select":e.multiple=!!o.multiple,c=o.value,c!=null?On(e,!!o.multiple,c,!1):o.defaultValue!=null&&On(e,!!o.multiple,o.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=Qi)}switch(r){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return We(t),null;case 6:if(e&&t.stateNode!=null)_d(e,t,e.memoizedProps,o);else{if(typeof o!="string"&&t.stateNode===null)throw Error(s(166));if(r=Cn(Qr.current),Cn(Lt.current),ts(t)){if(o=t.stateNode,r=t.memoizedProps,o[Dt]=t,(c=o.nodeValue!==r)&&(e=at,e!==null))switch(e.tag){case 3:Gi(o.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Gi(o.nodeValue,r,(e.mode&1)!==0)}c&&(t.flags|=4)}else o=(r.nodeType===9?r:r.ownerDocument).createTextNode(o),o[Dt]=t,t.stateNode=o}return We(t),null;case 13:if(ve(Te),o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Se&&ut!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Fc(),er(),t.flags|=98560,c=!1;else if(c=ts(t),o!==null&&o.dehydrated!==null){if(e===null){if(!c)throw Error(s(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(s(317));c[Dt]=t}else er(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;We(t),c=!1}else Ct!==null&&(Ul(Ct),Ct=null),c=!0;if(!c)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=r,t):(o=o!==null,o!==(e!==null&&e.memoizedState!==null)&&o&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Te.current&1)!==0?_e===0&&(_e=3):bl())),t.updateQueue!==null&&(t.flags|=4),We(t),null);case 4:return ir(),Al(e,t),e===null&&Ur(t.stateNode.containerInfo),We(t),null;case 10:return il(t.type._context),We(t),null;case 17:return et(t.type)&&Xi(),We(t),null;case 19:if(ve(Te),c=t.memoizedState,c===null)return We(t),null;if(o=(t.flags&128)!==0,p=c.rendering,p===null)if(o)Jr(c,!1);else{if(_e!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(p=ls(e),p!==null){for(t.flags|=128,Jr(c,!1),o=p.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=r,r=t.child;r!==null;)c=r,e=o,c.flags&=14680066,p=c.alternate,p===null?(c.childLanes=0,c.lanes=e,c.child=null,c.subtreeFlags=0,c.memoizedProps=null,c.memoizedState=null,c.updateQueue=null,c.dependencies=null,c.stateNode=null):(c.childLanes=p.childLanes,c.lanes=p.lanes,c.child=p.child,c.subtreeFlags=0,c.deletions=null,c.memoizedProps=p.memoizedProps,c.memoizedState=p.memoizedState,c.updateQueue=p.updateQueue,c.type=p.type,e=p.dependencies,c.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return me(Te,Te.current&1|2),t.child}e=e.sibling}c.tail!==null&&Re()>ar&&(t.flags|=128,o=!0,Jr(c,!1),t.lanes=4194304)}else{if(!o)if(e=ls(p),e!==null){if(t.flags|=128,o=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Jr(c,!0),c.tail===null&&c.tailMode==="hidden"&&!p.alternate&&!Se)return We(t),null}else 2*Re()-c.renderingStartTime>ar&&r!==1073741824&&(t.flags|=128,o=!0,Jr(c,!1),t.lanes=4194304);c.isBackwards?(p.sibling=t.child,t.child=p):(r=c.last,r!==null?r.sibling=p:t.child=p,c.last=p)}return c.tail!==null?(t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=Re(),t.sibling=null,r=Te.current,me(Te,o?r&1|2:r&1),t):(We(t),null);case 22:case 23:return Wl(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&(t.mode&1)!==0?(ct&1073741824)!==0&&(We(t),t.subtreeFlags&6&&(t.flags|=8192)):We(t),null;case 24:return null;case 25:return null}throw Error(s(156,t.tag))}function bg(e,t){switch(qo(t),t.tag){case 1:return et(t.type)&&Xi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ir(),ve(Je),ve(Ue),dl(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return ul(t),null;case 13:if(ve(Te),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));er()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ve(Te),null;case 4:return ir(),null;case 10:return il(t.type._context),null;case 22:case 23:return Wl(),null;case 24:return null;default:return null}}var gs=!1,be=!1,Hg=typeof WeakSet=="function"?WeakSet:Set,H=null;function or(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(o){je(e,t,o)}else r.current=null}function Ml(e,t,r){try{r()}catch(o){je(e,t,o)}}var Vd=!1;function Kg(e,t){if(Wo=zi,e=hc(),Vo(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var o=r.getSelection&&r.getSelection();if(o&&o.rangeCount!==0){r=o.anchorNode;var a=o.anchorOffset,c=o.focusNode;o=o.focusOffset;try{r.nodeType,c.nodeType}catch{r=null;break e}var p=0,x=-1,S=-1,N=0,V=0,z=e,L=null;t:for(;;){for(var W;z!==r||a!==0&&z.nodeType!==3||(x=p+a),z!==c||o!==0&&z.nodeType!==3||(S=p+o),z.nodeType===3&&(p+=z.nodeValue.length),(W=z.firstChild)!==null;)L=z,z=W;for(;;){if(z===e)break t;if(L===r&&++N===a&&(x=p),L===c&&++V===o&&(S=p),(W=z.nextSibling)!==null)break;z=L,L=z.parentNode}z=W}r=x===-1||S===-1?null:{start:x,end:S}}else r=null}r=r||{start:0,end:0}}else r=null;for(bo={focusedElem:e,selectionRange:r},zi=!1,H=t;H!==null;)if(t=H,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,H=e;else for(;H!==null;){t=H;try{var K=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(K!==null){var G=K.memoizedProps,Ae=K.memoizedState,C=t.stateNode,T=C.getSnapshotBeforeUpdate(t.elementType===t.type?G:Et(t.type,G),Ae);C.__reactInternalSnapshotBeforeUpdate=T}break;case 3:var E=t.stateNode.containerInfo;E.nodeType===1?E.textContent="":E.nodeType===9&&E.documentElement&&E.removeChild(E.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch(I){je(t,t.return,I)}if(e=t.sibling,e!==null){e.return=t.return,H=e;break}H=t.return}return K=Vd,Vd=!1,K}function ei(e,t,r){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var a=o=o.next;do{if((a.tag&e)===e){var c=a.destroy;a.destroy=void 0,c!==void 0&&Ml(t,r,c)}a=a.next}while(a!==o)}}function ys(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var o=r.create;r.destroy=o()}r=r.next}while(r!==t)}}function Dl(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function zd(e){var t=e.alternate;t!==null&&(e.alternate=null,zd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Dt],delete t[Wr],delete t[Qo],delete t[Ng],delete t[Rg])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Fd(e){return e.tag===5||e.tag===3||e.tag===4}function Id(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Fd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ll(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Qi));else if(o!==4&&(e=e.child,e!==null))for(Ll(e,t,r),e=e.sibling;e!==null;)Ll(e,t,r),e=e.sibling}function _l(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(_l(e,t,r),e=e.sibling;e!==null;)_l(e,t,r),e=e.sibling}var Ie=null,jt=!1;function an(e,t,r){for(r=r.child;r!==null;)Od(e,t,r),r=r.sibling}function Od(e,t,r){if(Mt&&typeof Mt.onCommitFiberUnmount=="function")try{Mt.onCommitFiberUnmount(Ai,r)}catch{}switch(r.tag){case 5:be||or(r,t);case 6:var o=Ie,a=jt;Ie=null,an(e,t,r),Ie=o,jt=a,Ie!==null&&(jt?(e=Ie,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ie.removeChild(r.stateNode));break;case 18:Ie!==null&&(jt?(e=Ie,r=r.stateNode,e.nodeType===8?Go(e.parentNode,r):e.nodeType===1&&Go(e,r),Dr(e)):Go(Ie,r.stateNode));break;case 4:o=Ie,a=jt,Ie=r.stateNode.containerInfo,jt=!0,an(e,t,r),Ie=o,jt=a;break;case 0:case 11:case 14:case 15:if(!be&&(o=r.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){a=o=o.next;do{var c=a,p=c.destroy;c=c.tag,p!==void 0&&((c&2)!==0||(c&4)!==0)&&Ml(r,t,p),a=a.next}while(a!==o)}an(e,t,r);break;case 1:if(!be&&(or(r,t),o=r.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=r.memoizedProps,o.state=r.memoizedState,o.componentWillUnmount()}catch(x){je(r,t,x)}an(e,t,r);break;case 21:an(e,t,r);break;case 22:r.mode&1?(be=(o=be)||r.memoizedState!==null,an(e,t,r),be=o):an(e,t,r);break;default:an(e,t,r)}}function Bd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Hg),t.forEach(function(o){var a=ty.bind(null,e,o);r.has(o)||(r.add(o),o.then(a,a))})}}function Nt(e,t){var r=t.deletions;if(r!==null)for(var o=0;o<r.length;o++){var a=r[o];try{var c=e,p=t,x=p;e:for(;x!==null;){switch(x.tag){case 5:Ie=x.stateNode,jt=!1;break e;case 3:Ie=x.stateNode.containerInfo,jt=!0;break e;case 4:Ie=x.stateNode.containerInfo,jt=!0;break e}x=x.return}if(Ie===null)throw Error(s(160));Od(c,p,a),Ie=null,jt=!1;var S=a.alternate;S!==null&&(S.return=null),a.return=null}catch(N){je(a,t,N)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Ud(t,e),t=t.sibling}function Ud(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Nt(t,e),Vt(e),o&4){try{ei(3,e,e.return),ys(3,e)}catch(G){je(e,e.return,G)}try{ei(5,e,e.return)}catch(G){je(e,e.return,G)}}break;case 1:Nt(t,e),Vt(e),o&512&&r!==null&&or(r,r.return);break;case 5:if(Nt(t,e),Vt(e),o&512&&r!==null&&or(r,r.return),e.flags&32){var a=e.stateNode;try{Sr(a,"")}catch(G){je(e,e.return,G)}}if(o&4&&(a=e.stateNode,a!=null)){var c=e.memoizedProps,p=r!==null?r.memoizedProps:c,x=e.type,S=e.updateQueue;if(e.updateQueue=null,S!==null)try{x==="input"&&c.type==="radio"&&c.name!=null&&mu(a,c),co(x,p);var N=co(x,c);for(p=0;p<S.length;p+=2){var V=S[p],z=S[p+1];V==="style"?Tu(a,z):V==="dangerouslySetInnerHTML"?Su(a,z):V==="children"?Sr(a,z):$(a,V,z,N)}switch(x){case"input":so(a,c);break;case"textarea":vu(a,c);break;case"select":var L=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!c.multiple;var W=c.value;W!=null?On(a,!!c.multiple,W,!1):L!==!!c.multiple&&(c.defaultValue!=null?On(a,!!c.multiple,c.defaultValue,!0):On(a,!!c.multiple,c.multiple?[]:"",!1))}a[Wr]=c}catch(G){je(e,e.return,G)}}break;case 6:if(Nt(t,e),Vt(e),o&4){if(e.stateNode===null)throw Error(s(162));a=e.stateNode,c=e.memoizedProps;try{a.nodeValue=c}catch(G){je(e,e.return,G)}}break;case 3:if(Nt(t,e),Vt(e),o&4&&r!==null&&r.memoizedState.isDehydrated)try{Dr(t.containerInfo)}catch(G){je(e,e.return,G)}break;case 4:Nt(t,e),Vt(e);break;case 13:Nt(t,e),Vt(e),a=e.child,a.flags&8192&&(c=a.memoizedState!==null,a.stateNode.isHidden=c,!c||a.alternate!==null&&a.alternate.memoizedState!==null||(Fl=Re())),o&4&&Bd(e);break;case 22:if(V=r!==null&&r.memoizedState!==null,e.mode&1?(be=(N=be)||V,Nt(t,e),be=N):Nt(t,e),Vt(e),o&8192){if(N=e.memoizedState!==null,(e.stateNode.isHidden=N)&&!V&&(e.mode&1)!==0)for(H=e,V=e.child;V!==null;){for(z=H=V;H!==null;){switch(L=H,W=L.child,L.tag){case 0:case 11:case 14:case 15:ei(4,L,L.return);break;case 1:or(L,L.return);var K=L.stateNode;if(typeof K.componentWillUnmount=="function"){o=L,r=L.return;try{t=o,K.props=t.memoizedProps,K.state=t.memoizedState,K.componentWillUnmount()}catch(G){je(o,r,G)}}break;case 5:or(L,L.return);break;case 22:if(L.memoizedState!==null){bd(z);continue}}W!==null?(W.return=L,H=W):bd(z)}V=V.sibling}e:for(V=null,z=e;;){if(z.tag===5){if(V===null){V=z;try{a=z.stateNode,N?(c=a.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none"):(x=z.stateNode,S=z.memoizedProps.style,p=S!=null&&S.hasOwnProperty("display")?S.display:null,x.style.display=ku("display",p))}catch(G){je(e,e.return,G)}}}else if(z.tag===6){if(V===null)try{z.stateNode.nodeValue=N?"":z.memoizedProps}catch(G){je(e,e.return,G)}}else if((z.tag!==22&&z.tag!==23||z.memoizedState===null||z===e)&&z.child!==null){z.child.return=z,z=z.child;continue}if(z===e)break e;for(;z.sibling===null;){if(z.return===null||z.return===e)break e;V===z&&(V=null),z=z.return}V===z&&(V=null),z.sibling.return=z.return,z=z.sibling}}break;case 19:Nt(t,e),Vt(e),o&4&&Bd(e);break;case 21:break;default:Nt(t,e),Vt(e)}}function Vt(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(Fd(r)){var o=r;break e}r=r.return}throw Error(s(160))}switch(o.tag){case 5:var a=o.stateNode;o.flags&32&&(Sr(a,""),o.flags&=-33);var c=Id(e);_l(e,c,a);break;case 3:case 4:var p=o.stateNode.containerInfo,x=Id(e);Ll(e,x,p);break;default:throw Error(s(161))}}catch(S){je(e,e.return,S)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Gg(e,t,r){H=e,$d(e)}function $d(e,t,r){for(var o=(e.mode&1)!==0;H!==null;){var a=H,c=a.child;if(a.tag===22&&o){var p=a.memoizedState!==null||gs;if(!p){var x=a.alternate,S=x!==null&&x.memoizedState!==null||be;x=gs;var N=be;if(gs=p,(be=S)&&!N)for(H=a;H!==null;)p=H,S=p.child,p.tag===22&&p.memoizedState!==null?Hd(a):S!==null?(S.return=p,H=S):Hd(a);for(;c!==null;)H=c,$d(c),c=c.sibling;H=a,gs=x,be=N}Wd(e)}else(a.subtreeFlags&8772)!==0&&c!==null?(c.return=a,H=c):Wd(e)}}function Wd(e){for(;H!==null;){var t=H;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:be||ys(5,t);break;case 1:var o=t.stateNode;if(t.flags&4&&!be)if(r===null)o.componentDidMount();else{var a=t.elementType===t.type?r.memoizedProps:Et(t.type,r.memoizedProps);o.componentDidUpdate(a,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var c=t.updateQueue;c!==null&&bc(t,c,o);break;case 3:var p=t.updateQueue;if(p!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}bc(t,p,r)}break;case 5:var x=t.stateNode;if(r===null&&t.flags&4){r=x;var S=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":S.autoFocus&&r.focus();break;case"img":S.src&&(r.src=S.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var N=t.alternate;if(N!==null){var V=N.memoizedState;if(V!==null){var z=V.dehydrated;z!==null&&Dr(z)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(s(163))}be||t.flags&512&&Dl(t)}catch(L){je(t,t.return,L)}}if(t===e){H=null;break}if(r=t.sibling,r!==null){r.return=t.return,H=r;break}H=t.return}}function bd(e){for(;H!==null;){var t=H;if(t===e){H=null;break}var r=t.sibling;if(r!==null){r.return=t.return,H=r;break}H=t.return}}function Hd(e){for(;H!==null;){var t=H;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{ys(4,t)}catch(S){je(t,r,S)}break;case 1:var o=t.stateNode;if(typeof o.componentDidMount=="function"){var a=t.return;try{o.componentDidMount()}catch(S){je(t,a,S)}}var c=t.return;try{Dl(t)}catch(S){je(t,c,S)}break;case 5:var p=t.return;try{Dl(t)}catch(S){je(t,p,S)}}}catch(S){je(t,t.return,S)}if(t===e){H=null;break}var x=t.sibling;if(x!==null){x.return=t.return,H=x;break}H=t.return}}var Qg=Math.ceil,vs=Q.ReactCurrentDispatcher,Vl=Q.ReactCurrentOwner,yt=Q.ReactCurrentBatchConfig,ae=0,ze=null,De=null,Oe=0,ct=0,lr=nn(0),_e=0,ti=null,jn=0,xs=0,zl=0,ni=null,nt=null,Fl=0,ar=1/0,Ht=null,ws=!1,Il=null,un=null,Ss=!1,cn=null,ks=0,ri=0,Ol=null,Ts=-1,Ps=0;function Xe(){return(ae&6)!==0?Re():Ts!==-1?Ts:Ts=Re()}function dn(e){return(e.mode&1)===0?1:(ae&2)!==0&&Oe!==0?Oe&-Oe:Mg.transition!==null?(Ps===0&&(Ps=Iu()),Ps):(e=he,e!==0||(e=window.event,e=e===void 0?16:Gu(e.type)),e)}function Rt(e,t,r,o){if(50<ri)throw ri=0,Ol=null,Error(s(185));jr(e,r,o),((ae&2)===0||e!==ze)&&(e===ze&&((ae&2)===0&&(xs|=r),_e===4&&fn(e,Oe)),rt(e,o),r===1&&ae===0&&(t.mode&1)===0&&(ar=Re()+500,qi&&sn()))}function rt(e,t){var r=e.callbackNode;Mm(e,t);var o=Li(e,e===ze?Oe:0);if(o===0)r!==null&&Vu(r),e.callbackNode=null,e.callbackPriority=0;else if(t=o&-o,e.callbackPriority!==t){if(r!=null&&Vu(r),t===1)e.tag===0?Ag(Gd.bind(null,e)):Dc(Gd.bind(null,e)),Eg(function(){(ae&6)===0&&sn()}),r=null;else{switch(Ou(o)){case 1:r=vo;break;case 4:r=zu;break;case 16:r=Ri;break;case 536870912:r=Fu;break;default:r=Ri}r=tf(r,Kd.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Kd(e,t){if(Ts=-1,Ps=0,(ae&6)!==0)throw Error(s(327));var r=e.callbackNode;if(ur()&&e.callbackNode!==r)return null;var o=Li(e,e===ze?Oe:0);if(o===0)return null;if((o&30)!==0||(o&e.expiredLanes)!==0||t)t=Cs(e,o);else{t=o;var a=ae;ae|=2;var c=Yd();(ze!==e||Oe!==t)&&(Ht=null,ar=Re()+500,Rn(e,t));do try{Zg();break}catch(x){Qd(e,x)}while(!0);rl(),vs.current=c,ae=a,De!==null?t=0:(ze=null,Oe=0,t=_e)}if(t!==0){if(t===2&&(a=xo(e),a!==0&&(o=a,t=Bl(e,a))),t===1)throw r=ti,Rn(e,0),fn(e,o),rt(e,Re()),r;if(t===6)fn(e,o);else{if(a=e.current.alternate,(o&30)===0&&!Yg(a)&&(t=Cs(e,o),t===2&&(c=xo(e),c!==0&&(o=c,t=Bl(e,c))),t===1))throw r=ti,Rn(e,0),fn(e,o),rt(e,Re()),r;switch(e.finishedWork=a,e.finishedLanes=o,t){case 0:case 1:throw Error(s(345));case 2:An(e,nt,Ht);break;case 3:if(fn(e,o),(o&130023424)===o&&(t=Fl+500-Re(),10<t)){if(Li(e,0)!==0)break;if(a=e.suspendedLanes,(a&o)!==o){Xe(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Ko(An.bind(null,e,nt,Ht),t);break}An(e,nt,Ht);break;case 4:if(fn(e,o),(o&4194240)===o)break;for(t=e.eventTimes,a=-1;0<o;){var p=31-Tt(o);c=1<<p,p=t[p],p>a&&(a=p),o&=~c}if(o=a,o=Re()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Qg(o/1960))-o,10<o){e.timeoutHandle=Ko(An.bind(null,e,nt,Ht),o);break}An(e,nt,Ht);break;case 5:An(e,nt,Ht);break;default:throw Error(s(329))}}}return rt(e,Re()),e.callbackNode===r?Kd.bind(null,e):null}function Bl(e,t){var r=ni;return e.current.memoizedState.isDehydrated&&(Rn(e,t).flags|=256),e=Cs(e,t),e!==2&&(t=nt,nt=r,t!==null&&Ul(t)),e}function Ul(e){nt===null?nt=e:nt.push.apply(nt,e)}function Yg(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var o=0;o<r.length;o++){var a=r[o],c=a.getSnapshot;a=a.value;try{if(!Pt(c(),a))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function fn(e,t){for(t&=~zl,t&=~xs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Tt(t),o=1<<r;e[r]=-1,t&=~o}}function Gd(e){if((ae&6)!==0)throw Error(s(327));ur();var t=Li(e,0);if((t&1)===0)return rt(e,Re()),null;var r=Cs(e,t);if(e.tag!==0&&r===2){var o=xo(e);o!==0&&(t=o,r=Bl(e,o))}if(r===1)throw r=ti,Rn(e,0),fn(e,t),rt(e,Re()),r;if(r===6)throw Error(s(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,An(e,nt,Ht),rt(e,Re()),null}function $l(e,t){var r=ae;ae|=1;try{return e(t)}finally{ae=r,ae===0&&(ar=Re()+500,qi&&sn())}}function Nn(e){cn!==null&&cn.tag===0&&(ae&6)===0&&ur();var t=ae;ae|=1;var r=yt.transition,o=he;try{if(yt.transition=null,he=1,e)return e()}finally{he=o,yt.transition=r,ae=t,(ae&6)===0&&sn()}}function Wl(){ct=lr.current,ve(lr)}function Rn(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,Cg(r)),De!==null)for(r=De.return;r!==null;){var o=r;switch(qo(o),o.tag){case 1:o=o.type.childContextTypes,o!=null&&Xi();break;case 3:ir(),ve(Je),ve(Ue),dl();break;case 5:ul(o);break;case 4:ir();break;case 13:ve(Te);break;case 19:ve(Te);break;case 10:il(o.type._context);break;case 22:case 23:Wl()}r=r.return}if(ze=e,De=e=hn(e.current,null),Oe=ct=t,_e=0,ti=null,zl=xs=jn=0,nt=ni=null,Pn!==null){for(t=0;t<Pn.length;t++)if(r=Pn[t],o=r.interleaved,o!==null){r.interleaved=null;var a=o.next,c=r.pending;if(c!==null){var p=c.next;c.next=a,o.next=p}r.pending=o}Pn=null}return e}function Qd(e,t){do{var r=De;try{if(rl(),as.current=fs,us){for(var o=Pe.memoizedState;o!==null;){var a=o.queue;a!==null&&(a.pending=null),o=o.next}us=!1}if(En=0,Ve=Le=Pe=null,Yr=!1,Xr=0,Vl.current=null,r===null||r.return===null){_e=1,ti=t,De=null;break}e:{var c=e,p=r.return,x=r,S=t;if(t=Oe,x.flags|=32768,S!==null&&typeof S=="object"&&typeof S.then=="function"){var N=S,V=x,z=V.tag;if((V.mode&1)===0&&(z===0||z===11||z===15)){var L=V.alternate;L?(V.updateQueue=L.updateQueue,V.memoizedState=L.memoizedState,V.lanes=L.lanes):(V.updateQueue=null,V.memoizedState=null)}var W=xd(p);if(W!==null){W.flags&=-257,wd(W,p,x,c,t),W.mode&1&&vd(c,N,t),t=W,S=N;var K=t.updateQueue;if(K===null){var G=new Set;G.add(S),t.updateQueue=G}else K.add(S);break e}else{if((t&1)===0){vd(c,N,t),bl();break e}S=Error(s(426))}}else if(Se&&x.mode&1){var Ae=xd(p);if(Ae!==null){(Ae.flags&65536)===0&&(Ae.flags|=256),wd(Ae,p,x,c,t),tl(sr(S,x));break e}}c=S=sr(S,x),_e!==4&&(_e=2),ni===null?ni=[c]:ni.push(c),c=p;do{switch(c.tag){case 3:c.flags|=65536,t&=-t,c.lanes|=t;var C=gd(c,S,t);Wc(c,C);break e;case 1:x=S;var T=c.type,E=c.stateNode;if((c.flags&128)===0&&(typeof T.getDerivedStateFromError=="function"||E!==null&&typeof E.componentDidCatch=="function"&&(un===null||!un.has(E)))){c.flags|=65536,t&=-t,c.lanes|=t;var I=yd(c,x,t);Wc(c,I);break e}}c=c.return}while(c!==null)}Zd(r)}catch(Y){t=Y,De===r&&r!==null&&(De=r=r.return);continue}break}while(!0)}function Yd(){var e=vs.current;return vs.current=fs,e===null?fs:e}function bl(){(_e===0||_e===3||_e===2)&&(_e=4),ze===null||(jn&268435455)===0&&(xs&268435455)===0||fn(ze,Oe)}function Cs(e,t){var r=ae;ae|=2;var o=Yd();(ze!==e||Oe!==t)&&(Ht=null,Rn(e,t));do try{Xg();break}catch(a){Qd(e,a)}while(!0);if(rl(),ae=r,vs.current=o,De!==null)throw Error(s(261));return ze=null,Oe=0,_e}function Xg(){for(;De!==null;)Xd(De)}function Zg(){for(;De!==null&&!km();)Xd(De)}function Xd(e){var t=ef(e.alternate,e,ct);e.memoizedProps=e.pendingProps,t===null?Zd(e):De=t,Vl.current=null}function Zd(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=Wg(r,t,ct),r!==null){De=r;return}}else{if(r=bg(r,t),r!==null){r.flags&=32767,De=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{_e=6,De=null;return}}if(t=t.sibling,t!==null){De=t;return}De=t=e}while(t!==null);_e===0&&(_e=5)}function An(e,t,r){var o=he,a=yt.transition;try{yt.transition=null,he=1,qg(e,t,r,o)}finally{yt.transition=a,he=o}return null}function qg(e,t,r,o){do ur();while(cn!==null);if((ae&6)!==0)throw Error(s(327));r=e.finishedWork;var a=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(s(177));e.callbackNode=null,e.callbackPriority=0;var c=r.lanes|r.childLanes;if(Dm(e,c),e===ze&&(De=ze=null,Oe=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||Ss||(Ss=!0,tf(Ri,function(){return ur(),null})),c=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||c){c=yt.transition,yt.transition=null;var p=he;he=1;var x=ae;ae|=4,Vl.current=null,Kg(e,r),Ud(r,e),vg(bo),zi=!!Wo,bo=Wo=null,e.current=r,Gg(r),Tm(),ae=x,he=p,yt.transition=c}else e.current=r;if(Ss&&(Ss=!1,cn=e,ks=a),c=e.pendingLanes,c===0&&(un=null),Em(r.stateNode),rt(e,Re()),t!==null)for(o=e.onRecoverableError,r=0;r<t.length;r++)a=t[r],o(a.value,{componentStack:a.stack,digest:a.digest});if(ws)throw ws=!1,e=Il,Il=null,e;return(ks&1)!==0&&e.tag!==0&&ur(),c=e.pendingLanes,(c&1)!==0?e===Ol?ri++:(ri=0,Ol=e):ri=0,sn(),null}function ur(){if(cn!==null){var e=Ou(ks),t=yt.transition,r=he;try{if(yt.transition=null,he=16>e?16:e,cn===null)var o=!1;else{if(e=cn,cn=null,ks=0,(ae&6)!==0)throw Error(s(331));var a=ae;for(ae|=4,H=e.current;H!==null;){var c=H,p=c.child;if((H.flags&16)!==0){var x=c.deletions;if(x!==null){for(var S=0;S<x.length;S++){var N=x[S];for(H=N;H!==null;){var V=H;switch(V.tag){case 0:case 11:case 15:ei(8,V,c)}var z=V.child;if(z!==null)z.return=V,H=z;else for(;H!==null;){V=H;var L=V.sibling,W=V.return;if(zd(V),V===N){H=null;break}if(L!==null){L.return=W,H=L;break}H=W}}}var K=c.alternate;if(K!==null){var G=K.child;if(G!==null){K.child=null;do{var Ae=G.sibling;G.sibling=null,G=Ae}while(G!==null)}}H=c}}if((c.subtreeFlags&2064)!==0&&p!==null)p.return=c,H=p;else e:for(;H!==null;){if(c=H,(c.flags&2048)!==0)switch(c.tag){case 0:case 11:case 15:ei(9,c,c.return)}var C=c.sibling;if(C!==null){C.return=c.return,H=C;break e}H=c.return}}var T=e.current;for(H=T;H!==null;){p=H;var E=p.child;if((p.subtreeFlags&2064)!==0&&E!==null)E.return=p,H=E;else e:for(p=T;H!==null;){if(x=H,(x.flags&2048)!==0)try{switch(x.tag){case 0:case 11:case 15:ys(9,x)}}catch(Y){je(x,x.return,Y)}if(x===p){H=null;break e}var I=x.sibling;if(I!==null){I.return=x.return,H=I;break e}H=x.return}}if(ae=a,sn(),Mt&&typeof Mt.onPostCommitFiberRoot=="function")try{Mt.onPostCommitFiberRoot(Ai,e)}catch{}o=!0}return o}finally{he=r,yt.transition=t}}return!1}function qd(e,t,r){t=sr(r,t),t=gd(e,t,1),e=ln(e,t,1),t=Xe(),e!==null&&(jr(e,1,t),rt(e,t))}function je(e,t,r){if(e.tag===3)qd(e,e,r);else for(;t!==null;){if(t.tag===3){qd(t,e,r);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(un===null||!un.has(o))){e=sr(r,e),e=yd(t,e,1),t=ln(t,e,1),e=Xe(),t!==null&&(jr(t,1,e),rt(t,e));break}}t=t.return}}function Jg(e,t,r){var o=e.pingCache;o!==null&&o.delete(t),t=Xe(),e.pingedLanes|=e.suspendedLanes&r,ze===e&&(Oe&r)===r&&(_e===4||_e===3&&(Oe&130023424)===Oe&&500>Re()-Fl?Rn(e,0):zl|=r),rt(e,t)}function Jd(e,t){t===0&&((e.mode&1)===0?t=1:(t=Di,Di<<=1,(Di&130023424)===0&&(Di=4194304)));var r=Xe();e=$t(e,t),e!==null&&(jr(e,t,r),rt(e,r))}function ey(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Jd(e,r)}function ty(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(s(314))}o!==null&&o.delete(t),Jd(e,r)}var ef;ef=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Je.current)tt=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return tt=!1,$g(e,t,r);tt=(e.flags&131072)!==0}else tt=!1,Se&&(t.flags&1048576)!==0&&Lc(t,es,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;ms(e,t),e=t.pendingProps;var a=Zn(t,Ue.current);rr(t,r),a=pl(null,t,o,e,a,r);var c=ml();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,et(o)?(c=!0,Zi(t)):c=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,ll(t),a.updater=hs,t.stateNode=a,a._reactInternals=t,Sl(t,o,e,r),t=Cl(null,t,o,!0,c,r)):(t.tag=0,Se&&c&&Zo(t),Ye(null,t,a,r),t=t.child),t;case 16:o=t.elementType;e:{switch(ms(e,t),e=t.pendingProps,a=o._init,o=a(o._payload),t.type=o,a=t.tag=ry(o),e=Et(o,e),a){case 0:t=Pl(null,t,o,e,r);break e;case 1:t=Ed(null,t,o,e,r);break e;case 11:t=Sd(null,t,o,e,r);break e;case 14:t=kd(null,t,o,Et(o.type,e),r);break e}throw Error(s(306,o,""))}return t;case 0:return o=t.type,a=t.pendingProps,a=t.elementType===o?a:Et(o,a),Pl(e,t,o,a,r);case 1:return o=t.type,a=t.pendingProps,a=t.elementType===o?a:Et(o,a),Ed(e,t,o,a,r);case 3:e:{if(jd(t),e===null)throw Error(s(387));o=t.pendingProps,c=t.memoizedState,a=c.element,$c(e,t),os(t,o,null,r);var p=t.memoizedState;if(o=p.element,c.isDehydrated)if(c={element:o,isDehydrated:!1,cache:p.cache,pendingSuspenseBoundaries:p.pendingSuspenseBoundaries,transitions:p.transitions},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){a=sr(Error(s(423)),t),t=Nd(e,t,o,r,a);break e}else if(o!==a){a=sr(Error(s(424)),t),t=Nd(e,t,o,r,a);break e}else for(ut=tn(t.stateNode.containerInfo.firstChild),at=t,Se=!0,Ct=null,r=Bc(t,null,o,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(er(),o===a){t=bt(e,t,r);break e}Ye(e,t,o,r)}t=t.child}return t;case 5:return Hc(t),e===null&&el(t),o=t.type,a=t.pendingProps,c=e!==null?e.memoizedProps:null,p=a.children,Ho(o,a)?p=null:c!==null&&Ho(o,c)&&(t.flags|=32),Cd(e,t),Ye(e,t,p,r),t.child;case 6:return e===null&&el(t),null;case 13:return Rd(e,t,r);case 4:return al(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=tr(t,null,o,r):Ye(e,t,o,r),t.child;case 11:return o=t.type,a=t.pendingProps,a=t.elementType===o?a:Et(o,a),Sd(e,t,o,a,r);case 7:return Ye(e,t,t.pendingProps,r),t.child;case 8:return Ye(e,t,t.pendingProps.children,r),t.child;case 12:return Ye(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(o=t.type._context,a=t.pendingProps,c=t.memoizedProps,p=a.value,me(rs,o._currentValue),o._currentValue=p,c!==null)if(Pt(c.value,p)){if(c.children===a.children&&!Je.current){t=bt(e,t,r);break e}}else for(c=t.child,c!==null&&(c.return=t);c!==null;){var x=c.dependencies;if(x!==null){p=c.child;for(var S=x.firstContext;S!==null;){if(S.context===o){if(c.tag===1){S=Wt(-1,r&-r),S.tag=2;var N=c.updateQueue;if(N!==null){N=N.shared;var V=N.pending;V===null?S.next=S:(S.next=V.next,V.next=S),N.pending=S}}c.lanes|=r,S=c.alternate,S!==null&&(S.lanes|=r),sl(c.return,r,t),x.lanes|=r;break}S=S.next}}else if(c.tag===10)p=c.type===t.type?null:c.child;else if(c.tag===18){if(p=c.return,p===null)throw Error(s(341));p.lanes|=r,x=p.alternate,x!==null&&(x.lanes|=r),sl(p,r,t),p=c.sibling}else p=c.child;if(p!==null)p.return=c;else for(p=c;p!==null;){if(p===t){p=null;break}if(c=p.sibling,c!==null){c.return=p.return,p=c;break}p=p.return}c=p}Ye(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,o=t.pendingProps.children,rr(t,r),a=mt(a),o=o(a),t.flags|=1,Ye(e,t,o,r),t.child;case 14:return o=t.type,a=Et(o,t.pendingProps),a=Et(o.type,a),kd(e,t,o,a,r);case 15:return Td(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,a=t.pendingProps,a=t.elementType===o?a:Et(o,a),ms(e,t),t.tag=1,et(o)?(e=!0,Zi(t)):e=!1,rr(t,r),pd(t,o,a),Sl(t,o,a,r),Cl(null,t,o,!0,e,r);case 19:return Md(e,t,r);case 22:return Pd(e,t,r)}throw Error(s(156,t.tag))};function tf(e,t){return _u(e,t)}function ny(e,t,r,o){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function vt(e,t,r,o){return new ny(e,t,r,o)}function Hl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ry(e){if(typeof e=="function")return Hl(e)?1:0;if(e!=null){if(e=e.$$typeof,e===st)return 11;if(e===kt)return 14}return 2}function hn(e,t){var r=e.alternate;return r===null?(r=vt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Es(e,t,r,o,a,c){var p=2;if(o=e,typeof e=="function")Hl(e)&&(p=1);else if(typeof e=="string")p=5;else e:switch(e){case re:return Mn(r.children,a,c,t);case Z:p=8,a|=8;break;case ge:return e=vt(12,r,t,a|2),e.elementType=ge,e.lanes=c,e;case Ge:return e=vt(13,r,t,a),e.elementType=Ge,e.lanes=c,e;case qe:return e=vt(19,r,t,a),e.elementType=qe,e.lanes=c,e;case se:return js(r,a,c,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ee:p=10;break e;case Ze:p=9;break e;case st:p=11;break e;case kt:p=14;break e;case Qe:p=16,o=null;break e}throw Error(s(130,e==null?e:typeof e,""))}return t=vt(p,r,t,a),t.elementType=e,t.type=o,t.lanes=c,t}function Mn(e,t,r,o){return e=vt(7,e,o,t),e.lanes=r,e}function js(e,t,r,o){return e=vt(22,e,o,t),e.elementType=se,e.lanes=r,e.stateNode={isHidden:!1},e}function Kl(e,t,r){return e=vt(6,e,null,t),e.lanes=r,e}function Gl(e,t,r){return t=vt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function iy(e,t,r,o,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=wo(0),this.expirationTimes=wo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wo(0),this.identifierPrefix=o,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Ql(e,t,r,o,a,c,p,x,S){return e=new iy(e,t,r,x,S),t===1?(t=1,c===!0&&(t|=8)):t=0,c=vt(3,null,null,t),e.current=c,c.stateNode=e,c.memoizedState={element:o,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},ll(c),e}function sy(e,t,r){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:X,key:o==null?null:""+o,children:e,containerInfo:t,implementation:r}}function nf(e){if(!e)return rn;e=e._reactInternals;e:{if(xn(e)!==e||e.tag!==1)throw Error(s(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(et(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(s(171))}if(e.tag===1){var r=e.type;if(et(r))return Ac(e,r,t)}return t}function rf(e,t,r,o,a,c,p,x,S){return e=Ql(r,o,!0,e,a,c,p,x,S),e.context=nf(null),r=e.current,o=Xe(),a=dn(r),c=Wt(o,a),c.callback=t??null,ln(r,c,a),e.current.lanes=a,jr(e,a,o),rt(e,o),e}function Ns(e,t,r,o){var a=t.current,c=Xe(),p=dn(a);return r=nf(r),t.context===null?t.context=r:t.pendingContext=r,t=Wt(c,p),t.payload={element:e},o=o===void 0?null:o,o!==null&&(t.callback=o),e=ln(a,t,p),e!==null&&(Rt(e,a,p,c),ss(e,a,p)),p}function Rs(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function sf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Yl(e,t){sf(e,t),(e=e.alternate)&&sf(e,t)}function oy(){return null}var of=typeof reportError=="function"?reportError:function(e){console.error(e)};function Xl(e){this._internalRoot=e}As.prototype.render=Xl.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));Ns(e,t,null,null)},As.prototype.unmount=Xl.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Nn(function(){Ns(null,e,null,null)}),t[It]=null}};function As(e){this._internalRoot=e}As.prototype.unstable_scheduleHydration=function(e){if(e){var t=$u();e={blockedOn:null,target:e,priority:t};for(var r=0;r<qt.length&&t!==0&&t<qt[r].priority;r++);qt.splice(r,0,e),r===0&&Hu(e)}};function Zl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ms(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function lf(){}function ly(e,t,r,o,a){if(a){if(typeof o=="function"){var c=o;o=function(){var N=Rs(p);c.call(N)}}var p=rf(t,o,e,0,null,!1,!1,"",lf);return e._reactRootContainer=p,e[It]=p.current,Ur(e.nodeType===8?e.parentNode:e),Nn(),p}for(;a=e.lastChild;)e.removeChild(a);if(typeof o=="function"){var x=o;o=function(){var N=Rs(S);x.call(N)}}var S=Ql(e,0,!1,null,null,!1,!1,"",lf);return e._reactRootContainer=S,e[It]=S.current,Ur(e.nodeType===8?e.parentNode:e),Nn(function(){Ns(t,S,r,o)}),S}function Ds(e,t,r,o,a){var c=r._reactRootContainer;if(c){var p=c;if(typeof a=="function"){var x=a;a=function(){var S=Rs(p);x.call(S)}}Ns(t,p,e,a)}else p=ly(r,t,e,a,o);return Rs(p)}Bu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Er(t.pendingLanes);r!==0&&(So(t,r|1),rt(t,Re()),(ae&6)===0&&(ar=Re()+500,sn()))}break;case 13:Nn(function(){var o=$t(e,1);if(o!==null){var a=Xe();Rt(o,e,1,a)}}),Yl(e,1)}},ko=function(e){if(e.tag===13){var t=$t(e,134217728);if(t!==null){var r=Xe();Rt(t,e,134217728,r)}Yl(e,134217728)}},Uu=function(e){if(e.tag===13){var t=dn(e),r=$t(e,t);if(r!==null){var o=Xe();Rt(r,e,t,o)}Yl(e,t)}},$u=function(){return he},Wu=function(e,t){var r=he;try{return he=e,t()}finally{he=r}},po=function(e,t,r){switch(t){case"input":if(so(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var a=Yi(o);if(!a)throw Error(s(90));hu(o),so(o,a)}}}break;case"textarea":vu(e,r);break;case"select":t=r.value,t!=null&&On(e,!!r.multiple,t,!1)}},ju=$l,Nu=Nn;var ay={usingClientEntryPoint:!1,Events:[br,Yn,Yi,Cu,Eu,$l]},ii={findFiberByHostInstance:wn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},uy={bundleType:ii.bundleType,version:ii.version,rendererPackageName:ii.rendererPackageName,rendererConfig:ii.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Q.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Du(e),e===null?null:e.stateNode},findFiberByHostInstance:ii.findFiberByHostInstance||oy,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ls=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ls.isDisabled&&Ls.supportsFiber)try{Ai=Ls.inject(uy),Mt=Ls}catch{}}return it.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ay,it.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Zl(t))throw Error(s(200));return sy(e,t,null,r)},it.createRoot=function(e,t){if(!Zl(e))throw Error(s(299));var r=!1,o="",a=of;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=Ql(e,1,!1,null,null,r,!1,o,a),e[It]=t.current,Ur(e.nodeType===8?e.parentNode:e),new Xl(t)},it.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=Du(t),e=e===null?null:e.stateNode,e},it.flushSync=function(e){return Nn(e)},it.hydrate=function(e,t,r){if(!Ms(t))throw Error(s(200));return Ds(null,e,t,!0,r)},it.hydrateRoot=function(e,t,r){if(!Zl(e))throw Error(s(405));var o=r!=null&&r.hydratedSources||null,a=!1,c="",p=of;if(r!=null&&(r.unstable_strictMode===!0&&(a=!0),r.identifierPrefix!==void 0&&(c=r.identifierPrefix),r.onRecoverableError!==void 0&&(p=r.onRecoverableError)),t=rf(t,null,e,1,r??null,a,!1,c,p),e[It]=t.current,Ur(e),o)for(e=0;e<o.length;e++)r=o[e],a=r._getVersion,a=a(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,a]:t.mutableSourceEagerHydrationData.push(r,a);return new As(t)},it.render=function(e,t,r){if(!Ms(t))throw Error(s(200));return Ds(null,e,t,!1,r)},it.unmountComponentAtNode=function(e){if(!Ms(e))throw Error(s(40));return e._reactRootContainer?(Nn(function(){Ds(null,null,e,!1,function(){e._reactRootContainer=null,e[It]=null})}),!0):!1},it.unstable_batchedUpdates=$l,it.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!Ms(r))throw Error(s(200));if(e==null||e._reactInternals===void 0)throw Error(s(38));return Ds(e,t,r,!1,o)},it.version="18.3.1-next-f1338f8080-20240426",it}var mf;function yy(){if(mf)return ea.exports;mf=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(i){console.error(i)}}return n(),ea.exports=gy(),ea.exports}var gf;function vy(){if(gf)return _s;gf=1;var n=yy();return _s.createRoot=n.createRoot,_s.hydrateRoot=n.hydrateRoot,_s}var xy=vy();const La=F.createContext({});function Zs(n){const i=F.useRef(null);return i.current===null&&(i.current=n()),i.current}const qs=F.createContext(null),pi=F.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});class wy extends F.Component{getSnapshotBeforeUpdate(i){const s=this.props.childRef.current;if(s&&i.isPresent&&!this.props.isPresent){const l=this.props.sizeRef.current;l.height=s.offsetHeight||0,l.width=s.offsetWidth||0,l.top=s.offsetTop,l.left=s.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Sy({children:n,isPresent:i}){const s=F.useId(),l=F.useRef(null),u=F.useRef({width:0,height:0,top:0,left:0}),{nonce:f}=F.useContext(pi);return F.useInsertionEffect(()=>{const{width:d,height:h,top:m,left:g}=u.current;if(i||!l.current||!d||!h)return;l.current.dataset.motionPopId=s;const y=document.createElement("style");return f&&(y.nonce=f),document.head.appendChild(y),y.sheet&&y.sheet.insertRule(`
41
+ [data-motion-pop-id="${s}"] {
42
+ position: absolute !important;
43
+ width: ${d}px !important;
44
+ height: ${h}px !important;
45
+ top: ${m}px !important;
46
+ left: ${g}px !important;
47
+ }
48
+ `),()=>{document.head.removeChild(y)}},[i]),v.jsx(wy,{isPresent:i,childRef:l,sizeRef:u,children:F.cloneElement(n,{ref:l})})}const ky=({children:n,initial:i,isPresent:s,onExitComplete:l,custom:u,presenceAffectsLayout:f,mode:d})=>{const h=Zs(Ty),m=F.useId(),g=F.useCallback(w=>{h.set(w,!0);for(const k of h.values())if(!k)return;l&&l()},[h,l]),y=F.useMemo(()=>({id:m,initial:i,isPresent:s,custom:u,onExitComplete:g,register:w=>(h.set(w,!1),()=>h.delete(w))}),f?[Math.random(),g]:[s,g]);return F.useMemo(()=>{h.forEach((w,k)=>h.set(k,!1))},[s]),F.useEffect(()=>{!s&&!h.size&&l&&l()},[s]),d==="popLayout"&&(n=v.jsx(Sy,{isPresent:s,children:n})),v.jsx(qs.Provider,{value:y,children:n})};function Ty(){return new Map}function zh(n=!0){const i=F.useContext(qs);if(i===null)return[!0,null];const{isPresent:s,onExitComplete:l,register:u}=i,f=F.useId();F.useEffect(()=>{n&&u(f)},[n]);const d=F.useCallback(()=>n&&l&&l(f),[f,l,n]);return!s&&l?[!1,d]:[!0]}const Vs=n=>n.key||"";function yf(n){const i=[];return F.Children.forEach(n,s=>{F.isValidElement(s)&&i.push(s)}),i}const _a=typeof window<"u",Fh=_a?F.useLayoutEffect:F.useEffect,Fn=({children:n,custom:i,initial:s=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:f="sync",propagate:d=!1})=>{const[h,m]=zh(d),g=F.useMemo(()=>yf(n),[n]),y=d&&!h?[]:g.map(Vs),w=F.useRef(!0),k=F.useRef(g),R=Zs(()=>new Map),[A,j]=F.useState(g),[M,D]=F.useState(g);Fh(()=>{w.current=!1,k.current=g;for(let Q=0;Q<M.length;Q++){const U=Vs(M[Q]);y.includes(U)?R.delete(U):R.get(U)!==!0&&R.set(U,!1)}},[M,y.length,y.join("-")]);const O=[];if(g!==A){let Q=[...g];for(let U=0;U<M.length;U++){const X=M[U],re=Vs(X);y.includes(re)||(Q.splice(U,0,X),O.push(X))}f==="wait"&&O.length&&(Q=O),D(yf(Q)),j(g);return}const{forceRender:$}=F.useContext(La);return v.jsx(v.Fragment,{children:M.map(Q=>{const U=Vs(Q),X=d&&!h?!1:g===M||y.includes(U),re=()=>{if(R.has(U))R.set(U,!0);else return;let Z=!0;R.forEach(ge=>{ge||(Z=!1)}),Z&&($==null||$(),D(k.current),d&&(m==null||m()),l&&l())};return v.jsx(ky,{isPresent:X,initial:!w.current||s?void 0:!1,custom:X?void 0:i,presenceAffectsLayout:u,mode:f,onExitComplete:X?void 0:re,children:Q},U)})})},dt=n=>n;let Ih=dt;const Py={useManualTiming:!1};function Cy(n){let i=new Set,s=new Set,l=!1,u=!1;const f=new WeakSet;let d={delta:0,timestamp:0,isProcessing:!1};function h(g){f.has(g)&&(m.schedule(g),n()),g(d)}const m={schedule:(g,y=!1,w=!1)=>{const R=w&&l?i:s;return y&&f.add(g),R.has(g)||R.add(g),g},cancel:g=>{s.delete(g),f.delete(g)},process:g=>{if(d=g,l){u=!0;return}l=!0,[i,s]=[s,i],i.forEach(h),i.clear(),l=!1,u&&(u=!1,m.process(g))}};return m}const zs=["read","resolveKeyframes","update","preRender","render","postRender"],Ey=40;function Oh(n,i){let s=!1,l=!0;const u={delta:0,timestamp:0,isProcessing:!1},f=()=>s=!0,d=zs.reduce((D,O)=>(D[O]=Cy(f),D),{}),{read:h,resolveKeyframes:m,update:g,preRender:y,render:w,postRender:k}=d,R=()=>{const D=performance.now();s=!1,u.delta=l?1e3/60:Math.max(Math.min(D-u.timestamp,Ey),1),u.timestamp=D,u.isProcessing=!0,h.process(u),m.process(u),g.process(u),y.process(u),w.process(u),k.process(u),u.isProcessing=!1,s&&i&&(l=!1,n(R))},A=()=>{s=!0,l=!0,u.isProcessing||n(R)};return{schedule:zs.reduce((D,O)=>{const $=d[O];return D[O]=(Q,U=!1,X=!1)=>(s||A(),$.schedule(Q,U,X)),D},{}),cancel:D=>{for(let O=0;O<zs.length;O++)d[zs[O]].cancel(D)},state:u,steps:d}}const{schedule:xe,cancel:gn,state:Be,steps:ra}=Oh(typeof requestAnimationFrame<"u"?requestAnimationFrame:dt,!0),Bh=F.createContext({strict:!1}),vf={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"]},mr={};for(const n in vf)mr[n]={isEnabled:i=>vf[n].some(s=>!!i[s])};function jy(n){for(const i in n)mr[i]={...mr[i],...n[i]}}const Ny=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","ignoreStrict","viewport"]);function $s(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||Ny.has(n)}let Uh=n=>!$s(n);function $h(n){n&&(Uh=i=>i.startsWith("on")?!$s(i):n(i))}try{$h(require("@emotion/is-prop-valid").default)}catch{}function Ry(n,i,s){const l={};for(const u in n)u==="values"&&typeof n.values=="object"||(Uh(u)||s===!0&&$s(u)||!i&&!$s(u)||n.draggable&&u.startsWith("onDrag"))&&(l[u]=n[u]);return l}function Ay({children:n,isValidProp:i,...s}){i&&$h(i),s={...F.useContext(pi),...s},s.isStatic=Zs(()=>s.isStatic);const l=F.useMemo(()=>s,[JSON.stringify(s.transition),s.transformPagePoint,s.reducedMotion]);return v.jsx(pi.Provider,{value:l,children:n})}function My(n){if(typeof Proxy>"u")return n;const i=new Map,s=(...l)=>n(...l);return new Proxy(s,{get:(l,u)=>u==="create"?n:(i.has(u)||i.set(u,n(u)),i.get(u))})}const Js=F.createContext({});function mi(n){return typeof n=="string"||Array.isArray(n)}function eo(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}const Va=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],za=["initial",...Va];function to(n){return eo(n.animate)||za.some(i=>mi(n[i]))}function Wh(n){return!!(to(n)||n.variants)}function Dy(n,i){if(to(n)){const{initial:s,animate:l}=n;return{initial:s===!1||mi(s)?s:void 0,animate:mi(l)?l:void 0}}return n.inherit!==!1?i:{}}function Ly(n){const{initial:i,animate:s}=Dy(n,F.useContext(Js));return F.useMemo(()=>({initial:i,animate:s}),[xf(i),xf(s)])}function xf(n){return Array.isArray(n)?n.join(" "):n}const _y=Symbol.for("motionComponentSymbol");function cr(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function Vy(n,i,s){return F.useCallback(l=>{l&&n.onMount&&n.onMount(l),i&&(l?i.mount(l):i.unmount()),s&&(typeof s=="function"?s(l):cr(s)&&(s.current=l))},[i])}const Fa=n=>n.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),zy="framerAppearId",bh="data-"+Fa(zy),{schedule:Ia}=Oh(queueMicrotask,!1),Hh=F.createContext({});function Fy(n,i,s,l,u){var f,d;const{visualElement:h}=F.useContext(Js),m=F.useContext(Bh),g=F.useContext(qs),y=F.useContext(pi).reducedMotion,w=F.useRef(null);l=l||m.renderer,!w.current&&l&&(w.current=l(n,{visualState:i,parent:h,props:s,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:y}));const k=w.current,R=F.useContext(Hh);k&&!k.projection&&u&&(k.type==="html"||k.type==="svg")&&Iy(w.current,s,u,R);const A=F.useRef(!1);F.useInsertionEffect(()=>{k&&A.current&&k.update(s,g)});const j=s[bh],M=F.useRef(!!j&&!(!((f=window.MotionHandoffIsComplete)===null||f===void 0)&&f.call(window,j))&&((d=window.MotionHasOptimisedAnimation)===null||d===void 0?void 0:d.call(window,j)));return Fh(()=>{k&&(A.current=!0,window.MotionIsMounted=!0,k.updateFeatures(),Ia.render(k.render),M.current&&k.animationState&&k.animationState.animateChanges())}),F.useEffect(()=>{k&&(!M.current&&k.animationState&&k.animationState.animateChanges(),M.current&&(queueMicrotask(()=>{var D;(D=window.MotionHandoffMarkAsComplete)===null||D===void 0||D.call(window,j)}),M.current=!1))}),k}function Iy(n,i,s,l){const{layoutId:u,layout:f,drag:d,dragConstraints:h,layoutScroll:m,layoutRoot:g}=i;n.projection=new s(n.latestValues,i["data-framer-portal-id"]?void 0:Kh(n.parent)),n.projection.setOptions({layoutId:u,layout:f,alwaysMeasureLayout:!!d||h&&cr(h),visualElement:n,animationType:typeof f=="string"?f:"both",initialPromotionConfig:l,layoutScroll:m,layoutRoot:g})}function Kh(n){if(n)return n.options.allowProjection!==!1?n.projection:Kh(n.parent)}function Oy({preloadedFeatures:n,createVisualElement:i,useRender:s,useVisualState:l,Component:u}){var f,d;n&&jy(n);function h(g,y){let w;const k={...F.useContext(pi),...g,layoutId:By(g)},{isStatic:R}=k,A=Ly(g),j=l(g,R);if(!R&&_a){Uy();const M=$y(k);w=M.MeasureLayout,A.visualElement=Fy(u,j,k,i,M.ProjectionNode)}return v.jsxs(Js.Provider,{value:A,children:[w&&A.visualElement?v.jsx(w,{visualElement:A.visualElement,...k}):null,s(u,g,Vy(j,A.visualElement,y),j,R,A.visualElement)]})}h.displayName=`motion.${typeof u=="string"?u:`create(${(d=(f=u.displayName)!==null&&f!==void 0?f:u.name)!==null&&d!==void 0?d:""})`}`;const m=F.forwardRef(h);return m[_y]=u,m}function By({layoutId:n}){const i=F.useContext(La).id;return i&&n!==void 0?i+"-"+n:n}function Uy(n,i){F.useContext(Bh).strict}function $y(n){const{drag:i,layout:s}=mr;if(!i&&!s)return{};const l={...i,...s};return{MeasureLayout:i!=null&&i.isEnabled(n)||s!=null&&s.isEnabled(n)?l.MeasureLayout:void 0,ProjectionNode:l.ProjectionNode}}const Wy=["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 Oa(n){return typeof n!="string"||n.includes("-")?!1:!!(Wy.indexOf(n)>-1||/[A-Z]/u.test(n))}function wf(n){const i=[{},{}];return n==null||n.values.forEach((s,l)=>{i[0][l]=s.get(),i[1][l]=s.getVelocity()}),i}function Ba(n,i,s,l){if(typeof i=="function"){const[u,f]=wf(l);i=i(s!==void 0?s:n.custom,u,f)}if(typeof i=="string"&&(i=n.variants&&n.variants[i]),typeof i=="function"){const[u,f]=wf(l);i=i(s!==void 0?s:n.custom,u,f)}return i}const ya=n=>Array.isArray(n),by=n=>!!(n&&typeof n=="object"&&n.mix&&n.toValue),Hy=n=>ya(n)?n[n.length-1]||0:n,Ke=n=>!!(n&&n.getVelocity);function Os(n){const i=Ke(n)?n.get():n;return by(i)?i.toValue():i}function Ky({scrapeMotionValuesFromProps:n,createRenderState:i,onUpdate:s},l,u,f){const d={latestValues:Gy(l,u,f,n),renderState:i()};return s&&(d.onMount=h=>s({props:l,current:h,...d}),d.onUpdate=h=>s(h)),d}const Gh=n=>(i,s)=>{const l=F.useContext(Js),u=F.useContext(qs),f=()=>Ky(n,i,l,u);return s?f():Zs(f)};function Gy(n,i,s,l){const u={},f=l(n,{});for(const k in f)u[k]=Os(f[k]);let{initial:d,animate:h}=n;const m=to(n),g=Wh(n);i&&g&&!m&&n.inherit!==!1&&(d===void 0&&(d=i.initial),h===void 0&&(h=i.animate));let y=s?s.initial===!1:!1;y=y||d===!1;const w=y?h:d;if(w&&typeof w!="boolean"&&!eo(w)){const k=Array.isArray(w)?w:[w];for(let R=0;R<k.length;R++){const A=Ba(n,k[R]);if(A){const{transitionEnd:j,transition:M,...D}=A;for(const O in D){let $=D[O];if(Array.isArray($)){const Q=y?$.length-1:0;$=$[Q]}$!==null&&(u[O]=$)}for(const O in j)u[O]=j[O]}}}return u}const vr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],In=new Set(vr),Qh=n=>i=>typeof i=="string"&&i.startsWith(n),Yh=Qh("--"),Qy=Qh("var(--"),Ua=n=>Qy(n)?Yy.test(n.split("/*")[0].trim()):!1,Yy=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Xh=(n,i)=>i&&typeof n=="number"?i.transform(n):n,Qt=(n,i,s)=>s>i?i:s<n?n:s,xr={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},gi={...xr,transform:n=>Qt(0,1,n)},Fs={...xr,default:1},wi=n=>({test:i=>typeof i=="string"&&i.endsWith(n)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${n}`}),mn=wi("deg"),zt=wi("%"),te=wi("px"),Xy=wi("vh"),Zy=wi("vw"),Sf={...zt,parse:n=>zt.parse(n)/100,transform:n=>zt.transform(n*100)},qy={borderWidth:te,borderTopWidth:te,borderRightWidth:te,borderBottomWidth:te,borderLeftWidth:te,borderRadius:te,radius:te,borderTopLeftRadius:te,borderTopRightRadius:te,borderBottomRightRadius:te,borderBottomLeftRadius:te,width:te,maxWidth:te,height:te,maxHeight:te,top:te,right:te,bottom:te,left:te,padding:te,paddingTop:te,paddingRight:te,paddingBottom:te,paddingLeft:te,margin:te,marginTop:te,marginRight:te,marginBottom:te,marginLeft:te,backgroundPositionX:te,backgroundPositionY:te},Jy={rotate:mn,rotateX:mn,rotateY:mn,rotateZ:mn,scale:Fs,scaleX:Fs,scaleY:Fs,scaleZ:Fs,skew:mn,skewX:mn,skewY:mn,distance:te,translateX:te,translateY:te,translateZ:te,x:te,y:te,z:te,perspective:te,transformPerspective:te,opacity:gi,originX:Sf,originY:Sf,originZ:te},kf={...xr,transform:Math.round},$a={...qy,...Jy,zIndex:kf,size:te,fillOpacity:gi,strokeOpacity:gi,numOctaves:kf},e0={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},t0=vr.length;function n0(n,i,s){let l="",u=!0;for(let f=0;f<t0;f++){const d=vr[f],h=n[d];if(h===void 0)continue;let m=!0;if(typeof h=="number"?m=h===(d.startsWith("scale")?1:0):m=parseFloat(h)===0,!m||s){const g=Xh(h,$a[d]);if(!m){u=!1;const y=e0[d]||d;l+=`${y}(${g}) `}s&&(i[d]=g)}}return l=l.trim(),s?l=s(i,u?"":l):u&&(l="none"),l}function Wa(n,i,s){const{style:l,vars:u,transformOrigin:f}=n;let d=!1,h=!1;for(const m in i){const g=i[m];if(In.has(m)){d=!0;continue}else if(Yh(m)){u[m]=g;continue}else{const y=Xh(g,$a[m]);m.startsWith("origin")?(h=!0,f[m]=y):l[m]=y}}if(i.transform||(d||s?l.transform=n0(i,n.transform,s):l.transform&&(l.transform="none")),h){const{originX:m="50%",originY:g="50%",originZ:y=0}=f;l.transformOrigin=`${m} ${g} ${y}`}}const r0={offset:"stroke-dashoffset",array:"stroke-dasharray"},i0={offset:"strokeDashoffset",array:"strokeDasharray"};function s0(n,i,s=1,l=0,u=!0){n.pathLength=1;const f=u?r0:i0;n[f.offset]=te.transform(-l);const d=te.transform(i),h=te.transform(s);n[f.array]=`${d} ${h}`}function Tf(n,i,s){return typeof n=="string"?n:te.transform(i+s*n)}function o0(n,i,s){const l=Tf(i,n.x,n.width),u=Tf(s,n.y,n.height);return`${l} ${u}`}function ba(n,{attrX:i,attrY:s,attrScale:l,originX:u,originY:f,pathLength:d,pathSpacing:h=1,pathOffset:m=0,...g},y,w){if(Wa(n,g,w),y){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:k,style:R,dimensions:A}=n;k.transform&&(A&&(R.transform=k.transform),delete k.transform),A&&(u!==void 0||f!==void 0||R.transform)&&(R.transformOrigin=o0(A,u!==void 0?u:.5,f!==void 0?f:.5)),i!==void 0&&(k.x=i),s!==void 0&&(k.y=s),l!==void 0&&(k.scale=l),d!==void 0&&s0(k,d,h,m,!1)}const Ha=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Zh=()=>({...Ha(),attrs:{}}),Ka=n=>typeof n=="string"&&n.toLowerCase()==="svg";function qh(n,{style:i,vars:s},l,u){Object.assign(n.style,i,u&&u.getProjectionStyles(l));for(const f in s)n.style.setProperty(f,s[f])}const Jh=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"]);function ep(n,i,s,l){qh(n,i,void 0,l);for(const u in i.attrs)n.setAttribute(Jh.has(u)?u:Fa(u),i.attrs[u])}const Ws={};function l0(n){Object.assign(Ws,n)}function tp(n,{layout:i,layoutId:s}){return In.has(n)||n.startsWith("origin")||(i||s!==void 0)&&(!!Ws[n]||n==="opacity")}function Ga(n,i,s){var l;const{style:u}=n,f={};for(const d in u)(Ke(u[d])||i.style&&Ke(i.style[d])||tp(d,n)||((l=s==null?void 0:s.getValue(d))===null||l===void 0?void 0:l.liveStyle)!==void 0)&&(f[d]=u[d]);return f}function np(n,i,s){const l=Ga(n,i,s);for(const u in n)if(Ke(n[u])||Ke(i[u])){const f=vr.indexOf(u)!==-1?"attr"+u.charAt(0).toUpperCase()+u.substring(1):u;l[f]=n[u]}return l}function a0(n,i){try{i.dimensions=typeof n.getBBox=="function"?n.getBBox():n.getBoundingClientRect()}catch{i.dimensions={x:0,y:0,width:0,height:0}}}const Pf=["x","y","width","height","cx","cy","r"],u0={useVisualState:Gh({scrapeMotionValuesFromProps:np,createRenderState:Zh,onUpdate:({props:n,prevProps:i,current:s,renderState:l,latestValues:u})=>{if(!s)return;let f=!!n.drag;if(!f){for(const h in u)if(In.has(h)){f=!0;break}}if(!f)return;let d=!i;if(i)for(let h=0;h<Pf.length;h++){const m=Pf[h];n[m]!==i[m]&&(d=!0)}d&&xe.read(()=>{a0(s,l),xe.render(()=>{ba(l,u,Ka(s.tagName),n.transformTemplate),ep(s,l)})})}})},c0={useVisualState:Gh({scrapeMotionValuesFromProps:Ga,createRenderState:Ha})};function rp(n,i,s){for(const l in i)!Ke(i[l])&&!tp(l,s)&&(n[l]=i[l])}function d0({transformTemplate:n},i){return F.useMemo(()=>{const s=Ha();return Wa(s,i,n),Object.assign({},s.vars,s.style)},[i])}function f0(n,i){const s=n.style||{},l={};return rp(l,s,n),Object.assign(l,d0(n,i)),l}function h0(n,i){const s={},l=f0(n,i);return n.drag&&n.dragListener!==!1&&(s.draggable=!1,l.userSelect=l.WebkitUserSelect=l.WebkitTouchCallout="none",l.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=l,s}function p0(n,i,s,l){const u=F.useMemo(()=>{const f=Zh();return ba(f,i,Ka(l),n.transformTemplate),{...f.attrs,style:{...f.style}}},[i]);if(n.style){const f={};rp(f,n.style,n),u.style={...f,...u.style}}return u}function m0(n=!1){return(s,l,u,{latestValues:f},d)=>{const m=(Oa(s)?p0:h0)(l,f,d,s),g=Ry(l,typeof s=="string",n),y=s!==F.Fragment?{...g,...m,ref:u}:{},{children:w}=l,k=F.useMemo(()=>Ke(w)?w.get():w,[w]);return F.createElement(s,{...y,children:k})}}function g0(n,i){return function(l,{forwardMotionProps:u}={forwardMotionProps:!1}){const d={...Oa(l)?u0:c0,preloadedFeatures:n,useRender:m0(u),createVisualElement:i,Component:l};return Oy(d)}}function ip(n,i){if(!Array.isArray(i))return!1;const s=i.length;if(s!==n.length)return!1;for(let l=0;l<s;l++)if(i[l]!==n[l])return!1;return!0}function no(n,i,s){const l=n.getProps();return Ba(l,i,s!==void 0?s:l.custom,n)}function Qa(n,i){return n?n[i]||n.default||n:void 0}const sp=new Set(["width","height","top","left","right","bottom",...vr]);let Bs;function y0(){Bs=void 0}const Ft={now:()=>(Bs===void 0&&Ft.set(Be.isProcessing||Py.useManualTiming?Be.timestamp:performance.now()),Bs),set:n=>{Bs=n,queueMicrotask(y0)}};function Ya(n,i){n.indexOf(i)===-1&&n.push(i)}function Xa(n,i){const s=n.indexOf(i);s>-1&&n.splice(s,1)}class Za{constructor(){this.subscriptions=[]}add(i){return Ya(this.subscriptions,i),()=>Xa(this.subscriptions,i)}notify(i,s,l){const u=this.subscriptions.length;if(u)if(u===1)this.subscriptions[0](i,s,l);else for(let f=0;f<u;f++){const d=this.subscriptions[f];d&&d(i,s,l)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function op(n,i){return i?n*(1e3/i):0}const Cf=30,v0=n=>!isNaN(parseFloat(n));class x0{constructor(i,s={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(l,u=!0)=>{const f=Ft.now();this.updatedAt!==f&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(l),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),u&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(i),this.owner=s.owner}setCurrent(i){this.current=i,this.updatedAt=Ft.now(),this.canTrackVelocity===null&&i!==void 0&&(this.canTrackVelocity=v0(this.current))}setPrevFrameValue(i=this.current){this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt}onChange(i){return this.on("change",i)}on(i,s){this.events[i]||(this.events[i]=new Za);const l=this.events[i].add(s);return i==="change"?()=>{l(),xe.read(()=>{this.events.change.getSize()||this.stop()})}:l}clearListeners(){for(const i in this.events)this.events[i].clear()}attach(i,s){this.passiveEffect=i,this.stopPassiveEffect=s}set(i,s=!0){!s||!this.passiveEffect?this.updateAndNotify(i,s):this.passiveEffect(i,this.updateAndNotify)}setWithVelocity(i,s,l){this.set(s),this.prev=void 0,this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt-l}jump(i,s=!0){this.updateAndNotify(i),this.prev=i,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const i=Ft.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||i-this.updatedAt>Cf)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,Cf);return op(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(i){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=i(s),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function yi(n,i){return new x0(n,i)}function w0(n,i,s){n.hasValue(i)?n.getValue(i).set(s):n.addValue(i,yi(s))}function S0(n,i){const s=no(n,i);let{transitionEnd:l={},transition:u={},...f}=s||{};f={...f,...l};for(const d in f){const h=Hy(f[d]);w0(n,d,h)}}function k0(n){return!!(Ke(n)&&n.add)}function va(n,i){const s=n.getValue("willChange");if(k0(s))return s.add(i)}function lp(n){return n.props[bh]}function qa(n){let i;return()=>(i===void 0&&(i=n()),i)}const T0=qa(()=>window.ScrollTimeline!==void 0);class P0{constructor(i){this.stop=()=>this.runAll("stop"),this.animations=i.filter(Boolean)}get finished(){return Promise.all(this.animations.map(i=>"finished"in i?i.finished:i))}getAll(i){return this.animations[0][i]}setAll(i,s){for(let l=0;l<this.animations.length;l++)this.animations[l][i]=s}attachTimeline(i,s){const l=this.animations.map(u=>{if(T0()&&u.attachTimeline)return u.attachTimeline(i);if(typeof s=="function")return s(u)});return()=>{l.forEach((u,f)=>{u&&u(),this.animations[f].stop()})}}get time(){return this.getAll("time")}set time(i){this.setAll("time",i)}get speed(){return this.getAll("speed")}set speed(i){this.setAll("speed",i)}get startTime(){return this.getAll("startTime")}get duration(){let i=0;for(let s=0;s<this.animations.length;s++)i=Math.max(i,this.animations[s].duration);return i}runAll(i){this.animations.forEach(s=>s[i]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class C0 extends P0{then(i,s){return Promise.all(this.animations).then(i).catch(s)}}const Kt=n=>n*1e3,Gt=n=>n/1e3;function Ja(n){return typeof n=="function"}function Ef(n,i){n.timeline=i,n.onfinish=null}const eu=n=>Array.isArray(n)&&typeof n[0]=="number",E0={linearEasing:void 0};function j0(n,i){const s=qa(n);return()=>{var l;return(l=E0[i])!==null&&l!==void 0?l:s()}}const bs=j0(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),gr=(n,i,s)=>{const l=i-n;return l===0?1:(s-n)/l},ap=(n,i,s=10)=>{let l="";const u=Math.max(Math.round(i/s),2);for(let f=0;f<u;f++)l+=n(gr(0,u-1,f))+", ";return`linear(${l.substring(0,l.length-2)})`};function up(n){return!!(typeof n=="function"&&bs()||!n||typeof n=="string"&&(n in xa||bs())||eu(n)||Array.isArray(n)&&n.every(up))}const li=([n,i,s,l])=>`cubic-bezier(${n}, ${i}, ${s}, ${l})`,xa={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:li([0,.65,.55,1]),circOut:li([.55,0,1,.45]),backIn:li([.31,.01,.66,-.59]),backOut:li([.33,1.53,.69,.99])};function cp(n,i){if(n)return typeof n=="function"&&bs()?ap(n,i):eu(n)?li(n):Array.isArray(n)?n.map(s=>cp(s,i)||xa.easeOut):xa[n]}const dp=(n,i,s)=>(((1-3*s+3*i)*n+(3*s-6*i))*n+3*i)*n,N0=1e-7,R0=12;function A0(n,i,s,l,u){let f,d,h=0;do d=i+(s-i)/2,f=dp(d,l,u)-n,f>0?s=d:i=d;while(Math.abs(f)>N0&&++h<R0);return d}function Si(n,i,s,l){if(n===i&&s===l)return dt;const u=f=>A0(f,0,1,n,s);return f=>f===0||f===1?f:dp(u(f),i,l)}const fp=n=>i=>i<=.5?n(2*i)/2:(2-n(2*(1-i)))/2,hp=n=>i=>1-n(1-i),pp=Si(.33,1.53,.69,.99),tu=hp(pp),mp=fp(tu),gp=n=>(n*=2)<1?.5*tu(n):.5*(2-Math.pow(2,-10*(n-1))),nu=n=>1-Math.sin(Math.acos(n)),yp=hp(nu),vp=fp(nu),xp=n=>/^0[^.\s]+$/u.test(n);function M0(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||xp(n):!0}const ci=n=>Math.round(n*1e5)/1e5,ru=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function D0(n){return n==null}const L0=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,iu=(n,i)=>s=>!!(typeof s=="string"&&L0.test(s)&&s.startsWith(n)||i&&!D0(s)&&Object.prototype.hasOwnProperty.call(s,i)),wp=(n,i,s)=>l=>{if(typeof l!="string")return l;const[u,f,d,h]=l.match(ru);return{[n]:parseFloat(u),[i]:parseFloat(f),[s]:parseFloat(d),alpha:h!==void 0?parseFloat(h):1}},_0=n=>Qt(0,255,n),ia={...xr,transform:n=>Math.round(_0(n))},Vn={test:iu("rgb","red"),parse:wp("red","green","blue"),transform:({red:n,green:i,blue:s,alpha:l=1})=>"rgba("+ia.transform(n)+", "+ia.transform(i)+", "+ia.transform(s)+", "+ci(gi.transform(l))+")"};function V0(n){let i="",s="",l="",u="";return n.length>5?(i=n.substring(1,3),s=n.substring(3,5),l=n.substring(5,7),u=n.substring(7,9)):(i=n.substring(1,2),s=n.substring(2,3),l=n.substring(3,4),u=n.substring(4,5),i+=i,s+=s,l+=l,u+=u),{red:parseInt(i,16),green:parseInt(s,16),blue:parseInt(l,16),alpha:u?parseInt(u,16)/255:1}}const wa={test:iu("#"),parse:V0,transform:Vn.transform},dr={test:iu("hsl","hue"),parse:wp("hue","saturation","lightness"),transform:({hue:n,saturation:i,lightness:s,alpha:l=1})=>"hsla("+Math.round(n)+", "+zt.transform(ci(i))+", "+zt.transform(ci(s))+", "+ci(gi.transform(l))+")"},He={test:n=>Vn.test(n)||wa.test(n)||dr.test(n),parse:n=>Vn.test(n)?Vn.parse(n):dr.test(n)?dr.parse(n):wa.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?Vn.transform(n):dr.transform(n)},z0=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function F0(n){var i,s;return isNaN(n)&&typeof n=="string"&&(((i=n.match(ru))===null||i===void 0?void 0:i.length)||0)+(((s=n.match(z0))===null||s===void 0?void 0:s.length)||0)>0}const Sp="number",kp="color",I0="var",O0="var(",jf="${}",B0=/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 vi(n){const i=n.toString(),s=[],l={color:[],number:[],var:[]},u=[];let f=0;const h=i.replace(B0,m=>(He.test(m)?(l.color.push(f),u.push(kp),s.push(He.parse(m))):m.startsWith(O0)?(l.var.push(f),u.push(I0),s.push(m)):(l.number.push(f),u.push(Sp),s.push(parseFloat(m))),++f,jf)).split(jf);return{values:s,split:h,indexes:l,types:u}}function Tp(n){return vi(n).values}function Pp(n){const{split:i,types:s}=vi(n),l=i.length;return u=>{let f="";for(let d=0;d<l;d++)if(f+=i[d],u[d]!==void 0){const h=s[d];h===Sp?f+=ci(u[d]):h===kp?f+=He.transform(u[d]):f+=u[d]}return f}}const U0=n=>typeof n=="number"?0:n;function $0(n){const i=Tp(n);return Pp(n)(i.map(U0))}const yn={test:F0,parse:Tp,createTransformer:Pp,getAnimatableNone:$0},W0=new Set(["brightness","contrast","saturate","opacity"]);function b0(n){const[i,s]=n.slice(0,-1).split("(");if(i==="drop-shadow")return n;const[l]=s.match(ru)||[];if(!l)return n;const u=s.replace(l,"");let f=W0.has(i)?1:0;return l!==s&&(f*=100),i+"("+f+u+")"}const H0=/\b([a-z-]*)\(.*?\)/gu,Sa={...yn,getAnimatableNone:n=>{const i=n.match(H0);return i?i.map(b0).join(" "):n}},K0={...$a,color:He,backgroundColor:He,outlineColor:He,fill:He,stroke:He,borderColor:He,borderTopColor:He,borderRightColor:He,borderBottomColor:He,borderLeftColor:He,filter:Sa,WebkitFilter:Sa},su=n=>K0[n];function Cp(n,i){let s=su(n);return s!==Sa&&(s=yn),s.getAnimatableNone?s.getAnimatableNone(i):void 0}const G0=new Set(["auto","none","0"]);function Q0(n,i,s){let l=0,u;for(;l<n.length&&!u;){const f=n[l];typeof f=="string"&&!G0.has(f)&&vi(f).values.length&&(u=n[l]),l++}if(u&&s)for(const f of i)n[f]=Cp(s,u)}const Nf=n=>n===xr||n===te,Rf=(n,i)=>parseFloat(n.split(", ")[i]),Af=(n,i)=>(s,{transform:l})=>{if(l==="none"||!l)return 0;const u=l.match(/^matrix3d\((.+)\)$/u);if(u)return Rf(u[1],i);{const f=l.match(/^matrix\((.+)\)$/u);return f?Rf(f[1],n):0}},Y0=new Set(["x","y","z"]),X0=vr.filter(n=>!Y0.has(n));function Z0(n){const i=[];return X0.forEach(s=>{const l=n.getValue(s);l!==void 0&&(i.push([s,l.get()]),l.set(s.startsWith("scale")?1:0))}),i}const yr={width:({x:n},{paddingLeft:i="0",paddingRight:s="0"})=>n.max-n.min-parseFloat(i)-parseFloat(s),height:({y:n},{paddingTop:i="0",paddingBottom:s="0"})=>n.max-n.min-parseFloat(i)-parseFloat(s),top:(n,{top:i})=>parseFloat(i),left:(n,{left:i})=>parseFloat(i),bottom:({y:n},{top:i})=>parseFloat(i)+(n.max-n.min),right:({x:n},{left:i})=>parseFloat(i)+(n.max-n.min),x:Af(4,13),y:Af(5,14)};yr.translateX=yr.x;yr.translateY=yr.y;const zn=new Set;let ka=!1,Ta=!1;function Ep(){if(Ta){const n=Array.from(zn).filter(l=>l.needsMeasurement),i=new Set(n.map(l=>l.element)),s=new Map;i.forEach(l=>{const u=Z0(l);u.length&&(s.set(l,u),l.render())}),n.forEach(l=>l.measureInitialState()),i.forEach(l=>{l.render();const u=s.get(l);u&&u.forEach(([f,d])=>{var h;(h=l.getValue(f))===null||h===void 0||h.set(d)})}),n.forEach(l=>l.measureEndState()),n.forEach(l=>{l.suspendedScrollY!==void 0&&window.scrollTo(0,l.suspendedScrollY)})}Ta=!1,ka=!1,zn.forEach(n=>n.complete()),zn.clear()}function jp(){zn.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(Ta=!0)})}function q0(){jp(),Ep()}class ou{constructor(i,s,l,u,f,d=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...i],this.onComplete=s,this.name=l,this.motionValue=u,this.element=f,this.isAsync=d}scheduleResolve(){this.isScheduled=!0,this.isAsync?(zn.add(this),ka||(ka=!0,xe.read(jp),xe.resolveKeyframes(Ep))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:i,name:s,element:l,motionValue:u}=this;for(let f=0;f<i.length;f++)if(i[f]===null)if(f===0){const d=u==null?void 0:u.get(),h=i[i.length-1];if(d!==void 0)i[0]=d;else if(l&&s){const m=l.readValue(s,h);m!=null&&(i[0]=m)}i[0]===void 0&&(i[0]=h),u&&d===void 0&&u.set(i[0])}else i[f]=i[f-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),zn.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,zn.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Np=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n),J0=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ev(n){const i=J0.exec(n);if(!i)return[,];const[,s,l,u]=i;return[`--${s??l}`,u]}function Rp(n,i,s=1){const[l,u]=ev(n);if(!l)return;const f=window.getComputedStyle(i).getPropertyValue(l);if(f){const d=f.trim();return Np(d)?parseFloat(d):d}return Ua(u)?Rp(u,i,s+1):u}const Ap=n=>i=>i.test(n),tv={test:n=>n==="auto",parse:n=>n},Mp=[xr,te,zt,mn,Zy,Xy,tv],Mf=n=>Mp.find(Ap(n));class Dp extends ou{constructor(i,s,l,u,f){super(i,s,l,u,f,!0)}readKeyframes(){const{unresolvedKeyframes:i,element:s,name:l}=this;if(!s||!s.current)return;super.readKeyframes();for(let m=0;m<i.length;m++){let g=i[m];if(typeof g=="string"&&(g=g.trim(),Ua(g))){const y=Rp(g,s.current);y!==void 0&&(i[m]=y),m===i.length-1&&(this.finalKeyframe=g)}}if(this.resolveNoneKeyframes(),!sp.has(l)||i.length!==2)return;const[u,f]=i,d=Mf(u),h=Mf(f);if(d!==h)if(Nf(d)&&Nf(h))for(let m=0;m<i.length;m++){const g=i[m];typeof g=="string"&&(i[m]=parseFloat(g))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:i,name:s}=this,l=[];for(let u=0;u<i.length;u++)M0(i[u])&&l.push(u);l.length&&Q0(i,l,s)}measureInitialState(){const{element:i,unresolvedKeyframes:s,name:l}=this;if(!i||!i.current)return;l==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=yr[l](i.measureViewportBox(),window.getComputedStyle(i.current)),s[0]=this.measuredOrigin;const u=s[s.length-1];u!==void 0&&i.getValue(l,u).jump(u,!1)}measureEndState(){var i;const{element:s,name:l,unresolvedKeyframes:u}=this;if(!s||!s.current)return;const f=s.getValue(l);f&&f.jump(this.measuredOrigin,!1);const d=u.length-1,h=u[d];u[d]=yr[l](s.measureViewportBox(),window.getComputedStyle(s.current)),h!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=h),!((i=this.removedTransforms)===null||i===void 0)&&i.length&&this.removedTransforms.forEach(([m,g])=>{s.getValue(m).set(g)}),this.resolveNoneKeyframes()}}const Df=(n,i)=>i==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(yn.test(n)||n==="0")&&!n.startsWith("url("));function nv(n){const i=n[0];if(n.length===1)return!0;for(let s=0;s<n.length;s++)if(n[s]!==i)return!0}function rv(n,i,s,l){const u=n[0];if(u===null)return!1;if(i==="display"||i==="visibility")return!0;const f=n[n.length-1],d=Df(u,i),h=Df(f,i);return!d||!h?!1:nv(n)||(s==="spring"||Ja(s))&&l}const iv=n=>n!==null;function ro(n,{repeat:i,repeatType:s="loop"},l){const u=n.filter(iv),f=i&&s!=="loop"&&i%2===1?0:u.length-1;return!f||l===void 0?u[f]:l}const sv=40;class Lp{constructor({autoplay:i=!0,delay:s=0,type:l="keyframes",repeat:u=0,repeatDelay:f=0,repeatType:d="loop",...h}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Ft.now(),this.options={autoplay:i,delay:s,type:l,repeat:u,repeatDelay:f,repeatType:d,...h},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>sv?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&q0(),this._resolved}onKeyframesResolved(i,s){this.resolvedAt=Ft.now(),this.hasAttemptedResolve=!0;const{name:l,type:u,velocity:f,delay:d,onComplete:h,onUpdate:m,isGenerator:g}=this.options;if(!g&&!rv(i,l,u,f))if(d)this.options.duration=0;else{m&&m(ro(i,this.options,s)),h&&h(),this.resolveFinishedPromise();return}const y=this.initPlayback(i,s);y!==!1&&(this._resolved={keyframes:i,finalKeyframe:s,...y},this.onPostResolved())}onPostResolved(){}then(i,s){return this.currentFinishedPromise.then(i,s)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(i=>{this.resolveFinishedPromise=i})}}const Pa=2e4;function _p(n){let i=0;const s=50;let l=n.next(i);for(;!l.done&&i<Pa;)i+=s,l=n.next(i);return i>=Pa?1/0:i}const Ce=(n,i,s)=>n+(i-n)*s;function sa(n,i,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?n+(i-n)*6*s:s<1/2?i:s<2/3?n+(i-n)*(2/3-s)*6:n}function ov({hue:n,saturation:i,lightness:s,alpha:l}){n/=360,i/=100,s/=100;let u=0,f=0,d=0;if(!i)u=f=d=s;else{const h=s<.5?s*(1+i):s+i-s*i,m=2*s-h;u=sa(m,h,n+1/3),f=sa(m,h,n),d=sa(m,h,n-1/3)}return{red:Math.round(u*255),green:Math.round(f*255),blue:Math.round(d*255),alpha:l}}function Hs(n,i){return s=>s>0?i:n}const oa=(n,i,s)=>{const l=n*n,u=s*(i*i-l)+l;return u<0?0:Math.sqrt(u)},lv=[wa,Vn,dr],av=n=>lv.find(i=>i.test(n));function Lf(n){const i=av(n);if(!i)return!1;let s=i.parse(n);return i===dr&&(s=ov(s)),s}const _f=(n,i)=>{const s=Lf(n),l=Lf(i);if(!s||!l)return Hs(n,i);const u={...s};return f=>(u.red=oa(s.red,l.red,f),u.green=oa(s.green,l.green,f),u.blue=oa(s.blue,l.blue,f),u.alpha=Ce(s.alpha,l.alpha,f),Vn.transform(u))},uv=(n,i)=>s=>i(n(s)),ki=(...n)=>n.reduce(uv),Ca=new Set(["none","hidden"]);function cv(n,i){return Ca.has(n)?s=>s<=0?n:i:s=>s>=1?i:n}function dv(n,i){return s=>Ce(n,i,s)}function lu(n){return typeof n=="number"?dv:typeof n=="string"?Ua(n)?Hs:He.test(n)?_f:pv:Array.isArray(n)?Vp:typeof n=="object"?He.test(n)?_f:fv:Hs}function Vp(n,i){const s=[...n],l=s.length,u=n.map((f,d)=>lu(f)(f,i[d]));return f=>{for(let d=0;d<l;d++)s[d]=u[d](f);return s}}function fv(n,i){const s={...n,...i},l={};for(const u in s)n[u]!==void 0&&i[u]!==void 0&&(l[u]=lu(n[u])(n[u],i[u]));return u=>{for(const f in l)s[f]=l[f](u);return s}}function hv(n,i){var s;const l=[],u={color:0,var:0,number:0};for(let f=0;f<i.values.length;f++){const d=i.types[f],h=n.indexes[d][u[d]],m=(s=n.values[h])!==null&&s!==void 0?s:0;l[f]=m,u[d]++}return l}const pv=(n,i)=>{const s=yn.createTransformer(i),l=vi(n),u=vi(i);return l.indexes.var.length===u.indexes.var.length&&l.indexes.color.length===u.indexes.color.length&&l.indexes.number.length>=u.indexes.number.length?Ca.has(n)&&!u.values.length||Ca.has(i)&&!l.values.length?cv(n,i):ki(Vp(hv(l,u),u.values),s):Hs(n,i)};function zp(n,i,s){return typeof n=="number"&&typeof i=="number"&&typeof s=="number"?Ce(n,i,s):lu(n)(n,i)}const mv=5;function Fp(n,i,s){const l=Math.max(i-mv,0);return op(s-n(l),i-l)}const Ne={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},la=.001;function gv({duration:n=Ne.duration,bounce:i=Ne.bounce,velocity:s=Ne.velocity,mass:l=Ne.mass}){let u,f,d=1-i;d=Qt(Ne.minDamping,Ne.maxDamping,d),n=Qt(Ne.minDuration,Ne.maxDuration,Gt(n)),d<1?(u=g=>{const y=g*d,w=y*n,k=y-s,R=Ea(g,d),A=Math.exp(-w);return la-k/R*A},f=g=>{const w=g*d*n,k=w*s+s,R=Math.pow(d,2)*Math.pow(g,2)*n,A=Math.exp(-w),j=Ea(Math.pow(g,2),d);return(-u(g)+la>0?-1:1)*((k-R)*A)/j}):(u=g=>{const y=Math.exp(-g*n),w=(g-s)*n+1;return-la+y*w},f=g=>{const y=Math.exp(-g*n),w=(s-g)*(n*n);return y*w});const h=5/n,m=vv(u,f,h);if(n=Kt(n),isNaN(m))return{stiffness:Ne.stiffness,damping:Ne.damping,duration:n};{const g=Math.pow(m,2)*l;return{stiffness:g,damping:d*2*Math.sqrt(l*g),duration:n}}}const yv=12;function vv(n,i,s){let l=s;for(let u=1;u<yv;u++)l=l-n(l)/i(l);return l}function Ea(n,i){return n*Math.sqrt(1-i*i)}const xv=["duration","bounce"],wv=["stiffness","damping","mass"];function Vf(n,i){return i.some(s=>n[s]!==void 0)}function Sv(n){let i={velocity:Ne.velocity,stiffness:Ne.stiffness,damping:Ne.damping,mass:Ne.mass,isResolvedFromDuration:!1,...n};if(!Vf(n,wv)&&Vf(n,xv))if(n.visualDuration){const s=n.visualDuration,l=2*Math.PI/(s*1.2),u=l*l,f=2*Qt(.05,1,1-(n.bounce||0))*Math.sqrt(u);i={...i,mass:Ne.mass,stiffness:u,damping:f}}else{const s=gv(n);i={...i,...s,mass:Ne.mass},i.isResolvedFromDuration=!0}return i}function Ip(n=Ne.visualDuration,i=Ne.bounce){const s=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:i}:n;let{restSpeed:l,restDelta:u}=s;const f=s.keyframes[0],d=s.keyframes[s.keyframes.length-1],h={done:!1,value:f},{stiffness:m,damping:g,mass:y,duration:w,velocity:k,isResolvedFromDuration:R}=Sv({...s,velocity:-Gt(s.velocity||0)}),A=k||0,j=g/(2*Math.sqrt(m*y)),M=d-f,D=Gt(Math.sqrt(m/y)),O=Math.abs(M)<5;l||(l=O?Ne.restSpeed.granular:Ne.restSpeed.default),u||(u=O?Ne.restDelta.granular:Ne.restDelta.default);let $;if(j<1){const U=Ea(D,j);$=X=>{const re=Math.exp(-j*D*X);return d-re*((A+j*D*M)/U*Math.sin(U*X)+M*Math.cos(U*X))}}else if(j===1)$=U=>d-Math.exp(-D*U)*(M+(A+D*M)*U);else{const U=D*Math.sqrt(j*j-1);$=X=>{const re=Math.exp(-j*D*X),Z=Math.min(U*X,300);return d-re*((A+j*D*M)*Math.sinh(Z)+U*M*Math.cosh(Z))/U}}const Q={calculatedDuration:R&&w||null,next:U=>{const X=$(U);if(R)h.done=U>=w;else{let re=0;j<1&&(re=U===0?Kt(A):Fp($,U,X));const Z=Math.abs(re)<=l,ge=Math.abs(d-X)<=u;h.done=Z&&ge}return h.value=h.done?d:X,h},toString:()=>{const U=Math.min(_p(Q),Pa),X=ap(re=>Q.next(U*re).value,U,30);return U+"ms "+X}};return Q}function zf({keyframes:n,velocity:i=0,power:s=.8,timeConstant:l=325,bounceDamping:u=10,bounceStiffness:f=500,modifyTarget:d,min:h,max:m,restDelta:g=.5,restSpeed:y}){const w=n[0],k={done:!1,value:w},R=Z=>h!==void 0&&Z<h||m!==void 0&&Z>m,A=Z=>h===void 0?m:m===void 0||Math.abs(h-Z)<Math.abs(m-Z)?h:m;let j=s*i;const M=w+j,D=d===void 0?M:d(M);D!==M&&(j=D-w);const O=Z=>-j*Math.exp(-Z/l),$=Z=>D+O(Z),Q=Z=>{const ge=O(Z),Ee=$(Z);k.done=Math.abs(ge)<=g,k.value=k.done?D:Ee};let U,X;const re=Z=>{R(k.value)&&(U=Z,X=Ip({keyframes:[k.value,A(k.value)],velocity:Fp($,Z,k.value),damping:u,stiffness:f,restDelta:g,restSpeed:y}))};return re(0),{calculatedDuration:null,next:Z=>{let ge=!1;return!X&&U===void 0&&(ge=!0,Q(Z),re(Z)),U!==void 0&&Z>=U?X.next(Z-U):(!ge&&Q(Z),k)}}}const kv=Si(.42,0,1,1),Tv=Si(0,0,.58,1),Op=Si(.42,0,.58,1),Pv=n=>Array.isArray(n)&&typeof n[0]!="number",Cv={linear:dt,easeIn:kv,easeInOut:Op,easeOut:Tv,circIn:nu,circInOut:vp,circOut:yp,backIn:tu,backInOut:mp,backOut:pp,anticipate:gp},Ff=n=>{if(eu(n)){Ih(n.length===4);const[i,s,l,u]=n;return Si(i,s,l,u)}else if(typeof n=="string")return Cv[n];return n};function Ev(n,i,s){const l=[],u=s||zp,f=n.length-1;for(let d=0;d<f;d++){let h=u(n[d],n[d+1]);if(i){const m=Array.isArray(i)?i[d]||dt:i;h=ki(m,h)}l.push(h)}return l}function jv(n,i,{clamp:s=!0,ease:l,mixer:u}={}){const f=n.length;if(Ih(f===i.length),f===1)return()=>i[0];if(f===2&&i[0]===i[1])return()=>i[1];const d=n[0]===n[1];n[0]>n[f-1]&&(n=[...n].reverse(),i=[...i].reverse());const h=Ev(i,l,u),m=h.length,g=y=>{if(d&&y<n[0])return i[0];let w=0;if(m>1)for(;w<n.length-2&&!(y<n[w+1]);w++);const k=gr(n[w],n[w+1],y);return h[w](k)};return s?y=>g(Qt(n[0],n[f-1],y)):g}function Nv(n,i){const s=n[n.length-1];for(let l=1;l<=i;l++){const u=gr(0,i,l);n.push(Ce(s,1,u))}}function Rv(n){const i=[0];return Nv(i,n.length-1),i}function Av(n,i){return n.map(s=>s*i)}function Mv(n,i){return n.map(()=>i||Op).splice(0,n.length-1)}function Ks({duration:n=300,keyframes:i,times:s,ease:l="easeInOut"}){const u=Pv(l)?l.map(Ff):Ff(l),f={done:!1,value:i[0]},d=Av(s&&s.length===i.length?s:Rv(i),n),h=jv(d,i,{ease:Array.isArray(u)?u:Mv(i,u)});return{calculatedDuration:n,next:m=>(f.value=h(m),f.done=m>=n,f)}}const Dv=n=>{const i=({timestamp:s})=>n(s);return{start:()=>xe.update(i,!0),stop:()=>gn(i),now:()=>Be.isProcessing?Be.timestamp:Ft.now()}},Lv={decay:zf,inertia:zf,tween:Ks,keyframes:Ks,spring:Ip},_v=n=>n/100;class au extends Lp{constructor(i){super(i),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:m}=this.options;m&&m()};const{name:s,motionValue:l,element:u,keyframes:f}=this.options,d=(u==null?void 0:u.KeyframeResolver)||ou,h=(m,g)=>this.onKeyframesResolved(m,g);this.resolver=new d(f,h,s,l,u),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(i){const{type:s="keyframes",repeat:l=0,repeatDelay:u=0,repeatType:f,velocity:d=0}=this.options,h=Ja(s)?s:Lv[s]||Ks;let m,g;h!==Ks&&typeof i[0]!="number"&&(m=ki(_v,zp(i[0],i[1])),i=[0,100]);const y=h({...this.options,keyframes:i});f==="mirror"&&(g=h({...this.options,keyframes:[...i].reverse(),velocity:-d})),y.calculatedDuration===null&&(y.calculatedDuration=_p(y));const{calculatedDuration:w}=y,k=w+u,R=k*(l+1)-u;return{generator:y,mirroredGenerator:g,mapPercentToKeyframes:m,calculatedDuration:w,resolvedDuration:k,totalDuration:R}}onPostResolved(){const{autoplay:i=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!i?this.pause():this.state=this.pendingPlayState}tick(i,s=!1){const{resolved:l}=this;if(!l){const{keyframes:Z}=this.options;return{done:!0,value:Z[Z.length-1]}}const{finalKeyframe:u,generator:f,mirroredGenerator:d,mapPercentToKeyframes:h,keyframes:m,calculatedDuration:g,totalDuration:y,resolvedDuration:w}=l;if(this.startTime===null)return f.next(0);const{delay:k,repeat:R,repeatType:A,repeatDelay:j,onUpdate:M}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,i):this.speed<0&&(this.startTime=Math.min(i-y/this.speed,this.startTime)),s?this.currentTime=i:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(i-this.startTime)*this.speed;const D=this.currentTime-k*(this.speed>=0?1:-1),O=this.speed>=0?D<0:D>y;this.currentTime=Math.max(D,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=y);let $=this.currentTime,Q=f;if(R){const Z=Math.min(this.currentTime,y)/w;let ge=Math.floor(Z),Ee=Z%1;!Ee&&Z>=1&&(Ee=1),Ee===1&&ge--,ge=Math.min(ge,R+1),!!(ge%2)&&(A==="reverse"?(Ee=1-Ee,j&&(Ee-=j/w)):A==="mirror"&&(Q=d)),$=Qt(0,1,Ee)*w}const U=O?{done:!1,value:m[0]}:Q.next($);h&&(U.value=h(U.value));let{done:X}=U;!O&&g!==null&&(X=this.speed>=0?this.currentTime>=y:this.currentTime<=0);const re=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&X);return re&&u!==void 0&&(U.value=ro(m,this.options,u)),M&&M(U.value),re&&this.finish(),U}get duration(){const{resolved:i}=this;return i?Gt(i.calculatedDuration):0}get time(){return Gt(this.currentTime)}set time(i){i=Kt(i),this.currentTime=i,this.holdTime!==null||this.speed===0?this.holdTime=i:this.driver&&(this.startTime=this.driver.now()-i/this.speed)}get speed(){return this.playbackSpeed}set speed(i){const s=this.playbackSpeed!==i;this.playbackSpeed=i,s&&(this.time=Gt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:i=Dv,onPlay:s,startTime:l}=this.options;this.driver||(this.driver=i(f=>this.tick(f))),s&&s();const u=this.driver.now();this.holdTime!==null?this.startTime=u-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=u):this.startTime=l??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var i;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(i=this.currentTime)!==null&&i!==void 0?i:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:i}=this.options;i&&i()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(i){return this.startTime=0,this.tick(i,!0)}}const Vv=new Set(["opacity","clipPath","filter","transform"]);function zv(n,i,s,{delay:l=0,duration:u=300,repeat:f=0,repeatType:d="loop",ease:h="easeInOut",times:m}={}){const g={[i]:s};m&&(g.offset=m);const y=cp(h,u);return Array.isArray(y)&&(g.easing=y),n.animate(g,{delay:l,duration:u,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:f+1,direction:d==="reverse"?"alternate":"normal"})}const Fv=qa(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Gs=10,Iv=2e4;function Ov(n){return Ja(n.type)||n.type==="spring"||!up(n.ease)}function Bv(n,i){const s=new au({...i,keyframes:n,repeat:0,delay:0,isGenerator:!0});let l={done:!1,value:n[0]};const u=[];let f=0;for(;!l.done&&f<Iv;)l=s.sample(f),u.push(l.value),f+=Gs;return{times:void 0,keyframes:u,duration:f-Gs,ease:"linear"}}const Bp={anticipate:gp,backInOut:mp,circInOut:vp};function Uv(n){return n in Bp}class If extends Lp{constructor(i){super(i);const{name:s,motionValue:l,element:u,keyframes:f}=this.options;this.resolver=new Dp(f,(d,h)=>this.onKeyframesResolved(d,h),s,l,u),this.resolver.scheduleResolve()}initPlayback(i,s){let{duration:l=300,times:u,ease:f,type:d,motionValue:h,name:m,startTime:g}=this.options;if(!h.owner||!h.owner.current)return!1;if(typeof f=="string"&&bs()&&Uv(f)&&(f=Bp[f]),Ov(this.options)){const{onComplete:w,onUpdate:k,motionValue:R,element:A,...j}=this.options,M=Bv(i,j);i=M.keyframes,i.length===1&&(i[1]=i[0]),l=M.duration,u=M.times,f=M.ease,d="keyframes"}const y=zv(h.owner.current,m,i,{...this.options,duration:l,times:u,ease:f});return y.startTime=g??this.calcStartTime(),this.pendingTimeline?(Ef(y,this.pendingTimeline),this.pendingTimeline=void 0):y.onfinish=()=>{const{onComplete:w}=this.options;h.set(ro(i,this.options,s)),w&&w(),this.cancel(),this.resolveFinishedPromise()},{animation:y,duration:l,times:u,type:d,ease:f,keyframes:i}}get duration(){const{resolved:i}=this;if(!i)return 0;const{duration:s}=i;return Gt(s)}get time(){const{resolved:i}=this;if(!i)return 0;const{animation:s}=i;return Gt(s.currentTime||0)}set time(i){const{resolved:s}=this;if(!s)return;const{animation:l}=s;l.currentTime=Kt(i)}get speed(){const{resolved:i}=this;if(!i)return 1;const{animation:s}=i;return s.playbackRate}set speed(i){const{resolved:s}=this;if(!s)return;const{animation:l}=s;l.playbackRate=i}get state(){const{resolved:i}=this;if(!i)return"idle";const{animation:s}=i;return s.playState}get startTime(){const{resolved:i}=this;if(!i)return null;const{animation:s}=i;return s.startTime}attachTimeline(i){if(!this._resolved)this.pendingTimeline=i;else{const{resolved:s}=this;if(!s)return dt;const{animation:l}=s;Ef(l,i)}return dt}play(){if(this.isStopped)return;const{resolved:i}=this;if(!i)return;const{animation:s}=i;s.playState==="finished"&&this.updateFinishedPromise(),s.play()}pause(){const{resolved:i}=this;if(!i)return;const{animation:s}=i;s.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:i}=this;if(!i)return;const{animation:s,keyframes:l,duration:u,type:f,ease:d,times:h}=i;if(s.playState==="idle"||s.playState==="finished")return;if(this.time){const{motionValue:g,onUpdate:y,onComplete:w,element:k,...R}=this.options,A=new au({...R,keyframes:l,duration:u,type:f,ease:d,times:h,isGenerator:!0}),j=Kt(this.time);g.setWithVelocity(A.sample(j-Gs).value,A.sample(j).value,Gs)}const{onStop:m}=this.options;m&&m(),this.cancel()}complete(){const{resolved:i}=this;i&&i.animation.finish()}cancel(){const{resolved:i}=this;i&&i.animation.cancel()}static supports(i){const{motionValue:s,name:l,repeatDelay:u,repeatType:f,damping:d,type:h}=i;if(!s||!s.owner||!(s.owner.current instanceof HTMLElement))return!1;const{onUpdate:m,transformTemplate:g}=s.owner.getProps();return Fv()&&l&&Vv.has(l)&&!m&&!g&&!u&&f!=="mirror"&&d!==0&&h!=="inertia"}}const $v={type:"spring",stiffness:500,damping:25,restSpeed:10},Wv=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),bv={type:"keyframes",duration:.8},Hv={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Kv=(n,{keyframes:i})=>i.length>2?bv:In.has(n)?n.startsWith("scale")?Wv(i[1]):$v:Hv;function Gv({when:n,delay:i,delayChildren:s,staggerChildren:l,staggerDirection:u,repeat:f,repeatType:d,repeatDelay:h,from:m,elapsed:g,...y}){return!!Object.keys(y).length}const uu=(n,i,s,l={},u,f)=>d=>{const h=Qa(l,n)||{},m=h.delay||l.delay||0;let{elapsed:g=0}=l;g=g-Kt(m);let y={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:i.getVelocity(),...h,delay:-g,onUpdate:k=>{i.set(k),h.onUpdate&&h.onUpdate(k)},onComplete:()=>{d(),h.onComplete&&h.onComplete()},name:n,motionValue:i,element:f?void 0:u};Gv(h)||(y={...y,...Kv(n,y)}),y.duration&&(y.duration=Kt(y.duration)),y.repeatDelay&&(y.repeatDelay=Kt(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let w=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(y.duration=0,y.delay===0&&(w=!0)),w&&!f&&i.get()!==void 0){const k=ro(y.keyframes,h);if(k!==void 0)return xe.update(()=>{y.onUpdate(k),y.onComplete()}),new C0([])}return!f&&If.supports(y)?new If(y):new au(y)};function Qv({protectedKeys:n,needsAnimating:i},s){const l=n.hasOwnProperty(s)&&i[s]!==!0;return i[s]=!1,l}function Up(n,i,{delay:s=0,transitionOverride:l,type:u}={}){var f;let{transition:d=n.getDefaultTransition(),transitionEnd:h,...m}=i;l&&(d=l);const g=[],y=u&&n.animationState&&n.animationState.getState()[u];for(const w in m){const k=n.getValue(w,(f=n.latestValues[w])!==null&&f!==void 0?f:null),R=m[w];if(R===void 0||y&&Qv(y,w))continue;const A={delay:s,...Qa(d||{},w)};let j=!1;if(window.MotionHandoffAnimation){const D=lp(n);if(D){const O=window.MotionHandoffAnimation(D,w,xe);O!==null&&(A.startTime=O,j=!0)}}va(n,w),k.start(uu(w,k,R,n.shouldReduceMotion&&sp.has(w)?{type:!1}:A,n,j));const M=k.animation;M&&g.push(M)}return h&&Promise.all(g).then(()=>{xe.update(()=>{h&&S0(n,h)})}),g}function ja(n,i,s={}){var l;const u=no(n,i,s.type==="exit"?(l=n.presenceContext)===null||l===void 0?void 0:l.custom:void 0);let{transition:f=n.getDefaultTransition()||{}}=u||{};s.transitionOverride&&(f=s.transitionOverride);const d=u?()=>Promise.all(Up(n,u,s)):()=>Promise.resolve(),h=n.variantChildren&&n.variantChildren.size?(g=0)=>{const{delayChildren:y=0,staggerChildren:w,staggerDirection:k}=f;return Yv(n,i,y+g,w,k,s)}:()=>Promise.resolve(),{when:m}=f;if(m){const[g,y]=m==="beforeChildren"?[d,h]:[h,d];return g().then(()=>y())}else return Promise.all([d(),h(s.delay)])}function Yv(n,i,s=0,l=0,u=1,f){const d=[],h=(n.variantChildren.size-1)*l,m=u===1?(g=0)=>g*l:(g=0)=>h-g*l;return Array.from(n.variantChildren).sort(Xv).forEach((g,y)=>{g.notify("AnimationStart",i),d.push(ja(g,i,{...f,delay:s+m(y)}).then(()=>g.notify("AnimationComplete",i)))}),Promise.all(d)}function Xv(n,i){return n.sortNodePosition(i)}function Zv(n,i,s={}){n.notify("AnimationStart",i);let l;if(Array.isArray(i)){const u=i.map(f=>ja(n,f,s));l=Promise.all(u)}else if(typeof i=="string")l=ja(n,i,s);else{const u=typeof i=="function"?no(n,i,s.custom):i;l=Promise.all(Up(n,u,s))}return l.then(()=>{n.notify("AnimationComplete",i)})}const qv=za.length;function $p(n){if(!n)return;if(!n.isControllingVariants){const s=n.parent?$p(n.parent)||{}:{};return n.props.initial!==void 0&&(s.initial=n.props.initial),s}const i={};for(let s=0;s<qv;s++){const l=za[s],u=n.props[l];(mi(u)||u===!1)&&(i[l]=u)}return i}const Jv=[...Va].reverse(),ex=Va.length;function tx(n){return i=>Promise.all(i.map(({animation:s,options:l})=>Zv(n,s,l)))}function nx(n){let i=tx(n),s=Of(),l=!0;const u=m=>(g,y)=>{var w;const k=no(n,y,m==="exit"?(w=n.presenceContext)===null||w===void 0?void 0:w.custom:void 0);if(k){const{transition:R,transitionEnd:A,...j}=k;g={...g,...j,...A}}return g};function f(m){i=m(n)}function d(m){const{props:g}=n,y=$p(n.parent)||{},w=[],k=new Set;let R={},A=1/0;for(let M=0;M<ex;M++){const D=Jv[M],O=s[D],$=g[D]!==void 0?g[D]:y[D],Q=mi($),U=D===m?O.isActive:null;U===!1&&(A=M);let X=$===y[D]&&$!==g[D]&&Q;if(X&&l&&n.manuallyAnimateOnMount&&(X=!1),O.protectedKeys={...R},!O.isActive&&U===null||!$&&!O.prevProp||eo($)||typeof $=="boolean")continue;const re=rx(O.prevProp,$);let Z=re||D===m&&O.isActive&&!X&&Q||M>A&&Q,ge=!1;const Ee=Array.isArray($)?$:[$];let Ze=Ee.reduce(u(D),{});U===!1&&(Ze={});const{prevResolvedValues:st={}}=O,Ge={...st,...Ze},qe=se=>{Z=!0,k.has(se)&&(ge=!0,k.delete(se)),O.needsAnimating[se]=!0;const B=n.getValue(se);B&&(B.liveStyle=!1)};for(const se in Ge){const B=Ze[se],q=st[se];if(R.hasOwnProperty(se))continue;let b=!1;ya(B)&&ya(q)?b=!ip(B,q):b=B!==q,b?B!=null?qe(se):k.add(se):B!==void 0&&k.has(se)?qe(se):O.protectedKeys[se]=!0}O.prevProp=$,O.prevResolvedValues=Ze,O.isActive&&(R={...R,...Ze}),l&&n.blockInitialAnimation&&(Z=!1),Z&&(!(X&&re)||ge)&&w.push(...Ee.map(se=>({animation:se,options:{type:D}})))}if(k.size){const M={};k.forEach(D=>{const O=n.getBaseTarget(D),$=n.getValue(D);$&&($.liveStyle=!0),M[D]=O??null}),w.push({animation:M})}let j=!!w.length;return l&&(g.initial===!1||g.initial===g.animate)&&!n.manuallyAnimateOnMount&&(j=!1),l=!1,j?i(w):Promise.resolve()}function h(m,g){var y;if(s[m].isActive===g)return Promise.resolve();(y=n.variantChildren)===null||y===void 0||y.forEach(k=>{var R;return(R=k.animationState)===null||R===void 0?void 0:R.setActive(m,g)}),s[m].isActive=g;const w=d(m);for(const k in s)s[k].protectedKeys={};return w}return{animateChanges:d,setActive:h,setAnimateFunction:f,getState:()=>s,reset:()=>{s=Of(),l=!0}}}function rx(n,i){return typeof i=="string"?i!==n:Array.isArray(i)?!ip(i,n):!1}function Dn(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Of(){return{animate:Dn(!0),whileInView:Dn(),whileHover:Dn(),whileTap:Dn(),whileDrag:Dn(),whileFocus:Dn(),exit:Dn()}}class vn{constructor(i){this.isMounted=!1,this.node=i}update(){}}class ix extends vn{constructor(i){super(i),i.animationState||(i.animationState=nx(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();eo(i)&&(this.unmountControls=i.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:i}=this.node.getProps(),{animate:s}=this.node.prevProps||{};i!==s&&this.updateAnimationControlsSubscription()}unmount(){var i;this.node.animationState.reset(),(i=this.unmountControls)===null||i===void 0||i.call(this)}}let sx=0;class ox extends vn{constructor(){super(...arguments),this.id=sx++}update(){if(!this.node.presenceContext)return;const{isPresent:i,onExitComplete:s}=this.node.presenceContext,{isPresent:l}=this.node.prevPresenceContext||{};if(!this.node.animationState||i===l)return;const u=this.node.animationState.setActive("exit",!i);s&&!i&&u.then(()=>s(this.id))}mount(){const{register:i}=this.node.presenceContext||{};i&&(this.unmount=i(this.id))}unmount(){}}const lx={animation:{Feature:ix},exit:{Feature:ox}},At={x:!1,y:!1};function Wp(){return At.x||At.y}function ax(n){return n==="x"||n==="y"?At[n]?null:(At[n]=!0,()=>{At[n]=!1}):At.x||At.y?null:(At.x=At.y=!0,()=>{At.x=At.y=!1})}const cu=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1;function xi(n,i,s,l={passive:!0}){return n.addEventListener(i,s,l),()=>n.removeEventListener(i,s)}function Ti(n){return{point:{x:n.pageX,y:n.pageY}}}const ux=n=>i=>cu(i)&&n(i,Ti(i));function di(n,i,s,l){return xi(n,i,ux(s),l)}const Bf=(n,i)=>Math.abs(n-i);function cx(n,i){const s=Bf(n.x,i.x),l=Bf(n.y,i.y);return Math.sqrt(s**2+l**2)}class bp{constructor(i,s,{transformPagePoint:l,contextWindow:u,dragSnapToOrigin:f=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=ua(this.lastMoveEventInfo,this.history),k=this.startEvent!==null,R=cx(w.offset,{x:0,y:0})>=3;if(!k&&!R)return;const{point:A}=w,{timestamp:j}=Be;this.history.push({...A,timestamp:j});const{onStart:M,onMove:D}=this.handlers;k||(M&&M(this.lastMoveEvent,w),this.startEvent=this.lastMoveEvent),D&&D(this.lastMoveEvent,w)},this.handlePointerMove=(w,k)=>{this.lastMoveEvent=w,this.lastMoveEventInfo=aa(k,this.transformPagePoint),xe.update(this.updatePoint,!0)},this.handlePointerUp=(w,k)=>{this.end();const{onEnd:R,onSessionEnd:A,resumeAnimation:j}=this.handlers;if(this.dragSnapToOrigin&&j&&j(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const M=ua(w.type==="pointercancel"?this.lastMoveEventInfo:aa(k,this.transformPagePoint),this.history);this.startEvent&&R&&R(w,M),A&&A(w,M)},!cu(i))return;this.dragSnapToOrigin=f,this.handlers=s,this.transformPagePoint=l,this.contextWindow=u||window;const d=Ti(i),h=aa(d,this.transformPagePoint),{point:m}=h,{timestamp:g}=Be;this.history=[{...m,timestamp:g}];const{onSessionStart:y}=s;y&&y(i,ua(h,this.history)),this.removeListeners=ki(di(this.contextWindow,"pointermove",this.handlePointerMove),di(this.contextWindow,"pointerup",this.handlePointerUp),di(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(i){this.handlers=i}end(){this.removeListeners&&this.removeListeners(),gn(this.updatePoint)}}function aa(n,i){return i?{point:i(n.point)}:n}function Uf(n,i){return{x:n.x-i.x,y:n.y-i.y}}function ua({point:n},i){return{point:n,delta:Uf(n,Hp(i)),offset:Uf(n,dx(i)),velocity:fx(i,.1)}}function dx(n){return n[0]}function Hp(n){return n[n.length-1]}function fx(n,i){if(n.length<2)return{x:0,y:0};let s=n.length-1,l=null;const u=Hp(n);for(;s>=0&&(l=n[s],!(u.timestamp-l.timestamp>Kt(i)));)s--;if(!l)return{x:0,y:0};const f=Gt(u.timestamp-l.timestamp);if(f===0)return{x:0,y:0};const d={x:(u.x-l.x)/f,y:(u.y-l.y)/f};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}const Kp=1e-4,hx=1-Kp,px=1+Kp,Gp=.01,mx=0-Gp,gx=0+Gp;function ft(n){return n.max-n.min}function yx(n,i,s){return Math.abs(n-i)<=s}function $f(n,i,s,l=.5){n.origin=l,n.originPoint=Ce(i.min,i.max,n.origin),n.scale=ft(s)/ft(i),n.translate=Ce(s.min,s.max,n.origin)-n.originPoint,(n.scale>=hx&&n.scale<=px||isNaN(n.scale))&&(n.scale=1),(n.translate>=mx&&n.translate<=gx||isNaN(n.translate))&&(n.translate=0)}function fi(n,i,s,l){$f(n.x,i.x,s.x,l?l.originX:void 0),$f(n.y,i.y,s.y,l?l.originY:void 0)}function Wf(n,i,s){n.min=s.min+i.min,n.max=n.min+ft(i)}function vx(n,i,s){Wf(n.x,i.x,s.x),Wf(n.y,i.y,s.y)}function bf(n,i,s){n.min=i.min-s.min,n.max=n.min+ft(i)}function hi(n,i,s){bf(n.x,i.x,s.x),bf(n.y,i.y,s.y)}function xx(n,{min:i,max:s},l){return i!==void 0&&n<i?n=l?Ce(i,n,l.min):Math.max(n,i):s!==void 0&&n>s&&(n=l?Ce(s,n,l.max):Math.min(n,s)),n}function Hf(n,i,s){return{min:i!==void 0?n.min+i:void 0,max:s!==void 0?n.max+s-(n.max-n.min):void 0}}function wx(n,{top:i,left:s,bottom:l,right:u}){return{x:Hf(n.x,s,u),y:Hf(n.y,i,l)}}function Kf(n,i){let s=i.min-n.min,l=i.max-n.max;return i.max-i.min<n.max-n.min&&([s,l]=[l,s]),{min:s,max:l}}function Sx(n,i){return{x:Kf(n.x,i.x),y:Kf(n.y,i.y)}}function kx(n,i){let s=.5;const l=ft(n),u=ft(i);return u>l?s=gr(i.min,i.max-l,n.min):l>u&&(s=gr(n.min,n.max-u,i.min)),Qt(0,1,s)}function Tx(n,i){const s={};return i.min!==void 0&&(s.min=i.min-n.min),i.max!==void 0&&(s.max=i.max-n.min),s}const Na=.35;function Px(n=Na){return n===!1?n=0:n===!0&&(n=Na),{x:Gf(n,"left","right"),y:Gf(n,"top","bottom")}}function Gf(n,i,s){return{min:Qf(n,i),max:Qf(n,s)}}function Qf(n,i){return typeof n=="number"?n:n[i]||0}const Yf=()=>({translate:0,scale:1,origin:0,originPoint:0}),fr=()=>({x:Yf(),y:Yf()}),Xf=()=>({min:0,max:0}),Me=()=>({x:Xf(),y:Xf()});function wt(n){return[n("x"),n("y")]}function Qp({top:n,left:i,right:s,bottom:l}){return{x:{min:i,max:s},y:{min:n,max:l}}}function Cx({x:n,y:i}){return{top:i.min,right:n.max,bottom:i.max,left:n.min}}function Ex(n,i){if(!i)return n;const s=i({x:n.left,y:n.top}),l=i({x:n.right,y:n.bottom});return{top:s.y,left:s.x,bottom:l.y,right:l.x}}function ca(n){return n===void 0||n===1}function Ra({scale:n,scaleX:i,scaleY:s}){return!ca(n)||!ca(i)||!ca(s)}function Ln(n){return Ra(n)||Yp(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function Yp(n){return Zf(n.x)||Zf(n.y)}function Zf(n){return n&&n!=="0%"}function Qs(n,i,s){const l=n-s,u=i*l;return s+u}function qf(n,i,s,l,u){return u!==void 0&&(n=Qs(n,u,l)),Qs(n,s,l)+i}function Aa(n,i=0,s=1,l,u){n.min=qf(n.min,i,s,l,u),n.max=qf(n.max,i,s,l,u)}function Xp(n,{x:i,y:s}){Aa(n.x,i.translate,i.scale,i.originPoint),Aa(n.y,s.translate,s.scale,s.originPoint)}const Jf=.999999999999,eh=1.0000000000001;function jx(n,i,s,l=!1){const u=s.length;if(!u)return;i.x=i.y=1;let f,d;for(let h=0;h<u;h++){f=s[h],d=f.projectionDelta;const{visualElement:m}=f.options;m&&m.props.style&&m.props.style.display==="contents"||(l&&f.options.layoutScroll&&f.scroll&&f!==f.root&&pr(n,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),d&&(i.x*=d.x.scale,i.y*=d.y.scale,Xp(n,d)),l&&Ln(f.latestValues)&&pr(n,f.latestValues))}i.x<eh&&i.x>Jf&&(i.x=1),i.y<eh&&i.y>Jf&&(i.y=1)}function hr(n,i){n.min=n.min+i,n.max=n.max+i}function th(n,i,s,l,u=.5){const f=Ce(n.min,n.max,u);Aa(n,i,s,f,l)}function pr(n,i){th(n.x,i.x,i.scaleX,i.scale,i.originX),th(n.y,i.y,i.scaleY,i.scale,i.originY)}function Zp(n,i){return Qp(Ex(n.getBoundingClientRect(),i))}function Nx(n,i,s){const l=Zp(n,s),{scroll:u}=i;return u&&(hr(l.x,u.offset.x),hr(l.y,u.offset.y)),l}const qp=({current:n})=>n?n.ownerDocument.defaultView:null,Rx=new WeakMap;class Ax{constructor(i){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Me(),this.visualElement=i}start(i,{snapToCursor:s=!1}={}){const{presenceContext:l}=this.visualElement;if(l&&l.isPresent===!1)return;const u=y=>{const{dragSnapToOrigin:w}=this.getProps();w?this.pauseAnimation():this.stopAnimation(),s&&this.snapToCursor(Ti(y).point)},f=(y,w)=>{const{drag:k,dragPropagation:R,onDragStart:A}=this.getProps();if(k&&!R&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ax(k),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),wt(M=>{let D=this.getAxisMotionValue(M).get()||0;if(zt.test(D)){const{projection:O}=this.visualElement;if(O&&O.layout){const $=O.layout.layoutBox[M];$&&(D=ft($)*(parseFloat(D)/100))}}this.originPoint[M]=D}),A&&xe.postRender(()=>A(y,w)),va(this.visualElement,"transform");const{animationState:j}=this.visualElement;j&&j.setActive("whileDrag",!0)},d=(y,w)=>{const{dragPropagation:k,dragDirectionLock:R,onDirectionLock:A,onDrag:j}=this.getProps();if(!k&&!this.openDragLock)return;const{offset:M}=w;if(R&&this.currentDirection===null){this.currentDirection=Mx(M),this.currentDirection!==null&&A&&A(this.currentDirection);return}this.updateAxis("x",w.point,M),this.updateAxis("y",w.point,M),this.visualElement.render(),j&&j(y,w)},h=(y,w)=>this.stop(y,w),m=()=>wt(y=>{var w;return this.getAnimationState(y)==="paused"&&((w=this.getAxisMotionValue(y).animation)===null||w===void 0?void 0:w.play())}),{dragSnapToOrigin:g}=this.getProps();this.panSession=new bp(i,{onSessionStart:u,onStart:f,onMove:d,onSessionEnd:h,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,contextWindow:qp(this.visualElement)})}stop(i,s){const l=this.isDragging;if(this.cancel(),!l)return;const{velocity:u}=s;this.startAnimation(u);const{onDragEnd:f}=this.getProps();f&&xe.postRender(()=>f(i,s))}cancel(){this.isDragging=!1;const{projection:i,animationState:s}=this.visualElement;i&&(i.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:l}=this.getProps();!l&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}updateAxis(i,s,l){const{drag:u}=this.getProps();if(!l||!Is(i,u,this.currentDirection))return;const f=this.getAxisMotionValue(i);let d=this.originPoint[i]+l[i];this.constraints&&this.constraints[i]&&(d=xx(d,this.constraints[i],this.elastic[i])),f.set(d)}resolveConstraints(){var i;const{dragConstraints:s,dragElastic:l}=this.getProps(),u=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)===null||i===void 0?void 0:i.layout,f=this.constraints;s&&cr(s)?this.constraints||(this.constraints=this.resolveRefConstraints()):s&&u?this.constraints=wx(u.layoutBox,s):this.constraints=!1,this.elastic=Px(l),f!==this.constraints&&u&&this.constraints&&!this.hasMutatedConstraints&&wt(d=>{this.constraints!==!1&&this.getAxisMotionValue(d)&&(this.constraints[d]=Tx(u.layoutBox[d],this.constraints[d]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:s}=this.getProps();if(!i||!cr(i))return!1;const l=i.current,{projection:u}=this.visualElement;if(!u||!u.layout)return!1;const f=Nx(l,u.root,this.visualElement.getTransformPagePoint());let d=Sx(u.layout.layoutBox,f);if(s){const h=s(Cx(d));this.hasMutatedConstraints=!!h,h&&(d=Qp(h))}return d}startAnimation(i){const{drag:s,dragMomentum:l,dragElastic:u,dragTransition:f,dragSnapToOrigin:d,onDragTransitionEnd:h}=this.getProps(),m=this.constraints||{},g=wt(y=>{if(!Is(y,s,this.currentDirection))return;let w=m&&m[y]||{};d&&(w={min:0,max:0});const k=u?200:1e6,R=u?40:1e7,A={type:"inertia",velocity:l?i[y]:0,bounceStiffness:k,bounceDamping:R,timeConstant:750,restDelta:1,restSpeed:10,...f,...w};return this.startAxisValueAnimation(y,A)});return Promise.all(g).then(h)}startAxisValueAnimation(i,s){const l=this.getAxisMotionValue(i);return va(this.visualElement,i),l.start(uu(i,l,0,s,this.visualElement,!1))}stopAnimation(){wt(i=>this.getAxisMotionValue(i).stop())}pauseAnimation(){wt(i=>{var s;return(s=this.getAxisMotionValue(i).animation)===null||s===void 0?void 0:s.pause()})}getAnimationState(i){var s;return(s=this.getAxisMotionValue(i).animation)===null||s===void 0?void 0:s.state}getAxisMotionValue(i){const s=`_drag${i.toUpperCase()}`,l=this.visualElement.getProps(),u=l[s];return u||this.visualElement.getValue(i,(l.initial?l.initial[i]:void 0)||0)}snapToCursor(i){wt(s=>{const{drag:l}=this.getProps();if(!Is(s,l,this.currentDirection))return;const{projection:u}=this.visualElement,f=this.getAxisMotionValue(s);if(u&&u.layout){const{min:d,max:h}=u.layout.layoutBox[s];f.set(i[s]-Ce(d,h,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:s}=this.getProps(),{projection:l}=this.visualElement;if(!cr(s)||!l||!this.constraints)return;this.stopAnimation();const u={x:0,y:0};wt(d=>{const h=this.getAxisMotionValue(d);if(h&&this.constraints!==!1){const m=h.get();u[d]=kx({min:m,max:m},this.constraints[d])}});const{transformTemplate:f}=this.visualElement.getProps();this.visualElement.current.style.transform=f?f({},""):"none",l.root&&l.root.updateScroll(),l.updateLayout(),this.resolveConstraints(),wt(d=>{if(!Is(d,i,null))return;const h=this.getAxisMotionValue(d),{min:m,max:g}=this.constraints[d];h.set(Ce(m,g,u[d]))})}addListeners(){if(!this.visualElement.current)return;Rx.set(this.visualElement,this);const i=this.visualElement.current,s=di(i,"pointerdown",m=>{const{drag:g,dragListener:y=!0}=this.getProps();g&&y&&this.start(m)}),l=()=>{const{dragConstraints:m}=this.getProps();cr(m)&&m.current&&(this.constraints=this.resolveRefConstraints())},{projection:u}=this.visualElement,f=u.addEventListener("measure",l);u&&!u.layout&&(u.root&&u.root.updateScroll(),u.updateLayout()),xe.read(l);const d=xi(window,"resize",()=>this.scalePositionWithinConstraints()),h=u.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:g})=>{this.isDragging&&g&&(wt(y=>{const w=this.getAxisMotionValue(y);w&&(this.originPoint[y]+=m[y].translate,w.set(w.get()+m[y].translate))}),this.visualElement.render())}));return()=>{d(),s(),f(),h&&h()}}getProps(){const i=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:l=!1,dragPropagation:u=!1,dragConstraints:f=!1,dragElastic:d=Na,dragMomentum:h=!0}=i;return{...i,drag:s,dragDirectionLock:l,dragPropagation:u,dragConstraints:f,dragElastic:d,dragMomentum:h}}}function Is(n,i,s){return(i===!0||i===n)&&(s===null||s===n)}function Mx(n,i=10){let s=null;return Math.abs(n.y)>i?s="y":Math.abs(n.x)>i&&(s="x"),s}class Dx extends vn{constructor(i){super(i),this.removeGroupControls=dt,this.removeListeners=dt,this.controls=new Ax(i)}mount(){const{dragControls:i}=this.node.getProps();i&&(this.removeGroupControls=i.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||dt}unmount(){this.removeGroupControls(),this.removeListeners()}}const nh=n=>(i,s)=>{n&&xe.postRender(()=>n(i,s))};class Lx extends vn{constructor(){super(...arguments),this.removePointerDownListener=dt}onPointerDown(i){this.session=new bp(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:qp(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:s,onPan:l,onPanEnd:u}=this.node.getProps();return{onSessionStart:nh(i),onStart:nh(s),onMove:l,onEnd:(f,d)=>{delete this.session,u&&xe.postRender(()=>u(f,d))}}}mount(){this.removePointerDownListener=di(this.node.current,"pointerdown",i=>this.onPointerDown(i))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Us={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rh(n,i){return i.max===i.min?0:n/(i.max-i.min)*100}const oi={correct:(n,i)=>{if(!i.target)return n;if(typeof n=="string")if(te.test(n))n=parseFloat(n);else return n;const s=rh(n,i.target.x),l=rh(n,i.target.y);return`${s}% ${l}%`}},_x={correct:(n,{treeScale:i,projectionDelta:s})=>{const l=n,u=yn.parse(n);if(u.length>5)return l;const f=yn.createTransformer(n),d=typeof u[0]!="number"?1:0,h=s.x.scale*i.x,m=s.y.scale*i.y;u[0+d]/=h,u[1+d]/=m;const g=Ce(h,m,.5);return typeof u[2+d]=="number"&&(u[2+d]/=g),typeof u[3+d]=="number"&&(u[3+d]/=g),f(u)}};class Vx extends F.Component{componentDidMount(){const{visualElement:i,layoutGroup:s,switchLayoutGroup:l,layoutId:u}=this.props,{projection:f}=i;l0(zx),f&&(s.group&&s.group.add(f),l&&l.register&&u&&l.register(f),f.root.didUpdate(),f.addEventListener("animationComplete",()=>{this.safeToRemove()}),f.setOptions({...f.options,onExitComplete:()=>this.safeToRemove()})),Us.hasEverUpdated=!0}getSnapshotBeforeUpdate(i){const{layoutDependency:s,visualElement:l,drag:u,isPresent:f}=this.props,d=l.projection;return d&&(d.isPresent=f,u||i.layoutDependency!==s||s===void 0?d.willUpdate():this.safeToRemove(),i.isPresent!==f&&(f?d.promote():d.relegate()||xe.postRender(()=>{const h=d.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:i}=this.props.visualElement;i&&(i.root.didUpdate(),Ia.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:s,switchLayoutGroup:l}=this.props,{projection:u}=i;u&&(u.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(u),l&&l.deregister&&l.deregister(u))}safeToRemove(){const{safeToRemove:i}=this.props;i&&i()}render(){return null}}function Jp(n){const[i,s]=zh(),l=F.useContext(La);return v.jsx(Vx,{...n,layoutGroup:l,switchLayoutGroup:F.useContext(Hh),isPresent:i,safeToRemove:s})}const zx={borderRadius:{...oi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:oi,borderTopRightRadius:oi,borderBottomLeftRadius:oi,borderBottomRightRadius:oi,boxShadow:_x};function Fx(n,i,s){const l=Ke(n)?n:yi(n);return l.start(uu("",l,i,s)),l.animation}function Ix(n){return n instanceof SVGElement&&n.tagName!=="svg"}const Ox=(n,i)=>n.depth-i.depth;class Bx{constructor(){this.children=[],this.isDirty=!1}add(i){Ya(this.children,i),this.isDirty=!0}remove(i){Xa(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(Ox),this.isDirty=!1,this.children.forEach(i)}}function Ux(n,i){const s=Ft.now(),l=({timestamp:u})=>{const f=u-s;f>=i&&(gn(l),n(f-i))};return xe.read(l,!0),()=>gn(l)}const em=["TopLeft","TopRight","BottomLeft","BottomRight"],$x=em.length,ih=n=>typeof n=="string"?parseFloat(n):n,sh=n=>typeof n=="number"||te.test(n);function Wx(n,i,s,l,u,f){u?(n.opacity=Ce(0,s.opacity!==void 0?s.opacity:1,bx(l)),n.opacityExit=Ce(i.opacity!==void 0?i.opacity:1,0,Hx(l))):f&&(n.opacity=Ce(i.opacity!==void 0?i.opacity:1,s.opacity!==void 0?s.opacity:1,l));for(let d=0;d<$x;d++){const h=`border${em[d]}Radius`;let m=oh(i,h),g=oh(s,h);if(m===void 0&&g===void 0)continue;m||(m=0),g||(g=0),m===0||g===0||sh(m)===sh(g)?(n[h]=Math.max(Ce(ih(m),ih(g),l),0),(zt.test(g)||zt.test(m))&&(n[h]+="%")):n[h]=g}(i.rotate||s.rotate)&&(n.rotate=Ce(i.rotate||0,s.rotate||0,l))}function oh(n,i){return n[i]!==void 0?n[i]:n.borderRadius}const bx=tm(0,.5,yp),Hx=tm(.5,.95,dt);function tm(n,i,s){return l=>l<n?0:l>i?1:s(gr(n,i,l))}function lh(n,i){n.min=i.min,n.max=i.max}function xt(n,i){lh(n.x,i.x),lh(n.y,i.y)}function ah(n,i){n.translate=i.translate,n.scale=i.scale,n.originPoint=i.originPoint,n.origin=i.origin}function uh(n,i,s,l,u){return n-=i,n=Qs(n,1/s,l),u!==void 0&&(n=Qs(n,1/u,l)),n}function Kx(n,i=0,s=1,l=.5,u,f=n,d=n){if(zt.test(i)&&(i=parseFloat(i),i=Ce(d.min,d.max,i/100)-d.min),typeof i!="number")return;let h=Ce(f.min,f.max,l);n===f&&(h-=i),n.min=uh(n.min,i,s,h,u),n.max=uh(n.max,i,s,h,u)}function ch(n,i,[s,l,u],f,d){Kx(n,i[s],i[l],i[u],i.scale,f,d)}const Gx=["x","scaleX","originX"],Qx=["y","scaleY","originY"];function dh(n,i,s,l){ch(n.x,i,Gx,s?s.x:void 0,l?l.x:void 0),ch(n.y,i,Qx,s?s.y:void 0,l?l.y:void 0)}function fh(n){return n.translate===0&&n.scale===1}function nm(n){return fh(n.x)&&fh(n.y)}function hh(n,i){return n.min===i.min&&n.max===i.max}function Yx(n,i){return hh(n.x,i.x)&&hh(n.y,i.y)}function ph(n,i){return Math.round(n.min)===Math.round(i.min)&&Math.round(n.max)===Math.round(i.max)}function rm(n,i){return ph(n.x,i.x)&&ph(n.y,i.y)}function mh(n){return ft(n.x)/ft(n.y)}function gh(n,i){return n.translate===i.translate&&n.scale===i.scale&&n.originPoint===i.originPoint}class Xx{constructor(){this.members=[]}add(i){Ya(this.members,i),i.scheduleRender()}remove(i){if(Xa(this.members,i),i===this.prevLead&&(this.prevLead=void 0),i===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(i){const s=this.members.findIndex(u=>i===u);if(s===0)return!1;let l;for(let u=s;u>=0;u--){const f=this.members[u];if(f.isPresent!==!1){l=f;break}}return l?(this.promote(l),!0):!1}promote(i,s){const l=this.lead;if(i!==l&&(this.prevLead=l,this.lead=i,i.show(),l)){l.instance&&l.scheduleRender(),i.scheduleRender(),i.resumeFrom=l,s&&(i.resumeFrom.preserveOpacity=!0),l.snapshot&&(i.snapshot=l.snapshot,i.snapshot.latestValues=l.animationValues||l.latestValues),i.root&&i.root.isUpdating&&(i.isLayoutDirty=!0);const{crossfade:u}=i.options;u===!1&&l.hide()}}exitAnimationComplete(){this.members.forEach(i=>{const{options:s,resumingFrom:l}=i;s.onExitComplete&&s.onExitComplete(),l&&l.options.onExitComplete&&l.options.onExitComplete()})}scheduleRender(){this.members.forEach(i=>{i.instance&&i.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Zx(n,i,s){let l="";const u=n.x.translate/i.x,f=n.y.translate/i.y,d=(s==null?void 0:s.z)||0;if((u||f||d)&&(l=`translate3d(${u}px, ${f}px, ${d}px) `),(i.x!==1||i.y!==1)&&(l+=`scale(${1/i.x}, ${1/i.y}) `),s){const{transformPerspective:g,rotate:y,rotateX:w,rotateY:k,skewX:R,skewY:A}=s;g&&(l=`perspective(${g}px) ${l}`),y&&(l+=`rotate(${y}deg) `),w&&(l+=`rotateX(${w}deg) `),k&&(l+=`rotateY(${k}deg) `),R&&(l+=`skewX(${R}deg) `),A&&(l+=`skewY(${A}deg) `)}const h=n.x.scale*i.x,m=n.y.scale*i.y;return(h!==1||m!==1)&&(l+=`scale(${h}, ${m})`),l||"none"}const _n={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ai=typeof window<"u"&&window.MotionDebug!==void 0,da=["","X","Y","Z"],qx={visibility:"hidden"},yh=1e3;let Jx=0;function fa(n,i,s,l){const{latestValues:u}=i;u[n]&&(s[n]=u[n],i.setStaticValue(n,0),l&&(l[n]=0))}function im(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:i}=n.options;if(!i)return;const s=lp(i);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:u,layoutId:f}=n.options;window.MotionCancelOptimisedAnimation(s,"transform",xe,!(u||f))}const{parent:l}=n;l&&!l.hasCheckedOptimisedAppear&&im(l)}function sm({attachResizeListener:n,defaultParent:i,measureScroll:s,checkIsScrollRoot:l,resetTransform:u}){return class{constructor(d={},h=i==null?void 0:i()){this.id=Jx++,this.animationId=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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ai&&(_n.totalNodes=_n.resolvedTargetDeltas=_n.recalculatedProjection=0),this.nodes.forEach(n1),this.nodes.forEach(l1),this.nodes.forEach(a1),this.nodes.forEach(r1),ai&&window.MotionDebug.record(_n)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=d,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 Bx)}addEventListener(d,h){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new Za),this.eventHandlers.get(d).add(h)}notifyListeners(d,...h){const m=this.eventHandlers.get(d);m&&m.notify(...h)}hasListeners(d){return this.eventHandlers.has(d)}mount(d,h=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Ix(d),this.instance=d;const{layoutId:m,layout:g,visualElement:y}=this.options;if(y&&!y.current&&y.mount(d),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),h&&(g||m)&&(this.isLayoutDirty=!0),n){let w;const k=()=>this.root.updateBlockedByResize=!1;n(d,()=>{this.root.updateBlockedByResize=!0,w&&w(),w=Ux(k,250),Us.hasAnimatedSinceResize&&(Us.hasAnimatedSinceResize=!1,this.nodes.forEach(xh))})}m&&this.root.registerSharedNode(m,this),this.options.animate!==!1&&y&&(m||g)&&this.addEventListener("didUpdate",({delta:w,hasLayoutChanged:k,hasRelativeTargetChanged:R,layout:A})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const j=this.options.transition||y.getDefaultTransition()||h1,{onLayoutAnimationStart:M,onLayoutAnimationComplete:D}=y.getProps(),O=!this.targetLayout||!rm(this.targetLayout,A)||R,$=!k&&R;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||$||k&&(O||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(w,$);const Q={...Qa(j,"layout"),onPlay:M,onComplete:D};(y.shouldReduceMotion||this.options.layoutRoot)&&(Q.delay=0,Q.type=!1),this.startAnimation(Q)}else k||xh(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=A})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const d=this.getStack();d&&d.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,gn(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(u1),this.animationId++)}getTransformTemplate(){const{visualElement:d}=this.options;return d&&d.getProps().transformTemplate}willUpdate(d=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&im(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const w=this.path[y];w.shouldResetTransform=!0,w.updateScroll("snapshot"),w.options.layoutRoot&&w.willUpdate(!1)}const{layoutId:h,layout:m}=this.options;if(h===void 0&&!m)return;const g=this.getTransformTemplate();this.prevTransformTemplateValue=g?g(this.latestValues,""):void 0,this.updateSnapshot(),d&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(vh);return}this.isUpdating||this.nodes.forEach(s1),this.isUpdating=!1,this.nodes.forEach(o1),this.nodes.forEach(e1),this.nodes.forEach(t1),this.clearAllSnapshots();const h=Ft.now();Be.delta=Qt(0,1e3/60,h-Be.timestamp),Be.timestamp=h,Be.isProcessing=!0,ra.update.process(Be),ra.preRender.process(Be),ra.render.process(Be),Be.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ia.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(i1),this.sharedNodes.forEach(c1)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,xe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){xe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}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 d=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Me(),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,d?d.layoutBox:void 0)}updateScroll(d="measure"){let h=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===d&&(h=!1),h){const m=l(this.instance);this.scroll={animationId:this.root.animationId,phase:d,isRoot:m,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:m}}}resetTransform(){if(!u)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!nm(this.projectionDelta),m=this.getTransformTemplate(),g=m?m(this.latestValues,""):void 0,y=g!==this.prevTransformTemplateValue;d&&(h||Ln(this.latestValues)||y)&&(u(this.instance,g),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const h=this.measurePageBox();let m=this.removeElementScroll(h);return d&&(m=this.removeTransform(m)),p1(m),{animationId:this.root.animationId,measuredBox:h,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){var d;const{visualElement:h}=this.options;if(!h)return Me();const m=h.measureViewportBox();if(!(((d=this.scroll)===null||d===void 0?void 0:d.wasRoot)||this.path.some(m1))){const{scroll:y}=this.root;y&&(hr(m.x,y.offset.x),hr(m.y,y.offset.y))}return m}removeElementScroll(d){var h;const m=Me();if(xt(m,d),!((h=this.scroll)===null||h===void 0)&&h.wasRoot)return m;for(let g=0;g<this.path.length;g++){const y=this.path[g],{scroll:w,options:k}=y;y!==this.root&&w&&k.layoutScroll&&(w.wasRoot&&xt(m,d),hr(m.x,w.offset.x),hr(m.y,w.offset.y))}return m}applyTransform(d,h=!1){const m=Me();xt(m,d);for(let g=0;g<this.path.length;g++){const y=this.path[g];!h&&y.options.layoutScroll&&y.scroll&&y!==y.root&&pr(m,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),Ln(y.latestValues)&&pr(m,y.latestValues)}return Ln(this.latestValues)&&pr(m,this.latestValues),m}removeTransform(d){const h=Me();xt(h,d);for(let m=0;m<this.path.length;m++){const g=this.path[m];if(!g.instance||!Ln(g.latestValues))continue;Ra(g.latestValues)&&g.updateSnapshot();const y=Me(),w=g.measurePageBox();xt(y,w),dh(h,g.latestValues,g.snapshot?g.snapshot.layoutBox:void 0,y)}return Ln(this.latestValues)&&dh(h,this.latestValues),h}setTargetDelta(d){this.targetDelta=d,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(d){this.options={...this.options,...d,crossfade:d.crossfade!==void 0?d.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!==Be.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(d=!1){var h;const m=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=m.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=m.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=m.isSharedProjectionDirty);const g=!!this.resumingFrom||this!==m;if(!(d||g&&this.isSharedProjectionDirty||this.isProjectionDirty||!((h=this.parent)===null||h===void 0)&&h.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:w,layoutId:k}=this.options;if(!(!this.layout||!(w||k))){if(this.resolvedRelativeTargetAt=Be.timestamp,!this.targetDelta&&!this.relativeTarget){const R=this.getClosestProjectingParent();R&&R.layout&&this.animationProgress!==1?(this.relativeParent=R,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Me(),this.relativeTargetOrigin=Me(),hi(this.relativeTargetOrigin,this.layout.layoutBox,R.layout.layoutBox),xt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Me(),this.targetWithTransforms=Me()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),vx(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):xt(this.target,this.layout.layoutBox),Xp(this.target,this.targetDelta)):xt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const R=this.getClosestProjectingParent();R&&!!R.resumingFrom==!!this.resumingFrom&&!R.options.layoutScroll&&R.target&&this.animationProgress!==1?(this.relativeParent=R,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Me(),this.relativeTargetOrigin=Me(),hi(this.relativeTargetOrigin,this.target,R.target),xt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ai&&_n.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Ra(this.parent.latestValues)||Yp(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var d;const h=this.getLead(),m=!!this.resumingFrom||this!==h;let g=!0;if((this.isProjectionDirty||!((d=this.parent)===null||d===void 0)&&d.isProjectionDirty)&&(g=!1),m&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(g=!1),this.resolvedRelativeTargetAt===Be.timestamp&&(g=!1),g)return;const{layout:y,layoutId:w}=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||w))return;xt(this.layoutCorrected,this.layout.layoutBox);const k=this.treeScale.x,R=this.treeScale.y;jx(this.layoutCorrected,this.treeScale,this.path,m),h.layout&&!h.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(h.target=h.layout.layoutBox,h.targetWithTransforms=Me());const{target:A}=h;if(!A){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ah(this.prevProjectionDelta.x,this.projectionDelta.x),ah(this.prevProjectionDelta.y,this.projectionDelta.y)),fi(this.projectionDelta,this.layoutCorrected,A,this.latestValues),(this.treeScale.x!==k||this.treeScale.y!==R||!gh(this.projectionDelta.x,this.prevProjectionDelta.x)||!gh(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",A)),ai&&_n.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(d=!0){var h;if((h=this.options.visualElement)===null||h===void 0||h.scheduleRender(),d){const m=this.getStack();m&&m.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=fr(),this.projectionDelta=fr(),this.projectionDeltaWithTransform=fr()}setAnimationOrigin(d,h=!1){const m=this.snapshot,g=m?m.latestValues:{},y={...this.latestValues},w=fr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const k=Me(),R=m?m.source:void 0,A=this.layout?this.layout.source:void 0,j=R!==A,M=this.getStack(),D=!M||M.members.length<=1,O=!!(j&&!D&&this.options.crossfade===!0&&!this.path.some(f1));this.animationProgress=0;let $;this.mixTargetDelta=Q=>{const U=Q/1e3;wh(w.x,d.x,U),wh(w.y,d.y,U),this.setTargetDelta(w),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(hi(k,this.layout.layoutBox,this.relativeParent.layout.layoutBox),d1(this.relativeTarget,this.relativeTargetOrigin,k,U),$&&Yx(this.relativeTarget,$)&&(this.isProjectionDirty=!1),$||($=Me()),xt($,this.relativeTarget)),j&&(this.animationValues=y,Wx(y,g,this.latestValues,U,O,D)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=U},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(gn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=xe.update(()=>{Us.hasAnimatedSinceResize=!0,this.currentAnimation=Fx(0,yh,{...d,onUpdate:h=>{this.mixTargetDelta(h),d.onUpdate&&d.onUpdate(h)},onComplete:()=>{d.onComplete&&d.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 d=this.getStack();d&&d.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(yh),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:h,target:m,layout:g,latestValues:y}=d;if(!(!h||!m||!g)){if(this!==d&&this.layout&&g&&om(this.options.animationType,this.layout.layoutBox,g.layoutBox)){m=this.target||Me();const w=ft(this.layout.layoutBox.x);m.x.min=d.target.x.min,m.x.max=m.x.min+w;const k=ft(this.layout.layoutBox.y);m.y.min=d.target.y.min,m.y.max=m.y.min+k}xt(h,m),pr(h,y),fi(this.projectionDeltaWithTransform,this.layoutCorrected,h,y)}}registerSharedNode(d,h){this.sharedNodes.has(d)||this.sharedNodes.set(d,new Xx),this.sharedNodes.get(d).add(h);const g=h.options.initialPromotionConfig;h.promote({transition:g?g.transition:void 0,preserveFollowOpacity:g&&g.shouldPreserveFollowOpacity?g.shouldPreserveFollowOpacity(h):void 0})}isLead(){const d=this.getStack();return d?d.lead===this:!0}getLead(){var d;const{layoutId:h}=this.options;return h?((d=this.getStack())===null||d===void 0?void 0:d.lead)||this:this}getPrevLead(){var d;const{layoutId:h}=this.options;return h?(d=this.getStack())===null||d===void 0?void 0:d.prevLead:void 0}getStack(){const{layoutId:d}=this.options;if(d)return this.root.sharedNodes.get(d)}promote({needsReset:d,transition:h,preserveFollowOpacity:m}={}){const g=this.getStack();g&&g.promote(this,m),d&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const d=this.getStack();return d?d.relegate(this):!1}resetSkewAndRotation(){const{visualElement:d}=this.options;if(!d)return;let h=!1;const{latestValues:m}=d;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(h=!0),!h)return;const g={};m.z&&fa("z",d,g,this.animationValues);for(let y=0;y<da.length;y++)fa(`rotate${da[y]}`,d,g,this.animationValues),fa(`skew${da[y]}`,d,g,this.animationValues);d.render();for(const y in g)d.setStaticValue(y,g[y]),this.animationValues&&(this.animationValues[y]=g[y]);d.scheduleRender()}getProjectionStyles(d){var h,m;if(!this.instance||this.isSVG)return;if(!this.isVisible)return qx;const g={visibility:""},y=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,g.opacity="",g.pointerEvents=Os(d==null?void 0:d.pointerEvents)||"",g.transform=y?y(this.latestValues,""):"none",g;const w=this.getLead();if(!this.projectionDelta||!this.layout||!w.target){const j={};return this.options.layoutId&&(j.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,j.pointerEvents=Os(d==null?void 0:d.pointerEvents)||""),this.hasProjected&&!Ln(this.latestValues)&&(j.transform=y?y({},""):"none",this.hasProjected=!1),j}const k=w.animationValues||w.latestValues;this.applyTransformsToTarget(),g.transform=Zx(this.projectionDeltaWithTransform,this.treeScale,k),y&&(g.transform=y(k,g.transform));const{x:R,y:A}=this.projectionDelta;g.transformOrigin=`${R.origin*100}% ${A.origin*100}% 0`,w.animationValues?g.opacity=w===this?(m=(h=k.opacity)!==null&&h!==void 0?h:this.latestValues.opacity)!==null&&m!==void 0?m:1:this.preserveOpacity?this.latestValues.opacity:k.opacityExit:g.opacity=w===this?k.opacity!==void 0?k.opacity:"":k.opacityExit!==void 0?k.opacityExit:0;for(const j in Ws){if(k[j]===void 0)continue;const{correct:M,applyTo:D}=Ws[j],O=g.transform==="none"?k[j]:M(k[j],w);if(D){const $=D.length;for(let Q=0;Q<$;Q++)g[D[Q]]=O}else g[j]=O}return this.options.layoutId&&(g.pointerEvents=w===this?Os(d==null?void 0:d.pointerEvents)||"":"none"),g}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>{var h;return(h=d.currentAnimation)===null||h===void 0?void 0:h.stop()}),this.root.nodes.forEach(vh),this.root.sharedNodes.clear()}}}function e1(n){n.updateLayout()}function t1(n){var i;const s=((i=n.resumeFrom)===null||i===void 0?void 0:i.snapshot)||n.snapshot;if(n.isLead()&&n.layout&&s&&n.hasListeners("didUpdate")){const{layoutBox:l,measuredBox:u}=n.layout,{animationType:f}=n.options,d=s.source!==n.layout.source;f==="size"?wt(w=>{const k=d?s.measuredBox[w]:s.layoutBox[w],R=ft(k);k.min=l[w].min,k.max=k.min+R}):om(f,s.layoutBox,l)&&wt(w=>{const k=d?s.measuredBox[w]:s.layoutBox[w],R=ft(l[w]);k.max=k.min+R,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[w].max=n.relativeTarget[w].min+R)});const h=fr();fi(h,l,s.layoutBox);const m=fr();d?fi(m,n.applyTransform(u,!0),s.measuredBox):fi(m,l,s.layoutBox);const g=!nm(h);let y=!1;if(!n.resumeFrom){const w=n.getClosestProjectingParent();if(w&&!w.resumeFrom){const{snapshot:k,layout:R}=w;if(k&&R){const A=Me();hi(A,s.layoutBox,k.layoutBox);const j=Me();hi(j,l,R.layoutBox),rm(A,j)||(y=!0),w.options.layoutRoot&&(n.relativeTarget=j,n.relativeTargetOrigin=A,n.relativeParent=w)}}}n.notifyListeners("didUpdate",{layout:l,snapshot:s,delta:m,layoutDelta:h,hasLayoutChanged:g,hasRelativeTargetChanged:y})}else if(n.isLead()){const{onExitComplete:l}=n.options;l&&l()}n.options.transition=void 0}function n1(n){ai&&_n.totalNodes++,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 r1(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function i1(n){n.clearSnapshot()}function vh(n){n.clearMeasurements()}function s1(n){n.isLayoutDirty=!1}function o1(n){const{visualElement:i}=n.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),n.resetTransform()}function xh(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function l1(n){n.resolveTargetDelta()}function a1(n){n.calcProjection()}function u1(n){n.resetSkewAndRotation()}function c1(n){n.removeLeadSnapshot()}function wh(n,i,s){n.translate=Ce(i.translate,0,s),n.scale=Ce(i.scale,1,s),n.origin=i.origin,n.originPoint=i.originPoint}function Sh(n,i,s,l){n.min=Ce(i.min,s.min,l),n.max=Ce(i.max,s.max,l)}function d1(n,i,s,l){Sh(n.x,i.x,s.x,l),Sh(n.y,i.y,s.y,l)}function f1(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const h1={duration:.45,ease:[.4,0,.1,1]},kh=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),Th=kh("applewebkit/")&&!kh("chrome/")?Math.round:dt;function Ph(n){n.min=Th(n.min),n.max=Th(n.max)}function p1(n){Ph(n.x),Ph(n.y)}function om(n,i,s){return n==="position"||n==="preserve-aspect"&&!yx(mh(i),mh(s),.2)}function m1(n){var i;return n!==n.root&&((i=n.scroll)===null||i===void 0?void 0:i.wasRoot)}const g1=sm({attachResizeListener:(n,i)=>xi(n,"resize",i),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ha={current:void 0},lm=sm({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!ha.current){const n=new g1({});n.mount(window),n.setOptions({layoutScroll:!0}),ha.current=n}return ha.current},resetTransform:(n,i)=>{n.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),y1={pan:{Feature:Lx},drag:{Feature:Dx,ProjectionNode:lm,MeasureLayout:Jp}};function v1(n,i,s){var l;if(n instanceof Element)return[n];if(typeof n=="string"){let u=document;const f=(l=void 0)!==null&&l!==void 0?l:u.querySelectorAll(n);return f?Array.from(f):[]}return Array.from(n)}function am(n,i){const s=v1(n),l=new AbortController,u={passive:!0,...i,signal:l.signal};return[s,u,()=>l.abort()]}function Ch(n){return i=>{i.pointerType==="touch"||Wp()||n(i)}}function x1(n,i,s={}){const[l,u,f]=am(n,s),d=Ch(h=>{const{target:m}=h,g=i(h);if(typeof g!="function"||!m)return;const y=Ch(w=>{g(w),m.removeEventListener("pointerleave",y)});m.addEventListener("pointerleave",y,u)});return l.forEach(h=>{h.addEventListener("pointerenter",d,u)}),f}function Eh(n,i,s){const{props:l}=n;n.animationState&&l.whileHover&&n.animationState.setActive("whileHover",s==="Start");const u="onHover"+s,f=l[u];f&&xe.postRender(()=>f(i,Ti(i)))}class w1 extends vn{mount(){const{current:i}=this.node;i&&(this.unmount=x1(i,s=>(Eh(this.node,s,"Start"),l=>Eh(this.node,l,"End"))))}unmount(){}}class S1 extends vn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let i=!1;try{i=this.node.current.matches(":focus-visible")}catch{i=!0}!i||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ki(xi(this.node.current,"focus",()=>this.onFocus()),xi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const um=(n,i)=>i?n===i?!0:um(n,i.parentElement):!1,k1=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function T1(n){return k1.has(n.tagName)||n.tabIndex!==-1}const ui=new WeakSet;function jh(n){return i=>{i.key==="Enter"&&n(i)}}function pa(n,i){n.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const P1=(n,i)=>{const s=n.currentTarget;if(!s)return;const l=jh(()=>{if(ui.has(s))return;pa(s,"down");const u=jh(()=>{pa(s,"up")}),f=()=>pa(s,"cancel");s.addEventListener("keyup",u,i),s.addEventListener("blur",f,i)});s.addEventListener("keydown",l,i),s.addEventListener("blur",()=>s.removeEventListener("keydown",l),i)};function Nh(n){return cu(n)&&!Wp()}function C1(n,i,s={}){const[l,u,f]=am(n,s),d=h=>{const m=h.currentTarget;if(!Nh(h)||ui.has(m))return;ui.add(m);const g=i(h),y=(R,A)=>{window.removeEventListener("pointerup",w),window.removeEventListener("pointercancel",k),!(!Nh(R)||!ui.has(m))&&(ui.delete(m),typeof g=="function"&&g(R,{success:A}))},w=R=>{y(R,s.useGlobalTarget||um(m,R.target))},k=R=>{y(R,!1)};window.addEventListener("pointerup",w,u),window.addEventListener("pointercancel",k,u)};return l.forEach(h=>{!T1(h)&&h.getAttribute("tabindex")===null&&(h.tabIndex=0),(s.useGlobalTarget?window:h).addEventListener("pointerdown",d,u),h.addEventListener("focus",g=>P1(g,u),u)}),f}function Rh(n,i,s){const{props:l}=n;n.animationState&&l.whileTap&&n.animationState.setActive("whileTap",s==="Start");const u="onTap"+(s==="End"?"":s),f=l[u];f&&xe.postRender(()=>f(i,Ti(i)))}class E1 extends vn{mount(){const{current:i}=this.node;i&&(this.unmount=C1(i,s=>(Rh(this.node,s,"Start"),(l,{success:u})=>Rh(this.node,l,u?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ma=new WeakMap,ma=new WeakMap,j1=n=>{const i=Ma.get(n.target);i&&i(n)},N1=n=>{n.forEach(j1)};function R1({root:n,...i}){const s=n||document;ma.has(s)||ma.set(s,{});const l=ma.get(s),u=JSON.stringify(i);return l[u]||(l[u]=new IntersectionObserver(N1,{root:n,...i})),l[u]}function A1(n,i,s){const l=R1(i);return Ma.set(n,s),l.observe(n),()=>{Ma.delete(n),l.unobserve(n)}}const M1={some:0,all:1};class D1 extends vn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:i={}}=this.node.getProps(),{root:s,margin:l,amount:u="some",once:f}=i,d={root:s?s.current:void 0,rootMargin:l,threshold:typeof u=="number"?u:M1[u]},h=m=>{const{isIntersecting:g}=m;if(this.isInView===g||(this.isInView=g,f&&!g&&this.hasEnteredView))return;g&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",g);const{onViewportEnter:y,onViewportLeave:w}=this.node.getProps(),k=g?y:w;k&&k(m)};return A1(this.node.current,d,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:i,prevProps:s}=this.node;["amount","margin","root"].some(L1(i,s))&&this.startObserver()}unmount(){}}function L1({viewport:n={}},{viewport:i={}}={}){return s=>n[s]!==i[s]}const _1={inView:{Feature:D1},tap:{Feature:E1},focus:{Feature:S1},hover:{Feature:w1}},V1={layout:{ProjectionNode:lm,MeasureLayout:Jp}},Ys={current:null},du={current:!1};function cm(){if(du.current=!0,!!_a)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),i=()=>Ys.current=n.matches;n.addListener(i),i()}else Ys.current=!1}const z1=[...Mp,He,yn],F1=n=>z1.find(Ap(n)),Ah=new WeakMap;function I1(n,i,s){for(const l in i){const u=i[l],f=s[l];if(Ke(u))n.addValue(l,u);else if(Ke(f))n.addValue(l,yi(u,{owner:n}));else if(f!==u)if(n.hasValue(l)){const d=n.getValue(l);d.liveStyle===!0?d.jump(u):d.hasAnimated||d.set(u)}else{const d=n.getStaticValue(l);n.addValue(l,yi(d!==void 0?d:u,{owner:n}))}}for(const l in s)i[l]===void 0&&n.removeValue(l);return i}const Mh=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class O1{scrapeMotionValuesFromProps(i,s,l){return{}}constructor({parent:i,props:s,presenceContext:l,reducedMotionConfig:u,blockInitialAnimation:f,visualState:d},h={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ou,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},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 R=Ft.now();this.renderScheduledAt<R&&(this.renderScheduledAt=R,xe.render(this.render,!1,!0))};const{latestValues:m,renderState:g,onUpdate:y}=d;this.onUpdate=y,this.latestValues=m,this.baseTarget={...m},this.initialValues=s.initial?{...m}:{},this.renderState=g,this.parent=i,this.props=s,this.presenceContext=l,this.depth=i?i.depth+1:0,this.reducedMotionConfig=u,this.options=h,this.blockInitialAnimation=!!f,this.isControllingVariants=to(s),this.isVariantNode=Wh(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(i&&i.current);const{willChange:w,...k}=this.scrapeMotionValuesFromProps(s,{},this);for(const R in k){const A=k[R];m[R]!==void 0&&Ke(A)&&A.set(m[R],!1)}}mount(i){this.current=i,Ah.set(i,this),this.projection&&!this.projection.instance&&this.projection.mount(i),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,l)=>this.bindToMotionValue(l,s)),du.current||cm(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ys.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Ah.delete(this.current),this.projection&&this.projection.unmount(),gn(this.notifyUpdate),gn(this.render),this.valueSubscriptions.forEach(i=>i()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const i in this.events)this.events[i].clear();for(const i in this.features){const s=this.features[i];s&&(s.unmount(),s.isMounted=!1)}this.current=null}bindToMotionValue(i,s){this.valueSubscriptions.has(i)&&this.valueSubscriptions.get(i)();const l=In.has(i),u=s.on("change",h=>{this.latestValues[i]=h,this.props.onUpdate&&xe.preRender(this.notifyUpdate),l&&this.projection&&(this.projection.isTransformDirty=!0)}),f=s.on("renderRequest",this.scheduleRender);let d;window.MotionCheckAppearSync&&(d=window.MotionCheckAppearSync(this,i,s)),this.valueSubscriptions.set(i,()=>{u(),f(),d&&d(),s.owner&&s.stop()})}sortNodePosition(i){return!this.current||!this.sortInstanceNodePosition||this.type!==i.type?0:this.sortInstanceNodePosition(this.current,i.current)}updateFeatures(){let i="animation";for(i in mr){const s=mr[i];if(!s)continue;const{isEnabled:l,Feature:u}=s;if(!this.features[i]&&u&&l(this.props)&&(this.features[i]=new u(this)),this.features[i]){const f=this.features[i];f.isMounted?f.update():(f.mount(),f.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Me()}getStaticValue(i){return this.latestValues[i]}setStaticValue(i,s){this.latestValues[i]=s}update(i,s){(i.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=i,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let l=0;l<Mh.length;l++){const u=Mh[l];this.propEventSubscriptions[u]&&(this.propEventSubscriptions[u](),delete this.propEventSubscriptions[u]);const f="on"+u,d=i[f];d&&(this.propEventSubscriptions[u]=this.on(u,d))}this.prevMotionValues=I1(this,this.scrapeMotionValuesFromProps(i,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(i){return this.props.variants?this.props.variants[i]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(i){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(i),()=>s.variantChildren.delete(i)}addValue(i,s){const l=this.values.get(i);s!==l&&(l&&this.removeValue(i),this.bindToMotionValue(i,s),this.values.set(i,s),this.latestValues[i]=s.get())}removeValue(i){this.values.delete(i);const s=this.valueSubscriptions.get(i);s&&(s(),this.valueSubscriptions.delete(i)),delete this.latestValues[i],this.removeValueFromRenderState(i,this.renderState)}hasValue(i){return this.values.has(i)}getValue(i,s){if(this.props.values&&this.props.values[i])return this.props.values[i];let l=this.values.get(i);return l===void 0&&s!==void 0&&(l=yi(s===null?void 0:s,{owner:this}),this.addValue(i,l)),l}readValue(i,s){var l;let u=this.latestValues[i]!==void 0||!this.current?this.latestValues[i]:(l=this.getBaseTargetFromProps(this.props,i))!==null&&l!==void 0?l:this.readValueFromInstance(this.current,i,this.options);return u!=null&&(typeof u=="string"&&(Np(u)||xp(u))?u=parseFloat(u):!F1(u)&&yn.test(s)&&(u=Cp(i,s)),this.setBaseTarget(i,Ke(u)?u.get():u)),Ke(u)?u.get():u}setBaseTarget(i,s){this.baseTarget[i]=s}getBaseTarget(i){var s;const{initial:l}=this.props;let u;if(typeof l=="string"||typeof l=="object"){const d=Ba(this.props,l,(s=this.presenceContext)===null||s===void 0?void 0:s.custom);d&&(u=d[i])}if(l&&u!==void 0)return u;const f=this.getBaseTargetFromProps(this.props,i);return f!==void 0&&!Ke(f)?f:this.initialValues[i]!==void 0&&u===void 0?void 0:this.baseTarget[i]}on(i,s){return this.events[i]||(this.events[i]=new Za),this.events[i].add(s)}notify(i,...s){this.events[i]&&this.events[i].notify(...s)}}class dm extends O1{constructor(){super(...arguments),this.KeyframeResolver=Dp}sortInstanceNodePosition(i,s){return i.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(i,s){return i.style?i.style[s]:void 0}removeValueFromRenderState(i,{vars:s,style:l}){delete s[i],delete l[i]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:i}=this.props;Ke(i)&&(this.childSubscription=i.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}function B1(n){return window.getComputedStyle(n)}class U1 extends dm{constructor(){super(...arguments),this.type="html",this.renderInstance=qh}readValueFromInstance(i,s){if(In.has(s)){const l=su(s);return l&&l.default||0}else{const l=B1(i),u=(Yh(s)?l.getPropertyValue(s):l[s])||0;return typeof u=="string"?u.trim():u}}measureInstanceViewportBox(i,{transformPagePoint:s}){return Zp(i,s)}build(i,s,l){Wa(i,s,l.transformTemplate)}scrapeMotionValuesFromProps(i,s,l){return Ga(i,s,l)}}class $1 extends dm{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Me}getBaseTargetFromProps(i,s){return i[s]}readValueFromInstance(i,s){if(In.has(s)){const l=su(s);return l&&l.default||0}return s=Jh.has(s)?s:Fa(s),i.getAttribute(s)}scrapeMotionValuesFromProps(i,s,l){return np(i,s,l)}build(i,s,l){ba(i,s,this.isSVGTag,l.transformTemplate)}renderInstance(i,s,l,u){ep(i,s,l,u)}mount(i){this.isSVGTag=Ka(i.tagName),super.mount(i)}}const W1=(n,i)=>Oa(n)?new $1(i):new U1(i,{allowProjection:n!==F.Fragment}),b1=g0({...lx,..._1,...y1,...V1},W1),St=My(b1);function fu(){!du.current&&cm();const[n]=F.useState(Ys.current);return n}const H1={check:v.jsx("path",{d:"m5 12 4 4L19 6"}),chevron:v.jsx("path",{d:"m6 9 6 6 6-6"}),clock:v.jsxs(v.Fragment,{children:[v.jsx("circle",{cx:"12",cy:"12",r:"9"}),v.jsx("path",{d:"M12 7v5l3 2"})]}),close:v.jsx("path",{d:"m6 6 12 12M18 6 6 18"}),layers:v.jsxs(v.Fragment,{children:[v.jsx("path",{d:"m12 3 9 5-9 5-9-5 9-5Z"}),v.jsx("path",{d:"m3 12 9 5 9-5M3 16l9 5 9-5"})]}),phone:v.jsxs(v.Fragment,{children:[v.jsx("rect",{x:"7",y:"2.5",width:"10",height:"19",rx:"2.5"}),v.jsx("path",{d:"M11 18.5h2"})]}),reply:v.jsx("path",{d:"m9 5-6 6 6 6v-4h4a6 6 0 0 1 6 6v-3a6 6 0 0 0-6-6H9V5Z"}),restart:v.jsx(v.Fragment,{children:v.jsx("path",{d:"M3 12a9 9 0 1 1 2.5 6.2M3 4v8h8"})}),send:v.jsx(v.Fragment,{children:v.jsx("path",{d:"m21 3-7 18-3.5-7.5L3 10l18-7ZM21 3 10.5 13.5"})}),terminal:v.jsxs(v.Fragment,{children:[v.jsx("rect",{x:"3",y:"5",width:"18",height:"14",rx:"3"}),v.jsx("path",{d:"m7 9 3 3-3 3m6 0h4"})]}),warning:v.jsxs(v.Fragment,{children:[v.jsx("path",{d:"m10.2 5-7 12a2 2 0 0 0 1.7 3h14.2a2 2 0 0 0 1.7-3l-7-12a2 2 0 0 0-3.6 0Z"}),v.jsx("path",{d:"M12 9v4m0 3h.01"})]})};function ke({name:n,...i}){return v.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.65",strokeLinecap:"round",strokeLinejoin:"round",...i,children:H1[n]})}function K1({mode:n,connected:i,sessions:s,showPhone:l,onTogglePhone:u,onRestart:f}){const d=[{label:"Running",count:s.filter(h=>h.status==="running").length,dot:"bg-emerald-400",text:"text-emerald-300"},{label:"Waiting",count:s.filter(h=>h.status.startsWith("waiting_")).length,dot:"bg-amber-400",text:"text-amber-300"},{label:"Done",count:s.filter(h=>h.status==="done").length,dot:"bg-violet-400",text:"text-violet-300"}];return v.jsx("header",{className:"deck-header",children:v.jsxs("div",{className:"deck-header-inner",children:[v.jsxs("div",{className:"flex items-center gap-2.5",children:[v.jsxs("span",{"aria-hidden":"true",className:"brand-mark",children:[v.jsx("i",{}),v.jsx("i",{}),v.jsx("i",{}),v.jsx("i",{})]}),v.jsx("h1",{className:"text-xl font-semibold tracking-tight",children:"AgentDeck"})]}),v.jsx("ul",{className:"status-strip","aria-label":"Session status counts",children:d.map(h=>v.jsxs("li",{className:"flex items-center gap-2 whitespace-nowrap px-2.5 py-1.5 text-xs text-zinc-300 sm:px-3.5",children:[h.label==="Done"?v.jsx(ke,{name:"check",className:"size-3.5 text-violet-300"}):v.jsx("span",{"aria-hidden":"true",className:`size-1.5 rounded-full ${h.dot}`}),v.jsx("span",{className:`tabular font-mono font-semibold ${h.text}`,children:h.count})," ",h.label]},h.label))}),v.jsxs("div",{className:"header-controls flex min-w-0 flex-wrap items-center justify-end gap-2.5",children:[v.jsx("span",{className:`rounded-md border px-2 py-1 font-mono text-[10px] font-semibold uppercase tracking-wider ${n==="demo"?"border-amber-400/25 bg-amber-400/10 text-amber-200":"border-emerald-400/25 bg-emerald-400/10 text-emerald-200"}`,children:n}),v.jsxs("span",{role:"status",className:"flex items-center gap-1.5 text-xs text-zinc-300",children:[v.jsx("span",{className:`size-1.5 rounded-full ${i?"bg-emerald-400":"bg-zinc-500"}`,"aria-hidden":"true"}),i?"Connected":"Offline"]}),n==="demo"&&v.jsxs("div",{className:"flex items-center gap-1.5",children:[v.jsxs("button",{type:"button",className:"deck-button","aria-label":"Toggle phone preview","aria-pressed":l,"aria-keyshortcuts":"P",onClick:u,children:[v.jsx(ke,{name:"phone",className:`size-3.5 ${l?"text-sky-300":""}`})," ",v.jsx("kbd",{children:"P"})]}),v.jsxs("button",{type:"button",className:"deck-button","aria-label":"Restart demo","aria-keyshortcuts":"R",onClick:f,disabled:!i,children:[v.jsx(ke,{name:"restart",className:"size-3.5"})," ",v.jsx("kbd",{children:"R"})]})]})]})]})})}const ga=["input","output","cacheRead","cacheCreation"],fm=2e3,hm=n=>n>=1e6?`${(n/1e6).toFixed(2)}M`:n>=1e3?`${(n/1e3).toFixed(1)}k`:String(Math.round(n)),Dh=n=>{const i=Math.max(0,Math.floor(n/1e3)),s=Math.floor(i/60);return s>0?`${s}m ${String(i%60).padStart(2,"0")}s`:`${i}s`},G1={running:{label:"Running",dot:"bg-emerald-400",text:"text-emerald-300",border:"border-emerald-500/30",glow:"shadow-emerald-500/10"},waiting_approval:{label:"Waiting Approval",dot:"bg-amber-400",text:"text-amber-300",border:"border-amber-400/70",glow:"shadow-amber-500/25"},waiting_input:{label:"Waiting Input",dot:"bg-sky-400",text:"text-sky-300",border:"border-sky-500/40",glow:"shadow-sky-500/10"},idle:{label:"Idle",dot:"bg-zinc-500",text:"text-zinc-400",border:"border-zinc-700",glow:"shadow-black/0"},done:{label:"Done",dot:"bg-violet-400",text:"text-violet-300",border:"border-violet-500/30",glow:"shadow-violet-500/10"},waiting_terminal:{label:"Waiting Terminal",dot:"bg-orange-400",text:"text-orange-300",border:"border-orange-500/40",glow:"shadow-orange-500/10"}},pm={unrated:"bg-zinc-700 text-zinc-200",low:"bg-zinc-700 text-zinc-200",medium:"bg-amber-500/20 text-amber-300 ring-1 ring-amber-500/40",high:"bg-red-500/20 text-red-300 ring-1 ring-red-500/50"},Xs={"claude-code":"Claude Code",codex:"Codex",zcode:"ZCode",antigravity:"Antigravity",generic:"CLI"};function Q1({approval:n,decision:i}){if(!i)return;if(i.by==="timeout")return{label:"Timed out · Return to terminal",style:"text-amber-200"};if(i.by==="session_end")return{label:"Session ended",style:"text-zinc-300"};if(i.by==="cancelled")return{label:"Cancelled",style:"text-zinc-300"};if(i.action==="defer")return{label:"Continue in Codex",style:"text-zinc-300"};const s={approve:"Approved",reject:"Rejected",reply:"Reply sent"}[i.action],l=i.by==="telegram"?" · via Telegram":i.by==="web"?" · via Web":"",u=i.resolvedAt===void 0?"":` · ${(Math.max(0,i.resolvedAt-n.createdAt)/1e3).toFixed(1)}s`;return{label:s+u+l,style:i.action==="reject"?"text-zinc-300":"text-emerald-200"}}function Y1({text:n,durationMs:i}){const s=fu(),[l,u]=F.useState(0),f=Array.from(n),d=f.length;return F.useEffect(()=>{if(s||!d)return;const h=performance.now();let m=0;function g(y){const w=Math.min(1,(y-h)/i);u(Math.ceil(w*d)),w<1&&(m=requestAnimationFrame(g))}return m=requestAnimationFrame(g),()=>cancelAnimationFrame(m)},[i,d,s]),v.jsxs("p",{className:"phone-input min-h-10","aria-label":n,children:[s?n:f.slice(0,l).join(""),v.jsx("span",{"aria-hidden":"true",className:"phone-caret"})]})}function X1({messages:n,replayReply:i,connected:s,onDecide:l}){const[u,f]=F.useState(),d=F.useRef(null),h=F.useRef(null),m=u&&n.find(A=>A.approval.id===u.approvalId&&!A.decision),g=i&&n.find(A=>A.approval.id===i.approvalId&&!A.decision),y=m??g,w=y==null?void 0:y.approval.id,k=n.filter(A=>!A.decision).length;F.useEffect(()=>{u&&!m&&f(void 0)},[u,m]),F.useLayoutEffect(()=>{var A;m&&((A=h.current)==null||A.focus({preventScroll:!0}))},[m==null?void 0:m.approval.id]),F.useLayoutEffect(()=>{if(d.current)if(w){const A=Array.from(d.current.children).find(M=>M.getAttribute("data-approval-id")===w),j=d.current.getBoundingClientRect();if(A){const M=A.getBoundingClientRect();M.top<j.top?d.current.scrollTop+=M.top-j.top-12:M.bottom>j.bottom&&(d.current.scrollTop+=M.bottom-j.bottom+12)}}else d.current.scrollTop=d.current.scrollHeight},[n,w]);function R(A){A.preventDefault();const j=u==null?void 0:u.text.trim();m&&j&&s&&l(m.approval.id,"reply",j)}return v.jsxs("section",{"aria-labelledby":"phone-title",className:"phone-panel panel rounded-2xl px-4 pt-4 sm:px-5 xl:px-6",children:[v.jsxs("div",{className:"mb-4 flex flex-wrap items-center justify-between gap-2",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(ke,{name:"phone",className:"size-4 text-sky-300"}),v.jsx("h2",{id:"phone-title",className:"section-title",children:"Telegram preview"})]}),v.jsx("span",{className:"rounded-md border border-sky-400/20 bg-sky-400/10 px-2 py-1 font-mono text-[10px] font-medium uppercase tracking-wider text-sky-200",children:"Simulated"})]}),v.jsx("div",{className:"phone-frame",children:v.jsxs("div",{className:"phone-screen",children:[v.jsx("div",{className:"phone-hardware","aria-hidden":"true",children:v.jsx("span",{})}),v.jsxs("div",{className:"phone-chat-header",children:[v.jsx("span",{className:"grid size-9 shrink-0 place-items-center rounded-full bg-sky-500 text-white",children:v.jsx(ke,{name:"send",className:"size-4.5"})}),v.jsxs("div",{className:"min-w-0",children:[v.jsx("p",{className:"truncate text-sm font-semibold text-slate-50",children:"AgentDeck Bot"}),v.jsx("p",{className:"text-[11px] text-sky-200/80",children:k?`${k} pending ${k===1?"approval":"approvals"}`:"Telegram bot"})]})]}),v.jsxs("ol",{ref:d,className:"phone-feed","aria-label":"Approval messages",children:[!n.length&&v.jsx("li",{className:"m-auto max-w-52 rounded-xl bg-slate-950/55 px-3 py-2 text-center text-xs leading-relaxed text-slate-200",children:"Approval requests will appear in this chat."}),v.jsx(Fn,{initial:!1,children:n.map(A=>{const{approval:j,sessionTitle:M,decision:D}=A,O=Q1(A);return v.jsxs(St.li,{"data-approval-id":j.id,initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0},transition:{duration:.2},children:[v.jsxs("div",{className:"phone-bubble",children:[v.jsxs("div",{className:"flex items-center justify-between gap-2",children:[v.jsx("p",{className:"truncate text-xs font-semibold text-sky-200",title:M,children:M}),v.jsx("span",{className:`shrink-0 rounded px-1.5 py-0.5 font-mono text-[9px] font-semibold uppercase ${pm[j.risk]}`,children:j.risk})]}),v.jsx("p",{className:"mt-1 text-sm font-medium text-slate-100",children:j.summary}),v.jsx("code",{className:"mt-1 block break-all font-mono text-[11px] text-slate-300",children:j.detail.command??j.detail.filePath??j.detail.tool}),O&&v.jsxs(St.p,{initial:{opacity:0},animate:{opacity:1},className:`mt-2 flex items-center gap-1.5 border-t border-slate-600/60 pt-2 text-[11px] font-medium ${O.style}`,children:[v.jsx(ke,{name:(D==null?void 0:D.action)==="approve"?"check":(D==null?void 0:D.action)==="reply"?"reply":(D==null?void 0:D.by)==="timeout"?"clock":"close",className:"size-3.5 shrink-0"}),O.label]})]}),!D&&v.jsxs("div",{className:"phone-actions",children:[v.jsxs("button",{type:"button",disabled:!s,onClick:()=>l(j.id,"approve"),children:[v.jsx(ke,{name:"check",className:"size-3.5"}),"Approve"]}),v.jsx("button",{type:"button",disabled:!s,onClick:()=>l(j.id,"reject"),children:"Reject"}),v.jsxs("button",{type:"button",disabled:!s,"aria-expanded":w===j.id,onClick:()=>f($=>($==null?void 0:$.approvalId)===j.id?void 0:{approvalId:j.id,text:""}),children:[v.jsx(ke,{name:"reply",className:"size-3.5"}),"Reply"]})]}),(D==null?void 0:D.action)==="reply"&&D.text&&v.jsxs("p",{className:"phone-outgoing",children:[D.text," ",v.jsx(ke,{name:"check",className:"ml-1 inline size-3.5 text-sky-200"})]})]},j.id)})})]}),v.jsx(Fn,{initial:!1,children:y&&v.jsxs(St.form,{className:"phone-composer",initial:{opacity:0,y:12},animate:{opacity:1,y:0},exit:{opacity:0,y:8},transition:{duration:.18},onSubmit:R,children:[v.jsxs("div",{className:"mb-2 flex items-center gap-2 text-xs text-sky-200",children:[v.jsx(ke,{name:"reply",className:"size-3.5 shrink-0"}),v.jsxs("span",{className:"truncate",children:["Replying to ",v.jsx("strong",{children:y.sessionTitle})]}),m&&v.jsx("button",{type:"button","aria-label":"Cancel reply",className:"ml-auto rounded p-0.5 text-slate-300 hover:text-white",onClick:()=>f(void 0),children:v.jsx(ke,{name:"close",className:"size-4"})})]}),v.jsxs("div",{className:"flex items-end gap-2",children:[m?v.jsx("textarea",{ref:h,rows:2,maxLength:fm,"aria-label":"Telegram reply",placeholder:"Write a reply…",className:"phone-input resize-none",value:(u==null?void 0:u.text)??"",onChange:A=>f({approvalId:m.approval.id,text:A.target.value})}):i&&v.jsx(Y1,{text:i.text,durationMs:i.durationMs},i.approvalId),v.jsx("button",{type:"submit","aria-label":"Send Telegram reply",disabled:!m||!s||!(u!=null&&u.text.trim()),className:"grid size-9 shrink-0 place-items-center rounded-full bg-sky-400 text-slate-950 hover:bg-sky-300 disabled:opacity-55",children:v.jsx(ke,{name:"send",className:"size-4.5"})})]})]},w)}),v.jsx("div",{className:"phone-home","aria-hidden":"true",children:v.jsx("span",{})})]})})]})}function Lh({approval:n,connected:i,onDecide:s}){const[l,u]=F.useState(!1),[f,d]=F.useState(""),h=n.origin?Xs[n.origin]:void 0,m=n.detail.command??n.detail.filePath??n.detail.tool;return v.jsxs("div",{className:"rounded-xl border border-amber-500/25 bg-amber-400/[0.045] p-3.5",children:[v.jsxs("div",{className:"flex items-start gap-2.5",children:[v.jsx("span",{className:`mt-0.5 shrink-0 rounded px-1.5 py-0.5 font-mono text-[10px] font-semibold uppercase ${pm[n.risk]}`,children:h?"Native":n.risk}),v.jsx("p",{className:"min-w-0 break-words text-sm font-medium text-amber-100",children:n.summary})]}),n.detail.description&&v.jsx("p",{className:"mt-2 break-words text-xs text-zinc-300",children:n.detail.description}),v.jsx("pre",{className:"mt-2 max-h-48 overflow-auto whitespace-pre-wrap break-all font-mono text-xs leading-5 text-zinc-300",children:v.jsx("code",{children:n.detail.diffPreview&&h?n.detail.diffPreview:m})}),n.detail.context&&v.jsxs("details",{className:"mt-2 rounded-md border border-zinc-700/70 px-2.5 py-1.5 text-xs text-zinc-300",children:[v.jsx("summary",{className:"cursor-pointer",children:n.detail.command||n.detail.diffPreview?"Additional request details":"Tool arguments"}),v.jsx("pre",{className:"mt-2 max-h-48 overflow-auto whitespace-pre-wrap break-all font-mono",children:n.detail.context})]}),v.jsxs("div",{className:"mt-3 flex flex-wrap gap-2",children:[v.jsx("button",{type:"button",disabled:!i,className:"deck-button deck-button-approve",onClick:()=>s(n.id,"approve"),children:"Approve"}),v.jsx("button",{type:"button",disabled:!i,className:"deck-button",onClick:()=>s(n.id,"reject"),children:"Reject"}),v.jsxs("button",{type:"button",disabled:!i,className:"deck-button","aria-expanded":l,onClick:()=>u(g=>!g),children:[v.jsx(ke,{name:"reply",className:"size-3.5"})," Reply"]}),h&&v.jsxs("button",{type:"button",disabled:!i,className:"deck-button",onClick:()=>s(n.id,"defer"),children:["Use ",h]})]}),l&&v.jsxs("form",{className:"mt-3 flex flex-wrap items-end gap-2",onSubmit:g=>{g.preventDefault();const y=f.trim();y&&i&&s(n.id,"reply",y)},children:[v.jsx("textarea",{autoFocus:!0,rows:2,maxLength:fm,"aria-label":"Reply to agent",placeholder:h?`Decline and tell ${h} what to change`:"Tell the agent what to change",value:f,onChange:g=>d(g.target.value),className:"min-w-36 grow rounded-lg border border-zinc-700 bg-zinc-950 p-2 text-sm text-zinc-100 placeholder:text-zinc-400"}),v.jsx("button",{disabled:!i||!f.trim(),className:"deck-button deck-button-approve",children:"Send reply"})]})]})}function Z1({approvals:n,connected:i,onDecide:s}){const[l,u]=F.useState(!1),f=F.useId(),[d,...h]=n;return d?v.jsxs("div",{className:"mt-4",children:[v.jsx(Lh,{approval:d,connected:i,onDecide:s},d.id),h.length>0&&v.jsxs(v.Fragment,{children:[v.jsxs("button",{type:"button","aria-expanded":l,"aria-controls":f,className:"approval-stack",onClick:()=>u(m=>!m),children:[v.jsx(ke,{name:"layers",className:"size-4"}),v.jsx("span",{children:l?"Show only the first approval":`+${h.length} more ${h.length===1?"approval":"approvals"}`}),v.jsx(ke,{name:"chevron",className:`ml-auto size-4 transition-transform ${l?"rotate-180":""}`})]}),v.jsx("div",{id:f,hidden:!l,className:"mt-2.5 space-y-2.5",children:l&&h.map(m=>v.jsx(Lh,{approval:m,connected:i,onDecide:s},m.id))})]})]}):null}const q1={input:"Input",output:"Output",cacheRead:"Cache read",cacheCreation:"Cache write"};function J1({session:n,approvals:i,connected:s,now:l,onDecide:u}){const f=G1[n.status],d=fu(),h=n.status==="waiting_approval",m=n.status==="waiting_terminal",g=(n.status==="running"||n.status.startsWith("waiting_"))&&l-n.lastEventAt>10*6e4,y=ga.some(R=>n.tokens[R]!==void 0),w=ga.reduce((R,A)=>R+(n.tokens[A]??0),0),k=(n.status==="done"?n.lastEventAt:l)-n.startedAt;return v.jsxs(St.article,{layout:"position",initial:{opacity:0,y:12},animate:h&&!g&&!d?{opacity:1,y:0,x:[0,-5,5,-3,3,0]}:{opacity:1,y:0,x:0},transition:{duration:.45},className:`session-card relative flex min-w-0 flex-col rounded-2xl border p-4 sm:p-5 xl:p-6 ${f.border} ${f.glow} ${h&&!g?"ring-pulse":""}`,children:[v.jsxs("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] items-start gap-3",children:[v.jsxs("div",{className:"min-w-0",children:[v.jsxs("div",{className:"flex items-center gap-2.5",children:[v.jsx("span",{className:"shrink-0 rounded-md border border-zinc-700/70 bg-zinc-800/75 px-2 py-1 font-mono text-[10px] font-semibold uppercase tracking-wider text-zinc-300",children:Xs[n.kind]}),v.jsx("span",{className:"truncate font-mono text-xs text-zinc-400",title:n.cwd,children:n.cwd})]}),v.jsx("h3",{className:"mt-2.5 break-words text-lg font-semibold tracking-tight xl:text-[22px]",children:n.title})]}),v.jsxs(St.div,{initial:{scale:.85,opacity:0},animate:{scale:1,opacity:1},className:`flex shrink-0 items-center gap-2 rounded-full border border-current/20 bg-zinc-900/75 px-2.5 py-1.5 text-xs font-medium ${f.text}`,children:[n.status==="done"?v.jsx(ke,{name:"check",className:"size-3.5"}):v.jsx("span",{className:`size-1.5 rounded-full ${f.dot} ${!g&&(n.status==="running"||h)?"breathe":""}`}),f.label,h&&i.length>1?` · ${i.length}`:""]},n.status)]}),v.jsx("div",{className:"relative mt-4 h-10 overflow-hidden rounded-lg border border-zinc-800/90 bg-black/35 px-3 font-mono text-[12px] leading-[38px] text-zinc-300",title:n.lastAction,children:v.jsx(Fn,{mode:"popLayout",initial:!1,children:v.jsxs(St.div,{initial:{y:20,opacity:0},animate:{y:0,opacity:1},exit:{y:-20,opacity:0},transition:{duration:.25},className:"truncate",children:[v.jsx("span",{className:`mr-1.5 ${f.text}`,children:"›"}),n.lastAction??"Waiting for activity"]},n.lastAction??"none")})}),v.jsx(Fn,{initial:!1,children:h&&i.length>0&&v.jsx(St.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},exit:{opacity:0},transition:{duration:.18},children:v.jsx(Z1,{approvals:i,connected:s,onDecide:u})},"approvals")}),m&&v.jsxs("div",{className:"mt-4 flex items-start gap-2.5 rounded-xl border border-orange-500/25 bg-orange-400/5 px-3.5 py-3 text-sm text-orange-200",children:[v.jsx(ke,{name:"terminal",className:"mt-0.5 size-4 shrink-0 text-orange-300"}),v.jsxs("p",{children:["Respond to the permission prompt ",n.kind==="codex"||n.kind==="zcode"?`in ${Xs[n.kind]}`:"in your terminal","."]})]}),v.jsx("div",{className:"mt-auto pt-4",children:v.jsxs("div",{className:"flex flex-wrap items-start gap-x-3 gap-y-2 border-t border-zinc-800/80 pt-3 text-xs text-zinc-400",children:[v.jsxs("span",{className:"tabular inline-flex items-center gap-1.5 font-mono",title:"Session duration",children:[v.jsx(ke,{name:"clock",className:"size-3.5"})," ",Dh(k)]}),g&&v.jsxs("span",{className:"inline-flex items-center gap-1 rounded-md border border-orange-500/25 bg-orange-400/10 px-1.5 py-0.5 text-orange-200",title:`No events for ${Dh(l-n.lastEventAt)}`,children:[v.jsx(ke,{name:"warning",className:"size-3.5"})," Stale ",v.jsx("span",{className:"sr-only",children:"No events for more than 10 minutes"})]}),y?v.jsxs("details",{className:"ml-auto font-mono",children:[v.jsxs("summary",{className:"tabular ml-auto w-fit cursor-pointer rounded px-1 focus-visible:outline-2 focus-visible:outline-emerald-400",children:[v.jsx("span",{className:"text-zinc-200",children:hm(w)})," tokens"]}),v.jsx("dl",{className:"tabular mt-2 grid min-w-40 grid-cols-[1fr_auto] gap-x-3 gap-y-1 rounded-lg border border-zinc-700 bg-zinc-900 p-3",children:ga.map(R=>{var A;return v.jsxs("div",{className:"contents",children:[v.jsx("dt",{children:q1[R]}),v.jsx("dd",{className:"text-right text-zinc-200",children:((A=n.tokens[R])==null?void 0:A.toLocaleString("en-US"))??"—"})]},R)})})]}):v.jsx("span",{className:"ml-auto font-mono",children:"Token usage unavailable"})]})})]})}const ew={success:{icon:"check",color:"text-emerald-300 border-emerald-400/25 bg-emerald-400/10"},warning:{icon:"warning",color:"text-amber-200 border-amber-400/25 bg-amber-400/10"},info:{icon:"terminal",color:"text-sky-200 border-sky-400/25 bg-sky-400/10"}};function tw({toast:n,dismiss:i}){const[s,l]=F.useState(!1),[u,f]=F.useState(!1),d=ew[n.tone];return F.useEffect(()=>{if(s||u)return;const h=window.setTimeout(()=>i(n.id),4500);return()=>window.clearTimeout(h)},[n.id,i,s,u]),v.jsxs(St.div,{layout:"position",initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:6},onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),onFocus:()=>f(!0),onBlur:()=>f(!1),className:"pointer-events-auto flex items-center gap-3 rounded-xl border border-zinc-700 bg-zinc-900 p-3 shadow-xl shadow-black/40",children:[v.jsx("span",{className:`grid size-8 shrink-0 place-items-center rounded-lg border ${d.color}`,children:v.jsx(ke,{name:d.icon,className:"size-4"})}),v.jsx("p",{className:"min-w-0 break-words text-sm text-zinc-100",children:n.text}),v.jsx("button",{type:"button","aria-label":"Dismiss notification",onClick:()=>i(n.id),className:"ml-auto shrink-0 rounded-md p-1 text-zinc-400 hover:bg-zinc-800 hover:text-white",children:v.jsx(ke,{name:"close",className:"size-4"})})]})}function nw({toasts:n,onDismiss:i}){return v.jsx("div",{role:"status","aria-atomic":"false","aria-relevant":"additions",className:"pointer-events-none fixed inset-x-4 bottom-4 z-20 flex flex-col gap-2 sm:right-auto sm:bottom-6 sm:left-6 sm:w-[360px]",children:v.jsx(Fn,{initial:!1,children:n.map(s=>v.jsx(tw,{toast:s,dismiss:i},s.id))})})}function rw(n,i){if(n.length===0)return 0;if(i<=n[0].t)return n[0].cumulative;for(let s=1;s<n.length;s++){const l=n[s-1],u=n[s];if(i<=u.t)return l.cumulative+(u.cumulative-l.cumulative)*(i-l.t)/(u.t-l.t||1)}return n[n.length-1].cumulative}const _h=["from-rose-500 to-orange-400","from-emerald-500 to-teal-300","from-sky-500 to-indigo-400"],iw=[["input","Input"],["output","Output"],["cacheRead","Cache read"],["cacheCreation","Cache creation"]],sw=n=>`$${n.toFixed(n>0&&n<.01?4:2)}`;function ow({dataset:n,t:i}){var j,M,D;const[s,l]=F.useState(!1),u=F.useId(),f=fu(),d=(n==null?void 0:n.metric)==="cost_usd",h=O=>d?sw(O):hm(O),m=Math.max(0,...(n==null?void 0:n.variants.map(O=>{var $;return(($=O.samples.at(-1))==null?void 0:$.t)??0}))??[]),g=i??m,y=g>=m-1e-6,w=((M=(j=n==null?void 0:n.variants[0])==null?void 0:j.samples.at(-1))==null?void 0:M.cumulative)??0,k=n==null?void 0:n.variants.at(-1),R=(D=k==null?void 0:k.samples.at(-1))==null?void 0:D.cumulative,A=w>0&&R!==void 0?1-R/w:0;return v.jsxs("section",{"aria-labelledby":"race-title",className:"panel rounded-2xl p-4 sm:p-5 xl:p-6",children:[v.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2.5",children:[v.jsx("h2",{id:"race-title",className:"section-title",children:"Token Race"}),n&&v.jsxs("span",{className:`rounded-md border px-2 py-1 font-mono text-[11px] font-medium ${n.measured?"border-emerald-500/25 bg-emerald-500/10 text-emerald-300":"border-zinc-700 bg-zinc-800/70 text-zinc-300"}`,title:n.measured?"Recorded from benchmark runs":"Illustrative replay data",children:[n.measured?"measured":"simulated"," · ",d?"cost":"tokens"]})]}),n!=null&&n.variants.length?v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"mt-3",children:[v.jsx("h3",{className:"text-base font-semibold leading-snug text-zinc-100",children:n.task}),v.jsxs("p",{className:"mt-1 font-mono text-xs text-zinc-400",children:[n.model," ",v.jsx("span",{"aria-hidden":"true",children:"·"})," ",d?"USD":"Context tokens"]})]}),v.jsx("div",{className:"mt-4 space-y-3.5",children:n.variants.map((O,$)=>{const Q=rw(O.samples,g),U=n.limitBudget>0?Q/n.limitBudget:0,X=U>=.8,re=X&&!y&&!f;return v.jsxs("div",{children:[v.jsxs("div",{className:"mb-1.5 flex items-baseline justify-between gap-2",children:[v.jsx("span",{className:"text-sm font-medium text-zinc-200",children:O.label}),v.jsx("span",{className:`tabular shrink-0 font-mono text-xl font-semibold leading-none ${X?"text-rose-300":"text-zinc-100"}`,children:h(Q)})]}),v.jsxs(St.div,{animate:re?{x:[0,-2,2,0]}:{x:0},transition:{repeat:re?1/0:0,duration:.25},className:"relative h-2.5 overflow-hidden rounded-full bg-zinc-800","aria-hidden":"true",children:[v.jsx("div",{className:`h-full rounded-full bg-gradient-to-r ${_h[$%_h.length]} transition-[width] duration-100 ease-linear`,style:{width:`${Math.max(0,Math.min(1,U))*100}%`}}),v.jsx("div",{className:"absolute inset-y-0 left-[80%] w-px bg-rose-300/65"})]}),v.jsxs("div",{className:"mt-1 flex flex-wrap items-center justify-between gap-x-3 text-[11px] text-zinc-400",children:[v.jsxs("span",{className:"tabular font-mono",children:[Math.round(U*100),"% of illustrative budget"]}),X&&v.jsxs("span",{className:"inline-flex items-center gap-1 text-rose-300",children:[v.jsx(ke,{name:"warning",className:"size-3"})," ",U>1?"Over budget":"Near budget"]})]})]},O.id)})}),v.jsxs("div",{className:`relative mt-4 flex min-h-14 flex-wrap items-center justify-between gap-x-3 gap-y-2 rounded-xl border px-3.5 py-2 transition-colors ${y&&A>0?"border-emerald-400/20 bg-emerald-400/[.06]":"border-zinc-800/90 bg-zinc-950/35"}`,children:[v.jsx(Fn,{mode:"popLayout",initial:!1,children:y&&A>0&&n.variants.length>1?v.jsxs(St.p,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0},className:"flex flex-wrap items-baseline gap-x-2 text-xs text-emerald-200",children:[v.jsxs("strong",{className:"tabular font-mono text-3xl leading-none font-semibold tracking-tight text-emerald-300",children:["−",Math.round(A*100),"%"]}),v.jsxs("span",{children:[n.variants.length>2&&`${k==null?void 0:k.label} · `,d?"cost vs baseline":"context tokens vs baseline"]})]},"saving"):v.jsxs(St.p,{exit:{opacity:0},className:"text-xs text-zinc-400",children:["Illustrative budget ",v.jsx("span",{className:"tabular font-mono text-zinc-200",children:h(n.limitBudget)})]},"budget")}),v.jsxs("button",{type:"button","aria-expanded":s,"aria-controls":u,onClick:()=>l(O=>!O),className:"deck-button ml-auto shrink-0",children:["Token breakdown ",v.jsx(ke,{name:"chevron",className:`size-3.5 transition-transform ${s?"rotate-180":""}`})]})]}),v.jsxs("div",{id:u,hidden:!s,className:"mt-3 space-y-2.5",children:[v.jsx("p",{className:"text-xs text-zinc-400",children:"Token totals for completed runs"}),n.variants.map(O=>v.jsxs("div",{className:"rounded-xl border border-zinc-800 bg-zinc-950/35 p-3",children:[v.jsx("h4",{className:"text-xs font-semibold text-zinc-200",children:O.label}),v.jsx("dl",{className:"mt-2 grid grid-cols-2 gap-x-3 gap-y-2 min-[480px]:grid-cols-4",children:iw.map(([$,Q])=>{var U,X;return v.jsxs("div",{children:[v.jsx("dt",{className:"text-[11px] text-zinc-400",children:Q}),v.jsx("dd",{className:"tabular mt-0.5 font-mono text-xs text-zinc-200",children:((X=(U=O.totals)==null?void 0:U[$])==null?void 0:X.toLocaleString("en-US"))??"—"})]},$)})})]},O.id))]})]}):v.jsxs("div",{className:"mt-4 rounded-xl border border-dashed border-zinc-700 bg-zinc-950/35 p-5",children:[v.jsx("p",{className:"text-sm font-medium text-zinc-200",children:"No benchmark data"}),v.jsx("p",{className:"mt-1 text-sm text-zinc-400",children:"Load a benchmark dataset to compare usage across runs."})]})]})}function lw(n,i,s){const{action:l,by:u}=n;if(u==="session_end")return;if(u==="cancelled")return{tone:"info",text:`${i} · Approval cancelled`};const f=s?Xs[s]:"the terminal";if(u==="timeout")return{tone:"warning",text:`${i} · Approval timed out. Continue in ${f}.`};if(l==="defer")return{tone:"info",text:`${i} · Continue in ${f}`};const d={approve:"Approved",reject:"Rejected",reply:"Reply sent"}[l];return{tone:l==="reject"?"info":"success",text:`${i} · ${d}${u==="telegram"?" · via Telegram":u==="web"?" · via Web":""}`}}const aw={connected:!1,mode:"live",sessions:{},order:[],approvals:{},datasets:{},raceT:{},toasts:[],toastSequence:0,phone:[]};function Vh(n,i){if(!i)return{toasts:n.toasts,toastSequence:n.toastSequence};const s=n.toastSequence+1;return{toasts:[...n.toasts.slice(-2),{id:s,...i}],toastSequence:s}}function uw(n,i){var l,u,f;if(i.type==="connected")return{...n,connected:i.value};if(i.type==="dismiss_toast")return{...n,toasts:n.toasts.filter(d=>d.id!==i.id)};const s=i.msg;switch(s.type){case"snapshot":{const d=Object.fromEntries(s.sessions.map(h=>[h.id,h]));return{...n,mode:s.mode,sessions:d,order:s.sessions.map(h=>h.id),approvals:Object.fromEntries(s.approvals.map(h=>[h.id,h])),phone:s.approvals.map(h=>{var m;return{approval:h,sessionTitle:((m=d[h.sessionId])==null?void 0:m.title)??h.sessionId}}),demoReply:void 0,toasts:[]}}case"session_update":{const d=s.session;return{...n,sessions:{...n.sessions,[d.id]:d},order:n.order.includes(d.id)?n.order:[...n.order,d.id]}}case"session_removed":{const{[s.sessionId]:d,...h}=n.sessions;return{...n,sessions:h,order:n.order.filter(m=>m!==s.sessionId)}}case"approval_created":return{...n,approvals:{...n.approvals,[s.approval.id]:s.approval},phone:[...n.phone.filter((d,h)=>!d.decision||h>=n.phone.length-5),{approval:s.approval,sessionTitle:((l=n.sessions[s.approval.sessionId])==null?void 0:l.title)??s.approval.sessionId}]};case"approval_resolved":{const{[s.decision.approvalId]:d,...h}=n.approvals;return{...n,approvals:h,...Vh(n,d&&lw(s.decision,((u=n.sessions[d.sessionId])==null?void 0:u.title)??d.sessionId,d.origin)),demoReply:((f=n.demoReply)==null?void 0:f.approvalId)===s.decision.approvalId?void 0:n.demoReply,phone:n.phone.map(m=>m.approval.id===s.decision.approvalId?{...m,decision:s.decision}:m)}}case"token_dataset":return{...n,datasets:{...n.datasets,[s.dataset.id]:s.dataset}};case"token_tick":return{...n,raceT:{...n.raceT,[s.datasetId]:s.t}};case"demo_phone_reply":return n.approvals[s.approvalId]?{...n,demoReply:s}:n;case"toast":return{...n,...Vh(n,{tone:"info",text:s.text})}}return n}function cw(){const[n,i]=F.useReducer(uw,aw),s=F.useRef(null);F.useEffect(()=>{let f=!1,d;const h=()=>{const m=location.protocol==="https:"?"wss":"ws",g=new WebSocket(`${m}://${location.host}/ws`);s.current=g,g.onopen=()=>{f||i({type:"connected",value:!0})},g.onmessage=y=>{f||i({type:"server",msg:JSON.parse(y.data)})},g.onclose=()=>{f||(i({type:"connected",value:!1}),d=setTimeout(h,1e3))}};return h(),()=>{var m;f=!0,clearTimeout(d),(m=s.current)==null||m.close()}},[]);const l=F.useCallback(f=>{const d=s.current;(d==null?void 0:d.readyState)===WebSocket.OPEN&&d.send(JSON.stringify(f))},[]),u=F.useCallback(f=>i({type:"dismiss_toast",id:f}),[]);return{state:n,send:l,dismissToast:u}}function dw(){const{state:n,send:i,dismissToast:s}=cw(),[l,u]=F.useState(!0),[f,d]=F.useState(Date.now),h=n.mode==="demo",m=F.useCallback(()=>u(j=>!j),[]),g=F.useCallback(()=>i({type:"demo_restart"}),[i]);F.useEffect(()=>{const j=window.setInterval(()=>d(Date.now()),1e3);return()=>window.clearInterval(j)},[]),F.useEffect(()=>{if(!h)return;const j=M=>{M.defaultPrevented||M.repeat||M.isComposing||M.altKey||M.ctrlKey||M.metaKey||M.shiftKey||M.target instanceof HTMLElement&&(M.target.isContentEditable||M.target.closest("input, textarea, select"))||(M.key.toLowerCase()==="r"&&g(),M.key.toLowerCase()==="p"&&m())};return window.addEventListener("keydown",j),()=>window.removeEventListener("keydown",j)},[h,g,m]);const y=(j,M,D)=>i({type:"decide",decision:{approvalId:j,action:M,text:D}}),w=(j,M,D)=>i({type:"decide",source:"phone_mock",decision:{approvalId:j,action:M,text:D}}),k=n.order.map(j=>n.sessions[j]),R=Object.values(n.datasets),A=R.find(j=>j.metric==="cost_usd"&&j.measured)??R.find(j=>j.metric==="cost_usd")??R[0];return v.jsxs(Ay,{reducedMotion:"user",children:[v.jsx(K1,{mode:n.mode,connected:n.connected,sessions:k,showPhone:l,onTogglePhone:m,onRestart:g}),v.jsxs("main",{className:"deck-grid",children:[v.jsxs("section",{"aria-labelledby":"sessions-title",className:"min-w-0",children:[v.jsxs("div",{className:"mb-4 flex items-baseline justify-between gap-3 border-b border-zinc-800/80 pb-3.5",children:[v.jsx("h2",{id:"sessions-title",className:"text-2xl font-semibold tracking-tight",children:"Sessions"}),v.jsxs("span",{className:"tabular font-mono text-xs text-zinc-400",children:[k.length," total"]})]}),k.length?v.jsx("div",{className:"session-grid",children:k.map(j=>v.jsx(J1,{session:j,approvals:j.pendingApprovalIds.flatMap(M=>n.approvals[M]?[n.approvals[M]]:[]),connected:n.connected,now:f,onDecide:y},j.id))}):v.jsx("div",{className:"panel flex min-h-64 items-center justify-center rounded-2xl border-dashed p-6 text-center",children:v.jsxs("div",{className:"max-w-xs",children:[v.jsx("span",{className:"mx-auto mb-4 grid size-11 place-items-center rounded-xl border border-zinc-700 bg-zinc-800/70 text-emerald-300",children:v.jsx(ke,{name:"terminal",className:"size-5"})}),v.jsx("h3",{className:"text-base font-semibold",children:n.connected?h?"Waiting for the demo":"No sessions yet":"Connecting to AgentDeck"}),v.jsx("p",{className:"mt-1.5 text-sm leading-relaxed text-zinc-400",children:n.connected?h?"Sessions will appear when playback starts.":v.jsxs(v.Fragment,{children:["Run ",v.jsx("code",{className:"font-mono text-zinc-200",children:"agentmast install-hooks"})," for Claude Code. Add ",v.jsx("code",{className:"font-mono text-zinc-200",children:"--codex"}),", ",v.jsx("code",{className:"font-mono text-zinc-200",children:"--zcode"})," or ",v.jsx("code",{className:"font-mono text-zinc-200",children:"--antigravity"})," for the corresponding agent."]}):v.jsxs(v.Fragment,{children:["Start the local daemon with ",v.jsx("code",{className:"font-mono text-zinc-200",children:"agentmast up"})," if it is offline."]})})]})})]}),v.jsxs("aside",{"aria-label":"Usage and approval preview",className:"min-w-0 space-y-4",children:[v.jsx(ow,{dataset:A,t:A?n.raceT[A.id]??(h?0:void 0):void 0},A==null?void 0:A.id),v.jsx(Fn,{initial:!1,children:h&&l&&v.jsx(St.div,{initial:{opacity:0,y:16,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:12,scale:.98},transition:{duration:.22},className:"origin-top",children:v.jsx(X1,{messages:n.phone,replayReply:n.demoReply,connected:n.connected,onDecide:w})},"phone")})]})]}),v.jsx(nw,{toasts:n.toasts,onDismiss:s})]})}xy.createRoot(document.getElementById("root")).render(v.jsx(F.StrictMode,{children:v.jsx(dw,{})}));