agent-state-machine 2.1.7 → 2.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,139 +0,0 @@
1
- (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function Zp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ff={exports:{}},vs={},df={exports:{}},I={};/**
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 Yr=Symbol.for("react.element"),Jp=Symbol.for("react.portal"),qp=Symbol.for("react.fragment"),em=Symbol.for("react.strict_mode"),tm=Symbol.for("react.profiler"),nm=Symbol.for("react.provider"),rm=Symbol.for("react.context"),im=Symbol.for("react.forward_ref"),sm=Symbol.for("react.suspense"),om=Symbol.for("react.memo"),lm=Symbol.for("react.lazy"),Ja=Symbol.iterator;function am(e){return e===null||typeof e!="object"?null:(e=Ja&&e[Ja]||e["@@iterator"],typeof e=="function"?e:null)}var hf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},pf=Object.assign,mf={};function Jn(e,t,n){this.props=e,this.context=t,this.refs=mf,this.updater=n||hf}Jn.prototype.isReactComponent={};Jn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};Jn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function gf(){}gf.prototype=Jn.prototype;function _l(e,t,n){this.props=e,this.context=t,this.refs=mf,this.updater=n||hf}var Ol=_l.prototype=new gf;Ol.constructor=_l;pf(Ol,Jn.prototype);Ol.isPureReactComponent=!0;var qa=Array.isArray,yf=Object.prototype.hasOwnProperty,Il={current:null},vf={key:!0,ref:!0,__self:!0,__source:!0};function xf(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)yf.call(t,r)&&!vf.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];i.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:Yr,type:e,key:s,ref:o,props:i,_owner:Il.current}}function um(e,t){return{$$typeof:Yr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Fl(e){return typeof e=="object"&&e!==null&&e.$$typeof===Yr}function cm(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var eu=/\/+/g;function Ws(e,t){return typeof e=="object"&&e!==null&&e.key!=null?cm(""+e.key):t.toString(36)}function Ei(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Yr:case Jp:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+Ws(o,0):r,qa(i)?(n="",e!=null&&(n=e.replace(eu,"$&/")+"/"),Ei(i,t,n,"",function(u){return u})):i!=null&&(Fl(i)&&(i=um(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(eu,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",qa(e))for(var l=0;l<e.length;l++){s=e[l];var a=r+Ws(s,l);o+=Ei(s,t,n,a,i)}else if(a=am(e),typeof a=="function")for(e=a.call(e),l=0;!(s=e.next()).done;)s=s.value,a=r+Ws(s,l++),o+=Ei(s,t,n,a,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function si(e,t,n){if(e==null)return e;var r=[],i=0;return Ei(e,r,"","",function(s){return t.call(n,s,i++)}),r}function fm(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ke={current:null},Ni={transition:null},dm={ReactCurrentDispatcher:ke,ReactCurrentBatchConfig:Ni,ReactCurrentOwner:Il};function wf(){throw Error("act(...) is not supported in production builds of React.")}I.Children={map:si,forEach:function(e,t,n){si(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return si(e,function(){t++}),t},toArray:function(e){return si(e,function(t){return t})||[]},only:function(e){if(!Fl(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};I.Component=Jn;I.Fragment=qp;I.Profiler=tm;I.PureComponent=_l;I.StrictMode=em;I.Suspense=sm;I.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=dm;I.act=wf;I.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=pf({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=Il.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)yf.call(t,a)&&!vf.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Yr,type:e.type,key:i,ref:s,props:r,_owner:o}};I.createContext=function(e){return e={$$typeof:rm,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:nm,_context:e},e.Consumer=e};I.createElement=xf;I.createFactory=function(e){var t=xf.bind(null,e);return t.type=e,t};I.createRef=function(){return{current:null}};I.forwardRef=function(e){return{$$typeof:im,render:e}};I.isValidElement=Fl;I.lazy=function(e){return{$$typeof:lm,_payload:{_status:-1,_result:e},_init:fm}};I.memo=function(e,t){return{$$typeof:om,type:e,compare:t===void 0?null:t}};I.startTransition=function(e){var t=Ni.transition;Ni.transition={};try{e()}finally{Ni.transition=t}};I.unstable_act=wf;I.useCallback=function(e,t){return ke.current.useCallback(e,t)};I.useContext=function(e){return ke.current.useContext(e)};I.useDebugValue=function(){};I.useDeferredValue=function(e){return ke.current.useDeferredValue(e)};I.useEffect=function(e,t){return ke.current.useEffect(e,t)};I.useId=function(){return ke.current.useId()};I.useImperativeHandle=function(e,t,n){return ke.current.useImperativeHandle(e,t,n)};I.useInsertionEffect=function(e,t){return ke.current.useInsertionEffect(e,t)};I.useLayoutEffect=function(e,t){return ke.current.useLayoutEffect(e,t)};I.useMemo=function(e,t){return ke.current.useMemo(e,t)};I.useReducer=function(e,t,n){return ke.current.useReducer(e,t,n)};I.useRef=function(e){return ke.current.useRef(e)};I.useState=function(e){return ke.current.useState(e)};I.useSyncExternalStore=function(e,t,n){return ke.current.useSyncExternalStore(e,t,n)};I.useTransition=function(){return ke.current.useTransition()};I.version="18.3.1";df.exports=I;var C=df.exports;const Sf=Zp(C);/**
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 hm=C,pm=Symbol.for("react.element"),mm=Symbol.for("react.fragment"),gm=Object.prototype.hasOwnProperty,ym=hm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,vm={key:!0,ref:!0,__self:!0,__source:!0};function kf(e,t,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)gm.call(t,r)&&!vm.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:pm,type:e,key:s,ref:o,props:i,_owner:ym.current}}vs.Fragment=mm;vs.jsx=kf;vs.jsxs=kf;ff.exports=vs;var w=ff.exports,Cf={exports:{}},Ie={},Pf={exports:{}},Tf={};/**
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
- */(function(e){function t(j,M){var O=j.length;j.push(M);e:for(;0<O;){var _=O-1>>>1,Q=j[_];if(0<i(Q,M))j[_]=M,j[O]=Q,O=_;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var M=j[0],O=j.pop();if(O!==M){j[0]=O;e:for(var _=0,Q=j.length,Gt=Q>>>1;_<Gt;){var et=2*(_+1)-1,xn=j[et],Re=et+1,bt=j[Re];if(0>i(xn,O))Re<Q&&0>i(bt,xn)?(j[_]=bt,j[Re]=O,_=Re):(j[_]=xn,j[et]=O,_=et);else if(Re<Q&&0>i(bt,O))j[_]=bt,j[Re]=O,_=Re;else break e}}return M}function i(j,M){var O=j.sortIndex-M.sortIndex;return O!==0?O:j.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var a=[],u=[],c=1,f=null,d=3,g=!1,m=!1,v=!1,S=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(j){for(var M=n(u);M!==null;){if(M.callback===null)r(u);else if(M.startTime<=j)r(u),M.sortIndex=M.expirationTime,t(a,M);else break;M=n(u)}}function x(j){if(v=!1,h(j),!m)if(n(a)!==null)m=!0,V(k);else{var M=n(u);M!==null&&F(x,M.startTime-j)}}function k(j,M){m=!1,v&&(v=!1,y(P),P=-1),g=!0;var O=d;try{for(h(M),f=n(a);f!==null&&(!(f.expirationTime>M)||j&&!ne());){var _=f.callback;if(typeof _=="function"){f.callback=null,d=f.priorityLevel;var Q=_(f.expirationTime<=M);M=e.unstable_now(),typeof Q=="function"?f.callback=Q:f===n(a)&&r(a),h(M)}else r(a);f=n(a)}if(f!==null)var Gt=!0;else{var et=n(u);et!==null&&F(x,et.startTime-M),Gt=!1}return Gt}finally{f=null,d=O,g=!1}}var E=!1,N=null,P=-1,R=5,D=-1;function ne(){return!(e.unstable_now()-D<R)}function b(){if(N!==null){var j=e.unstable_now();D=j;var M=!0;try{M=N(!0,j)}finally{M?ce():(E=!1,N=null)}}else E=!1}var ce;if(typeof p=="function")ce=function(){p(b)};else if(typeof MessageChannel<"u"){var re=new MessageChannel,z=re.port2;re.port1.onmessage=b,ce=function(){z.postMessage(null)}}else ce=function(){S(b,0)};function V(j){N=j,E||(E=!0,ce())}function F(j,M){P=S(function(){j(e.unstable_now())},M)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(j){j.callback=null},e.unstable_continueExecution=function(){m||g||(m=!0,V(k))},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(j){switch(d){case 1:case 2:case 3:var M=3;break;default:M=d}var O=d;d=M;try{return j()}finally{d=O}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,M){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var O=d;d=j;try{return M()}finally{d=O}},e.unstable_scheduleCallback=function(j,M,O){var _=e.unstable_now();switch(typeof O=="object"&&O!==null?(O=O.delay,O=typeof O=="number"&&0<O?_+O:_):O=_,j){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=O+Q,j={id:c++,callback:M,priorityLevel:j,startTime:O,expirationTime:Q,sortIndex:-1},O>_?(j.sortIndex=O,t(u,j),n(a)===null&&j===n(u)&&(v?(y(P),P=-1):v=!0,F(x,O-_))):(j.sortIndex=Q,t(a,j),m||g||(m=!0,V(k))),j},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(j){var M=d;return function(){var O=d;d=M;try{return j.apply(this,arguments)}finally{d=O}}}})(Tf);Pf.exports=Tf;var xm=Pf.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 wm=C,_e=xm;function T(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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 Ef=new Set,Lr={};function mn(e,t){Wn(e,t),Wn(e+"Capture",t)}function Wn(e,t){for(Lr[e]=t,e=0;e<t.length;e++)Ef.add(t[e])}var mt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Lo=Object.prototype.hasOwnProperty,Sm=/^[: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]*$/,tu={},nu={};function km(e){return Lo.call(nu,e)?!0:Lo.call(tu,e)?!1:Sm.test(e)?nu[e]=!0:(tu[e]=!0,!1)}function Cm(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Pm(e,t,n,r){if(t===null||typeof t>"u"||Cm(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.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 Ce(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var he={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){he[e]=new Ce(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];he[t]=new Ce(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){he[e]=new Ce(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){he[e]=new Ce(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){he[e]=new Ce(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){he[e]=new Ce(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){he[e]=new Ce(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){he[e]=new Ce(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){he[e]=new Ce(e,5,!1,e.toLowerCase(),null,!1,!1)});var zl=/[\-:]([a-z])/g;function Bl(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(zl,Bl);he[t]=new Ce(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(zl,Bl);he[t]=new Ce(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(zl,Bl);he[t]=new Ce(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){he[e]=new Ce(e,1,!1,e.toLowerCase(),null,!1,!1)});he.xlinkHref=new Ce("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){he[e]=new Ce(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ul(e,t,n,r){var i=he.hasOwnProperty(t)?he[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Pm(t,n,i,r)&&(n=null),r||i===null?km(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var wt=wm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,oi=Symbol.for("react.element"),Sn=Symbol.for("react.portal"),kn=Symbol.for("react.fragment"),$l=Symbol.for("react.strict_mode"),Mo=Symbol.for("react.profiler"),Nf=Symbol.for("react.provider"),jf=Symbol.for("react.context"),Wl=Symbol.for("react.forward_ref"),Ro=Symbol.for("react.suspense"),Vo=Symbol.for("react.suspense_list"),Hl=Symbol.for("react.memo"),Ct=Symbol.for("react.lazy"),Lf=Symbol.for("react.offscreen"),ru=Symbol.iterator;function tr(e){return e===null||typeof e!="object"?null:(e=ru&&e[ru]||e["@@iterator"],typeof e=="function"?e:null)}var J=Object.assign,Hs;function fr(e){if(Hs===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Hs=t&&t[1]||""}return`
34
- `+Hs+e}var Ks=!1;function Qs(e,t){if(!e||Ks)return"";Ks=!0;var n=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(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
35
- `),s=r.stack.split(`
36
- `),o=i.length-1,l=s.length-1;1<=o&&0<=l&&i[o]!==s[l];)l--;for(;1<=o&&0<=l;o--,l--)if(i[o]!==s[l]){if(o!==1||l!==1)do if(o--,l--,0>l||i[o]!==s[l]){var a=`
37
- `+i[o].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=o&&0<=l);break}}}finally{Ks=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?fr(e):""}function Tm(e){switch(e.tag){case 5:return fr(e.type);case 16:return fr("Lazy");case 13:return fr("Suspense");case 19:return fr("SuspenseList");case 0:case 2:case 15:return e=Qs(e.type,!1),e;case 11:return e=Qs(e.type.render,!1),e;case 1:return e=Qs(e.type,!0),e;default:return""}}function Do(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 kn:return"Fragment";case Sn:return"Portal";case Mo:return"Profiler";case $l:return"StrictMode";case Ro:return"Suspense";case Vo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case jf:return(e.displayName||"Context")+".Consumer";case Nf:return(e._context.displayName||"Context")+".Provider";case Wl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Hl:return t=e.displayName||null,t!==null?t:Do(e.type)||"Memo";case Ct:t=e._payload,e=e._init;try{return Do(e(t))}catch{}}return null}function Em(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 Do(t);case 8:return t===$l?"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 zt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Mf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Nm(e){var t=Mf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function li(e){e._valueTracker||(e._valueTracker=Nm(e))}function Rf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Mf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Bi(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 Ao(e,t){var n=t.checked;return J({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function iu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=zt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Vf(e,t){t=t.checked,t!=null&&Ul(e,"checked",t,!1)}function _o(e,t){Vf(e,t);var n=zt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Oo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Oo(e,t.type,zt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function su(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Oo(e,t,n){(t!=="number"||Bi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var dr=Array.isArray;function In(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+zt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Io(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(T(91));return J({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ou(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(T(92));if(dr(n)){if(1<n.length)throw Error(T(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:zt(n)}}function Df(e,t){var n=zt(t.value),r=zt(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function lu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Af(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 Fo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Af(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ai,_f=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ai=ai||document.createElement("div"),ai.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ai.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Mr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var gr={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},jm=["Webkit","ms","Moz","O"];Object.keys(gr).forEach(function(e){jm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),gr[t]=gr[e]})});function Of(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||gr.hasOwnProperty(e)&&gr[e]?(""+t).trim():t+"px"}function If(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Of(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Lm=J({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 zo(e,t){if(t){if(Lm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(T(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(T(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(T(61))}if(t.style!=null&&typeof t.style!="object")throw Error(T(62))}}function Bo(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 Uo=null;function Kl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $o=null,Fn=null,zn=null;function au(e){if(e=Jr(e)){if(typeof $o!="function")throw Error(T(280));var t=e.stateNode;t&&(t=Cs(t),$o(e.stateNode,e.type,t))}}function Ff(e){Fn?zn?zn.push(e):zn=[e]:Fn=e}function zf(){if(Fn){var e=Fn,t=zn;if(zn=Fn=null,au(e),t)for(e=0;e<t.length;e++)au(t[e])}}function Bf(e,t){return e(t)}function Uf(){}var Gs=!1;function $f(e,t,n){if(Gs)return e(t,n);Gs=!0;try{return Bf(e,t,n)}finally{Gs=!1,(Fn!==null||zn!==null)&&(Uf(),zf())}}function Rr(e,t){var n=e.stateNode;if(n===null)return null;var r=Cs(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(T(231,t,typeof n));return n}var Wo=!1;if(mt)try{var nr={};Object.defineProperty(nr,"passive",{get:function(){Wo=!0}}),window.addEventListener("test",nr,nr),window.removeEventListener("test",nr,nr)}catch{Wo=!1}function Mm(e,t,n,r,i,s,o,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var yr=!1,Ui=null,$i=!1,Ho=null,Rm={onError:function(e){yr=!0,Ui=e}};function Vm(e,t,n,r,i,s,o,l,a){yr=!1,Ui=null,Mm.apply(Rm,arguments)}function Dm(e,t,n,r,i,s,o,l,a){if(Vm.apply(this,arguments),yr){if(yr){var u=Ui;yr=!1,Ui=null}else throw Error(T(198));$i||($i=!0,Ho=u)}}function gn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Wf(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 uu(e){if(gn(e)!==e)throw Error(T(188))}function Am(e){var t=e.alternate;if(!t){if(t=gn(e),t===null)throw Error(T(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return uu(i),e;if(s===r)return uu(i),t;s=s.sibling}throw Error(T(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,l=i.child;l;){if(l===n){o=!0,n=i,r=s;break}if(l===r){o=!0,r=i,n=s;break}l=l.sibling}if(!o){for(l=s.child;l;){if(l===n){o=!0,n=s,r=i;break}if(l===r){o=!0,r=s,n=i;break}l=l.sibling}if(!o)throw Error(T(189))}}if(n.alternate!==r)throw Error(T(190))}if(n.tag!==3)throw Error(T(188));return n.stateNode.current===n?e:t}function Hf(e){return e=Am(e),e!==null?Kf(e):null}function Kf(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Kf(e);if(t!==null)return t;e=e.sibling}return null}var Qf=_e.unstable_scheduleCallback,cu=_e.unstable_cancelCallback,_m=_e.unstable_shouldYield,Om=_e.unstable_requestPaint,ee=_e.unstable_now,Im=_e.unstable_getCurrentPriorityLevel,Ql=_e.unstable_ImmediatePriority,Gf=_e.unstable_UserBlockingPriority,Wi=_e.unstable_NormalPriority,Fm=_e.unstable_LowPriority,bf=_e.unstable_IdlePriority,xs=null,it=null;function zm(e){if(it&&typeof it.onCommitFiberRoot=="function")try{it.onCommitFiberRoot(xs,e,void 0,(e.current.flags&128)===128)}catch{}}var Ze=Math.clz32?Math.clz32:$m,Bm=Math.log,Um=Math.LN2;function $m(e){return e>>>=0,e===0?32:31-(Bm(e)/Um|0)|0}var ui=64,ci=4194304;function hr(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 Hi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~i;l!==0?r=hr(l):(s&=o,s!==0&&(r=hr(s)))}else o=n&~i,o!==0?r=hr(o):s!==0&&(r=hr(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ze(t),i=1<<n,r|=e[n],t&=~i;return r}function Wm(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 Hm(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-Ze(s),l=1<<o,a=i[o];a===-1?(!(l&n)||l&r)&&(i[o]=Wm(l,t)):a<=t&&(e.expiredLanes|=l),s&=~l}}function Ko(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Yf(){var e=ui;return ui<<=1,!(ui&4194240)&&(ui=64),e}function bs(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Xr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ze(t),e[t]=n}function Km(e,t){var n=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 r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Ze(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function Gl(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ze(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var U=0;function Xf(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Zf,bl,Jf,qf,ed,Qo=!1,fi=[],Mt=null,Rt=null,Vt=null,Vr=new Map,Dr=new Map,Et=[],Qm="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 fu(e,t){switch(e){case"focusin":case"focusout":Mt=null;break;case"dragenter":case"dragleave":Rt=null;break;case"mouseover":case"mouseout":Vt=null;break;case"pointerover":case"pointerout":Vr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dr.delete(t.pointerId)}}function rr(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=Jr(t),t!==null&&bl(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Gm(e,t,n,r,i){switch(t){case"focusin":return Mt=rr(Mt,e,t,n,r,i),!0;case"dragenter":return Rt=rr(Rt,e,t,n,r,i),!0;case"mouseover":return Vt=rr(Vt,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return Vr.set(s,rr(Vr.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,Dr.set(s,rr(Dr.get(s)||null,e,t,n,r,i)),!0}return!1}function td(e){var t=nn(e.target);if(t!==null){var n=gn(t);if(n!==null){if(t=n.tag,t===13){if(t=Wf(n),t!==null){e.blockedOn=t,ed(e.priority,function(){Jf(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ji(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Go(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Uo=r,n.target.dispatchEvent(r),Uo=null}else return t=Jr(n),t!==null&&bl(t),e.blockedOn=n,!1;t.shift()}return!0}function du(e,t,n){ji(e)&&n.delete(t)}function bm(){Qo=!1,Mt!==null&&ji(Mt)&&(Mt=null),Rt!==null&&ji(Rt)&&(Rt=null),Vt!==null&&ji(Vt)&&(Vt=null),Vr.forEach(du),Dr.forEach(du)}function ir(e,t){e.blockedOn===t&&(e.blockedOn=null,Qo||(Qo=!0,_e.unstable_scheduleCallback(_e.unstable_NormalPriority,bm)))}function Ar(e){function t(i){return ir(i,e)}if(0<fi.length){ir(fi[0],e);for(var n=1;n<fi.length;n++){var r=fi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Mt!==null&&ir(Mt,e),Rt!==null&&ir(Rt,e),Vt!==null&&ir(Vt,e),Vr.forEach(t),Dr.forEach(t),n=0;n<Et.length;n++)r=Et[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Et.length&&(n=Et[0],n.blockedOn===null);)td(n),n.blockedOn===null&&Et.shift()}var Bn=wt.ReactCurrentBatchConfig,Ki=!0;function Ym(e,t,n,r){var i=U,s=Bn.transition;Bn.transition=null;try{U=1,Yl(e,t,n,r)}finally{U=i,Bn.transition=s}}function Xm(e,t,n,r){var i=U,s=Bn.transition;Bn.transition=null;try{U=4,Yl(e,t,n,r)}finally{U=i,Bn.transition=s}}function Yl(e,t,n,r){if(Ki){var i=Go(e,t,n,r);if(i===null)io(e,t,r,Qi,n),fu(e,r);else if(Gm(i,e,t,n,r))r.stopPropagation();else if(fu(e,r),t&4&&-1<Qm.indexOf(e)){for(;i!==null;){var s=Jr(i);if(s!==null&&Zf(s),s=Go(e,t,n,r),s===null&&io(e,t,r,Qi,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else io(e,t,r,null,n)}}var Qi=null;function Go(e,t,n,r){if(Qi=null,e=Kl(r),e=nn(e),e!==null)if(t=gn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Wf(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Qi=e,null}function nd(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(Im()){case Ql:return 1;case Gf:return 4;case Wi:case Fm:return 16;case bf:return 536870912;default:return 16}default:return 16}}var jt=null,Xl=null,Li=null;function rd(){if(Li)return Li;var e,t=Xl,n=t.length,r,i="value"in jt?jt.value:jt.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[s-r];r++);return Li=i.slice(e,1<r?1-r:void 0)}function Mi(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 di(){return!0}function hu(){return!1}function Fe(e){function t(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(s):s[l]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?di:hu,this.isPropagationStopped=hu,this}return J(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=di)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=di)},persist:function(){},isPersistent:di}),t}var qn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zl=Fe(qn),Zr=J({},qn,{view:0,detail:0}),Zm=Fe(Zr),Ys,Xs,sr,ws=J({},Zr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Jl,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!==sr&&(sr&&e.type==="mousemove"?(Ys=e.screenX-sr.screenX,Xs=e.screenY-sr.screenY):Xs=Ys=0,sr=e),Ys)},movementY:function(e){return"movementY"in e?e.movementY:Xs}}),pu=Fe(ws),Jm=J({},ws,{dataTransfer:0}),qm=Fe(Jm),eg=J({},Zr,{relatedTarget:0}),Zs=Fe(eg),tg=J({},qn,{animationName:0,elapsedTime:0,pseudoElement:0}),ng=Fe(tg),rg=J({},qn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ig=Fe(rg),sg=J({},qn,{data:0}),mu=Fe(sg),og={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},lg={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"},ag={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ug(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ag[e])?!!t[e]:!1}function Jl(){return ug}var cg=J({},Zr,{key:function(e){if(e.key){var t=og[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Mi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?lg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Jl,charCode:function(e){return e.type==="keypress"?Mi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Mi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),fg=Fe(cg),dg=J({},ws,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gu=Fe(dg),hg=J({},Zr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Jl}),pg=Fe(hg),mg=J({},qn,{propertyName:0,elapsedTime:0,pseudoElement:0}),gg=Fe(mg),yg=J({},ws,{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}),vg=Fe(yg),xg=[9,13,27,32],ql=mt&&"CompositionEvent"in window,vr=null;mt&&"documentMode"in document&&(vr=document.documentMode);var wg=mt&&"TextEvent"in window&&!vr,id=mt&&(!ql||vr&&8<vr&&11>=vr),yu=" ",vu=!1;function sd(e,t){switch(e){case"keyup":return xg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function od(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Cn=!1;function Sg(e,t){switch(e){case"compositionend":return od(t);case"keypress":return t.which!==32?null:(vu=!0,yu);case"textInput":return e=t.data,e===yu&&vu?null:e;default:return null}}function kg(e,t){if(Cn)return e==="compositionend"||!ql&&sd(e,t)?(e=rd(),Li=Xl=jt=null,Cn=!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 id&&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 xu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Cg[e.type]:t==="textarea"}function ld(e,t,n,r){Ff(r),t=Gi(t,"onChange"),0<t.length&&(n=new Zl("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var xr=null,_r=null;function Pg(e){vd(e,0)}function Ss(e){var t=En(e);if(Rf(t))return e}function Tg(e,t){if(e==="change")return t}var ad=!1;if(mt){var Js;if(mt){var qs="oninput"in document;if(!qs){var wu=document.createElement("div");wu.setAttribute("oninput","return;"),qs=typeof wu.oninput=="function"}Js=qs}else Js=!1;ad=Js&&(!document.documentMode||9<document.documentMode)}function Su(){xr&&(xr.detachEvent("onpropertychange",ud),_r=xr=null)}function ud(e){if(e.propertyName==="value"&&Ss(_r)){var t=[];ld(t,_r,e,Kl(e)),$f(Pg,t)}}function Eg(e,t,n){e==="focusin"?(Su(),xr=t,_r=n,xr.attachEvent("onpropertychange",ud)):e==="focusout"&&Su()}function Ng(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ss(_r)}function jg(e,t){if(e==="click")return Ss(t)}function Lg(e,t){if(e==="input"||e==="change")return Ss(t)}function Mg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var qe=typeof Object.is=="function"?Object.is:Mg;function Or(e,t){if(qe(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Lo.call(t,i)||!qe(e[i],t[i]))return!1}return!0}function ku(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Cu(e,t){var n=ku(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ku(n)}}function cd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?cd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function fd(){for(var e=window,t=Bi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Bi(e.document)}return t}function ea(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 Rg(e){var t=fd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&cd(n.ownerDocument.documentElement,n)){if(r!==null&&ea(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=Cu(n,s);var o=Cu(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Vg=mt&&"documentMode"in document&&11>=document.documentMode,Pn=null,bo=null,wr=null,Yo=!1;function Pu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Yo||Pn==null||Pn!==Bi(r)||(r=Pn,"selectionStart"in r&&ea(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),wr&&Or(wr,r)||(wr=r,r=Gi(bo,"onSelect"),0<r.length&&(t=new Zl("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Pn)))}function hi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Tn={animationend:hi("Animation","AnimationEnd"),animationiteration:hi("Animation","AnimationIteration"),animationstart:hi("Animation","AnimationStart"),transitionend:hi("Transition","TransitionEnd")},eo={},dd={};mt&&(dd=document.createElement("div").style,"AnimationEvent"in window||(delete Tn.animationend.animation,delete Tn.animationiteration.animation,delete Tn.animationstart.animation),"TransitionEvent"in window||delete Tn.transitionend.transition);function ks(e){if(eo[e])return eo[e];if(!Tn[e])return e;var t=Tn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in dd)return eo[e]=t[n];return e}var hd=ks("animationend"),pd=ks("animationiteration"),md=ks("animationstart"),gd=ks("transitionend"),yd=new Map,Tu="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 Wt(e,t){yd.set(e,t),mn(t,[e])}for(var to=0;to<Tu.length;to++){var no=Tu[to],Dg=no.toLowerCase(),Ag=no[0].toUpperCase()+no.slice(1);Wt(Dg,"on"+Ag)}Wt(hd,"onAnimationEnd");Wt(pd,"onAnimationIteration");Wt(md,"onAnimationStart");Wt("dblclick","onDoubleClick");Wt("focusin","onFocus");Wt("focusout","onBlur");Wt(gd,"onTransitionEnd");Wn("onMouseEnter",["mouseout","mouseover"]);Wn("onMouseLeave",["mouseout","mouseover"]);Wn("onPointerEnter",["pointerout","pointerover"]);Wn("onPointerLeave",["pointerout","pointerover"]);mn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));mn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));mn("onBeforeInput",["compositionend","keypress","textInput","paste"]);mn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));mn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));mn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var pr="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(" "),_g=new Set("cancel close invalid load scroll toggle".split(" ").concat(pr));function Eu(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Dm(r,t,void 0,e),e.currentTarget=null}function vd(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var o=r.length-1;0<=o;o--){var l=r[o],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==s&&i.isPropagationStopped())break e;Eu(i,l,u),s=a}else for(o=0;o<r.length;o++){if(l=r[o],a=l.instance,u=l.currentTarget,l=l.listener,a!==s&&i.isPropagationStopped())break e;Eu(i,l,u),s=a}}}if($i)throw e=Ho,$i=!1,Ho=null,e}function H(e,t){var n=t[el];n===void 0&&(n=t[el]=new Set);var r=e+"__bubble";n.has(r)||(xd(t,e,2,!1),n.add(r))}function ro(e,t,n){var r=0;t&&(r|=4),xd(n,e,r,t)}var pi="_reactListening"+Math.random().toString(36).slice(2);function Ir(e){if(!e[pi]){e[pi]=!0,Ef.forEach(function(n){n!=="selectionchange"&&(_g.has(n)||ro(n,!1,e),ro(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[pi]||(t[pi]=!0,ro("selectionchange",!1,t))}}function xd(e,t,n,r){switch(nd(t)){case 1:var i=Ym;break;case 4:i=Xm;break;default:i=Yl}n=i.bind(null,t,n,e),i=void 0,!Wo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function io(e,t,n,r,i){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var a=o.tag;if((a===3||a===4)&&(a=o.stateNode.containerInfo,a===i||a.nodeType===8&&a.parentNode===i))return;o=o.return}for(;l!==null;){if(o=nn(l),o===null)return;if(a=o.tag,a===5||a===6){r=s=o;continue e}l=l.parentNode}}r=r.return}$f(function(){var u=s,c=Kl(n),f=[];e:{var d=yd.get(e);if(d!==void 0){var g=Zl,m=e;switch(e){case"keypress":if(Mi(n)===0)break e;case"keydown":case"keyup":g=fg;break;case"focusin":m="focus",g=Zs;break;case"focusout":m="blur",g=Zs;break;case"beforeblur":case"afterblur":g=Zs;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=pu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=qm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=pg;break;case hd:case pd:case md:g=ng;break;case gd:g=gg;break;case"scroll":g=Zm;break;case"wheel":g=vg;break;case"copy":case"cut":case"paste":g=ig;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=gu}var v=(t&4)!==0,S=!v&&e==="scroll",y=v?d!==null?d+"Capture":null:d;v=[];for(var p=u,h;p!==null;){h=p;var x=h.stateNode;if(h.tag===5&&x!==null&&(h=x,y!==null&&(x=Rr(p,y),x!=null&&v.push(Fr(p,x,h)))),S)break;p=p.return}0<v.length&&(d=new g(d,m,null,n,c),f.push({event:d,listeners:v}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",d&&n!==Uo&&(m=n.relatedTarget||n.fromElement)&&(nn(m)||m[gt]))break e;if((g||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,g?(m=n.relatedTarget||n.toElement,g=u,m=m?nn(m):null,m!==null&&(S=gn(m),m!==S||m.tag!==5&&m.tag!==6)&&(m=null)):(g=null,m=u),g!==m)){if(v=pu,x="onMouseLeave",y="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(v=gu,x="onPointerLeave",y="onPointerEnter",p="pointer"),S=g==null?d:En(g),h=m==null?d:En(m),d=new v(x,p+"leave",g,n,c),d.target=S,d.relatedTarget=h,x=null,nn(c)===u&&(v=new v(y,p+"enter",m,n,c),v.target=h,v.relatedTarget=S,x=v),S=x,g&&m)t:{for(v=g,y=m,p=0,h=v;h;h=wn(h))p++;for(h=0,x=y;x;x=wn(x))h++;for(;0<p-h;)v=wn(v),p--;for(;0<h-p;)y=wn(y),h--;for(;p--;){if(v===y||y!==null&&v===y.alternate)break t;v=wn(v),y=wn(y)}v=null}else v=null;g!==null&&Nu(f,d,g,v,!1),m!==null&&S!==null&&Nu(f,S,m,v,!0)}}e:{if(d=u?En(u):window,g=d.nodeName&&d.nodeName.toLowerCase(),g==="select"||g==="input"&&d.type==="file")var k=Tg;else if(xu(d))if(ad)k=Lg;else{k=Ng;var E=Eg}else(g=d.nodeName)&&g.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(k=jg);if(k&&(k=k(e,u))){ld(f,k,n,c);break e}E&&E(e,d,u),e==="focusout"&&(E=d._wrapperState)&&E.controlled&&d.type==="number"&&Oo(d,"number",d.value)}switch(E=u?En(u):window,e){case"focusin":(xu(E)||E.contentEditable==="true")&&(Pn=E,bo=u,wr=null);break;case"focusout":wr=bo=Pn=null;break;case"mousedown":Yo=!0;break;case"contextmenu":case"mouseup":case"dragend":Yo=!1,Pu(f,n,c);break;case"selectionchange":if(Vg)break;case"keydown":case"keyup":Pu(f,n,c)}var N;if(ql)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else Cn?sd(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(id&&n.locale!=="ko"&&(Cn||P!=="onCompositionStart"?P==="onCompositionEnd"&&Cn&&(N=rd()):(jt=c,Xl="value"in jt?jt.value:jt.textContent,Cn=!0)),E=Gi(u,P),0<E.length&&(P=new mu(P,e,null,n,c),f.push({event:P,listeners:E}),N?P.data=N:(N=od(n),N!==null&&(P.data=N)))),(N=wg?Sg(e,n):kg(e,n))&&(u=Gi(u,"onBeforeInput"),0<u.length&&(c=new mu("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=N))}vd(f,t)})}function Fr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Gi(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=Rr(e,n),s!=null&&r.unshift(Fr(e,s,i)),s=Rr(e,t),s!=null&&r.push(Fr(e,s,i))),e=e.return}return r}function wn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Nu(e,t,n,r,i){for(var s=t._reactName,o=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,i?(a=Rr(n,s),a!=null&&o.unshift(Fr(n,a,l))):i||(a=Rr(n,s),a!=null&&o.push(Fr(n,a,l)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Og=/\r\n?/g,Ig=/\u0000|\uFFFD/g;function ju(e){return(typeof e=="string"?e:""+e).replace(Og,`
38
- `).replace(Ig,"")}function mi(e,t,n){if(t=ju(t),ju(e)!==t&&n)throw Error(T(425))}function bi(){}var Xo=null,Zo=null;function Jo(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 qo=typeof setTimeout=="function"?setTimeout:void 0,Fg=typeof clearTimeout=="function"?clearTimeout:void 0,Lu=typeof Promise=="function"?Promise:void 0,zg=typeof queueMicrotask=="function"?queueMicrotask:typeof Lu<"u"?function(e){return Lu.resolve(null).then(e).catch(Bg)}:qo;function Bg(e){setTimeout(function(){throw e})}function so(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Ar(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Ar(t)}function Dt(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 Mu(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var er=Math.random().toString(36).slice(2),rt="__reactFiber$"+er,zr="__reactProps$"+er,gt="__reactContainer$"+er,el="__reactEvents$"+er,Ug="__reactListeners$"+er,$g="__reactHandles$"+er;function nn(e){var t=e[rt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[gt]||n[rt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Mu(e);e!==null;){if(n=e[rt])return n;e=Mu(e)}return t}e=n,n=e.parentNode}return null}function Jr(e){return e=e[rt]||e[gt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function En(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(T(33))}function Cs(e){return e[zr]||null}var tl=[],Nn=-1;function Ht(e){return{current:e}}function K(e){0>Nn||(e.current=tl[Nn],tl[Nn]=null,Nn--)}function $(e,t){Nn++,tl[Nn]=e.current,e.current=t}var Bt={},ve=Ht(Bt),Ee=Ht(!1),cn=Bt;function Hn(e,t){var n=e.type.contextTypes;if(!n)return Bt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ne(e){return e=e.childContextTypes,e!=null}function Yi(){K(Ee),K(ve)}function Ru(e,t,n){if(ve.current!==Bt)throw Error(T(168));$(ve,t),$(Ee,n)}function wd(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(T(108,Em(e)||"Unknown",i));return J({},n,r)}function Xi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Bt,cn=ve.current,$(ve,e),$(Ee,Ee.current),!0}function Vu(e,t,n){var r=e.stateNode;if(!r)throw Error(T(169));n?(e=wd(e,t,cn),r.__reactInternalMemoizedMergedChildContext=e,K(Ee),K(ve),$(ve,e)):K(Ee),$(Ee,n)}var at=null,Ps=!1,oo=!1;function Sd(e){at===null?at=[e]:at.push(e)}function Wg(e){Ps=!0,Sd(e)}function Kt(){if(!oo&&at!==null){oo=!0;var e=0,t=U;try{var n=at;for(U=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}at=null,Ps=!1}catch(i){throw at!==null&&(at=at.slice(e+1)),Qf(Ql,Kt),i}finally{U=t,oo=!1}}return null}var jn=[],Ln=0,Zi=null,Ji=0,Ue=[],$e=0,fn=null,ut=1,ct="";function Zt(e,t){jn[Ln++]=Ji,jn[Ln++]=Zi,Zi=e,Ji=t}function kd(e,t,n){Ue[$e++]=ut,Ue[$e++]=ct,Ue[$e++]=fn,fn=e;var r=ut;e=ct;var i=32-Ze(r)-1;r&=~(1<<i),n+=1;var s=32-Ze(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,ut=1<<32-Ze(t)+i|n<<i|r,ct=s+e}else ut=1<<s|n<<i|r,ct=e}function ta(e){e.return!==null&&(Zt(e,1),kd(e,1,0))}function na(e){for(;e===Zi;)Zi=jn[--Ln],jn[Ln]=null,Ji=jn[--Ln],jn[Ln]=null;for(;e===fn;)fn=Ue[--$e],Ue[$e]=null,ct=Ue[--$e],Ue[$e]=null,ut=Ue[--$e],Ue[$e]=null}var Ae=null,De=null,G=!1,Xe=null;function Cd(e,t){var n=We(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Du(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ae=e,De=Dt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ae=e,De=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=fn!==null?{id:ut,overflow:ct}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=We(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ae=e,De=null,!0):!1;default:return!1}}function nl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function rl(e){if(G){var t=De;if(t){var n=t;if(!Du(e,t)){if(nl(e))throw Error(T(418));t=Dt(n.nextSibling);var r=Ae;t&&Du(e,t)?Cd(r,n):(e.flags=e.flags&-4097|2,G=!1,Ae=e)}}else{if(nl(e))throw Error(T(418));e.flags=e.flags&-4097|2,G=!1,Ae=e}}}function Au(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ae=e}function gi(e){if(e!==Ae)return!1;if(!G)return Au(e),G=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Jo(e.type,e.memoizedProps)),t&&(t=De)){if(nl(e))throw Pd(),Error(T(418));for(;t;)Cd(e,t),t=Dt(t.nextSibling)}if(Au(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(T(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){De=Dt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}De=null}}else De=Ae?Dt(e.stateNode.nextSibling):null;return!0}function Pd(){for(var e=De;e;)e=Dt(e.nextSibling)}function Kn(){De=Ae=null,G=!1}function ra(e){Xe===null?Xe=[e]:Xe.push(e)}var Hg=wt.ReactCurrentBatchConfig;function or(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(T(309));var r=n.stateNode}if(!r)throw Error(T(147,e));var i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var l=i.refs;o===null?delete l[s]:l[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(T(284));if(!n._owner)throw Error(T(290,e))}return e}function yi(e,t){throw e=Object.prototype.toString.call(t),Error(T(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function _u(e){var t=e._init;return t(e._payload)}function Td(e){function t(y,p){if(e){var h=y.deletions;h===null?(y.deletions=[p],y.flags|=16):h.push(p)}}function n(y,p){if(!e)return null;for(;p!==null;)t(y,p),p=p.sibling;return null}function r(y,p){for(y=new Map;p!==null;)p.key!==null?y.set(p.key,p):y.set(p.index,p),p=p.sibling;return y}function i(y,p){return y=It(y,p),y.index=0,y.sibling=null,y}function s(y,p,h){return y.index=h,e?(h=y.alternate,h!==null?(h=h.index,h<p?(y.flags|=2,p):h):(y.flags|=2,p)):(y.flags|=1048576,p)}function o(y){return e&&y.alternate===null&&(y.flags|=2),y}function l(y,p,h,x){return p===null||p.tag!==6?(p=po(h,y.mode,x),p.return=y,p):(p=i(p,h),p.return=y,p)}function a(y,p,h,x){var k=h.type;return k===kn?c(y,p,h.props.children,x,h.key):p!==null&&(p.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Ct&&_u(k)===p.type)?(x=i(p,h.props),x.ref=or(y,p,h),x.return=y,x):(x=Ii(h.type,h.key,h.props,null,y.mode,x),x.ref=or(y,p,h),x.return=y,x)}function u(y,p,h,x){return p===null||p.tag!==4||p.stateNode.containerInfo!==h.containerInfo||p.stateNode.implementation!==h.implementation?(p=mo(h,y.mode,x),p.return=y,p):(p=i(p,h.children||[]),p.return=y,p)}function c(y,p,h,x,k){return p===null||p.tag!==7?(p=an(h,y.mode,x,k),p.return=y,p):(p=i(p,h),p.return=y,p)}function f(y,p,h){if(typeof p=="string"&&p!==""||typeof p=="number")return p=po(""+p,y.mode,h),p.return=y,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case oi:return h=Ii(p.type,p.key,p.props,null,y.mode,h),h.ref=or(y,null,p),h.return=y,h;case Sn:return p=mo(p,y.mode,h),p.return=y,p;case Ct:var x=p._init;return f(y,x(p._payload),h)}if(dr(p)||tr(p))return p=an(p,y.mode,h,null),p.return=y,p;yi(y,p)}return null}function d(y,p,h,x){var k=p!==null?p.key:null;if(typeof h=="string"&&h!==""||typeof h=="number")return k!==null?null:l(y,p,""+h,x);if(typeof h=="object"&&h!==null){switch(h.$$typeof){case oi:return h.key===k?a(y,p,h,x):null;case Sn:return h.key===k?u(y,p,h,x):null;case Ct:return k=h._init,d(y,p,k(h._payload),x)}if(dr(h)||tr(h))return k!==null?null:c(y,p,h,x,null);yi(y,h)}return null}function g(y,p,h,x,k){if(typeof x=="string"&&x!==""||typeof x=="number")return y=y.get(h)||null,l(p,y,""+x,k);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case oi:return y=y.get(x.key===null?h:x.key)||null,a(p,y,x,k);case Sn:return y=y.get(x.key===null?h:x.key)||null,u(p,y,x,k);case Ct:var E=x._init;return g(y,p,h,E(x._payload),k)}if(dr(x)||tr(x))return y=y.get(h)||null,c(p,y,x,k,null);yi(p,x)}return null}function m(y,p,h,x){for(var k=null,E=null,N=p,P=p=0,R=null;N!==null&&P<h.length;P++){N.index>P?(R=N,N=null):R=N.sibling;var D=d(y,N,h[P],x);if(D===null){N===null&&(N=R);break}e&&N&&D.alternate===null&&t(y,N),p=s(D,p,P),E===null?k=D:E.sibling=D,E=D,N=R}if(P===h.length)return n(y,N),G&&Zt(y,P),k;if(N===null){for(;P<h.length;P++)N=f(y,h[P],x),N!==null&&(p=s(N,p,P),E===null?k=N:E.sibling=N,E=N);return G&&Zt(y,P),k}for(N=r(y,N);P<h.length;P++)R=g(N,y,P,h[P],x),R!==null&&(e&&R.alternate!==null&&N.delete(R.key===null?P:R.key),p=s(R,p,P),E===null?k=R:E.sibling=R,E=R);return e&&N.forEach(function(ne){return t(y,ne)}),G&&Zt(y,P),k}function v(y,p,h,x){var k=tr(h);if(typeof k!="function")throw Error(T(150));if(h=k.call(h),h==null)throw Error(T(151));for(var E=k=null,N=p,P=p=0,R=null,D=h.next();N!==null&&!D.done;P++,D=h.next()){N.index>P?(R=N,N=null):R=N.sibling;var ne=d(y,N,D.value,x);if(ne===null){N===null&&(N=R);break}e&&N&&ne.alternate===null&&t(y,N),p=s(ne,p,P),E===null?k=ne:E.sibling=ne,E=ne,N=R}if(D.done)return n(y,N),G&&Zt(y,P),k;if(N===null){for(;!D.done;P++,D=h.next())D=f(y,D.value,x),D!==null&&(p=s(D,p,P),E===null?k=D:E.sibling=D,E=D);return G&&Zt(y,P),k}for(N=r(y,N);!D.done;P++,D=h.next())D=g(N,y,P,D.value,x),D!==null&&(e&&D.alternate!==null&&N.delete(D.key===null?P:D.key),p=s(D,p,P),E===null?k=D:E.sibling=D,E=D);return e&&N.forEach(function(b){return t(y,b)}),G&&Zt(y,P),k}function S(y,p,h,x){if(typeof h=="object"&&h!==null&&h.type===kn&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case oi:e:{for(var k=h.key,E=p;E!==null;){if(E.key===k){if(k=h.type,k===kn){if(E.tag===7){n(y,E.sibling),p=i(E,h.props.children),p.return=y,y=p;break e}}else if(E.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Ct&&_u(k)===E.type){n(y,E.sibling),p=i(E,h.props),p.ref=or(y,E,h),p.return=y,y=p;break e}n(y,E);break}else t(y,E);E=E.sibling}h.type===kn?(p=an(h.props.children,y.mode,x,h.key),p.return=y,y=p):(x=Ii(h.type,h.key,h.props,null,y.mode,x),x.ref=or(y,p,h),x.return=y,y=x)}return o(y);case Sn:e:{for(E=h.key;p!==null;){if(p.key===E)if(p.tag===4&&p.stateNode.containerInfo===h.containerInfo&&p.stateNode.implementation===h.implementation){n(y,p.sibling),p=i(p,h.children||[]),p.return=y,y=p;break e}else{n(y,p);break}else t(y,p);p=p.sibling}p=mo(h,y.mode,x),p.return=y,y=p}return o(y);case Ct:return E=h._init,S(y,p,E(h._payload),x)}if(dr(h))return m(y,p,h,x);if(tr(h))return v(y,p,h,x);yi(y,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,p!==null&&p.tag===6?(n(y,p.sibling),p=i(p,h),p.return=y,y=p):(n(y,p),p=po(h,y.mode,x),p.return=y,y=p),o(y)):n(y,p)}return S}var Qn=Td(!0),Ed=Td(!1),qi=Ht(null),es=null,Mn=null,ia=null;function sa(){ia=Mn=es=null}function oa(e){var t=qi.current;K(qi),e._currentValue=t}function il(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Un(e,t){es=e,ia=Mn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Te=!0),e.firstContext=null)}function Ke(e){var t=e._currentValue;if(ia!==e)if(e={context:e,memoizedValue:t,next:null},Mn===null){if(es===null)throw Error(T(308));Mn=e,es.dependencies={lanes:0,firstContext:e}}else Mn=Mn.next=e;return t}var rn=null;function la(e){rn===null?rn=[e]:rn.push(e)}function Nd(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,la(t)):(n.next=i.next,i.next=n),t.interleaved=n,yt(e,r)}function yt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Pt=!1;function aa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function jd(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 dt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function At(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,B&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,yt(e,n)}return i=r.interleaved,i===null?(t.next=t,la(r)):(t.next=i.next,i.next=t),r.interleaved=t,yt(e,n)}function Ri(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Gl(e,n)}}function Ou(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ts(e,t,n,r){var i=e.updateQueue;Pt=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,u=a.next;a.next=null,o===null?s=u:o.next=u,o=a;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==o&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(s!==null){var f=i.baseState;o=0,c=u=a=null,l=s;do{var d=l.lane,g=l.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var m=e,v=l;switch(d=t,g=n,v.tag){case 1:if(m=v.payload,typeof m=="function"){f=m.call(g,f,d);break e}f=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=v.payload,d=typeof m=="function"?m.call(g,f,d):m,d==null)break e;f=J({},f,d);break e;case 2:Pt=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[l]:d.push(l))}else g={eventTime:g,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=g,a=f):c=c.next=g,o|=d;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;d=l,l=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(c===null&&(a=f),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);hn|=o,e.lanes=o,e.memoizedState=f}}function Iu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(T(191,i));i.call(r)}}}var qr={},st=Ht(qr),Br=Ht(qr),Ur=Ht(qr);function sn(e){if(e===qr)throw Error(T(174));return e}function ua(e,t){switch($(Ur,t),$(Br,e),$(st,qr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Fo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Fo(t,e)}K(st),$(st,t)}function Gn(){K(st),K(Br),K(Ur)}function Ld(e){sn(Ur.current);var t=sn(st.current),n=Fo(t,e.type);t!==n&&($(Br,e),$(st,n))}function ca(e){Br.current===e&&(K(st),K(Br))}var Y=Ht(0);function ns(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)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 lo=[];function fa(){for(var e=0;e<lo.length;e++)lo[e]._workInProgressVersionPrimary=null;lo.length=0}var Vi=wt.ReactCurrentDispatcher,ao=wt.ReactCurrentBatchConfig,dn=0,Z=null,oe=null,ae=null,rs=!1,Sr=!1,$r=0,Kg=0;function pe(){throw Error(T(321))}function da(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!qe(e[n],t[n]))return!1;return!0}function ha(e,t,n,r,i,s){if(dn=s,Z=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Vi.current=e===null||e.memoizedState===null?Yg:Xg,e=n(r,i),Sr){s=0;do{if(Sr=!1,$r=0,25<=s)throw Error(T(301));s+=1,ae=oe=null,t.updateQueue=null,Vi.current=Zg,e=n(r,i)}while(Sr)}if(Vi.current=is,t=oe!==null&&oe.next!==null,dn=0,ae=oe=Z=null,rs=!1,t)throw Error(T(300));return e}function pa(){var e=$r!==0;return $r=0,e}function nt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ae===null?Z.memoizedState=ae=e:ae=ae.next=e,ae}function Qe(){if(oe===null){var e=Z.alternate;e=e!==null?e.memoizedState:null}else e=oe.next;var t=ae===null?Z.memoizedState:ae.next;if(t!==null)ae=t,oe=e;else{if(e===null)throw Error(T(310));oe=e,e={memoizedState:oe.memoizedState,baseState:oe.baseState,baseQueue:oe.baseQueue,queue:oe.queue,next:null},ae===null?Z.memoizedState=ae=e:ae=ae.next=e}return ae}function Wr(e,t){return typeof t=="function"?t(e):t}function uo(e){var t=Qe(),n=t.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=e;var r=oe,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var l=o=null,a=null,u=s;do{var c=u.lane;if((dn&c)===c)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(l=a=f,o=r):a=a.next=f,Z.lanes|=c,hn|=c}u=u.next}while(u!==null&&u!==s);a===null?o=r:a.next=l,qe(r,t.memoizedState)||(Te=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,Z.lanes|=s,hn|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function co(e){var t=Qe(),n=t.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);qe(s,t.memoizedState)||(Te=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Md(){}function Rd(e,t){var n=Z,r=Qe(),i=t(),s=!qe(r.memoizedState,i);if(s&&(r.memoizedState=i,Te=!0),r=r.queue,ma(Ad.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||ae!==null&&ae.memoizedState.tag&1){if(n.flags|=2048,Hr(9,Dd.bind(null,n,r,i,t),void 0,null),ue===null)throw Error(T(349));dn&30||Vd(n,t,i)}return i}function Vd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Z.updateQueue,t===null?(t={lastEffect:null,stores:null},Z.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Dd(e,t,n,r){t.value=n,t.getSnapshot=r,_d(t)&&Od(e)}function Ad(e,t,n){return n(function(){_d(t)&&Od(e)})}function _d(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!qe(e,n)}catch{return!0}}function Od(e){var t=yt(e,1);t!==null&&Je(t,e,1,-1)}function Fu(e){var t=nt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Wr,lastRenderedState:e},t.queue=e,e=e.dispatch=bg.bind(null,Z,e),[t.memoizedState,e]}function Hr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Z.updateQueue,t===null?(t={lastEffect:null,stores:null},Z.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Id(){return Qe().memoizedState}function Di(e,t,n,r){var i=nt();Z.flags|=e,i.memoizedState=Hr(1|t,n,void 0,r===void 0?null:r)}function Ts(e,t,n,r){var i=Qe();r=r===void 0?null:r;var s=void 0;if(oe!==null){var o=oe.memoizedState;if(s=o.destroy,r!==null&&da(r,o.deps)){i.memoizedState=Hr(t,n,s,r);return}}Z.flags|=e,i.memoizedState=Hr(1|t,n,s,r)}function zu(e,t){return Di(8390656,8,e,t)}function ma(e,t){return Ts(2048,8,e,t)}function Fd(e,t){return Ts(4,2,e,t)}function zd(e,t){return Ts(4,4,e,t)}function Bd(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 Ud(e,t,n){return n=n!=null?n.concat([e]):null,Ts(4,4,Bd.bind(null,t,e),n)}function ga(){}function $d(e,t){var n=Qe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&da(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Wd(e,t){var n=Qe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&da(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Hd(e,t,n){return dn&21?(qe(n,t)||(n=Yf(),Z.lanes|=n,hn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Te=!0),e.memoizedState=n)}function Qg(e,t){var n=U;U=n!==0&&4>n?n:4,e(!0);var r=ao.transition;ao.transition={};try{e(!1),t()}finally{U=n,ao.transition=r}}function Kd(){return Qe().memoizedState}function Gg(e,t,n){var r=Ot(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Qd(e))Gd(t,n);else if(n=Nd(e,t,n,r),n!==null){var i=Se();Je(n,e,r,i),bd(n,t,r)}}function bg(e,t,n){var r=Ot(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Qd(e))Gd(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,l=s(o,n);if(i.hasEagerState=!0,i.eagerState=l,qe(l,o)){var a=t.interleaved;a===null?(i.next=i,la(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Nd(e,t,i,r),n!==null&&(i=Se(),Je(n,e,r,i),bd(n,t,r))}}function Qd(e){var t=e.alternate;return e===Z||t!==null&&t===Z}function Gd(e,t){Sr=rs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function bd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Gl(e,n)}}var is={readContext:Ke,useCallback:pe,useContext:pe,useEffect:pe,useImperativeHandle:pe,useInsertionEffect:pe,useLayoutEffect:pe,useMemo:pe,useReducer:pe,useRef:pe,useState:pe,useDebugValue:pe,useDeferredValue:pe,useTransition:pe,useMutableSource:pe,useSyncExternalStore:pe,useId:pe,unstable_isNewReconciler:!1},Yg={readContext:Ke,useCallback:function(e,t){return nt().memoizedState=[e,t===void 0?null:t],e},useContext:Ke,useEffect:zu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Di(4194308,4,Bd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Di(4194308,4,e,t)},useInsertionEffect:function(e,t){return Di(4,2,e,t)},useMemo:function(e,t){var n=nt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=nt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Gg.bind(null,Z,e),[r.memoizedState,e]},useRef:function(e){var t=nt();return e={current:e},t.memoizedState=e},useState:Fu,useDebugValue:ga,useDeferredValue:function(e){return nt().memoizedState=e},useTransition:function(){var e=Fu(!1),t=e[0];return e=Qg.bind(null,e[1]),nt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Z,i=nt();if(G){if(n===void 0)throw Error(T(407));n=n()}else{if(n=t(),ue===null)throw Error(T(349));dn&30||Vd(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,zu(Ad.bind(null,r,s,e),[e]),r.flags|=2048,Hr(9,Dd.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=nt(),t=ue.identifierPrefix;if(G){var n=ct,r=ut;n=(r&~(1<<32-Ze(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=$r++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Kg++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Xg={readContext:Ke,useCallback:$d,useContext:Ke,useEffect:ma,useImperativeHandle:Ud,useInsertionEffect:Fd,useLayoutEffect:zd,useMemo:Wd,useReducer:uo,useRef:Id,useState:function(){return uo(Wr)},useDebugValue:ga,useDeferredValue:function(e){var t=Qe();return Hd(t,oe.memoizedState,e)},useTransition:function(){var e=uo(Wr)[0],t=Qe().memoizedState;return[e,t]},useMutableSource:Md,useSyncExternalStore:Rd,useId:Kd,unstable_isNewReconciler:!1},Zg={readContext:Ke,useCallback:$d,useContext:Ke,useEffect:ma,useImperativeHandle:Ud,useInsertionEffect:Fd,useLayoutEffect:zd,useMemo:Wd,useReducer:co,useRef:Id,useState:function(){return co(Wr)},useDebugValue:ga,useDeferredValue:function(e){var t=Qe();return oe===null?t.memoizedState=e:Hd(t,oe.memoizedState,e)},useTransition:function(){var e=co(Wr)[0],t=Qe().memoizedState;return[e,t]},useMutableSource:Md,useSyncExternalStore:Rd,useId:Kd,unstable_isNewReconciler:!1};function be(e,t){if(e&&e.defaultProps){t=J({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function sl(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:J({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Es={isMounted:function(e){return(e=e._reactInternals)?gn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Se(),i=Ot(e),s=dt(r,i);s.payload=t,n!=null&&(s.callback=n),t=At(e,s,i),t!==null&&(Je(t,e,i,r),Ri(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Se(),i=Ot(e),s=dt(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=At(e,s,i),t!==null&&(Je(t,e,i,r),Ri(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Se(),r=Ot(e),i=dt(n,r);i.tag=2,t!=null&&(i.callback=t),t=At(e,i,r),t!==null&&(Je(t,e,r,n),Ri(t,e,r))}};function Bu(e,t,n,r,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!Or(n,r)||!Or(i,s):!0}function Yd(e,t,n){var r=!1,i=Bt,s=t.contextType;return typeof s=="object"&&s!==null?s=Ke(s):(i=Ne(t)?cn:ve.current,r=t.contextTypes,s=(r=r!=null)?Hn(e,i):Bt),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Es,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function Uu(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Es.enqueueReplaceState(t,t.state,null)}function ol(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},aa(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=Ke(s):(s=Ne(t)?cn:ve.current,i.context=Hn(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(sl(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Es.enqueueReplaceState(i,i.state,null),ts(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function bn(e,t){try{var n="",r=t;do n+=Tm(r),r=r.return;while(r);var i=n}catch(s){i=`
39
- Error generating stack: `+s.message+`
40
- `+s.stack}return{value:e,source:t,stack:i,digest:null}}function fo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ll(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Jg=typeof WeakMap=="function"?WeakMap:Map;function Xd(e,t,n){n=dt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){os||(os=!0,yl=r),ll(e,t)},n}function Zd(e,t,n){n=dt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ll(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){ll(e,t),typeof r!="function"&&(_t===null?_t=new Set([this]):_t.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function $u(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Jg;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=dy.bind(null,e,t,n),t.then(e,e))}function Wu(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 Hu(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=dt(-1,1),t.tag=2,At(n,t,1))),n.lanes|=1),e)}var qg=wt.ReactCurrentOwner,Te=!1;function we(e,t,n,r){t.child=e===null?Ed(t,null,n,r):Qn(t,e.child,n,r)}function Ku(e,t,n,r,i){n=n.render;var s=t.ref;return Un(t,i),r=ha(e,t,n,r,s,i),n=pa(),e!==null&&!Te?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,vt(e,t,i)):(G&&n&&ta(t),t.flags|=1,we(e,t,r,i),t.child)}function Qu(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!Pa(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,Jd(e,t,s,r,i)):(e=Ii(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:Or,n(o,r)&&e.ref===t.ref)return vt(e,t,i)}return t.flags|=1,e=It(s,r),e.ref=t.ref,e.return=t,t.child=e}function Jd(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(Or(s,r)&&e.ref===t.ref)if(Te=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(Te=!0);else return t.lanes=e.lanes,vt(e,t,i)}return al(e,t,n,r,i)}function qd(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},$(Vn,Ve),Ve|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,$(Vn,Ve),Ve|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,$(Vn,Ve),Ve|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,$(Vn,Ve),Ve|=r;return we(e,t,i,n),t.child}function eh(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function al(e,t,n,r,i){var s=Ne(n)?cn:ve.current;return s=Hn(t,s),Un(t,i),n=ha(e,t,n,r,s,i),r=pa(),e!==null&&!Te?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,vt(e,t,i)):(G&&r&&ta(t),t.flags|=1,we(e,t,n,i),t.child)}function Gu(e,t,n,r,i){if(Ne(n)){var s=!0;Xi(t)}else s=!1;if(Un(t,i),t.stateNode===null)Ai(e,t),Yd(t,n,r),ol(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var a=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ke(u):(u=Ne(n)?cn:ve.current,u=Hn(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==r||a!==u)&&Uu(t,o,r,u),Pt=!1;var d=t.memoizedState;o.state=d,ts(t,r,o,i),a=t.memoizedState,l!==r||d!==a||Ee.current||Pt?(typeof c=="function"&&(sl(t,n,c,r),a=t.memoizedState),(l=Pt||Bu(t,n,l,r,d,a,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),o.props=r,o.state=a,o.context=u,r=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,jd(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:be(t.type,l),o.props=u,f=t.pendingProps,d=o.context,a=n.contextType,typeof a=="object"&&a!==null?a=Ke(a):(a=Ne(n)?cn:ve.current,a=Hn(t,a));var g=n.getDerivedStateFromProps;(c=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==f||d!==a)&&Uu(t,o,r,a),Pt=!1,d=t.memoizedState,o.state=d,ts(t,r,o,i);var m=t.memoizedState;l!==f||d!==m||Ee.current||Pt?(typeof g=="function"&&(sl(t,n,g,r),m=t.memoizedState),(u=Pt||Bu(t,n,u,r,d,m,a)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,m,a),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,m,a)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=a,r=u):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return ul(e,t,n,r,s,i)}function ul(e,t,n,r,i,s){eh(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&Vu(t,n,!1),vt(e,t,s);r=t.stateNode,qg.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Qn(t,e.child,null,s),t.child=Qn(t,null,l,s)):we(e,t,l,s),t.memoizedState=r.state,i&&Vu(t,n,!0),t.child}function th(e){var t=e.stateNode;t.pendingContext?Ru(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ru(e,t.context,!1),ua(e,t.containerInfo)}function bu(e,t,n,r,i){return Kn(),ra(i),t.flags|=256,we(e,t,n,r),t.child}var cl={dehydrated:null,treeContext:null,retryLane:0};function fl(e){return{baseLanes:e,cachePool:null,transitions:null}}function nh(e,t,n){var r=t.pendingProps,i=Y.current,s=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),$(Y,i&1),e===null)return rl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=Ls(o,r,0,null),e=an(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=fl(n),t.memoizedState=cl,e):ya(t,o));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return ey(e,t,o,r,l,i,n);if(s){s=r.fallback,o=t.mode,i=e.child,l=i.sibling;var a={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=It(i,a),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?s=It(l,s):(s=an(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?fl(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=cl,r}return s=e.child,e=s.sibling,r=It(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function ya(e,t){return t=Ls({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function vi(e,t,n,r){return r!==null&&ra(r),Qn(t,e.child,null,n),e=ya(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ey(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=fo(Error(T(422))),vi(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=Ls({mode:"visible",children:r.children},i,0,null),s=an(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Qn(t,e.child,null,o),t.child.memoizedState=fl(o),t.memoizedState=cl,s);if(!(t.mode&1))return vi(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,s=Error(T(419)),r=fo(s,r,void 0),vi(e,t,o,r)}if(l=(o&e.childLanes)!==0,Te||l){if(r=ue,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,yt(e,i),Je(r,e,i,-1))}return Ca(),r=fo(Error(T(421))),vi(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=hy.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,De=Dt(i.nextSibling),Ae=t,G=!0,Xe=null,e!==null&&(Ue[$e++]=ut,Ue[$e++]=ct,Ue[$e++]=fn,ut=e.id,ct=e.overflow,fn=t),t=ya(t,r.children),t.flags|=4096,t)}function Yu(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),il(e.return,t,n)}function ho(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function rh(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(we(e,t,r.children,n),r=Y.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Yu(e,n,t);else if(e.tag===19)Yu(e,n,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}r&=1}if($(Y,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ns(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ho(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ns(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ho(t,!0,n,null,s);break;case"together":ho(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ai(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function vt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),hn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(T(153));if(t.child!==null){for(e=t.child,n=It(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=It(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ty(e,t,n){switch(t.tag){case 3:th(t),Kn();break;case 5:Ld(t);break;case 1:Ne(t.type)&&Xi(t);break;case 4:ua(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;$(qi,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?($(Y,Y.current&1),t.flags|=128,null):n&t.child.childLanes?nh(e,t,n):($(Y,Y.current&1),e=vt(e,t,n),e!==null?e.sibling:null);$(Y,Y.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return rh(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),$(Y,Y.current),r)break;return null;case 22:case 23:return t.lanes=0,qd(e,t,n)}return vt(e,t,n)}var ih,dl,sh,oh;ih=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};dl=function(){};sh=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,sn(st.current);var s=null;switch(n){case"input":i=Ao(e,i),r=Ao(e,r),s=[];break;case"select":i=J({},i,{value:void 0}),r=J({},r,{value:void 0}),s=[];break;case"textarea":i=Io(e,i),r=Io(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=bi)}zo(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Lr.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var a=r[u];if(l=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(o in l)!l.hasOwnProperty(o)||a&&a.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in a)a.hasOwnProperty(o)&&l[o]!==a[o]&&(n||(n={}),n[o]=a[o])}else n||(s||(s=[]),s.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(s=s||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(s=s||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Lr.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&H("scroll",e),s||l===a||(s=[])):(s=s||[]).push(u,a))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};oh=function(e,t,n,r){n!==r&&(t.flags|=4)};function lr(e,t){if(!G)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function me(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function ny(e,t,n){var r=t.pendingProps;switch(na(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return me(t),null;case 1:return Ne(t.type)&&Yi(),me(t),null;case 3:return r=t.stateNode,Gn(),K(Ee),K(ve),fa(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(gi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Xe!==null&&(wl(Xe),Xe=null))),dl(e,t),me(t),null;case 5:ca(t);var i=sn(Ur.current);if(n=t.type,e!==null&&t.stateNode!=null)sh(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(T(166));return me(t),null}if(e=sn(st.current),gi(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[rt]=t,r[zr]=s,e=(t.mode&1)!==0,n){case"dialog":H("cancel",r),H("close",r);break;case"iframe":case"object":case"embed":H("load",r);break;case"video":case"audio":for(i=0;i<pr.length;i++)H(pr[i],r);break;case"source":H("error",r);break;case"img":case"image":case"link":H("error",r),H("load",r);break;case"details":H("toggle",r);break;case"input":iu(r,s),H("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},H("invalid",r);break;case"textarea":ou(r,s),H("invalid",r)}zo(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="children"?typeof l=="string"?r.textContent!==l&&(s.suppressHydrationWarning!==!0&&mi(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(s.suppressHydrationWarning!==!0&&mi(r.textContent,l,e),i=["children",""+l]):Lr.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&H("scroll",r)}switch(n){case"input":li(r),su(r,s,!0);break;case"textarea":li(r),lu(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=bi)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Af(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[rt]=t,e[zr]=r,ih(e,t,!1,!1),t.stateNode=e;e:{switch(o=Bo(n,r),n){case"dialog":H("cancel",e),H("close",e),i=r;break;case"iframe":case"object":case"embed":H("load",e),i=r;break;case"video":case"audio":for(i=0;i<pr.length;i++)H(pr[i],e);i=r;break;case"source":H("error",e),i=r;break;case"img":case"image":case"link":H("error",e),H("load",e),i=r;break;case"details":H("toggle",e),i=r;break;case"input":iu(e,r),i=Ao(e,r),H("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=J({},r,{value:void 0}),H("invalid",e);break;case"textarea":ou(e,r),i=Io(e,r),H("invalid",e);break;default:i=r}zo(n,i),l=i;for(s in l)if(l.hasOwnProperty(s)){var a=l[s];s==="style"?If(e,a):s==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&_f(e,a)):s==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Mr(e,a):typeof a=="number"&&Mr(e,""+a):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Lr.hasOwnProperty(s)?a!=null&&s==="onScroll"&&H("scroll",e):a!=null&&Ul(e,s,a,o))}switch(n){case"input":li(e),su(e,r,!1);break;case"textarea":li(e),lu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+zt(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?In(e,!!r.multiple,s,!1):r.defaultValue!=null&&In(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=bi)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return me(t),null;case 6:if(e&&t.stateNode!=null)oh(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(T(166));if(n=sn(Ur.current),sn(st.current),gi(t)){if(r=t.stateNode,n=t.memoizedProps,r[rt]=t,(s=r.nodeValue!==n)&&(e=Ae,e!==null))switch(e.tag){case 3:mi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&mi(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[rt]=t,t.stateNode=r}return me(t),null;case 13:if(K(Y),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(G&&De!==null&&t.mode&1&&!(t.flags&128))Pd(),Kn(),t.flags|=98560,s=!1;else if(s=gi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(T(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(T(317));s[rt]=t}else Kn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;me(t),s=!1}else Xe!==null&&(wl(Xe),Xe=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Y.current&1?le===0&&(le=3):Ca())),t.updateQueue!==null&&(t.flags|=4),me(t),null);case 4:return Gn(),dl(e,t),e===null&&Ir(t.stateNode.containerInfo),me(t),null;case 10:return oa(t.type._context),me(t),null;case 17:return Ne(t.type)&&Yi(),me(t),null;case 19:if(K(Y),s=t.memoizedState,s===null)return me(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)lr(s,!1);else{if(le!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ns(e),o!==null){for(t.flags|=128,lr(s,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return $(Y,Y.current&1|2),t.child}e=e.sibling}s.tail!==null&&ee()>Yn&&(t.flags|=128,r=!0,lr(s,!1),t.lanes=4194304)}else{if(!r)if(e=ns(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),lr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!G)return me(t),null}else 2*ee()-s.renderingStartTime>Yn&&n!==1073741824&&(t.flags|=128,r=!0,lr(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=ee(),t.sibling=null,n=Y.current,$(Y,r?n&1|2:n&1),t):(me(t),null);case 22:case 23:return ka(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ve&1073741824&&(me(t),t.subtreeFlags&6&&(t.flags|=8192)):me(t),null;case 24:return null;case 25:return null}throw Error(T(156,t.tag))}function ry(e,t){switch(na(t),t.tag){case 1:return Ne(t.type)&&Yi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Gn(),K(Ee),K(ve),fa(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ca(t),null;case 13:if(K(Y),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(T(340));Kn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return K(Y),null;case 4:return Gn(),null;case 10:return oa(t.type._context),null;case 22:case 23:return ka(),null;case 24:return null;default:return null}}var xi=!1,ye=!1,iy=typeof WeakSet=="function"?WeakSet:Set,L=null;function Rn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){q(e,t,r)}else n.current=null}function hl(e,t,n){try{n()}catch(r){q(e,t,r)}}var Xu=!1;function sy(e,t){if(Xo=Ki,e=fd(),ea(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,l=-1,a=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var g;f!==n||i!==0&&f.nodeType!==3||(l=o+i),f!==s||r!==0&&f.nodeType!==3||(a=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(g=f.firstChild)!==null;)d=f,f=g;for(;;){if(f===e)break t;if(d===n&&++u===i&&(l=o),d===s&&++c===r&&(a=o),(g=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=g}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Zo={focusedElem:e,selectionRange:n},Ki=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var v=m.memoizedProps,S=m.memoizedState,y=t.stateNode,p=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:be(t.type,v),S);y.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(T(163))}}catch(x){q(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return m=Xu,Xu=!1,m}function kr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&hl(t,n,s)}i=i.next}while(i!==r)}}function Ns(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function pl(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function lh(e){var t=e.alternate;t!==null&&(e.alternate=null,lh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[rt],delete t[zr],delete t[el],delete t[Ug],delete t[$g])),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 ah(e){return e.tag===5||e.tag===3||e.tag===4}function Zu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ah(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 ml(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=bi));else if(r!==4&&(e=e.child,e!==null))for(ml(e,t,n),e=e.sibling;e!==null;)ml(e,t,n),e=e.sibling}function gl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(gl(e,t,n),e=e.sibling;e!==null;)gl(e,t,n),e=e.sibling}var fe=null,Ye=!1;function St(e,t,n){for(n=n.child;n!==null;)uh(e,t,n),n=n.sibling}function uh(e,t,n){if(it&&typeof it.onCommitFiberUnmount=="function")try{it.onCommitFiberUnmount(xs,n)}catch{}switch(n.tag){case 5:ye||Rn(n,t);case 6:var r=fe,i=Ye;fe=null,St(e,t,n),fe=r,Ye=i,fe!==null&&(Ye?(e=fe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):fe.removeChild(n.stateNode));break;case 18:fe!==null&&(Ye?(e=fe,n=n.stateNode,e.nodeType===8?so(e.parentNode,n):e.nodeType===1&&so(e,n),Ar(e)):so(fe,n.stateNode));break;case 4:r=fe,i=Ye,fe=n.stateNode.containerInfo,Ye=!0,St(e,t,n),fe=r,Ye=i;break;case 0:case 11:case 14:case 15:if(!ye&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&hl(n,t,o),i=i.next}while(i!==r)}St(e,t,n);break;case 1:if(!ye&&(Rn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){q(n,t,l)}St(e,t,n);break;case 21:St(e,t,n);break;case 22:n.mode&1?(ye=(r=ye)||n.memoizedState!==null,St(e,t,n),ye=r):St(e,t,n);break;default:St(e,t,n)}}function Ju(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new iy),t.forEach(function(r){var i=py.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ge(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 5:fe=l.stateNode,Ye=!1;break e;case 3:fe=l.stateNode.containerInfo,Ye=!0;break e;case 4:fe=l.stateNode.containerInfo,Ye=!0;break e}l=l.return}if(fe===null)throw Error(T(160));uh(s,o,i),fe=null,Ye=!1;var a=i.alternate;a!==null&&(a.return=null),i.return=null}catch(u){q(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)ch(t,e),t=t.sibling}function ch(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ge(t,e),tt(e),r&4){try{kr(3,e,e.return),Ns(3,e)}catch(v){q(e,e.return,v)}try{kr(5,e,e.return)}catch(v){q(e,e.return,v)}}break;case 1:Ge(t,e),tt(e),r&512&&n!==null&&Rn(n,n.return);break;case 5:if(Ge(t,e),tt(e),r&512&&n!==null&&Rn(n,n.return),e.flags&32){var i=e.stateNode;try{Mr(i,"")}catch(v){q(e,e.return,v)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&s.type==="radio"&&s.name!=null&&Vf(i,s),Bo(l,o);var u=Bo(l,s);for(o=0;o<a.length;o+=2){var c=a[o],f=a[o+1];c==="style"?If(i,f):c==="dangerouslySetInnerHTML"?_f(i,f):c==="children"?Mr(i,f):Ul(i,c,f,u)}switch(l){case"input":_o(i,s);break;case"textarea":Df(i,s);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var g=s.value;g!=null?In(i,!!s.multiple,g,!1):d!==!!s.multiple&&(s.defaultValue!=null?In(i,!!s.multiple,s.defaultValue,!0):In(i,!!s.multiple,s.multiple?[]:"",!1))}i[zr]=s}catch(v){q(e,e.return,v)}}break;case 6:if(Ge(t,e),tt(e),r&4){if(e.stateNode===null)throw Error(T(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(v){q(e,e.return,v)}}break;case 3:if(Ge(t,e),tt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ar(t.containerInfo)}catch(v){q(e,e.return,v)}break;case 4:Ge(t,e),tt(e);break;case 13:Ge(t,e),tt(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(wa=ee())),r&4&&Ju(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(ye=(u=ye)||c,Ge(t,e),ye=u):Ge(t,e),tt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(L=e,c=e.child;c!==null;){for(f=L=c;L!==null;){switch(d=L,g=d.child,d.tag){case 0:case 11:case 14:case 15:kr(4,d,d.return);break;case 1:Rn(d,d.return);var m=d.stateNode;if(typeof m.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(v){q(r,n,v)}}break;case 5:Rn(d,d.return);break;case 22:if(d.memoizedState!==null){ec(f);continue}}g!==null?(g.return=d,L=g):ec(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,u?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(l=f.stateNode,a=f.memoizedProps.style,o=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=Of("display",o))}catch(v){q(e,e.return,v)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(v){q(e,e.return,v)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Ge(t,e),tt(e),r&4&&Ju(e);break;case 21:break;default:Ge(t,e),tt(e)}}function tt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(ah(n)){var r=n;break e}n=n.return}throw Error(T(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Mr(i,""),r.flags&=-33);var s=Zu(e);gl(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,l=Zu(e);ml(e,l,o);break;default:throw Error(T(161))}}catch(a){q(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function oy(e,t,n){L=e,fh(e)}function fh(e,t,n){for(var r=(e.mode&1)!==0;L!==null;){var i=L,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||xi;if(!o){var l=i.alternate,a=l!==null&&l.memoizedState!==null||ye;l=xi;var u=ye;if(xi=o,(ye=a)&&!u)for(L=i;L!==null;)o=L,a=o.child,o.tag===22&&o.memoizedState!==null?tc(i):a!==null?(a.return=o,L=a):tc(i);for(;s!==null;)L=s,fh(s),s=s.sibling;L=i,xi=l,ye=u}qu(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,L=s):qu(e)}}function qu(e){for(;L!==null;){var t=L;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ye||Ns(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ye)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:be(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Iu(t,s,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Iu(t,o,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&Ar(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(T(163))}ye||t.flags&512&&pl(t)}catch(d){q(t,t.return,d)}}if(t===e){L=null;break}if(n=t.sibling,n!==null){n.return=t.return,L=n;break}L=t.return}}function ec(e){for(;L!==null;){var t=L;if(t===e){L=null;break}var n=t.sibling;if(n!==null){n.return=t.return,L=n;break}L=t.return}}function tc(e){for(;L!==null;){var t=L;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ns(4,t)}catch(a){q(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(a){q(t,i,a)}}var s=t.return;try{pl(t)}catch(a){q(t,s,a)}break;case 5:var o=t.return;try{pl(t)}catch(a){q(t,o,a)}}}catch(a){q(t,t.return,a)}if(t===e){L=null;break}var l=t.sibling;if(l!==null){l.return=t.return,L=l;break}L=t.return}}var ly=Math.ceil,ss=wt.ReactCurrentDispatcher,va=wt.ReactCurrentOwner,He=wt.ReactCurrentBatchConfig,B=0,ue=null,se=null,de=0,Ve=0,Vn=Ht(0),le=0,Kr=null,hn=0,js=0,xa=0,Cr=null,Pe=null,wa=0,Yn=1/0,lt=null,os=!1,yl=null,_t=null,wi=!1,Lt=null,ls=0,Pr=0,vl=null,_i=-1,Oi=0;function Se(){return B&6?ee():_i!==-1?_i:_i=ee()}function Ot(e){return e.mode&1?B&2&&de!==0?de&-de:Hg.transition!==null?(Oi===0&&(Oi=Yf()),Oi):(e=U,e!==0||(e=window.event,e=e===void 0?16:nd(e.type)),e):1}function Je(e,t,n,r){if(50<Pr)throw Pr=0,vl=null,Error(T(185));Xr(e,n,r),(!(B&2)||e!==ue)&&(e===ue&&(!(B&2)&&(js|=n),le===4&&Nt(e,de)),je(e,r),n===1&&B===0&&!(t.mode&1)&&(Yn=ee()+500,Ps&&Kt()))}function je(e,t){var n=e.callbackNode;Hm(e,t);var r=Hi(e,e===ue?de:0);if(r===0)n!==null&&cu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&cu(n),t===1)e.tag===0?Wg(nc.bind(null,e)):Sd(nc.bind(null,e)),zg(function(){!(B&6)&&Kt()}),n=null;else{switch(Xf(r)){case 1:n=Ql;break;case 4:n=Gf;break;case 16:n=Wi;break;case 536870912:n=bf;break;default:n=Wi}n=xh(n,dh.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function dh(e,t){if(_i=-1,Oi=0,B&6)throw Error(T(327));var n=e.callbackNode;if($n()&&e.callbackNode!==n)return null;var r=Hi(e,e===ue?de:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=as(e,r);else{t=r;var i=B;B|=2;var s=ph();(ue!==e||de!==t)&&(lt=null,Yn=ee()+500,ln(e,t));do try{cy();break}catch(l){hh(e,l)}while(!0);sa(),ss.current=s,B=i,se!==null?t=0:(ue=null,de=0,t=le)}if(t!==0){if(t===2&&(i=Ko(e),i!==0&&(r=i,t=xl(e,i))),t===1)throw n=Kr,ln(e,0),Nt(e,r),je(e,ee()),n;if(t===6)Nt(e,r);else{if(i=e.current.alternate,!(r&30)&&!ay(i)&&(t=as(e,r),t===2&&(s=Ko(e),s!==0&&(r=s,t=xl(e,s))),t===1))throw n=Kr,ln(e,0),Nt(e,r),je(e,ee()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(T(345));case 2:Jt(e,Pe,lt);break;case 3:if(Nt(e,r),(r&130023424)===r&&(t=wa+500-ee(),10<t)){if(Hi(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Se(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=qo(Jt.bind(null,e,Pe,lt),t);break}Jt(e,Pe,lt);break;case 4:if(Nt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-Ze(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=ee()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ly(r/1960))-r,10<r){e.timeoutHandle=qo(Jt.bind(null,e,Pe,lt),r);break}Jt(e,Pe,lt);break;case 5:Jt(e,Pe,lt);break;default:throw Error(T(329))}}}return je(e,ee()),e.callbackNode===n?dh.bind(null,e):null}function xl(e,t){var n=Cr;return e.current.memoizedState.isDehydrated&&(ln(e,t).flags|=256),e=as(e,t),e!==2&&(t=Pe,Pe=n,t!==null&&wl(t)),e}function wl(e){Pe===null?Pe=e:Pe.push.apply(Pe,e)}function ay(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!qe(s(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 Nt(e,t){for(t&=~xa,t&=~js,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ze(t),r=1<<n;e[n]=-1,t&=~r}}function nc(e){if(B&6)throw Error(T(327));$n();var t=Hi(e,0);if(!(t&1))return je(e,ee()),null;var n=as(e,t);if(e.tag!==0&&n===2){var r=Ko(e);r!==0&&(t=r,n=xl(e,r))}if(n===1)throw n=Kr,ln(e,0),Nt(e,t),je(e,ee()),n;if(n===6)throw Error(T(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Jt(e,Pe,lt),je(e,ee()),null}function Sa(e,t){var n=B;B|=1;try{return e(t)}finally{B=n,B===0&&(Yn=ee()+500,Ps&&Kt())}}function pn(e){Lt!==null&&Lt.tag===0&&!(B&6)&&$n();var t=B;B|=1;var n=He.transition,r=U;try{if(He.transition=null,U=1,e)return e()}finally{U=r,He.transition=n,B=t,!(B&6)&&Kt()}}function ka(){Ve=Vn.current,K(Vn)}function ln(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Fg(n)),se!==null)for(n=se.return;n!==null;){var r=n;switch(na(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Yi();break;case 3:Gn(),K(Ee),K(ve),fa();break;case 5:ca(r);break;case 4:Gn();break;case 13:K(Y);break;case 19:K(Y);break;case 10:oa(r.type._context);break;case 22:case 23:ka()}n=n.return}if(ue=e,se=e=It(e.current,null),de=Ve=t,le=0,Kr=null,xa=js=hn=0,Pe=Cr=null,rn!==null){for(t=0;t<rn.length;t++)if(n=rn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}rn=null}return e}function hh(e,t){do{var n=se;try{if(sa(),Vi.current=is,rs){for(var r=Z.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}rs=!1}if(dn=0,ae=oe=Z=null,Sr=!1,$r=0,va.current=null,n===null||n.return===null){le=1,Kr=t,se=null;break}e:{var s=e,o=n.return,l=n,a=t;if(t=de,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,c=l,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var d=c.alternate;d?(c.updateQueue=d.updateQueue,c.memoizedState=d.memoizedState,c.lanes=d.lanes):(c.updateQueue=null,c.memoizedState=null)}var g=Wu(o);if(g!==null){g.flags&=-257,Hu(g,o,l,s,t),g.mode&1&&$u(s,u,t),t=g,a=u;var m=t.updateQueue;if(m===null){var v=new Set;v.add(a),t.updateQueue=v}else m.add(a);break e}else{if(!(t&1)){$u(s,u,t),Ca();break e}a=Error(T(426))}}else if(G&&l.mode&1){var S=Wu(o);if(S!==null){!(S.flags&65536)&&(S.flags|=256),Hu(S,o,l,s,t),ra(bn(a,l));break e}}s=a=bn(a,l),le!==4&&(le=2),Cr===null?Cr=[s]:Cr.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var y=Xd(s,a,t);Ou(s,y);break e;case 1:l=a;var p=s.type,h=s.stateNode;if(!(s.flags&128)&&(typeof p.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(_t===null||!_t.has(h)))){s.flags|=65536,t&=-t,s.lanes|=t;var x=Zd(s,l,t);Ou(s,x);break e}}s=s.return}while(s!==null)}gh(n)}catch(k){t=k,se===n&&n!==null&&(se=n=n.return);continue}break}while(!0)}function ph(){var e=ss.current;return ss.current=is,e===null?is:e}function Ca(){(le===0||le===3||le===2)&&(le=4),ue===null||!(hn&268435455)&&!(js&268435455)||Nt(ue,de)}function as(e,t){var n=B;B|=2;var r=ph();(ue!==e||de!==t)&&(lt=null,ln(e,t));do try{uy();break}catch(i){hh(e,i)}while(!0);if(sa(),B=n,ss.current=r,se!==null)throw Error(T(261));return ue=null,de=0,le}function uy(){for(;se!==null;)mh(se)}function cy(){for(;se!==null&&!_m();)mh(se)}function mh(e){var t=vh(e.alternate,e,Ve);e.memoizedProps=e.pendingProps,t===null?gh(e):se=t,va.current=null}function gh(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=ry(n,t),n!==null){n.flags&=32767,se=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{le=6,se=null;return}}else if(n=ny(n,t,Ve),n!==null){se=n;return}if(t=t.sibling,t!==null){se=t;return}se=t=e}while(t!==null);le===0&&(le=5)}function Jt(e,t,n){var r=U,i=He.transition;try{He.transition=null,U=1,fy(e,t,n,r)}finally{He.transition=i,U=r}return null}function fy(e,t,n,r){do $n();while(Lt!==null);if(B&6)throw Error(T(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(T(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(Km(e,s),e===ue&&(se=ue=null,de=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||wi||(wi=!0,xh(Wi,function(){return $n(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=He.transition,He.transition=null;var o=U;U=1;var l=B;B|=4,va.current=null,sy(e,n),ch(n,e),Rg(Zo),Ki=!!Xo,Zo=Xo=null,e.current=n,oy(n),Om(),B=l,U=o,He.transition=s}else e.current=n;if(wi&&(wi=!1,Lt=e,ls=i),s=e.pendingLanes,s===0&&(_t=null),zm(n.stateNode),je(e,ee()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(os)throw os=!1,e=yl,yl=null,e;return ls&1&&e.tag!==0&&$n(),s=e.pendingLanes,s&1?e===vl?Pr++:(Pr=0,vl=e):Pr=0,Kt(),null}function $n(){if(Lt!==null){var e=Xf(ls),t=He.transition,n=U;try{if(He.transition=null,U=16>e?16:e,Lt===null)var r=!1;else{if(e=Lt,Lt=null,ls=0,B&6)throw Error(T(331));var i=B;for(B|=4,L=e.current;L!==null;){var s=L,o=s.child;if(L.flags&16){var l=s.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(L=u;L!==null;){var c=L;switch(c.tag){case 0:case 11:case 15:kr(8,c,s)}var f=c.child;if(f!==null)f.return=c,L=f;else for(;L!==null;){c=L;var d=c.sibling,g=c.return;if(lh(c),c===u){L=null;break}if(d!==null){d.return=g,L=d;break}L=g}}}var m=s.alternate;if(m!==null){var v=m.child;if(v!==null){m.child=null;do{var S=v.sibling;v.sibling=null,v=S}while(v!==null)}}L=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,L=o;else e:for(;L!==null;){if(s=L,s.flags&2048)switch(s.tag){case 0:case 11:case 15:kr(9,s,s.return)}var y=s.sibling;if(y!==null){y.return=s.return,L=y;break e}L=s.return}}var p=e.current;for(L=p;L!==null;){o=L;var h=o.child;if(o.subtreeFlags&2064&&h!==null)h.return=o,L=h;else e:for(o=p;L!==null;){if(l=L,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Ns(9,l)}}catch(k){q(l,l.return,k)}if(l===o){L=null;break e}var x=l.sibling;if(x!==null){x.return=l.return,L=x;break e}L=l.return}}if(B=i,Kt(),it&&typeof it.onPostCommitFiberRoot=="function")try{it.onPostCommitFiberRoot(xs,e)}catch{}r=!0}return r}finally{U=n,He.transition=t}}return!1}function rc(e,t,n){t=bn(n,t),t=Xd(e,t,1),e=At(e,t,1),t=Se(),e!==null&&(Xr(e,1,t),je(e,t))}function q(e,t,n){if(e.tag===3)rc(e,e,n);else for(;t!==null;){if(t.tag===3){rc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(_t===null||!_t.has(r))){e=bn(n,e),e=Zd(t,e,1),t=At(t,e,1),e=Se(),t!==null&&(Xr(t,1,e),je(t,e));break}}t=t.return}}function dy(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Se(),e.pingedLanes|=e.suspendedLanes&n,ue===e&&(de&n)===n&&(le===4||le===3&&(de&130023424)===de&&500>ee()-wa?ln(e,0):xa|=n),je(e,t)}function yh(e,t){t===0&&(e.mode&1?(t=ci,ci<<=1,!(ci&130023424)&&(ci=4194304)):t=1);var n=Se();e=yt(e,t),e!==null&&(Xr(e,t,n),je(e,n))}function hy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),yh(e,n)}function py(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(T(314))}r!==null&&r.delete(t),yh(e,n)}var vh;vh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ee.current)Te=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Te=!1,ty(e,t,n);Te=!!(e.flags&131072)}else Te=!1,G&&t.flags&1048576&&kd(t,Ji,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ai(e,t),e=t.pendingProps;var i=Hn(t,ve.current);Un(t,n),i=ha(null,t,r,e,i,n);var s=pa();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ne(r)?(s=!0,Xi(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,aa(t),i.updater=Es,t.stateNode=i,i._reactInternals=t,ol(t,r,e,n),t=ul(null,t,r,!0,s,n)):(t.tag=0,G&&s&&ta(t),we(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ai(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=gy(r),e=be(r,e),i){case 0:t=al(null,t,r,e,n);break e;case 1:t=Gu(null,t,r,e,n);break e;case 11:t=Ku(null,t,r,e,n);break e;case 14:t=Qu(null,t,r,be(r.type,e),n);break e}throw Error(T(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:be(r,i),al(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:be(r,i),Gu(e,t,r,i,n);case 3:e:{if(th(t),e===null)throw Error(T(387));r=t.pendingProps,s=t.memoizedState,i=s.element,jd(e,t),ts(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=bn(Error(T(423)),t),t=bu(e,t,r,n,i);break e}else if(r!==i){i=bn(Error(T(424)),t),t=bu(e,t,r,n,i);break e}else for(De=Dt(t.stateNode.containerInfo.firstChild),Ae=t,G=!0,Xe=null,n=Ed(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Kn(),r===i){t=vt(e,t,n);break e}we(e,t,r,n)}t=t.child}return t;case 5:return Ld(t),e===null&&rl(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,Jo(r,i)?o=null:s!==null&&Jo(r,s)&&(t.flags|=32),eh(e,t),we(e,t,o,n),t.child;case 6:return e===null&&rl(t),null;case 13:return nh(e,t,n);case 4:return ua(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Qn(t,null,r,n):we(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:be(r,i),Ku(e,t,r,i,n);case 7:return we(e,t,t.pendingProps,n),t.child;case 8:return we(e,t,t.pendingProps.children,n),t.child;case 12:return we(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,$(qi,r._currentValue),r._currentValue=o,s!==null)if(qe(s.value,o)){if(s.children===i.children&&!Ee.current){t=vt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){o=s.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(s.tag===1){a=dt(-1,n&-n),a.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),il(s.return,n,t),l.lanes|=n;break}a=a.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(T(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),il(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}we(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Un(t,n),i=Ke(i),r=r(i),t.flags|=1,we(e,t,r,n),t.child;case 14:return r=t.type,i=be(r,t.pendingProps),i=be(r.type,i),Qu(e,t,r,i,n);case 15:return Jd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:be(r,i),Ai(e,t),t.tag=1,Ne(r)?(e=!0,Xi(t)):e=!1,Un(t,n),Yd(t,r,i),ol(t,r,i,n),ul(null,t,r,!0,e,n);case 19:return rh(e,t,n);case 22:return qd(e,t,n)}throw Error(T(156,t.tag))};function xh(e,t){return Qf(e,t)}function my(e,t,n,r){this.tag=e,this.key=n,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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function We(e,t,n,r){return new my(e,t,n,r)}function Pa(e){return e=e.prototype,!(!e||!e.isReactComponent)}function gy(e){if(typeof e=="function")return Pa(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Wl)return 11;if(e===Hl)return 14}return 2}function It(e,t){var n=e.alternate;return n===null?(n=We(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ii(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")Pa(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case kn:return an(n.children,i,s,t);case $l:o=8,i|=8;break;case Mo:return e=We(12,n,t,i|2),e.elementType=Mo,e.lanes=s,e;case Ro:return e=We(13,n,t,i),e.elementType=Ro,e.lanes=s,e;case Vo:return e=We(19,n,t,i),e.elementType=Vo,e.lanes=s,e;case Lf:return Ls(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Nf:o=10;break e;case jf:o=9;break e;case Wl:o=11;break e;case Hl:o=14;break e;case Ct:o=16,r=null;break e}throw Error(T(130,e==null?e:typeof e,""))}return t=We(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function an(e,t,n,r){return e=We(7,e,r,t),e.lanes=n,e}function Ls(e,t,n,r){return e=We(22,e,r,t),e.elementType=Lf,e.lanes=n,e.stateNode={isHidden:!1},e}function po(e,t,n){return e=We(6,e,null,t),e.lanes=n,e}function mo(e,t,n){return t=We(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function yy(e,t,n,r,i){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=bs(0),this.expirationTimes=bs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bs(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ta(e,t,n,r,i,s,o,l,a){return e=new yy(e,t,n,l,a),t===1?(t=1,s===!0&&(t|=8)):t=0,s=We(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},aa(s),e}function vy(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Sn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function wh(e){if(!e)return Bt;e=e._reactInternals;e:{if(gn(e)!==e||e.tag!==1)throw Error(T(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ne(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(T(171))}if(e.tag===1){var n=e.type;if(Ne(n))return wd(e,n,t)}return t}function Sh(e,t,n,r,i,s,o,l,a){return e=Ta(n,r,!0,e,i,s,o,l,a),e.context=wh(null),n=e.current,r=Se(),i=Ot(n),s=dt(r,i),s.callback=t??null,At(n,s,i),e.current.lanes=i,Xr(e,i,r),je(e,r),e}function Ms(e,t,n,r){var i=t.current,s=Se(),o=Ot(i);return n=wh(n),t.context===null?t.context=n:t.pendingContext=n,t=dt(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=At(i,t,o),e!==null&&(Je(e,i,o,s),Ri(e,i,o)),o}function us(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 ic(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ea(e,t){ic(e,t),(e=e.alternate)&&ic(e,t)}function xy(){return null}var kh=typeof reportError=="function"?reportError:function(e){console.error(e)};function Na(e){this._internalRoot=e}Rs.prototype.render=Na.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(T(409));Ms(e,t,null,null)};Rs.prototype.unmount=Na.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;pn(function(){Ms(null,e,null,null)}),t[gt]=null}};function Rs(e){this._internalRoot=e}Rs.prototype.unstable_scheduleHydration=function(e){if(e){var t=qf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Et.length&&t!==0&&t<Et[n].priority;n++);Et.splice(n,0,e),n===0&&td(e)}};function ja(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Vs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function sc(){}function wy(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var u=us(o);s.call(u)}}var o=Sh(t,r,e,0,null,!1,!1,"",sc);return e._reactRootContainer=o,e[gt]=o.current,Ir(e.nodeType===8?e.parentNode:e),pn(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var u=us(a);l.call(u)}}var a=Ta(e,0,!1,null,null,!1,!1,"",sc);return e._reactRootContainer=a,e[gt]=a.current,Ir(e.nodeType===8?e.parentNode:e),pn(function(){Ms(t,a,n,r)}),a}function Ds(e,t,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var l=i;i=function(){var a=us(o);l.call(a)}}Ms(t,o,e,i)}else o=wy(n,t,e,i,r);return us(o)}Zf=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=hr(t.pendingLanes);n!==0&&(Gl(t,n|1),je(t,ee()),!(B&6)&&(Yn=ee()+500,Kt()))}break;case 13:pn(function(){var r=yt(e,1);if(r!==null){var i=Se();Je(r,e,1,i)}}),Ea(e,1)}};bl=function(e){if(e.tag===13){var t=yt(e,134217728);if(t!==null){var n=Se();Je(t,e,134217728,n)}Ea(e,134217728)}};Jf=function(e){if(e.tag===13){var t=Ot(e),n=yt(e,t);if(n!==null){var r=Se();Je(n,e,t,r)}Ea(e,t)}};qf=function(){return U};ed=function(e,t){var n=U;try{return U=e,t()}finally{U=n}};$o=function(e,t,n){switch(t){case"input":if(_o(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Cs(r);if(!i)throw Error(T(90));Rf(r),_o(r,i)}}}break;case"textarea":Df(e,n);break;case"select":t=n.value,t!=null&&In(e,!!n.multiple,t,!1)}};Bf=Sa;Uf=pn;var Sy={usingClientEntryPoint:!1,Events:[Jr,En,Cs,Ff,zf,Sa]},ar={findFiberByHostInstance:nn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ky={bundleType:ar.bundleType,version:ar.version,rendererPackageName:ar.rendererPackageName,rendererConfig:ar.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:wt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Hf(e),e===null?null:e.stateNode},findFiberByHostInstance:ar.findFiberByHostInstance||xy,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 Si=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Si.isDisabled&&Si.supportsFiber)try{xs=Si.inject(ky),it=Si}catch{}}Ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Sy;Ie.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ja(t))throw Error(T(200));return vy(e,t,null,n)};Ie.createRoot=function(e,t){if(!ja(e))throw Error(T(299));var n=!1,r="",i=kh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Ta(e,1,!1,null,null,n,!1,r,i),e[gt]=t.current,Ir(e.nodeType===8?e.parentNode:e),new Na(t)};Ie.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(T(188)):(e=Object.keys(e).join(","),Error(T(268,e)));return e=Hf(t),e=e===null?null:e.stateNode,e};Ie.flushSync=function(e){return pn(e)};Ie.hydrate=function(e,t,n){if(!Vs(t))throw Error(T(200));return Ds(null,e,t,!0,n)};Ie.hydrateRoot=function(e,t,n){if(!ja(e))throw Error(T(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=kh;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Sh(t,null,e,1,n??null,i,!1,s,o),e[gt]=t.current,Ir(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Rs(t)};Ie.render=function(e,t,n){if(!Vs(t))throw Error(T(200));return Ds(null,e,t,!1,n)};Ie.unmountComponentAtNode=function(e){if(!Vs(e))throw Error(T(40));return e._reactRootContainer?(pn(function(){Ds(null,null,e,!1,function(){e._reactRootContainer=null,e[gt]=null})}),!0):!1};Ie.unstable_batchedUpdates=Sa;Ie.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Vs(n))throw Error(T(200));if(e==null||e._reactInternals===void 0)throw Error(T(38));return Ds(e,t,n,!1,r)};Ie.version="18.3.1-next-f1338f8080-20240426";function Ch(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ch)}catch(e){console.error(e)}}Ch(),Cf.exports=Ie;var Cy=Cf.exports,Ph,oc=Cy;Ph=oc.createRoot,oc.hydrateRoot;const Th=C.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),As=C.createContext({}),_s=C.createContext(null),Os=typeof document<"u",La=Os?C.useLayoutEffect:C.useEffect,Eh=C.createContext({strict:!1}),Ma=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Py="framerAppearId",Nh="data-"+Ma(Py);function Ty(e,t,n,r){const{visualElement:i}=C.useContext(As),s=C.useContext(Eh),o=C.useContext(_s),l=C.useContext(Th).reducedMotion,a=C.useRef();r=r||s.renderer,!a.current&&r&&(a.current=r(e,{visualState:t,parent:i,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:l}));const u=a.current;C.useInsertionEffect(()=>{u&&u.update(n,o)});const c=C.useRef(!!(n[Nh]&&!window.HandoffComplete));return La(()=>{u&&(u.render(),c.current&&u.animationState&&u.animationState.animateChanges())}),C.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),u}function Dn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Ey(e,t,n){return C.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Dn(n)&&(n.current=r))},[t])}function Qr(e){return typeof e=="string"||Array.isArray(e)}function Is(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Ra=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Va=["initial",...Ra];function Fs(e){return Is(e.animate)||Va.some(t=>Qr(e[t]))}function jh(e){return!!(Fs(e)||e.variants)}function Ny(e,t){if(Fs(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Qr(n)?n:void 0,animate:Qr(r)?r:void 0}}return e.inherit!==!1?t:{}}function jy(e){const{initial:t,animate:n}=Ny(e,C.useContext(As));return C.useMemo(()=>({initial:t,animate:n}),[lc(t),lc(n)])}function lc(e){return Array.isArray(e)?e.join(" "):e}const ac={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"]},Gr={};for(const e in ac)Gr[e]={isEnabled:t=>ac[e].some(n=>!!t[n])};function Ly(e){for(const t in e)Gr[t]={...Gr[t],...e[t]}}const Da=C.createContext({}),Lh=C.createContext({}),My=Symbol.for("motionComponentSymbol");function Ry({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&Ly(e);function s(l,a){let u;const c={...C.useContext(Th),...l,layoutId:Vy(l)},{isStatic:f}=c,d=jy(l),g=r(l,f);if(!f&&Os){d.visualElement=Ty(i,g,c,t);const m=C.useContext(Lh),v=C.useContext(Eh).strict;d.visualElement&&(u=d.visualElement.loadFeatures(c,v,e,m))}return C.createElement(As.Provider,{value:d},u&&d.visualElement?C.createElement(u,{visualElement:d.visualElement,...c}):null,n(i,l,Ey(g,d.visualElement,a),g,f,d.visualElement))}const o=C.forwardRef(s);return o[My]=i,o}function Vy({layoutId:e}){const t=C.useContext(Da).id;return t&&e!==void 0?t+"-"+e:e}function Dy(e){function t(r,i={}){return Ry(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const Ay=["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 Aa(e){return typeof e!="string"||e.includes("-")?!1:!!(Ay.indexOf(e)>-1||/[A-Z]/.test(e))}const cs={};function _y(e){Object.assign(cs,e)}const ei=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],yn=new Set(ei);function Mh(e,{layout:t,layoutId:n}){return yn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!cs[e]||e==="opacity")}const Le=e=>!!(e&&e.getVelocity),Oy={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Iy=ei.length;function Fy(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let s="";for(let o=0;o<Iy;o++){const l=ei[o];if(e[l]!==void 0){const a=Oy[l]||l;s+=`${a}(${e[l]}) `}}return t&&!e.z&&(s+="translateZ(0)"),s=s.trim(),i?s=i(e,r?"":s):n&&r&&(s="none"),s}const Rh=e=>t=>typeof t=="string"&&t.startsWith(e),Vh=Rh("--"),Sl=Rh("var(--"),zy=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,By=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ut=(e,t,n)=>Math.min(Math.max(n,e),t),vn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Tr={...vn,transform:e=>Ut(0,1,e)},ki={...vn,default:1},Er=e=>Math.round(e*1e5)/1e5,zs=/(-)?([\d]*\.?[\d])+/g,Dh=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Uy=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function ti(e){return typeof e=="string"}const ni=e=>({test:t=>ti(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),kt=ni("deg"),ot=ni("%"),A=ni("px"),$y=ni("vh"),Wy=ni("vw"),uc={...ot,parse:e=>ot.parse(e)/100,transform:e=>ot.transform(e*100)},cc={...vn,transform:Math.round},Ah={borderWidth:A,borderTopWidth:A,borderRightWidth:A,borderBottomWidth:A,borderLeftWidth:A,borderRadius:A,radius:A,borderTopLeftRadius:A,borderTopRightRadius:A,borderBottomRightRadius:A,borderBottomLeftRadius:A,width:A,maxWidth:A,height:A,maxHeight:A,size:A,top:A,right:A,bottom:A,left:A,padding:A,paddingTop:A,paddingRight:A,paddingBottom:A,paddingLeft:A,margin:A,marginTop:A,marginRight:A,marginBottom:A,marginLeft:A,rotate:kt,rotateX:kt,rotateY:kt,rotateZ:kt,scale:ki,scaleX:ki,scaleY:ki,scaleZ:ki,skew:kt,skewX:kt,skewY:kt,distance:A,translateX:A,translateY:A,translateZ:A,x:A,y:A,z:A,perspective:A,transformPerspective:A,opacity:Tr,originX:uc,originY:uc,originZ:A,zIndex:cc,fillOpacity:Tr,strokeOpacity:Tr,numOctaves:cc};function _a(e,t,n,r){const{style:i,vars:s,transform:o,transformOrigin:l}=e;let a=!1,u=!1,c=!0;for(const f in t){const d=t[f];if(Vh(f)){s[f]=d;continue}const g=Ah[f],m=By(d,g);if(yn.has(f)){if(a=!0,o[f]=m,!c)continue;d!==(g.default||0)&&(c=!1)}else f.startsWith("origin")?(u=!0,l[f]=m):i[f]=m}if(t.transform||(a||r?i.transform=Fy(e.transform,n,c,r):i.transform&&(i.transform="none")),u){const{originX:f="50%",originY:d="50%",originZ:g=0}=l;i.transformOrigin=`${f} ${d} ${g}`}}const Oa=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function _h(e,t,n){for(const r in t)!Le(t[r])&&!Mh(r,n)&&(e[r]=t[r])}function Hy({transformTemplate:e},t,n){return C.useMemo(()=>{const r=Oa();return _a(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function Ky(e,t,n){const r=e.style||{},i={};return _h(i,r,e),Object.assign(i,Hy(e,t,n)),e.transformValues?e.transformValues(i):i}function Qy(e,t,n){const r={},i=Ky(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const Gy=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function fs(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Gy.has(e)}let Oh=e=>!fs(e);function by(e){e&&(Oh=t=>t.startsWith("on")?!fs(t):e(t))}try{by(require("@emotion/is-prop-valid").default)}catch{}function Yy(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Oh(i)||n===!0&&fs(i)||!t&&!fs(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function fc(e,t,n){return typeof e=="string"?e:A.transform(t+n*e)}function Xy(e,t,n){const r=fc(t,e.x,e.width),i=fc(n,e.y,e.height);return`${r} ${i}`}const Zy={offset:"stroke-dashoffset",array:"stroke-dasharray"},Jy={offset:"strokeDashoffset",array:"strokeDasharray"};function qy(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?Zy:Jy;e[s.offset]=A.transform(-r);const o=A.transform(t),l=A.transform(n);e[s.array]=`${o} ${l}`}function Ia(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:s,pathLength:o,pathSpacing:l=1,pathOffset:a=0,...u},c,f,d){if(_a(e,u,c,d),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:m,dimensions:v}=e;g.transform&&(v&&(m.transform=g.transform),delete g.transform),v&&(i!==void 0||s!==void 0||m.transform)&&(m.transformOrigin=Xy(v,i!==void 0?i:.5,s!==void 0?s:.5)),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),o!==void 0&&qy(g,o,l,a,!1)}const Ih=()=>({...Oa(),attrs:{}}),Fa=e=>typeof e=="string"&&e.toLowerCase()==="svg";function ev(e,t,n,r){const i=C.useMemo(()=>{const s=Ih();return Ia(s,t,{enableHardwareAcceleration:!1},Fa(r),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};_h(s,e.style,e),i.style={...s,...i.style}}return i}function tv(e=!1){return(n,r,i,{latestValues:s},o)=>{const a=(Aa(n)?ev:Qy)(r,s,o,n),c={...Yy(r,typeof n=="string",e),...a,ref:i},{children:f}=r,d=C.useMemo(()=>Le(f)?f.get():f,[f]);return C.createElement(n,{...c,children:d})}}function Fh(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}const zh=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 Bh(e,t,n,r){Fh(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(zh.has(i)?i:Ma(i),t.attrs[i])}function za(e,t){const{style:n}=e,r={};for(const i in n)(Le(n[i])||t.style&&Le(t.style[i])||Mh(i,e))&&(r[i]=n[i]);return r}function Uh(e,t){const n=za(e,t);for(const r in e)if(Le(e[r])||Le(t[r])){const i=ei.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function Ba(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function $h(e){const t=C.useRef(null);return t.current===null&&(t.current=e()),t.current}const ds=e=>Array.isArray(e),nv=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),rv=e=>ds(e)?e[e.length-1]||0:e;function Fi(e){const t=Le(e)?e.get():e;return nv(t)?t.toValue():t}function iv({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,s){const o={latestValues:sv(r,i,s,e),renderState:t()};return n&&(o.mount=l=>n(r,l,o)),o}const Wh=e=>(t,n)=>{const r=C.useContext(As),i=C.useContext(_s),s=()=>iv(e,t,r,i);return n?s():$h(s)};function sv(e,t,n,r){const i={},s=r(e,{});for(const d in s)i[d]=Fi(s[d]);let{initial:o,animate:l}=e;const a=Fs(e),u=jh(e);t&&u&&!a&&e.inherit!==!1&&(o===void 0&&(o=t.initial),l===void 0&&(l=t.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const f=c?l:o;return f&&typeof f!="boolean"&&!Is(f)&&(Array.isArray(f)?f:[f]).forEach(g=>{const m=Ba(e,g);if(!m)return;const{transitionEnd:v,transition:S,...y}=m;for(const p in y){let h=y[p];if(Array.isArray(h)){const x=c?h.length-1:0;h=h[x]}h!==null&&(i[p]=h)}for(const p in v)i[p]=v[p]}),i}const te=e=>e;class dc{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function ov(e){let t=new dc,n=new dc,r=0,i=!1,s=!1;const o=new WeakSet,l={schedule:(a,u=!1,c=!1)=>{const f=c&&i,d=f?t:n;return u&&o.add(a),d.add(a)&&f&&i&&(r=t.order.length),a},cancel:a=>{n.remove(a),o.delete(a)},process:a=>{if(i){s=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u<r;u++){const c=t.order[u];c(a),o.has(c)&&(l.schedule(c),e())}i=!1,s&&(s=!1,l.process(a))}};return l}const Ci=["prepare","read","update","preRender","render","postRender"],lv=40;function av(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=Ci.reduce((f,d)=>(f[d]=ov(()=>n=!0),f),{}),o=f=>s[f].process(i),l=()=>{const f=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(f-i.timestamp,lv),1),i.timestamp=f,i.isProcessing=!0,Ci.forEach(o),i.isProcessing=!1,n&&t&&(r=!1,e(l))},a=()=>{n=!0,r=!0,i.isProcessing||e(l)};return{schedule:Ci.reduce((f,d)=>{const g=s[d];return f[d]=(m,v=!1,S=!1)=>(n||a(),g.schedule(m,v,S)),f},{}),cancel:f=>Ci.forEach(d=>s[d].cancel(f)),state:i,steps:s}}const{schedule:W,cancel:xt,state:ge,steps:go}=av(typeof requestAnimationFrame<"u"?requestAnimationFrame:te,!0),uv={useVisualState:Wh({scrapeMotionValuesFromProps:Uh,createRenderState:Ih,onMount:(e,t,{renderState:n,latestValues:r})=>{W.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),W.render(()=>{Ia(n,r,{enableHardwareAcceleration:!1},Fa(t.tagName),e.transformTemplate),Bh(t,n)})}})},cv={useVisualState:Wh({scrapeMotionValuesFromProps:za,createRenderState:Oa})};function fv(e,{forwardMotionProps:t=!1},n,r){return{...Aa(e)?uv:cv,preloadedFeatures:n,useRender:tv(t),createVisualElement:r,Component:e}}function ft(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Hh=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Bs(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const dv=e=>t=>Hh(t)&&e(t,Bs(t));function ht(e,t,n,r){return ft(e,t,dv(n),r)}const hv=(e,t)=>n=>t(e(n)),Ft=(...e)=>e.reduce(hv);function Kh(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const hc=Kh("dragHorizontal"),pc=Kh("dragVertical");function Qh(e){let t=!1;if(e==="y")t=pc();else if(e==="x")t=hc();else{const n=hc(),r=pc();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function Gh(){const e=Qh(!0);return e?(e(),!1):!0}class Qt{constructor(t){this.isMounted=!1,this.node=t}update(){}}function mc(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(s,o)=>{if(s.pointerType==="touch"||Gh())return;const l=e.getProps();e.animationState&&l.whileHover&&e.animationState.setActive("whileHover",t),l[r]&&W.update(()=>l[r](s,o))};return ht(e.current,n,i,{passive:!e.getProps()[r]})}class pv extends Qt{mount(){this.unmount=Ft(mc(this.node,!0),mc(this.node,!1))}unmount(){}}class mv extends Qt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=Ft(ft(this.node.current,"focus",()=>this.onFocus()),ft(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const bh=(e,t)=>t?e===t?!0:bh(e,t.parentElement):!1;function yo(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Bs(n))}class gv extends Qt{constructor(){super(...arguments),this.removeStartListeners=te,this.removeEndListeners=te,this.removeAccessibleListeners=te,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),s=ht(window,"pointerup",(l,a)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:f}=this.node.getProps();W.update(()=>{!f&&!bh(this.node.current,l.target)?c&&c(l,a):u&&u(l,a)})},{passive:!(r.onTap||r.onPointerUp)}),o=ht(window,"pointercancel",(l,a)=>this.cancelPress(l,a),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Ft(s,o),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=s=>{if(s.key!=="Enter"||this.isPressing)return;const o=l=>{l.key!=="Enter"||!this.checkPressEnd()||yo("up",(a,u)=>{const{onTap:c}=this.node.getProps();c&&W.update(()=>c(a,u))})};this.removeEndListeners(),this.removeEndListeners=ft(this.node.current,"keyup",o),yo("down",(l,a)=>{this.startPress(l,a)})},n=ft(this.node.current,"keydown",t),r=()=>{this.isPressing&&yo("cancel",(s,o)=>this.cancelPress(s,o))},i=ft(this.node.current,"blur",r);this.removeAccessibleListeners=Ft(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&W.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Gh()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&W.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=ht(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=ft(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Ft(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const kl=new WeakMap,vo=new WeakMap,yv=e=>{const t=kl.get(e.target);t&&t(e)},vv=e=>{e.forEach(yv)};function xv({root:e,...t}){const n=e||document;vo.has(n)||vo.set(n,{});const r=vo.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(vv,{root:e,...t})),r[i]}function wv(e,t,n){const r=xv(t);return kl.set(e,n),r.observe(e),()=>{kl.delete(e),r.unobserve(e)}}const Sv={some:0,all:1};class kv extends Qt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Sv[i]},l=a=>{const{isIntersecting:u}=a;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=u?c:f;d&&d(a)};return wv(this.node.current,o,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Cv(t,n))&&this.startObserver()}unmount(){}}function Cv({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Pv={inView:{Feature:kv},tap:{Feature:gv},focus:{Feature:mv},hover:{Feature:pv}};function Yh(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Tv(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function Ev(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Us(e,t,n){const r=e.getProps();return Ba(r,t,n!==void 0?n:r.custom,Tv(e),Ev(e))}let Ua=te;const un=e=>e*1e3,pt=e=>e/1e3,Nv={current:!1},Xh=e=>Array.isArray(e)&&typeof e[0]=="number";function Zh(e){return!!(!e||typeof e=="string"&&Jh[e]||Xh(e)||Array.isArray(e)&&e.every(Zh))}const mr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Jh={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:mr([0,.65,.55,1]),circOut:mr([.55,0,1,.45]),backIn:mr([.31,.01,.66,-.59]),backOut:mr([.33,1.53,.69,.99])};function qh(e){if(e)return Xh(e)?mr(e):Array.isArray(e)?e.map(qh):Jh[e]}function jv(e,t,n,{delay:r=0,duration:i,repeat:s=0,repeatType:o="loop",ease:l,times:a}={}){const u={[t]:n};a&&(u.offset=a);const c=qh(l);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}function Lv(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const ep=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Mv=1e-7,Rv=12;function Vv(e,t,n,r,i){let s,o,l=0;do o=t+(n-t)/2,s=ep(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>Mv&&++l<Rv);return o}function ri(e,t,n,r){if(e===t&&n===r)return te;const i=s=>Vv(s,0,1,e,n);return s=>s===0||s===1?s:ep(i(s),t,r)}const Dv=ri(.42,0,1,1),Av=ri(0,0,.58,1),tp=ri(.42,0,.58,1),_v=e=>Array.isArray(e)&&typeof e[0]!="number",np=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,rp=e=>t=>1-e(1-t),$a=e=>1-Math.sin(Math.acos(e)),ip=rp($a),Ov=np($a),sp=ri(.33,1.53,.69,.99),Wa=rp(sp),Iv=np(Wa),Fv=e=>(e*=2)<1?.5*Wa(e):.5*(2-Math.pow(2,-10*(e-1))),zv={linear:te,easeIn:Dv,easeInOut:tp,easeOut:Av,circIn:$a,circInOut:Ov,circOut:ip,backIn:Wa,backInOut:Iv,backOut:sp,anticipate:Fv},gc=e=>{if(Array.isArray(e)){Ua(e.length===4);const[t,n,r,i]=e;return ri(t,n,r,i)}else if(typeof e=="string")return zv[e];return e},Ha=(e,t)=>n=>!!(ti(n)&&Uy.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),op=(e,t,n)=>r=>{if(!ti(r))return r;const[i,s,o,l]=r.match(zs);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}},Bv=e=>Ut(0,255,e),xo={...vn,transform:e=>Math.round(Bv(e))},on={test:Ha("rgb","red"),parse:op("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+xo.transform(e)+", "+xo.transform(t)+", "+xo.transform(n)+", "+Er(Tr.transform(r))+")"};function Uv(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Cl={test:Ha("#"),parse:Uv,transform:on.transform},An={test:Ha("hsl","hue"),parse:op("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ot.transform(Er(t))+", "+ot.transform(Er(n))+", "+Er(Tr.transform(r))+")"},xe={test:e=>on.test(e)||Cl.test(e)||An.test(e),parse:e=>on.test(e)?on.parse(e):An.test(e)?An.parse(e):Cl.parse(e),transform:e=>ti(e)?e:e.hasOwnProperty("red")?on.transform(e):An.transform(e)},X=(e,t,n)=>-n*e+n*t+e;function wo(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function $v({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const l=n<.5?n*(1+t):n+t-n*t,a=2*n-l;i=wo(a,l,e+1/3),s=wo(a,l,e),o=wo(a,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}const So=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},Wv=[Cl,on,An],Hv=e=>Wv.find(t=>t.test(e));function yc(e){const t=Hv(e);let n=t.parse(e);return t===An&&(n=$v(n)),n}const lp=(e,t)=>{const n=yc(e),r=yc(t),i={...n};return s=>(i.red=So(n.red,r.red,s),i.green=So(n.green,r.green,s),i.blue=So(n.blue,r.blue,s),i.alpha=X(n.alpha,r.alpha,s),on.transform(i))};function Kv(e){var t,n;return isNaN(e)&&ti(e)&&(((t=e.match(zs))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Dh))===null||n===void 0?void 0:n.length)||0)>0}const ap={regex:zy,countKey:"Vars",token:"${v}",parse:te},up={regex:Dh,countKey:"Colors",token:"${c}",parse:xe.parse},cp={regex:zs,countKey:"Numbers",token:"${n}",parse:vn.parse};function ko(e,{regex:t,countKey:n,token:r,parse:i}){const s=e.tokenised.match(t);s&&(e["num"+n]=s.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...s.map(i)))}function hs(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&ko(n,ap),ko(n,up),ko(n,cp),n}function fp(e){return hs(e).values}function dp(e){const{values:t,numColors:n,numVars:r,tokenised:i}=hs(e),s=t.length;return o=>{let l=i;for(let a=0;a<s;a++)a<r?l=l.replace(ap.token,o[a]):a<r+n?l=l.replace(up.token,xe.transform(o[a])):l=l.replace(cp.token,Er(o[a]));return l}}const Qv=e=>typeof e=="number"?0:e;function Gv(e){const t=fp(e);return dp(e)(t.map(Qv))}const $t={test:Kv,parse:fp,createTransformer:dp,getAnimatableNone:Gv},hp=(e,t)=>n=>`${n>0?t:e}`;function pp(e,t){return typeof e=="number"?n=>X(e,t,n):xe.test(e)?lp(e,t):e.startsWith("var(")?hp(e,t):gp(e,t)}const mp=(e,t)=>{const n=[...e],r=n.length,i=e.map((s,o)=>pp(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}},bv=(e,t)=>{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=pp(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}},gp=(e,t)=>{const n=$t.createTransformer(t),r=hs(e),i=hs(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?Ft(mp(r.values,i.values),n):hp(e,t)},br=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},vc=(e,t)=>n=>X(e,t,n);function Yv(e){return typeof e=="number"?vc:typeof e=="string"?xe.test(e)?lp:gp:Array.isArray(e)?mp:typeof e=="object"?bv:vc}function Xv(e,t,n){const r=[],i=n||Yv(e[0]),s=e.length-1;for(let o=0;o<s;o++){let l=i(e[o],e[o+1]);if(t){const a=Array.isArray(t)?t[o]||te:t;l=Ft(a,l)}r.push(l)}return r}function yp(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(Ua(s===t.length),s===1)return()=>t[0];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=Xv(t,r,i),l=o.length,a=u=>{let c=0;if(l>1)for(;c<e.length-2&&!(u<e[c+1]);c++);const f=br(e[c],e[c+1],u);return o[c](f)};return n?u=>a(Ut(e[0],e[s-1],u)):a}function Zv(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=br(0,t,r);e.push(X(n,1,i))}}function Jv(e){const t=[0];return Zv(t,e.length-1),t}function qv(e,t){return e.map(n=>n*t)}function e0(e,t){return e.map(()=>t||tp).splice(0,e.length-1)}function ps({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=_v(r)?r.map(gc):gc(r),s={done:!1,value:t[0]},o=qv(n&&n.length===t.length?n:Jv(t),e),l=yp(o,t,{ease:Array.isArray(i)?i:e0(t,i)});return{calculatedDuration:e,next:a=>(s.value=l(a),s.done=a>=e,s)}}function vp(e,t){return t?e*(1e3/t):0}const t0=5;function xp(e,t,n){const r=Math.max(t-t0,0);return vp(n-e(r),t-r)}const Co=.001,n0=.01,r0=10,i0=.05,s0=1;function o0({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,s,o=1-t;o=Ut(i0,s0,o),e=Ut(n0,r0,pt(e)),o<1?(i=u=>{const c=u*o,f=c*e,d=c-n,g=Pl(u,o),m=Math.exp(-f);return Co-d/g*m},s=u=>{const f=u*o*e,d=f*n+n,g=Math.pow(o,2)*Math.pow(u,2)*e,m=Math.exp(-f),v=Pl(Math.pow(u,2),o);return(-i(u)+Co>0?-1:1)*((d-g)*m)/v}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-Co+c*f},s=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const l=5/e,a=a0(i,s,l);if(e=un(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(a,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const l0=12;function a0(e,t,n){let r=n;for(let i=1;i<l0;i++)r=r-e(r)/t(r);return r}function Pl(e,t){return e*Math.sqrt(1-t*t)}const u0=["duration","bounce"],c0=["stiffness","damping","mass"];function xc(e,t){return t.some(n=>e[n]!==void 0)}function f0(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!xc(e,c0)&&xc(e,u0)){const n=o0(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function wp({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],s=e[e.length-1],o={done:!1,value:i},{stiffness:l,damping:a,mass:u,duration:c,velocity:f,isResolvedFromDuration:d}=f0({...r,velocity:-pt(r.velocity||0)}),g=f||0,m=a/(2*Math.sqrt(l*u)),v=s-i,S=pt(Math.sqrt(l/u)),y=Math.abs(v)<5;n||(n=y?.01:2),t||(t=y?.005:.5);let p;if(m<1){const h=Pl(S,m);p=x=>{const k=Math.exp(-m*S*x);return s-k*((g+m*S*v)/h*Math.sin(h*x)+v*Math.cos(h*x))}}else if(m===1)p=h=>s-Math.exp(-S*h)*(v+(g+S*v)*h);else{const h=S*Math.sqrt(m*m-1);p=x=>{const k=Math.exp(-m*S*x),E=Math.min(h*x,300);return s-k*((g+m*S*v)*Math.sinh(E)+h*v*Math.cosh(E))/h}}return{calculatedDuration:d&&c||null,next:h=>{const x=p(h);if(d)o.done=h>=c;else{let k=g;h!==0&&(m<1?k=xp(p,h,x):k=0);const E=Math.abs(k)<=n,N=Math.abs(s-x)<=t;o.done=E&&N}return o.value=o.done?s:x,o}}}function wc({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:l,max:a,restDelta:u=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},g=P=>l!==void 0&&P<l||a!==void 0&&P>a,m=P=>l===void 0?a:a===void 0||Math.abs(l-P)<Math.abs(a-P)?l:a;let v=n*t;const S=f+v,y=o===void 0?S:o(S);y!==S&&(v=y-f);const p=P=>-v*Math.exp(-P/r),h=P=>y+p(P),x=P=>{const R=p(P),D=h(P);d.done=Math.abs(R)<=u,d.value=d.done?y:D};let k,E;const N=P=>{g(d.value)&&(k=P,E=wp({keyframes:[d.value,m(d.value)],velocity:xp(h,P,d.value),damping:i,stiffness:s,restDelta:u,restSpeed:c}))};return N(0),{calculatedDuration:null,next:P=>{let R=!1;return!E&&k===void 0&&(R=!0,x(P),N(P)),k!==void 0&&P>k?E.next(P-k):(!R&&x(P),d)}}}const d0=e=>{const t=({timestamp:n})=>e(n);return{start:()=>W.update(t,!0),stop:()=>xt(t),now:()=>ge.isProcessing?ge.timestamp:performance.now()}},Sc=2e4;function kc(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Sc;)t+=n,r=e.next(t);return t>=Sc?1/0:t}const h0={decay:wc,inertia:wc,tween:ps,keyframes:ps,spring:wp};function ms({autoplay:e=!0,delay:t=0,driver:n=d0,keyframes:r,type:i="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:l="loop",onPlay:a,onStop:u,onComplete:c,onUpdate:f,...d}){let g=1,m=!1,v,S;const y=()=>{S=new Promise(_=>{v=_})};y();let p;const h=h0[i]||ps;let x;h!==ps&&typeof r[0]!="number"&&(x=yp([0,100],r,{clamp:!1}),r=[0,100]);const k=h({...d,keyframes:r});let E;l==="mirror"&&(E=h({...d,keyframes:[...r].reverse(),velocity:-(d.velocity||0)}));let N="idle",P=null,R=null,D=null;k.calculatedDuration===null&&s&&(k.calculatedDuration=kc(k));const{calculatedDuration:ne}=k;let b=1/0,ce=1/0;ne!==null&&(b=ne+o,ce=b*(s+1)-o);let re=0;const z=_=>{if(R===null)return;g>0&&(R=Math.min(R,_)),g<0&&(R=Math.min(_-ce/g,R)),P!==null?re=P:re=Math.round(_-R)*g;const Q=re-t*(g>=0?1:-1),Gt=g>=0?Q<0:Q>ce;re=Math.max(Q,0),N==="finished"&&P===null&&(re=ce);let et=re,xn=k;if(s){const $s=Math.min(re,ce)/b;let ii=Math.floor($s),Yt=$s%1;!Yt&&$s>=1&&(Yt=1),Yt===1&&ii--,ii=Math.min(ii,s+1),!!(ii%2)&&(l==="reverse"?(Yt=1-Yt,o&&(Yt-=o/b)):l==="mirror"&&(xn=E)),et=Ut(0,1,Yt)*b}const Re=Gt?{done:!1,value:r[0]}:xn.next(et);x&&(Re.value=x(Re.value));let{done:bt}=Re;!Gt&&ne!==null&&(bt=g>=0?re>=ce:re<=0);const Xp=P===null&&(N==="finished"||N==="running"&&bt);return f&&f(Re.value),Xp&&j(),Re},V=()=>{p&&p.stop(),p=void 0},F=()=>{N="idle",V(),v(),y(),R=D=null},j=()=>{N="finished",c&&c(),V(),v()},M=()=>{if(m)return;p||(p=n(z));const _=p.now();a&&a(),P!==null?R=_-P:(!R||N==="finished")&&(R=_),N==="finished"&&y(),D=R,P=null,N="running",p.start()};e&&M();const O={then(_,Q){return S.then(_,Q)},get time(){return pt(re)},set time(_){_=un(_),re=_,P!==null||!p||g===0?P=_:R=p.now()-_/g},get duration(){const _=k.calculatedDuration===null?kc(k):k.calculatedDuration;return pt(_)},get speed(){return g},set speed(_){_===g||!p||(g=_,O.time=pt(re))},get state(){return N},play:M,pause:()=>{N="paused",P=re},stop:()=>{m=!0,N!=="idle"&&(N="idle",u&&u(),F())},cancel:()=>{D!==null&&z(D),F()},complete:()=>{N="finished"},sample:_=>(R=0,z(_))};return O}function p0(e){let t;return()=>(t===void 0&&(t=e()),t)}const m0=p0(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),g0=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Pi=10,y0=2e4,v0=(e,t)=>t.type==="spring"||e==="backgroundColor"||!Zh(t.ease);function x0(e,t,{onUpdate:n,onComplete:r,...i}){if(!(m0()&&g0.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let o=!1,l,a,u=!1;const c=()=>{a=new Promise(h=>{l=h})};c();let{keyframes:f,duration:d=300,ease:g,times:m}=i;if(v0(t,i)){const h=ms({...i,repeat:0,delay:0});let x={done:!1,value:f[0]};const k=[];let E=0;for(;!x.done&&E<y0;)x=h.sample(E),k.push(x.value),E+=Pi;m=void 0,f=k,d=E-Pi,g="linear"}const v=jv(e.owner.current,t,f,{...i,duration:d,ease:g,times:m}),S=()=>{u=!1,v.cancel()},y=()=>{u=!0,W.update(S),l(),c()};return v.onfinish=()=>{u||(e.set(Lv(f,i)),r&&r(),y())},{then(h,x){return a.then(h,x)},attachTimeline(h){return v.timeline=h,v.onfinish=null,te},get time(){return pt(v.currentTime||0)},set time(h){v.currentTime=un(h)},get speed(){return v.playbackRate},set speed(h){v.playbackRate=h},get duration(){return pt(d)},play:()=>{o||(v.play(),xt(S))},pause:()=>v.pause(),stop:()=>{if(o=!0,v.playState==="idle")return;const{currentTime:h}=v;if(h){const x=ms({...i,autoplay:!1});e.setWithVelocity(x.sample(h-Pi).value,x.sample(h).value,Pi)}y()},complete:()=>{u||v.finish()},cancel:y}}function w0({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:te,pause:te,stop:te,then:s=>(s(),Promise.resolve()),cancel:te,complete:te});return t?ms({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const S0={type:"spring",stiffness:500,damping:25,restSpeed:10},k0=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),C0={type:"keyframes",duration:.8},P0={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},T0=(e,{keyframes:t})=>t.length>2?C0:yn.has(e)?e.startsWith("scale")?k0(t[1]):S0:P0,Tl=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&($t.test(t)||t==="0")&&!t.startsWith("url(")),E0=new Set(["brightness","contrast","saturate","opacity"]);function N0(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(zs)||[];if(!r)return e;const i=n.replace(r,"");let s=E0.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const j0=/([a-z-]*)\(.*?\)/g,El={...$t,getAnimatableNone:e=>{const t=e.match(j0);return t?t.map(N0).join(" "):e}},L0={...Ah,color:xe,backgroundColor:xe,outlineColor:xe,fill:xe,stroke:xe,borderColor:xe,borderTopColor:xe,borderRightColor:xe,borderBottomColor:xe,borderLeftColor:xe,filter:El,WebkitFilter:El},Ka=e=>L0[e];function Sp(e,t){let n=Ka(e);return n!==El&&(n=$t),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const kp=e=>/^0[^.\s]+$/.test(e);function M0(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||kp(e)}function R0(e,t,n,r){const i=Tl(t,n);let s;Array.isArray(n)?s=[...n]:s=[null,n];const o=r.from!==void 0?r.from:e.get();let l;const a=[];for(let u=0;u<s.length;u++)s[u]===null&&(s[u]=u===0?o:s[u-1]),M0(s[u])&&a.push(u),typeof s[u]=="string"&&s[u]!=="none"&&s[u]!=="0"&&(l=s[u]);if(i&&a.length&&l)for(let u=0;u<a.length;u++){const c=a[u];s[c]=Sp(t,l)}return s}function V0({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:l,from:a,elapsed:u,...c}){return!!Object.keys(c).length}function Qa(e,t){return e[t]||e.default||e}const D0={skipAnimations:!1},Ga=(e,t,n,r={})=>i=>{const s=Qa(r,e)||{},o=s.delay||r.delay||0;let{elapsed:l=0}=r;l=l-un(o);const a=R0(t,e,n,s),u=a[0],c=a[a.length-1],f=Tl(e,u),d=Tl(e,c);let g={keyframes:a,velocity:t.getVelocity(),ease:"easeOut",...s,delay:-l,onUpdate:m=>{t.set(m),s.onUpdate&&s.onUpdate(m)},onComplete:()=>{i(),s.onComplete&&s.onComplete()}};if(V0(s)||(g={...g,...T0(e,g)}),g.duration&&(g.duration=un(g.duration)),g.repeatDelay&&(g.repeatDelay=un(g.repeatDelay)),!f||!d||Nv.current||s.type===!1||D0.skipAnimations)return w0(g);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const m=x0(t,e,g);if(m)return m}return ms(g)};function gs(e){return!!(Le(e)&&e.add)}const Cp=e=>/^\-?\d*\.?\d+$/.test(e);function ba(e,t){e.indexOf(t)===-1&&e.push(t)}function Ya(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Xa{constructor(){this.subscriptions=[]}add(t){return ba(this.subscriptions,t),()=>Ya(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const A0=e=>!isNaN(parseFloat(e));class _0{constructor(t,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:s,timestamp:o}=ge;this.lastUpdated!==o&&(this.timeDelta=s,this.lastUpdated=o,W.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>W.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=A0(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Xa);const r=this.events[t].add(n);return t==="change"?()=>{r(),W.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?vp(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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 Xn(e,t){return new _0(e,t)}const Pp=e=>t=>t.test(e),O0={test:e=>e==="auto",parse:e=>e},Tp=[vn,A,ot,kt,Wy,$y,O0],ur=e=>Tp.find(Pp(e)),I0=[...Tp,xe,$t],F0=e=>I0.find(Pp(e));function z0(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Xn(n))}function B0(e,t){const n=Us(e,t);let{transitionEnd:r={},transition:i={},...s}=n?e.makeTargetAnimatable(n,!1):{};s={...s,...r};for(const o in s){const l=rv(s[o]);z0(e,o,l)}}function U0(e,t,n){var r,i;const s=Object.keys(t).filter(l=>!e.hasValue(l)),o=s.length;if(o)for(let l=0;l<o;l++){const a=s[l],u=t[a];let c=null;Array.isArray(u)&&(c=u[0]),c===null&&(c=(i=(r=n[a])!==null&&r!==void 0?r:e.readValue(a))!==null&&i!==void 0?i:t[a]),c!=null&&(typeof c=="string"&&(Cp(c)||kp(c))?c=parseFloat(c):!F0(c)&&$t.test(u)&&(c=Sp(a,u)),e.addValue(a,Xn(c,{owner:e})),n[a]===void 0&&(n[a]=c),c!==null&&e.setBaseTarget(a,c))}}function $0(e,t){return t?(t[e]||t.default||t).from:void 0}function W0(e,t,n){const r={};for(const i in e){const s=$0(i,t);if(s!==void 0)r[i]=s;else{const o=n.getValue(i);o&&(r[i]=o.get())}}return r}function H0({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function K0(e,t){const n=e.get();if(Array.isArray(t)){for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}else return n!==t}function Ep(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:o,...l}=e.makeTargetAnimatable(t);const a=e.getValue("willChange");r&&(s=r);const u=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const f in l){const d=e.getValue(f),g=l[f];if(!d||g===void 0||c&&H0(c,f))continue;const m={delay:n,elapsed:0,...Qa(s||{},f)};if(window.HandoffAppearAnimations){const y=e.getProps()[Nh];if(y){const p=window.HandoffAppearAnimations(y,f,d,W);p!==null&&(m.elapsed=p,m.isHandoff=!0)}}let v=!m.isHandoff&&!K0(d,g);if(m.type==="spring"&&(d.getVelocity()||m.velocity)&&(v=!1),d.animation&&(v=!1),v)continue;d.start(Ga(f,d,g,e.shouldReduceMotion&&yn.has(f)?{type:!1}:m));const S=d.animation;gs(a)&&(a.add(f),S.then(()=>a.remove(f))),u.push(S)}return o&&Promise.all(u).then(()=>{o&&B0(e,o)}),u}function Nl(e,t,n={}){const r=Us(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(Ep(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(a=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:f}=i;return Q0(e,t,u+a,c,f,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[a,u]=l==="beforeChildren"?[s,o]:[o,s];return a().then(()=>u())}else return Promise.all([s(),o(n.delay)])}function Q0(e,t,n=0,r=0,i=1,s){const o=[],l=(e.variantChildren.size-1)*r,a=i===1?(u=0)=>u*r:(u=0)=>l-u*r;return Array.from(e.variantChildren).sort(G0).forEach((u,c)=>{u.notify("AnimationStart",t),o.push(Nl(u,t,{...s,delay:n+a(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(o)}function G0(e,t){return e.sortNodePosition(t)}function b0(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>Nl(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=Nl(e,t,n);else{const i=typeof t=="function"?Us(e,t,n.custom):t;r=Promise.all(Ep(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const Y0=[...Ra].reverse(),X0=Ra.length;function Z0(e){return t=>Promise.all(t.map(({animation:n,options:r})=>b0(e,n,r)))}function J0(e){let t=Z0(e);const n=ex();let r=!0;const i=(a,u)=>{const c=Us(e,u);if(c){const{transition:f,transitionEnd:d,...g}=c;a={...a,...g,...d}}return a};function s(a){t=a(e)}function o(a,u){const c=e.getProps(),f=e.getVariantContext(!0)||{},d=[],g=new Set;let m={},v=1/0;for(let y=0;y<X0;y++){const p=Y0[y],h=n[p],x=c[p]!==void 0?c[p]:f[p],k=Qr(x),E=p===u?h.isActive:null;E===!1&&(v=y);let N=x===f[p]&&x!==c[p]&&k;if(N&&r&&e.manuallyAnimateOnMount&&(N=!1),h.protectedKeys={...m},!h.isActive&&E===null||!x&&!h.prevProp||Is(x)||typeof x=="boolean")continue;let R=q0(h.prevProp,x)||p===u&&h.isActive&&!N&&k||y>v&&k,D=!1;const ne=Array.isArray(x)?x:[x];let b=ne.reduce(i,{});E===!1&&(b={});const{prevResolvedValues:ce={}}=h,re={...ce,...b},z=V=>{R=!0,g.has(V)&&(D=!0,g.delete(V)),h.needsAnimating[V]=!0};for(const V in re){const F=b[V],j=ce[V];if(m.hasOwnProperty(V))continue;let M=!1;ds(F)&&ds(j)?M=!Yh(F,j):M=F!==j,M?F!==void 0?z(V):g.add(V):F!==void 0&&g.has(V)?z(V):h.protectedKeys[V]=!0}h.prevProp=x,h.prevResolvedValues=b,h.isActive&&(m={...m,...b}),r&&e.blockInitialAnimation&&(R=!1),R&&(!N||D)&&d.push(...ne.map(V=>({animation:V,options:{type:p,...a}})))}if(g.size){const y={};g.forEach(p=>{const h=e.getBaseTarget(p);h!==void 0&&(y[p]=h)}),d.push({animation:y})}let S=!!d.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(S=!1),r=!1,S?t(d):Promise.resolve()}function l(a,u,c){var f;if(n[a].isActive===u)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(g=>{var m;return(m=g.animationState)===null||m===void 0?void 0:m.setActive(a,u)}),n[a].isActive=u;const d=o(c,a);for(const g in n)n[g].protectedKeys={};return d}return{animateChanges:o,setActive:l,setAnimateFunction:s,getState:()=>n}}function q0(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Yh(t,e):!1}function Xt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ex(){return{animate:Xt(!0),whileInView:Xt(),whileHover:Xt(),whileTap:Xt(),whileDrag:Xt(),whileFocus:Xt(),exit:Xt()}}class tx extends Qt{constructor(t){super(t),t.animationState||(t.animationState=J0(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Is(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let nx=0;class rx extends Qt{constructor(){super(...arguments),this.id=nx++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const s=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&s.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const ix={animation:{Feature:tx},exit:{Feature:rx}},Cc=(e,t)=>Math.abs(e-t);function sx(e,t){const n=Cc(e.x,t.x),r=Cc(e.y,t.y);return Math.sqrt(n**2+r**2)}class Np{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:s=!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 f=To(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,g=sx(f.offset,{x:0,y:0})>=3;if(!d&&!g)return;const{point:m}=f,{timestamp:v}=ge;this.history.push({...m,timestamp:v});const{onStart:S,onMove:y}=this.handlers;d||(S&&S(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Po(d,this.transformPagePoint),W.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:g,onSessionEnd:m,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=To(f.type==="pointercancel"?this.lastMoveEventInfo:Po(d,this.transformPagePoint),this.history);this.startEvent&&g&&g(f,S),m&&m(f,S)},!Hh(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=Bs(t),l=Po(o,this.transformPagePoint),{point:a}=l,{timestamp:u}=ge;this.history=[{...a,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,To(l,this.history)),this.removeListeners=Ft(ht(this.contextWindow,"pointermove",this.handlePointerMove),ht(this.contextWindow,"pointerup",this.handlePointerUp),ht(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),xt(this.updatePoint)}}function Po(e,t){return t?{point:t(e.point)}:e}function Pc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function To({point:e},t){return{point:e,delta:Pc(e,jp(t)),offset:Pc(e,ox(t)),velocity:lx(t,.1)}}function ox(e){return e[0]}function jp(e){return e[e.length-1]}function lx(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=jp(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>un(t)));)n--;if(!r)return{x:0,y:0};const s=pt(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Oe(e){return e.max-e.min}function jl(e,t=0,n=.01){return Math.abs(e-t)<=n}function Tc(e,t,n,r=.5){e.origin=r,e.originPoint=X(t.min,t.max,e.origin),e.scale=Oe(n)/Oe(t),(jl(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=X(n.min,n.max,e.origin)-e.originPoint,(jl(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Nr(e,t,n,r){Tc(e.x,t.x,n.x,r?r.originX:void 0),Tc(e.y,t.y,n.y,r?r.originY:void 0)}function Ec(e,t,n){e.min=n.min+t.min,e.max=e.min+Oe(t)}function ax(e,t,n){Ec(e.x,t.x,n.x),Ec(e.y,t.y,n.y)}function Nc(e,t,n){e.min=t.min-n.min,e.max=e.min+Oe(t)}function jr(e,t,n){Nc(e.x,t.x,n.x),Nc(e.y,t.y,n.y)}function ux(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?X(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?X(n,e,r.max):Math.min(e,n)),e}function jc(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function cx(e,{top:t,left:n,bottom:r,right:i}){return{x:jc(e.x,n,i),y:jc(e.y,t,r)}}function Lc(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function fx(e,t){return{x:Lc(e.x,t.x),y:Lc(e.y,t.y)}}function dx(e,t){let n=.5;const r=Oe(e),i=Oe(t);return i>r?n=br(t.min,t.max-r,e.min):r>i&&(n=br(e.min,e.max-i,t.min)),Ut(0,1,n)}function hx(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Ll=.35;function px(e=Ll){return e===!1?e=0:e===!0&&(e=Ll),{x:Mc(e,"left","right"),y:Mc(e,"top","bottom")}}function Mc(e,t,n){return{min:Rc(e,t),max:Rc(e,n)}}function Rc(e,t){return typeof e=="number"?e:e[t]||0}const Vc=()=>({translate:0,scale:1,origin:0,originPoint:0}),_n=()=>({x:Vc(),y:Vc()}),Dc=()=>({min:0,max:0}),ie=()=>({x:Dc(),y:Dc()});function Be(e){return[e("x"),e("y")]}function Lp({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function mx({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function gx(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Eo(e){return e===void 0||e===1}function Ml({scale:e,scaleX:t,scaleY:n}){return!Eo(e)||!Eo(t)||!Eo(n)}function qt(e){return Ml(e)||Mp(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Mp(e){return Ac(e.x)||Ac(e.y)}function Ac(e){return e&&e!=="0%"}function ys(e,t,n){const r=e-n,i=t*r;return n+i}function _c(e,t,n,r,i){return i!==void 0&&(e=ys(e,i,r)),ys(e,n,r)+t}function Rl(e,t=0,n=1,r,i){e.min=_c(e.min,t,n,r,i),e.max=_c(e.max,t,n,r,i)}function Rp(e,{x:t,y:n}){Rl(e.x,t.translate,t.scale,t.originPoint),Rl(e.y,n.translate,n.scale,n.originPoint)}function yx(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let l=0;l<i;l++){s=n[l],o=s.projectionDelta;const a=s.instance;a&&a.style&&a.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&On(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Rp(e,o)),r&&qt(s.latestValues)&&On(e,s.latestValues))}t.x=Oc(t.x),t.y=Oc(t.y)}function Oc(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Tt(e,t){e.min=e.min+t,e.max=e.max+t}function Ic(e,t,[n,r,i]){const s=t[i]!==void 0?t[i]:.5,o=X(e.min,e.max,s);Rl(e,t[n],t[r],o,t.scale)}const vx=["x","scaleX","originX"],xx=["y","scaleY","originY"];function On(e,t){Ic(e.x,t,vx),Ic(e.y,t,xx)}function Vp(e,t){return Lp(gx(e.getBoundingClientRect(),t))}function wx(e,t,n){const r=Vp(e,n),{scroll:i}=t;return i&&(Tt(r.x,i.offset.x),Tt(r.y,i.offset.y)),r}const Dp=({current:e})=>e?e.ownerDocument.defaultView:null,Sx=new WeakMap;class kx{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ie(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Bs(c,"page").point)},s=(c,f)=>{const{drag:d,dragPropagation:g,onDragStart:m}=this.getProps();if(d&&!g&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Qh(d),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Be(S=>{let y=this.getAxisMotionValue(S).get()||0;if(ot.test(y)){const{projection:p}=this.visualElement;if(p&&p.layout){const h=p.layout.layoutBox[S];h&&(y=Oe(h)*(parseFloat(y)/100))}}this.originPoint[S]=y}),m&&W.update(()=>m(c,f),!1,!0);const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},o=(c,f)=>{const{dragPropagation:d,dragDirectionLock:g,onDirectionLock:m,onDrag:v}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:S}=f;if(g&&this.currentDirection===null){this.currentDirection=Cx(S),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",f.point,S),this.updateAxis("y",f.point,S),this.visualElement.render(),v&&v(c,f)},l=(c,f)=>this.stop(c,f),a=()=>Be(c=>{var f;return this.getAnimationState(c)==="paused"&&((f=this.getAxisMotionValue(c).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Np(t,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:l,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Dp(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&W.update(()=>s(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Ti(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=ux(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,s=this.constraints;n&&Dn(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=cx(i.layoutBox,n):this.constraints=!1,this.elastic=px(r),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Be(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=hx(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Dn(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=wx(r,i.root,this.visualElement.getTransformPagePoint());let o=fx(i.layout.layoutBox,s);if(n){const l=n(mx(o));this.hasMutatedConstraints=!!l,l&&(o=Lp(l))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:l}=this.getProps(),a=this.constraints||{},u=Be(c=>{if(!Ti(c,n,this.currentDirection))return;let f=a&&a[c]||{};o&&(f={min:0,max:0});const d=i?200:1e6,g=i?40:1e7,m={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...s,...f};return this.startAxisValueAnimation(c,m)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Ga(t,r,0,n))}stopAnimation(){Be(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Be(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Be(n=>{const{drag:r}=this.getProps();if(!Ti(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:l}=i.layout.layoutBox[n];s.set(t[n]-X(o,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Dn(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Be(o=>{const l=this.getAxisMotionValue(o);if(l){const a=l.get();i[o]=dx({min:a,max:a},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Be(o=>{if(!Ti(o,t,null))return;const l=this.getAxisMotionValue(o),{min:a,max:u}=this.constraints[o];l.set(X(a,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;Sx.set(this.visualElement,this);const t=this.visualElement.current,n=ht(t,"pointerdown",a=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(a)}),r=()=>{const{dragConstraints:a}=this.getProps();Dn(a)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const o=ft(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:a,hasLayoutChanged:u})=>{this.isDragging&&u&&(Be(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=a[c].translate,f.set(f.get()+a[c].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=Ll,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:l}}}function Ti(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Cx(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Px extends Qt{constructor(t){super(t),this.removeGroupControls=te,this.removeListeners=te,this.controls=new kx(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||te}unmount(){this.removeGroupControls(),this.removeListeners()}}const Fc=e=>(t,n)=>{e&&W.update(()=>e(t,n))};class Tx extends Qt{constructor(){super(...arguments),this.removePointerDownListener=te}onPointerDown(t){this.session=new Np(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Dp(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Fc(t),onStart:Fc(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&W.update(()=>i(s,o))}}}mount(){this.removePointerDownListener=ht(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function Ex(){const e=C.useContext(_s);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=C.useId();return C.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const zi={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function zc(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const cr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(A.test(e))e=parseFloat(e);else return e;const n=zc(e,t.target.x),r=zc(e,t.target.y);return`${n}% ${r}%`}},Nx={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=$t.parse(e);if(i.length>5)return r;const s=$t.createTransformer(e),o=typeof i[0]!="number"?1:0,l=n.x.scale*t.x,a=n.y.scale*t.y;i[0+o]/=l,i[1+o]/=a;const u=X(l,a,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),s(i)}};class jx extends Sf.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;_y(Lx),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),zi.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,o=r.projection;return o&&(o.isPresent=s,i||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||W.postRender(()=>{const l=o.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Ap(e){const[t,n]=Ex(),r=C.useContext(Da);return Sf.createElement(jx,{...e,layoutGroup:r,switchLayoutGroup:C.useContext(Lh),isPresent:t,safeToRemove:n})}const Lx={borderRadius:{...cr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:cr,borderTopRightRadius:cr,borderBottomLeftRadius:cr,borderBottomRightRadius:cr,boxShadow:Nx},_p=["TopLeft","TopRight","BottomLeft","BottomRight"],Mx=_p.length,Bc=e=>typeof e=="string"?parseFloat(e):e,Uc=e=>typeof e=="number"||A.test(e);function Rx(e,t,n,r,i,s){i?(e.opacity=X(0,n.opacity!==void 0?n.opacity:1,Vx(r)),e.opacityExit=X(t.opacity!==void 0?t.opacity:1,0,Dx(r))):s&&(e.opacity=X(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<Mx;o++){const l=`border${_p[o]}Radius`;let a=$c(t,l),u=$c(n,l);if(a===void 0&&u===void 0)continue;a||(a=0),u||(u=0),a===0||u===0||Uc(a)===Uc(u)?(e[l]=Math.max(X(Bc(a),Bc(u),r),0),(ot.test(u)||ot.test(a))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=X(t.rotate||0,n.rotate||0,r))}function $c(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Vx=Op(0,.5,ip),Dx=Op(.5,.95,te);function Op(e,t,n){return r=>r<e?0:r>t?1:n(br(e,t,r))}function Wc(e,t){e.min=t.min,e.max=t.max}function ze(e,t){Wc(e.x,t.x),Wc(e.y,t.y)}function Hc(e,t,n,r,i){return e-=t,e=ys(e,1/n,r),i!==void 0&&(e=ys(e,1/i,r)),e}function Ax(e,t=0,n=1,r=.5,i,s=e,o=e){if(ot.test(t)&&(t=parseFloat(t),t=X(o.min,o.max,t/100)-o.min),typeof t!="number")return;let l=X(s.min,s.max,r);e===s&&(l-=t),e.min=Hc(e.min,t,n,l,i),e.max=Hc(e.max,t,n,l,i)}function Kc(e,t,[n,r,i],s,o){Ax(e,t[n],t[r],t[i],t.scale,s,o)}const _x=["x","scaleX","originX"],Ox=["y","scaleY","originY"];function Qc(e,t,n,r){Kc(e.x,t,_x,n?n.x:void 0,r?r.x:void 0),Kc(e.y,t,Ox,n?n.y:void 0,r?r.y:void 0)}function Gc(e){return e.translate===0&&e.scale===1}function Ip(e){return Gc(e.x)&&Gc(e.y)}function Ix(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Fp(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function bc(e){return Oe(e.x)/Oe(e.y)}class Fx{constructor(){this.members=[]}add(t){ba(this.members,t),t.scheduleRender()}remove(t){if(Ya(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Yc(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y;if((i||s)&&(r=`translate3d(${i}px, ${s}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:a,rotateX:u,rotateY:c}=n;a&&(r+=`rotate(${a}deg) `),u&&(r+=`rotateX(${u}deg) `),c&&(r+=`rotateY(${c}deg) `)}const o=e.x.scale*t.x,l=e.y.scale*t.y;return(o!==1||l!==1)&&(r+=`scale(${o}, ${l})`),r||"none"}const zx=(e,t)=>e.depth-t.depth;class Bx{constructor(){this.children=[],this.isDirty=!1}add(t){ba(this.children,t),this.isDirty=!0}remove(t){Ya(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(zx),this.isDirty=!1,this.children.forEach(t)}}function Ux(e,t){const n=performance.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(xt(r),e(s-t))};return W.read(r,!0),()=>xt(r)}function $x(e){window.MotionDebug&&window.MotionDebug.record(e)}function Wx(e){return e instanceof SVGElement&&e.tagName!=="svg"}function Hx(e,t,n){const r=Le(e)?e:Xn(e);return r.start(Ga("",r,t,n)),r.animation}const Xc=["","X","Y","Z"],Kx={visibility:"hidden"},Zc=1e3;let Qx=0;const en={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function zp({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},l=t==null?void 0:t()){this.id=Qx++,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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,en.totalNodes=en.resolvedTargetDeltas=en.recalculatedProjection=0,this.nodes.forEach(Yx),this.nodes.forEach(e1),this.nodes.forEach(t1),this.nodes.forEach(Xx),$x(en)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new Bx)}addEventListener(o,l){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Xa),this.eventHandlers.get(o).add(l)}notifyListeners(o,...l){const a=this.eventHandlers.get(o);a&&a.notify(...l)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Wx(o),this.instance=o;const{layoutId:a,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(u||a)&&(this.isLayoutDirty=!0),e){let f;const d=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=Ux(d,250),zi.hasAnimatedSinceResize&&(zi.hasAnimatedSinceResize=!1,this.nodes.forEach(qc))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:g,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||c.getDefaultTransition()||o1,{onLayoutAnimationStart:S,onLayoutAnimationComplete:y}=c.getProps(),p=!this.targetLayout||!Fp(this.targetLayout,m)||g,h=!d&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||h||d&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,h);const x={...Qa(v,"layout"),onPlay:S,onComplete:y};(c.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x)}else d||qc(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,xt(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(n1),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const f=this.path[c];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:l,layout:a}=this.options;if(l===void 0&&!a)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Jc);return}this.isUpdating||this.nodes.forEach(Jx),this.isUpdating=!1,this.nodes.forEach(qx),this.nodes.forEach(Gx),this.nodes.forEach(bx),this.clearAllSnapshots();const l=performance.now();ge.delta=Ut(0,1e3/60,l-ge.timestamp),ge.timestamp=l,ge.isProcessing=!0,go.update.process(ge),go.preRender.process(ge),go.render.process(ge),ge.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(Zx),this.sharedNodes.forEach(r1)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,W.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){W.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 a=0;a<this.path.length;a++)this.path[a].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ie(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let l=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(l=!1),l&&(this.scroll={animationId:this.root.animationId,phase:o,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform,l=this.projectionDelta&&!Ip(this.projectionDelta),a=this.getTransformTemplate(),u=a?a(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;o&&(l||qt(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const l=this.measurePageBox();let a=this.removeElementScroll(l);return o&&(a=this.removeTransform(a)),l1(a),{animationId:this.root.animationId,measuredBox:l,layoutBox:a,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:o}=this.options;if(!o)return ie();const l=o.measureViewportBox(),{scroll:a}=this.root;return a&&(Tt(l.x,a.offset.x),Tt(l.y,a.offset.y)),l}removeElementScroll(o){const l=ie();ze(l,o);for(let a=0;a<this.path.length;a++){const u=this.path[a],{scroll:c,options:f}=u;if(u!==this.root&&c&&f.layoutScroll){if(c.isRoot){ze(l,o);const{scroll:d}=this.root;d&&(Tt(l.x,-d.offset.x),Tt(l.y,-d.offset.y))}Tt(l.x,c.offset.x),Tt(l.y,c.offset.y)}}return l}applyTransform(o,l=!1){const a=ie();ze(a,o);for(let u=0;u<this.path.length;u++){const c=this.path[u];!l&&c.options.layoutScroll&&c.scroll&&c!==c.root&&On(a,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),qt(c.latestValues)&&On(a,c.latestValues)}return qt(this.latestValues)&&On(a,this.latestValues),a}removeTransform(o){const l=ie();ze(l,o);for(let a=0;a<this.path.length;a++){const u=this.path[a];if(!u.instance||!qt(u.latestValues))continue;Ml(u.latestValues)&&u.updateSnapshot();const c=ie(),f=u.measurePageBox();ze(c,f),Qc(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return qt(this.latestValues)&&Qc(l,this.latestValues),l}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.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!==ge.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var l;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==a;if(!(o||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:f,layoutId:d}=this.options;if(!(!this.layout||!(f||d))){if(this.resolvedRelativeTargetAt=ge.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ie(),this.relativeTargetOrigin=ie(),jr(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),ze(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=ie(),this.targetWithTransforms=ie()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ax(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ze(this.target,this.layout.layoutBox),Rp(this.target,this.targetDelta)):ze(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ie(),this.relativeTargetOrigin=ie(),jr(this.relativeTargetOrigin,this.target,g.target),ze(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}en.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Ml(this.parent.latestValues)||Mp(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 o;const l=this.getLead(),a=!!this.resumingFrom||this!==l;let u=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(u=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===ge.timestamp&&(u=!1),u)return;const{layout:c,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||f))return;ze(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,g=this.treeScale.y;yx(this.layoutCorrected,this.treeScale,this.path,a),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox);const{target:m}=l;if(!m){this.projectionTransform&&(this.projectionDelta=_n(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=_n(),this.projectionDeltaWithTransform=_n());const v=this.projectionTransform;Nr(this.projectionDelta,this.layoutCorrected,m,this.latestValues),this.projectionTransform=Yc(this.projectionDelta,this.treeScale),(this.projectionTransform!==v||this.treeScale.x!==d||this.treeScale.y!==g)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),en.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(o,l=!1){const a=this.snapshot,u=a?a.latestValues:{},c={...this.latestValues},f=_n();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const d=ie(),g=a?a.source:void 0,m=this.layout?this.layout.source:void 0,v=g!==m,S=this.getStack(),y=!S||S.members.length<=1,p=!!(v&&!y&&this.options.crossfade===!0&&!this.path.some(s1));this.animationProgress=0;let h;this.mixTargetDelta=x=>{const k=x/1e3;ef(f.x,o.x,k),ef(f.y,o.y,k),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(jr(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),i1(this.relativeTarget,this.relativeTargetOrigin,d,k),h&&Ix(this.relativeTarget,h)&&(this.isProjectionDirty=!1),h||(h=ie()),ze(h,this.relativeTarget)),v&&(this.animationValues=c,Rx(c,u,this.latestValues,k,p,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(xt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=W.update(()=>{zi.hasAnimatedSinceResize=!0,this.currentAnimation=Hx(0,Zc,{...o,onUpdate:l=>{this.mixTargetDelta(l),o.onUpdate&&o.onUpdate(l)},onComplete:()=>{o.onComplete&&o.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 o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Zc),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:l,target:a,layout:u,latestValues:c}=o;if(!(!l||!a||!u)){if(this!==o&&this.layout&&u&&Bp(this.options.animationType,this.layout.layoutBox,u.layoutBox)){a=this.target||ie();const f=Oe(this.layout.layoutBox.x);a.x.min=o.target.x.min,a.x.max=a.x.min+f;const d=Oe(this.layout.layoutBox.y);a.y.min=o.target.y.min,a.y.max=a.y.min+d}ze(l,a),On(l,c),Nr(this.projectionDeltaWithTransform,this.layoutCorrected,l,c)}}registerSharedNode(o,l){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Fx),this.sharedNodes.get(o).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:l}=this.options;return l?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:l}=this.options;return l?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:l,preserveFollowOpacity:a}={}){const u=this.getStack();u&&u.promote(this,a),o&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetRotation(){const{visualElement:o}=this.options;if(!o)return;let l=!1;const{latestValues:a}=o;if((a.rotate||a.rotateX||a.rotateY||a.rotateZ)&&(l=!0),!l)return;const u={};for(let c=0;c<Xc.length;c++){const f="rotate"+Xc[c];a[f]&&(u[f]=a[f],o.setStaticValue(f,0))}o.render();for(const c in u)o.setStaticValue(c,u[c]);o.scheduleRender()}getProjectionStyles(o){var l,a;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Kx;const u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Fi(o==null?void 0:o.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const v={};return this.options.layoutId&&(v.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,v.pointerEvents=Fi(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!qt(this.latestValues)&&(v.transform=c?c({},""):"none",this.hasProjected=!1),v}const d=f.animationValues||f.latestValues;this.applyTransformsToTarget(),u.transform=Yc(this.projectionDeltaWithTransform,this.treeScale,d),c&&(u.transform=c(d,u.transform));const{x:g,y:m}=this.projectionDelta;u.transformOrigin=`${g.origin*100}% ${m.origin*100}% 0`,f.animationValues?u.opacity=f===this?(a=(l=d.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&a!==void 0?a:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:u.opacity=f===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const v in cs){if(d[v]===void 0)continue;const{correct:S,applyTo:y}=cs[v],p=u.transform==="none"?d[v]:S(d[v],f);if(y){const h=y.length;for(let x=0;x<h;x++)u[y[x]]=p}else u[v]=p}return this.options.layoutId&&(u.pointerEvents=f===this?Fi(o==null?void 0:o.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var l;return(l=o.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(Jc),this.root.sharedNodes.clear()}}}function Gx(e){e.updateLayout()}function bx(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,o=n.source!==e.layout.source;s==="size"?Be(f=>{const d=o?n.measuredBox[f]:n.layoutBox[f],g=Oe(d);d.min=r[f].min,d.max=d.min+g}):Bp(s,n.layoutBox,r)&&Be(f=>{const d=o?n.measuredBox[f]:n.layoutBox[f],g=Oe(r[f]);d.max=d.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+g)});const l=_n();Nr(l,r,n.layoutBox);const a=_n();o?Nr(a,e.applyTransform(i,!0),n.measuredBox):Nr(a,r,n.layoutBox);const u=!Ip(l);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:g}=f;if(d&&g){const m=ie();jr(m,n.layoutBox,d.layoutBox);const v=ie();jr(v,r,g.layoutBox),Fp(m,v)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=m,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:a,layoutDelta:l,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Yx(e){en.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Xx(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Zx(e){e.clearSnapshot()}function Jc(e){e.clearMeasurements()}function Jx(e){e.isLayoutDirty=!1}function qx(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function qc(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function e1(e){e.resolveTargetDelta()}function t1(e){e.calcProjection()}function n1(e){e.resetRotation()}function r1(e){e.removeLeadSnapshot()}function ef(e,t,n){e.translate=X(t.translate,0,n),e.scale=X(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function tf(e,t,n,r){e.min=X(t.min,n.min,r),e.max=X(t.max,n.max,r)}function i1(e,t,n,r){tf(e.x,t.x,n.x,r),tf(e.y,t.y,n.y,r)}function s1(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const o1={duration:.45,ease:[.4,0,.1,1]},nf=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),rf=nf("applewebkit/")&&!nf("chrome/")?Math.round:te;function sf(e){e.min=rf(e.min),e.max=rf(e.max)}function l1(e){sf(e.x),sf(e.y)}function Bp(e,t,n){return e==="position"||e==="preserve-aspect"&&!jl(bc(t),bc(n),.2)}const a1=zp({attachResizeListener:(e,t)=>ft(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),No={current:void 0},Up=zp({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!No.current){const e=new a1({});e.mount(window),e.setOptions({layoutScroll:!0}),No.current=e}return No.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),u1={pan:{Feature:Tx},drag:{Feature:Px,ProjectionNode:Up,MeasureLayout:Ap}},c1=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function f1(e){const t=c1.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function Vl(e,t,n=1){const[r,i]=f1(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return Cp(o)?parseFloat(o):o}else return Sl(i)?Vl(i,t,n+1):i}function d1(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const s=i.get();if(!Sl(s))return;const o=Vl(s,r);o&&i.set(o)});for(const i in t){const s=t[i];if(!Sl(s))continue;const o=Vl(s,r);o&&(t[i]=o,n||(n={}),n[i]===void 0&&(n[i]=s))}return{target:t,transitionEnd:n}}const h1=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),$p=e=>h1.has(e),p1=e=>Object.keys(e).some($p),of=e=>e===vn||e===A,lf=(e,t)=>parseFloat(e.split(", ")[t]),af=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return lf(i[1],t);{const s=r.match(/^matrix\((.+)\)$/);return s?lf(s[1],e):0}},m1=new Set(["x","y","z"]),g1=ei.filter(e=>!m1.has(e));function y1(e){const t=[];return g1.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Zn={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:af(4,13),y:af(5,14)};Zn.translateX=Zn.x;Zn.translateY=Zn.y;const v1=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,s=getComputedStyle(i),{display:o}=s,l={};o==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{l[u]=Zn[u](r,s)}),t.render();const a=t.measureViewportBox();return n.forEach(u=>{const c=t.getValue(u);c&&c.jump(l[u]),e[u]=Zn[u](a,s)}),e},x1=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter($p);let s=[],o=!1;const l=[];if(i.forEach(a=>{const u=e.getValue(a);if(!e.hasValue(a))return;let c=n[a],f=ur(c);const d=t[a];let g;if(ds(d)){const m=d.length,v=d[0]===null?1:0;c=d[v],f=ur(c);for(let S=v;S<m&&d[S]!==null;S++)g?Ua(ur(d[S])===g):g=ur(d[S])}else g=ur(d);if(f!==g)if(of(f)&&of(g)){const m=u.get();typeof m=="string"&&u.set(parseFloat(m)),typeof d=="string"?t[a]=parseFloat(d):Array.isArray(d)&&g===A&&(t[a]=d.map(parseFloat))}else f!=null&&f.transform&&(g!=null&&g.transform)&&(c===0||d===0)?c===0?u.set(g.transform(c)):t[a]=f.transform(d):(o||(s=y1(e),o=!0),l.push(a),r[a]=r[a]!==void 0?r[a]:t[a],u.jump(d))}),l.length){const a=l.indexOf("height")>=0?window.pageYOffset:null,u=v1(t,e,l);return s.length&&s.forEach(([c,f])=>{e.getValue(c).set(f)}),e.render(),Os&&a!==null&&window.scrollTo({top:a}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function w1(e,t,n,r){return p1(t)?x1(e,t,n,r):{target:t,transitionEnd:r}}const S1=(e,t,n,r)=>{const i=d1(e,t,r);return t=i.target,r=i.transitionEnd,w1(e,t,n,r)},Dl={current:null},Wp={current:!1};function k1(){if(Wp.current=!0,!!Os)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Dl.current=e.matches;e.addListener(t),t()}else Dl.current=!1}function C1(e,t,n){const{willChange:r}=t;for(const i in t){const s=t[i],o=n[i];if(Le(s))e.addValue(i,s),gs(r)&&r.add(i);else if(Le(o))e.addValue(i,Xn(s,{owner:e})),gs(r)&&r.remove(i);else if(o!==s)if(e.hasValue(i)){const l=e.getValue(i);!l.hasAnimated&&l.set(s)}else{const l=e.getStaticValue(i);e.addValue(i,Xn(l!==void 0?l:s,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const uf=new WeakMap,Hp=Object.keys(Gr),P1=Hp.length,cf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],T1=Va.length;class E1{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,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.scheduleRender=()=>W.render(this.render,!1,!0);const{latestValues:l,renderState:a}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=a,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.isControllingVariants=Fs(n),this.isVariantNode=jh(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(n,{});for(const f in c){const d=c[f];l[f]!==void 0&&Le(d)&&(d.set(l[f],!1),gs(u)&&u.add(f))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,uf.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Wp.current||k1(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Dl.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){uf.delete(this.current),this.projection&&this.projection.unmount(),xt(this.notifyUpdate),xt(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=yn.has(t),i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&W.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),s()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,s){let o,l;for(let a=0;a<P1;a++){const u=Hp[a],{isEnabled:c,Feature:f,ProjectionNode:d,MeasureLayout:g}=Gr[u];d&&(o=d),c(n)&&(!this.features[u]&&f&&(this.features[u]=new f(this)),g&&(l=g))}if((this.type==="html"||this.type==="svg")&&!this.projection&&o){this.projection=new o(this.latestValues,this.parent&&this.parent.projection);const{layoutId:a,layout:u,drag:c,dragConstraints:f,layoutScroll:d,layoutRoot:g}=n;this.projection.setOptions({layoutId:a,layout:u,alwaysMeasureLayout:!!c||f&&Dn(f),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:s,layoutScroll:d,layoutRoot:g})}return l}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ie()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<cf.length;r++){const i=cf[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s=t["on"+i];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=C1(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<T1;r++){const i=Va[r],s=this.props[i];(Qr(s)||s===!1)&&(n[i]=s)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Xn(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=Ba(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!Le(s)?s:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Xa),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Kp extends E1{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},s){let o=W0(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),o&&(o=i(o))),s){U0(this,r,o);const l=S1(this,r,o,n);n=l.transitionEnd,r=l.target}return{transition:t,transitionEnd:n,...r}}}function N1(e){return window.getComputedStyle(e)}class j1 extends Kp{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(yn.has(n)){const r=Ka(n);return r&&r.default||0}else{const r=N1(t),i=(Vh(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Vp(t,n)}build(t,n,r,i){_a(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return za(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Le(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){Fh(t,n,r,i)}}class L1 extends Kp{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(yn.has(n)){const r=Ka(n);return r&&r.default||0}return n=zh.has(n)?n:Ma(n),t.getAttribute(n)}measureInstanceViewportBox(){return ie()}scrapeMotionValuesFromProps(t,n){return Uh(t,n)}build(t,n,r,i){Ia(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){Bh(t,n,r,i)}mount(t){this.isSVGTag=Fa(t.tagName),super.mount(t)}}const M1=(e,t)=>Aa(e)?new L1(t,{enableHardwareAcceleration:!1}):new j1(t,{enableHardwareAcceleration:!0}),R1={layout:{ProjectionNode:Up,MeasureLayout:Ap}},V1={...ix,...Pv,...u1,...R1},D1=Dy((e,t)=>fv(e,t,V1,M1));function Qp(){const e=C.useRef(!1);return La(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function A1(){const e=Qp(),[t,n]=C.useState(0),r=C.useCallback(()=>{e.current&&n(t+1)},[t]);return[C.useCallback(()=>W.postRender(r),[r]),t]}class _1 extends C.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function O1({children:e,isPresent:t}){const n=C.useId(),r=C.useRef(null),i=C.useRef({width:0,height:0,top:0,left:0});return C.useInsertionEffect(()=>{const{width:s,height:o,top:l,left:a}=i.current;if(t||!r.current||!s||!o)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
41
- [data-motion-pop-id="${n}"] {
42
- position: absolute !important;
43
- width: ${s}px !important;
44
- height: ${o}px !important;
45
- top: ${l}px !important;
46
- left: ${a}px !important;
47
- }
48
- `),()=>{document.head.removeChild(u)}},[t]),C.createElement(_1,{isPresent:t,childRef:r,sizeRef:i},C.cloneElement(e,{ref:r}))}const jo=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o})=>{const l=$h(I1),a=C.useId(),u=C.useMemo(()=>({id:a,initial:t,isPresent:n,custom:i,onExitComplete:c=>{l.set(c,!0);for(const f of l.values())if(!f)return;r&&r()},register:c=>(l.set(c,!1),()=>l.delete(c))}),s?void 0:[n]);return C.useMemo(()=>{l.forEach((c,f)=>l.set(f,!1))},[n]),C.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),o==="popLayout"&&(e=C.createElement(O1,{isPresent:n},e)),C.createElement(_s.Provider,{value:u},e)};function I1(){return new Map}function F1(e){return C.useEffect(()=>()=>e(),[])}const tn=e=>e.key||"";function z1(e,t){e.forEach(n=>{const r=tn(n);t.set(r,n)})}function B1(e){const t=[];return C.Children.forEach(e,n=>{C.isValidElement(n)&&t.push(n)}),t}const U1=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:s=!0,mode:o="sync"})=>{const l=C.useContext(Da).forceRender||A1()[0],a=Qp(),u=B1(e);let c=u;const f=C.useRef(new Map).current,d=C.useRef(c),g=C.useRef(new Map).current,m=C.useRef(!0);if(La(()=>{m.current=!1,z1(u,g),d.current=c}),F1(()=>{m.current=!0,g.clear(),f.clear()}),m.current)return C.createElement(C.Fragment,null,c.map(p=>C.createElement(jo,{key:tn(p),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:s,mode:o},p)));c=[...c];const v=d.current.map(tn),S=u.map(tn),y=v.length;for(let p=0;p<y;p++){const h=v[p];S.indexOf(h)===-1&&!f.has(h)&&f.set(h,void 0)}return o==="wait"&&f.size&&(c=[]),f.forEach((p,h)=>{if(S.indexOf(h)!==-1)return;const x=g.get(h);if(!x)return;const k=v.indexOf(h);let E=p;if(!E){const N=()=>{f.delete(h);const P=Array.from(g.keys()).filter(R=>!S.includes(R));if(P.forEach(R=>g.delete(R)),d.current=u.filter(R=>{const D=tn(R);return D===h||P.includes(D)}),!f.size){if(a.current===!1)return;l(),r&&r()}};E=C.createElement(jo,{key:tn(x),isPresent:!1,onExitComplete:N,custom:t,presenceAffectsLayout:s,mode:o},x),f.set(h,E)}c.splice(k,0,E)}),c=c.map(p=>{const h=p.key;return f.has(h)?p:C.createElement(jo,{key:tn(p),isPresent:!0,presenceAffectsLayout:s,mode:o},p)}),C.createElement(C.Fragment,null,f.size?c:c.map(p=>C.cloneElement(p)))};/**
49
- * @license lucide-react v0.469.0 - ISC
50
- *
51
- * This source code is licensed under the ISC license.
52
- * See the LICENSE file in the root directory of this source tree.
53
- */const $1=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Gp=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
54
- * @license lucide-react v0.469.0 - ISC
55
- *
56
- * This source code is licensed under the ISC license.
57
- * See the LICENSE file in the root directory of this source tree.
58
- */var W1={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
59
- * @license lucide-react v0.469.0 - ISC
60
- *
61
- * This source code is licensed under the ISC license.
62
- * See the LICENSE file in the root directory of this source tree.
63
- */const H1=C.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:o,...l},a)=>C.createElement("svg",{ref:a,...W1,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Gp("lucide",i),...l},[...o.map(([u,c])=>C.createElement(u,c)),...Array.isArray(s)?s:[s]]));/**
64
- * @license lucide-react v0.469.0 - ISC
65
- *
66
- * This source code is licensed under the ISC license.
67
- * See the LICENSE file in the root directory of this source tree.
68
- */const Me=(e,t)=>{const n=C.forwardRef(({className:r,...i},s)=>C.createElement(H1,{ref:s,iconNode:t,className:Gp(`lucide-${$1(e)}`,r),...i}));return n.displayName=`${e}`,n};/**
69
- * @license lucide-react v0.469.0 - ISC
70
- *
71
- * This source code is licensed under the ISC license.
72
- * See the LICENSE file in the root directory of this source tree.
73
- */const Za=Me("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
74
- * @license lucide-react v0.469.0 - ISC
75
- *
76
- * This source code is licensed under the ISC license.
77
- * See the LICENSE file in the root directory of this source tree.
78
- */const bp=Me("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
79
- * @license lucide-react v0.469.0 - ISC
80
- *
81
- * This source code is licensed under the ISC license.
82
- * See the LICENSE file in the root directory of this source tree.
83
- */const K1=Me("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
84
- * @license lucide-react v0.469.0 - ISC
85
- *
86
- * This source code is licensed under the ISC license.
87
- * See the LICENSE file in the root directory of this source tree.
88
- */const Q1=Me("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
89
- * @license lucide-react v0.469.0 - ISC
90
- *
91
- * This source code is licensed under the ISC license.
92
- * See the LICENSE file in the root directory of this source tree.
93
- */const G1=Me("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
94
- * @license lucide-react v0.469.0 - ISC
95
- *
96
- * This source code is licensed under the ISC license.
97
- * See the LICENSE file in the root directory of this source tree.
98
- */const b1=Me("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
99
- * @license lucide-react v0.469.0 - ISC
100
- *
101
- * This source code is licensed under the ISC license.
102
- * See the LICENSE file in the root directory of this source tree.
103
- */const Y1=Me("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
104
- * @license lucide-react v0.469.0 - ISC
105
- *
106
- * This source code is licensed under the ISC license.
107
- * See the LICENSE file in the root directory of this source tree.
108
- */const X1=Me("LayoutList",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}],["path",{d:"M14 4h7",key:"3xa0d5"}],["path",{d:"M14 9h7",key:"1icrd9"}],["path",{d:"M14 15h7",key:"1mj8o2"}],["path",{d:"M14 20h7",key:"11slyb"}]]);/**
109
- * @license lucide-react v0.469.0 - ISC
110
- *
111
- * This source code is licensed under the ISC license.
112
- * See the LICENSE file in the root directory of this source tree.
113
- */const Z1=Me("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
114
- * @license lucide-react v0.469.0 - ISC
115
- *
116
- * This source code is licensed under the ISC license.
117
- * See the LICENSE file in the root directory of this source tree.
118
- */const J1=Me("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
119
- * @license lucide-react v0.469.0 - ISC
120
- *
121
- * This source code is licensed under the ISC license.
122
- * See the LICENSE file in the root directory of this source tree.
123
- */const q1=Me("Presentation",[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]]);/**
124
- * @license lucide-react v0.469.0 - ISC
125
- *
126
- * This source code is licensed under the ISC license.
127
- * See the LICENSE file in the root directory of this source tree.
128
- */const ew=Me("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
129
- * @license lucide-react v0.469.0 - ISC
130
- *
131
- * This source code is licensed under the ISC license.
132
- * See the LICENSE file in the root directory of this source tree.
133
- */const tw=Me("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
134
- * @license lucide-react v0.469.0 - ISC
135
- *
136
- * This source code is licensed under the ISC license.
137
- * See the LICENSE file in the root directory of this source tree.
138
- */const Al=Me("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);function Yp({text:e,label:t="Copy",disabled:n=!1}){const[r,i]=C.useState(!1),s=o=>{if(o.stopPropagation(),n)return;const l=typeof e=="string"?e:JSON.stringify(e,null,2);navigator.clipboard.writeText(l),i(!0),setTimeout(()=>i(!1),2e3)};return w.jsx("button",{onClick:s,className:`tooltip p-2 rounded-full text-subtle transition-colors ${n?"opacity-30 cursor-not-allowed":"hover:bg-black/5 dark:hover:bg-white/10"}`,"data-tooltip":t,"aria-label":t,disabled:n,children:r?w.jsx(bp,{className:"w-4 h-4"}):w.jsx(Y1,{className:"w-4 h-4"})})}function nw({item:e}){if(!e)return null;const t=new Date(e.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"}),n=e.event?e.event.replace(/_/g," "):"EVENT",r=m=>m.replace(/_/g," ").replace(/([a-z0-9])([A-Z])/g,"$1 $2"),i=m=>{try{return JSON.parse(m)}catch{return null}},s=m=>{const v=m.trim(),S=i(v);if(S!==null)return S;const y=/```(?:json)?\s*([\s\S]*?)\s*```/gi;let p=y.exec(v);for(;p;){const h=p[1].trim(),x=i(h);if(x!==null)return x;p=y.exec(v)}return null},o=({children:m})=>w.jsx("pre",{className:"text-sm font-mono leading-relaxed overflow-auto p-6 rounded-[24px] border border-black bg-black text-white dark:border-white dark:bg-white dark:text-black",children:m}),l=m=>{if(m==null)return w.jsx("span",{className:"italic",children:"—"});if(typeof m=="boolean"){const v="inline-flex items-center rounded-full px-3 py-1 text-xs font-semibold tracking-[0.2em] uppercase border";return m?w.jsx("span",{className:`${v} bg-black text-white border-black dark:bg-white dark:text-black dark:border-white`,children:"Yes"}):w.jsx("span",{className:`${v} bg-white text-black border-black dark:bg-black dark:text-white dark:border-white`,children:"No"})}if(typeof m=="string"){const v=s(m);return v!==null?w.jsx(o,{children:JSON.stringify(v,null,2)}):m.length>140||m.includes(`
139
- `)?w.jsx(o,{children:m}):w.jsx("span",{className:"text-2xl font-semibold whitespace-pre-wrap break-words",children:m})}return typeof m=="object"?w.jsx(o,{children:JSON.stringify(m,null,2)}):w.jsx("span",{className:"text-2xl font-semibold",children:String(m)})},a=6;function u(m,v){if(!m.length)return w.jsx("span",{className:"italic",children:"—"});const S=m.every(h=>h===null||["string","number","boolean"].includes(typeof h)),p=m.every(h=>h&&typeof h=="object"&&!Array.isArray(h))&&m.every(h=>Object.values(h).every(x=>x===null||["string","number","boolean"].includes(typeof x)));return S?w.jsx("div",{className:"space-y-2",children:m.map((h,x)=>w.jsx("div",{className:"text-base",children:l(h)},`item-${x}`))}):p?w.jsx("div",{className:"space-y-4",children:m.map((h,x)=>w.jsx("div",{className:"rounded-[20px] border border-black p-4 dark:border-white",children:d(Object.entries(h),v)},`item-${x}`))}):w.jsx("div",{className:"space-y-6",children:m.map((h,x)=>w.jsxs("div",{className:"space-y-4 rounded-[24px] border border-black p-5 dark:border-white",children:[w.jsxs("div",{className:"text-[10px] font-bold tracking-[0.35em] uppercase",children:["Item ",x+1]}),f(h,v+1)]},`item-${x}`))})}function c(m,v){const S=Object.entries(m);return S.length?v>=a?l(m):d(S,v):w.jsx("span",{className:"italic",children:"—"})}function f(m,v=0){return m==null||typeof m=="string"||typeof m=="number"||typeof m=="boolean"?l(m):Array.isArray(m)?u(m,v):typeof m=="object"?c(m,v):l(m)}function d(m,v=0){return w.jsx("div",{className:"space-y-8",children:m.map(([S,y])=>w.jsxs("div",{className:"space-y-2",children:[w.jsx("div",{className:"text-[10px] font-bold tracking-[0.35em] uppercase",children:r(S)}),w.jsx("div",{className:"text-base",children:f(y,v+1)})]},S))})}let g=null;if(e.event==="AGENT_STARTED")g=w.jsxs("div",{className:"space-y-12 py-4",children:[w.jsxs("div",{className:"space-y-3 text-center",children:[w.jsx("h2",{className:"text-4xl font-black tracking-tight",children:e.agent}),w.jsx("div",{className:"text-xs font-mono",children:t})]}),w.jsx("div",{className:"markdown-body leading-relaxed text-xl font-light whitespace-pre-wrap [&_*]:text-inherit [&_a]:underline",children:e.prompt})]});else if(e.event&&e.event.startsWith("WORKFLOW_")){const m=e.event.replace("WORKFLOW_","");g=w.jsxs("div",{className:"min-h-[50vh] flex flex-col items-center justify-center text-center space-y-8 py-20",children:[w.jsx("div",{className:"text-[10px] font-bold tracking-[0.5em] uppercase",children:"Lifecycle status"}),w.jsxs("div",{className:"w-full max-w-5xl rounded-[28px] border border-black p-10 dark:border-white",children:[w.jsx("h2",{className:"text-6xl sm:text-7xl md:text-8xl font-black tracking-tighter leading-none uppercase",children:m}),e.error&&w.jsx("pre",{className:"mt-8 text-xs font-mono whitespace-pre-wrap rounded-[24px] border border-black p-6 bg-black text-white dark:border-white dark:bg-white dark:text-black",children:e.error})]})]})}else if(e.event==="PROMPT_REQUESTED"||e.event==="INTERACTION_REQUESTED"){const m=[["slug",e.slug],["targetKey",e.targetKey],["type",e.type]].filter(v=>v[1]!==void 0);g=w.jsxs("div",{className:"space-y-10 py-4",children:[w.jsx("div",{className:"text-xs font-mono",children:t}),w.jsx("div",{className:"text-4xl font-bold tracking-tight text-balance leading-tight",children:e.question||e.prompt||"Prompt"}),e.prompt&&e.question&&e.prompt!==e.question&&w.jsx("div",{className:"text-lg font-medium whitespace-pre-wrap",children:e.prompt}),m.length>0&&w.jsx("div",{className:"pt-4",children:d(m)})]})}else if(e.event==="PROMPT_ANSWERED"||e.event==="INTERACTION_SUBMITTED"){const m=e.answer!==void 0?e.answer:e.response,v=[["slug",e.slug],["targetKey",e.targetKey]].filter(S=>S[1]!==void 0);g=w.jsxs("div",{className:"space-y-10 py-4",children:[w.jsx("div",{className:"text-xs font-mono",children:t}),w.jsx("div",{className:"text-4xl font-bold tracking-tight text-balance leading-tight",children:l(m)}),v.length>0&&w.jsx("div",{className:"pt-4",children:d(v)})]})}else if(e.event==="AGENT_COMPLETED"){const m=[["agent",e.agent],["attempts",e.attempts]].filter(v=>v[1]!==void 0);g=w.jsxs("div",{className:"space-y-12 py-4",children:[e.output!==void 0&&w.jsxs("div",{className:"space-y-8",children:[w.jsxs("div",{className:"rounded-[28px] border border-black px-6 py-5 dark:border-white",children:[w.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[w.jsx("div",{className:"text-3xl font-black tracking-tight",children:e.agent?`Output from ${e.agent}`:"Agent output"}),w.jsx("div",{className:"text-xs font-mono",children:t})]}),w.jsx("div",{className:"mt-2 text-sm",children:"This is what the previous agent run produced."})]}),f(e.output)]}),m.length>0&&w.jsx("div",{className:"pt-4",children:d(m)})]})}else{const m=Object.entries(e).filter(([S])=>S!=="event"&&S!=="timestamp"),v=m.length>0?m:[["event",e.event||"Event"]];g=w.jsxs("div",{className:"space-y-12 py-4",children:[w.jsx("div",{className:"text-xs font-mono",children:t}),d(v)]})}return w.jsx("div",{className:"w-full h-full flex flex-col overflow-y-auto custom-scroll px-12 bg-white text-black dark:bg-black dark:text-white",children:w.jsxs("div",{className:"content-width flex-1",children:[w.jsxs("div",{className:"flex items-center justify-between pt-10",children:[w.jsx("div",{className:"text-[10px] font-bold tracking-[0.4em] uppercase",children:n}),w.jsx(Yp,{text:e})]}),g]})})}const rw=e=>{if(!e)return w.jsx(Al,{className:"w-3.5 h-3.5 opacity-40"});const t=e.toUpperCase();return t.includes("STARTED")||t.includes("START")?w.jsx(J1,{className:"w-3.5 h-3.5 text-blue-500"}):t.includes("SUBMITTED")||t.includes("ANSWERED")||t.includes("SUCCESS")?w.jsx(b1,{className:"w-3.5 h-3.5 text-green-500"}):t.includes("REQUESTED")||t.includes("REQUEST")?w.jsx(ew,{className:"w-3.5 h-3.5 text-accent"}):t.includes("ERROR")||t.includes("FAILED")?w.jsx(G1,{className:"w-3.5 h-3.5 text-red-500"}):w.jsx(Al,{className:"w-3.5 h-3.5 opacity-40"})},iw=e=>{const t=e.question||e.answer||e.prompt||e.error||e.status||e.message,n=e.slug||(e.event&&e.event.startsWith("WORKFLOW_")?e.event.replace("WORKFLOW_",""):null);return!t&&!n?e.event||"Unknown Event":w.jsxs("div",{className:"flex flex-col gap-0.5",children:[n&&w.jsx("span",{className:"text-accent font-medium text-[10px] tracking-wider uppercase opacity-80",children:n}),t&&w.jsx("span",{className:"opacity-80 truncate max-w-md",children:typeof t=="string"?t:JSON.stringify(t)})]})};function sw({history:e,onJump:t}){return w.jsx("div",{className:"w-full h-full flex flex-col overflow-hidden bg-bg",children:w.jsx("div",{className:"flex-1 overflow-y-auto custom-scroll px-6 py-24",children:w.jsx("div",{className:"max-w-4xl mx-auto space-y-1",children:e.length===0?w.jsxs("div",{className:"h-[40vh] flex flex-col items-center justify-center opacity-20 space-y-4",children:[w.jsx(Al,{className:"w-12 h-12"}),w.jsx("div",{className:"text-xs font-bold tracking-[0.4em] uppercase",children:"No events yet"})]}):e.map((n,r)=>{var s;const i=new Date(n.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1});return w.jsxs("button",{onClick:()=>t(r),className:"w-full text-left group flex items-start gap-6 p-4 rounded-2xl hover:bg-black/[0.03] dark:hover:bg-white/[0.03] transition-all border border-transparent hover:border-border",children:[w.jsx("div",{className:"flex-shrink-0 w-20 pt-1",children:w.jsx("span",{className:"text-[10px] font-mono font-medium opacity-20 group-hover:opacity-40 transition-opacity",children:i})}),w.jsx("div",{className:"flex-shrink-0 pt-0.5",children:rw(n.event)}),w.jsxs("div",{className:"flex-1 min-w-0 flex flex-col gap-1",children:[w.jsx("div",{className:"text-[10px] font-bold tracking-[0.2em] uppercase opacity-30 group-hover:opacity-50 transition-opacity",children:((s=n.event)==null?void 0:s.replace(/_/g," "))||"EVENT"}),w.jsx("div",{className:"text-sm leading-relaxed truncate group-hover:text-accent transition-colors",children:iw(n)})]})]},r)})})})})}function ow({page:e,total:t,onNext:n,onPrev:r,onJump:i,hasNew:s,onJumpToLatest:o,className:l=""}){const[a,u]=C.useState(e+1);C.useEffect(()=>u(e+1),[e]);const c=f=>{const{value:d}=f.target;u(d);const g=parseInt(d,10);!Number.isNaN(g)&&g>=1&&g<=t&&i(g-1)};return w.jsx("footer",{className:`nav-footer transition-opacity duration-300 ${l}`,children:w.jsxs("div",{className:"footer-control",children:[w.jsx("button",{onClick:r,disabled:e===0,className:"tooltip p-1 hover:text-accent disabled:opacity-0 transition-all pointer-events-auto","data-tooltip":"Previous","aria-label":"Previous event",children:w.jsx(K1,{className:"w-5 h-5"})}),w.jsxs("div",{className:"flex items-center gap-2 text-xs font-mono font-bold tracking-widest opacity-60",children:[w.jsx("input",{type:"number",value:a,onChange:c,className:"jumper-input",min:"1",max:t}),w.jsx("span",{className:"opacity-20",children:"/"}),w.jsx("span",{children:t})]}),w.jsx("button",{onClick:n,disabled:e===t-1,className:"tooltip p-1 hover:text-accent disabled:opacity-0 transition-all pointer-events-auto","data-tooltip":"Next","aria-label":"Next event",children:w.jsx(Q1,{className:"w-5 h-5"})}),s?w.jsx("button",{onClick:o,className:"tooltip px-3 py-1 rounded-full text-[10px] font-bold tracking-[0.2em] uppercase bg-accent text-white shadow-[0_10px_30px_rgba(0,122,255,0.25)] hover:scale-[1.02] transition-transform","data-tooltip":"Latest","aria-label":"Jump to latest event",children:"New"}):null]})})}function lw({workflowName:e,status:t,theme:n,toggleTheme:r,viewMode:i,setViewMode:s,history:o}){return w.jsxs("header",{className:"fixed top-0 inset-x-0 h-20 px-12 flex items-center justify-between z-50 bg-bg/80 backdrop-blur-3xl",children:[w.jsxs("div",{className:"flex items-center gap-4",children:[w.jsx("div",{className:`w-2 h-2 rounded-full ${t==="connected"?"bg-green-500 shadow-[0_0_15px_rgba(34,197,94,0.6)]":"bg-red-500"}`}),w.jsx("span",{className:"font-bold text-[10px] tracking-[0.4em] uppercase opacity-30 truncate max-w-[300px]",children:e||"Workflow"})]}),w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx(Yp,{text:o||[],label:"Copy full history",disabled:!o||o.length===0}),w.jsx("button",{onClick:()=>s(i==="present"?"log":"present"),className:"tooltip w-10 h-10 flex items-center justify-center rounded-full hover:bg-black/5 dark:hover:bg-white/10 transition-colors","data-tooltip":i==="present"?"Log view":"Present view","aria-label":i==="present"?"Switch to Log view":"Switch to Presentation view",children:i==="present"?w.jsx(X1,{className:"w-5 h-5 opacity-40 hover:opacity-100"}):w.jsx(q1,{className:"w-5 h-5 opacity-40 hover:opacity-100"})}),w.jsx("button",{onClick:r,className:"tooltip w-10 h-10 flex items-center justify-center rounded-full hover:bg-black/5 dark:hover:bg-white/10 transition-colors","data-tooltip":n==="dark"?"Light theme":"Dark theme","aria-label":n==="dark"?"Switch to Light theme":"Switch to Dark theme",children:n==="dark"?w.jsx(tw,{className:"w-5 h-5 opacity-40 hover:opacity-100"}):w.jsx(Z1,{className:"w-5 h-5 opacity-40 hover:opacity-100"})})]})]})}function aw({interaction:e,onSubmit:t,disabled:n}){const{prompt:r,question:i,options:s=[],multiSelect:o,allowCustom:l}=e,[a,u]=C.useState(o?[]:null),[c,f]=C.useState(""),[d,g]=C.useState(!1),m=C.useMemo(()=>s||[],[s]),v=r||i||"Choose an option.",S=h=>{o?(u(x=>x.includes(h)?x.filter(k=>k!==h):[...x,h]),g(!1)):(u(h),g(!1))},y=()=>{if(d&&c.trim()){t({isCustom:!0,customText:c.trim(),raw:c.trim()});return}if(o&&a.length>0){t({selectedKeys:a,raw:a.join(", ")});return}a&&t({selectedKey:a,raw:String(a)})},p=d?!!c.trim():o?a.length>0:!!a;return w.jsxs("div",{className:"w-full h-full flex flex-col items-stretch overflow-hidden",children:[w.jsxs("div",{className:"flex-1 overflow-y-auto custom-scroll px-6 py-12 space-y-8 flex flex-col items-center",children:[w.jsxs("div",{className:"space-y-4 shrink-0",children:[w.jsx("div",{className:"w-16 h-16 rounded-3xl bg-accent text-white flex items-center justify-center mx-auto shadow-2xl shadow-accent/40",children:w.jsx(Za,{className:"w-8 h-8"})}),w.jsx("h3",{className:"text-4xl font-extrabold tracking-tight text-fg pt-4 text-center",children:"Choose an option."})]}),w.jsx("div",{className:"text-xl font-medium text-fg/70 text-center max-w-2xl whitespace-pre-wrap",children:v}),w.jsxs("div",{className:"w-full max-w-2xl space-y-3",children:[m.map(h=>{const x=o?a.includes(h.key):a===h.key;return w.jsx("button",{onClick:()=>S(h.key),disabled:n,type:"button",className:`w-full p-6 rounded-2xl border-2 transition-all text-left ${x?"border-accent bg-accent/10":"border-white/10 hover:border-white/20 bg-black/[0.03] dark:bg-white/[0.03]"}`,children:w.jsxs("div",{className:"flex items-center gap-4",children:[w.jsx("div",{className:`w-6 h-6 rounded-full border-2 flex items-center justify-center ${x?"border-accent bg-accent text-white":"border-white/20"}`,children:x&&w.jsx(bp,{className:"w-4 h-4"})}),w.jsxs("div",{className:"flex-1",children:[w.jsx("div",{className:"font-bold text-lg",children:h.label||h.key}),h.description&&w.jsx("div",{className:"text-sm text-fg/50 mt-1",children:h.description})]})]})},h.key)}),l&&w.jsxs("button",{onClick:()=>{g(!0),u(o?[]:null)},disabled:n,type:"button",className:`w-full p-6 rounded-2xl border-2 transition-all text-left ${d?"border-accent bg-accent/10":"border-white/10 hover:border-white/20 bg-black/[0.03] dark:bg-white/[0.03]"}`,children:[w.jsx("div",{className:"font-bold text-lg",children:"Other"}),w.jsx("div",{className:"text-sm text-fg/50 mt-1",children:"Provide a custom response"})]}),d&&w.jsx("textarea",{value:c,onChange:h=>f(h.target.value),placeholder:"Type your response...",className:"w-full h-32 p-6 rounded-2xl bg-black/[0.03] dark:bg-white/[0.03] border-2 border-accent/30 focus:border-accent focus:outline-none text-lg"})]})]}),w.jsx("div",{className:"p-4 flex justify-center bg-gradient-to-t from-bg via-bg to-transparent shrink-0 border-t border-white/5",children:w.jsx("button",{onClick:y,disabled:n||!p,className:"px-12 py-6 bg-fg text-bg rounded-full font-bold text-xl hover:scale-105 active:scale-95 transition-all disabled:opacity-30 shadow-2xl",children:"Continue"})})]})}function uw({interaction:e,onSubmit:t,disabled:n}){const{prompt:r,question:i,confirmLabel:s="Confirm",cancelLabel:o="Cancel",context:l}=e;return w.jsxs("div",{className:"w-full h-full flex flex-col items-stretch overflow-hidden",children:[w.jsxs("div",{className:"flex-1 overflow-y-auto custom-scroll px-6 py-12 space-y-8 flex flex-col items-center justify-center",children:[w.jsxs("div",{className:"space-y-4",children:[w.jsx("div",{className:"w-16 h-16 rounded-3xl bg-accent text-white flex items-center justify-center mx-auto shadow-2xl shadow-accent/40",children:w.jsx(Za,{className:"w-8 h-8"})}),w.jsx("h3",{className:"text-4xl font-extrabold tracking-tight text-fg pt-4 text-center",children:"Confirm action."})]}),w.jsx("div",{className:"text-xl font-medium text-fg/70 text-center max-w-2xl whitespace-pre-wrap",children:r||i||"Please confirm."}),(l==null?void 0:l.documentPath)&&w.jsxs("div",{className:"text-sm text-fg/40 text-center",children:["Review: ",w.jsx("code",{className:"bg-white/10 px-2 py-1 rounded",children:l.documentPath})]})]}),w.jsxs("div",{className:"p-4 flex justify-center gap-4 bg-gradient-to-t from-bg via-bg to-transparent shrink-0 border-t border-white/5",children:[w.jsx("button",{onClick:()=>t({confirmed:!1,raw:o}),disabled:n,className:"px-12 py-6 bg-white/10 text-fg rounded-full font-bold text-xl hover:bg-white/20 transition-all disabled:opacity-30",children:o}),w.jsx("button",{onClick:()=>t({confirmed:!0,raw:s}),disabled:n,className:"px-12 py-6 bg-fg text-bg rounded-full font-bold text-xl hover:scale-105 active:scale-95 transition-all disabled:opacity-30 shadow-2xl",children:s})]})]})}function cw({interaction:e,onSubmit:t,disabled:n}){const{prompt:r,question:i,placeholder:s,validation:o}=e,[l,a]=C.useState(""),[u,c]=C.useState(null),f=C.useMemo(()=>o||{},[o]),d=m=>f.minLength&&m.length<f.minLength?`Minimum ${f.minLength} characters required`:f.maxLength&&m.length>f.maxLength?`Maximum ${f.maxLength} characters allowed`:f.pattern&&!new RegExp(f.pattern).test(m)?"Invalid format":null,g=()=>{const m=l.trim(),v=d(m);if(v){c(v);return}t({text:m,raw:m})};return w.jsxs("div",{className:"w-full h-full flex flex-col items-stretch overflow-hidden",children:[w.jsxs("div",{className:"flex-1 overflow-y-auto custom-scroll px-6 py-12 space-y-8 flex flex-col items-center",children:[w.jsxs("div",{className:"space-y-4 shrink-0",children:[w.jsx("div",{className:"w-16 h-16 rounded-3xl bg-accent text-white flex items-center justify-center mx-auto shadow-2xl shadow-accent/40",children:w.jsx(Za,{className:"w-8 h-8"})}),w.jsx("h3",{className:"text-4xl font-extrabold tracking-tight text-fg pt-4 text-center",children:"Action required."})]}),w.jsxs("div",{className:"w-full max-w-2xl space-y-4",children:[w.jsx("div",{className:"text-xl font-medium text-fg/70 text-center whitespace-pre-wrap",children:r||i||"Provide your response."}),w.jsx("textarea",{value:l,onChange:m=>{a(m.target.value),c(null)},disabled:n,placeholder:s||"Your response...",className:`w-full h-64 p-8 rounded-[32px] bg-black/[0.03] dark:bg-white/[0.03] border-2 ${u?"border-red-500":"border-transparent"} focus:ring-4 focus:ring-accent/10 focus:outline-none text-2xl font-medium transition-all text-center placeholder:opacity-20`}),u&&w.jsx("div",{className:"text-red-500 text-center text-sm",children:u})]})]}),w.jsx("div",{className:"p-4 flex justify-center bg-gradient-to-t from-bg via-bg to-transparent shrink-0 border-t border-white/5",children:w.jsx("button",{onClick:g,disabled:n||!l.trim(),className:"px-12 py-6 bg-fg text-bg rounded-full font-bold text-xl hover:scale-105 active:scale-95 transition-all disabled:opacity-30 shadow-2xl",children:"Submit Response"})})]})}function fw({interaction:e,onSubmit:t,disabled:n}){const r=(e==null?void 0:e.type)||"text",i=s=>{t(e.slug,e.targetKey,s)};switch(r){case"choice":return w.jsx(aw,{interaction:e,onSubmit:i,disabled:n},e.slug);case"confirm":return w.jsx(uw,{interaction:e,onSubmit:i,disabled:n},e.slug);case"text":default:return w.jsx(cw,{interaction:e,onSubmit:i,disabled:n},e.slug)}}function dw(){const[e,t]=C.useState([]),[n,r]=C.useState(0),[i,s]=C.useState("connecting"),[o,l]=C.useState("..."),[a,u]=C.useState("light"),[c,f]=C.useState("present"),[d,g]=C.useState(null),[m,v]=C.useState(!1);C.useEffect(()=>{const z=localStorage.getItem("rf_theme")||(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light");u(z);const V=localStorage.getItem("rf_view")||"present";f(V)},[]),C.useEffect(()=>{document.documentElement.classList.toggle("dark",a==="dark"),localStorage.setItem("rf_theme",a)},[a]),C.useEffect(()=>{localStorage.setItem("rf_view",c)},[c]);const S=window.SESSION_TOKEN==="{{SESSION_TOKEN}}"?null:window.SESSION_TOKEN,y=S?`/api/history/${S}`:"/api/history",p=S?`/api/events/${S}`:"/api/events",h=S?`/api/submit/${S}`:"/api/submit",x=async()=>{try{const V=await(await fetch(y)).json();if(V.entries){const F=[...V.entries].reverse();t(M=>(M.length===0&&F.length>0&&r(F.length-1),F));const j=F[F.length-1];j&&(j.event==="INTERACTION_REQUESTED"||j.event==="PROMPT_REQUESTED")?g(j):g(null)}V.workflowName&&l(V.workflowName),s("connected")}catch{s("disconnected")}},k=C.useRef(0);C.useEffect(()=>{e.length>k.current&&(k.current===0&&e.length>0?(r(e.length-1),v(!1)):n<e.length-1&&v(!0)),k.current=e.length},[e.length,n]),C.useEffect(()=>{n===e.length-1&&v(!1)},[n,e.length]),C.useEffect(()=>{x();const z=setInterval(x,3e3),V=new EventSource(p);return V.onmessage=F=>{F.data==="update"&&x()},()=>{clearInterval(z),V.close()}},[]);const E=()=>r(z=>Math.min(e.length-1,z+1)),N=()=>r(z=>Math.max(0,z-1)),P=C.useRef(null),R=C.useRef(!1),D=z=>{const V=z.target;if((V.tagName==="TEXTAREA"||V.tagName==="INPUT"&&V.type==="number")&&V.className!=="jumper-input"){R.current=!0;return}R.current=!1;const j=z.touches[0];P.current={x:j.clientX,y:j.clientY}},ne=z=>{if(R.current||!P.current)return;const V=z.changedTouches[0],F=V.clientX-P.current.x,j=V.clientY-P.current.y,M=Math.abs(F),O=Math.abs(j);M>50&&M>O+10&&(F>0&&N(),F<0&&E()),P.current=null};C.useEffect(()=>{const z=V=>{(V.target.tagName==="TEXTAREA"||V.target.tagName==="INPUT"&&V.target.type==="number")&&V.target.className!=="jumper-input"||(V.key==="ArrowRight"&&E(),V.key==="ArrowLeft"&&N())};return window.addEventListener("keydown",z),()=>window.removeEventListener("keydown",z)},[e.length]);const b=e[n],ce=b&&(b.event==="INTERACTION_REQUESTED"||b.event==="PROMPT_REQUESTED"),re=d&&ce&&b.slug===d.slug;return w.jsxs("div",{className:"w-full h-[100dvh] flex flex-col relative overflow-hidden bg-bg",children:[w.jsx(lw,{workflowName:o,status:i,theme:a,toggleTheme:()=>u(z=>z==="dark"?"light":"dark"),viewMode:c,setViewMode:f,history:e}),w.jsx("main",{className:"main-stage overflow-hidden",children:c==="log"?w.jsx(sw,{history:e,onJump:z=>{r(z),f("present")}}):w.jsx(U1,{mode:"wait",children:w.jsx(D1.div,{drag:"x",dragConstraints:{left:0,right:0},dragElastic:.2,style:{touchAction:"pan-y"},onTouchStart:D,onTouchEnd:ne,onDragEnd:(z,{offset:V,velocity:F})=>{V.x>50||F.x>500?N():(V.x<-50||F.x<-500)&&E()},initial:{opacity:0,scale:.99,filter:"blur(4px)"},animate:{opacity:1,scale:1,filter:"blur(0px)"},exit:{opacity:0,scale:1.01,filter:"blur(4px)"},transition:{duration:.3,ease:[.16,1,.3,1]},className:"w-full h-full",children:re?w.jsx("div",{className:"content-width h-full",children:w.jsx(fw,{interaction:d,onSubmit:async(z,V,F)=>{const j=typeof F=="string"?F:JSON.stringify(F);t(M=>[...M,{timestamp:new Date().toISOString(),event:"INTERACTION_SUBMITTED",answer:j,response:F}]),r(M=>M+1),await fetch(h,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({slug:z,targetKey:V,response:F})}),setTimeout(x,1e3)},disabled:i==="disconnected"})}):w.jsx(nw,{item:b})},n)})}),w.jsx(ow,{page:n,total:e.length,onNext:E,onPrev:N,onJump:r,hasNew:m,onJumpToLatest:()=>r(e.length-1),className:c==="log"?"opacity-0 pointer-events-none":"opacity-100"})]})}const hw=Ph(document.getElementById("root"));hw.render(w.jsx(dw,{}));