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.
- package/bin/cli.js +1 -140
- package/lib/config-utils.js +259 -0
- package/lib/llm.js +23 -5
- package/lib/runtime/model-resolution.js +128 -0
- package/package.json +1 -1
- package/templates/project-builder/agents/assumptions-clarifier.md +0 -8
- package/templates/project-builder/agents/code-reviewer.md +0 -8
- package/templates/project-builder/agents/code-writer.md +0 -10
- package/templates/project-builder/agents/requirements-clarifier.md +0 -7
- package/templates/project-builder/agents/roadmap-generator.md +0 -10
- package/templates/project-builder/agents/scope-clarifier.md +0 -6
- package/templates/project-builder/agents/security-clarifier.md +0 -9
- package/templates/project-builder/agents/security-reviewer.md +0 -12
- package/templates/project-builder/agents/task-planner.md +0 -10
- package/templates/project-builder/agents/test-planner.md +0 -9
- package/templates/project-builder/config.js +1 -0
- package/vercel-server/public/remote/assets/index-BOKpYANC.js +148 -0
- package/vercel-server/public/remote/assets/index-DHL_iHQW.css +1 -0
- package/vercel-server/public/remote/index.html +2 -2
- package/vercel-server/ui/src/components/ContentCard.jsx +114 -18
- package/vercel-server/public/remote/assets/index-CxvAJSiE.js +0 -139
- package/vercel-server/public/remote/assets/index-CyKTDZyv.css +0 -1
|
@@ -0,0 +1,148 @@
|
|
|
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 qp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ff={exports:{}},vs={},df={exports:{}},F={};/**
|
|
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"),em=Symbol.for("react.fragment"),tm=Symbol.for("react.strict_mode"),nm=Symbol.for("react.profiler"),rm=Symbol.for("react.provider"),im=Symbol.for("react.context"),sm=Symbol.for("react.forward_ref"),om=Symbol.for("react.suspense"),lm=Symbol.for("react.memo"),am=Symbol.for("react.lazy"),qa=Symbol.iterator;function um(e){return e===null||typeof e!="object"?null:(e=qa&&e[qa]||e["@@iterator"],typeof e=="function"?e:null)}var hf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},pf=Object.assign,mf={};function qn(e,t,n){this.props=e,this.context=t,this.refs=mf,this.updater=n||hf}qn.prototype.isReactComponent={};qn.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")};qn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function gf(){}gf.prototype=qn.prototype;function Ol(e,t,n){this.props=e,this.context=t,this.refs=mf,this.updater=n||hf}var Fl=Ol.prototype=new gf;Fl.constructor=Ol;pf(Fl,qn.prototype);Fl.isPureReactComponent=!0;var Ja=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 cm(e,t){return{$$typeof:Yr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function zl(e){return typeof e=="object"&&e!==null&&e.$$typeof===Yr}function fm(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var eu=/\/+/g;function Hs(e,t){return typeof e=="object"&&e!==null&&e.key!=null?fm(""+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===""?"."+Hs(o,0):r,Ja(i)?(n="",e!=null&&(n=e.replace(eu,"$&/")+"/"),Ei(i,t,n,"",function(u){return u})):i!=null&&(zl(i)&&(i=cm(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(eu,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",Ja(e))for(var l=0;l<e.length;l++){s=e[l];var a=r+Hs(s,l);o+=Ei(s,t,n,a,i)}else if(a=um(e),typeof a=="function")for(e=a.call(e),l=0;!(s=e.next()).done;)s=s.value,a=r+Hs(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 dm(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},hm={ReactCurrentDispatcher:ke,ReactCurrentBatchConfig:Ni,ReactCurrentOwner:Il};function wf(){throw Error("act(...) is not supported in production builds of React.")}F.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(!zl(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};F.Component=qn;F.Fragment=em;F.Profiler=nm;F.PureComponent=Ol;F.StrictMode=tm;F.Suspense=om;F.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=hm;F.act=wf;F.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}};F.createContext=function(e){return e={$$typeof:im,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:rm,_context:e},e.Consumer=e};F.createElement=xf;F.createFactory=function(e){var t=xf.bind(null,e);return t.type=e,t};F.createRef=function(){return{current:null}};F.forwardRef=function(e){return{$$typeof:sm,render:e}};F.isValidElement=zl;F.lazy=function(e){return{$$typeof:am,_payload:{_status:-1,_result:e},_init:dm}};F.memo=function(e,t){return{$$typeof:lm,type:e,compare:t===void 0?null:t}};F.startTransition=function(e){var t=Ni.transition;Ni.transition={};try{e()}finally{Ni.transition=t}};F.unstable_act=wf;F.useCallback=function(e,t){return ke.current.useCallback(e,t)};F.useContext=function(e){return ke.current.useContext(e)};F.useDebugValue=function(){};F.useDeferredValue=function(e){return ke.current.useDeferredValue(e)};F.useEffect=function(e,t){return ke.current.useEffect(e,t)};F.useId=function(){return ke.current.useId()};F.useImperativeHandle=function(e,t,n){return ke.current.useImperativeHandle(e,t,n)};F.useInsertionEffect=function(e,t){return ke.current.useInsertionEffect(e,t)};F.useLayoutEffect=function(e,t){return ke.current.useLayoutEffect(e,t)};F.useMemo=function(e,t){return ke.current.useMemo(e,t)};F.useReducer=function(e,t,n){return ke.current.useReducer(e,t,n)};F.useRef=function(e){return ke.current.useRef(e)};F.useState=function(e){return ke.current.useState(e)};F.useSyncExternalStore=function(e,t,n){return ke.current.useSyncExternalStore(e,t,n)};F.useTransition=function(){return ke.current.useTransition()};F.version="18.3.1";df.exports=F;var C=df.exports;const Sf=qp(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 pm=C,mm=Symbol.for("react.element"),gm=Symbol.for("react.fragment"),ym=Object.prototype.hasOwnProperty,vm=pm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,xm={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)ym.call(t,r)&&!xm.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:mm,type:e,key:s,ref:o,props:i,_owner:vm.current}}vs.Fragment=gm;vs.jsx=kf;vs.jsxs=kf;ff.exports=vs;var v=ff.exports,Cf={exports:{}},Fe={},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,L){var O=j.length;j.push(L);e:for(;0<O;){var _=O-1>>>1,b=j[_];if(0<i(b,L))j[_]=L,j[O]=b,O=_;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var L=j[0],O=j.pop();if(O!==L){j[0]=O;e:for(var _=0,b=j.length,Qt=b>>>1;_<Qt;){var et=2*(_+1)-1,xn=j[et],Re=et+1,Gt=j[Re];if(0>i(xn,O))Re<b&&0>i(Gt,xn)?(j[_]=Gt,j[Re]=O,_=Re):(j[_]=xn,j[et]=O,_=et);else if(Re<b&&0>i(Gt,O))j[_]=Gt,j[Re]=O,_=Re;else break e}}return L}function i(j,L){var O=j.sortIndex-L.sortIndex;return O!==0?O:j.id-L.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,p=3,g=!1,y=!1,x=!1,T=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(j){for(var L=n(u);L!==null;){if(L.callback===null)r(u);else if(L.startTime<=j)r(u),L.sortIndex=L.expirationTime,t(a,L);else break;L=n(u)}}function w(j){if(x=!1,m(j),!y)if(n(a)!==null)y=!0,V(S);else{var L=n(u);L!==null&&I(w,L.startTime-j)}}function S(j,L){y=!1,x&&(x=!1,h(E),E=-1),g=!0;var O=p;try{for(m(L),f=n(a);f!==null&&(!(f.expirationTime>L)||j&&!ne());){var _=f.callback;if(typeof _=="function"){f.callback=null,p=f.priorityLevel;var b=_(f.expirationTime<=L);L=e.unstable_now(),typeof b=="function"?f.callback=b:f===n(a)&&r(a),m(L)}else r(a);f=n(a)}if(f!==null)var Qt=!0;else{var et=n(u);et!==null&&I(w,et.startTime-L),Qt=!1}return Qt}finally{f=null,p=O,g=!1}}var k=!1,P=null,E=-1,R=5,D=-1;function ne(){return!(e.unstable_now()-D<R)}function G(){if(P!==null){var j=e.unstable_now();D=j;var L=!0;try{L=P(!0,j)}finally{L?ce():(k=!1,P=null)}}else k=!1}var ce;if(typeof d=="function")ce=function(){d(G)};else if(typeof MessageChannel<"u"){var re=new MessageChannel,z=re.port2;re.port1.onmessage=G,ce=function(){z.postMessage(null)}}else ce=function(){T(G,0)};function V(j){P=j,k||(k=!0,ce())}function I(j,L){E=T(function(){j(e.unstable_now())},L)}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(){y||g||(y=!0,V(S))},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 p},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(j){switch(p){case 1:case 2:case 3:var L=3;break;default:L=p}var O=p;p=L;try{return j()}finally{p=O}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,L){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var O=p;p=j;try{return L()}finally{p=O}},e.unstable_scheduleCallback=function(j,L,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 b=-1;break;case 2:b=250;break;case 5:b=1073741823;break;case 4:b=1e4;break;default:b=5e3}return b=O+b,j={id:c++,callback:L,priorityLevel:j,startTime:O,expirationTime:b,sortIndex:-1},O>_?(j.sortIndex=O,t(u,j),n(a)===null&&j===n(u)&&(x?(h(E),E=-1):x=!0,I(w,O-_))):(j.sortIndex=b,t(a,j),y||g||(y=!0,V(S))),j},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(j){var L=p;return function(){var O=p;p=L;try{return j.apply(this,arguments)}finally{p=O}}}})(Tf);Pf.exports=Tf;var wm=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 Sm=C,_e=wm;function N(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,Mr={};function mn(e,t){Wn(e,t),Wn(e+"Capture",t)}function Wn(e,t){for(Mr[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,km=/^[: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 Cm(e){return Lo.call(nu,e)?!0:Lo.call(tu,e)?!1:km.test(e)?nu[e]=!0:(tu[e]=!0,!1)}function Pm(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 Tm(e,t,n,r){if(t===null||typeof t>"u"||Pm(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 Bl=/[\-:]([a-z])/g;function Ul(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(Bl,Ul);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(Bl,Ul);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(Bl,Ul);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 $l(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")&&(Tm(t,n,i,r)&&(n=null),r||i===null?Cm(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=Sm.__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"),Wl=Symbol.for("react.strict_mode"),Ro=Symbol.for("react.profiler"),Nf=Symbol.for("react.provider"),jf=Symbol.for("react.context"),Hl=Symbol.for("react.forward_ref"),Vo=Symbol.for("react.suspense"),Do=Symbol.for("react.suspense_list"),Kl=Symbol.for("react.memo"),Ct=Symbol.for("react.lazy"),Mf=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 q=Object.assign,Ks;function fr(e){if(Ks===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ks=t&&t[1]||""}return`
|
|
34
|
+
`+Ks+e}var bs=!1;function Qs(e,t){if(!e||bs)return"";bs=!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{bs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?fr(e):""}function Em(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 Ao(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 Ro:return"Profiler";case Wl:return"StrictMode";case Vo:return"Suspense";case Do: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 Hl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Kl:return t=e.displayName||null,t!==null?t:Ao(e.type)||"Memo";case Ct:t=e._payload,e=e._init;try{return Ao(e(t))}catch{}}return null}function Nm(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 Ao(t);case 8:return t===Wl?"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 Lf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function jm(e){var t=Lf(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=jm(e))}function Rf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Lf(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 _o(e,t){var n=t.checked;return q({},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&&$l(e,"checked",t,!1)}function Oo(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")?Fo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Fo(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 Fo(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 Fn(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(N(91));return q({},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(N(92));if(dr(n)){if(1<n.length)throw Error(N(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 zo(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 Lr(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},Mm=["Webkit","ms","Moz","O"];Object.keys(gr).forEach(function(e){Mm.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 Ff(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=q({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 Bo(e,t){if(t){if(Lm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function Uo(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 $o=null;function bl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wo=null,In=null,zn=null;function au(e){if(e=qr(e)){if(typeof Wo!="function")throw Error(N(280));var t=e.stateNode;t&&(t=Cs(t),Wo(e.stateNode,e.type,t))}}function If(e){In?zn?zn.push(e):zn=[e]:In=e}function zf(){if(In){var e=In,t=zn;if(zn=In=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,(In!==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(N(231,t,typeof n));return n}var Ho=!1;if(mt)try{var nr={};Object.defineProperty(nr,"passive",{get:function(){Ho=!0}}),window.addEventListener("test",nr,nr),window.removeEventListener("test",nr,nr)}catch{Ho=!1}function Rm(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,Ko=null,Vm={onError:function(e){yr=!0,Ui=e}};function Dm(e,t,n,r,i,s,o,l,a){yr=!1,Ui=null,Rm.apply(Vm,arguments)}function Am(e,t,n,r,i,s,o,l,a){if(Dm.apply(this,arguments),yr){if(yr){var u=Ui;yr=!1,Ui=null}else throw Error(N(198));$i||($i=!0,Ko=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(N(188))}function _m(e){var t=e.alternate;if(!t){if(t=gn(e),t===null)throw Error(N(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(N(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(N(189))}}if(n.alternate!==r)throw Error(N(190))}if(n.tag!==3)throw Error(N(188));return n.stateNode.current===n?e:t}function Hf(e){return e=_m(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 bf=_e.unstable_scheduleCallback,cu=_e.unstable_cancelCallback,Om=_e.unstable_shouldYield,Fm=_e.unstable_requestPaint,ee=_e.unstable_now,Im=_e.unstable_getCurrentPriorityLevel,Ql=_e.unstable_ImmediatePriority,Qf=_e.unstable_UserBlockingPriority,Wi=_e.unstable_NormalPriority,zm=_e.unstable_LowPriority,Gf=_e.unstable_IdlePriority,xs=null,it=null;function Bm(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:Wm,Um=Math.log,$m=Math.LN2;function Wm(e){return e>>>=0,e===0?32:31-(Um(e)/$m|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 Hm(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 Km(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]=Hm(l,t)):a<=t&&(e.expiredLanes|=l),s&=~l}}function bo(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 Ys(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 bm(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,Yl,qf,Jf,ed,Qo=!1,fi=[],Lt=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":Lt=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=qr(t),t!==null&&Yl(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 Lt=rr(Lt,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(){qf(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);$o=r,n.target.dispatchEvent(r),$o=null}else return t=qr(n),t!==null&&Yl(t),e.blockedOn=n,!1;t.shift()}return!0}function du(e,t,n){ji(e)&&n.delete(t)}function Ym(){Qo=!1,Lt!==null&&ji(Lt)&&(Lt=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,Ym)))}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(Lt!==null&&ir(Lt,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 Xm(e,t,n,r){var i=U,s=Bn.transition;Bn.transition=null;try{U=1,Xl(e,t,n,r)}finally{U=i,Bn.transition=s}}function Zm(e,t,n,r){var i=U,s=Bn.transition;Bn.transition=null;try{U=4,Xl(e,t,n,r)}finally{U=i,Bn.transition=s}}function Xl(e,t,n,r){if(Ki){var i=Go(e,t,n,r);if(i===null)so(e,t,r,bi,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=qr(i);if(s!==null&&Zf(s),s=Go(e,t,n,r),s===null&&so(e,t,r,bi,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else so(e,t,r,null,n)}}var bi=null;function Go(e,t,n,r){if(bi=null,e=bl(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 bi=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 Qf:return 4;case Wi:case zm:return 16;case Gf:return 536870912;default:return 16}default:return 16}}var jt=null,Zl=null,Mi=null;function rd(){if(Mi)return Mi;var e,t=Zl,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 Mi=i.slice(e,1<r?1-r:void 0)}function Li(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 Ie(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 q(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 Jn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ql=Ie(Jn),Zr=q({},Jn,{view:0,detail:0}),qm=Ie(Zr),Xs,Zs,sr,ws=q({},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"?(Xs=e.screenX-sr.screenX,Zs=e.screenY-sr.screenY):Zs=Xs=0,sr=e),Xs)},movementY:function(e){return"movementY"in e?e.movementY:Zs}}),pu=Ie(ws),Jm=q({},ws,{dataTransfer:0}),eg=Ie(Jm),tg=q({},Zr,{relatedTarget:0}),qs=Ie(tg),ng=q({},Jn,{animationName:0,elapsedTime:0,pseudoElement:0}),rg=Ie(ng),ig=q({},Jn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),sg=Ie(ig),og=q({},Jn,{data:0}),mu=Ie(og),lg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ag={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"},ug={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function cg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ug[e])?!!t[e]:!1}function Jl(){return cg}var fg=q({},Zr,{key:function(e){if(e.key){var t=lg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Li(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ag[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"?Li(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Li(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),dg=Ie(fg),hg=q({},ws,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gu=Ie(hg),pg=q({},Zr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Jl}),mg=Ie(pg),gg=q({},Jn,{propertyName:0,elapsedTime:0,pseudoElement:0}),yg=Ie(gg),vg=q({},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}),xg=Ie(vg),wg=[9,13,27,32],ea=mt&&"CompositionEvent"in window,vr=null;mt&&"documentMode"in document&&(vr=document.documentMode);var Sg=mt&&"TextEvent"in window&&!vr,id=mt&&(!ea||vr&&8<vr&&11>=vr),yu=" ",vu=!1;function sd(e,t){switch(e){case"keyup":return wg.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 kg(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 Cg(e,t){if(Cn)return e==="compositionend"||!ea&&sd(e,t)?(e=rd(),Mi=Zl=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 Pg={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"?!!Pg[e.type]:t==="textarea"}function ld(e,t,n,r){If(r),t=Qi(t,"onChange"),0<t.length&&(n=new ql("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var xr=null,_r=null;function Tg(e){vd(e,0)}function Ss(e){var t=En(e);if(Rf(t))return e}function Eg(e,t){if(e==="change")return t}var ad=!1;if(mt){var Js;if(mt){var eo="oninput"in document;if(!eo){var wu=document.createElement("div");wu.setAttribute("oninput","return;"),eo=typeof wu.oninput=="function"}Js=eo}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,bl(e)),$f(Tg,t)}}function Ng(e,t,n){e==="focusin"?(Su(),xr=t,_r=n,xr.attachEvent("onpropertychange",ud)):e==="focusout"&&Su()}function jg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ss(_r)}function Mg(e,t){if(e==="click")return Ss(t)}function Lg(e,t){if(e==="input"||e==="change")return Ss(t)}function Rg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Je=typeof Object.is=="function"?Object.is:Rg;function Or(e,t){if(Je(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)||!Je(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 ta(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Vg(e){var t=fd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&cd(n.ownerDocument.documentElement,n)){if(r!==null&&ta(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 Dg=mt&&"documentMode"in document&&11>=document.documentMode,Pn=null,Yo=null,wr=null,Xo=!1;function Pu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Xo||Pn==null||Pn!==Bi(r)||(r=Pn,"selectionStart"in r&&ta(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=Qi(Yo,"onSelect"),0<r.length&&(t=new ql("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")},to={},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(to[e])return to[e];if(!Tn[e])return e;var t=Tn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in dd)return to[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 no=0;no<Tu.length;no++){var ro=Tu[no],Ag=ro.toLowerCase(),_g=ro[0].toUpperCase()+ro.slice(1);Wt(Ag,"on"+_g)}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(" "),Og=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,Am(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=Ko,$i=!1,Ko=null,e}function H(e,t){var n=t[tl];n===void 0&&(n=t[tl]=new Set);var r=e+"__bubble";n.has(r)||(xd(t,e,2,!1),n.add(r))}function io(e,t,n){var r=0;t&&(r|=4),xd(n,e,r,t)}var pi="_reactListening"+Math.random().toString(36).slice(2);function Fr(e){if(!e[pi]){e[pi]=!0,Ef.forEach(function(n){n!=="selectionchange"&&(Og.has(n)||io(n,!1,e),io(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[pi]||(t[pi]=!0,io("selectionchange",!1,t))}}function xd(e,t,n,r){switch(nd(t)){case 1:var i=Xm;break;case 4:i=Zm;break;default:i=Xl}n=i.bind(null,t,n,e),i=void 0,!Ho||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 so(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=bl(n),f=[];e:{var p=yd.get(e);if(p!==void 0){var g=ql,y=e;switch(e){case"keypress":if(Li(n)===0)break e;case"keydown":case"keyup":g=dg;break;case"focusin":y="focus",g=qs;break;case"focusout":y="blur",g=qs;break;case"beforeblur":case"afterblur":g=qs;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=eg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=mg;break;case hd:case pd:case md:g=rg;break;case gd:g=yg;break;case"scroll":g=qm;break;case"wheel":g=xg;break;case"copy":case"cut":case"paste":g=sg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=gu}var x=(t&4)!==0,T=!x&&e==="scroll",h=x?p!==null?p+"Capture":null:p;x=[];for(var d=u,m;d!==null;){m=d;var w=m.stateNode;if(m.tag===5&&w!==null&&(m=w,h!==null&&(w=Rr(d,h),w!=null&&x.push(Ir(d,w,m)))),T)break;d=d.return}0<x.length&&(p=new g(p,y,null,n,c),f.push({event:p,listeners:x}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",p&&n!==$o&&(y=n.relatedTarget||n.fromElement)&&(nn(y)||y[gt]))break e;if((g||p)&&(p=c.window===c?c:(p=c.ownerDocument)?p.defaultView||p.parentWindow:window,g?(y=n.relatedTarget||n.toElement,g=u,y=y?nn(y):null,y!==null&&(T=gn(y),y!==T||y.tag!==5&&y.tag!==6)&&(y=null)):(g=null,y=u),g!==y)){if(x=pu,w="onMouseLeave",h="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(x=gu,w="onPointerLeave",h="onPointerEnter",d="pointer"),T=g==null?p:En(g),m=y==null?p:En(y),p=new x(w,d+"leave",g,n,c),p.target=T,p.relatedTarget=m,w=null,nn(c)===u&&(x=new x(h,d+"enter",y,n,c),x.target=m,x.relatedTarget=T,w=x),T=w,g&&y)t:{for(x=g,h=y,d=0,m=x;m;m=wn(m))d++;for(m=0,w=h;w;w=wn(w))m++;for(;0<d-m;)x=wn(x),d--;for(;0<m-d;)h=wn(h),m--;for(;d--;){if(x===h||h!==null&&x===h.alternate)break t;x=wn(x),h=wn(h)}x=null}else x=null;g!==null&&Nu(f,p,g,x,!1),y!==null&&T!==null&&Nu(f,T,y,x,!0)}}e:{if(p=u?En(u):window,g=p.nodeName&&p.nodeName.toLowerCase(),g==="select"||g==="input"&&p.type==="file")var S=Eg;else if(xu(p))if(ad)S=Lg;else{S=jg;var k=Ng}else(g=p.nodeName)&&g.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(S=Mg);if(S&&(S=S(e,u))){ld(f,S,n,c);break e}k&&k(e,p,u),e==="focusout"&&(k=p._wrapperState)&&k.controlled&&p.type==="number"&&Fo(p,"number",p.value)}switch(k=u?En(u):window,e){case"focusin":(xu(k)||k.contentEditable==="true")&&(Pn=k,Yo=u,wr=null);break;case"focusout":wr=Yo=Pn=null;break;case"mousedown":Xo=!0;break;case"contextmenu":case"mouseup":case"dragend":Xo=!1,Pu(f,n,c);break;case"selectionchange":if(Dg)break;case"keydown":case"keyup":Pu(f,n,c)}var P;if(ea)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else Cn?sd(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(id&&n.locale!=="ko"&&(Cn||E!=="onCompositionStart"?E==="onCompositionEnd"&&Cn&&(P=rd()):(jt=c,Zl="value"in jt?jt.value:jt.textContent,Cn=!0)),k=Qi(u,E),0<k.length&&(E=new mu(E,e,null,n,c),f.push({event:E,listeners:k}),P?E.data=P:(P=od(n),P!==null&&(E.data=P)))),(P=Sg?kg(e,n):Cg(e,n))&&(u=Qi(u,"onBeforeInput"),0<u.length&&(c=new mu("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=P))}vd(f,t)})}function Ir(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Qi(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(Ir(e,s,i)),s=Rr(e,t),s!=null&&r.push(Ir(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(Ir(n,a,l))):i||(a=Rr(n,s),a!=null&&o.push(Ir(n,a,l)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Fg=/\r\n?/g,Ig=/\u0000|\uFFFD/g;function ju(e){return(typeof e=="string"?e:""+e).replace(Fg,`
|
|
38
|
+
`).replace(Ig,"")}function mi(e,t,n){if(t=ju(t),ju(e)!==t&&n)throw Error(N(425))}function Gi(){}var Zo=null,qo=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 el=typeof setTimeout=="function"?setTimeout:void 0,zg=typeof clearTimeout=="function"?clearTimeout:void 0,Mu=typeof Promise=="function"?Promise:void 0,Bg=typeof queueMicrotask=="function"?queueMicrotask:typeof Mu<"u"?function(e){return Mu.resolve(null).then(e).catch(Ug)}:el;function Ug(e){setTimeout(function(){throw e})}function oo(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 Lu(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,tl="__reactEvents$"+er,$g="__reactListeners$"+er,Wg="__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=Lu(e);e!==null;){if(n=e[rt])return n;e=Lu(e)}return t}e=n,n=e.parentNode}return null}function qr(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(N(33))}function Cs(e){return e[zr]||null}var nl=[],Nn=-1;function Ht(e){return{current:e}}function K(e){0>Nn||(e.current=nl[Nn],nl[Nn]=null,Nn--)}function $(e,t){Nn++,nl[Nn]=e.current,e.current=t}var Bt={},ve=Ht(Bt),Ne=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 je(e){return e=e.childContextTypes,e!=null}function Yi(){K(Ne),K(ve)}function Ru(e,t,n){if(ve.current!==Bt)throw Error(N(168));$(ve,t),$(Ne,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(N(108,Nm(e)||"Unknown",i));return q({},n,r)}function Xi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Bt,cn=ve.current,$(ve,e),$(Ne,Ne.current),!0}function Vu(e,t,n){var r=e.stateNode;if(!r)throw Error(N(169));n?(e=wd(e,t,cn),r.__reactInternalMemoizedMergedChildContext=e,K(Ne),K(ve),$(ve,e)):K(Ne),$(Ne,n)}var at=null,Ps=!1,lo=!1;function Sd(e){at===null?at=[e]:at.push(e)}function Hg(e){Ps=!0,Sd(e)}function Kt(){if(!lo&&at!==null){lo=!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)),bf(Ql,Kt),i}finally{U=t,lo=!1}}return null}var jn=[],Mn=0,Zi=null,qi=0,Ue=[],$e=0,fn=null,ut=1,ct="";function Zt(e,t){jn[Mn++]=qi,jn[Mn++]=Zi,Zi=e,qi=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 na(e){e.return!==null&&(Zt(e,1),kd(e,1,0))}function ra(e){for(;e===Zi;)Zi=jn[--Mn],jn[Mn]=null,qi=jn[--Mn],jn[Mn]=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,Q=!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 rl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function il(e){if(Q){var t=De;if(t){var n=t;if(!Du(e,t)){if(rl(e))throw Error(N(418));t=Dt(n.nextSibling);var r=Ae;t&&Du(e,t)?Cd(r,n):(e.flags=e.flags&-4097|2,Q=!1,Ae=e)}}else{if(rl(e))throw Error(N(418));e.flags=e.flags&-4097|2,Q=!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(!Q)return Au(e),Q=!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(rl(e))throw Pd(),Error(N(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(N(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,Q=!1}function ia(e){Xe===null?Xe=[e]:Xe.push(e)}var Kg=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(N(309));var r=n.stateNode}if(!r)throw Error(N(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(N(284));if(!n._owner)throw Error(N(290,e))}return e}function yi(e,t){throw e=Object.prototype.toString.call(t),Error(N(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(h,d){if(e){var m=h.deletions;m===null?(h.deletions=[d],h.flags|=16):m.push(d)}}function n(h,d){if(!e)return null;for(;d!==null;)t(h,d),d=d.sibling;return null}function r(h,d){for(h=new Map;d!==null;)d.key!==null?h.set(d.key,d):h.set(d.index,d),d=d.sibling;return h}function i(h,d){return h=Ft(h,d),h.index=0,h.sibling=null,h}function s(h,d,m){return h.index=m,e?(m=h.alternate,m!==null?(m=m.index,m<d?(h.flags|=2,d):m):(h.flags|=2,d)):(h.flags|=1048576,d)}function o(h){return e&&h.alternate===null&&(h.flags|=2),h}function l(h,d,m,w){return d===null||d.tag!==6?(d=mo(m,h.mode,w),d.return=h,d):(d=i(d,m),d.return=h,d)}function a(h,d,m,w){var S=m.type;return S===kn?c(h,d,m.props.children,w,m.key):d!==null&&(d.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Ct&&_u(S)===d.type)?(w=i(d,m.props),w.ref=or(h,d,m),w.return=h,w):(w=Fi(m.type,m.key,m.props,null,h.mode,w),w.ref=or(h,d,m),w.return=h,w)}function u(h,d,m,w){return d===null||d.tag!==4||d.stateNode.containerInfo!==m.containerInfo||d.stateNode.implementation!==m.implementation?(d=go(m,h.mode,w),d.return=h,d):(d=i(d,m.children||[]),d.return=h,d)}function c(h,d,m,w,S){return d===null||d.tag!==7?(d=an(m,h.mode,w,S),d.return=h,d):(d=i(d,m),d.return=h,d)}function f(h,d,m){if(typeof d=="string"&&d!==""||typeof d=="number")return d=mo(""+d,h.mode,m),d.return=h,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case oi:return m=Fi(d.type,d.key,d.props,null,h.mode,m),m.ref=or(h,null,d),m.return=h,m;case Sn:return d=go(d,h.mode,m),d.return=h,d;case Ct:var w=d._init;return f(h,w(d._payload),m)}if(dr(d)||tr(d))return d=an(d,h.mode,m,null),d.return=h,d;yi(h,d)}return null}function p(h,d,m,w){var S=d!==null?d.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return S!==null?null:l(h,d,""+m,w);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case oi:return m.key===S?a(h,d,m,w):null;case Sn:return m.key===S?u(h,d,m,w):null;case Ct:return S=m._init,p(h,d,S(m._payload),w)}if(dr(m)||tr(m))return S!==null?null:c(h,d,m,w,null);yi(h,m)}return null}function g(h,d,m,w,S){if(typeof w=="string"&&w!==""||typeof w=="number")return h=h.get(m)||null,l(d,h,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case oi:return h=h.get(w.key===null?m:w.key)||null,a(d,h,w,S);case Sn:return h=h.get(w.key===null?m:w.key)||null,u(d,h,w,S);case Ct:var k=w._init;return g(h,d,m,k(w._payload),S)}if(dr(w)||tr(w))return h=h.get(m)||null,c(d,h,w,S,null);yi(d,w)}return null}function y(h,d,m,w){for(var S=null,k=null,P=d,E=d=0,R=null;P!==null&&E<m.length;E++){P.index>E?(R=P,P=null):R=P.sibling;var D=p(h,P,m[E],w);if(D===null){P===null&&(P=R);break}e&&P&&D.alternate===null&&t(h,P),d=s(D,d,E),k===null?S=D:k.sibling=D,k=D,P=R}if(E===m.length)return n(h,P),Q&&Zt(h,E),S;if(P===null){for(;E<m.length;E++)P=f(h,m[E],w),P!==null&&(d=s(P,d,E),k===null?S=P:k.sibling=P,k=P);return Q&&Zt(h,E),S}for(P=r(h,P);E<m.length;E++)R=g(P,h,E,m[E],w),R!==null&&(e&&R.alternate!==null&&P.delete(R.key===null?E:R.key),d=s(R,d,E),k===null?S=R:k.sibling=R,k=R);return e&&P.forEach(function(ne){return t(h,ne)}),Q&&Zt(h,E),S}function x(h,d,m,w){var S=tr(m);if(typeof S!="function")throw Error(N(150));if(m=S.call(m),m==null)throw Error(N(151));for(var k=S=null,P=d,E=d=0,R=null,D=m.next();P!==null&&!D.done;E++,D=m.next()){P.index>E?(R=P,P=null):R=P.sibling;var ne=p(h,P,D.value,w);if(ne===null){P===null&&(P=R);break}e&&P&&ne.alternate===null&&t(h,P),d=s(ne,d,E),k===null?S=ne:k.sibling=ne,k=ne,P=R}if(D.done)return n(h,P),Q&&Zt(h,E),S;if(P===null){for(;!D.done;E++,D=m.next())D=f(h,D.value,w),D!==null&&(d=s(D,d,E),k===null?S=D:k.sibling=D,k=D);return Q&&Zt(h,E),S}for(P=r(h,P);!D.done;E++,D=m.next())D=g(P,h,E,D.value,w),D!==null&&(e&&D.alternate!==null&&P.delete(D.key===null?E:D.key),d=s(D,d,E),k===null?S=D:k.sibling=D,k=D);return e&&P.forEach(function(G){return t(h,G)}),Q&&Zt(h,E),S}function T(h,d,m,w){if(typeof m=="object"&&m!==null&&m.type===kn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case oi:e:{for(var S=m.key,k=d;k!==null;){if(k.key===S){if(S=m.type,S===kn){if(k.tag===7){n(h,k.sibling),d=i(k,m.props.children),d.return=h,h=d;break e}}else if(k.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Ct&&_u(S)===k.type){n(h,k.sibling),d=i(k,m.props),d.ref=or(h,k,m),d.return=h,h=d;break e}n(h,k);break}else t(h,k);k=k.sibling}m.type===kn?(d=an(m.props.children,h.mode,w,m.key),d.return=h,h=d):(w=Fi(m.type,m.key,m.props,null,h.mode,w),w.ref=or(h,d,m),w.return=h,h=w)}return o(h);case Sn:e:{for(k=m.key;d!==null;){if(d.key===k)if(d.tag===4&&d.stateNode.containerInfo===m.containerInfo&&d.stateNode.implementation===m.implementation){n(h,d.sibling),d=i(d,m.children||[]),d.return=h,h=d;break e}else{n(h,d);break}else t(h,d);d=d.sibling}d=go(m,h.mode,w),d.return=h,h=d}return o(h);case Ct:return k=m._init,T(h,d,k(m._payload),w)}if(dr(m))return y(h,d,m,w);if(tr(m))return x(h,d,m,w);yi(h,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,d!==null&&d.tag===6?(n(h,d.sibling),d=i(d,m),d.return=h,h=d):(n(h,d),d=mo(m,h.mode,w),d.return=h,h=d),o(h)):n(h,d)}return T}var bn=Td(!0),Ed=Td(!1),Ji=Ht(null),es=null,Ln=null,sa=null;function oa(){sa=Ln=es=null}function la(e){var t=Ji.current;K(Ji),e._currentValue=t}function sl(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,sa=Ln=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ee=!0),e.firstContext=null)}function Ke(e){var t=e._currentValue;if(sa!==e)if(e={context:e,memoizedValue:t,next:null},Ln===null){if(es===null)throw Error(N(308));Ln=e,es.dependencies={lanes:0,firstContext:e}}else Ln=Ln.next=e;return t}var rn=null;function aa(e){rn===null?rn=[e]:rn.push(e)}function Nd(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,aa(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 ua(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,aa(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 p=l.lane,g=l.eventTime;if((r&p)===p){c!==null&&(c=c.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var y=e,x=l;switch(p=t,g=n,x.tag){case 1:if(y=x.payload,typeof y=="function"){f=y.call(g,f,p);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=x.payload,p=typeof y=="function"?y.call(g,f,p):y,p==null)break e;f=q({},f,p);break e;case 2:Pt=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[l]:p.push(l))}else g={eventTime:g,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=g,a=f):c=c.next=g,o|=p;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;p=l,l=p.next,p.next=null,i.lastBaseUpdate=p,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 Fu(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(N(191,i));i.call(r)}}}var Jr={},st=Ht(Jr),Br=Ht(Jr),Ur=Ht(Jr);function sn(e){if(e===Jr)throw Error(N(174));return e}function ca(e,t){switch($(Ur,t),$(Br,e),$(st,Jr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:zo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=zo(t,e)}K(st),$(st,t)}function Qn(){K(st),K(Br),K(Ur)}function Md(e){sn(Ur.current);var t=sn(st.current),n=zo(t,e.type);t!==n&&($(Br,e),$(st,n))}function fa(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 ao=[];function da(){for(var e=0;e<ao.length;e++)ao[e]._workInProgressVersionPrimary=null;ao.length=0}var Vi=wt.ReactCurrentDispatcher,uo=wt.ReactCurrentBatchConfig,dn=0,Z=null,oe=null,ae=null,rs=!1,Sr=!1,$r=0,bg=0;function pe(){throw Error(N(321))}function ha(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Je(e[n],t[n]))return!1;return!0}function pa(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?Xg:Zg,e=n(r,i),Sr){s=0;do{if(Sr=!1,$r=0,25<=s)throw Error(N(301));s+=1,ae=oe=null,t.updateQueue=null,Vi.current=qg,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(N(300));return e}function ma(){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 be(){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(N(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 co(e){var t=be(),n=t.queue;if(n===null)throw Error(N(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,Je(r,t.memoizedState)||(Ee=!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 fo(e){var t=be(),n=t.queue;if(n===null)throw Error(N(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);Je(s,t.memoizedState)||(Ee=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Ld(){}function Rd(e,t){var n=Z,r=be(),i=t(),s=!Je(r.memoizedState,i);if(s&&(r.memoizedState=i,Ee=!0),r=r.queue,ga(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(N(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!Je(e,n)}catch{return!0}}function Od(e){var t=yt(e,1);t!==null&&qe(t,e,1,-1)}function Iu(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=Yg.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 Fd(){return be().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=be();r=r===void 0?null:r;var s=void 0;if(oe!==null){var o=oe.memoizedState;if(s=o.destroy,r!==null&&ha(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 ga(e,t){return Ts(2048,8,e,t)}function Id(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 ya(){}function $d(e,t){var n=be();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ha(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Wd(e,t){var n=be();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ha(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Hd(e,t,n){return dn&21?(Je(n,t)||(n=Yf(),Z.lanes|=n,hn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ee=!0),e.memoizedState=n)}function Qg(e,t){var n=U;U=n!==0&&4>n?n:4,e(!0);var r=uo.transition;uo.transition={};try{e(!1),t()}finally{U=n,uo.transition=r}}function Kd(){return be().memoizedState}function Gg(e,t,n){var r=Ot(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},bd(e))Qd(t,n);else if(n=Nd(e,t,n,r),n!==null){var i=Se();qe(n,e,r,i),Gd(n,t,r)}}function Yg(e,t,n){var r=Ot(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(bd(e))Qd(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,Je(l,o)){var a=t.interleaved;a===null?(i.next=i,aa(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Nd(e,t,i,r),n!==null&&(i=Se(),qe(n,e,r,i),Gd(n,t,r))}}function bd(e){var t=e.alternate;return e===Z||t!==null&&t===Z}function Qd(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 Gd(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},Xg={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:Iu,useDebugValue:ya,useDeferredValue:function(e){return nt().memoizedState=e},useTransition:function(){var e=Iu(!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(Q){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),ue===null)throw Error(N(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(Q){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=bg++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Zg={readContext:Ke,useCallback:$d,useContext:Ke,useEffect:ga,useImperativeHandle:Ud,useInsertionEffect:Id,useLayoutEffect:zd,useMemo:Wd,useReducer:co,useRef:Fd,useState:function(){return co(Wr)},useDebugValue:ya,useDeferredValue:function(e){var t=be();return Hd(t,oe.memoizedState,e)},useTransition:function(){var e=co(Wr)[0],t=be().memoizedState;return[e,t]},useMutableSource:Ld,useSyncExternalStore:Rd,useId:Kd,unstable_isNewReconciler:!1},qg={readContext:Ke,useCallback:$d,useContext:Ke,useEffect:ga,useImperativeHandle:Ud,useInsertionEffect:Id,useLayoutEffect:zd,useMemo:Wd,useReducer:fo,useRef:Fd,useState:function(){return fo(Wr)},useDebugValue:ya,useDeferredValue:function(e){var t=be();return oe===null?t.memoizedState=e:Hd(t,oe.memoizedState,e)},useTransition:function(){var e=fo(Wr)[0],t=be().memoizedState;return[e,t]},useMutableSource:Ld,useSyncExternalStore:Rd,useId:Kd,unstable_isNewReconciler:!1};function Ge(e,t){if(e&&e.defaultProps){t=q({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ol(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:q({},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&&(qe(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&&(qe(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&&(qe(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=je(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 ll(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},ua(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=Ke(s):(s=je(t)?cn:ve.current,i.context=Hn(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(ol(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 Gn(e,t){try{var n="",r=t;do n+=Em(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 ho(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function al(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,vl=r),al(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(){al(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){al(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=hy.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 ey=wt.ReactCurrentOwner,Ee=!1;function we(e,t,n,r){t.child=e===null?Ed(t,null,n,r):bn(t,e.child,n,r)}function Ku(e,t,n,r,i){n=n.render;var s=t.ref;return Un(t,i),r=pa(e,t,n,r,s,i),n=ma(),e!==null&&!Ee?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,vt(e,t,i)):(Q&&n&&na(t),t.flags|=1,we(e,t,r,i),t.child)}function bu(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!Ta(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,qd(e,t,s,r,i)):(e=Fi(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=Ft(s,r),e.ref=t.ref,e.return=t,t.child=e}function qd(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(Or(s,r)&&e.ref===t.ref)if(Ee=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(Ee=!0);else return t.lanes=e.lanes,vt(e,t,i)}return ul(e,t,n,r,i)}function Jd(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 ul(e,t,n,r,i){var s=je(n)?cn:ve.current;return s=Hn(t,s),Un(t,i),n=pa(e,t,n,r,s,i),r=ma(),e!==null&&!Ee?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,vt(e,t,i)):(Q&&r&&na(t),t.flags|=1,we(e,t,n,i),t.child)}function Qu(e,t,n,r,i){if(je(n)){var s=!0;Xi(t)}else s=!1;if(Un(t,i),t.stateNode===null)Ai(e,t),Yd(t,n,r),ll(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=je(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 p=t.memoizedState;o.state=p,ts(t,r,o,i),a=t.memoizedState,l!==r||p!==a||Ne.current||Pt?(typeof c=="function"&&(ol(t,n,c,r),a=t.memoizedState),(l=Pt||Bu(t,n,l,r,p,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:Ge(t.type,l),o.props=u,f=t.pendingProps,p=o.context,a=n.contextType,typeof a=="object"&&a!==null?a=Ke(a):(a=je(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||p!==a)&&Uu(t,o,r,a),Pt=!1,p=t.memoizedState,o.state=p,ts(t,r,o,i);var y=t.memoizedState;l!==f||p!==y||Ne.current||Pt?(typeof g=="function"&&(ol(t,n,g,r),y=t.memoizedState),(u=Pt||Bu(t,n,u,r,p,y,a)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,y,a),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,y,a)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),o.props=r,o.state=y,o.context=a,r=u):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return cl(e,t,n,r,s,i)}function cl(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,ey.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=bn(t,e.child,null,s),t.child=bn(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),ca(e,t.containerInfo)}function Gu(e,t,n,r,i){return Kn(),ia(i),t.flags|=256,we(e,t,n,r),t.child}var fl={dehydrated:null,treeContext:null,retryLane:0};function dl(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 il(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=Ms(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=dl(n),t.memoizedState=fl,e):va(t,o));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return ty(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=Ft(i,a),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?s=Ft(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?dl(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=fl,r}return s=e.child,e=s.sibling,r=Ft(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 va(e,t){return t=Ms({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function vi(e,t,n,r){return r!==null&&ia(r),bn(t,e.child,null,n),e=va(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ty(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=ho(Error(N(422))),vi(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=Ms({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&&bn(t,e.child,null,o),t.child.memoizedState=dl(o),t.memoizedState=fl,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(N(419)),r=ho(s,r,void 0),vi(e,t,o,r)}if(l=(o&e.childLanes)!==0,Ee||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),qe(r,e,i,-1))}return Pa(),r=ho(Error(N(421))),vi(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=py.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,De=Dt(i.nextSibling),Ae=t,Q=!0,Xe=null,e!==null&&(Ue[$e++]=ut,Ue[$e++]=ct,Ue[$e++]=fn,ut=e.id,ct=e.overflow,fn=t),t=va(t,r.children),t.flags|=4096,t)}function Yu(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),sl(e.return,t,n)}function po(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),po(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}po(t,!0,n,null,s);break;case"together":po(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(N(153));if(t.child!==null){for(e=t.child,n=Ft(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ft(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ny(e,t,n){switch(t.tag){case 3:th(t),Kn();break;case 5:Md(t);break;case 1:je(t.type)&&Xi(t);break;case 4:ca(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;$(Ji,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,Jd(e,t,n)}return vt(e,t,n)}var ih,hl,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}};hl=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=_o(e,i),r=_o(e,r),s=[];break;case"select":i=q({},i,{value:void 0}),r=q({},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=Gi)}Bo(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"&&(Mr.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"&&(Mr.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(!Q)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 ry(e,t,n){var r=t.pendingProps;switch(ra(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 je(t.type)&&Yi(),me(t),null;case 3:return r=t.stateNode,Qn(),K(Ne),K(ve),da(),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&&(Sl(Xe),Xe=null))),hl(e,t),me(t),null;case 5:fa(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(N(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)}Bo(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]):Mr.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=Gi)}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=Uo(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=_o(e,r),H("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=q({},r,{value:void 0}),H("invalid",e);break;case"textarea":ou(e,r),i=Io(e,r),H("invalid",e);break;default:i=r}Bo(n,i),l=i;for(s in l)if(l.hasOwnProperty(s)){var a=l[s];s==="style"?Ff(e,a):s==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&_f(e,a)):s==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Lr(e,a):typeof a=="number"&&Lr(e,""+a):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Mr.hasOwnProperty(s)?a!=null&&s==="onScroll"&&H("scroll",e):a!=null&&$l(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?Fn(e,!!r.multiple,s,!1):r.defaultValue!=null&&Fn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Gi)}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(N(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(Q&&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(N(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(N(317));s[rt]=t}else Kn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;me(t),s=!1}else Xe!==null&&(Sl(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):Pa())),t.updateQueue!==null&&(t.flags|=4),me(t),null);case 4:return Qn(),hl(e,t),e===null&&Fr(t.stateNode.containerInfo),me(t),null;case 10:return la(t.type._context),me(t),null;case 17:return je(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&&!Q)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 Ca(),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(N(156,t.tag))}function iy(e,t){switch(ra(t),t.tag){case 1:return je(t.type)&&Yi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Qn(),K(Ne),K(ve),da(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return fa(t),null;case 13:if(K(Y),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));Kn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return K(Y),null;case 4:return Qn(),null;case 10:return la(t.type._context),null;case 22:case 23:return Ca(),null;case 24:return null;default:return null}}var xi=!1,ye=!1,sy=typeof WeakSet=="function"?WeakSet:Set,M=null;function Rn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){J(e,t,r)}else n.current=null}function pl(e,t,n){try{n()}catch(r){J(e,t,r)}}var Xu=!1;function oy(e,t){if(Zo=Ki,e=fd(),ta(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,p=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;)p=f,f=g;for(;;){if(f===e)break t;if(p===n&&++u===i&&(l=o),p===s&&++c===r&&(a=o),(g=f.nextSibling)!==null)break;f=p,p=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(qo={focusedElem:e,selectionRange:n},Ki=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var x=y.memoizedProps,T=y.memoizedState,h=t.stateNode,d=h.getSnapshotBeforeUpdate(t.elementType===t.type?x:Ge(t.type,x),T);h.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(w){J(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return y=Xu,Xu=!1,y}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&&pl(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 ml(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[tl],delete t[$g],delete t[Wg])),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 gl(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=Gi));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}function yl(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(yl(e,t,n),e=e.sibling;e!==null;)yl(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?oo(e.parentNode,n):e.nodeType===1&&oo(e,n),Ar(e)):oo(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)&&pl(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){J(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 qu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new sy),t.forEach(function(r){var i=my.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Qe(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(N(160));uh(s,o,i),fe=null,Ye=!1;var a=i.alternate;a!==null&&(a.return=null),i.return=null}catch(u){J(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(Qe(t,e),tt(e),r&4){try{kr(3,e,e.return),Ns(3,e)}catch(x){J(e,e.return,x)}try{kr(5,e,e.return)}catch(x){J(e,e.return,x)}}break;case 1:Qe(t,e),tt(e),r&512&&n!==null&&Rn(n,n.return);break;case 5:if(Qe(t,e),tt(e),r&512&&n!==null&&Rn(n,n.return),e.flags&32){var i=e.stateNode;try{Lr(i,"")}catch(x){J(e,e.return,x)}}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),Uo(l,o);var u=Uo(l,s);for(o=0;o<a.length;o+=2){var c=a[o],f=a[o+1];c==="style"?Ff(i,f):c==="dangerouslySetInnerHTML"?_f(i,f):c==="children"?Lr(i,f):$l(i,c,f,u)}switch(l){case"input":Oo(i,s);break;case"textarea":Df(i,s);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var g=s.value;g!=null?Fn(i,!!s.multiple,g,!1):p!==!!s.multiple&&(s.defaultValue!=null?Fn(i,!!s.multiple,s.defaultValue,!0):Fn(i,!!s.multiple,s.multiple?[]:"",!1))}i[zr]=s}catch(x){J(e,e.return,x)}}break;case 6:if(Qe(t,e),tt(e),r&4){if(e.stateNode===null)throw Error(N(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(x){J(e,e.return,x)}}break;case 3:if(Qe(t,e),tt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ar(t.containerInfo)}catch(x){J(e,e.return,x)}break;case 4:Qe(t,e),tt(e);break;case 13:Qe(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||(Sa=ee())),r&4&&qu(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(ye=(u=ye)||c,Qe(t,e),ye=u):Qe(t,e),tt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(M=e,c=e.child;c!==null;){for(f=M=c;M!==null;){switch(p=M,g=p.child,p.tag){case 0:case 11:case 14:case 15:kr(4,p,p.return);break;case 1:Rn(p,p.return);var y=p.stateNode;if(typeof y.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(x){J(r,n,x)}}break;case 5:Rn(p,p.return);break;case 22:if(p.memoizedState!==null){ec(f);continue}}g!==null?(g.return=p,M=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(x){J(e,e.return,x)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(x){J(e,e.return,x)}}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:Qe(t,e),tt(e),r&4&&qu(e);break;case 21:break;default:Qe(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(N(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Lr(i,""),r.flags&=-33);var s=Zu(e);yl(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,l=Zu(e);gl(e,l,o);break;default:throw Error(N(161))}}catch(a){J(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ly(e,t,n){M=e,fh(e)}function fh(e,t,n){for(var r=(e.mode&1)!==0;M!==null;){var i=M,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(M=i;M!==null;)o=M,a=o.child,o.tag===22&&o.memoizedState!==null?tc(i):a!==null?(a.return=o,M=a):tc(i);for(;s!==null;)M=s,fh(s),s=s.sibling;M=i,xi=l,ye=u}Ju(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,M=s):Ju(e)}}function Ju(e){for(;M!==null;){var t=M;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:Ge(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Fu(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}Fu(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(N(163))}ye||t.flags&512&&ml(t)}catch(p){J(t,t.return,p)}}if(t===e){M=null;break}if(n=t.sibling,n!==null){n.return=t.return,M=n;break}M=t.return}}function ec(e){for(;M!==null;){var t=M;if(t===e){M=null;break}var n=t.sibling;if(n!==null){n.return=t.return,M=n;break}M=t.return}}function tc(e){for(;M!==null;){var t=M;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ns(4,t)}catch(a){J(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(a){J(t,i,a)}}var s=t.return;try{ml(t)}catch(a){J(t,s,a)}break;case 5:var o=t.return;try{ml(t)}catch(a){J(t,o,a)}}}catch(a){J(t,t.return,a)}if(t===e){M=null;break}var l=t.sibling;if(l!==null){l.return=t.return,M=l;break}M=t.return}}var ay=Math.ceil,ss=wt.ReactCurrentDispatcher,xa=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,wa=0,Cr=null,Te=null,Sa=0,Yn=1/0,lt=null,os=!1,vl=null,_t=null,wi=!1,Mt=null,ls=0,Pr=0,xl=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:Kg.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 qe(e,t,n,r){if(50<Pr)throw Pr=0,xl=null,Error(N(185));Xr(e,n,r),(!(B&2)||e!==ue)&&(e===ue&&(!(B&2)&&(js|=n),le===4&&Nt(e,de)),Me(e,r),n===1&&B===0&&!(t.mode&1)&&(Yn=ee()+500,Ps&&Kt()))}function Me(e,t){var n=e.callbackNode;Km(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?Hg(nc.bind(null,e)):Sd(nc.bind(null,e)),Bg(function(){!(B&6)&&Kt()}),n=null;else{switch(Xf(r)){case 1:n=Ql;break;case 4:n=Qf;break;case 16:n=Wi;break;case 536870912:n=Gf;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(N(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{fy();break}catch(l){hh(e,l)}while(!0);oa(),ss.current=s,B=i,se!==null?t=0:(ue=null,de=0,t=le)}if(t!==0){if(t===2&&(i=bo(e),i!==0&&(r=i,t=wl(e,i))),t===1)throw n=Kr,ln(e,0),Nt(e,r),Me(e,ee()),n;if(t===6)Nt(e,r);else{if(i=e.current.alternate,!(r&30)&&!uy(i)&&(t=as(e,r),t===2&&(s=bo(e),s!==0&&(r=s,t=wl(e,s))),t===1))throw n=Kr,ln(e,0),Nt(e,r),Me(e,ee()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(N(345));case 2:qt(e,Te,lt);break;case 3:if(Nt(e,r),(r&130023424)===r&&(t=Sa+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=el(qt.bind(null,e,Te,lt),t);break}qt(e,Te,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*ay(r/1960))-r,10<r){e.timeoutHandle=el(qt.bind(null,e,Te,lt),r);break}qt(e,Te,lt);break;case 5:qt(e,Te,lt);break;default:throw Error(N(329))}}}return Me(e,ee()),e.callbackNode===n?dh.bind(null,e):null}function wl(e,t){var n=Cr;return e.current.memoizedState.isDehydrated&&(ln(e,t).flags|=256),e=as(e,t),e!==2&&(t=Te,Te=n,t!==null&&Sl(t)),e}function Sl(e){Te===null?Te=e:Te.push.apply(Te,e)}function uy(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(!Je(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&=~wa,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(N(327));$n();var t=Hi(e,0);if(!(t&1))return Me(e,ee()),null;var n=as(e,t);if(e.tag!==0&&n===2){var r=bo(e);r!==0&&(t=r,n=wl(e,r))}if(n===1)throw n=Kr,ln(e,0),Nt(e,t),Me(e,ee()),n;if(n===6)throw Error(N(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,qt(e,Te,lt),Me(e,ee()),null}function ka(e,t){var n=B;B|=1;try{return e(t)}finally{B=n,B===0&&(Yn=ee()+500,Ps&&Kt())}}function pn(e){Mt!==null&&Mt.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 Ca(){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,zg(n)),se!==null)for(n=se.return;n!==null;){var r=n;switch(ra(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Yi();break;case 3:Qn(),K(Ne),K(ve),da();break;case 5:fa(r);break;case 4:Qn();break;case 13:K(Y);break;case 19:K(Y);break;case 10:la(r.type._context);break;case 22:case 23:Ca()}n=n.return}if(ue=e,se=e=Ft(e.current,null),de=Ve=t,le=0,Kr=null,wa=js=hn=0,Te=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(oa(),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,xa.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 p=c.alternate;p?(c.updateQueue=p.updateQueue,c.memoizedState=p.memoizedState,c.lanes=p.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 y=t.updateQueue;if(y===null){var x=new Set;x.add(a),t.updateQueue=x}else y.add(a);break e}else{if(!(t&1)){$u(s,u,t),Pa();break e}a=Error(N(426))}}else if(Q&&l.mode&1){var T=Wu(o);if(T!==null){!(T.flags&65536)&&(T.flags|=256),Hu(T,o,l,s,t),ia(Gn(a,l));break e}}s=a=Gn(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 h=Xd(s,a,t);Ou(s,h);break e;case 1:l=a;var d=s.type,m=s.stateNode;if(!(s.flags&128)&&(typeof d.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(_t===null||!_t.has(m)))){s.flags|=65536,t&=-t,s.lanes|=t;var w=Zd(s,l,t);Ou(s,w);break e}}s=s.return}while(s!==null)}gh(n)}catch(S){t=S,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 Pa(){(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{cy();break}catch(i){hh(e,i)}while(!0);if(oa(),B=n,ss.current=r,se!==null)throw Error(N(261));return ue=null,de=0,le}function cy(){for(;se!==null;)mh(se)}function fy(){for(;se!==null&&!Om();)mh(se)}function mh(e){var t=vh(e.alternate,e,Ve);e.memoizedProps=e.pendingProps,t===null?gh(e):se=t,xa.current=null}function gh(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=iy(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=ry(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 qt(e,t,n){var r=U,i=He.transition;try{He.transition=null,U=1,dy(e,t,n,r)}finally{He.transition=i,U=r}return null}function dy(e,t,n,r){do $n();while(Mt!==null);if(B&6)throw Error(N(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(N(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(bm(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,xa.current=null,oy(e,n),ch(n,e),Vg(qo),Ki=!!Zo,qo=Zo=null,e.current=n,ly(n),Fm(),B=l,U=o,He.transition=s}else e.current=n;if(wi&&(wi=!1,Mt=e,ls=i),s=e.pendingLanes,s===0&&(_t=null),Bm(n.stateNode),Me(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=vl,vl=null,e;return ls&1&&e.tag!==0&&$n(),s=e.pendingLanes,s&1?e===xl?Pr++:(Pr=0,xl=e):Pr=0,Kt(),null}function $n(){if(Mt!==null){var e=Xf(ls),t=He.transition,n=U;try{if(He.transition=null,U=16>e?16:e,Mt===null)var r=!1;else{if(e=Mt,Mt=null,ls=0,B&6)throw Error(N(331));var i=B;for(B|=4,M=e.current;M!==null;){var s=M,o=s.child;if(M.flags&16){var l=s.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(M=u;M!==null;){var c=M;switch(c.tag){case 0:case 11:case 15:kr(8,c,s)}var f=c.child;if(f!==null)f.return=c,M=f;else for(;M!==null;){c=M;var p=c.sibling,g=c.return;if(lh(c),c===u){M=null;break}if(p!==null){p.return=g,M=p;break}M=g}}}var y=s.alternate;if(y!==null){var x=y.child;if(x!==null){y.child=null;do{var T=x.sibling;x.sibling=null,x=T}while(x!==null)}}M=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,M=o;else e:for(;M!==null;){if(s=M,s.flags&2048)switch(s.tag){case 0:case 11:case 15:kr(9,s,s.return)}var h=s.sibling;if(h!==null){h.return=s.return,M=h;break e}M=s.return}}var d=e.current;for(M=d;M!==null;){o=M;var m=o.child;if(o.subtreeFlags&2064&&m!==null)m.return=o,M=m;else e:for(o=d;M!==null;){if(l=M,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Ns(9,l)}}catch(S){J(l,l.return,S)}if(l===o){M=null;break e}var w=l.sibling;if(w!==null){w.return=l.return,M=w;break e}M=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=Gn(n,t),t=Xd(e,t,1),e=At(e,t,1),t=Se(),e!==null&&(Xr(e,1,t),Me(e,t))}function J(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=Gn(n,e),e=Zd(t,e,1),t=At(t,e,1),e=Se(),t!==null&&(Xr(t,1,e),Me(t,e));break}}t=t.return}}function hy(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()-Sa?ln(e,0):wa|=n),Me(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),Me(e,n))}function py(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),yh(e,n)}function my(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(N(314))}r!==null&&r.delete(t),yh(e,n)}var vh;vh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ne.current)Ee=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ee=!1,ny(e,t,n);Ee=!!(e.flags&131072)}else Ee=!1,Q&&t.flags&1048576&&kd(t,qi,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=pa(null,t,r,e,i,n);var s=ma();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,je(r)?(s=!0,Xi(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ua(t),i.updater=Es,t.stateNode=i,i._reactInternals=t,ll(t,r,e,n),t=cl(null,t,r,!0,s,n)):(t.tag=0,Q&&s&&na(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=yy(r),e=Ge(r,e),i){case 0:t=ul(null,t,r,e,n);break e;case 1:t=Qu(null,t,r,e,n);break e;case 11:t=Ku(null,t,r,e,n);break e;case 14:t=bu(null,t,r,Ge(r.type,e),n);break e}throw Error(N(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ge(r,i),ul(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ge(r,i),Qu(e,t,r,i,n);case 3:e:{if(th(t),e===null)throw Error(N(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=Gn(Error(N(423)),t),t=Gu(e,t,r,n,i);break e}else if(r!==i){i=Gn(Error(N(424)),t),t=Gu(e,t,r,n,i);break e}else for(De=Dt(t.stateNode.containerInfo.firstChild),Ae=t,Q=!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 Md(t),e===null&&il(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&&il(t),null;case 13:return nh(e,t,n);case 4:return ca(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=bn(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:Ge(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,$(Ji,r._currentValue),r._currentValue=o,s!==null)if(Je(s.value,o)){if(s.children===i.children&&!Ne.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),sl(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(N(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),sl(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=Ge(r,t.pendingProps),i=Ge(r.type,i),bu(e,t,r,i,n);case 15:return qd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ge(r,i),Ai(e,t),t.tag=1,je(r)?(e=!0,Xi(t)):e=!1,Un(t,n),Yd(t,r,i),ll(t,r,i,n),cl(null,t,r,!0,e,n);case 19:return rh(e,t,n);case 22:return Jd(e,t,n)}throw Error(N(156,t.tag))};function xh(e,t){return bf(e,t)}function gy(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 gy(e,t,n,r)}function Ta(e){return e=e.prototype,!(!e||!e.isReactComponent)}function yy(e){if(typeof e=="function")return Ta(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Hl)return 11;if(e===Kl)return 14}return 2}function Ft(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 Fi(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")Ta(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case kn:return an(n.children,i,s,t);case Wl:o=8,i|=8;break;case Ro:return e=We(12,n,t,i|2),e.elementType=Ro,e.lanes=s,e;case Vo:return e=We(13,n,t,i),e.elementType=Vo,e.lanes=s,e;case Do:return e=We(19,n,t,i),e.elementType=Do,e.lanes=s,e;case Mf:return Ms(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 Hl:o=11;break e;case Kl:o=14;break e;case Ct:o=16,r=null;break e}throw Error(N(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 Ms(e,t,n,r){return e=We(22,e,r,t),e.elementType=Mf,e.lanes=n,e.stateNode={isHidden:!1},e}function mo(e,t,n){return e=We(6,e,null,t),e.lanes=n,e}function go(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 vy(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=Ys(0),this.expirationTimes=Ys(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ys(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ea(e,t,n,r,i,s,o,l,a){return e=new vy(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},ua(s),e}function xy(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(N(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(je(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(N(171))}if(e.tag===1){var n=e.type;if(je(n))return wd(e,n,t)}return t}function Sh(e,t,n,r,i,s,o,l,a){return e=Ea(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),Me(e,r),e}function Ls(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&&(qe(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 Na(e,t){ic(e,t),(e=e.alternate)&&ic(e,t)}function wy(){return null}var kh=typeof reportError=="function"?reportError:function(e){console.error(e)};function ja(e){this._internalRoot=e}Rs.prototype.render=ja.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(N(409));Ls(e,t,null,null)};Rs.prototype.unmount=ja.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;pn(function(){Ls(null,e,null,null)}),t[gt]=null}};function Rs(e){this._internalRoot=e}Rs.prototype.unstable_scheduleHydration=function(e){if(e){var t=Jf();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 Ma(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 Sy(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,Fr(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=Ea(e,0,!1,null,null,!1,!1,"",sc);return e._reactRootContainer=a,e[gt]=a.current,Fr(e.nodeType===8?e.parentNode:e),pn(function(){Ls(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)}}Ls(t,o,e,i)}else o=Sy(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),Me(t,ee()),!(B&6)&&(Yn=ee()+500,Kt()))}break;case 13:pn(function(){var r=yt(e,1);if(r!==null){var i=Se();qe(r,e,1,i)}}),Na(e,1)}};Yl=function(e){if(e.tag===13){var t=yt(e,134217728);if(t!==null){var n=Se();qe(t,e,134217728,n)}Na(e,134217728)}};qf=function(e){if(e.tag===13){var t=Ot(e),n=yt(e,t);if(n!==null){var r=Se();qe(n,e,t,r)}Na(e,t)}};Jf=function(){return U};ed=function(e,t){var n=U;try{return U=e,t()}finally{U=n}};Wo=function(e,t,n){switch(t){case"input":if(Oo(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(N(90));Rf(r),Oo(r,i)}}}break;case"textarea":Df(e,n);break;case"select":t=n.value,t!=null&&Fn(e,!!n.multiple,t,!1)}};Bf=ka;Uf=pn;var ky={usingClientEntryPoint:!1,Events:[qr,En,Cs,If,zf,ka]},ar={findFiberByHostInstance:nn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Cy={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||wy,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(Cy),it=Si}catch{}}Fe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ky;Fe.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ma(t))throw Error(N(200));return xy(e,t,null,n)};Fe.createRoot=function(e,t){if(!Ma(e))throw Error(N(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=Ea(e,1,!1,null,null,n,!1,r,i),e[gt]=t.current,Fr(e.nodeType===8?e.parentNode:e),new ja(t)};Fe.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(N(188)):(e=Object.keys(e).join(","),Error(N(268,e)));return e=Hf(t),e=e===null?null:e.stateNode,e};Fe.flushSync=function(e){return pn(e)};Fe.hydrate=function(e,t,n){if(!Vs(t))throw Error(N(200));return Ds(null,e,t,!0,n)};Fe.hydrateRoot=function(e,t,n){if(!Ma(e))throw Error(N(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,Fr(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)};Fe.render=function(e,t,n){if(!Vs(t))throw Error(N(200));return Ds(null,e,t,!1,n)};Fe.unmountComponentAtNode=function(e){if(!Vs(e))throw Error(N(40));return e._reactRootContainer?(pn(function(){Ds(null,null,e,!1,function(){e._reactRootContainer=null,e[gt]=null})}),!0):!1};Fe.unstable_batchedUpdates=ka;Fe.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Vs(n))throw Error(N(200));if(e==null||e._reactInternals===void 0)throw Error(N(38));return Ds(e,t,n,!1,r)};Fe.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=Fe;var Py=Cf.exports,Ph,oc=Py;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}),Ra=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Ty="framerAppearId",Nh="data-"+Ra(Ty);function Ey(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 Ny(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 br(e){return typeof e=="string"||Array.isArray(e)}function Fs(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Va=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Da=["initial",...Va];function Is(e){return Fs(e.animate)||Da.some(t=>br(e[t]))}function jh(e){return!!(Is(e)||e.variants)}function jy(e,t){if(Is(e)){const{initial:n,animate:r}=e;return{initial:n===!1||br(n)?n:void 0,animate:br(r)?r:void 0}}return e.inherit!==!1?t:{}}function My(e){const{initial:t,animate:n}=jy(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"]},Qr={};for(const e in ac)Qr[e]={isEnabled:t=>ac[e].some(n=>!!t[n])};function Ly(e){for(const t in e)Qr[t]={...Qr[t],...e[t]}}const Aa=C.createContext({}),Mh=C.createContext({}),Ry=Symbol.for("motionComponentSymbol");function Vy({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:Dy(l)},{isStatic:f}=c,p=My(l),g=r(l,f);if(!f&&Os){p.visualElement=Ey(i,g,c,t);const y=C.useContext(Mh),x=C.useContext(Eh).strict;p.visualElement&&(u=p.visualElement.loadFeatures(c,x,e,y))}return C.createElement(As.Provider,{value:p},u&&p.visualElement?C.createElement(u,{visualElement:p.visualElement,...c}):null,n(i,l,Ny(g,p.visualElement,a),g,f,p.visualElement))}const o=C.forwardRef(s);return o[Ry]=i,o}function Dy({layoutId:e}){const t=C.useContext(Aa).id;return t&&e!==void 0?t+"-"+e:e}function Ay(e){function t(r,i={}){return Vy(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 _y=["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 _a(e){return typeof e!="string"||e.includes("-")?!1:!!(_y.indexOf(e)>-1||/[A-Z]/.test(e))}const cs={};function Oy(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 Lh(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),Fy={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Iy=ei.length;function zy(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=Fy[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("--"),kl=Rh("var(--"),By=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,Uy=(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,$y=/^(#[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"),Wy=ni("vh"),Hy=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 Oa(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 p=t[f];if(Vh(f)){s[f]=p;continue}const g=Ah[f],y=Uy(p,g);if(yn.has(f)){if(a=!0,o[f]=y,!c)continue;p!==(g.default||0)&&(c=!1)}else f.startsWith("origin")?(u=!0,l[f]=y):i[f]=y}if(t.transform||(a||r?i.transform=zy(e.transform,n,c,r):i.transform&&(i.transform="none")),u){const{originX:f="50%",originY:p="50%",originZ:g=0}=l;i.transformOrigin=`${f} ${p} ${g}`}}const Fa=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function _h(e,t,n){for(const r in t)!Le(t[r])&&!Lh(r,n)&&(e[r]=t[r])}function Ky({transformTemplate:e},t,n){return C.useMemo(()=>{const r=Fa();return Oa(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function by(e,t,n){const r=e.style||{},i={};return _h(i,r,e),Object.assign(i,Ky(e,t,n)),e.transformValues?e.transformValues(i):i}function Qy(e,t,n){const r={},i=by(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 Yy(e){e&&(Oh=t=>t.startsWith("on")?!fs(t):e(t))}try{Yy(require("@emotion/is-prop-valid").default)}catch{}function Xy(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 Zy(e,t,n){const r=fc(t,e.x,e.width),i=fc(n,e.y,e.height);return`${r} ${i}`}const qy={offset:"stroke-dashoffset",array:"stroke-dasharray"},Jy={offset:"strokeDashoffset",array:"strokeDasharray"};function ev(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?qy: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,p){if(Oa(e,u,c,p),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:y,dimensions:x}=e;g.transform&&(x&&(y.transform=g.transform),delete g.transform),x&&(i!==void 0||s!==void 0||y.transform)&&(y.transformOrigin=Zy(x,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&&ev(g,o,l,a,!1)}const Fh=()=>({...Fa(),attrs:{}}),za=e=>typeof e=="string"&&e.toLowerCase()==="svg";function tv(e,t,n,r){const i=C.useMemo(()=>{const s=Fh();return Ia(s,t,{enableHardwareAcceleration:!1},za(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 nv(e=!1){return(n,r,i,{latestValues:s},o)=>{const a=(_a(n)?tv:Qy)(r,s,o,n),c={...Xy(r,typeof n=="string",e),...a,ref:i},{children:f}=r,p=C.useMemo(()=>Le(f)?f.get():f,[f]);return C.createElement(n,{...c,children:p})}}function Ih(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){Ih(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(zh.has(i)?i:Ra(i),t.attrs[i])}function Ba(e,t){const{style:n}=e,r={};for(const i in n)(Le(n[i])||t.style&&Le(t.style[i])||Lh(i,e))&&(r[i]=n[i]);return r}function Uh(e,t){const n=Ba(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 Ua(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),rv=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),iv=e=>ds(e)?e[e.length-1]||0:e;function Ii(e){const t=Le(e)?e.get():e;return rv(t)?t.toValue():t}function sv({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,s){const o={latestValues:ov(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=()=>sv(e,t,r,i);return n?s():$h(s)};function ov(e,t,n,r){const i={},s=r(e,{});for(const p in s)i[p]=Ii(s[p]);let{initial:o,animate:l}=e;const a=Is(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"&&!Fs(f)&&(Array.isArray(f)?f:[f]).forEach(g=>{const y=Ua(e,g);if(!y)return;const{transitionEnd:x,transition:T,...h}=y;for(const d in h){let m=h[d];if(Array.isArray(m)){const w=c?m.length-1:0;m=m[w]}m!==null&&(i[d]=m)}for(const d in x)i[d]=x[d]}),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 lv(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,p=f?t:n;return u&&o.add(a),p.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"],av=40;function uv(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=Ci.reduce((f,p)=>(f[p]=lv(()=>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,av),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,p)=>{const g=s[p];return f[p]=(y,x=!1,T=!1)=>(n||a(),g.schedule(y,x,T)),f},{}),cancel:f=>Ci.forEach(p=>s[p].cancel(f)),state:i,steps:s}}const{schedule:W,cancel:xt,state:ge,steps:yo}=uv(typeof requestAnimationFrame<"u"?requestAnimationFrame:te,!0),cv={useVisualState:Wh({scrapeMotionValuesFromProps:Uh,createRenderState:Fh,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},za(t.tagName),e.transformTemplate),Bh(t,n)})}})},fv={useVisualState:Wh({scrapeMotionValuesFromProps:Ba,createRenderState:Fa})};function dv(e,{forwardMotionProps:t=!1},n,r){return{..._a(e)?cv:fv,preloadedFeatures:n,useRender:nv(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 hv=e=>t=>Hh(t)&&e(t,Bs(t));function ht(e,t,n,r){return ft(e,t,hv(n),r)}const pv=(e,t)=>n=>t(e(n)),It=(...e)=>e.reduce(pv);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 bh(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 Qh(){const e=bh(!0);return e?(e(),!1):!0}class bt{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"||Qh())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 mv extends bt{mount(){this.unmount=It(mc(this.node,!0),mc(this.node,!1))}unmount(){}}class gv extends bt{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=It(ft(this.node.current,"focus",()=>this.onFocus()),ft(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Gh=(e,t)=>t?e===t?!0:Gh(e,t.parentElement):!1;function vo(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Bs(n))}class yv extends bt{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&&!Gh(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=It(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()||vo("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),vo("down",(l,a)=>{this.startPress(l,a)})},n=ft(this.node.current,"keydown",t),r=()=>{this.isPressing&&vo("cancel",(s,o)=>this.cancelPress(s,o))},i=ft(this.node.current,"blur",r);this.removeAccessibleListeners=It(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),!Qh()}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=It(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Cl=new WeakMap,xo=new WeakMap,vv=e=>{const t=Cl.get(e.target);t&&t(e)},xv=e=>{e.forEach(vv)};function wv({root:e,...t}){const n=e||document;xo.has(n)||xo.set(n,{});const r=xo.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(xv,{root:e,...t})),r[i]}function Sv(e,t,n){const r=wv(t);return Cl.set(e,n),r.observe(e),()=>{Cl.delete(e),r.unobserve(e)}}const kv={some:0,all:1};class Cv extends bt{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:kv[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(),p=u?c:f;p&&p(a)};return Sv(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(Pv(t,n))&&this.startObserver()}unmount(){}}function Pv({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Tv={inView:{Feature:Cv},tap:{Feature:yv},focus:{Feature:gv},hover:{Feature:mv}};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 Ev(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function Nv(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Us(e,t,n){const r=e.getProps();return Ua(r,t,n!==void 0?n:r.custom,Ev(e),Nv(e))}let $a=te;const un=e=>e*1e3,pt=e=>e/1e3,jv={current:!1},Xh=e=>Array.isArray(e)&&typeof e[0]=="number";function Zh(e){return!!(!e||typeof e=="string"&&qh[e]||Xh(e)||Array.isArray(e)&&e.every(Zh))}const mr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,qh={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 Jh(e){if(e)return Xh(e)?mr(e):Array.isArray(e)?e.map(Jh):qh[e]}function Mv(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=Jh(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,Rv=1e-7,Vv=12;function Dv(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)>Rv&&++l<Vv);return o}function ri(e,t,n,r){if(e===t&&n===r)return te;const i=s=>Dv(s,0,1,e,n);return s=>s===0||s===1?s:ep(i(s),t,r)}const Av=ri(.42,0,1,1),_v=ri(0,0,.58,1),tp=ri(.42,0,.58,1),Ov=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),Wa=e=>1-Math.sin(Math.acos(e)),ip=rp(Wa),Fv=np(Wa),sp=ri(.33,1.53,.69,.99),Ha=rp(sp),Iv=np(Ha),zv=e=>(e*=2)<1?.5*Ha(e):.5*(2-Math.pow(2,-10*(e-1))),Bv={linear:te,easeIn:Av,easeInOut:tp,easeOut:_v,circIn:Wa,circInOut:Fv,circOut:ip,backIn:Ha,backInOut:Iv,backOut:sp,anticipate:zv},gc=e=>{if(Array.isArray(e)){$a(e.length===4);const[t,n,r,i]=e;return ri(t,n,r,i)}else if(typeof e=="string")return Bv[e];return e},Ka=(e,t)=>n=>!!(ti(n)&&$y.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}},Uv=e=>Ut(0,255,e),wo={...vn,transform:e=>Math.round(Uv(e))},on={test:Ka("rgb","red"),parse:op("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+wo.transform(e)+", "+wo.transform(t)+", "+wo.transform(n)+", "+Er(Tr.transform(r))+")"};function $v(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 Pl={test:Ka("#"),parse:$v,transform:on.transform},An={test:Ka("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)||Pl.test(e)||An.test(e),parse:e=>on.test(e)?on.parse(e):An.test(e)?An.parse(e):Pl.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 So(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 Wv({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=So(a,l,e+1/3),s=So(a,l,e),o=So(a,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}const ko=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},Hv=[Pl,on,An],Kv=e=>Hv.find(t=>t.test(e));function yc(e){const t=Kv(e);let n=t.parse(e);return t===An&&(n=Wv(n)),n}const lp=(e,t)=>{const n=yc(e),r=yc(t),i={...n};return s=>(i.red=ko(n.red,r.red,s),i.green=ko(n.green,r.green,s),i.blue=ko(n.blue,r.blue,s),i.alpha=X(n.alpha,r.alpha,s),on.transform(i))};function bv(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:By,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 Co(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(--")&&Co(n,ap),Co(n,up),Co(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:bv,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}},Yv=(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?It(mp(r.values,i.values),n):hp(e,t)},Gr=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},vc=(e,t)=>n=>X(e,t,n);function Xv(e){return typeof e=="number"?vc:typeof e=="string"?xe.test(e)?lp:gp:Array.isArray(e)?mp:typeof e=="object"?Yv:vc}function Zv(e,t,n){const r=[],i=n||Xv(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=It(a,l)}r.push(l)}return r}function yp(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if($a(s===t.length),s===1)return()=>t[0];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=Zv(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=Gr(e[c],e[c+1],u);return o[c](f)};return n?u=>a(Ut(e[0],e[s-1],u)):a}function qv(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Gr(0,t,r);e.push(X(n,1,i))}}function Jv(e){const t=[0];return qv(t,e.length-1),t}function e0(e,t){return e.map(n=>n*t)}function t0(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=Ov(r)?r.map(gc):gc(r),s={done:!1,value:t[0]},o=e0(n&&n.length===t.length?n:Jv(t),e),l=yp(o,t,{ease:Array.isArray(i)?i:t0(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 n0=5;function xp(e,t,n){const r=Math.max(t-n0,0);return vp(n-e(r),t-r)}const Po=.001,r0=.01,i0=10,s0=.05,o0=1;function l0({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,s,o=1-t;o=Ut(s0,o0,o),e=Ut(r0,i0,pt(e)),o<1?(i=u=>{const c=u*o,f=c*e,p=c-n,g=Tl(u,o),y=Math.exp(-f);return Po-p/g*y},s=u=>{const f=u*o*e,p=f*n+n,g=Math.pow(o,2)*Math.pow(u,2)*e,y=Math.exp(-f),x=Tl(Math.pow(u,2),o);return(-i(u)+Po>0?-1:1)*((p-g)*y)/x}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-Po+c*f},s=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const l=5/e,a=u0(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 a0=12;function u0(e,t,n){let r=n;for(let i=1;i<a0;i++)r=r-e(r)/t(r);return r}function Tl(e,t){return e*Math.sqrt(1-t*t)}const c0=["duration","bounce"],f0=["stiffness","damping","mass"];function xc(e,t){return t.some(n=>e[n]!==void 0)}function d0(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!xc(e,f0)&&xc(e,c0)){const n=l0(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:p}=d0({...r,velocity:-pt(r.velocity||0)}),g=f||0,y=a/(2*Math.sqrt(l*u)),x=s-i,T=pt(Math.sqrt(l/u)),h=Math.abs(x)<5;n||(n=h?.01:2),t||(t=h?.005:.5);let d;if(y<1){const m=Tl(T,y);d=w=>{const S=Math.exp(-y*T*w);return s-S*((g+y*T*x)/m*Math.sin(m*w)+x*Math.cos(m*w))}}else if(y===1)d=m=>s-Math.exp(-T*m)*(x+(g+T*x)*m);else{const m=T*Math.sqrt(y*y-1);d=w=>{const S=Math.exp(-y*T*w),k=Math.min(m*w,300);return s-S*((g+y*T*x)*Math.sinh(k)+m*x*Math.cosh(k))/m}}return{calculatedDuration:p&&c||null,next:m=>{const w=d(m);if(p)o.done=m>=c;else{let S=g;m!==0&&(y<1?S=xp(d,m,w):S=0);const k=Math.abs(S)<=n,P=Math.abs(s-w)<=t;o.done=k&&P}return o.value=o.done?s:w,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],p={done:!1,value:f},g=E=>l!==void 0&&E<l||a!==void 0&&E>a,y=E=>l===void 0?a:a===void 0||Math.abs(l-E)<Math.abs(a-E)?l:a;let x=n*t;const T=f+x,h=o===void 0?T:o(T);h!==T&&(x=h-f);const d=E=>-x*Math.exp(-E/r),m=E=>h+d(E),w=E=>{const R=d(E),D=m(E);p.done=Math.abs(R)<=u,p.value=p.done?h:D};let S,k;const P=E=>{g(p.value)&&(S=E,k=wp({keyframes:[p.value,y(p.value)],velocity:xp(m,E,p.value),damping:i,stiffness:s,restDelta:u,restSpeed:c}))};return P(0),{calculatedDuration:null,next:E=>{let R=!1;return!k&&S===void 0&&(R=!0,w(E),P(E)),S!==void 0&&E>S?k.next(E-S):(!R&&w(E),p)}}}const h0=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 p0={decay:wc,inertia:wc,tween:ps,keyframes:ps,spring:wp};function ms({autoplay:e=!0,delay:t=0,driver:n=h0,keyframes:r,type:i="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:l="loop",onPlay:a,onStop:u,onComplete:c,onUpdate:f,...p}){let g=1,y=!1,x,T;const h=()=>{T=new Promise(_=>{x=_})};h();let d;const m=p0[i]||ps;let w;m!==ps&&typeof r[0]!="number"&&(w=yp([0,100],r,{clamp:!1}),r=[0,100]);const S=m({...p,keyframes:r});let k;l==="mirror"&&(k=m({...p,keyframes:[...r].reverse(),velocity:-(p.velocity||0)}));let P="idle",E=null,R=null,D=null;S.calculatedDuration===null&&s&&(S.calculatedDuration=kc(S));const{calculatedDuration:ne}=S;let G=1/0,ce=1/0;ne!==null&&(G=ne+o,ce=G*(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)),E!==null?re=E:re=Math.round(_-R)*g;const b=re-t*(g>=0?1:-1),Qt=g>=0?b<0:b>ce;re=Math.max(b,0),P==="finished"&&E===null&&(re=ce);let et=re,xn=S;if(s){const Ws=Math.min(re,ce)/G;let ii=Math.floor(Ws),Yt=Ws%1;!Yt&&Ws>=1&&(Yt=1),Yt===1&&ii--,ii=Math.min(ii,s+1),!!(ii%2)&&(l==="reverse"?(Yt=1-Yt,o&&(Yt-=o/G)):l==="mirror"&&(xn=k)),et=Ut(0,1,Yt)*G}const Re=Qt?{done:!1,value:r[0]}:xn.next(et);w&&(Re.value=w(Re.value));let{done:Gt}=Re;!Qt&&ne!==null&&(Gt=g>=0?re>=ce:re<=0);const Zp=E===null&&(P==="finished"||P==="running"&&Gt);return f&&f(Re.value),Zp&&j(),Re},V=()=>{d&&d.stop(),d=void 0},I=()=>{P="idle",V(),x(),h(),R=D=null},j=()=>{P="finished",c&&c(),V(),x()},L=()=>{if(y)return;d||(d=n(z));const _=d.now();a&&a(),E!==null?R=_-E:(!R||P==="finished")&&(R=_),P==="finished"&&h(),D=R,E=null,P="running",d.start()};e&&L();const O={then(_,b){return T.then(_,b)},get time(){return pt(re)},set time(_){_=un(_),re=_,E!==null||!d||g===0?E=_:R=d.now()-_/g},get duration(){const _=S.calculatedDuration===null?kc(S):S.calculatedDuration;return pt(_)},get speed(){return g},set speed(_){_===g||!d||(g=_,O.time=pt(re))},get state(){return P},play:L,pause:()=>{P="paused",E=re},stop:()=>{y=!0,P!=="idle"&&(P="idle",u&&u(),I())},cancel:()=>{D!==null&&z(D),I()},complete:()=>{P="finished"},sample:_=>(R=0,z(_))};return O}function m0(e){let t;return()=>(t===void 0&&(t=e()),t)}const g0=m0(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),y0=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Pi=10,v0=2e4,x0=(e,t)=>t.type==="spring"||e==="backgroundColor"||!Zh(t.ease);function w0(e,t,{onUpdate:n,onComplete:r,...i}){if(!(g0()&&y0.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(m=>{l=m})};c();let{keyframes:f,duration:p=300,ease:g,times:y}=i;if(x0(t,i)){const m=ms({...i,repeat:0,delay:0});let w={done:!1,value:f[0]};const S=[];let k=0;for(;!w.done&&k<v0;)w=m.sample(k),S.push(w.value),k+=Pi;y=void 0,f=S,p=k-Pi,g="linear"}const x=Mv(e.owner.current,t,f,{...i,duration:p,ease:g,times:y}),T=()=>{u=!1,x.cancel()},h=()=>{u=!0,W.update(T),l(),c()};return x.onfinish=()=>{u||(e.set(Lv(f,i)),r&&r(),h())},{then(m,w){return a.then(m,w)},attachTimeline(m){return x.timeline=m,x.onfinish=null,te},get time(){return pt(x.currentTime||0)},set time(m){x.currentTime=un(m)},get speed(){return x.playbackRate},set speed(m){x.playbackRate=m},get duration(){return pt(p)},play:()=>{o||(x.play(),xt(T))},pause:()=>x.pause(),stop:()=>{if(o=!0,x.playState==="idle")return;const{currentTime:m}=x;if(m){const w=ms({...i,autoplay:!1});e.setWithVelocity(w.sample(m-Pi).value,w.sample(m).value,Pi)}h()},complete:()=>{u||x.finish()},cancel:h}}function S0({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 k0={type:"spring",stiffness:500,damping:25,restSpeed:10},C0=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),P0={type:"keyframes",duration:.8},T0={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},E0=(e,{keyframes:t})=>t.length>2?P0:yn.has(e)?e.startsWith("scale")?C0(t[1]):k0:T0,El=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&($t.test(t)||t==="0")&&!t.startsWith("url(")),N0=new Set(["brightness","contrast","saturate","opacity"]);function j0(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=N0.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const M0=/([a-z-]*)\(.*?\)/g,Nl={...$t,getAnimatableNone:e=>{const t=e.match(M0);return t?t.map(j0).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:Nl,WebkitFilter:Nl},ba=e=>L0[e];function Sp(e,t){let n=ba(e);return n!==Nl&&(n=$t),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const kp=e=>/^0[^.\s]+$/.test(e);function R0(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||kp(e)}function V0(e,t,n,r){const i=El(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]),R0(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 D0({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 A0={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=V0(t,e,n,s),u=a[0],c=a[a.length-1],f=El(e,u),p=El(e,c);let g={keyframes:a,velocity:t.getVelocity(),ease:"easeOut",...s,delay:-l,onUpdate:y=>{t.set(y),s.onUpdate&&s.onUpdate(y)},onComplete:()=>{i(),s.onComplete&&s.onComplete()}};if(D0(s)||(g={...g,...E0(e,g)}),g.duration&&(g.duration=un(g.duration)),g.repeatDelay&&(g.repeatDelay=un(g.repeatDelay)),!f||!p||jv.current||s.type===!1||A0.skipAnimations)return S0(g);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const y=w0(t,e,g);if(y)return y}return ms(g)};function gs(e){return!!(Le(e)&&e.add)}const Cp=e=>/^\-?\d*\.?\d+$/.test(e);function Ya(e,t){e.indexOf(t)===-1&&e.push(t)}function Xa(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Za{constructor(){this.subscriptions=[]}add(t){return Ya(this.subscriptions,t),()=>Xa(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 _0=e=>!isNaN(parseFloat(e));class O0{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=_0(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Za);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 O0(e,t)}const Pp=e=>t=>t.test(e),F0={test:e=>e==="auto",parse:e=>e},Tp=[vn,A,ot,kt,Hy,Wy,F0],ur=e=>Tp.find(Pp(e)),I0=[...Tp,xe,$t],z0=e=>I0.find(Pp(e));function B0(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Xn(n))}function U0(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=iv(s[o]);B0(e,o,l)}}function $0(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):!z0(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 W0(e,t){return t?(t[e]||t.default||t).from:void 0}function H0(e,t,n){const r={};for(const i in e){const s=W0(i,t);if(s!==void 0)r[i]=s;else{const o=n.getValue(i);o&&(r[i]=o.get())}}return r}function K0({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function b0(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 p=e.getValue(f),g=l[f];if(!p||g===void 0||c&&K0(c,f))continue;const y={delay:n,elapsed:0,...Qa(s||{},f)};if(window.HandoffAppearAnimations){const h=e.getProps()[Nh];if(h){const d=window.HandoffAppearAnimations(h,f,p,W);d!==null&&(y.elapsed=d,y.isHandoff=!0)}}let x=!y.isHandoff&&!b0(p,g);if(y.type==="spring"&&(p.getVelocity()||y.velocity)&&(x=!1),p.animation&&(x=!1),x)continue;p.start(Ga(f,p,g,e.shouldReduceMotion&&yn.has(f)?{type:!1}:y));const T=p.animation;gs(a)&&(a.add(f),T.then(()=>a.remove(f))),u.push(T)}return o&&Promise.all(u).then(()=>{o&&U0(e,o)}),u}function jl(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(jl(u,t,{...s,delay:n+a(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(o)}function G0(e,t){return e.sortNodePosition(t)}function Y0(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>jl(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=jl(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 X0=[...Va].reverse(),Z0=Va.length;function q0(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Y0(e,n,r)))}function J0(e){let t=q0(e);const n=t1();let r=!0;const i=(a,u)=>{const c=Us(e,u);if(c){const{transition:f,transitionEnd:p,...g}=c;a={...a,...g,...p}}return a};function s(a){t=a(e)}function o(a,u){const c=e.getProps(),f=e.getVariantContext(!0)||{},p=[],g=new Set;let y={},x=1/0;for(let h=0;h<Z0;h++){const d=X0[h],m=n[d],w=c[d]!==void 0?c[d]:f[d],S=br(w),k=d===u?m.isActive:null;k===!1&&(x=h);let P=w===f[d]&&w!==c[d]&&S;if(P&&r&&e.manuallyAnimateOnMount&&(P=!1),m.protectedKeys={...y},!m.isActive&&k===null||!w&&!m.prevProp||Fs(w)||typeof w=="boolean")continue;let R=e1(m.prevProp,w)||d===u&&m.isActive&&!P&&S||h>x&&S,D=!1;const ne=Array.isArray(w)?w:[w];let G=ne.reduce(i,{});k===!1&&(G={});const{prevResolvedValues:ce={}}=m,re={...ce,...G},z=V=>{R=!0,g.has(V)&&(D=!0,g.delete(V)),m.needsAnimating[V]=!0};for(const V in re){const I=G[V],j=ce[V];if(y.hasOwnProperty(V))continue;let L=!1;ds(I)&&ds(j)?L=!Yh(I,j):L=I!==j,L?I!==void 0?z(V):g.add(V):I!==void 0&&g.has(V)?z(V):m.protectedKeys[V]=!0}m.prevProp=w,m.prevResolvedValues=G,m.isActive&&(y={...y,...G}),r&&e.blockInitialAnimation&&(R=!1),R&&(!P||D)&&p.push(...ne.map(V=>({animation:V,options:{type:d,...a}})))}if(g.size){const h={};g.forEach(d=>{const m=e.getBaseTarget(d);m!==void 0&&(h[d]=m)}),p.push({animation:h})}let T=!!p.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(T=!1),r=!1,T?t(p):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 y;return(y=g.animationState)===null||y===void 0?void 0:y.setActive(a,u)}),n[a].isActive=u;const p=o(c,a);for(const g in n)n[g].protectedKeys={};return p}return{animateChanges:o,setActive:l,setAnimateFunction:s,getState:()=>n}}function e1(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 t1(){return{animate:Xt(!0),whileInView:Xt(),whileHover:Xt(),whileTap:Xt(),whileDrag:Xt(),whileFocus:Xt(),exit:Xt()}}class n1 extends bt{constructor(t){super(t),t.animationState||(t.animationState=J0(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Fs(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 r1=0;class i1 extends bt{constructor(){super(...arguments),this.id=r1++}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 s1={animation:{Feature:n1},exit:{Feature:i1}},Cc=(e,t)=>Math.abs(e-t);function o1(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=Eo(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,g=o1(f.offset,{x:0,y:0})>=3;if(!p&&!g)return;const{point:y}=f,{timestamp:x}=ge;this.history.push({...y,timestamp:x});const{onStart:T,onMove:h}=this.handlers;p||(T&&T(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),h&&h(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=To(p,this.transformPagePoint),W.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();const{onEnd:g,onSessionEnd:y,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=Eo(f.type==="pointercancel"?this.lastMoveEventInfo:To(p,this.transformPagePoint),this.history);this.startEvent&&g&&g(f,T),y&&y(f,T)},!Hh(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=Bs(t),l=To(o,this.transformPagePoint),{point:a}=l,{timestamp:u}=ge;this.history=[{...a,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,Eo(l,this.history)),this.removeListeners=It(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 To(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 Eo({point:e},t){return{point:e,delta:Pc(e,jp(t)),offset:Pc(e,l1(t)),velocity:a1(t,.1)}}function l1(e){return e[0]}function jp(e){return e[e.length-1]}function a1(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 Ml(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),(Ml(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=X(n.min,n.max,e.origin)-e.originPoint,(Ml(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 u1(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 c1(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 f1(e,{top:t,left:n,bottom:r,right:i}){return{x:jc(e.x,n,i),y:jc(e.y,t,r)}}function Mc(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 d1(e,t){return{x:Mc(e.x,t.x),y:Mc(e.y,t.y)}}function h1(e,t){let n=.5;const r=Oe(e),i=Oe(t);return i>r?n=Gr(t.min,t.max-r,e.min):r>i&&(n=Gr(e.min,e.max-i,t.min)),Ut(0,1,n)}function p1(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 m1(e=Ll){return e===!1?e=0:e===!0&&(e=Ll),{x:Lc(e,"left","right"),y:Lc(e,"top","bottom")}}function Lc(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 Mp({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function g1({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function y1(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 No(e){return e===void 0||e===1}function Rl({scale:e,scaleX:t,scaleY:n}){return!No(e)||!No(t)||!No(n)}function Jt(e){return Rl(e)||Lp(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Lp(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 Vl(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}){Vl(e.x,t.translate,t.scale,t.originPoint),Vl(e.y,n.translate,n.scale,n.originPoint)}function v1(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&&Jt(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 Fc(e,t,[n,r,i]){const s=t[i]!==void 0?t[i]:.5,o=X(e.min,e.max,s);Vl(e,t[n],t[r],o,t.scale)}const x1=["x","scaleX","originX"],w1=["y","scaleY","originY"];function On(e,t){Fc(e.x,t,x1),Fc(e.y,t,w1)}function Vp(e,t){return Mp(y1(e.getBoundingClientRect(),t))}function S1(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,k1=new WeakMap;class C1{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:p,dragPropagation:g,onDragStart:y}=this.getProps();if(p&&!g&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=bh(p),!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(T=>{let h=this.getAxisMotionValue(T).get()||0;if(ot.test(h)){const{projection:d}=this.visualElement;if(d&&d.layout){const m=d.layout.layoutBox[T];m&&(h=Oe(m)*(parseFloat(h)/100))}}this.originPoint[T]=h}),y&&W.update(()=>y(c,f),!1,!0);const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},o=(c,f)=>{const{dragPropagation:p,dragDirectionLock:g,onDirectionLock:y,onDrag:x}=this.getProps();if(!p&&!this.openGlobalLock)return;const{offset:T}=f;if(g&&this.currentDirection===null){this.currentDirection=P1(T),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,T),this.updateAxis("y",f.point,T),this.visualElement.render(),x&&x(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=c1(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=f1(i.layoutBox,n):this.constraints=!1,this.elastic=m1(r),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Be(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=p1(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=S1(r,i.root,this.visualElement.getTransformPagePoint());let o=d1(i.layout.layoutBox,s);if(n){const l=n(g1(o));this.hasMutatedConstraints=!!l,l&&(o=Mp(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 p=i?200:1e6,g=i?40:1e7,y={type:"inertia",velocity:r?t[c]:0,bounceStiffness:p,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...s,...f};return this.startAxisValueAnimation(c,y)});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]=h1({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;k1.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 P1(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class T1 extends bt{constructor(t){super(t),this.removeGroupControls=te,this.removeListeners=te,this.controls=new C1(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 Ic=e=>(t,n)=>{e&&W.update(()=>e(t,n))};class E1 extends bt{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:Ic(t),onStart:Ic(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 N1(){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}%`}},j1={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 M1 extends Sf.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;Oy(L1),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]=N1(),r=C.useContext(Aa);return Sf.createElement(M1,{...e,layoutGroup:r,switchLayoutGroup:C.useContext(Mh),isPresent:t,safeToRemove:n})}const L1={borderRadius:{...cr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:cr,borderTopRightRadius:cr,borderBottomLeftRadius:cr,borderBottomRightRadius:cr,boxShadow:j1},_p=["TopLeft","TopRight","BottomLeft","BottomRight"],R1=_p.length,Bc=e=>typeof e=="string"?parseFloat(e):e,Uc=e=>typeof e=="number"||A.test(e);function V1(e,t,n,r,i,s){i?(e.opacity=X(0,n.opacity!==void 0?n.opacity:1,D1(r)),e.opacityExit=X(t.opacity!==void 0?t.opacity:1,0,A1(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<R1;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 D1=Op(0,.5,ip),A1=Op(.5,.95,te);function Op(e,t,n){return r=>r<e?0:r>t?1:n(Gr(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 _1(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){_1(e,t[n],t[r],t[i],t.scale,s,o)}const O1=["x","scaleX","originX"],F1=["y","scaleY","originY"];function bc(e,t,n,r){Kc(e.x,t,O1,n?n.x:void 0,r?r.x:void 0),Kc(e.y,t,F1,n?n.y:void 0,r?r.y:void 0)}function Qc(e){return e.translate===0&&e.scale===1}function Fp(e){return Qc(e.x)&&Qc(e.y)}function I1(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 Ip(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 Gc(e){return Oe(e.x)/Oe(e.y)}class z1{constructor(){this.members=[]}add(t){Ya(this.members,t),t.scheduleRender()}remove(t){if(Xa(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 B1=(e,t)=>e.depth-t.depth;class U1{constructor(){this.children=[],this.isDirty=!1}add(t){Ya(this.children,t),this.isDirty=!0}remove(t){Xa(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(B1),this.isDirty=!1,this.children.forEach(t)}}function $1(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 W1(e){window.MotionDebug&&window.MotionDebug.record(e)}function H1(e){return e instanceof SVGElement&&e.tagName!=="svg"}function K1(e,t,n){const r=Le(e)?e:Xn(e);return r.start(Ga("",r,t,n)),r.animation}const Xc=["","X","Y","Z"],b1={visibility:"hidden"},Zc=1e3;let Q1=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=Q1++,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(X1),this.nodes.forEach(tx),this.nodes.forEach(nx),this.nodes.forEach(Z1),W1(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 U1)}addEventListener(o,l){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Za),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=H1(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 p=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=$1(p,250),zi.hasAnimatedSinceResize&&(zi.hasAnimatedSinceResize=!1,this.nodes.forEach(Jc))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p,hasRelativeTargetChanged:g,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||c.getDefaultTransition()||lx,{onLayoutAnimationStart:T,onLayoutAnimationComplete:h}=c.getProps(),d=!this.targetLayout||!Ip(this.targetLayout,y)||g,m=!p&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||m||p&&(d||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,m);const w={...Qa(x,"layout"),onPlay:T,onComplete:h};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else p||Jc(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}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(rx),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(qc);return}this.isUpdating||this.nodes.forEach(J1),this.isUpdating=!1,this.nodes.forEach(ex),this.nodes.forEach(G1),this.nodes.forEach(Y1),this.clearAllSnapshots();const l=performance.now();ge.delta=Ut(0,1e3/60,l-ge.timestamp),ge.timestamp=l,ge.isProcessing=!0,yo.update.process(ge),yo.preRender.process(ge),yo.render.process(ge),ge.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(q1),this.sharedNodes.forEach(ix)}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&&!Fp(this.projectionDelta),a=this.getTransformTemplate(),u=a?a(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;o&&(l||Jt(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)),ax(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:p}=this.root;p&&(Tt(l.x,-p.offset.x),Tt(l.y,-p.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}),Jt(c.latestValues)&&On(a,c.latestValues)}return Jt(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||!Jt(u.latestValues))continue;Rl(u.latestValues)&&u.updateSnapshot();const c=ie(),f=u.measurePageBox();ze(c,f),bc(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return Jt(this.latestValues)&&bc(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:p}=this.options;if(!(!this.layout||!(f||p))){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(),u1(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||Rl(this.parent.latestValues)||Lp(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 p=this.treeScale.x,g=this.treeScale.y;v1(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:y}=l;if(!y){this.projectionTransform&&(this.projectionDelta=_n(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=_n(),this.projectionDeltaWithTransform=_n());const x=this.projectionTransform;Nr(this.projectionDelta,this.layoutCorrected,y,this.latestValues),this.projectionTransform=Yc(this.projectionDelta,this.treeScale),(this.projectionTransform!==x||this.treeScale.x!==p||this.treeScale.y!==g)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",y)),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 p=ie(),g=a?a.source:void 0,y=this.layout?this.layout.source:void 0,x=g!==y,T=this.getStack(),h=!T||T.members.length<=1,d=!!(x&&!h&&this.options.crossfade===!0&&!this.path.some(ox));this.animationProgress=0;let m;this.mixTargetDelta=w=>{const S=w/1e3;ef(f.x,o.x,S),ef(f.y,o.y,S),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(jr(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),sx(this.relativeTarget,this.relativeTargetOrigin,p,S),m&&I1(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=ie()),ze(m,this.relativeTarget)),x&&(this.animationValues=c,V1(c,u,this.latestValues,S,d,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},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=K1(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 p=Oe(this.layout.layoutBox.y);a.y.min=o.target.y.min,a.y.max=a.y.min+p}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 z1),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 b1;const u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Ii(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 x={};return this.options.layoutId&&(x.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,x.pointerEvents=Ii(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!Jt(this.latestValues)&&(x.transform=c?c({},""):"none",this.hasProjected=!1),x}const p=f.animationValues||f.latestValues;this.applyTransformsToTarget(),u.transform=Yc(this.projectionDeltaWithTransform,this.treeScale,p),c&&(u.transform=c(p,u.transform));const{x:g,y}=this.projectionDelta;u.transformOrigin=`${g.origin*100}% ${y.origin*100}% 0`,f.animationValues?u.opacity=f===this?(a=(l=p.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&a!==void 0?a:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:u.opacity=f===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const x in cs){if(p[x]===void 0)continue;const{correct:T,applyTo:h}=cs[x],d=u.transform==="none"?p[x]:T(p[x],f);if(h){const m=h.length;for(let w=0;w<m;w++)u[h[w]]=d}else u[x]=d}return this.options.layoutId&&(u.pointerEvents=f===this?Ii(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(qc),this.root.sharedNodes.clear()}}}function G1(e){e.updateLayout()}function Y1(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 p=o?n.measuredBox[f]:n.layoutBox[f],g=Oe(p);p.min=r[f].min,p.max=p.min+g}):Bp(s,n.layoutBox,r)&&Be(f=>{const p=o?n.measuredBox[f]:n.layoutBox[f],g=Oe(r[f]);p.max=p.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=!Fp(l);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:p,layout:g}=f;if(p&&g){const y=ie();jr(y,n.layoutBox,p.layoutBox);const x=ie();jr(x,r,g.layoutBox),Ip(y,x)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=y,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 X1(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 Z1(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function q1(e){e.clearSnapshot()}function qc(e){e.clearMeasurements()}function J1(e){e.isLayoutDirty=!1}function ex(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Jc(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function tx(e){e.resolveTargetDelta()}function nx(e){e.calcProjection()}function rx(e){e.resetRotation()}function ix(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 sx(e,t,n,r){tf(e.x,t.x,n.x,r),tf(e.y,t.y,n.y,r)}function ox(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const lx={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 ax(e){sf(e.x),sf(e.y)}function Bp(e,t,n){return e==="position"||e==="preserve-aspect"&&!Ml(Gc(t),Gc(n),.2)}const ux=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}),jo={current:void 0},Up=zp({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!jo.current){const e=new ux({});e.mount(window),e.setOptions({layoutScroll:!0}),jo.current=e}return jo.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),cx={pan:{Feature:E1},drag:{Feature:T1,ProjectionNode:Up,MeasureLayout:Ap}},fx=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function dx(e){const t=fx.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function Dl(e,t,n=1){const[r,i]=dx(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 kl(i)?Dl(i,t,n+1):i}function hx(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(!kl(s))return;const o=Dl(s,r);o&&i.set(o)});for(const i in t){const s=t[i];if(!kl(s))continue;const o=Dl(s,r);o&&(t[i]=o,n||(n={}),n[i]===void 0&&(n[i]=s))}return{target:t,transitionEnd:n}}const px=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),$p=e=>px.has(e),mx=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}},gx=new Set(["x","y","z"]),yx=ei.filter(e=>!gx.has(e));function vx(e){const t=[];return yx.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 xx=(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},wx=(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 p=t[a];let g;if(ds(p)){const y=p.length,x=p[0]===null?1:0;c=p[x],f=ur(c);for(let T=x;T<y&&p[T]!==null;T++)g?$a(ur(p[T])===g):g=ur(p[T])}else g=ur(p);if(f!==g)if(of(f)&&of(g)){const y=u.get();typeof y=="string"&&u.set(parseFloat(y)),typeof p=="string"?t[a]=parseFloat(p):Array.isArray(p)&&g===A&&(t[a]=p.map(parseFloat))}else f!=null&&f.transform&&(g!=null&&g.transform)&&(c===0||p===0)?c===0?u.set(g.transform(c)):t[a]=f.transform(p):(o||(s=vx(e),o=!0),l.push(a),r[a]=r[a]!==void 0?r[a]:t[a],u.jump(p))}),l.length){const a=l.indexOf("height")>=0?window.pageYOffset:null,u=xx(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 Sx(e,t,n,r){return mx(t)?wx(e,t,n,r):{target:t,transitionEnd:r}}const kx=(e,t,n,r)=>{const i=hx(e,t,r);return t=i.target,r=i.transitionEnd,Sx(e,t,n,r)},Al={current:null},Wp={current:!1};function Cx(){if(Wp.current=!0,!!Os)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Al.current=e.matches;e.addListener(t),t()}else Al.current=!1}function Px(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(Qr),Tx=Hp.length,cf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Ex=Da.length;class Nx{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=Is(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 p=c[f];l[f]!==void 0&&Le(p)&&(p.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||Cx(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Al.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<Tx;a++){const u=Hp[a],{isEnabled:c,Feature:f,ProjectionNode:p,MeasureLayout:g}=Qr[u];p&&(o=p),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:p,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:p,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=Px(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<Ex;r++){const i=Da[r],s=this.props[i];(br(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=Ua(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 Za),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Kp extends Nx{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=H0(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),o&&(o=i(o))),s){$0(this,r,o);const l=kx(this,r,o,n);n=l.transitionEnd,r=l.target}return{transition:t,transitionEnd:n,...r}}}function jx(e){return window.getComputedStyle(e)}class Mx extends Kp{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(yn.has(n)){const r=ba(n);return r&&r.default||0}else{const r=jx(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){Oa(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Ba(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){Ih(t,n,r,i)}}class Lx 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=ba(n);return r&&r.default||0}return n=zh.has(n)?n:Ra(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=za(t.tagName),super.mount(t)}}const Rx=(e,t)=>_a(e)?new Lx(t,{enableHardwareAcceleration:!1}):new Mx(t,{enableHardwareAcceleration:!0}),Vx={layout:{ProjectionNode:Up,MeasureLayout:Ap}},Dx={...s1,...Tv,...cx,...Vx},Ax=Ay((e,t)=>dv(e,t,Dx,Rx));function bp(){const e=C.useRef(!1);return La(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function _x(){const e=bp(),[t,n]=C.useState(0),r=C.useCallback(()=>{e.current&&n(t+1)},[t]);return[C.useCallback(()=>W.postRender(r),[r]),t]}class Ox 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 Fx({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(Ox,{isPresent:t,childRef:r,sizeRef:i},C.cloneElement(e,{ref:r}))}const Mo=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o})=>{const l=$h(Ix),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(Fx,{isPresent:n},e)),C.createElement(_s.Provider,{value:u},e)};function Ix(){return new Map}function zx(e){return C.useEffect(()=>()=>e(),[])}const tn=e=>e.key||"";function Bx(e,t){e.forEach(n=>{const r=tn(n);t.set(r,n)})}function Ux(e){const t=[];return C.Children.forEach(e,n=>{C.isValidElement(n)&&t.push(n)}),t}const $x=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:s=!0,mode:o="sync"})=>{const l=C.useContext(Aa).forceRender||_x()[0],a=bp(),u=Ux(e);let c=u;const f=C.useRef(new Map).current,p=C.useRef(c),g=C.useRef(new Map).current,y=C.useRef(!0);if(La(()=>{y.current=!1,Bx(u,g),p.current=c}),zx(()=>{y.current=!0,g.clear(),f.clear()}),y.current)return C.createElement(C.Fragment,null,c.map(d=>C.createElement(Mo,{key:tn(d),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:s,mode:o},d)));c=[...c];const x=p.current.map(tn),T=u.map(tn),h=x.length;for(let d=0;d<h;d++){const m=x[d];T.indexOf(m)===-1&&!f.has(m)&&f.set(m,void 0)}return o==="wait"&&f.size&&(c=[]),f.forEach((d,m)=>{if(T.indexOf(m)!==-1)return;const w=g.get(m);if(!w)return;const S=x.indexOf(m);let k=d;if(!k){const P=()=>{f.delete(m);const E=Array.from(g.keys()).filter(R=>!T.includes(R));if(E.forEach(R=>g.delete(R)),p.current=u.filter(R=>{const D=tn(R);return D===m||E.includes(D)}),!f.size){if(a.current===!1)return;l(),r&&r()}};k=C.createElement(Mo,{key:tn(w),isPresent:!1,onExitComplete:P,custom:t,presenceAffectsLayout:s,mode:o},w),f.set(m,k)}c.splice(S,0,k)}),c=c.map(d=>{const m=d.key;return f.has(m)?d:C.createElement(Mo,{key:tn(d),isPresent:!0,presenceAffectsLayout:s,mode:o},d)}),C.createElement(C.Fragment,null,f.size?c:c.map(d=>C.cloneElement(d)))};/**
|
|
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 Wx=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Qp=(...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 Hx={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 Kx=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,...Hx,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Qp("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 Pe=(e,t)=>{const n=C.forwardRef(({className:r,...i},s)=>C.createElement(Kx,{ref:s,iconNode:t,className:Qp(`lucide-${Wx(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 $s=Pe("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 bx=Pe("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
|
|
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 Gp=Pe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
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 Qx=Pe("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
|
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 Yp=Pe("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
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 Gx=Pe("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"}]]);/**
|
|
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 Yx=Pe("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
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 Xx=Pe("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"}]]);/**
|
|
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 Zx=Pe("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"}]]);/**
|
|
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 qx=Pe("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
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 Jx=Pe("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
|
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=Pe("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"}]]);/**
|
|
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=Pe("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"}]]);/**
|
|
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 nw=Pe("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"}]]);/**
|
|
139
|
+
* @license lucide-react v0.469.0 - ISC
|
|
140
|
+
*
|
|
141
|
+
* This source code is licensed under the ISC license.
|
|
142
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
143
|
+
*/const _l=Pe("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);function Xp({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 v.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?v.jsx(Gp,{className:"w-4 h-4"}):v.jsx(Xx,{className:"w-4 h-4"})})}function rw({className:e=""}){return v.jsx("div",{className:`mx-auto w-14 h-14 rounded-full border border-black dark:border-white flex items-center justify-center ${e}`,"aria-hidden":"true",children:v.jsx($s,{className:"w-7 h-7"})})}function iw({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=h=>h.replace(/_/g," ").replace(/([a-z0-9])([A-Z])/g,"$1 $2"),i=h=>{try{return JSON.parse(h)}catch{return null}},s=h=>{const d=h.trim(),m=i(d);if(m!==null)return m;const w=/```(?:json)?\s*([\s\S]*?)\s*```/gi;let S=w.exec(d);for(;S;){const k=S[1].trim(),P=i(k);if(P!==null)return P;S=w.exec(d)}return null},o=h=>{const d=String(h??"").trim();return d?Math.max(1,Math.round(d.length/4)):0},l=h=>h?h>=1e6?`${(h/1e6).toFixed(1).replace(/\.0$/,"")}M tokens`:h>=1e4?`${Math.round(h/1e3)}k tokens`:h>=1e3?`${(h/1e3).toFixed(1).replace(/\.0$/,"")}k tokens`:`${h} tokens`:"0 tokens",a=h=>{if(typeof h!="string"||!h.trim())return{cleanedPrompt:"",contextTitle:null,contextData:null,contextRaw:""};const m=/(^|\n)(?:#+\s*)?(Current\s+)?Context\s*\n+```json\s*([\s\S]*?)\s*```/i.exec(h);if(!m)return{cleanedPrompt:h,contextTitle:null,contextData:null,contextRaw:""};const w=m[2]?"Current Context":"Context",S=(m[3]||"").trim(),k=i(S),P=h.slice(0,m.index),E=h.slice(m.index+m[0].length);return{cleanedPrompt:`${P}
|
|
144
|
+
|
|
145
|
+
${E}`.replace(/\n{3,}/g,`
|
|
146
|
+
|
|
147
|
+
`).trim(),contextTitle:w,contextData:k??S,contextRaw:S}},u=({children:h})=>v.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:h}),c=h=>{if(h==null)return v.jsx("span",{className:"italic",children:"—"});if(typeof h=="boolean"){const d="inline-flex items-center rounded-full px-3 py-1 text-xs font-semibold tracking-[0.2em] uppercase border";return h?v.jsx("span",{className:`${d} bg-black text-white border-black dark:bg-white dark:text-black dark:border-white`,children:"Yes"}):v.jsx("span",{className:`${d} bg-white text-black border-black dark:bg-black dark:text-white dark:border-white`,children:"No"})}if(typeof h=="string"){const d=s(h);return d!==null?v.jsx(u,{children:JSON.stringify(d,null,2)}):h.length>140||h.includes(`
|
|
148
|
+
`)?v.jsx(u,{children:h}):v.jsx("span",{className:"text-2xl font-semibold whitespace-pre-wrap break-words",children:h})}return typeof h=="object"?v.jsx(u,{children:JSON.stringify(h,null,2)}):v.jsx("span",{className:"text-2xl font-semibold",children:String(h)})},f=6;function p(h,d){if(!h.length)return v.jsx("span",{className:"italic",children:"—"});const m=h.every(k=>k===null||["string","number","boolean"].includes(typeof k)),S=h.every(k=>k&&typeof k=="object"&&!Array.isArray(k))&&h.every(k=>Object.values(k).every(P=>P===null||["string","number","boolean"].includes(typeof P)));return m?v.jsx("div",{className:"space-y-2",children:h.map((k,P)=>v.jsx("div",{className:"text-base",children:c(k)},`item-${P}`))}):S?v.jsx("div",{className:"space-y-4",children:h.map((k,P)=>v.jsx("div",{className:"rounded-[20px] border border-black p-4 dark:border-white",children:x(Object.entries(k),d)},`item-${P}`))}):v.jsx("div",{className:"space-y-6",children:h.map((k,P)=>v.jsxs("div",{className:"space-y-4 rounded-[24px] border border-black p-5 dark:border-white",children:[v.jsxs("div",{className:"text-[10px] font-bold tracking-[0.35em] uppercase",children:["Item ",P+1]}),y(k,d+1)]},`item-${P}`))})}function g(h,d){const m=Object.entries(h);return m.length?d>=f?c(h):x(m,d):v.jsx("span",{className:"italic",children:"—"})}function y(h,d=0){return h==null||typeof h=="string"||typeof h=="number"||typeof h=="boolean"?c(h):Array.isArray(h)?p(h,d):typeof h=="object"?g(h,d):c(h)}function x(h,d=0){return v.jsx("div",{className:"space-y-8",children:h.map(([m,w])=>v.jsxs("div",{className:"space-y-2",children:[v.jsx("div",{className:"text-[10px] font-bold tracking-[0.35em] uppercase",children:r(m)}),v.jsx("div",{className:"text-base",children:y(w,d+1)})]},m))})}let T=null;if(e.event==="AGENT_STARTED"){const{cleanedPrompt:h,contextTitle:d,contextData:m,contextRaw:w}=a(e.prompt||""),S=o(w||""),k=w?`~${l(S)}`:"";T=v.jsxs("div",{className:"space-y-12 py-4",children:[v.jsxs("div",{className:"space-y-4 text-center",children:[v.jsx(rw,{}),v.jsxs("div",{className:"space-y-2",children:[v.jsx("h2",{className:"text-4xl font-black tracking-tight",children:e.agent}),v.jsx("div",{className:"text-xs font-mono",children:t})]})]}),d&&m!==null&&v.jsxs("details",{className:"group rounded-[24px] border border-black dark:border-white",children:[v.jsxs("summary",{className:"cursor-pointer select-none px-6 py-5 flex items-center justify-between gap-6 [&::-webkit-details-marker]:hidden",children:[v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx(Yp,{className:"w-4 h-4 transition-transform group-open:rotate-90"}),d==="Current Context"?v.jsx(bx,{className:"w-4 h-4","aria-hidden":"true"}):null,v.jsx("div",{className:"text-sm font-semibold tracking-[0.12em] uppercase",children:d})]}),k?v.jsx("div",{className:"text-xs font-mono",children:k}):null]}),v.jsx("div",{className:"border-t border-black dark:border-white p-6",children:typeof m=="string"?v.jsx(u,{children:m}):y(m)})]}),v.jsx("div",{className:"markdown-body leading-relaxed text-xl font-light whitespace-pre-wrap [&_*]:text-inherit [&_a]:underline",children:h})]})}else if(e.event&&e.event.startsWith("WORKFLOW_")){const h=e.event.replace("WORKFLOW_","");T=v.jsxs("div",{className:"min-h-[50vh] flex flex-col items-center justify-center text-center space-y-8 py-20",children:[v.jsx("div",{className:"text-[10px] font-bold tracking-[0.5em] uppercase",children:"Lifecycle status"}),v.jsxs("div",{className:"w-full max-w-5xl rounded-[28px] border border-black p-10 dark:border-white",children:[v.jsx("h2",{className:"text-6xl sm:text-7xl md:text-8xl font-black tracking-tighter leading-none uppercase",children:h}),e.error&&v.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 h=[["slug",e.slug],["targetKey",e.targetKey],["type",e.type]].filter(d=>d[1]!==void 0);T=v.jsxs("div",{className:"space-y-10 py-4",children:[v.jsx("div",{className:"text-xs font-mono",children:t}),v.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&&v.jsx("div",{className:"text-lg font-medium whitespace-pre-wrap",children:e.prompt}),h.length>0&&v.jsx("div",{className:"pt-4",children:x(h)})]})}else if(e.event==="PROMPT_ANSWERED"||e.event==="INTERACTION_SUBMITTED"){const h=e.answer!==void 0?e.answer:e.response,d=[["slug",e.slug],["targetKey",e.targetKey]].filter(m=>m[1]!==void 0);T=v.jsxs("div",{className:"space-y-10 py-4",children:[v.jsx("div",{className:"text-xs font-mono",children:t}),v.jsx("div",{className:"text-4xl font-bold tracking-tight text-balance leading-tight",children:c(h)}),d.length>0&&v.jsx("div",{className:"pt-4",children:x(d)})]})}else if(e.event==="AGENT_COMPLETED"){const h=[["agent",e.agent],["attempts",e.attempts]].filter(d=>d[1]!==void 0);T=v.jsxs("div",{className:"space-y-12 py-4",children:[e.output!==void 0&&v.jsxs("div",{className:"space-y-8",children:[v.jsx("div",{className:"rounded-[28px] border border-black px-6 py-5 dark:border-white",children:v.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[v.jsxs("div",{className:"text-3xl font-black tracking-tight",children:["Agent ",v.jsx("i",{children:e.agent?" "+e.agent:""})," responded"]}),v.jsx("div",{className:"text-xs font-mono",children:t})]})}),y(e.output)]}),h.length>0&&v.jsx("div",{className:"pt-4",children:x(h)})]})}else{const h=Object.entries(e).filter(([m])=>m!=="event"&&m!=="timestamp"),d=h.length>0?h:[["event",e.event||"Event"]];T=v.jsxs("div",{className:"space-y-12 py-4",children:[v.jsx("div",{className:"text-xs font-mono",children:t}),x(d)]})}return v.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:v.jsxs("div",{className:"content-width flex-1",children:[v.jsxs("div",{className:"flex items-center justify-between pt-10",children:[v.jsx("div",{className:"text-[10px] font-bold tracking-[0.4em] uppercase",children:n}),v.jsx(Xp,{text:e})]}),T]})})}const sw=e=>{if(!e)return v.jsx(_l,{className:"w-3.5 h-3.5 opacity-40"});const t=e.toUpperCase();return t.includes("STARTED")||t.includes("START")?v.jsx(Jx,{className:"w-3.5 h-3.5 text-blue-500"}):t.includes("SUBMITTED")||t.includes("ANSWERED")||t.includes("SUCCESS")?v.jsx(Yx,{className:"w-3.5 h-3.5 text-green-500"}):t.includes("REQUESTED")||t.includes("REQUEST")?v.jsx(tw,{className:"w-3.5 h-3.5 text-accent"}):t.includes("ERROR")||t.includes("FAILED")?v.jsx(Gx,{className:"w-3.5 h-3.5 text-red-500"}):v.jsx(_l,{className:"w-3.5 h-3.5 opacity-40"})},ow=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":v.jsxs("div",{className:"flex flex-col gap-0.5",children:[n&&v.jsx("span",{className:"text-accent font-medium text-[10px] tracking-wider uppercase opacity-80",children:n}),t&&v.jsx("span",{className:"opacity-80 truncate max-w-md",children:typeof t=="string"?t:JSON.stringify(t)})]})};function lw({history:e,onJump:t}){return v.jsx("div",{className:"w-full h-full flex flex-col overflow-hidden bg-bg",children:v.jsx("div",{className:"flex-1 overflow-y-auto custom-scroll px-6 py-24",children:v.jsx("div",{className:"max-w-4xl mx-auto space-y-1",children:e.length===0?v.jsxs("div",{className:"h-[40vh] flex flex-col items-center justify-center opacity-20 space-y-4",children:[v.jsx(_l,{className:"w-12 h-12"}),v.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 v.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:[v.jsx("div",{className:"flex-shrink-0 w-20 pt-1",children:v.jsx("span",{className:"text-[10px] font-mono font-medium opacity-20 group-hover:opacity-40 transition-opacity",children:i})}),v.jsx("div",{className:"flex-shrink-0 pt-0.5",children:sw(n.event)}),v.jsxs("div",{className:"flex-1 min-w-0 flex flex-col gap-1",children:[v.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"}),v.jsx("div",{className:"text-sm leading-relaxed truncate group-hover:text-accent transition-colors",children:ow(n)})]})]},r)})})})})}function aw({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:p}=f.target;u(p);const g=parseInt(p,10);!Number.isNaN(g)&&g>=1&&g<=t&&i(g-1)};return v.jsx("footer",{className:`nav-footer transition-opacity duration-300 ${l}`,children:v.jsxs("div",{className:"footer-control",children:[v.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:v.jsx(Qx,{className:"w-5 h-5"})}),v.jsxs("div",{className:"flex items-center gap-2 text-xs font-mono font-bold tracking-widest opacity-60",children:[v.jsx("input",{type:"number",value:a,onChange:c,className:"jumper-input",min:"1",max:t}),v.jsx("span",{className:"opacity-20",children:"/"}),v.jsx("span",{children:t})]}),v.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:v.jsx(Yp,{className:"w-5 h-5"})}),s?v.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 uw({workflowName:e,status:t,theme:n,toggleTheme:r,viewMode:i,setViewMode:s,history:o}){return v.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:[v.jsxs("div",{className:"flex items-center gap-4",children:[v.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"}`}),v.jsx("span",{className:"font-bold text-[10px] tracking-[0.4em] uppercase opacity-30 truncate max-w-[300px]",children:e||"Workflow"})]}),v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(Xp,{text:o||[],label:"Copy full history",disabled:!o||o.length===0}),v.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"?v.jsx(Zx,{className:"w-5 h-5 opacity-40 hover:opacity-100"}):v.jsx(ew,{className:"w-5 h-5 opacity-40 hover:opacity-100"})}),v.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"?v.jsx(nw,{className:"w-5 h-5 opacity-40 hover:opacity-100"}):v.jsx(qx,{className:"w-5 h-5 opacity-40 hover:opacity-100"})})]})]})}function cw({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(""),[p,g]=C.useState(!1),y=C.useMemo(()=>s||[],[s]),x=r||i||"Choose an option.",T=m=>{o?(u(w=>w.includes(m)?w.filter(S=>S!==m):[...w,m]),g(!1)):(u(m),g(!1))},h=()=>{if(p&&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)})},d=p?!!c.trim():o?a.length>0:!!a;return v.jsxs("div",{className:"w-full h-full flex flex-col items-stretch overflow-hidden",children:[v.jsxs("div",{className:"flex-1 overflow-y-auto custom-scroll px-6 py-12 space-y-8 flex flex-col items-center",children:[v.jsxs("div",{className:"space-y-4 shrink-0",children:[v.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:v.jsx($s,{className:"w-8 h-8"})}),v.jsx("h3",{className:"text-4xl font-extrabold tracking-tight text-fg pt-4 text-center",children:"Choose an option."})]}),v.jsx("div",{className:"text-xl font-medium text-fg/70 text-center max-w-2xl whitespace-pre-wrap",children:x}),v.jsxs("div",{className:"w-full max-w-2xl space-y-3",children:[y.map(m=>{const w=o?a.includes(m.key):a===m.key;return v.jsx("button",{onClick:()=>T(m.key),disabled:n,type:"button",className:`w-full p-6 rounded-2xl border-2 transition-all text-left ${w?"border-accent bg-accent/10":"border-white/10 hover:border-white/20 bg-black/[0.03] dark:bg-white/[0.03]"}`,children:v.jsxs("div",{className:"flex items-center gap-4",children:[v.jsx("div",{className:`w-6 h-6 rounded-full border-2 flex items-center justify-center ${w?"border-accent bg-accent text-white":"border-white/20"}`,children:w&&v.jsx(Gp,{className:"w-4 h-4"})}),v.jsxs("div",{className:"flex-1",children:[v.jsx("div",{className:"font-bold text-lg",children:m.label||m.key}),m.description&&v.jsx("div",{className:"text-sm text-fg/50 mt-1",children:m.description})]})]})},m.key)}),l&&v.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 ${p?"border-accent bg-accent/10":"border-white/10 hover:border-white/20 bg-black/[0.03] dark:bg-white/[0.03]"}`,children:[v.jsx("div",{className:"font-bold text-lg",children:"Other"}),v.jsx("div",{className:"text-sm text-fg/50 mt-1",children:"Provide a custom response"})]}),p&&v.jsx("textarea",{value:c,onChange:m=>f(m.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"})]})]}),v.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:v.jsx("button",{onClick:h,disabled:n||!d,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 fw({interaction:e,onSubmit:t,disabled:n}){const{prompt:r,question:i,confirmLabel:s="Confirm",cancelLabel:o="Cancel",context:l}=e;return v.jsxs("div",{className:"w-full h-full flex flex-col items-stretch overflow-hidden",children:[v.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:[v.jsxs("div",{className:"space-y-4",children:[v.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:v.jsx($s,{className:"w-8 h-8"})}),v.jsx("h3",{className:"text-4xl font-extrabold tracking-tight text-fg pt-4 text-center",children:"Confirm action."})]}),v.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)&&v.jsxs("div",{className:"text-sm text-fg/40 text-center",children:["Review: ",v.jsx("code",{className:"bg-white/10 px-2 py-1 rounded",children:l.documentPath})]})]}),v.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:[v.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}),v.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 dw({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]),p=y=>f.minLength&&y.length<f.minLength?`Minimum ${f.minLength} characters required`:f.maxLength&&y.length>f.maxLength?`Maximum ${f.maxLength} characters allowed`:f.pattern&&!new RegExp(f.pattern).test(y)?"Invalid format":null,g=()=>{const y=l.trim(),x=p(y);if(x){c(x);return}t({text:y,raw:y})};return v.jsxs("div",{className:"w-full h-full flex flex-col items-stretch overflow-hidden",children:[v.jsxs("div",{className:"flex-1 overflow-y-auto custom-scroll px-6 py-12 space-y-8 flex flex-col items-center",children:[v.jsxs("div",{className:"space-y-4 shrink-0",children:[v.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:v.jsx($s,{className:"w-8 h-8"})}),v.jsx("h3",{className:"text-4xl font-extrabold tracking-tight text-fg pt-4 text-center",children:"Action required."})]}),v.jsxs("div",{className:"w-full max-w-2xl space-y-4",children:[v.jsx("div",{className:"text-xl font-medium text-fg/70 text-center whitespace-pre-wrap",children:r||i||"Provide your response."}),v.jsx("textarea",{value:l,onChange:y=>{a(y.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&&v.jsx("div",{className:"text-red-500 text-center text-sm",children:u})]})]}),v.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:v.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 hw({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 v.jsx(cw,{interaction:e,onSubmit:i,disabled:n},e.slug);case"confirm":return v.jsx(fw,{interaction:e,onSubmit:i,disabled:n},e.slug);case"text":default:return v.jsx(dw,{interaction:e,onSubmit:i,disabled:n},e.slug)}}function pw(){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"),[p,g]=C.useState(null),[y,x]=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 T=window.SESSION_TOKEN==="{{SESSION_TOKEN}}"?null:window.SESSION_TOKEN,h=T?`/api/history/${T}`:"/api/history",d=T?`/api/events/${T}`:"/api/events",m=T?`/api/submit/${T}`:"/api/submit",w=async()=>{try{const V=await(await fetch(h)).json();if(V.entries){const I=[...V.entries].reverse();t(L=>(L.length===0&&I.length>0&&r(I.length-1),I));const j=I[I.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")}},S=C.useRef(0);C.useEffect(()=>{e.length>S.current&&(S.current===0&&e.length>0?(r(e.length-1),x(!1)):n<e.length-1&&x(!0)),S.current=e.length},[e.length,n]),C.useEffect(()=>{n===e.length-1&&x(!1)},[n,e.length]),C.useEffect(()=>{w();const z=setInterval(w,3e3),V=new EventSource(d);return V.onmessage=I=>{I.data==="update"&&w()},()=>{clearInterval(z),V.close()}},[]);const k=()=>r(z=>Math.min(e.length-1,z+1)),P=()=>r(z=>Math.max(0,z-1)),E=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];E.current={x:j.clientX,y:j.clientY}},ne=z=>{if(R.current||!E.current)return;const V=z.changedTouches[0],I=V.clientX-E.current.x,j=V.clientY-E.current.y,L=Math.abs(I),O=Math.abs(j);L>50&&L>O+10&&(I>0&&P(),I<0&&k()),E.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"&&k(),V.key==="ArrowLeft"&&P())};return window.addEventListener("keydown",z),()=>window.removeEventListener("keydown",z)},[e.length]);const G=e[n],ce=G&&(G.event==="INTERACTION_REQUESTED"||G.event==="PROMPT_REQUESTED"),re=p&&ce&&G.slug===p.slug;return v.jsxs("div",{className:"w-full h-[100dvh] flex flex-col relative overflow-hidden bg-bg",children:[v.jsx(uw,{workflowName:o,status:i,theme:a,toggleTheme:()=>u(z=>z==="dark"?"light":"dark"),viewMode:c,setViewMode:f,history:e}),v.jsx("main",{className:"main-stage overflow-hidden",children:c==="log"?v.jsx(lw,{history:e,onJump:z=>{r(z),f("present")}}):v.jsx($x,{mode:"wait",children:v.jsx(Ax.div,{drag:"x",dragConstraints:{left:0,right:0},dragElastic:.2,style:{touchAction:"pan-y"},onTouchStart:D,onTouchEnd:ne,onDragEnd:(z,{offset:V,velocity:I})=>{V.x>50||I.x>500?P():(V.x<-50||I.x<-500)&&k()},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?v.jsx("div",{className:"content-width h-full",children:v.jsx(hw,{interaction:p,onSubmit:async(z,V,I)=>{const j=typeof I=="string"?I:JSON.stringify(I);t(L=>[...L,{timestamp:new Date().toISOString(),event:"INTERACTION_SUBMITTED",answer:j,response:I}]),r(L=>L+1),await fetch(m,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({slug:z,targetKey:V,response:I})}),setTimeout(w,1e3)},disabled:i==="disconnected"})}):v.jsx(iw,{item:G})},n)})}),v.jsx(aw,{page:n,total:e.length,onNext:k,onPrev:P,onJump:r,hasNew:y,onJumpToLatest:()=>r(e.length-1),className:c==="log"?"opacity-0 pointer-events-none":"opacity-100"})]})}const mw=Ph(document.getElementById("root"));mw.render(v.jsx(pw,{}));
|