@weconjs/core 1.2.2 → 1.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,181 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-BI-oiBt-.js","./api-CvtLmLuv.js","./index-BMd21Cuf.js","./chevron-right-ByQ2jwEZ.js","./ModuleDetail-BoiZYmmO.js","./arrow-left-C26_8YjI.js","./index-D825pKz_.js","./index-DaglUNul.js","./TranslationEditor-Dz2BHJgQ.js","./index-DS8GcC6h.js"])))=>i.map(i=>d[i]);
2
- function Pg(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(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 o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function Eg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vd={exports:{}},Vo={},yd={exports:{}},j={};/**
3
- * @license React
4
- * react.production.min.js
5
- *
6
- * Copyright (c) Facebook, Inc. and its affiliates.
7
- *
8
- * This source code is licensed under the MIT license found in the
9
- * LICENSE file in the root directory of this source tree.
10
- */var oi=Symbol.for("react.element"),Cg=Symbol.for("react.portal"),kg=Symbol.for("react.fragment"),Tg=Symbol.for("react.strict_mode"),Rg=Symbol.for("react.profiler"),Mg=Symbol.for("react.provider"),Ag=Symbol.for("react.context"),Lg=Symbol.for("react.forward_ref"),Dg=Symbol.for("react.suspense"),_g=Symbol.for("react.memo"),Vg=Symbol.for("react.lazy"),Nu=Symbol.iterator;function Ng(e){return e===null||typeof e!="object"?null:(e=Nu&&e[Nu]||e["@@iterator"],typeof e=="function"?e:null)}var wd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},xd=Object.assign,Sd={};function bn(e,t,n){this.props=e,this.context=t,this.refs=Sd,this.updater=n||wd}bn.prototype.isReactComponent={};bn.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")};bn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Pd(){}Pd.prototype=bn.prototype;function ra(e,t,n){this.props=e,this.context=t,this.refs=Sd,this.updater=n||wd}var ia=ra.prototype=new Pd;ia.constructor=ra;xd(ia,bn.prototype);ia.isPureReactComponent=!0;var ju=Array.isArray,Ed=Object.prototype.hasOwnProperty,oa={current:null},Cd={key:!0,ref:!0,__self:!0,__source:!0};function kd(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)Ed.call(t,r)&&!Cd.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:oi,type:e,key:o,ref:s,props:i,_owner:oa.current}}function jg(e,t){return{$$typeof:oi,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function sa(e){return typeof e=="object"&&e!==null&&e.$$typeof===oi}function Og(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ou=/\/+/g;function os(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Og(""+e.key):t.toString(36)}function Fi(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case oi:case Cg:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+os(s,0):r,ju(i)?(n="",e!=null&&(n=e.replace(Ou,"$&/")+"/"),Fi(i,t,n,"",function(u){return u})):i!=null&&(sa(i)&&(i=jg(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(Ou,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",ju(e))for(var l=0;l<e.length;l++){o=e[l];var a=r+os(o,l);s+=Fi(o,t,n,a,i)}else if(a=Ng(e),typeof a=="function")for(e=a.call(e),l=0;!(o=e.next()).done;)o=o.value,a=r+os(o,l++),s+=Fi(o,t,n,a,i);else if(o==="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 s}function vi(e,t,n){if(e==null)return e;var r=[],i=0;return Fi(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Ig(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 xe={current:null},zi={transition:null},Fg={ReactCurrentDispatcher:xe,ReactCurrentBatchConfig:zi,ReactCurrentOwner:oa};function Td(){throw Error("act(...) is not supported in production builds of React.")}j.Children={map:vi,forEach:function(e,t,n){vi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return vi(e,function(){t++}),t},toArray:function(e){return vi(e,function(t){return t})||[]},only:function(e){if(!sa(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};j.Component=bn;j.Fragment=kg;j.Profiler=Rg;j.PureComponent=ra;j.StrictMode=Tg;j.Suspense=Dg;j.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Fg;j.act=Td;j.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=xd({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=oa.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)Ed.call(t,a)&&!Cd.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:oi,type:e.type,key:i,ref:o,props:r,_owner:s}};j.createContext=function(e){return e={$$typeof:Ag,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Mg,_context:e},e.Consumer=e};j.createElement=kd;j.createFactory=function(e){var t=kd.bind(null,e);return t.type=e,t};j.createRef=function(){return{current:null}};j.forwardRef=function(e){return{$$typeof:Lg,render:e}};j.isValidElement=sa;j.lazy=function(e){return{$$typeof:Vg,_payload:{_status:-1,_result:e},_init:Ig}};j.memo=function(e,t){return{$$typeof:_g,type:e,compare:t===void 0?null:t}};j.startTransition=function(e){var t=zi.transition;zi.transition={};try{e()}finally{zi.transition=t}};j.unstable_act=Td;j.useCallback=function(e,t){return xe.current.useCallback(e,t)};j.useContext=function(e){return xe.current.useContext(e)};j.useDebugValue=function(){};j.useDeferredValue=function(e){return xe.current.useDeferredValue(e)};j.useEffect=function(e,t){return xe.current.useEffect(e,t)};j.useId=function(){return xe.current.useId()};j.useImperativeHandle=function(e,t,n){return xe.current.useImperativeHandle(e,t,n)};j.useInsertionEffect=function(e,t){return xe.current.useInsertionEffect(e,t)};j.useLayoutEffect=function(e,t){return xe.current.useLayoutEffect(e,t)};j.useMemo=function(e,t){return xe.current.useMemo(e,t)};j.useReducer=function(e,t,n){return xe.current.useReducer(e,t,n)};j.useRef=function(e){return xe.current.useRef(e)};j.useState=function(e){return xe.current.useState(e)};j.useSyncExternalStore=function(e,t,n){return xe.current.useSyncExternalStore(e,t,n)};j.useTransition=function(){return xe.current.useTransition()};j.version="18.3.1";yd.exports=j;var S=yd.exports;const hr=Eg(S),zg=Pg({__proto__:null,default:hr},[S]);/**
11
- * @license React
12
- * react-jsx-runtime.production.min.js
13
- *
14
- * Copyright (c) Facebook, Inc. and its affiliates.
15
- *
16
- * This source code is licensed under the MIT license found in the
17
- * LICENSE file in the root directory of this source tree.
18
- */var Bg=S,Ug=Symbol.for("react.element"),$g=Symbol.for("react.fragment"),Wg=Object.prototype.hasOwnProperty,Hg=Bg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Kg={key:!0,ref:!0,__self:!0,__source:!0};function Rd(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Wg.call(t,r)&&!Kg.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:Ug,type:e,key:o,ref:s,props:i,_owner:Hg.current}}Vo.Fragment=$g;Vo.jsx=Rd;Vo.jsxs=Rd;vd.exports=Vo;var R=vd.exports,Md={exports:{}},Ve={},Ad={exports:{}},Ld={};/**
19
- * @license React
20
- * scheduler.production.min.js
21
- *
22
- * Copyright (c) Facebook, Inc. and its affiliates.
23
- *
24
- * This source code is licensed under the MIT license found in the
25
- * LICENSE file in the root directory of this source tree.
26
- */(function(e){function t(M,_){var V=M.length;M.push(_);e:for(;0<V;){var Y=V-1>>>1,ie=M[Y];if(0<i(ie,_))M[Y]=_,M[V]=ie,V=Y;else break e}}function n(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var _=M[0],V=M.pop();if(V!==_){M[0]=V;e:for(var Y=0,ie=M.length,mi=ie>>>1;Y<mi;){var Gt=2*(Y+1)-1,is=M[Gt],Qt=Gt+1,gi=M[Qt];if(0>i(is,V))Qt<ie&&0>i(gi,is)?(M[Y]=gi,M[Qt]=V,Y=Qt):(M[Y]=is,M[Gt]=V,Y=Gt);else if(Qt<ie&&0>i(gi,V))M[Y]=gi,M[Qt]=V,Y=Qt;else break e}}return _}function i(M,_){var V=M.sortIndex-_.sortIndex;return V!==0?V:M.id-_.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],c=1,f=null,d=3,g=!1,v=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(M){for(var _=n(u);_!==null;){if(_.callback===null)r(u);else if(_.startTime<=M)r(u),_.sortIndex=_.expirationTime,t(a,_);else break;_=n(u)}}function x(M){if(y=!1,m(M),!v)if(n(a)!==null)v=!0,pi(P);else{var _=n(u);_!==null&&J(x,_.startTime-M)}}function P(M,_){v=!1,y&&(y=!1,h(C),C=-1),g=!0;var V=d;try{for(m(_),f=n(a);f!==null&&(!(f.expirationTime>_)||M&&!re());){var Y=f.callback;if(typeof Y=="function"){f.callback=null,d=f.priorityLevel;var ie=Y(f.expirationTime<=_);_=e.unstable_now(),typeof ie=="function"?f.callback=ie:f===n(a)&&r(a),m(_)}else r(a);f=n(a)}if(f!==null)var mi=!0;else{var Gt=n(u);Gt!==null&&J(x,Gt.startTime-_),mi=!1}return mi}finally{f=null,d=V,g=!1}}var E=!1,T=null,C=-1,N=5,L=-1;function re(){return!(e.unstable_now()-L<N)}function yt(){if(T!==null){var M=e.unstable_now();L=M;var _=!0;try{_=T(!0,M)}finally{_?Kt():(E=!1,T=null)}}else E=!1}var Kt;if(typeof p=="function")Kt=function(){p(yt)};else if(typeof MessageChannel<"u"){var rr=new MessageChannel,Vu=rr.port2;rr.port1.onmessage=yt,Kt=function(){Vu.postMessage(null)}}else Kt=function(){w(yt,0)};function pi(M){T=M,E||(E=!0,Kt())}function J(M,_){C=w(function(){M(e.unstable_now())},_)}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(M){M.callback=null},e.unstable_continueExecution=function(){v||g||(v=!0,pi(P))},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(M){switch(d){case 1:case 2:case 3:var _=3;break;default:_=d}var V=d;d=_;try{return M()}finally{d=V}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(M,_){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var V=d;d=M;try{return _()}finally{d=V}},e.unstable_scheduleCallback=function(M,_,V){var Y=e.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?Y+V:Y):V=Y,M){case 1:var ie=-1;break;case 2:ie=250;break;case 5:ie=1073741823;break;case 4:ie=1e4;break;default:ie=5e3}return ie=V+ie,M={id:c++,callback:_,priorityLevel:M,startTime:V,expirationTime:ie,sortIndex:-1},V>Y?(M.sortIndex=V,t(u,M),n(a)===null&&M===n(u)&&(y?(h(C),C=-1):y=!0,J(x,V-Y))):(M.sortIndex=ie,t(a,M),v||g||(v=!0,pi(P))),M},e.unstable_shouldYield=re,e.unstable_wrapCallback=function(M){var _=d;return function(){var V=d;d=_;try{return M.apply(this,arguments)}finally{d=V}}}})(Ld);Ad.exports=Ld;var Gg=Ad.exports;/**
27
- * @license React
28
- * react-dom.production.min.js
29
- *
30
- * Copyright (c) Facebook, Inc. and its affiliates.
31
- *
32
- * This source code is licensed under the MIT license found in the
33
- * LICENSE file in the root directory of this source tree.
34
- */var Qg=S,De=Gg;function k(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 Dd=new Set,Nr={};function hn(e,t){Un(e,t),Un(e+"Capture",t)}function Un(e,t){for(Nr[e]=t,e=0;e<t.length;e++)Dd.add(t[e])}var dt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ks=Object.prototype.hasOwnProperty,Xg=/^[: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]*$/,Iu={},Fu={};function Yg(e){return Ks.call(Fu,e)?!0:Ks.call(Iu,e)?!1:Xg.test(e)?Fu[e]=!0:(Iu[e]=!0,!1)}function Zg(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 bg(e,t,n,r){if(t===null||typeof t>"u"||Zg(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 Se(e,t,n,r,i,o,s){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=o,this.removeEmptyString=s}var ce={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ce[e]=new Se(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ce[t]=new Se(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ce[e]=new Se(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ce[e]=new Se(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){ce[e]=new Se(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ce[e]=new Se(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ce[e]=new Se(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ce[e]=new Se(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ce[e]=new Se(e,5,!1,e.toLowerCase(),null,!1,!1)});var la=/[\-:]([a-z])/g;function aa(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(la,aa);ce[t]=new Se(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(la,aa);ce[t]=new Se(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(la,aa);ce[t]=new Se(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ce[e]=new Se(e,1,!1,e.toLowerCase(),null,!1,!1)});ce.xlinkHref=new Se("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ce[e]=new Se(e,1,!1,e.toLowerCase(),null,!0,!0)});function ua(e,t,n,r){var i=ce.hasOwnProperty(t)?ce[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(bg(t,n,i,r)&&(n=null),r||i===null?Yg(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 vt=Qg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,yi=Symbol.for("react.element"),yn=Symbol.for("react.portal"),wn=Symbol.for("react.fragment"),ca=Symbol.for("react.strict_mode"),Gs=Symbol.for("react.profiler"),_d=Symbol.for("react.provider"),Vd=Symbol.for("react.context"),fa=Symbol.for("react.forward_ref"),Qs=Symbol.for("react.suspense"),Xs=Symbol.for("react.suspense_list"),da=Symbol.for("react.memo"),St=Symbol.for("react.lazy"),Nd=Symbol.for("react.offscreen"),zu=Symbol.iterator;function ir(e){return e===null||typeof e!="object"?null:(e=zu&&e[zu]||e["@@iterator"],typeof e=="function"?e:null)}var G=Object.assign,ss;function pr(e){if(ss===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ss=t&&t[1]||""}return`
35
- `+ss+e}var ls=!1;function as(e,t){if(!e||ls)return"";ls=!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(`
36
- `),o=r.stack.split(`
37
- `),s=i.length-1,l=o.length-1;1<=s&&0<=l&&i[s]!==o[l];)l--;for(;1<=s&&0<=l;s--,l--)if(i[s]!==o[l]){if(s!==1||l!==1)do if(s--,l--,0>l||i[s]!==o[l]){var a=`
38
- `+i[s].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{ls=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?pr(e):""}function qg(e){switch(e.tag){case 5:return pr(e.type);case 16:return pr("Lazy");case 13:return pr("Suspense");case 19:return pr("SuspenseList");case 0:case 2:case 15:return e=as(e.type,!1),e;case 11:return e=as(e.type.render,!1),e;case 1:return e=as(e.type,!0),e;default:return""}}function Ys(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 wn:return"Fragment";case yn:return"Portal";case Gs:return"Profiler";case ca:return"StrictMode";case Qs:return"Suspense";case Xs:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Vd:return(e.displayName||"Context")+".Consumer";case _d:return(e._context.displayName||"Context")+".Provider";case fa:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case da:return t=e.displayName||null,t!==null?t:Ys(e.type)||"Memo";case St:t=e._payload,e=e._init;try{return Ys(e(t))}catch{}}return null}function Jg(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 Ys(t);case 8:return t===ca?"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 Ot(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function jd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ev(e){var t=jd(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,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function wi(e){e._valueTracker||(e._valueTracker=ev(e))}function Od(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=jd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function eo(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 Zs(e,t){var n=t.checked;return G({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Bu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ot(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 Id(e,t){t=t.checked,t!=null&&ua(e,"checked",t,!1)}function bs(e,t){Id(e,t);var n=Ot(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")?qs(e,t.type,n):t.hasOwnProperty("defaultValue")&&qs(e,t.type,Ot(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Uu(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 qs(e,t,n){(t!=="number"||eo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var mr=Array.isArray;function jn(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=""+Ot(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 Js(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(k(91));return G({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function $u(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(k(92));if(mr(n)){if(1<n.length)throw Error(k(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ot(n)}}function Fd(e,t){var n=Ot(t.value),r=Ot(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 Wu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function zd(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 el(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?zd(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var xi,Bd=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(xi=xi||document.createElement("div"),xi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=xi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function jr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Sr={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},tv=["Webkit","ms","Moz","O"];Object.keys(Sr).forEach(function(e){tv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Sr[t]=Sr[e]})});function Ud(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Sr.hasOwnProperty(e)&&Sr[e]?(""+t).trim():t+"px"}function $d(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Ud(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var nv=G({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 tl(e,t){if(t){if(nv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function nl(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 rl=null;function ha(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var il=null,On=null,In=null;function Hu(e){if(e=ai(e)){if(typeof il!="function")throw Error(k(280));var t=e.stateNode;t&&(t=Fo(t),il(e.stateNode,e.type,t))}}function Wd(e){On?In?In.push(e):In=[e]:On=e}function Hd(){if(On){var e=On,t=In;if(In=On=null,Hu(e),t)for(e=0;e<t.length;e++)Hu(t[e])}}function Kd(e,t){return e(t)}function Gd(){}var us=!1;function Qd(e,t,n){if(us)return e(t,n);us=!0;try{return Kd(e,t,n)}finally{us=!1,(On!==null||In!==null)&&(Gd(),Hd())}}function Or(e,t){var n=e.stateNode;if(n===null)return null;var r=Fo(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(k(231,t,typeof n));return n}var ol=!1;if(dt)try{var or={};Object.defineProperty(or,"passive",{get:function(){ol=!0}}),window.addEventListener("test",or,or),window.removeEventListener("test",or,or)}catch{ol=!1}function rv(e,t,n,r,i,o,s,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Pr=!1,to=null,no=!1,sl=null,iv={onError:function(e){Pr=!0,to=e}};function ov(e,t,n,r,i,o,s,l,a){Pr=!1,to=null,rv.apply(iv,arguments)}function sv(e,t,n,r,i,o,s,l,a){if(ov.apply(this,arguments),Pr){if(Pr){var u=to;Pr=!1,to=null}else throw Error(k(198));no||(no=!0,sl=u)}}function pn(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 Xd(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 Ku(e){if(pn(e)!==e)throw Error(k(188))}function lv(e){var t=e.alternate;if(!t){if(t=pn(e),t===null)throw Error(k(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Ku(i),e;if(o===r)return Ku(i),t;o=o.sibling}throw Error(k(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(k(189))}}if(n.alternate!==r)throw Error(k(190))}if(n.tag!==3)throw Error(k(188));return n.stateNode.current===n?e:t}function Yd(e){return e=lv(e),e!==null?Zd(e):null}function Zd(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Zd(e);if(t!==null)return t;e=e.sibling}return null}var bd=De.unstable_scheduleCallback,Gu=De.unstable_cancelCallback,av=De.unstable_shouldYield,uv=De.unstable_requestPaint,b=De.unstable_now,cv=De.unstable_getCurrentPriorityLevel,pa=De.unstable_ImmediatePriority,qd=De.unstable_UserBlockingPriority,ro=De.unstable_NormalPriority,fv=De.unstable_LowPriority,Jd=De.unstable_IdlePriority,No=null,tt=null;function dv(e){if(tt&&typeof tt.onCommitFiberRoot=="function")try{tt.onCommitFiberRoot(No,e,void 0,(e.current.flags&128)===128)}catch{}}var Xe=Math.clz32?Math.clz32:mv,hv=Math.log,pv=Math.LN2;function mv(e){return e>>>=0,e===0?32:31-(hv(e)/pv|0)|0}var Si=64,Pi=4194304;function gr(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 io(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=gr(l):(o&=s,o!==0&&(r=gr(o)))}else s=n&~i,s!==0?r=gr(s):o!==0&&(r=gr(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&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-Xe(t),i=1<<n,r|=e[n],t&=~i;return r}function gv(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 vv(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-Xe(o),l=1<<s,a=i[s];a===-1?(!(l&n)||l&r)&&(i[s]=gv(l,t)):a<=t&&(e.expiredLanes|=l),o&=~l}}function ll(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function eh(){var e=Si;return Si<<=1,!(Si&4194240)&&(Si=64),e}function cs(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function si(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Xe(t),e[t]=n}function yv(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-Xe(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function ma(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Xe(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var I=0;function th(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var nh,ga,rh,ih,oh,al=!1,Ei=[],Mt=null,At=null,Lt=null,Ir=new Map,Fr=new Map,Et=[],wv="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 Qu(e,t){switch(e){case"focusin":case"focusout":Mt=null;break;case"dragenter":case"dragleave":At=null;break;case"mouseover":case"mouseout":Lt=null;break;case"pointerover":case"pointerout":Ir.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fr.delete(t.pointerId)}}function sr(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=ai(t),t!==null&&ga(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function xv(e,t,n,r,i){switch(t){case"focusin":return Mt=sr(Mt,e,t,n,r,i),!0;case"dragenter":return At=sr(At,e,t,n,r,i),!0;case"mouseover":return Lt=sr(Lt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Ir.set(o,sr(Ir.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Fr.set(o,sr(Fr.get(o)||null,e,t,n,r,i)),!0}return!1}function sh(e){var t=Jt(e.target);if(t!==null){var n=pn(t);if(n!==null){if(t=n.tag,t===13){if(t=Xd(n),t!==null){e.blockedOn=t,oh(e.priority,function(){rh(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 Bi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ul(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);rl=r,n.target.dispatchEvent(r),rl=null}else return t=ai(n),t!==null&&ga(t),e.blockedOn=n,!1;t.shift()}return!0}function Xu(e,t,n){Bi(e)&&n.delete(t)}function Sv(){al=!1,Mt!==null&&Bi(Mt)&&(Mt=null),At!==null&&Bi(At)&&(At=null),Lt!==null&&Bi(Lt)&&(Lt=null),Ir.forEach(Xu),Fr.forEach(Xu)}function lr(e,t){e.blockedOn===t&&(e.blockedOn=null,al||(al=!0,De.unstable_scheduleCallback(De.unstable_NormalPriority,Sv)))}function zr(e){function t(i){return lr(i,e)}if(0<Ei.length){lr(Ei[0],e);for(var n=1;n<Ei.length;n++){var r=Ei[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Mt!==null&&lr(Mt,e),At!==null&&lr(At,e),Lt!==null&&lr(Lt,e),Ir.forEach(t),Fr.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);)sh(n),n.blockedOn===null&&Et.shift()}var Fn=vt.ReactCurrentBatchConfig,oo=!0;function Pv(e,t,n,r){var i=I,o=Fn.transition;Fn.transition=null;try{I=1,va(e,t,n,r)}finally{I=i,Fn.transition=o}}function Ev(e,t,n,r){var i=I,o=Fn.transition;Fn.transition=null;try{I=4,va(e,t,n,r)}finally{I=i,Fn.transition=o}}function va(e,t,n,r){if(oo){var i=ul(e,t,n,r);if(i===null)xs(e,t,r,so,n),Qu(e,r);else if(xv(i,e,t,n,r))r.stopPropagation();else if(Qu(e,r),t&4&&-1<wv.indexOf(e)){for(;i!==null;){var o=ai(i);if(o!==null&&nh(o),o=ul(e,t,n,r),o===null&&xs(e,t,r,so,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else xs(e,t,r,null,n)}}var so=null;function ul(e,t,n,r){if(so=null,e=ha(r),e=Jt(e),e!==null)if(t=pn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Xd(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 so=e,null}function lh(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(cv()){case pa:return 1;case qd:return 4;case ro:case fv:return 16;case Jd:return 536870912;default:return 16}default:return 16}}var kt=null,ya=null,Ui=null;function ah(){if(Ui)return Ui;var e,t=ya,n=t.length,r,i="value"in kt?kt.value:kt.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return Ui=i.slice(e,1<r?1-r:void 0)}function $i(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 Ci(){return!0}function Yu(){return!1}function Ne(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Ci:Yu,this.isPropagationStopped=Yu,this}return G(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=Ci)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ci)},persist:function(){},isPersistent:Ci}),t}var qn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wa=Ne(qn),li=G({},qn,{view:0,detail:0}),Cv=Ne(li),fs,ds,ar,jo=G({},li,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xa,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!==ar&&(ar&&e.type==="mousemove"?(fs=e.screenX-ar.screenX,ds=e.screenY-ar.screenY):ds=fs=0,ar=e),fs)},movementY:function(e){return"movementY"in e?e.movementY:ds}}),Zu=Ne(jo),kv=G({},jo,{dataTransfer:0}),Tv=Ne(kv),Rv=G({},li,{relatedTarget:0}),hs=Ne(Rv),Mv=G({},qn,{animationName:0,elapsedTime:0,pseudoElement:0}),Av=Ne(Mv),Lv=G({},qn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Dv=Ne(Lv),_v=G({},qn,{data:0}),bu=Ne(_v),Vv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Nv={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"},jv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ov(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=jv[e])?!!t[e]:!1}function xa(){return Ov}var Iv=G({},li,{key:function(e){if(e.key){var t=Vv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=$i(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Nv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xa,charCode:function(e){return e.type==="keypress"?$i(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?$i(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Fv=Ne(Iv),zv=G({},jo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),qu=Ne(zv),Bv=G({},li,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xa}),Uv=Ne(Bv),$v=G({},qn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Wv=Ne($v),Hv=G({},jo,{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}),Kv=Ne(Hv),Gv=[9,13,27,32],Sa=dt&&"CompositionEvent"in window,Er=null;dt&&"documentMode"in document&&(Er=document.documentMode);var Qv=dt&&"TextEvent"in window&&!Er,uh=dt&&(!Sa||Er&&8<Er&&11>=Er),Ju=" ",ec=!1;function ch(e,t){switch(e){case"keyup":return Gv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var xn=!1;function Xv(e,t){switch(e){case"compositionend":return fh(t);case"keypress":return t.which!==32?null:(ec=!0,Ju);case"textInput":return e=t.data,e===Ju&&ec?null:e;default:return null}}function Yv(e,t){if(xn)return e==="compositionend"||!Sa&&ch(e,t)?(e=ah(),Ui=ya=kt=null,xn=!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 uh&&t.locale!=="ko"?null:t.data;default:return null}}var Zv={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 tc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Zv[e.type]:t==="textarea"}function dh(e,t,n,r){Wd(r),t=lo(t,"onChange"),0<t.length&&(n=new wa("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Cr=null,Br=null;function bv(e){Eh(e,0)}function Oo(e){var t=En(e);if(Od(t))return e}function qv(e,t){if(e==="change")return t}var hh=!1;if(dt){var ps;if(dt){var ms="oninput"in document;if(!ms){var nc=document.createElement("div");nc.setAttribute("oninput","return;"),ms=typeof nc.oninput=="function"}ps=ms}else ps=!1;hh=ps&&(!document.documentMode||9<document.documentMode)}function rc(){Cr&&(Cr.detachEvent("onpropertychange",ph),Br=Cr=null)}function ph(e){if(e.propertyName==="value"&&Oo(Br)){var t=[];dh(t,Br,e,ha(e)),Qd(bv,t)}}function Jv(e,t,n){e==="focusin"?(rc(),Cr=t,Br=n,Cr.attachEvent("onpropertychange",ph)):e==="focusout"&&rc()}function ey(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Oo(Br)}function ty(e,t){if(e==="click")return Oo(t)}function ny(e,t){if(e==="input"||e==="change")return Oo(t)}function ry(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ze=typeof Object.is=="function"?Object.is:ry;function Ur(e,t){if(Ze(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(!Ks.call(t,i)||!Ze(e[i],t[i]))return!1}return!0}function ic(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function oc(e,t){var n=ic(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=ic(n)}}function mh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?mh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function gh(){for(var e=window,t=eo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=eo(e.document)}return t}function Pa(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 iy(e){var t=gh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&mh(n.ownerDocument.documentElement,n)){if(r!==null&&Pa(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,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=oc(n,o);var s=oc(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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 oy=dt&&"documentMode"in document&&11>=document.documentMode,Sn=null,cl=null,kr=null,fl=!1;function sc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;fl||Sn==null||Sn!==eo(r)||(r=Sn,"selectionStart"in r&&Pa(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}),kr&&Ur(kr,r)||(kr=r,r=lo(cl,"onSelect"),0<r.length&&(t=new wa("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Sn)))}function ki(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Pn={animationend:ki("Animation","AnimationEnd"),animationiteration:ki("Animation","AnimationIteration"),animationstart:ki("Animation","AnimationStart"),transitionend:ki("Transition","TransitionEnd")},gs={},vh={};dt&&(vh=document.createElement("div").style,"AnimationEvent"in window||(delete Pn.animationend.animation,delete Pn.animationiteration.animation,delete Pn.animationstart.animation),"TransitionEvent"in window||delete Pn.transitionend.transition);function Io(e){if(gs[e])return gs[e];if(!Pn[e])return e;var t=Pn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in vh)return gs[e]=t[n];return e}var yh=Io("animationend"),wh=Io("animationiteration"),xh=Io("animationstart"),Sh=Io("transitionend"),Ph=new Map,lc="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 Bt(e,t){Ph.set(e,t),hn(t,[e])}for(var vs=0;vs<lc.length;vs++){var ys=lc[vs],sy=ys.toLowerCase(),ly=ys[0].toUpperCase()+ys.slice(1);Bt(sy,"on"+ly)}Bt(yh,"onAnimationEnd");Bt(wh,"onAnimationIteration");Bt(xh,"onAnimationStart");Bt("dblclick","onDoubleClick");Bt("focusin","onFocus");Bt("focusout","onBlur");Bt(Sh,"onTransitionEnd");Un("onMouseEnter",["mouseout","mouseover"]);Un("onMouseLeave",["mouseout","mouseover"]);Un("onPointerEnter",["pointerout","pointerover"]);Un("onPointerLeave",["pointerout","pointerover"]);hn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));hn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));hn("onBeforeInput",["compositionend","keypress","textInput","paste"]);hn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));hn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));hn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vr="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(" "),ay=new Set("cancel close invalid load scroll toggle".split(" ").concat(vr));function ac(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,sv(r,t,void 0,e),e.currentTarget=null}function Eh(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 o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var l=r[s],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==o&&i.isPropagationStopped())break e;ac(i,l,u),o=a}else for(s=0;s<r.length;s++){if(l=r[s],a=l.instance,u=l.currentTarget,l=l.listener,a!==o&&i.isPropagationStopped())break e;ac(i,l,u),o=a}}}if(no)throw e=sl,no=!1,sl=null,e}function z(e,t){var n=t[gl];n===void 0&&(n=t[gl]=new Set);var r=e+"__bubble";n.has(r)||(Ch(t,e,2,!1),n.add(r))}function ws(e,t,n){var r=0;t&&(r|=4),Ch(n,e,r,t)}var Ti="_reactListening"+Math.random().toString(36).slice(2);function $r(e){if(!e[Ti]){e[Ti]=!0,Dd.forEach(function(n){n!=="selectionchange"&&(ay.has(n)||ws(n,!1,e),ws(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ti]||(t[Ti]=!0,ws("selectionchange",!1,t))}}function Ch(e,t,n,r){switch(lh(t)){case 1:var i=Pv;break;case 4:i=Ev;break;default:i=va}n=i.bind(null,t,n,e),i=void 0,!ol||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 xs(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var a=s.tag;if((a===3||a===4)&&(a=s.stateNode.containerInfo,a===i||a.nodeType===8&&a.parentNode===i))return;s=s.return}for(;l!==null;){if(s=Jt(l),s===null)return;if(a=s.tag,a===5||a===6){r=o=s;continue e}l=l.parentNode}}r=r.return}Qd(function(){var u=o,c=ha(n),f=[];e:{var d=Ph.get(e);if(d!==void 0){var g=wa,v=e;switch(e){case"keypress":if($i(n)===0)break e;case"keydown":case"keyup":g=Fv;break;case"focusin":v="focus",g=hs;break;case"focusout":v="blur",g=hs;break;case"beforeblur":case"afterblur":g=hs;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=Zu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=Tv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=Uv;break;case yh:case wh:case xh:g=Av;break;case Sh:g=Wv;break;case"scroll":g=Cv;break;case"wheel":g=Kv;break;case"copy":case"cut":case"paste":g=Dv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=qu}var y=(t&4)!==0,w=!y&&e==="scroll",h=y?d!==null?d+"Capture":null:d;y=[];for(var p=u,m;p!==null;){m=p;var x=m.stateNode;if(m.tag===5&&x!==null&&(m=x,h!==null&&(x=Or(p,h),x!=null&&y.push(Wr(p,x,m)))),w)break;p=p.return}0<y.length&&(d=new g(d,v,null,n,c),f.push({event:d,listeners:y}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",d&&n!==rl&&(v=n.relatedTarget||n.fromElement)&&(Jt(v)||v[ht]))break e;if((g||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,g?(v=n.relatedTarget||n.toElement,g=u,v=v?Jt(v):null,v!==null&&(w=pn(v),v!==w||v.tag!==5&&v.tag!==6)&&(v=null)):(g=null,v=u),g!==v)){if(y=Zu,x="onMouseLeave",h="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(y=qu,x="onPointerLeave",h="onPointerEnter",p="pointer"),w=g==null?d:En(g),m=v==null?d:En(v),d=new y(x,p+"leave",g,n,c),d.target=w,d.relatedTarget=m,x=null,Jt(c)===u&&(y=new y(h,p+"enter",v,n,c),y.target=m,y.relatedTarget=w,x=y),w=x,g&&v)t:{for(y=g,h=v,p=0,m=y;m;m=vn(m))p++;for(m=0,x=h;x;x=vn(x))m++;for(;0<p-m;)y=vn(y),p--;for(;0<m-p;)h=vn(h),m--;for(;p--;){if(y===h||h!==null&&y===h.alternate)break t;y=vn(y),h=vn(h)}y=null}else y=null;g!==null&&uc(f,d,g,y,!1),v!==null&&w!==null&&uc(f,w,v,y,!0)}}e:{if(d=u?En(u):window,g=d.nodeName&&d.nodeName.toLowerCase(),g==="select"||g==="input"&&d.type==="file")var P=qv;else if(tc(d))if(hh)P=ny;else{P=ey;var E=Jv}else(g=d.nodeName)&&g.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(P=ty);if(P&&(P=P(e,u))){dh(f,P,n,c);break e}E&&E(e,d,u),e==="focusout"&&(E=d._wrapperState)&&E.controlled&&d.type==="number"&&qs(d,"number",d.value)}switch(E=u?En(u):window,e){case"focusin":(tc(E)||E.contentEditable==="true")&&(Sn=E,cl=u,kr=null);break;case"focusout":kr=cl=Sn=null;break;case"mousedown":fl=!0;break;case"contextmenu":case"mouseup":case"dragend":fl=!1,sc(f,n,c);break;case"selectionchange":if(oy)break;case"keydown":case"keyup":sc(f,n,c)}var T;if(Sa)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else xn?ch(e,n)&&(C="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(C="onCompositionStart");C&&(uh&&n.locale!=="ko"&&(xn||C!=="onCompositionStart"?C==="onCompositionEnd"&&xn&&(T=ah()):(kt=c,ya="value"in kt?kt.value:kt.textContent,xn=!0)),E=lo(u,C),0<E.length&&(C=new bu(C,e,null,n,c),f.push({event:C,listeners:E}),T?C.data=T:(T=fh(n),T!==null&&(C.data=T)))),(T=Qv?Xv(e,n):Yv(e,n))&&(u=lo(u,"onBeforeInput"),0<u.length&&(c=new bu("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=T))}Eh(f,t)})}function Wr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function lo(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Or(e,n),o!=null&&r.unshift(Wr(e,o,i)),o=Or(e,t),o!=null&&r.push(Wr(e,o,i))),e=e.return}return r}function vn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function uc(e,t,n,r,i){for(var o=t._reactName,s=[];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=Or(n,o),a!=null&&s.unshift(Wr(n,a,l))):i||(a=Or(n,o),a!=null&&s.push(Wr(n,a,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var uy=/\r\n?/g,cy=/\u0000|\uFFFD/g;function cc(e){return(typeof e=="string"?e:""+e).replace(uy,`
39
- `).replace(cy,"")}function Ri(e,t,n){if(t=cc(t),cc(e)!==t&&n)throw Error(k(425))}function ao(){}var dl=null,hl=null;function pl(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 ml=typeof setTimeout=="function"?setTimeout:void 0,fy=typeof clearTimeout=="function"?clearTimeout:void 0,fc=typeof Promise=="function"?Promise:void 0,dy=typeof queueMicrotask=="function"?queueMicrotask:typeof fc<"u"?function(e){return fc.resolve(null).then(e).catch(hy)}:ml;function hy(e){setTimeout(function(){throw e})}function Ss(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),zr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);zr(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 dc(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 Jn=Math.random().toString(36).slice(2),et="__reactFiber$"+Jn,Hr="__reactProps$"+Jn,ht="__reactContainer$"+Jn,gl="__reactEvents$"+Jn,py="__reactListeners$"+Jn,my="__reactHandles$"+Jn;function Jt(e){var t=e[et];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ht]||n[et]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=dc(e);e!==null;){if(n=e[et])return n;e=dc(e)}return t}e=n,n=e.parentNode}return null}function ai(e){return e=e[et]||e[ht],!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(k(33))}function Fo(e){return e[Hr]||null}var vl=[],Cn=-1;function Ut(e){return{current:e}}function B(e){0>Cn||(e.current=vl[Cn],vl[Cn]=null,Cn--)}function F(e,t){Cn++,vl[Cn]=e.current,e.current=t}var It={},ve=Ut(It),Ce=Ut(!1),an=It;function $n(e,t){var n=e.type.contextTypes;if(!n)return It;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ke(e){return e=e.childContextTypes,e!=null}function uo(){B(Ce),B(ve)}function hc(e,t,n){if(ve.current!==It)throw Error(k(168));F(ve,t),F(Ce,n)}function kh(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(k(108,Jg(e)||"Unknown",i));return G({},n,r)}function co(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||It,an=ve.current,F(ve,e),F(Ce,Ce.current),!0}function pc(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=kh(e,t,an),r.__reactInternalMemoizedMergedChildContext=e,B(Ce),B(ve),F(ve,e)):B(Ce),F(Ce,n)}var st=null,zo=!1,Ps=!1;function Th(e){st===null?st=[e]:st.push(e)}function gy(e){zo=!0,Th(e)}function $t(){if(!Ps&&st!==null){Ps=!0;var e=0,t=I;try{var n=st;for(I=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}st=null,zo=!1}catch(i){throw st!==null&&(st=st.slice(e+1)),bd(pa,$t),i}finally{I=t,Ps=!1}}return null}var kn=[],Tn=0,fo=null,ho=0,Ie=[],Fe=0,un=null,lt=1,at="";function Yt(e,t){kn[Tn++]=ho,kn[Tn++]=fo,fo=e,ho=t}function Rh(e,t,n){Ie[Fe++]=lt,Ie[Fe++]=at,Ie[Fe++]=un,un=e;var r=lt;e=at;var i=32-Xe(r)-1;r&=~(1<<i),n+=1;var o=32-Xe(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,lt=1<<32-Xe(t)+i|n<<i|r,at=o+e}else lt=1<<o|n<<i|r,at=e}function Ea(e){e.return!==null&&(Yt(e,1),Rh(e,1,0))}function Ca(e){for(;e===fo;)fo=kn[--Tn],kn[Tn]=null,ho=kn[--Tn],kn[Tn]=null;for(;e===un;)un=Ie[--Fe],Ie[Fe]=null,at=Ie[--Fe],Ie[Fe]=null,lt=Ie[--Fe],Ie[Fe]=null}var Ae=null,Me=null,$=!1,Qe=null;function Mh(e,t){var n=ze(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 mc(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,Me=Dt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ae=e,Me=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=un!==null?{id:lt,overflow:at}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ze(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ae=e,Me=null,!0):!1;default:return!1}}function yl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function wl(e){if($){var t=Me;if(t){var n=t;if(!mc(e,t)){if(yl(e))throw Error(k(418));t=Dt(n.nextSibling);var r=Ae;t&&mc(e,t)?Mh(r,n):(e.flags=e.flags&-4097|2,$=!1,Ae=e)}}else{if(yl(e))throw Error(k(418));e.flags=e.flags&-4097|2,$=!1,Ae=e}}}function gc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ae=e}function Mi(e){if(e!==Ae)return!1;if(!$)return gc(e),$=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!pl(e.type,e.memoizedProps)),t&&(t=Me)){if(yl(e))throw Ah(),Error(k(418));for(;t;)Mh(e,t),t=Dt(t.nextSibling)}if(gc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(k(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Me=Dt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Me=null}}else Me=Ae?Dt(e.stateNode.nextSibling):null;return!0}function Ah(){for(var e=Me;e;)e=Dt(e.nextSibling)}function Wn(){Me=Ae=null,$=!1}function ka(e){Qe===null?Qe=[e]:Qe.push(e)}var vy=vt.ReactCurrentBatchConfig;function ur(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(k(309));var r=n.stateNode}if(!r)throw Error(k(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var l=i.refs;s===null?delete l[o]:l[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(k(284));if(!n._owner)throw Error(k(290,e))}return e}function Ai(e,t){throw e=Object.prototype.toString.call(t),Error(k(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function vc(e){var t=e._init;return t(e._payload)}function Lh(e){function t(h,p){if(e){var m=h.deletions;m===null?(h.deletions=[p],h.flags|=16):m.push(p)}}function n(h,p){if(!e)return null;for(;p!==null;)t(h,p),p=p.sibling;return null}function r(h,p){for(h=new Map;p!==null;)p.key!==null?h.set(p.key,p):h.set(p.index,p),p=p.sibling;return h}function i(h,p){return h=jt(h,p),h.index=0,h.sibling=null,h}function o(h,p,m){return h.index=m,e?(m=h.alternate,m!==null?(m=m.index,m<p?(h.flags|=2,p):m):(h.flags|=2,p)):(h.flags|=1048576,p)}function s(h){return e&&h.alternate===null&&(h.flags|=2),h}function l(h,p,m,x){return p===null||p.tag!==6?(p=As(m,h.mode,x),p.return=h,p):(p=i(p,m),p.return=h,p)}function a(h,p,m,x){var P=m.type;return P===wn?c(h,p,m.props.children,x,m.key):p!==null&&(p.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===St&&vc(P)===p.type)?(x=i(p,m.props),x.ref=ur(h,p,m),x.return=h,x):(x=Yi(m.type,m.key,m.props,null,h.mode,x),x.ref=ur(h,p,m),x.return=h,x)}function u(h,p,m,x){return p===null||p.tag!==4||p.stateNode.containerInfo!==m.containerInfo||p.stateNode.implementation!==m.implementation?(p=Ls(m,h.mode,x),p.return=h,p):(p=i(p,m.children||[]),p.return=h,p)}function c(h,p,m,x,P){return p===null||p.tag!==7?(p=on(m,h.mode,x,P),p.return=h,p):(p=i(p,m),p.return=h,p)}function f(h,p,m){if(typeof p=="string"&&p!==""||typeof p=="number")return p=As(""+p,h.mode,m),p.return=h,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case yi:return m=Yi(p.type,p.key,p.props,null,h.mode,m),m.ref=ur(h,null,p),m.return=h,m;case yn:return p=Ls(p,h.mode,m),p.return=h,p;case St:var x=p._init;return f(h,x(p._payload),m)}if(mr(p)||ir(p))return p=on(p,h.mode,m,null),p.return=h,p;Ai(h,p)}return null}function d(h,p,m,x){var P=p!==null?p.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return P!==null?null:l(h,p,""+m,x);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case yi:return m.key===P?a(h,p,m,x):null;case yn:return m.key===P?u(h,p,m,x):null;case St:return P=m._init,d(h,p,P(m._payload),x)}if(mr(m)||ir(m))return P!==null?null:c(h,p,m,x,null);Ai(h,m)}return null}function g(h,p,m,x,P){if(typeof x=="string"&&x!==""||typeof x=="number")return h=h.get(m)||null,l(p,h,""+x,P);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case yi:return h=h.get(x.key===null?m:x.key)||null,a(p,h,x,P);case yn:return h=h.get(x.key===null?m:x.key)||null,u(p,h,x,P);case St:var E=x._init;return g(h,p,m,E(x._payload),P)}if(mr(x)||ir(x))return h=h.get(m)||null,c(p,h,x,P,null);Ai(p,x)}return null}function v(h,p,m,x){for(var P=null,E=null,T=p,C=p=0,N=null;T!==null&&C<m.length;C++){T.index>C?(N=T,T=null):N=T.sibling;var L=d(h,T,m[C],x);if(L===null){T===null&&(T=N);break}e&&T&&L.alternate===null&&t(h,T),p=o(L,p,C),E===null?P=L:E.sibling=L,E=L,T=N}if(C===m.length)return n(h,T),$&&Yt(h,C),P;if(T===null){for(;C<m.length;C++)T=f(h,m[C],x),T!==null&&(p=o(T,p,C),E===null?P=T:E.sibling=T,E=T);return $&&Yt(h,C),P}for(T=r(h,T);C<m.length;C++)N=g(T,h,C,m[C],x),N!==null&&(e&&N.alternate!==null&&T.delete(N.key===null?C:N.key),p=o(N,p,C),E===null?P=N:E.sibling=N,E=N);return e&&T.forEach(function(re){return t(h,re)}),$&&Yt(h,C),P}function y(h,p,m,x){var P=ir(m);if(typeof P!="function")throw Error(k(150));if(m=P.call(m),m==null)throw Error(k(151));for(var E=P=null,T=p,C=p=0,N=null,L=m.next();T!==null&&!L.done;C++,L=m.next()){T.index>C?(N=T,T=null):N=T.sibling;var re=d(h,T,L.value,x);if(re===null){T===null&&(T=N);break}e&&T&&re.alternate===null&&t(h,T),p=o(re,p,C),E===null?P=re:E.sibling=re,E=re,T=N}if(L.done)return n(h,T),$&&Yt(h,C),P;if(T===null){for(;!L.done;C++,L=m.next())L=f(h,L.value,x),L!==null&&(p=o(L,p,C),E===null?P=L:E.sibling=L,E=L);return $&&Yt(h,C),P}for(T=r(h,T);!L.done;C++,L=m.next())L=g(T,h,C,L.value,x),L!==null&&(e&&L.alternate!==null&&T.delete(L.key===null?C:L.key),p=o(L,p,C),E===null?P=L:E.sibling=L,E=L);return e&&T.forEach(function(yt){return t(h,yt)}),$&&Yt(h,C),P}function w(h,p,m,x){if(typeof m=="object"&&m!==null&&m.type===wn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case yi:e:{for(var P=m.key,E=p;E!==null;){if(E.key===P){if(P=m.type,P===wn){if(E.tag===7){n(h,E.sibling),p=i(E,m.props.children),p.return=h,h=p;break e}}else if(E.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===St&&vc(P)===E.type){n(h,E.sibling),p=i(E,m.props),p.ref=ur(h,E,m),p.return=h,h=p;break e}n(h,E);break}else t(h,E);E=E.sibling}m.type===wn?(p=on(m.props.children,h.mode,x,m.key),p.return=h,h=p):(x=Yi(m.type,m.key,m.props,null,h.mode,x),x.ref=ur(h,p,m),x.return=h,h=x)}return s(h);case yn:e:{for(E=m.key;p!==null;){if(p.key===E)if(p.tag===4&&p.stateNode.containerInfo===m.containerInfo&&p.stateNode.implementation===m.implementation){n(h,p.sibling),p=i(p,m.children||[]),p.return=h,h=p;break e}else{n(h,p);break}else t(h,p);p=p.sibling}p=Ls(m,h.mode,x),p.return=h,h=p}return s(h);case St:return E=m._init,w(h,p,E(m._payload),x)}if(mr(m))return v(h,p,m,x);if(ir(m))return y(h,p,m,x);Ai(h,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,p!==null&&p.tag===6?(n(h,p.sibling),p=i(p,m),p.return=h,h=p):(n(h,p),p=As(m,h.mode,x),p.return=h,h=p),s(h)):n(h,p)}return w}var Hn=Lh(!0),Dh=Lh(!1),po=Ut(null),mo=null,Rn=null,Ta=null;function Ra(){Ta=Rn=mo=null}function Ma(e){var t=po.current;B(po),e._currentValue=t}function xl(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 zn(e,t){mo=e,Ta=Rn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ee=!0),e.firstContext=null)}function Ue(e){var t=e._currentValue;if(Ta!==e)if(e={context:e,memoizedValue:t,next:null},Rn===null){if(mo===null)throw Error(k(308));Rn=e,mo.dependencies={lanes:0,firstContext:e}}else Rn=Rn.next=e;return t}var en=null;function Aa(e){en===null?en=[e]:en.push(e)}function _h(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,pt(e,r)}function pt(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 La(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vh(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 ut(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function _t(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,O&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,pt(e,n)}return i=r.interleaved,i===null?(t.next=t,Aa(r)):(t.next=i.next,i.next=t),r.interleaved=t,pt(e,n)}function Wi(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,ma(e,n)}}function yc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,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 go(e,t,n,r){var i=e.updateQueue;Pt=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,u=a.next;a.next=null,s===null?o=u:s.next=u,s=a;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==s&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(o!==null){var f=i.baseState;s=0,c=u=a=null,l=o;do{var d=l.lane,g=l.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var v=e,y=l;switch(d=t,g=n,y.tag){case 1:if(v=y.payload,typeof v=="function"){f=v.call(g,f,d);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=y.payload,d=typeof v=="function"?v.call(g,f,d):v,d==null)break e;f=G({},f,d);break e;case 2:Pt=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[l]:d.push(l))}else g={eventTime:g,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=g,a=f):c=c.next=g,s|=d;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;d=l,l=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(c===null&&(a=f),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);fn|=s,e.lanes=s,e.memoizedState=f}}function wc(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(k(191,i));i.call(r)}}}var ui={},nt=Ut(ui),Kr=Ut(ui),Gr=Ut(ui);function tn(e){if(e===ui)throw Error(k(174));return e}function Da(e,t){switch(F(Gr,t),F(Kr,e),F(nt,ui),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:el(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=el(t,e)}B(nt),F(nt,t)}function Kn(){B(nt),B(Kr),B(Gr)}function Nh(e){tn(Gr.current);var t=tn(nt.current),n=el(t,e.type);t!==n&&(F(Kr,e),F(nt,n))}function _a(e){Kr.current===e&&(B(nt),B(Kr))}var W=Ut(0);function vo(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 Es=[];function Va(){for(var e=0;e<Es.length;e++)Es[e]._workInProgressVersionPrimary=null;Es.length=0}var Hi=vt.ReactCurrentDispatcher,Cs=vt.ReactCurrentBatchConfig,cn=0,K=null,ee=null,oe=null,yo=!1,Tr=!1,Qr=0,yy=0;function fe(){throw Error(k(321))}function Na(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ze(e[n],t[n]))return!1;return!0}function ja(e,t,n,r,i,o){if(cn=o,K=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Hi.current=e===null||e.memoizedState===null?Py:Ey,e=n(r,i),Tr){o=0;do{if(Tr=!1,Qr=0,25<=o)throw Error(k(301));o+=1,oe=ee=null,t.updateQueue=null,Hi.current=Cy,e=n(r,i)}while(Tr)}if(Hi.current=wo,t=ee!==null&&ee.next!==null,cn=0,oe=ee=K=null,yo=!1,t)throw Error(k(300));return e}function Oa(){var e=Qr!==0;return Qr=0,e}function Je(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return oe===null?K.memoizedState=oe=e:oe=oe.next=e,oe}function $e(){if(ee===null){var e=K.alternate;e=e!==null?e.memoizedState:null}else e=ee.next;var t=oe===null?K.memoizedState:oe.next;if(t!==null)oe=t,ee=e;else{if(e===null)throw Error(k(310));ee=e,e={memoizedState:ee.memoizedState,baseState:ee.baseState,baseQueue:ee.baseQueue,queue:ee.queue,next:null},oe===null?K.memoizedState=oe=e:oe=oe.next=e}return oe}function Xr(e,t){return typeof t=="function"?t(e):t}function ks(e){var t=$e(),n=t.queue;if(n===null)throw Error(k(311));n.lastRenderedReducer=e;var r=ee,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var l=s=null,a=null,u=o;do{var c=u.lane;if((cn&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,s=r):a=a.next=f,K.lanes|=c,fn|=c}u=u.next}while(u!==null&&u!==o);a===null?s=r:a.next=l,Ze(r,t.memoizedState)||(Ee=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,K.lanes|=o,fn|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ts(e){var t=$e(),n=t.queue;if(n===null)throw Error(k(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);Ze(o,t.memoizedState)||(Ee=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function jh(){}function Oh(e,t){var n=K,r=$e(),i=t(),o=!Ze(r.memoizedState,i);if(o&&(r.memoizedState=i,Ee=!0),r=r.queue,Ia(zh.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||oe!==null&&oe.memoizedState.tag&1){if(n.flags|=2048,Yr(9,Fh.bind(null,n,r,i,t),void 0,null),se===null)throw Error(k(349));cn&30||Ih(n,t,i)}return i}function Ih(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=K.updateQueue,t===null?(t={lastEffect:null,stores:null},K.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Fh(e,t,n,r){t.value=n,t.getSnapshot=r,Bh(t)&&Uh(e)}function zh(e,t,n){return n(function(){Bh(t)&&Uh(e)})}function Bh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ze(e,n)}catch{return!0}}function Uh(e){var t=pt(e,1);t!==null&&Ye(t,e,1,-1)}function xc(e){var t=Je();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Xr,lastRenderedState:e},t.queue=e,e=e.dispatch=Sy.bind(null,K,e),[t.memoizedState,e]}function Yr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=K.updateQueue,t===null?(t={lastEffect:null,stores:null},K.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 $h(){return $e().memoizedState}function Ki(e,t,n,r){var i=Je();K.flags|=e,i.memoizedState=Yr(1|t,n,void 0,r===void 0?null:r)}function Bo(e,t,n,r){var i=$e();r=r===void 0?null:r;var o=void 0;if(ee!==null){var s=ee.memoizedState;if(o=s.destroy,r!==null&&Na(r,s.deps)){i.memoizedState=Yr(t,n,o,r);return}}K.flags|=e,i.memoizedState=Yr(1|t,n,o,r)}function Sc(e,t){return Ki(8390656,8,e,t)}function Ia(e,t){return Bo(2048,8,e,t)}function Wh(e,t){return Bo(4,2,e,t)}function Hh(e,t){return Bo(4,4,e,t)}function Kh(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 Gh(e,t,n){return n=n!=null?n.concat([e]):null,Bo(4,4,Kh.bind(null,t,e),n)}function Fa(){}function Qh(e,t){var n=$e();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Na(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Xh(e,t){var n=$e();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Na(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Yh(e,t,n){return cn&21?(Ze(n,t)||(n=eh(),K.lanes|=n,fn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ee=!0),e.memoizedState=n)}function wy(e,t){var n=I;I=n!==0&&4>n?n:4,e(!0);var r=Cs.transition;Cs.transition={};try{e(!1),t()}finally{I=n,Cs.transition=r}}function Zh(){return $e().memoizedState}function xy(e,t,n){var r=Nt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},bh(e))qh(t,n);else if(n=_h(e,t,n,r),n!==null){var i=we();Ye(n,e,r,i),Jh(n,t,r)}}function Sy(e,t,n){var r=Nt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(bh(e))qh(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,Ze(l,s)){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=_h(e,t,i,r),n!==null&&(i=we(),Ye(n,e,r,i),Jh(n,t,r))}}function bh(e){var t=e.alternate;return e===K||t!==null&&t===K}function qh(e,t){Tr=yo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Jh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ma(e,n)}}var wo={readContext:Ue,useCallback:fe,useContext:fe,useEffect:fe,useImperativeHandle:fe,useInsertionEffect:fe,useLayoutEffect:fe,useMemo:fe,useReducer:fe,useRef:fe,useState:fe,useDebugValue:fe,useDeferredValue:fe,useTransition:fe,useMutableSource:fe,useSyncExternalStore:fe,useId:fe,unstable_isNewReconciler:!1},Py={readContext:Ue,useCallback:function(e,t){return Je().memoizedState=[e,t===void 0?null:t],e},useContext:Ue,useEffect:Sc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ki(4194308,4,Kh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ki(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ki(4,2,e,t)},useMemo:function(e,t){var n=Je();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Je();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=xy.bind(null,K,e),[r.memoizedState,e]},useRef:function(e){var t=Je();return e={current:e},t.memoizedState=e},useState:xc,useDebugValue:Fa,useDeferredValue:function(e){return Je().memoizedState=e},useTransition:function(){var e=xc(!1),t=e[0];return e=wy.bind(null,e[1]),Je().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=K,i=Je();if($){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),se===null)throw Error(k(349));cn&30||Ih(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Sc(zh.bind(null,r,o,e),[e]),r.flags|=2048,Yr(9,Fh.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Je(),t=se.identifierPrefix;if($){var n=at,r=lt;n=(r&~(1<<32-Xe(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Qr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=yy++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Ey={readContext:Ue,useCallback:Qh,useContext:Ue,useEffect:Ia,useImperativeHandle:Gh,useInsertionEffect:Wh,useLayoutEffect:Hh,useMemo:Xh,useReducer:ks,useRef:$h,useState:function(){return ks(Xr)},useDebugValue:Fa,useDeferredValue:function(e){var t=$e();return Yh(t,ee.memoizedState,e)},useTransition:function(){var e=ks(Xr)[0],t=$e().memoizedState;return[e,t]},useMutableSource:jh,useSyncExternalStore:Oh,useId:Zh,unstable_isNewReconciler:!1},Cy={readContext:Ue,useCallback:Qh,useContext:Ue,useEffect:Ia,useImperativeHandle:Gh,useInsertionEffect:Wh,useLayoutEffect:Hh,useMemo:Xh,useReducer:Ts,useRef:$h,useState:function(){return Ts(Xr)},useDebugValue:Fa,useDeferredValue:function(e){var t=$e();return ee===null?t.memoizedState=e:Yh(t,ee.memoizedState,e)},useTransition:function(){var e=Ts(Xr)[0],t=$e().memoizedState;return[e,t]},useMutableSource:jh,useSyncExternalStore:Oh,useId:Zh,unstable_isNewReconciler:!1};function Ke(e,t){if(e&&e.defaultProps){t=G({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Sl(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:G({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Uo={isMounted:function(e){return(e=e._reactInternals)?pn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=we(),i=Nt(e),o=ut(r,i);o.payload=t,n!=null&&(o.callback=n),t=_t(e,o,i),t!==null&&(Ye(t,e,i,r),Wi(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=we(),i=Nt(e),o=ut(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=_t(e,o,i),t!==null&&(Ye(t,e,i,r),Wi(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=we(),r=Nt(e),i=ut(n,r);i.tag=2,t!=null&&(i.callback=t),t=_t(e,i,r),t!==null&&(Ye(t,e,r,n),Wi(t,e,r))}};function Pc(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!Ur(n,r)||!Ur(i,o):!0}function ep(e,t,n){var r=!1,i=It,o=t.contextType;return typeof o=="object"&&o!==null?o=Ue(o):(i=ke(t)?an:ve.current,r=t.contextTypes,o=(r=r!=null)?$n(e,i):It),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Uo,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Ec(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&&Uo.enqueueReplaceState(t,t.state,null)}function Pl(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},La(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Ue(o):(o=ke(t)?an:ve.current,i.context=$n(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Sl(e,t,o,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&&Uo.enqueueReplaceState(i,i.state,null),go(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+=qg(r),r=r.return;while(r);var i=n}catch(o){i=`
40
- Error generating stack: `+o.message+`
41
- `+o.stack}return{value:e,source:t,stack:i,digest:null}}function Rs(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function El(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var ky=typeof WeakMap=="function"?WeakMap:Map;function tp(e,t,n){n=ut(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){So||(So=!0,Vl=r),El(e,t)},n}function np(e,t,n){n=ut(-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(){El(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){El(e,t),typeof r!="function"&&(Vt===null?Vt=new Set([this]):Vt.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Cc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ky;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=zy.bind(null,e,t,n),t.then(e,e))}function kc(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 Tc(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=ut(-1,1),t.tag=2,_t(n,t,1))),n.lanes|=1),e)}var Ty=vt.ReactCurrentOwner,Ee=!1;function ye(e,t,n,r){t.child=e===null?Dh(t,null,n,r):Hn(t,e.child,n,r)}function Rc(e,t,n,r,i){n=n.render;var o=t.ref;return zn(t,i),r=ja(e,t,n,r,o,i),n=Oa(),e!==null&&!Ee?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,mt(e,t,i)):($&&n&&Ea(t),t.flags|=1,ye(e,t,r,i),t.child)}function Mc(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Ga(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,rp(e,t,o,r,i)):(e=Yi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Ur,n(s,r)&&e.ref===t.ref)return mt(e,t,i)}return t.flags|=1,e=jt(o,r),e.ref=t.ref,e.return=t,t.child=e}function rp(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Ur(o,r)&&e.ref===t.ref)if(Ee=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Ee=!0);else return t.lanes=e.lanes,mt(e,t,i)}return Cl(e,t,n,r,i)}function ip(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},F(An,Re),Re|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,F(An,Re),Re|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,F(An,Re),Re|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,F(An,Re),Re|=r;return ye(e,t,i,n),t.child}function op(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Cl(e,t,n,r,i){var o=ke(n)?an:ve.current;return o=$n(t,o),zn(t,i),n=ja(e,t,n,r,o,i),r=Oa(),e!==null&&!Ee?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,mt(e,t,i)):($&&r&&Ea(t),t.flags|=1,ye(e,t,n,i),t.child)}function Ac(e,t,n,r,i){if(ke(n)){var o=!0;co(t)}else o=!1;if(zn(t,i),t.stateNode===null)Gi(e,t),ep(t,n,r),Pl(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var a=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ue(u):(u=ke(n)?an:ve.current,u=$n(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||a!==u)&&Ec(t,s,r,u),Pt=!1;var d=t.memoizedState;s.state=d,go(t,r,s,i),a=t.memoizedState,l!==r||d!==a||Ce.current||Pt?(typeof c=="function"&&(Sl(t,n,c,r),a=t.memoizedState),(l=Pt||Pc(t,n,l,r,d,a,u))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),s.props=r,s.state=a,s.context=u,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Vh(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Ke(t.type,l),s.props=u,f=t.pendingProps,d=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=Ue(a):(a=ke(n)?an:ve.current,a=$n(t,a));var g=n.getDerivedStateFromProps;(c=typeof g=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==f||d!==a)&&Ec(t,s,r,a),Pt=!1,d=t.memoizedState,s.state=d,go(t,r,s,i);var v=t.memoizedState;l!==f||d!==v||Ce.current||Pt?(typeof g=="function"&&(Sl(t,n,g,r),v=t.memoizedState),(u=Pt||Pc(t,n,u,r,d,v,a)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,v,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,v,a)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),s.props=r,s.state=v,s.context=a,r=u):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return kl(e,t,n,r,o,i)}function kl(e,t,n,r,i,o){op(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&pc(t,n,!1),mt(e,t,o);r=t.stateNode,Ty.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Hn(t,e.child,null,o),t.child=Hn(t,null,l,o)):ye(e,t,l,o),t.memoizedState=r.state,i&&pc(t,n,!0),t.child}function sp(e){var t=e.stateNode;t.pendingContext?hc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&hc(e,t.context,!1),Da(e,t.containerInfo)}function Lc(e,t,n,r,i){return Wn(),ka(i),t.flags|=256,ye(e,t,n,r),t.child}var Tl={dehydrated:null,treeContext:null,retryLane:0};function Rl(e){return{baseLanes:e,cachePool:null,transitions:null}}function lp(e,t,n){var r=t.pendingProps,i=W.current,o=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),F(W,i&1),e===null)return wl(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):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=Ho(s,r,0,null),e=on(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Rl(n),t.memoizedState=Tl,e):za(t,s));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return Ry(e,t,s,r,l,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,l=i.sibling;var a={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=jt(i,a),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=jt(l,o):(o=on(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?Rl(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=Tl,r}return o=e.child,e=o.sibling,r=jt(o,{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 za(e,t){return t=Ho({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Li(e,t,n,r){return r!==null&&ka(r),Hn(t,e.child,null,n),e=za(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ry(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=Rs(Error(k(422))),Li(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Ho({mode:"visible",children:r.children},i,0,null),o=on(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Hn(t,e.child,null,s),t.child.memoizedState=Rl(s),t.memoizedState=Tl,o);if(!(t.mode&1))return Li(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(k(419)),r=Rs(o,r,void 0),Li(e,t,s,r)}if(l=(s&e.childLanes)!==0,Ee||l){if(r=se,r!==null){switch(s&-s){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|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,pt(e,i),Ye(r,e,i,-1))}return Ka(),r=Rs(Error(k(421))),Li(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=By.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Me=Dt(i.nextSibling),Ae=t,$=!0,Qe=null,e!==null&&(Ie[Fe++]=lt,Ie[Fe++]=at,Ie[Fe++]=un,lt=e.id,at=e.overflow,un=t),t=za(t,r.children),t.flags|=4096,t)}function Dc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),xl(e.return,t,n)}function Ms(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function ap(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ye(e,t,r.children,n),r=W.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&&Dc(e,n,t);else if(e.tag===19)Dc(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(F(W,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&&vo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ms(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&vo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ms(t,!0,n,null,o);break;case"together":Ms(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Gi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function mt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),fn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(k(153));if(t.child!==null){for(e=t.child,n=jt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=jt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function My(e,t,n){switch(t.tag){case 3:sp(t),Wn();break;case 5:Nh(t);break;case 1:ke(t.type)&&co(t);break;case 4:Da(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;F(po,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(F(W,W.current&1),t.flags|=128,null):n&t.child.childLanes?lp(e,t,n):(F(W,W.current&1),e=mt(e,t,n),e!==null?e.sibling:null);F(W,W.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return ap(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),F(W,W.current),r)break;return null;case 22:case 23:return t.lanes=0,ip(e,t,n)}return mt(e,t,n)}var up,Ml,cp,fp;up=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}};Ml=function(){};cp=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,tn(nt.current);var o=null;switch(n){case"input":i=Zs(e,i),r=Zs(e,r),o=[];break;case"select":i=G({},i,{value:void 0}),r=G({},r,{value:void 0}),o=[];break;case"textarea":i=Js(e,i),r=Js(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ao)}tl(n,r);var s;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Nr.hasOwnProperty(u)?o||(o=[]):(o=o||[]).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(s in l)!l.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in a)a.hasOwnProperty(s)&&l[s]!==a[s]&&(n||(n={}),n[s]=a[s])}else n||(o||(o=[]),o.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(o=o||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(o=o||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Nr.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&z("scroll",e),o||l===a||(o=[])):(o=o||[]).push(u,a))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};fp=function(e,t,n,r){n!==r&&(t.flags|=4)};function cr(e,t){if(!$)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 de(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 Ay(e,t,n){var r=t.pendingProps;switch(Ca(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return de(t),null;case 1:return ke(t.type)&&uo(),de(t),null;case 3:return r=t.stateNode,Kn(),B(Ce),B(ve),Va(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Mi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Qe!==null&&(Ol(Qe),Qe=null))),Ml(e,t),de(t),null;case 5:_a(t);var i=tn(Gr.current);if(n=t.type,e!==null&&t.stateNode!=null)cp(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(k(166));return de(t),null}if(e=tn(nt.current),Mi(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[et]=t,r[Hr]=o,e=(t.mode&1)!==0,n){case"dialog":z("cancel",r),z("close",r);break;case"iframe":case"object":case"embed":z("load",r);break;case"video":case"audio":for(i=0;i<vr.length;i++)z(vr[i],r);break;case"source":z("error",r);break;case"img":case"image":case"link":z("error",r),z("load",r);break;case"details":z("toggle",r);break;case"input":Bu(r,o),z("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},z("invalid",r);break;case"textarea":$u(r,o),z("invalid",r)}tl(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var l=o[s];s==="children"?typeof l=="string"?r.textContent!==l&&(o.suppressHydrationWarning!==!0&&Ri(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&Ri(r.textContent,l,e),i=["children",""+l]):Nr.hasOwnProperty(s)&&l!=null&&s==="onScroll"&&z("scroll",r)}switch(n){case"input":wi(r),Uu(r,o,!0);break;case"textarea":wi(r),Wu(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=ao)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=zd(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[et]=t,e[Hr]=r,up(e,t,!1,!1),t.stateNode=e;e:{switch(s=nl(n,r),n){case"dialog":z("cancel",e),z("close",e),i=r;break;case"iframe":case"object":case"embed":z("load",e),i=r;break;case"video":case"audio":for(i=0;i<vr.length;i++)z(vr[i],e);i=r;break;case"source":z("error",e),i=r;break;case"img":case"image":case"link":z("error",e),z("load",e),i=r;break;case"details":z("toggle",e),i=r;break;case"input":Bu(e,r),i=Zs(e,r),z("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=G({},r,{value:void 0}),z("invalid",e);break;case"textarea":$u(e,r),i=Js(e,r),z("invalid",e);break;default:i=r}tl(n,i),l=i;for(o in l)if(l.hasOwnProperty(o)){var a=l[o];o==="style"?$d(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Bd(e,a)):o==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&jr(e,a):typeof a=="number"&&jr(e,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Nr.hasOwnProperty(o)?a!=null&&o==="onScroll"&&z("scroll",e):a!=null&&ua(e,o,a,s))}switch(n){case"input":wi(e),Uu(e,r,!1);break;case"textarea":wi(e),Wu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ot(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?jn(e,!!r.multiple,o,!1):r.defaultValue!=null&&jn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=ao)}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 de(t),null;case 6:if(e&&t.stateNode!=null)fp(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(k(166));if(n=tn(Gr.current),tn(nt.current),Mi(t)){if(r=t.stateNode,n=t.memoizedProps,r[et]=t,(o=r.nodeValue!==n)&&(e=Ae,e!==null))switch(e.tag){case 3:Ri(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ri(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[et]=t,t.stateNode=r}return de(t),null;case 13:if(B(W),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if($&&Me!==null&&t.mode&1&&!(t.flags&128))Ah(),Wn(),t.flags|=98560,o=!1;else if(o=Mi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(k(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(k(317));o[et]=t}else Wn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;de(t),o=!1}else Qe!==null&&(Ol(Qe),Qe=null),o=!0;if(!o)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||W.current&1?te===0&&(te=3):Ka())),t.updateQueue!==null&&(t.flags|=4),de(t),null);case 4:return Kn(),Ml(e,t),e===null&&$r(t.stateNode.containerInfo),de(t),null;case 10:return Ma(t.type._context),de(t),null;case 17:return ke(t.type)&&uo(),de(t),null;case 19:if(B(W),o=t.memoizedState,o===null)return de(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)cr(o,!1);else{if(te!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=vo(e),s!==null){for(t.flags|=128,cr(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return F(W,W.current&1|2),t.child}e=e.sibling}o.tail!==null&&b()>Qn&&(t.flags|=128,r=!0,cr(o,!1),t.lanes=4194304)}else{if(!r)if(e=vo(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),cr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!$)return de(t),null}else 2*b()-o.renderingStartTime>Qn&&n!==1073741824&&(t.flags|=128,r=!0,cr(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=b(),t.sibling=null,n=W.current,F(W,r?n&1|2:n&1),t):(de(t),null);case 22:case 23:return Ha(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Re&1073741824&&(de(t),t.subtreeFlags&6&&(t.flags|=8192)):de(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function Ly(e,t){switch(Ca(t),t.tag){case 1:return ke(t.type)&&uo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Kn(),B(Ce),B(ve),Va(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return _a(t),null;case 13:if(B(W),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));Wn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(W),null;case 4:return Kn(),null;case 10:return Ma(t.type._context),null;case 22:case 23:return Ha(),null;case 24:return null;default:return null}}var Di=!1,pe=!1,Dy=typeof WeakSet=="function"?WeakSet:Set,A=null;function Mn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){X(e,t,r)}else n.current=null}function Al(e,t,n){try{n()}catch(r){X(e,t,r)}}var _c=!1;function _y(e,t){if(dl=oo,e=gh(),Pa(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,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var g;f!==n||i!==0&&f.nodeType!==3||(l=s+i),f!==o||r!==0&&f.nodeType!==3||(a=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(g=f.firstChild)!==null;)d=f,f=g;for(;;){if(f===e)break t;if(d===n&&++u===i&&(l=s),d===o&&++c===r&&(a=s),(g=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=g}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(hl={focusedElem:e,selectionRange:n},oo=!1,A=t;A!==null;)if(t=A,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,A=e;else for(;A!==null;){t=A;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,w=v.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?y:Ke(t.type,y),w);h.__reactInternalSnapshotBeforeUpdate=p}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(k(163))}}catch(x){X(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,A=e;break}A=t.return}return v=_c,_c=!1,v}function Rr(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 o=i.destroy;i.destroy=void 0,o!==void 0&&Al(t,n,o)}i=i.next}while(i!==r)}}function $o(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 Ll(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 dp(e){var t=e.alternate;t!==null&&(e.alternate=null,dp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[et],delete t[Hr],delete t[gl],delete t[py],delete t[my])),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 hp(e){return e.tag===5||e.tag===3||e.tag===4}function Vc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hp(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 Dl(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=ao));else if(r!==4&&(e=e.child,e!==null))for(Dl(e,t,n),e=e.sibling;e!==null;)Dl(e,t,n),e=e.sibling}function _l(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(_l(e,t,n),e=e.sibling;e!==null;)_l(e,t,n),e=e.sibling}var le=null,Ge=!1;function wt(e,t,n){for(n=n.child;n!==null;)pp(e,t,n),n=n.sibling}function pp(e,t,n){if(tt&&typeof tt.onCommitFiberUnmount=="function")try{tt.onCommitFiberUnmount(No,n)}catch{}switch(n.tag){case 5:pe||Mn(n,t);case 6:var r=le,i=Ge;le=null,wt(e,t,n),le=r,Ge=i,le!==null&&(Ge?(e=le,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):le.removeChild(n.stateNode));break;case 18:le!==null&&(Ge?(e=le,n=n.stateNode,e.nodeType===8?Ss(e.parentNode,n):e.nodeType===1&&Ss(e,n),zr(e)):Ss(le,n.stateNode));break;case 4:r=le,i=Ge,le=n.stateNode.containerInfo,Ge=!0,wt(e,t,n),le=r,Ge=i;break;case 0:case 11:case 14:case 15:if(!pe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Al(n,t,s),i=i.next}while(i!==r)}wt(e,t,n);break;case 1:if(!pe&&(Mn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){X(n,t,l)}wt(e,t,n);break;case 21:wt(e,t,n);break;case 22:n.mode&1?(pe=(r=pe)||n.memoizedState!==null,wt(e,t,n),pe=r):wt(e,t,n);break;default:wt(e,t,n)}}function Nc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Dy),t.forEach(function(r){var i=Uy.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function We(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 5:le=l.stateNode,Ge=!1;break e;case 3:le=l.stateNode.containerInfo,Ge=!0;break e;case 4:le=l.stateNode.containerInfo,Ge=!0;break e}l=l.return}if(le===null)throw Error(k(160));pp(o,s,i),le=null,Ge=!1;var a=i.alternate;a!==null&&(a.return=null),i.return=null}catch(u){X(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)mp(t,e),t=t.sibling}function mp(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(We(t,e),qe(e),r&4){try{Rr(3,e,e.return),$o(3,e)}catch(y){X(e,e.return,y)}try{Rr(5,e,e.return)}catch(y){X(e,e.return,y)}}break;case 1:We(t,e),qe(e),r&512&&n!==null&&Mn(n,n.return);break;case 5:if(We(t,e),qe(e),r&512&&n!==null&&Mn(n,n.return),e.flags&32){var i=e.stateNode;try{jr(i,"")}catch(y){X(e,e.return,y)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&o.type==="radio"&&o.name!=null&&Id(i,o),nl(l,s);var u=nl(l,o);for(s=0;s<a.length;s+=2){var c=a[s],f=a[s+1];c==="style"?$d(i,f):c==="dangerouslySetInnerHTML"?Bd(i,f):c==="children"?jr(i,f):ua(i,c,f,u)}switch(l){case"input":bs(i,o);break;case"textarea":Fd(i,o);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var g=o.value;g!=null?jn(i,!!o.multiple,g,!1):d!==!!o.multiple&&(o.defaultValue!=null?jn(i,!!o.multiple,o.defaultValue,!0):jn(i,!!o.multiple,o.multiple?[]:"",!1))}i[Hr]=o}catch(y){X(e,e.return,y)}}break;case 6:if(We(t,e),qe(e),r&4){if(e.stateNode===null)throw Error(k(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(y){X(e,e.return,y)}}break;case 3:if(We(t,e),qe(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{zr(t.containerInfo)}catch(y){X(e,e.return,y)}break;case 4:We(t,e),qe(e);break;case 13:We(t,e),qe(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||($a=b())),r&4&&Nc(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(pe=(u=pe)||c,We(t,e),pe=u):We(t,e),qe(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(A=e,c=e.child;c!==null;){for(f=A=c;A!==null;){switch(d=A,g=d.child,d.tag){case 0:case 11:case 14:case 15:Rr(4,d,d.return);break;case 1:Mn(d,d.return);var v=d.stateNode;if(typeof v.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(y){X(r,n,y)}}break;case 5:Mn(d,d.return);break;case 22:if(d.memoizedState!==null){Oc(f);continue}}g!==null?(g.return=d,A=g):Oc(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(l=f.stateNode,a=f.memoizedProps.style,s=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=Ud("display",s))}catch(y){X(e,e.return,y)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(y){X(e,e.return,y)}}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:We(t,e),qe(e),r&4&&Nc(e);break;case 21:break;default:We(t,e),qe(e)}}function qe(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(hp(n)){var r=n;break e}n=n.return}throw Error(k(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(jr(i,""),r.flags&=-33);var o=Vc(e);_l(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,l=Vc(e);Dl(e,l,s);break;default:throw Error(k(161))}}catch(a){X(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Vy(e,t,n){A=e,gp(e)}function gp(e,t,n){for(var r=(e.mode&1)!==0;A!==null;){var i=A,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||Di;if(!s){var l=i.alternate,a=l!==null&&l.memoizedState!==null||pe;l=Di;var u=pe;if(Di=s,(pe=a)&&!u)for(A=i;A!==null;)s=A,a=s.child,s.tag===22&&s.memoizedState!==null?Ic(i):a!==null?(a.return=s,A=a):Ic(i);for(;o!==null;)A=o,gp(o),o=o.sibling;A=i,Di=l,pe=u}jc(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,A=o):jc(e)}}function jc(e){for(;A!==null;){var t=A;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:pe||$o(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!pe)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Ke(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&wc(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}wc(t,s,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&&zr(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(k(163))}pe||t.flags&512&&Ll(t)}catch(d){X(t,t.return,d)}}if(t===e){A=null;break}if(n=t.sibling,n!==null){n.return=t.return,A=n;break}A=t.return}}function Oc(e){for(;A!==null;){var t=A;if(t===e){A=null;break}var n=t.sibling;if(n!==null){n.return=t.return,A=n;break}A=t.return}}function Ic(e){for(;A!==null;){var t=A;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{$o(4,t)}catch(a){X(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(a){X(t,i,a)}}var o=t.return;try{Ll(t)}catch(a){X(t,o,a)}break;case 5:var s=t.return;try{Ll(t)}catch(a){X(t,s,a)}}}catch(a){X(t,t.return,a)}if(t===e){A=null;break}var l=t.sibling;if(l!==null){l.return=t.return,A=l;break}A=t.return}}var Ny=Math.ceil,xo=vt.ReactCurrentDispatcher,Ba=vt.ReactCurrentOwner,Be=vt.ReactCurrentBatchConfig,O=0,se=null,q=null,ue=0,Re=0,An=Ut(0),te=0,Zr=null,fn=0,Wo=0,Ua=0,Mr=null,Pe=null,$a=0,Qn=1/0,ot=null,So=!1,Vl=null,Vt=null,_i=!1,Tt=null,Po=0,Ar=0,Nl=null,Qi=-1,Xi=0;function we(){return O&6?b():Qi!==-1?Qi:Qi=b()}function Nt(e){return e.mode&1?O&2&&ue!==0?ue&-ue:vy.transition!==null?(Xi===0&&(Xi=eh()),Xi):(e=I,e!==0||(e=window.event,e=e===void 0?16:lh(e.type)),e):1}function Ye(e,t,n,r){if(50<Ar)throw Ar=0,Nl=null,Error(k(185));si(e,n,r),(!(O&2)||e!==se)&&(e===se&&(!(O&2)&&(Wo|=n),te===4&&Ct(e,ue)),Te(e,r),n===1&&O===0&&!(t.mode&1)&&(Qn=b()+500,zo&&$t()))}function Te(e,t){var n=e.callbackNode;vv(e,t);var r=io(e,e===se?ue:0);if(r===0)n!==null&&Gu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Gu(n),t===1)e.tag===0?gy(Fc.bind(null,e)):Th(Fc.bind(null,e)),dy(function(){!(O&6)&&$t()}),n=null;else{switch(th(r)){case 1:n=pa;break;case 4:n=qd;break;case 16:n=ro;break;case 536870912:n=Jd;break;default:n=ro}n=Cp(n,vp.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function vp(e,t){if(Qi=-1,Xi=0,O&6)throw Error(k(327));var n=e.callbackNode;if(Bn()&&e.callbackNode!==n)return null;var r=io(e,e===se?ue:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Eo(e,r);else{t=r;var i=O;O|=2;var o=wp();(se!==e||ue!==t)&&(ot=null,Qn=b()+500,rn(e,t));do try{Iy();break}catch(l){yp(e,l)}while(!0);Ra(),xo.current=o,O=i,q!==null?t=0:(se=null,ue=0,t=te)}if(t!==0){if(t===2&&(i=ll(e),i!==0&&(r=i,t=jl(e,i))),t===1)throw n=Zr,rn(e,0),Ct(e,r),Te(e,b()),n;if(t===6)Ct(e,r);else{if(i=e.current.alternate,!(r&30)&&!jy(i)&&(t=Eo(e,r),t===2&&(o=ll(e),o!==0&&(r=o,t=jl(e,o))),t===1))throw n=Zr,rn(e,0),Ct(e,r),Te(e,b()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(k(345));case 2:Zt(e,Pe,ot);break;case 3:if(Ct(e,r),(r&130023424)===r&&(t=$a+500-b(),10<t)){if(io(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){we(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ml(Zt.bind(null,e,Pe,ot),t);break}Zt(e,Pe,ot);break;case 4:if(Ct(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-Xe(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=b()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ny(r/1960))-r,10<r){e.timeoutHandle=ml(Zt.bind(null,e,Pe,ot),r);break}Zt(e,Pe,ot);break;case 5:Zt(e,Pe,ot);break;default:throw Error(k(329))}}}return Te(e,b()),e.callbackNode===n?vp.bind(null,e):null}function jl(e,t){var n=Mr;return e.current.memoizedState.isDehydrated&&(rn(e,t).flags|=256),e=Eo(e,t),e!==2&&(t=Pe,Pe=n,t!==null&&Ol(t)),e}function Ol(e){Pe===null?Pe=e:Pe.push.apply(Pe,e)}function jy(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],o=i.getSnapshot;i=i.value;try{if(!Ze(o(),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 Ct(e,t){for(t&=~Ua,t&=~Wo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Xe(t),r=1<<n;e[n]=-1,t&=~r}}function Fc(e){if(O&6)throw Error(k(327));Bn();var t=io(e,0);if(!(t&1))return Te(e,b()),null;var n=Eo(e,t);if(e.tag!==0&&n===2){var r=ll(e);r!==0&&(t=r,n=jl(e,r))}if(n===1)throw n=Zr,rn(e,0),Ct(e,t),Te(e,b()),n;if(n===6)throw Error(k(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Zt(e,Pe,ot),Te(e,b()),null}function Wa(e,t){var n=O;O|=1;try{return e(t)}finally{O=n,O===0&&(Qn=b()+500,zo&&$t())}}function dn(e){Tt!==null&&Tt.tag===0&&!(O&6)&&Bn();var t=O;O|=1;var n=Be.transition,r=I;try{if(Be.transition=null,I=1,e)return e()}finally{I=r,Be.transition=n,O=t,!(O&6)&&$t()}}function Ha(){Re=An.current,B(An)}function rn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,fy(n)),q!==null)for(n=q.return;n!==null;){var r=n;switch(Ca(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&uo();break;case 3:Kn(),B(Ce),B(ve),Va();break;case 5:_a(r);break;case 4:Kn();break;case 13:B(W);break;case 19:B(W);break;case 10:Ma(r.type._context);break;case 22:case 23:Ha()}n=n.return}if(se=e,q=e=jt(e.current,null),ue=Re=t,te=0,Zr=null,Ua=Wo=fn=0,Pe=Mr=null,en!==null){for(t=0;t<en.length;t++)if(n=en[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}en=null}return e}function yp(e,t){do{var n=q;try{if(Ra(),Hi.current=wo,yo){for(var r=K.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}yo=!1}if(cn=0,oe=ee=K=null,Tr=!1,Qr=0,Ba.current=null,n===null||n.return===null){te=1,Zr=t,q=null;break}e:{var o=e,s=n.return,l=n,a=t;if(t=ue,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,c=l,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var d=c.alternate;d?(c.updateQueue=d.updateQueue,c.memoizedState=d.memoizedState,c.lanes=d.lanes):(c.updateQueue=null,c.memoizedState=null)}var g=kc(s);if(g!==null){g.flags&=-257,Tc(g,s,l,o,t),g.mode&1&&Cc(o,u,t),t=g,a=u;var v=t.updateQueue;if(v===null){var y=new Set;y.add(a),t.updateQueue=y}else v.add(a);break e}else{if(!(t&1)){Cc(o,u,t),Ka();break e}a=Error(k(426))}}else if($&&l.mode&1){var w=kc(s);if(w!==null){!(w.flags&65536)&&(w.flags|=256),Tc(w,s,l,o,t),ka(Gn(a,l));break e}}o=a=Gn(a,l),te!==4&&(te=2),Mr===null?Mr=[o]:Mr.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var h=tp(o,a,t);yc(o,h);break e;case 1:l=a;var p=o.type,m=o.stateNode;if(!(o.flags&128)&&(typeof p.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Vt===null||!Vt.has(m)))){o.flags|=65536,t&=-t,o.lanes|=t;var x=np(o,l,t);yc(o,x);break e}}o=o.return}while(o!==null)}Sp(n)}catch(P){t=P,q===n&&n!==null&&(q=n=n.return);continue}break}while(!0)}function wp(){var e=xo.current;return xo.current=wo,e===null?wo:e}function Ka(){(te===0||te===3||te===2)&&(te=4),se===null||!(fn&268435455)&&!(Wo&268435455)||Ct(se,ue)}function Eo(e,t){var n=O;O|=2;var r=wp();(se!==e||ue!==t)&&(ot=null,rn(e,t));do try{Oy();break}catch(i){yp(e,i)}while(!0);if(Ra(),O=n,xo.current=r,q!==null)throw Error(k(261));return se=null,ue=0,te}function Oy(){for(;q!==null;)xp(q)}function Iy(){for(;q!==null&&!av();)xp(q)}function xp(e){var t=Ep(e.alternate,e,Re);e.memoizedProps=e.pendingProps,t===null?Sp(e):q=t,Ba.current=null}function Sp(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Ly(n,t),n!==null){n.flags&=32767,q=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{te=6,q=null;return}}else if(n=Ay(n,t,Re),n!==null){q=n;return}if(t=t.sibling,t!==null){q=t;return}q=t=e}while(t!==null);te===0&&(te=5)}function Zt(e,t,n){var r=I,i=Be.transition;try{Be.transition=null,I=1,Fy(e,t,n,r)}finally{Be.transition=i,I=r}return null}function Fy(e,t,n,r){do Bn();while(Tt!==null);if(O&6)throw Error(k(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(k(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(yv(e,o),e===se&&(q=se=null,ue=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||_i||(_i=!0,Cp(ro,function(){return Bn(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Be.transition,Be.transition=null;var s=I;I=1;var l=O;O|=4,Ba.current=null,_y(e,n),mp(n,e),iy(hl),oo=!!dl,hl=dl=null,e.current=n,Vy(n),uv(),O=l,I=s,Be.transition=o}else e.current=n;if(_i&&(_i=!1,Tt=e,Po=i),o=e.pendingLanes,o===0&&(Vt=null),dv(n.stateNode),Te(e,b()),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(So)throw So=!1,e=Vl,Vl=null,e;return Po&1&&e.tag!==0&&Bn(),o=e.pendingLanes,o&1?e===Nl?Ar++:(Ar=0,Nl=e):Ar=0,$t(),null}function Bn(){if(Tt!==null){var e=th(Po),t=Be.transition,n=I;try{if(Be.transition=null,I=16>e?16:e,Tt===null)var r=!1;else{if(e=Tt,Tt=null,Po=0,O&6)throw Error(k(331));var i=O;for(O|=4,A=e.current;A!==null;){var o=A,s=o.child;if(A.flags&16){var l=o.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(A=u;A!==null;){var c=A;switch(c.tag){case 0:case 11:case 15:Rr(8,c,o)}var f=c.child;if(f!==null)f.return=c,A=f;else for(;A!==null;){c=A;var d=c.sibling,g=c.return;if(dp(c),c===u){A=null;break}if(d!==null){d.return=g,A=d;break}A=g}}}var v=o.alternate;if(v!==null){var y=v.child;if(y!==null){v.child=null;do{var w=y.sibling;y.sibling=null,y=w}while(y!==null)}}A=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,A=s;else e:for(;A!==null;){if(o=A,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Rr(9,o,o.return)}var h=o.sibling;if(h!==null){h.return=o.return,A=h;break e}A=o.return}}var p=e.current;for(A=p;A!==null;){s=A;var m=s.child;if(s.subtreeFlags&2064&&m!==null)m.return=s,A=m;else e:for(s=p;A!==null;){if(l=A,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:$o(9,l)}}catch(P){X(l,l.return,P)}if(l===s){A=null;break e}var x=l.sibling;if(x!==null){x.return=l.return,A=x;break e}A=l.return}}if(O=i,$t(),tt&&typeof tt.onPostCommitFiberRoot=="function")try{tt.onPostCommitFiberRoot(No,e)}catch{}r=!0}return r}finally{I=n,Be.transition=t}}return!1}function zc(e,t,n){t=Gn(n,t),t=tp(e,t,1),e=_t(e,t,1),t=we(),e!==null&&(si(e,1,t),Te(e,t))}function X(e,t,n){if(e.tag===3)zc(e,e,n);else for(;t!==null;){if(t.tag===3){zc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Vt===null||!Vt.has(r))){e=Gn(n,e),e=np(t,e,1),t=_t(t,e,1),e=we(),t!==null&&(si(t,1,e),Te(t,e));break}}t=t.return}}function zy(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=we(),e.pingedLanes|=e.suspendedLanes&n,se===e&&(ue&n)===n&&(te===4||te===3&&(ue&130023424)===ue&&500>b()-$a?rn(e,0):Ua|=n),Te(e,t)}function Pp(e,t){t===0&&(e.mode&1?(t=Pi,Pi<<=1,!(Pi&130023424)&&(Pi=4194304)):t=1);var n=we();e=pt(e,t),e!==null&&(si(e,t,n),Te(e,n))}function By(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Pp(e,n)}function Uy(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(k(314))}r!==null&&r.delete(t),Pp(e,n)}var Ep;Ep=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ce.current)Ee=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ee=!1,My(e,t,n);Ee=!!(e.flags&131072)}else Ee=!1,$&&t.flags&1048576&&Rh(t,ho,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Gi(e,t),e=t.pendingProps;var i=$n(t,ve.current);zn(t,n),i=ja(null,t,r,e,i,n);var o=Oa();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,ke(r)?(o=!0,co(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,La(t),i.updater=Uo,t.stateNode=i,i._reactInternals=t,Pl(t,r,e,n),t=kl(null,t,r,!0,o,n)):(t.tag=0,$&&o&&Ea(t),ye(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Gi(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Wy(r),e=Ke(r,e),i){case 0:t=Cl(null,t,r,e,n);break e;case 1:t=Ac(null,t,r,e,n);break e;case 11:t=Rc(null,t,r,e,n);break e;case 14:t=Mc(null,t,r,Ke(r.type,e),n);break e}throw Error(k(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ke(r,i),Cl(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ke(r,i),Ac(e,t,r,i,n);case 3:e:{if(sp(t),e===null)throw Error(k(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Vh(e,t),go(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Gn(Error(k(423)),t),t=Lc(e,t,r,n,i);break e}else if(r!==i){i=Gn(Error(k(424)),t),t=Lc(e,t,r,n,i);break e}else for(Me=Dt(t.stateNode.containerInfo.firstChild),Ae=t,$=!0,Qe=null,n=Dh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Wn(),r===i){t=mt(e,t,n);break e}ye(e,t,r,n)}t=t.child}return t;case 5:return Nh(t),e===null&&wl(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,pl(r,i)?s=null:o!==null&&pl(r,o)&&(t.flags|=32),op(e,t),ye(e,t,s,n),t.child;case 6:return e===null&&wl(t),null;case 13:return lp(e,t,n);case 4:return Da(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Hn(t,null,r,n):ye(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ke(r,i),Rc(e,t,r,i,n);case 7:return ye(e,t,t.pendingProps,n),t.child;case 8:return ye(e,t,t.pendingProps.children,n),t.child;case 12:return ye(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,F(po,r._currentValue),r._currentValue=s,o!==null)if(Ze(o.value,s)){if(o.children===i.children&&!Ce.current){t=mt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=ut(-1,n&-n),a.tag=2;var u=o.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}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),xl(o.return,n,t),l.lanes|=n;break}a=a.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(k(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),xl(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}ye(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,zn(t,n),i=Ue(i),r=r(i),t.flags|=1,ye(e,t,r,n),t.child;case 14:return r=t.type,i=Ke(r,t.pendingProps),i=Ke(r.type,i),Mc(e,t,r,i,n);case 15:return rp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ke(r,i),Gi(e,t),t.tag=1,ke(r)?(e=!0,co(t)):e=!1,zn(t,n),ep(t,r,i),Pl(t,r,i,n),kl(null,t,r,!0,e,n);case 19:return ap(e,t,n);case 22:return ip(e,t,n)}throw Error(k(156,t.tag))};function Cp(e,t){return bd(e,t)}function $y(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 ze(e,t,n,r){return new $y(e,t,n,r)}function Ga(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Wy(e){if(typeof e=="function")return Ga(e)?1:0;if(e!=null){if(e=e.$$typeof,e===fa)return 11;if(e===da)return 14}return 2}function jt(e,t){var n=e.alternate;return n===null?(n=ze(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 Yi(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")Ga(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case wn:return on(n.children,i,o,t);case ca:s=8,i|=8;break;case Gs:return e=ze(12,n,t,i|2),e.elementType=Gs,e.lanes=o,e;case Qs:return e=ze(13,n,t,i),e.elementType=Qs,e.lanes=o,e;case Xs:return e=ze(19,n,t,i),e.elementType=Xs,e.lanes=o,e;case Nd:return Ho(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case _d:s=10;break e;case Vd:s=9;break e;case fa:s=11;break e;case da:s=14;break e;case St:s=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=ze(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function on(e,t,n,r){return e=ze(7,e,r,t),e.lanes=n,e}function Ho(e,t,n,r){return e=ze(22,e,r,t),e.elementType=Nd,e.lanes=n,e.stateNode={isHidden:!1},e}function As(e,t,n){return e=ze(6,e,null,t),e.lanes=n,e}function Ls(e,t,n){return t=ze(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Hy(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=cs(0),this.expirationTimes=cs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=cs(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Qa(e,t,n,r,i,o,s,l,a){return e=new Hy(e,t,n,l,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ze(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},La(o),e}function Ky(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:yn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function kp(e){if(!e)return It;e=e._reactInternals;e:{if(pn(e)!==e||e.tag!==1)throw Error(k(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ke(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(k(171))}if(e.tag===1){var n=e.type;if(ke(n))return kh(e,n,t)}return t}function Tp(e,t,n,r,i,o,s,l,a){return e=Qa(n,r,!0,e,i,o,s,l,a),e.context=kp(null),n=e.current,r=we(),i=Nt(n),o=ut(r,i),o.callback=t??null,_t(n,o,i),e.current.lanes=i,si(e,i,r),Te(e,r),e}function Ko(e,t,n,r){var i=t.current,o=we(),s=Nt(i);return n=kp(n),t.context===null?t.context=n:t.pendingContext=n,t=ut(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=_t(i,t,s),e!==null&&(Ye(e,i,s,o),Wi(e,i,s)),s}function Co(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 Bc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Xa(e,t){Bc(e,t),(e=e.alternate)&&Bc(e,t)}function Gy(){return null}var Rp=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ya(e){this._internalRoot=e}Go.prototype.render=Ya.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(k(409));Ko(e,t,null,null)};Go.prototype.unmount=Ya.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;dn(function(){Ko(null,e,null,null)}),t[ht]=null}};function Go(e){this._internalRoot=e}Go.prototype.unstable_scheduleHydration=function(e){if(e){var t=ih();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&&sh(e)}};function Za(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Qo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Uc(){}function Qy(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=Co(s);o.call(u)}}var s=Tp(t,r,e,0,null,!1,!1,"",Uc);return e._reactRootContainer=s,e[ht]=s.current,$r(e.nodeType===8?e.parentNode:e),dn(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var u=Co(a);l.call(u)}}var a=Qa(e,0,!1,null,null,!1,!1,"",Uc);return e._reactRootContainer=a,e[ht]=a.current,$r(e.nodeType===8?e.parentNode:e),dn(function(){Ko(t,a,n,r)}),a}function Xo(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var l=i;i=function(){var a=Co(s);l.call(a)}}Ko(t,s,e,i)}else s=Qy(n,t,e,i,r);return Co(s)}nh=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=gr(t.pendingLanes);n!==0&&(ma(t,n|1),Te(t,b()),!(O&6)&&(Qn=b()+500,$t()))}break;case 13:dn(function(){var r=pt(e,1);if(r!==null){var i=we();Ye(r,e,1,i)}}),Xa(e,1)}};ga=function(e){if(e.tag===13){var t=pt(e,134217728);if(t!==null){var n=we();Ye(t,e,134217728,n)}Xa(e,134217728)}};rh=function(e){if(e.tag===13){var t=Nt(e),n=pt(e,t);if(n!==null){var r=we();Ye(n,e,t,r)}Xa(e,t)}};ih=function(){return I};oh=function(e,t){var n=I;try{return I=e,t()}finally{I=n}};il=function(e,t,n){switch(t){case"input":if(bs(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=Fo(r);if(!i)throw Error(k(90));Od(r),bs(r,i)}}}break;case"textarea":Fd(e,n);break;case"select":t=n.value,t!=null&&jn(e,!!n.multiple,t,!1)}};Kd=Wa;Gd=dn;var Xy={usingClientEntryPoint:!1,Events:[ai,En,Fo,Wd,Hd,Wa]},fr={findFiberByHostInstance:Jt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Yy={bundleType:fr.bundleType,version:fr.version,rendererPackageName:fr.rendererPackageName,rendererConfig:fr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:vt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Yd(e),e===null?null:e.stateNode},findFiberByHostInstance:fr.findFiberByHostInstance||Gy,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 Vi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vi.isDisabled&&Vi.supportsFiber)try{No=Vi.inject(Yy),tt=Vi}catch{}}Ve.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Xy;Ve.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Za(t))throw Error(k(200));return Ky(e,t,null,n)};Ve.createRoot=function(e,t){if(!Za(e))throw Error(k(299));var n=!1,r="",i=Rp;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Qa(e,1,!1,null,null,n,!1,r,i),e[ht]=t.current,$r(e.nodeType===8?e.parentNode:e),new Ya(t)};Ve.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(k(188)):(e=Object.keys(e).join(","),Error(k(268,e)));return e=Yd(t),e=e===null?null:e.stateNode,e};Ve.flushSync=function(e){return dn(e)};Ve.hydrate=function(e,t,n){if(!Qo(t))throw Error(k(200));return Xo(null,e,t,!0,n)};Ve.hydrateRoot=function(e,t,n){if(!Za(e))throw Error(k(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=Rp;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=Tp(t,null,e,1,n??null,i,!1,o,s),e[ht]=t.current,$r(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 Go(t)};Ve.render=function(e,t,n){if(!Qo(t))throw Error(k(200));return Xo(null,e,t,!1,n)};Ve.unmountComponentAtNode=function(e){if(!Qo(e))throw Error(k(40));return e._reactRootContainer?(dn(function(){Xo(null,null,e,!1,function(){e._reactRootContainer=null,e[ht]=null})}),!0):!1};Ve.unstable_batchedUpdates=Wa;Ve.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Qo(n))throw Error(k(200));if(e==null||e._reactInternals===void 0)throw Error(k(38));return Xo(e,t,n,!1,r)};Ve.version="18.3.1-next-f1338f8080-20240426";function Mp(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Mp)}catch(e){console.error(e)}}Mp(),Md.exports=Ve;var Zy=Md.exports,Ap,$c=Zy;Ap=$c.createRoot,$c.hydrateRoot;/**
42
- * @remix-run/router v1.23.2
43
- *
44
- * Copyright (c) Remix Software Inc.
45
- *
46
- * This source code is licensed under the MIT license found in the
47
- * LICENSE.md file in the root directory of this source tree.
48
- *
49
- * @license MIT
50
- */function br(){return br=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},br.apply(this,arguments)}var Rt;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Rt||(Rt={}));const Wc="popstate";function by(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:s,hash:l}=r.location;return Il("",{pathname:o,search:s,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Lp(i)}return Jy(t,n,null,e)}function ne(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ba(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function qy(){return Math.random().toString(36).substr(2,8)}function Hc(e,t){return{usr:e.state,key:e.key,idx:t}}function Il(e,t,n,r){return n===void 0&&(n=null),br({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?er(t):t,{state:n,key:t&&t.key||r||qy()})}function Lp(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function er(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Jy(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,l=Rt.Pop,a=null,u=c();u==null&&(u=0,s.replaceState(br({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function f(){l=Rt.Pop;let w=c(),h=w==null?null:w-u;u=w,a&&a({action:l,location:y.location,delta:h})}function d(w,h){l=Rt.Push;let p=Il(y.location,w,h);u=c()+1;let m=Hc(p,u),x=y.createHref(p);try{s.pushState(m,"",x)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;i.location.assign(x)}o&&a&&a({action:l,location:y.location,delta:1})}function g(w,h){l=Rt.Replace;let p=Il(y.location,w,h);u=c();let m=Hc(p,u),x=y.createHref(p);s.replaceState(m,"",x),o&&a&&a({action:l,location:y.location,delta:0})}function v(w){let h=i.location.origin!=="null"?i.location.origin:i.location.href,p=typeof w=="string"?w:Lp(w);return p=p.replace(/ $/,"%20"),ne(h,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,h)}let y={get action(){return l},get location(){return e(i,s)},listen(w){if(a)throw new Error("A history only accepts one active listener");return i.addEventListener(Wc,f),a=w,()=>{i.removeEventListener(Wc,f),a=null}},createHref(w){return t(i,w)},createURL:v,encodeLocation(w){let h=v(w);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:d,replace:g,go(w){return s.go(w)}};return y}var Kc;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Kc||(Kc={}));function e0(e,t,n){return n===void 0&&(n="/"),t0(e,t,n)}function t0(e,t,n,r){let i=typeof t=="string"?er(t):t,o=Vp(i.pathname||"/",n);if(o==null)return null;let s=Dp(e);n0(s);let l=null;for(let a=0;l==null&&a<s.length;++a){let u=p0(o);l=f0(s[a],u)}return l}function Dp(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,s,l)=>{let a={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};a.relativePath.startsWith("/")&&(ne(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=sn([r,a.relativePath]),c=n.concat(a);o.children&&o.children.length>0&&(ne(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Dp(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:u0(u,o.index),routesMeta:c})};return e.forEach((o,s)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,s);else for(let a of _p(o.path))i(o,s,a)}),t}function _p(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=_p(r.join("/")),l=[];return l.push(...s.map(a=>a===""?o:[o,a].join("/"))),i&&l.push(...s),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function n0(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:c0(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const r0=/^:[\w-]+$/,i0=3,o0=2,s0=1,l0=10,a0=-2,Gc=e=>e==="*";function u0(e,t){let n=e.split("/"),r=n.length;return n.some(Gc)&&(r+=a0),t&&(r+=o0),n.filter(i=>!Gc(i)).reduce((i,o)=>i+(r0.test(o)?i0:o===""?s0:l0),r)}function c0(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function f0(e,t,n){let{routesMeta:r}=e,i={},o="/",s=[];for(let l=0;l<r.length;++l){let a=r[l],u=l===r.length-1,c=o==="/"?t:t.slice(o.length)||"/",f=d0({path:a.relativePath,caseSensitive:a.caseSensitive,end:u},c),d=a.route;if(!f)return null;Object.assign(i,f.params),s.push({params:i,pathname:sn([o,f.pathname]),pathnameBase:S0(sn([o,f.pathnameBase])),route:d}),f.pathnameBase!=="/"&&(o=sn([o,f.pathnameBase]))}return s}function d0(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=h0(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],s=o.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:r.reduce((u,c,f)=>{let{paramName:d,isOptional:g}=c;if(d==="*"){let y=l[f]||"";s=o.slice(0,o.length-y.length).replace(/(.)\/+$/,"$1")}const v=l[f];return g&&!v?u[d]=void 0:u[d]=(v||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:s,pattern:e}}function h0(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ba(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,l,a)=>(r.push({paramName:l,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function p0(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ba(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Vp(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const m0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,g0=e=>m0.test(e);function v0(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?er(e):e,o;if(n)if(g0(n))o=n;else{if(n.includes("//")){let s=n;n=n.replace(/\/\/+/g,"/"),ba(!1,"Pathnames cannot have embedded double slashes - normalizing "+(s+" -> "+n))}n.startsWith("/")?o=Qc(n.substring(1),"/"):o=Qc(n,t)}else o=t;return{pathname:o,search:P0(r),hash:E0(i)}}function Qc(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Ds(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function y0(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function w0(e,t){let n=y0(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function x0(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=er(e):(i=br({},e),ne(!i.pathname||!i.pathname.includes("?"),Ds("?","pathname","search",i)),ne(!i.pathname||!i.pathname.includes("#"),Ds("#","pathname","hash",i)),ne(!i.search||!i.search.includes("#"),Ds("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,l;if(s==null)l=n;else{let f=t.length-1;if(!r&&s.startsWith("..")){let d=s.split("/");for(;d[0]==="..";)d.shift(),f-=1;i.pathname=d.join("/")}l=f>=0?t[f]:"/"}let a=v0(i,l),u=s&&s!=="/"&&s.endsWith("/"),c=(o||s===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||c)&&(a.pathname+="/"),a}const sn=e=>e.join("/").replace(/\/\/+/g,"/"),S0=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),P0=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,E0=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function C0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Np=["post","put","patch","delete"];new Set(Np);const k0=["get",...Np];new Set(k0);/**
51
- * React Router v6.30.3
52
- *
53
- * Copyright (c) Remix Software Inc.
54
- *
55
- * This source code is licensed under the MIT license found in the
56
- * LICENSE.md file in the root directory of this source tree.
57
- *
58
- * @license MIT
59
- */function qr(){return qr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qr.apply(this,arguments)}const qa=S.createContext(null),T0=S.createContext(null),Yo=S.createContext(null),Zo=S.createContext(null),Wt=S.createContext({outlet:null,matches:[],isDataRoute:!1}),jp=S.createContext(null);function bo(){return S.useContext(Zo)!=null}function Op(){return bo()||ne(!1),S.useContext(Zo).location}function Ip(e){S.useContext(Yo).static||S.useLayoutEffect(e)}function R0(){let{isDataRoute:e}=S.useContext(Wt);return e?$0():M0()}function M0(){bo()||ne(!1);let e=S.useContext(qa),{basename:t,future:n,navigator:r}=S.useContext(Yo),{matches:i}=S.useContext(Wt),{pathname:o}=Op(),s=JSON.stringify(w0(i,n.v7_relativeSplatPath)),l=S.useRef(!1);return Ip(()=>{l.current=!0}),S.useCallback(function(u,c){if(c===void 0&&(c={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let f=x0(u,JSON.parse(s),o,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:sn([t,f.pathname])),(c.replace?r.replace:r.push)(f,c.state,c)},[t,r,s,o,e])}const A0=S.createContext(null);function L0(e){let t=S.useContext(Wt).outlet;return t&&S.createElement(A0.Provider,{value:e},t)}function xE(){let{matches:e}=S.useContext(Wt),t=e[e.length-1];return t?t.params:{}}function D0(e,t){return _0(e,t)}function _0(e,t,n,r){bo()||ne(!1);let{navigator:i}=S.useContext(Yo),{matches:o}=S.useContext(Wt),s=o[o.length-1],l=s?s.params:{};s&&s.pathname;let a=s?s.pathnameBase:"/";s&&s.route;let u=Op(),c;if(t){var f;let w=typeof t=="string"?er(t):t;a==="/"||(f=w.pathname)!=null&&f.startsWith(a)||ne(!1),c=w}else c=u;let d=c.pathname||"/",g=d;if(a!=="/"){let w=a.replace(/^\//,"").split("/");g="/"+d.replace(/^\//,"").split("/").slice(w.length).join("/")}let v=e0(e,{pathname:g}),y=I0(v&&v.map(w=>Object.assign({},w,{params:Object.assign({},l,w.params),pathname:sn([a,i.encodeLocation?i.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?a:sn([a,i.encodeLocation?i.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),o,n,r);return t&&y?S.createElement(Zo.Provider,{value:{location:qr({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Rt.Pop}},y):y}function V0(){let e=U0(),t=C0(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:i},n):null,null)}const N0=S.createElement(V0,null);class j0 extends S.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?S.createElement(Wt.Provider,{value:this.props.routeContext},S.createElement(jp.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function O0(e){let{routeContext:t,match:n,children:r}=e,i=S.useContext(qa);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),S.createElement(Wt.Provider,{value:t},r)}function I0(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let c=s.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);c>=0||ne(!1),s=s.slice(0,Math.min(s.length,c+1))}let a=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c<s.length;c++){let f=s[c];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=c),f.route.id){let{loaderData:d,errors:g}=n,v=f.route.loader&&d[f.route.id]===void 0&&(!g||g[f.route.id]===void 0);if(f.route.lazy||v){a=!0,u>=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((c,f,d)=>{let g,v=!1,y=null,w=null;n&&(g=l&&f.route.id?l[f.route.id]:void 0,y=f.route.errorElement||N0,a&&(u<0&&d===0?(W0("route-fallback"),v=!0,w=null):u===d&&(v=!0,w=f.route.hydrateFallbackElement||null)));let h=t.concat(s.slice(0,d+1)),p=()=>{let m;return g?m=y:v?m=w:f.route.Component?m=S.createElement(f.route.Component,null):f.route.element?m=f.route.element:m=c,S.createElement(O0,{match:f,routeContext:{outlet:c,matches:h,isDataRoute:n!=null},children:m})};return n&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?S.createElement(j0,{location:n.location,revalidation:n.revalidation,component:y,error:g,children:p(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):p()},null)}var Fp=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Fp||{}),zp=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(zp||{});function F0(e){let t=S.useContext(qa);return t||ne(!1),t}function z0(e){let t=S.useContext(T0);return t||ne(!1),t}function B0(e){let t=S.useContext(Wt);return t||ne(!1),t}function Bp(e){let t=B0(),n=t.matches[t.matches.length-1];return n.route.id||ne(!1),n.route.id}function U0(){var e;let t=S.useContext(jp),n=z0(),r=Bp();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function $0(){let{router:e}=F0(Fp.UseNavigateStable),t=Bp(zp.UseNavigateStable),n=S.useRef(!1);return Ip(()=>{n.current=!0}),S.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,qr({fromRouteId:t},o)))},[e,t])}const Xc={};function W0(e,t,n){Xc[e]||(Xc[e]=!0)}function H0(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function K0(e){return L0(e.context)}function Zi(e){ne(!1)}function G0(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Rt.Pop,navigator:o,static:s=!1,future:l}=e;bo()&&ne(!1);let a=t.replace(/^\/*/,"/"),u=S.useMemo(()=>({basename:a,navigator:o,static:s,future:qr({v7_relativeSplatPath:!1},l)}),[a,l,o,s]);typeof r=="string"&&(r=er(r));let{pathname:c="/",search:f="",hash:d="",state:g=null,key:v="default"}=r,y=S.useMemo(()=>{let w=Vp(c,a);return w==null?null:{location:{pathname:w,search:f,hash:d,state:g,key:v},navigationType:i}},[a,c,f,d,g,v,i]);return y==null?null:S.createElement(Yo.Provider,{value:u},S.createElement(Zo.Provider,{children:n,value:y}))}function Q0(e){let{children:t,location:n}=e;return D0(Fl(t),n)}new Promise(()=>{});function Fl(e,t){t===void 0&&(t=[]);let n=[];return S.Children.forEach(e,(r,i)=>{if(!S.isValidElement(r))return;let o=[...t,i];if(r.type===S.Fragment){n.push.apply(n,Fl(r.props.children,o));return}r.type!==Zi&&ne(!1),!r.props.index||!r.props.children||ne(!1);let s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=Fl(r.props.children,o)),n.push(s)}),n}/**
60
- * React Router DOM v6.30.3
61
- *
62
- * Copyright (c) Remix Software Inc.
63
- *
64
- * This source code is licensed under the MIT license found in the
65
- * LICENSE.md file in the root directory of this source tree.
66
- *
67
- * @license MIT
68
- */const X0="6";try{window.__reactRouterVersion=X0}catch{}const Y0="startTransition",Yc=zg[Y0];function Z0(e){let{basename:t,children:n,future:r,window:i}=e,o=S.useRef();o.current==null&&(o.current=by({window:i,v5Compat:!0}));let s=o.current,[l,a]=S.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=S.useCallback(f=>{u&&Yc?Yc(()=>a(f)):a(f)},[a,u]);return S.useLayoutEffect(()=>s.listen(c),[s,c]),S.useEffect(()=>H0(r),[r]),S.createElement(G0,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s,future:r})}var Zc;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Zc||(Zc={}));var bc;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(bc||(bc={}));const Ja=S.createContext({});function eu(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const qo=S.createContext(null),tu=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class b0 extends S.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 q0({children:e,isPresent:t}){const n=S.useId(),r=S.useRef(null),i=S.useRef({width:0,height:0,top:0,left:0}),{nonce:o}=S.useContext(tu);return S.useInsertionEffect(()=>{const{width:s,height:l,top:a,left:u}=i.current;if(t||!r.current||!s||!l)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return o&&(c.nonce=o),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
69
- [data-motion-pop-id="${n}"] {
70
- position: absolute !important;
71
- width: ${s}px !important;
72
- height: ${l}px !important;
73
- top: ${a}px !important;
74
- left: ${u}px !important;
75
- }
76
- `),()=>{document.head.removeChild(c)}},[t]),R.jsx(b0,{isPresent:t,childRef:r,sizeRef:i,children:S.cloneElement(e,{ref:r})})}const J0=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s})=>{const l=eu(e1),a=S.useId(),u=S.useCallback(f=>{l.set(f,!0);for(const d of l.values())if(!d)return;r&&r()},[l,r]),c=S.useMemo(()=>({id:a,initial:t,isPresent:n,custom:i,onExitComplete:u,register:f=>(l.set(f,!1),()=>l.delete(f))}),o?[Math.random(),u]:[n,u]);return S.useMemo(()=>{l.forEach((f,d)=>l.set(d,!1))},[n]),S.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),s==="popLayout"&&(e=R.jsx(q0,{isPresent:n,children:e})),R.jsx(qo.Provider,{value:c,children:e})};function e1(){return new Map}function Up(e=!0){const t=S.useContext(qo);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=S.useId();S.useEffect(()=>{e&&i(o)},[e]);const s=S.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,s]:[!0]}const Ni=e=>e.key||"";function qc(e){const t=[];return S.Children.forEach(e,n=>{S.isValidElement(n)&&t.push(n)}),t}const nu=typeof window<"u",$p=nu?S.useLayoutEffect:S.useEffect,ko=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:s=!1})=>{const[l,a]=Up(s),u=S.useMemo(()=>qc(e),[e]),c=s&&!l?[]:u.map(Ni),f=S.useRef(!0),d=S.useRef(u),g=eu(()=>new Map),[v,y]=S.useState(u),[w,h]=S.useState(u);$p(()=>{f.current=!1,d.current=u;for(let x=0;x<w.length;x++){const P=Ni(w[x]);c.includes(P)?g.delete(P):g.get(P)!==!0&&g.set(P,!1)}},[w,c.length,c.join("-")]);const p=[];if(u!==v){let x=[...u];for(let P=0;P<w.length;P++){const E=w[P],T=Ni(E);c.includes(T)||(x.splice(P,0,E),p.push(E))}o==="wait"&&p.length&&(x=p),h(qc(x)),y(u);return}const{forceRender:m}=S.useContext(Ja);return R.jsx(R.Fragment,{children:w.map(x=>{const P=Ni(x),E=s&&!l?!1:u===w||c.includes(P),T=()=>{if(g.has(P))g.set(P,!0);else return;let C=!0;g.forEach(N=>{N||(C=!1)}),C&&(m==null||m(),h(d.current),s&&(a==null||a()),r&&r())};return R.jsx(J0,{isPresent:E,initial:!f.current||n?void 0:!1,custom:E?void 0:t,presenceAffectsLayout:i,mode:o,onExitComplete:E?void 0:T,children:x},P)})})},Le=e=>e;let Wp=Le;function ru(e){let t;return()=>(t===void 0&&(t=e()),t)}const Xn=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},ct=e=>e*1e3,ft=e=>e/1e3,t1={useManualTiming:!1};function n1(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function l(u){o.has(u)&&(a.schedule(u),e()),u(s)}const a={schedule:(u,c=!1,f=!1)=>{const g=f&&r?t:n;return c&&o.add(u),g.has(u)||g.add(u),u},cancel:u=>{n.delete(u),o.delete(u)},process:u=>{if(s=u,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(l),t.clear(),r=!1,i&&(i=!1,a.process(u))}};return a}const ji=["read","resolveKeyframes","update","preRender","render","postRender"],r1=40;function Hp(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=ji.reduce((h,p)=>(h[p]=n1(o),h),{}),{read:l,resolveKeyframes:a,update:u,preRender:c,render:f,postRender:d}=s,g=()=>{const h=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(h-i.timestamp,r1),1),i.timestamp=h,i.isProcessing=!0,l.process(i),a.process(i),u.process(i),c.process(i),f.process(i),d.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},v=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:ji.reduce((h,p)=>{const m=s[p];return h[p]=(x,P=!1,E=!1)=>(n||v(),m.schedule(x,P,E)),h},{}),cancel:h=>{for(let p=0;p<ji.length;p++)s[ji[p]].cancel(h)},state:i,steps:s}}const{schedule:U,cancel:Ft,state:ae,steps:_s}=Hp(typeof requestAnimationFrame<"u"?requestAnimationFrame:Le,!0),Kp=S.createContext({strict:!1}),Jc={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"]},Yn={};for(const e in Jc)Yn[e]={isEnabled:t=>Jc[e].some(n=>!!t[n])};function i1(e){for(const t in e)Yn[t]={...Yn[t],...e[t]}}const o1=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function To(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||o1.has(e)}let Gp=e=>!To(e);function s1(e){e&&(Gp=t=>t.startsWith("on")?!To(t):e(t))}try{s1(require("@emotion/is-prop-valid").default)}catch{}function l1(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Gp(i)||n===!0&&To(i)||!t&&!To(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function a1(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const Jo=S.createContext({});function Jr(e){return typeof e=="string"||Array.isArray(e)}function es(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const iu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ou=["initial",...iu];function ts(e){return es(e.animate)||ou.some(t=>Jr(e[t]))}function Qp(e){return!!(ts(e)||e.variants)}function u1(e,t){if(ts(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Jr(n)?n:void 0,animate:Jr(r)?r:void 0}}return e.inherit!==!1?t:{}}function c1(e){const{initial:t,animate:n}=u1(e,S.useContext(Jo));return S.useMemo(()=>({initial:t,animate:n}),[ef(t),ef(n)])}function ef(e){return Array.isArray(e)?e.join(" "):e}const f1=Symbol.for("motionComponentSymbol");function Ln(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function d1(e,t,n){return S.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ln(n)&&(n.current=r))},[t])}const su=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),h1="framerAppearId",Xp="data-"+su(h1),{schedule:lu}=Hp(queueMicrotask,!1),Yp=S.createContext({});function p1(e,t,n,r,i){var o,s;const{visualElement:l}=S.useContext(Jo),a=S.useContext(Kp),u=S.useContext(qo),c=S.useContext(tu).reducedMotion,f=S.useRef(null);r=r||a.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:l,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const d=f.current,g=S.useContext(Yp);d&&!d.projection&&i&&(d.type==="html"||d.type==="svg")&&m1(f.current,n,i,g);const v=S.useRef(!1);S.useInsertionEffect(()=>{d&&v.current&&d.update(n,u)});const y=n[Xp],w=S.useRef(!!y&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,y))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,y)));return $p(()=>{d&&(v.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),lu.render(d.render),w.current&&d.animationState&&d.animationState.animateChanges())}),S.useEffect(()=>{d&&(!w.current&&d.animationState&&d.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{var h;(h=window.MotionHandoffMarkAsComplete)===null||h===void 0||h.call(window,y)}),w.current=!1))}),d}function m1(e,t,n,r){const{layoutId:i,layout:o,drag:s,dragConstraints:l,layoutScroll:a,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Zp(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||l&&Ln(l),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:a,layoutRoot:u})}function Zp(e){if(e)return e.options.allowProjection!==!1?e.projection:Zp(e.parent)}function g1({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,s;e&&i1(e);function l(u,c){let f;const d={...S.useContext(tu),...u,layoutId:v1(u)},{isStatic:g}=d,v=c1(u),y=r(u,g);if(!g&&nu){y1();const w=w1(d);f=w.MeasureLayout,v.visualElement=p1(i,y,d,t,w.ProjectionNode)}return R.jsxs(Jo.Provider,{value:v,children:[f&&v.visualElement?R.jsx(f,{visualElement:v.visualElement,...d}):null,n(i,u,d1(y,v.visualElement,c),y,g,v.visualElement)]})}l.displayName=`motion.${typeof i=="string"?i:`create(${(s=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&s!==void 0?s:""})`}`;const a=S.forwardRef(l);return a[f1]=i,a}function v1({layoutId:e}){const t=S.useContext(Ja).id;return t&&e!==void 0?t+"-"+e:e}function y1(e,t){S.useContext(Kp).strict}function w1(e){const{drag:t,layout:n}=Yn;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const x1=["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 au(e){return typeof e!="string"||e.includes("-")?!1:!!(x1.indexOf(e)>-1||/[A-Z]/u.test(e))}function tf(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function uu(e,t,n,r){if(typeof t=="function"){const[i,o]=tf(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=tf(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const zl=e=>Array.isArray(e),S1=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),P1=e=>zl(e)?e[e.length-1]||0:e,me=e=>!!(e&&e.getVelocity);function bi(e){const t=me(e)?e.get():e;return S1(t)?t.toValue():t}function E1({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const s={latestValues:C1(r,i,o,e),renderState:t()};return n&&(s.onMount=l=>n({props:r,current:l,...s}),s.onUpdate=l=>n(l)),s}const bp=e=>(t,n)=>{const r=S.useContext(Jo),i=S.useContext(qo),o=()=>E1(e,t,r,i);return n?o():eu(o)};function C1(e,t,n,r){const i={},o=r(e,{});for(const d in o)i[d]=bi(o[d]);let{initial:s,animate:l}=e;const a=ts(e),u=Qp(e);t&&u&&!a&&e.inherit!==!1&&(s===void 0&&(s=t.initial),l===void 0&&(l=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const f=c?l:s;if(f&&typeof f!="boolean"&&!es(f)){const d=Array.isArray(f)?f:[f];for(let g=0;g<d.length;g++){const v=uu(e,d[g]);if(v){const{transitionEnd:y,transition:w,...h}=v;for(const p in h){let m=h[p];if(Array.isArray(m)){const x=c?m.length-1:0;m=m[x]}m!==null&&(i[p]=m)}for(const p in y)i[p]=y[p]}}}return i}const tr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],mn=new Set(tr),qp=e=>t=>typeof t=="string"&&t.startsWith(e),Jp=qp("--"),k1=qp("var(--"),cu=e=>k1(e)?T1.test(e.split("/*")[0].trim()):!1,T1=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,em=(e,t)=>t&&typeof e=="number"?t.transform(e):e,gt=(e,t,n)=>n>t?t:n<e?e:n,nr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ei={...nr,transform:e=>gt(0,1,e)},Oi={...nr,default:1},ci=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),xt=ci("deg"),rt=ci("%"),D=ci("px"),R1=ci("vh"),M1=ci("vw"),nf={...rt,parse:e=>rt.parse(e)/100,transform:e=>rt.transform(e*100)},A1={borderWidth:D,borderTopWidth:D,borderRightWidth:D,borderBottomWidth:D,borderLeftWidth:D,borderRadius:D,radius:D,borderTopLeftRadius:D,borderTopRightRadius:D,borderBottomRightRadius:D,borderBottomLeftRadius:D,width:D,maxWidth:D,height:D,maxHeight:D,top:D,right:D,bottom:D,left:D,padding:D,paddingTop:D,paddingRight:D,paddingBottom:D,paddingLeft:D,margin:D,marginTop:D,marginRight:D,marginBottom:D,marginLeft:D,backgroundPositionX:D,backgroundPositionY:D},L1={rotate:xt,rotateX:xt,rotateY:xt,rotateZ:xt,scale:Oi,scaleX:Oi,scaleY:Oi,scaleZ:Oi,skew:xt,skewX:xt,skewY:xt,distance:D,translateX:D,translateY:D,translateZ:D,x:D,y:D,z:D,perspective:D,transformPerspective:D,opacity:ei,originX:nf,originY:nf,originZ:D},rf={...nr,transform:Math.round},fu={...A1,...L1,zIndex:rf,size:D,fillOpacity:ei,strokeOpacity:ei,numOctaves:rf},D1={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},_1=tr.length;function V1(e,t,n){let r="",i=!0;for(let o=0;o<_1;o++){const s=tr[o],l=e[s];if(l===void 0)continue;let a=!0;if(typeof l=="number"?a=l===(s.startsWith("scale")?1:0):a=parseFloat(l)===0,!a||n){const u=em(l,fu[s]);if(!a){i=!1;const c=D1[s]||s;r+=`${c}(${u}) `}n&&(t[s]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function du(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let s=!1,l=!1;for(const a in t){const u=t[a];if(mn.has(a)){s=!0;continue}else if(Jp(a)){i[a]=u;continue}else{const c=em(u,fu[a]);a.startsWith("origin")?(l=!0,o[a]=c):r[a]=c}}if(t.transform||(s||n?r.transform=V1(t,e.transform,n):r.transform&&(r.transform="none")),l){const{originX:a="50%",originY:u="50%",originZ:c=0}=o;r.transformOrigin=`${a} ${u} ${c}`}}const N1={offset:"stroke-dashoffset",array:"stroke-dasharray"},j1={offset:"strokeDashoffset",array:"strokeDasharray"};function O1(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?N1:j1;e[o.offset]=D.transform(-r);const s=D.transform(t),l=D.transform(n);e[o.array]=`${s} ${l}`}function of(e,t,n){return typeof e=="string"?e:D.transform(t+n*e)}function I1(e,t,n){const r=of(t,e.x,e.width),i=of(n,e.y,e.height);return`${r} ${i}`}function hu(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:l=1,pathOffset:a=0,...u},c,f){if(du(e,u,f),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:g,dimensions:v}=e;d.transform&&(v&&(g.transform=d.transform),delete d.transform),v&&(i!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=I1(v,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),s!==void 0&&O1(d,s,l,a,!1)}const pu=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),tm=()=>({...pu(),attrs:{}}),mu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function nm(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const rm=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 im(e,t,n,r){nm(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(rm.has(i)?i:su(i),t.attrs[i])}const Ro={};function F1(e){Object.assign(Ro,e)}function om(e,{layout:t,layoutId:n}){return mn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Ro[e]||e==="opacity")}function gu(e,t,n){var r;const{style:i}=e,o={};for(const s in i)(me(i[s])||t.style&&me(t.style[s])||om(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[s]=i[s]);return o}function sm(e,t,n){const r=gu(e,t,n);for(const i in e)if(me(e[i])||me(t[i])){const o=tr.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function z1(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const sf=["x","y","width","height","cx","cy","r"],B1={useVisualState:bp({scrapeMotionValuesFromProps:sm,createRenderState:tm,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const l in i)if(mn.has(l)){o=!0;break}}if(!o)return;let s=!t;if(t)for(let l=0;l<sf.length;l++){const a=sf[l];e[a]!==t[a]&&(s=!0)}s&&U.read(()=>{z1(n,r),U.render(()=>{hu(r,i,mu(n.tagName),e.transformTemplate),im(n,r)})})}})},U1={useVisualState:bp({scrapeMotionValuesFromProps:gu,createRenderState:pu})};function lm(e,t,n){for(const r in t)!me(t[r])&&!om(r,n)&&(e[r]=t[r])}function $1({transformTemplate:e},t){return S.useMemo(()=>{const n=pu();return du(n,t,e),Object.assign({},n.vars,n.style)},[t])}function W1(e,t){const n=e.style||{},r={};return lm(r,n,e),Object.assign(r,$1(e,t)),r}function H1(e,t){const n={},r=W1(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function K1(e,t,n,r){const i=S.useMemo(()=>{const o=tm();return hu(o,t,mu(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};lm(o,e.style,e),i.style={...o,...i.style}}return i}function G1(e=!1){return(n,r,i,{latestValues:o},s)=>{const a=(au(n)?K1:H1)(r,o,s,n),u=l1(r,typeof n=="string",e),c=n!==S.Fragment?{...u,...a,ref:i}:{},{children:f}=r,d=S.useMemo(()=>me(f)?f.get():f,[f]);return S.createElement(n,{...c,children:d})}}function Q1(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const s={...au(r)?B1:U1,preloadedFeatures:e,useRender:G1(i),createVisualElement:t,Component:r};return g1(s)}}function am(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 ns(e,t,n){const r=e.getProps();return uu(r,t,n!==void 0?n:r.custom,e)}const X1=ru(()=>window.ScrollTimeline!==void 0);class Y1{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(X1()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class Z1 extends Y1{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function vu(e,t){return e?e[t]||e.default||e:void 0}const Bl=2e4;function um(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Bl;)t+=n,r=e.next(t);return t>=Bl?1/0:t}function yu(e){return typeof e=="function"}function lf(e,t){e.timeline=t,e.onfinish=null}const wu=e=>Array.isArray(e)&&typeof e[0]=="number",b1={linearEasing:void 0};function q1(e,t){const n=ru(e);return()=>{var r;return(r=b1[t])!==null&&r!==void 0?r:n()}}const Mo=q1(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),cm=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(Xn(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function fm(e){return!!(typeof e=="function"&&Mo()||!e||typeof e=="string"&&(e in Ul||Mo())||wu(e)||Array.isArray(e)&&e.every(fm))}const yr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ul={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:yr([0,.65,.55,1]),circOut:yr([.55,0,1,.45]),backIn:yr([.31,.01,.66,-.59]),backOut:yr([.33,1.53,.69,.99])};function dm(e,t){if(e)return typeof e=="function"&&Mo()?cm(e,t):wu(e)?yr(e):Array.isArray(e)?e.map(n=>dm(n,t)||Ul.easeOut):Ul[e]}const He={x:!1,y:!1};function hm(){return He.x||He.y}function J1(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function pm(e,t){const n=J1(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function af(e){return t=>{t.pointerType==="touch"||hm()||e(t)}}function ew(e,t,n={}){const[r,i,o]=pm(e,n),s=af(l=>{const{target:a}=l,u=t(l);if(typeof u!="function"||!a)return;const c=af(f=>{u(f),a.removeEventListener("pointerleave",c)});a.addEventListener("pointerleave",c,i)});return r.forEach(l=>{l.addEventListener("pointerenter",s,i)}),o}const mm=(e,t)=>t?e===t?!0:mm(e,t.parentElement):!1,xu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,tw=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function nw(e){return tw.has(e.tagName)||e.tabIndex!==-1}const wr=new WeakSet;function uf(e){return t=>{t.key==="Enter"&&e(t)}}function Vs(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const rw=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=uf(()=>{if(wr.has(n))return;Vs(n,"down");const i=uf(()=>{Vs(n,"up")}),o=()=>Vs(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function cf(e){return xu(e)&&!hm()}function iw(e,t,n={}){const[r,i,o]=pm(e,n),s=l=>{const a=l.currentTarget;if(!cf(l)||wr.has(a))return;wr.add(a);const u=t(l),c=(g,v)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",d),!(!cf(g)||!wr.has(a))&&(wr.delete(a),typeof u=="function"&&u(g,{success:v}))},f=g=>{c(g,n.useGlobalTarget||mm(a,g.target))},d=g=>{c(g,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",d,i)};return r.forEach(l=>{!nw(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0),(n.useGlobalTarget?window:l).addEventListener("pointerdown",s,i),l.addEventListener("focus",u=>rw(u,i),i)}),o}function ow(e){return e==="x"||e==="y"?He[e]?null:(He[e]=!0,()=>{He[e]=!1}):He.x||He.y?null:(He.x=He.y=!0,()=>{He.x=He.y=!1})}const gm=new Set(["width","height","top","left","right","bottom",...tr]);let qi;function sw(){qi=void 0}const it={now:()=>(qi===void 0&&it.set(ae.isProcessing||t1.useManualTiming?ae.timestamp:performance.now()),qi),set:e=>{qi=e,queueMicrotask(sw)}};function Su(e,t){e.indexOf(t)===-1&&e.push(t)}function Pu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Eu{constructor(){this.subscriptions=[]}add(t){return Su(this.subscriptions,t),()=>Pu(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 o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function vm(e,t){return t?e*(1e3/t):0}const ff=30,lw=e=>!isNaN(parseFloat(e));class aw{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=it.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=it.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=lw(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Eu);const r=this.events[t].add(n);return t==="change"?()=>{r(),U.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=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=it.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ff)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ff);return vm(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}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 ti(e,t){return new aw(e,t)}function uw(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ti(n))}function cw(e,t){const n=ns(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const l=P1(o[s]);uw(e,s,l)}}function fw(e){return!!(me(e)&&e.add)}function $l(e,t){const n=e.getValue("willChange");if(fw(n))return n.add(t)}function ym(e){return e.props[Xp]}const wm=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,dw=1e-7,hw=12;function pw(e,t,n,r,i){let o,s,l=0;do s=t+(n-t)/2,o=wm(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>dw&&++l<hw);return s}function fi(e,t,n,r){if(e===t&&n===r)return Le;const i=o=>pw(o,0,1,e,n);return o=>o===0||o===1?o:wm(i(o),t,r)}const xm=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Sm=e=>t=>1-e(1-t),Pm=fi(.33,1.53,.69,.99),Cu=Sm(Pm),Em=xm(Cu),Cm=e=>(e*=2)<1?.5*Cu(e):.5*(2-Math.pow(2,-10*(e-1))),ku=e=>1-Math.sin(Math.acos(e)),km=Sm(ku),Tm=xm(ku),Rm=e=>/^0[^.\s]+$/u.test(e);function mw(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Rm(e):!0}const Lr=e=>Math.round(e*1e5)/1e5,Tu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function gw(e){return e==null}const vw=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ru=(e,t)=>n=>!!(typeof n=="string"&&vw.test(n)&&n.startsWith(e)||t&&!gw(n)&&Object.prototype.hasOwnProperty.call(n,t)),Mm=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,s,l]=r.match(Tu);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},yw=e=>gt(0,255,e),Ns={...nr,transform:e=>Math.round(yw(e))},nn={test:Ru("rgb","red"),parse:Mm("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Ns.transform(e)+", "+Ns.transform(t)+", "+Ns.transform(n)+", "+Lr(ei.transform(r))+")"};function ww(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 Wl={test:Ru("#"),parse:ww,transform:nn.transform},Dn={test:Ru("hsl","hue"),parse:Mm("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+rt.transform(Lr(t))+", "+rt.transform(Lr(n))+", "+Lr(ei.transform(r))+")"},he={test:e=>nn.test(e)||Wl.test(e)||Dn.test(e),parse:e=>nn.test(e)?nn.parse(e):Dn.test(e)?Dn.parse(e):Wl.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?nn.transform(e):Dn.transform(e)},xw=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Sw(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Tu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(xw))===null||n===void 0?void 0:n.length)||0)>0}const Am="number",Lm="color",Pw="var",Ew="var(",df="${}",Cw=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ni(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const l=t.replace(Cw,a=>(he.test(a)?(r.color.push(o),i.push(Lm),n.push(he.parse(a))):a.startsWith(Ew)?(r.var.push(o),i.push(Pw),n.push(a)):(r.number.push(o),i.push(Am),n.push(parseFloat(a))),++o,df)).split(df);return{values:n,split:l,indexes:r,types:i}}function Dm(e){return ni(e).values}function _m(e){const{split:t,types:n}=ni(e),r=t.length;return i=>{let o="";for(let s=0;s<r;s++)if(o+=t[s],i[s]!==void 0){const l=n[s];l===Am?o+=Lr(i[s]):l===Lm?o+=he.transform(i[s]):o+=i[s]}return o}}const kw=e=>typeof e=="number"?0:e;function Tw(e){const t=Dm(e);return _m(e)(t.map(kw))}const zt={test:Sw,parse:Dm,createTransformer:_m,getAnimatableNone:Tw},Rw=new Set(["brightness","contrast","saturate","opacity"]);function Mw(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Tu)||[];if(!r)return e;const i=n.replace(r,"");let o=Rw.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const Aw=/\b([a-z-]*)\(.*?\)/gu,Hl={...zt,getAnimatableNone:e=>{const t=e.match(Aw);return t?t.map(Mw).join(" "):e}},Lw={...fu,color:he,backgroundColor:he,outlineColor:he,fill:he,stroke:he,borderColor:he,borderTopColor:he,borderRightColor:he,borderBottomColor:he,borderLeftColor:he,filter:Hl,WebkitFilter:Hl},Mu=e=>Lw[e];function Vm(e,t){let n=Mu(e);return n!==Hl&&(n=zt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Dw=new Set(["auto","none","0"]);function _w(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!Dw.has(o)&&ni(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=Vm(n,i)}const hf=e=>e===nr||e===D,pf=(e,t)=>parseFloat(e.split(", ")[t]),mf=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return pf(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?pf(o[1],e):0}},Vw=new Set(["x","y","z"]),Nw=tr.filter(e=>!Vw.has(e));function jw(e){const t=[];return Nw.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),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:mf(4,13),y:mf(5,14)};Zn.translateX=Zn.x;Zn.translateY=Zn.y;const ln=new Set;let Kl=!1,Gl=!1;function Nm(){if(Gl){const e=Array.from(ln).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=jw(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,s])=>{var l;(l=r.getValue(o))===null||l===void 0||l.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Gl=!1,Kl=!1,ln.forEach(e=>e.complete()),ln.clear()}function jm(){ln.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Gl=!0)})}function Ow(){jm(),Nm()}class Au{constructor(t,n,r,i,o,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ln.add(this),Kl||(Kl=!0,U.read(jm),U.resolveKeyframes(Nm))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const s=i==null?void 0:i.get(),l=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const a=r.readValue(n,l);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=l),i&&s===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ln.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ln.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Om=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Iw=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Fw(e){const t=Iw.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function Im(e,t,n=1){const[r,i]=Fw(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return Om(s)?parseFloat(s):s}return cu(i)?Im(i,t,n+1):i}const Fm=e=>t=>t.test(e),zw={test:e=>e==="auto",parse:e=>e},zm=[nr,D,rt,xt,M1,R1,zw],gf=e=>zm.find(Fm(e));class Bm extends Au{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let a=0;a<t.length;a++){let u=t[a];if(typeof u=="string"&&(u=u.trim(),cu(u))){const c=Im(u,n.current);c!==void 0&&(t[a]=c),a===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!gm.has(r)||t.length!==2)return;const[i,o]=t,s=gf(i),l=gf(o);if(s!==l)if(hf(s)&&hf(l))for(let a=0;a<t.length;a++){const u=t[a];typeof u=="string"&&(t[a]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)mw(t[i])&&r.push(i);r.length&&_w(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Zn[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const s=i.length-1,l=i[s];i[s]=Zn[r](n.measureViewportBox(),window.getComputedStyle(n.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([a,u])=>{n.getValue(a).set(u)}),this.resolveNoneKeyframes()}}const vf=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(zt.test(e)||e==="0")&&!e.startsWith("url("));function Bw(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Uw(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],s=vf(i,t),l=vf(o,t);return!s||!l?!1:Bw(e)||(n==="spring"||yu(n))&&r}const $w=e=>e!==null;function rs(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter($w),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const Ww=40;class Um{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=it.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:s,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Ww?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Ow(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=it.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:s,onComplete:l,onUpdate:a,isGenerator:u}=this.options;if(!u&&!Uw(t,r,i,o))if(s)this.options.duration=0;else{a&&a(rs(t,this.options,n)),l&&l(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const H=(e,t,n)=>e+(t-e)*n;function js(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 Hw({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const l=n<.5?n*(1+t):n+t-n*t,a=2*n-l;i=js(a,l,e+1/3),o=js(a,l,e),s=js(a,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}function Ao(e,t){return n=>n>0?t:e}const Os=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Kw=[Wl,nn,Dn],Gw=e=>Kw.find(t=>t.test(e));function yf(e){const t=Gw(e);if(!t)return!1;let n=t.parse(e);return t===Dn&&(n=Hw(n)),n}const wf=(e,t)=>{const n=yf(e),r=yf(t);if(!n||!r)return Ao(e,t);const i={...n};return o=>(i.red=Os(n.red,r.red,o),i.green=Os(n.green,r.green,o),i.blue=Os(n.blue,r.blue,o),i.alpha=H(n.alpha,r.alpha,o),nn.transform(i))},Qw=(e,t)=>n=>t(e(n)),di=(...e)=>e.reduce(Qw),Ql=new Set(["none","hidden"]);function Xw(e,t){return Ql.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Yw(e,t){return n=>H(e,t,n)}function Lu(e){return typeof e=="number"?Yw:typeof e=="string"?cu(e)?Ao:he.test(e)?wf:qw:Array.isArray(e)?$m:typeof e=="object"?he.test(e)?wf:Zw:Ao}function $m(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>Lu(o)(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}}function Zw(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Lu(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function bw(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],l=e.indexes[s][i[s]],a=(n=e.values[l])!==null&&n!==void 0?n:0;r[o]=a,i[s]++}return r}const qw=(e,t)=>{const n=zt.createTransformer(t),r=ni(e),i=ni(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Ql.has(e)&&!i.values.length||Ql.has(t)&&!r.values.length?Xw(e,t):di($m(bw(r,i),i.values),n):Ao(e,t)};function Wm(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?H(e,t,n):Lu(e)(e,t)}const Jw=5;function Hm(e,t,n){const r=Math.max(t-Jw,0);return vm(n-e(r),t-r)}const Q={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Is=.001;function ex({duration:e=Q.duration,bounce:t=Q.bounce,velocity:n=Q.velocity,mass:r=Q.mass}){let i,o,s=1-t;s=gt(Q.minDamping,Q.maxDamping,s),e=gt(Q.minDuration,Q.maxDuration,ft(e)),s<1?(i=u=>{const c=u*s,f=c*e,d=c-n,g=Xl(u,s),v=Math.exp(-f);return Is-d/g*v},o=u=>{const f=u*s*e,d=f*n+n,g=Math.pow(s,2)*Math.pow(u,2)*e,v=Math.exp(-f),y=Xl(Math.pow(u,2),s);return(-i(u)+Is>0?-1:1)*((d-g)*v)/y}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-Is+c*f},o=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const l=5/e,a=nx(i,o,l);if(e=ct(e),isNaN(a))return{stiffness:Q.stiffness,damping:Q.damping,duration:e};{const u=Math.pow(a,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const tx=12;function nx(e,t,n){let r=n;for(let i=1;i<tx;i++)r=r-e(r)/t(r);return r}function Xl(e,t){return e*Math.sqrt(1-t*t)}const rx=["duration","bounce"],ix=["stiffness","damping","mass"];function xf(e,t){return t.some(n=>e[n]!==void 0)}function ox(e){let t={velocity:Q.velocity,stiffness:Q.stiffness,damping:Q.damping,mass:Q.mass,isResolvedFromDuration:!1,...e};if(!xf(e,ix)&&xf(e,rx))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*gt(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Q.mass,stiffness:i,damping:o}}else{const n=ex(e);t={...t,...n,mass:Q.mass},t.isResolvedFromDuration=!0}return t}function Km(e=Q.visualDuration,t=Q.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:a,damping:u,mass:c,duration:f,velocity:d,isResolvedFromDuration:g}=ox({...n,velocity:-ft(n.velocity||0)}),v=d||0,y=u/(2*Math.sqrt(a*c)),w=s-o,h=ft(Math.sqrt(a/c)),p=Math.abs(w)<5;r||(r=p?Q.restSpeed.granular:Q.restSpeed.default),i||(i=p?Q.restDelta.granular:Q.restDelta.default);let m;if(y<1){const P=Xl(h,y);m=E=>{const T=Math.exp(-y*h*E);return s-T*((v+y*h*w)/P*Math.sin(P*E)+w*Math.cos(P*E))}}else if(y===1)m=P=>s-Math.exp(-h*P)*(w+(v+h*w)*P);else{const P=h*Math.sqrt(y*y-1);m=E=>{const T=Math.exp(-y*h*E),C=Math.min(P*E,300);return s-T*((v+y*h*w)*Math.sinh(C)+P*w*Math.cosh(C))/P}}const x={calculatedDuration:g&&f||null,next:P=>{const E=m(P);if(g)l.done=P>=f;else{let T=0;y<1&&(T=P===0?ct(v):Hm(m,P,E));const C=Math.abs(T)<=r,N=Math.abs(s-E)<=i;l.done=C&&N}return l.value=l.done?s:E,l},toString:()=>{const P=Math.min(um(x),Bl),E=cm(T=>x.next(P*T).value,P,30);return P+"ms "+E}};return x}function Sf({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:l,max:a,restDelta:u=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},g=C=>l!==void 0&&C<l||a!==void 0&&C>a,v=C=>l===void 0?a:a===void 0||Math.abs(l-C)<Math.abs(a-C)?l:a;let y=n*t;const w=f+y,h=s===void 0?w:s(w);h!==w&&(y=h-f);const p=C=>-y*Math.exp(-C/r),m=C=>h+p(C),x=C=>{const N=p(C),L=m(C);d.done=Math.abs(N)<=u,d.value=d.done?h:L};let P,E;const T=C=>{g(d.value)&&(P=C,E=Km({keyframes:[d.value,v(d.value)],velocity:Hm(m,C,d.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return T(0),{calculatedDuration:null,next:C=>{let N=!1;return!E&&P===void 0&&(N=!0,x(C),T(C)),P!==void 0&&C>=P?E.next(C-P):(!N&&x(C),d)}}}const sx=fi(.42,0,1,1),lx=fi(0,0,.58,1),Gm=fi(.42,0,.58,1),ax=e=>Array.isArray(e)&&typeof e[0]!="number",ux={linear:Le,easeIn:sx,easeInOut:Gm,easeOut:lx,circIn:ku,circInOut:Tm,circOut:km,backIn:Cu,backInOut:Em,backOut:Pm,anticipate:Cm},Pf=e=>{if(wu(e)){Wp(e.length===4);const[t,n,r,i]=e;return fi(t,n,r,i)}else if(typeof e=="string")return ux[e];return e};function cx(e,t,n){const r=[],i=n||Wm,o=e.length-1;for(let s=0;s<o;s++){let l=i(e[s],e[s+1]);if(t){const a=Array.isArray(t)?t[s]||Le:t;l=di(a,l)}r.push(l)}return r}function fx(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Wp(o===t.length),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=cx(t,r,i),a=l.length,u=c=>{if(s&&c<e[0])return t[0];let f=0;if(a>1)for(;f<e.length-2&&!(c<e[f+1]);f++);const d=Xn(e[f],e[f+1],c);return l[f](d)};return n?c=>u(gt(e[0],e[o-1],c)):u}function dx(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Xn(0,t,r);e.push(H(n,1,i))}}function hx(e){const t=[0];return dx(t,e.length-1),t}function px(e,t){return e.map(n=>n*t)}function mx(e,t){return e.map(()=>t||Gm).splice(0,e.length-1)}function Lo({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=ax(r)?r.map(Pf):Pf(r),o={done:!1,value:t[0]},s=px(n&&n.length===t.length?n:hx(t),e),l=fx(s,t,{ease:Array.isArray(i)?i:mx(t,i)});return{calculatedDuration:e,next:a=>(o.value=l(a),o.done=a>=e,o)}}const gx=e=>{const t=({timestamp:n})=>e(n);return{start:()=>U.update(t,!0),stop:()=>Ft(t),now:()=>ae.isProcessing?ae.timestamp:it.now()}},vx={decay:Sf,inertia:Sf,tween:Lo,keyframes:Lo,spring:Km},yx=e=>e/100;class Du extends Um{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:a}=this.options;a&&a()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,s=(i==null?void 0:i.KeyframeResolver)||Au,l=(a,u)=>this.onKeyframesResolved(a,u);this.resolver=new s(o,l,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:s=0}=this.options,l=yu(n)?n:vx[n]||Lo;let a,u;l!==Lo&&typeof t[0]!="number"&&(a=di(yx,Wm(t[0],t[1])),t=[0,100]);const c=l({...this.options,keyframes:t});o==="mirror"&&(u=l({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=um(c));const{calculatedDuration:f}=c,d=f+i,g=d*(r+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:a,calculatedDuration:f,resolvedDuration:d,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:C}=this.options;return{done:!0,value:C[C.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:s,mapPercentToKeyframes:l,keyframes:a,calculatedDuration:u,totalDuration:c,resolvedDuration:f}=r;if(this.startTime===null)return o.next(0);const{delay:d,repeat:g,repeatType:v,repeatDelay:y,onUpdate:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const h=this.currentTime-d*(this.speed>=0?1:-1),p=this.speed>=0?h<0:h>c;this.currentTime=Math.max(h,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let m=this.currentTime,x=o;if(g){const C=Math.min(this.currentTime,c)/f;let N=Math.floor(C),L=C%1;!L&&C>=1&&(L=1),L===1&&N--,N=Math.min(N,g+1),!!(N%2)&&(v==="reverse"?(L=1-L,y&&(L-=y/f)):v==="mirror"&&(x=s)),m=gt(0,1,L)*f}const P=p?{done:!1,value:a[0]}:x.next(m);l&&(P.value=l(P.value));let{done:E}=P;!p&&u!==null&&(E=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const T=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return T&&i!==void 0&&(P.value=rs(a,this.options,i)),w&&w(P.value),T&&this.finish(),P}get duration(){const{resolved:t}=this;return t?ft(t.calculatedDuration):0}get time(){return ft(this.currentTime)}set time(t){t=ct(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=ft(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=gx,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const wx=new Set(["opacity","clipPath","filter","transform"]);function xx(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:l="easeInOut",times:a}={}){const u={[t]:n};a&&(u.offset=a);const c=dm(l,i);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}const Sx=ru(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Do=10,Px=2e4;function Ex(e){return yu(e.type)||e.type==="spring"||!fm(e.ease)}function Cx(e,t){const n=new Du({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<Px;)r=n.sample(o),i.push(r.value),o+=Do;return{times:void 0,keyframes:i,duration:o-Do,ease:"linear"}}const Qm={anticipate:Cm,backInOut:Em,circInOut:Tm};function kx(e){return e in Qm}class Ef extends Um{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new Bm(o,(s,l)=>this.onKeyframesResolved(s,l),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:s,motionValue:l,name:a,startTime:u}=this.options;if(!l.owner||!l.owner.current)return!1;if(typeof o=="string"&&Mo()&&kx(o)&&(o=Qm[o]),Ex(this.options)){const{onComplete:f,onUpdate:d,motionValue:g,element:v,...y}=this.options,w=Cx(t,y);t=w.keyframes,t.length===1&&(t[1]=t[0]),r=w.duration,i=w.times,o=w.ease,s="keyframes"}const c=xx(l.owner.current,a,t,{...this.options,duration:r,times:i,ease:o});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(lf(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:f}=this.options;l.set(rs(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:r,times:i,type:s,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return ft(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return ft(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=ct(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Le;const{animation:r}=n;lf(r,t)}return Le}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:s,times:l}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:f,element:d,...g}=this.options,v=new Du({...g,keyframes:r,duration:i,type:o,ease:s,times:l,isGenerator:!0}),y=ct(this.time);u.setWithVelocity(v.sample(y-Do).value,v.sample(y).value,Do)}const{onStop:a}=this.options;a&&a(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:s,type:l}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:a,transformTemplate:u}=n.owner.getProps();return Sx()&&r&&wx.has(r)&&!a&&!u&&!i&&o!=="mirror"&&s!==0&&l!=="inertia"}}const Tx={type:"spring",stiffness:500,damping:25,restSpeed:10},Rx=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Mx={type:"keyframes",duration:.8},Ax={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Lx=(e,{keyframes:t})=>t.length>2?Mx:mn.has(e)?e.startsWith("scale")?Rx(t[1]):Tx:Ax;function Dx({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:l,from:a,elapsed:u,...c}){return!!Object.keys(c).length}const _u=(e,t,n,r={},i,o)=>s=>{const l=vu(r,e)||{},a=l.delay||r.delay||0;let{elapsed:u=0}=r;u=u-ct(a);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:d=>{t.set(d),l.onUpdate&&l.onUpdate(d)},onComplete:()=>{s(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:o?void 0:i};Dx(l)||(c={...c,...Lx(e,c)}),c.duration&&(c.duration=ct(c.duration)),c.repeatDelay&&(c.repeatDelay=ct(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(f=!0)),f&&!o&&t.get()!==void 0){const d=rs(c.keyframes,l);if(d!==void 0)return U.update(()=>{c.onUpdate(d),c.onComplete()}),new Z1([])}return!o&&Ef.supports(c)?new Ef(c):new Du(c)};function _x({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Xm(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:s=e.getDefaultTransition(),transitionEnd:l,...a}=t;r&&(s=r);const u=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const f in a){const d=e.getValue(f,(o=e.latestValues[f])!==null&&o!==void 0?o:null),g=a[f];if(g===void 0||c&&_x(c,f))continue;const v={delay:n,...vu(s||{},f)};let y=!1;if(window.MotionHandoffAnimation){const h=ym(e);if(h){const p=window.MotionHandoffAnimation(h,f,U);p!==null&&(v.startTime=p,y=!0)}}$l(e,f),d.start(_u(f,d,g,e.shouldReduceMotion&&gm.has(f)?{type:!1}:v,e,y));const w=d.animation;w&&u.push(w)}return l&&Promise.all(u).then(()=>{U.update(()=>{l&&cw(e,l)})}),u}function Yl(e,t,n={}){var r;const i=ns(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const s=i?()=>Promise.all(Xm(e,i,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:d}=o;return Vx(e,t,c+u,f,d,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[u,c]=a==="beforeChildren"?[s,l]:[l,s];return u().then(()=>c())}else return Promise.all([s(),l(n.delay)])}function Vx(e,t,n=0,r=0,i=1,o){const s=[],l=(e.variantChildren.size-1)*r,a=i===1?(u=0)=>u*r:(u=0)=>l-u*r;return Array.from(e.variantChildren).sort(Nx).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(Yl(u,t,{...o,delay:n+a(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function Nx(e,t){return e.sortNodePosition(t)}function jx(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Yl(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Yl(e,t,n);else{const i=typeof t=="function"?ns(e,t,n.custom):t;r=Promise.all(Xm(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const Ox=ou.length;function Ym(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Ym(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Ox;n++){const r=ou[n],i=e.props[r];(Jr(i)||i===!1)&&(t[r]=i)}return t}const Ix=[...iu].reverse(),Fx=iu.length;function zx(e){return t=>Promise.all(t.map(({animation:n,options:r})=>jx(e,n,r)))}function Bx(e){let t=zx(e),n=Cf(),r=!0;const i=a=>(u,c)=>{var f;const d=ns(e,c,a==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(d){const{transition:g,transitionEnd:v,...y}=d;u={...u,...y,...v}}return u};function o(a){t=a(e)}function s(a){const{props:u}=e,c=Ym(e.parent)||{},f=[],d=new Set;let g={},v=1/0;for(let w=0;w<Fx;w++){const h=Ix[w],p=n[h],m=u[h]!==void 0?u[h]:c[h],x=Jr(m),P=h===a?p.isActive:null;P===!1&&(v=w);let E=m===c[h]&&m!==u[h]&&x;if(E&&r&&e.manuallyAnimateOnMount&&(E=!1),p.protectedKeys={...g},!p.isActive&&P===null||!m&&!p.prevProp||es(m)||typeof m=="boolean")continue;const T=Ux(p.prevProp,m);let C=T||h===a&&p.isActive&&!E&&x||w>v&&x,N=!1;const L=Array.isArray(m)?m:[m];let re=L.reduce(i(h),{});P===!1&&(re={});const{prevResolvedValues:yt={}}=p,Kt={...yt,...re},rr=J=>{C=!0,d.has(J)&&(N=!0,d.delete(J)),p.needsAnimating[J]=!0;const M=e.getValue(J);M&&(M.liveStyle=!1)};for(const J in Kt){const M=re[J],_=yt[J];if(g.hasOwnProperty(J))continue;let V=!1;zl(M)&&zl(_)?V=!am(M,_):V=M!==_,V?M!=null?rr(J):d.add(J):M!==void 0&&d.has(J)?rr(J):p.protectedKeys[J]=!0}p.prevProp=m,p.prevResolvedValues=re,p.isActive&&(g={...g,...re}),r&&e.blockInitialAnimation&&(C=!1),C&&(!(E&&T)||N)&&f.push(...L.map(J=>({animation:J,options:{type:h}})))}if(d.size){const w={};d.forEach(h=>{const p=e.getBaseTarget(h),m=e.getValue(h);m&&(m.liveStyle=!0),w[h]=p??null}),f.push({animation:w})}let y=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(f):Promise.resolve()}function l(a,u){var c;if(n[a].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(d=>{var g;return(g=d.animationState)===null||g===void 0?void 0:g.setActive(a,u)}),n[a].isActive=u;const f=s(a);for(const d in n)n[d].protectedKeys={};return f}return{animateChanges:s,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Cf(),r=!0}}}function Ux(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!am(t,e):!1}function Xt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Cf(){return{animate:Xt(!0),whileInView:Xt(),whileHover:Xt(),whileTap:Xt(),whileDrag:Xt(),whileFocus:Xt(),exit:Xt()}}class Ht{constructor(t){this.isMounted=!1,this.node=t}update(){}}class $x extends Ht{constructor(t){super(t),t.animationState||(t.animationState=Bx(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();es(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let Wx=0;class Hx extends Ht{constructor(){super(...arguments),this.id=Wx++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const Kx={animation:{Feature:$x},exit:{Feature:Hx}};function ri(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function hi(e){return{point:{x:e.pageX,y:e.pageY}}}const Gx=e=>t=>xu(t)&&e(t,hi(t));function Dr(e,t,n,r){return ri(e,t,Gx(n),r)}const kf=(e,t)=>Math.abs(e-t);function Qx(e,t){const n=kf(e.x,t.x),r=kf(e.y,t.y);return Math.sqrt(n**2+r**2)}class Zm{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!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=zs(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,g=Qx(f.offset,{x:0,y:0})>=3;if(!d&&!g)return;const{point:v}=f,{timestamp:y}=ae;this.history.push({...v,timestamp:y});const{onStart:w,onMove:h}=this.handlers;d||(w&&w(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),h&&h(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Fs(d,this.transformPagePoint),U.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:g,onSessionEnd:v,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=zs(f.type==="pointercancel"?this.lastMoveEventInfo:Fs(d,this.transformPagePoint),this.history);this.startEvent&&g&&g(f,w),v&&v(f,w)},!xu(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=hi(t),l=Fs(s,this.transformPagePoint),{point:a}=l,{timestamp:u}=ae;this.history=[{...a,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,zs(l,this.history)),this.removeListeners=di(Dr(this.contextWindow,"pointermove",this.handlePointerMove),Dr(this.contextWindow,"pointerup",this.handlePointerUp),Dr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ft(this.updatePoint)}}function Fs(e,t){return t?{point:t(e.point)}:e}function Tf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function zs({point:e},t){return{point:e,delta:Tf(e,bm(t)),offset:Tf(e,Xx(t)),velocity:Yx(t,.1)}}function Xx(e){return e[0]}function bm(e){return e[e.length-1]}function Yx(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=bm(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ct(t)));)n--;if(!r)return{x:0,y:0};const o=ft(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}const qm=1e-4,Zx=1-qm,bx=1+qm,Jm=.01,qx=0-Jm,Jx=0+Jm;function _e(e){return e.max-e.min}function eS(e,t,n){return Math.abs(e-t)<=n}function Rf(e,t,n,r=.5){e.origin=r,e.originPoint=H(t.min,t.max,e.origin),e.scale=_e(n)/_e(t),e.translate=H(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Zx&&e.scale<=bx||isNaN(e.scale))&&(e.scale=1),(e.translate>=qx&&e.translate<=Jx||isNaN(e.translate))&&(e.translate=0)}function _r(e,t,n,r){Rf(e.x,t.x,n.x,r?r.originX:void 0),Rf(e.y,t.y,n.y,r?r.originY:void 0)}function Mf(e,t,n){e.min=n.min+t.min,e.max=e.min+_e(t)}function tS(e,t,n){Mf(e.x,t.x,n.x),Mf(e.y,t.y,n.y)}function Af(e,t,n){e.min=t.min-n.min,e.max=e.min+_e(t)}function Vr(e,t,n){Af(e.x,t.x,n.x),Af(e.y,t.y,n.y)}function nS(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?H(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?H(n,e,r.max):Math.min(e,n)),e}function Lf(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 rS(e,{top:t,left:n,bottom:r,right:i}){return{x:Lf(e.x,n,i),y:Lf(e.y,t,r)}}function Df(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 iS(e,t){return{x:Df(e.x,t.x),y:Df(e.y,t.y)}}function oS(e,t){let n=.5;const r=_e(e),i=_e(t);return i>r?n=Xn(t.min,t.max-r,e.min):r>i&&(n=Xn(e.min,e.max-i,t.min)),gt(0,1,n)}function sS(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 Zl=.35;function lS(e=Zl){return e===!1?e=0:e===!0&&(e=Zl),{x:_f(e,"left","right"),y:_f(e,"top","bottom")}}function _f(e,t,n){return{min:Vf(e,t),max:Vf(e,n)}}function Vf(e,t){return typeof e=="number"?e:e[t]||0}const Nf=()=>({translate:0,scale:1,origin:0,originPoint:0}),_n=()=>({x:Nf(),y:Nf()}),jf=()=>({min:0,max:0}),Z=()=>({x:jf(),y:jf()});function Oe(e){return[e("x"),e("y")]}function eg({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function aS({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function uS(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 Bs(e){return e===void 0||e===1}function bl({scale:e,scaleX:t,scaleY:n}){return!Bs(e)||!Bs(t)||!Bs(n)}function bt(e){return bl(e)||tg(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function tg(e){return Of(e.x)||Of(e.y)}function Of(e){return e&&e!=="0%"}function _o(e,t,n){const r=e-n,i=t*r;return n+i}function If(e,t,n,r,i){return i!==void 0&&(e=_o(e,i,r)),_o(e,n,r)+t}function ql(e,t=0,n=1,r,i){e.min=If(e.min,t,n,r,i),e.max=If(e.max,t,n,r,i)}function ng(e,{x:t,y:n}){ql(e.x,t.translate,t.scale,t.originPoint),ql(e.y,n.translate,n.scale,n.originPoint)}const Ff=.999999999999,zf=1.0000000000001;function cS(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let l=0;l<i;l++){o=n[l],s=o.projectionDelta;const{visualElement:a}=o.options;a&&a.props.style&&a.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Nn(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,ng(e,s)),r&&bt(o.latestValues)&&Nn(e,o.latestValues))}t.x<zf&&t.x>Ff&&(t.x=1),t.y<zf&&t.y>Ff&&(t.y=1)}function Vn(e,t){e.min=e.min+t,e.max=e.max+t}function Bf(e,t,n,r,i=.5){const o=H(e.min,e.max,i);ql(e,t,n,o,r)}function Nn(e,t){Bf(e.x,t.x,t.scaleX,t.scale,t.originX),Bf(e.y,t.y,t.scaleY,t.scale,t.originY)}function rg(e,t){return eg(uS(e.getBoundingClientRect(),t))}function fS(e,t,n){const r=rg(e,n),{scroll:i}=t;return i&&(Vn(r.x,i.offset.x),Vn(r.y,i.offset.y)),r}const ig=({current:e})=>e?e.ownerDocument.defaultView:null,dS=new WeakMap;class hS{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Z(),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(hi(c).point)},o=(c,f)=>{const{drag:d,dragPropagation:g,onDragStart:v}=this.getProps();if(d&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ow(d),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Oe(w=>{let h=this.getAxisMotionValue(w).get()||0;if(rt.test(h)){const{projection:p}=this.visualElement;if(p&&p.layout){const m=p.layout.layoutBox[w];m&&(h=_e(m)*(parseFloat(h)/100))}}this.originPoint[w]=h}),v&&U.postRender(()=>v(c,f)),$l(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},s=(c,f)=>{const{dragPropagation:d,dragDirectionLock:g,onDirectionLock:v,onDrag:y}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:w}=f;if(g&&this.currentDirection===null){this.currentDirection=pS(w),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",f.point,w),this.updateAxis("y",f.point,w),this.visualElement.render(),y&&y(c,f)},l=(c,f)=>this.stop(c,f),a=()=>Oe(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 Zm(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:l,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:ig(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&U.postRender(()=>o(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.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Ii(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=nS(s,this.constraints[t],this.elastic[t])),o.set(s)}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,o=this.constraints;n&&Ln(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=rS(i.layoutBox,n):this.constraints=!1,this.elastic=lS(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Oe(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=sS(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ln(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=fS(r,i.root,this.visualElement.getTransformPagePoint());let s=iS(i.layout.layoutBox,o);if(n){const l=n(aS(s));this.hasMutatedConstraints=!!l,l&&(s=eg(l))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:l}=this.getProps(),a=this.constraints||{},u=Oe(c=>{if(!Ii(c,n,this.currentDirection))return;let f=a&&a[c]||{};s&&(f={min:0,max:0});const d=i?200:1e6,g=i?40:1e7,v={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(c,v)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return $l(this.visualElement,t),r.start(_u(t,r,0,n,this.visualElement,!1))}stopAnimation(){Oe(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Oe(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){Oe(n=>{const{drag:r}=this.getProps();if(!Ii(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:l}=i.layout.layoutBox[n];o.set(t[n]-H(s,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ln(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Oe(s=>{const l=this.getAxisMotionValue(s);if(l&&this.constraints!==!1){const a=l.get();i[s]=oS({min:a,max:a},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Oe(s=>{if(!Ii(s,t,null))return;const l=this.getAxisMotionValue(s),{min:a,max:u}=this.constraints[s];l.set(H(a,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;dS.set(this.visualElement,this);const t=this.visualElement.current,n=Dr(t,"pointerdown",a=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(a)}),r=()=>{const{dragConstraints:a}=this.getProps();Ln(a)&&a.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),U.read(r);const s=ri(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:a,hasLayoutChanged:u})=>{this.isDragging&&u&&(Oe(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=a[c].translate,f.set(f.get()+a[c].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=Zl,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:l}}}function Ii(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function pS(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class mS extends Ht{constructor(t){super(t),this.removeGroupControls=Le,this.removeListeners=Le,this.controls=new hS(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Le}unmount(){this.removeGroupControls(),this.removeListeners()}}const Uf=e=>(t,n)=>{e&&U.postRender(()=>e(t,n))};class gS extends Ht{constructor(){super(...arguments),this.removePointerDownListener=Le}onPointerDown(t){this.session=new Zm(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ig(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Uf(t),onStart:Uf(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&U.postRender(()=>i(o,s))}}}mount(){this.removePointerDownListener=Dr(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Ji={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function $f(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const dr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(D.test(e))e=parseFloat(e);else return e;const n=$f(e,t.target.x),r=$f(e,t.target.y);return`${n}% ${r}%`}},vS={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=zt.parse(e);if(i.length>5)return r;const o=zt.createTransformer(e),s=typeof i[0]!="number"?1:0,l=n.x.scale*t.x,a=n.y.scale*t.y;i[0+s]/=l,i[1+s]/=a;const u=H(l,a,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),o(i)}};class yS extends S.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;F1(wS),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Ji.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||U.postRender(()=>{const l=s.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),lu.postRender(()=>{!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 og(e){const[t,n]=Up(),r=S.useContext(Ja);return R.jsx(yS,{...e,layoutGroup:r,switchLayoutGroup:S.useContext(Yp),isPresent:t,safeToRemove:n})}const wS={borderRadius:{...dr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:dr,borderTopRightRadius:dr,borderBottomLeftRadius:dr,borderBottomRightRadius:dr,boxShadow:vS};function xS(e,t,n){const r=me(e)?e:ti(e);return r.start(_u("",r,t,n)),r.animation}function SS(e){return e instanceof SVGElement&&e.tagName!=="svg"}const PS=(e,t)=>e.depth-t.depth;class ES{constructor(){this.children=[],this.isDirty=!1}add(t){Su(this.children,t),this.isDirty=!0}remove(t){Pu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(PS),this.isDirty=!1,this.children.forEach(t)}}function CS(e,t){const n=it.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Ft(r),e(o-t))};return U.read(r,!0),()=>Ft(r)}const sg=["TopLeft","TopRight","BottomLeft","BottomRight"],kS=sg.length,Wf=e=>typeof e=="string"?parseFloat(e):e,Hf=e=>typeof e=="number"||D.test(e);function TS(e,t,n,r,i,o){i?(e.opacity=H(0,n.opacity!==void 0?n.opacity:1,RS(r)),e.opacityExit=H(t.opacity!==void 0?t.opacity:1,0,MS(r))):o&&(e.opacity=H(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<kS;s++){const l=`border${sg[s]}Radius`;let a=Kf(t,l),u=Kf(n,l);if(a===void 0&&u===void 0)continue;a||(a=0),u||(u=0),a===0||u===0||Hf(a)===Hf(u)?(e[l]=Math.max(H(Wf(a),Wf(u),r),0),(rt.test(u)||rt.test(a))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=H(t.rotate||0,n.rotate||0,r))}function Kf(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const RS=lg(0,.5,km),MS=lg(.5,.95,Le);function lg(e,t,n){return r=>r<e?0:r>t?1:n(Xn(e,t,r))}function Gf(e,t){e.min=t.min,e.max=t.max}function je(e,t){Gf(e.x,t.x),Gf(e.y,t.y)}function Qf(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Xf(e,t,n,r,i){return e-=t,e=_o(e,1/n,r),i!==void 0&&(e=_o(e,1/i,r)),e}function AS(e,t=0,n=1,r=.5,i,o=e,s=e){if(rt.test(t)&&(t=parseFloat(t),t=H(s.min,s.max,t/100)-s.min),typeof t!="number")return;let l=H(o.min,o.max,r);e===o&&(l-=t),e.min=Xf(e.min,t,n,l,i),e.max=Xf(e.max,t,n,l,i)}function Yf(e,t,[n,r,i],o,s){AS(e,t[n],t[r],t[i],t.scale,o,s)}const LS=["x","scaleX","originX"],DS=["y","scaleY","originY"];function Zf(e,t,n,r){Yf(e.x,t,LS,n?n.x:void 0,r?r.x:void 0),Yf(e.y,t,DS,n?n.y:void 0,r?r.y:void 0)}function bf(e){return e.translate===0&&e.scale===1}function ag(e){return bf(e.x)&&bf(e.y)}function qf(e,t){return e.min===t.min&&e.max===t.max}function _S(e,t){return qf(e.x,t.x)&&qf(e.y,t.y)}function Jf(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function ug(e,t){return Jf(e.x,t.x)&&Jf(e.y,t.y)}function ed(e){return _e(e.x)/_e(e.y)}function td(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class VS{constructor(){this.members=[]}add(t){Su(this.members,t),t.scheduleRender()}remove(t){if(Pu(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 o=this.members[i];if(o.isPresent!==!1){r=o;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 NS(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:f,rotateY:d,skewX:g,skewY:v}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),f&&(r+=`rotateX(${f}deg) `),d&&(r+=`rotateY(${d}deg) `),g&&(r+=`skewX(${g}deg) `),v&&(r+=`skewY(${v}deg) `)}const l=e.x.scale*t.x,a=e.y.scale*t.y;return(l!==1||a!==1)&&(r+=`scale(${l}, ${a})`),r||"none"}const qt={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},xr=typeof window<"u"&&window.MotionDebug!==void 0,Us=["","X","Y","Z"],jS={visibility:"hidden"},nd=1e3;let OS=0;function $s(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function cg(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=ym(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",U,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&cg(r)}function fg({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},l=t==null?void 0:t()){this.id=OS++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,xr&&(qt.totalNodes=qt.resolvedTargetDeltas=qt.recalculatedProjection=0),this.nodes.forEach(zS),this.nodes.forEach(HS),this.nodes.forEach(KS),this.nodes.forEach(BS),xr&&window.MotionDebug.record(qt)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,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 ES)}addEventListener(s,l){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Eu),this.eventHandlers.get(s).add(l)}notifyListeners(s,...l){const a=this.eventHandlers.get(s);a&&a.notify(...l)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=SS(s),this.instance=s;const{layoutId:a,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(u||a)&&(this.isLayoutDirty=!0),e){let f;const d=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=CS(d,250),Ji.hasAnimatedSinceResize&&(Ji.hasAnimatedSinceResize=!1,this.nodes.forEach(id))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:g,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||ZS,{onLayoutAnimationStart:w,onLayoutAnimationComplete:h}=c.getProps(),p=!this.targetLayout||!ug(this.targetLayout,v)||g,m=!d&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||m||d&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,m);const x={...vu(y,"layout"),onPlay:w,onComplete:h};(c.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x)}else d||id(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ft(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(GS),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&cg(this),!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(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(rd);return}this.isUpdating||this.nodes.forEach($S),this.isUpdating=!1,this.nodes.forEach(WS),this.nodes.forEach(IS),this.nodes.forEach(FS),this.clearAllSnapshots();const l=it.now();ae.delta=gt(0,1e3/60,l-ae.timestamp),ae.timestamp=l,ae.isProcessing=!0,_s.update.process(ae),_s.preRender.process(ae),_s.render.process(ae),ae.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,lu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(US),this.sharedNodes.forEach(QS)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,U.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){U.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 s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Z(),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,s?s.layoutBox:void 0)}updateScroll(s="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(l=!1),l){const a=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:a,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:a}}}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!ag(this.projectionDelta),a=this.getTransformTemplate(),u=a?a(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;s&&(l||bt(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const l=this.measurePageBox();let a=this.removeElementScroll(l);return s&&(a=this.removeTransform(a)),bS(a),{animationId:this.root.animationId,measuredBox:l,layoutBox:a,latestValues:{},source:this.id}}measurePageBox(){var s;const{visualElement:l}=this.options;if(!l)return Z();const a=l.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(qS))){const{scroll:c}=this.root;c&&(Vn(a.x,c.offset.x),Vn(a.y,c.offset.y))}return a}removeElementScroll(s){var l;const a=Z();if(je(a,s),!((l=this.scroll)===null||l===void 0)&&l.wasRoot)return a;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:f,options:d}=c;c!==this.root&&f&&d.layoutScroll&&(f.wasRoot&&je(a,s),Vn(a.x,f.offset.x),Vn(a.y,f.offset.y))}return a}applyTransform(s,l=!1){const a=Z();je(a,s);for(let u=0;u<this.path.length;u++){const c=this.path[u];!l&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Nn(a,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),bt(c.latestValues)&&Nn(a,c.latestValues)}return bt(this.latestValues)&&Nn(a,this.latestValues),a}removeTransform(s){const l=Z();je(l,s);for(let a=0;a<this.path.length;a++){const u=this.path[a];if(!u.instance||!bt(u.latestValues))continue;bl(u.latestValues)&&u.updateSnapshot();const c=Z(),f=u.measurePageBox();je(c,f),Zf(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return bt(this.latestValues)&&Zf(l,this.latestValues),l}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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!==ae.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!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(!(s||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:f,layoutId:d}=this.options;if(!(!this.layout||!(f||d))){if(this.resolvedRelativeTargetAt=ae.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Z(),this.relativeTargetOrigin=Z(),Vr(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),je(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Z(),this.targetWithTransforms=Z()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),tS(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):je(this.target,this.layout.layoutBox),ng(this.target,this.targetDelta)):je(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=Z(),this.relativeTargetOrigin=Z(),Vr(this.relativeTargetOrigin,this.target,g.target),je(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}xr&&qt.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||bl(this.parent.latestValues)||tg(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 s;const l=this.getLead(),a=!!this.resumingFrom||this!==l;let u=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(u=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===ae.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;je(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,g=this.treeScale.y;cS(this.layoutCorrected,this.treeScale,this.path,a),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=Z());const{target:v}=l;if(!v){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Qf(this.prevProjectionDelta.x,this.projectionDelta.x),Qf(this.prevProjectionDelta.y,this.projectionDelta.y)),_r(this.projectionDelta,this.layoutCorrected,v,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==g||!td(this.projectionDelta.x,this.prevProjectionDelta.x)||!td(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v)),xr&&qt.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var l;if((l=this.options.visualElement)===null||l===void 0||l.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=_n(),this.projectionDelta=_n(),this.projectionDeltaWithTransform=_n()}setAnimationOrigin(s,l=!1){const a=this.snapshot,u=a?a.latestValues:{},c={...this.latestValues},f=_n();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const d=Z(),g=a?a.source:void 0,v=this.layout?this.layout.source:void 0,y=g!==v,w=this.getStack(),h=!w||w.members.length<=1,p=!!(y&&!h&&this.options.crossfade===!0&&!this.path.some(YS));this.animationProgress=0;let m;this.mixTargetDelta=x=>{const P=x/1e3;od(f.x,s.x,P),od(f.y,s.y,P),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Vr(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),XS(this.relativeTarget,this.relativeTargetOrigin,d,P),m&&_S(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=Z()),je(m,this.relativeTarget)),y&&(this.animationValues=c,TS(c,u,this.latestValues,P,p,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ft(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=U.update(()=>{Ji.hasAnimatedSinceResize=!0,this.currentAnimation=xS(0,nd,{...s,onUpdate:l=>{this.mixTargetDelta(l),s.onUpdate&&s.onUpdate(l)},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(nd),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:l,target:a,layout:u,latestValues:c}=s;if(!(!l||!a||!u)){if(this!==s&&this.layout&&u&&dg(this.options.animationType,this.layout.layoutBox,u.layoutBox)){a=this.target||Z();const f=_e(this.layout.layoutBox.x);a.x.min=s.target.x.min,a.x.max=a.x.min+f;const d=_e(this.layout.layoutBox.y);a.y.min=s.target.y.min,a.y.max=a.y.min+d}je(l,a),Nn(l,c),_r(this.projectionDeltaWithTransform,this.layoutCorrected,l,c)}}registerSharedNode(s,l){this.sharedNodes.has(s)||this.sharedNodes.set(s,new VS),this.sharedNodes.get(s).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 s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:l}=this.options;return l?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:l}=this.options;return l?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:l,preserveFollowOpacity:a}={}){const u=this.getStack();u&&u.promote(this,a),s&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let l=!1;const{latestValues:a}=s;if((a.z||a.rotate||a.rotateX||a.rotateY||a.rotateZ||a.skewX||a.skewY)&&(l=!0),!l)return;const u={};a.z&&$s("z",s,u,this.animationValues);for(let c=0;c<Us.length;c++)$s(`rotate${Us[c]}`,s,u,this.animationValues),$s(`skew${Us[c]}`,s,u,this.animationValues);s.render();for(const c in u)s.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);s.scheduleRender()}getProjectionStyles(s){var l,a;if(!this.instance||this.isSVG)return;if(!this.isVisible)return jS;const u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=bi(s==null?void 0:s.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const y={};return this.options.layoutId&&(y.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,y.pointerEvents=bi(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!bt(this.latestValues)&&(y.transform=c?c({},""):"none",this.hasProjected=!1),y}const d=f.animationValues||f.latestValues;this.applyTransformsToTarget(),u.transform=NS(this.projectionDeltaWithTransform,this.treeScale,d),c&&(u.transform=c(d,u.transform));const{x:g,y:v}=this.projectionDelta;u.transformOrigin=`${g.origin*100}% ${v.origin*100}% 0`,f.animationValues?u.opacity=f===this?(a=(l=d.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&a!==void 0?a:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:u.opacity=f===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const y in Ro){if(d[y]===void 0)continue;const{correct:w,applyTo:h}=Ro[y],p=u.transform==="none"?d[y]:w(d[y],f);if(h){const m=h.length;for(let x=0;x<m;x++)u[h[x]]=p}else u[y]=p}return this.options.layoutId&&(u.pointerEvents=f===this?bi(s==null?void 0:s.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var l;return(l=s.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(rd),this.root.sharedNodes.clear()}}}function IS(e){e.updateLayout()}function FS(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:o}=e.options,s=n.source!==e.layout.source;o==="size"?Oe(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],g=_e(d);d.min=r[f].min,d.max=d.min+g}):dg(o,n.layoutBox,r)&&Oe(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],g=_e(r[f]);d.max=d.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+g)});const l=_n();_r(l,r,n.layoutBox);const a=_n();s?_r(a,e.applyTransform(i,!0),n.measuredBox):_r(a,r,n.layoutBox);const u=!ag(l);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:g}=f;if(d&&g){const v=Z();Vr(v,n.layoutBox,d.layoutBox);const y=Z();Vr(y,r,g.layoutBox),ug(v,y)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=v,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 zS(e){xr&&qt.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 BS(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function US(e){e.clearSnapshot()}function rd(e){e.clearMeasurements()}function $S(e){e.isLayoutDirty=!1}function WS(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function id(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function HS(e){e.resolveTargetDelta()}function KS(e){e.calcProjection()}function GS(e){e.resetSkewAndRotation()}function QS(e){e.removeLeadSnapshot()}function od(e,t,n){e.translate=H(t.translate,0,n),e.scale=H(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function sd(e,t,n,r){e.min=H(t.min,n.min,r),e.max=H(t.max,n.max,r)}function XS(e,t,n,r){sd(e.x,t.x,n.x,r),sd(e.y,t.y,n.y,r)}function YS(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const ZS={duration:.45,ease:[.4,0,.1,1]},ld=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ad=ld("applewebkit/")&&!ld("chrome/")?Math.round:Le;function ud(e){e.min=ad(e.min),e.max=ad(e.max)}function bS(e){ud(e.x),ud(e.y)}function dg(e,t,n){return e==="position"||e==="preserve-aspect"&&!eS(ed(t),ed(n),.2)}function qS(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const JS=fg({attachResizeListener:(e,t)=>ri(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ws={current:void 0},hg=fg({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ws.current){const e=new JS({});e.mount(window),e.setOptions({layoutScroll:!0}),Ws.current=e}return Ws.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),eP={pan:{Feature:gS},drag:{Feature:mS,ProjectionNode:hg,MeasureLayout:og}};function cd(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&U.postRender(()=>o(t,hi(t)))}class tP extends Ht{mount(){const{current:t}=this.node;t&&(this.unmount=ew(t,n=>(cd(this.node,n,"Start"),r=>cd(this.node,r,"End"))))}unmount(){}}class nP extends Ht{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=di(ri(this.node.current,"focus",()=>this.onFocus()),ri(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function fd(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&U.postRender(()=>o(t,hi(t)))}class rP extends Ht{mount(){const{current:t}=this.node;t&&(this.unmount=iw(t,n=>(fd(this.node,n,"Start"),(r,{success:i})=>fd(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Jl=new WeakMap,Hs=new WeakMap,iP=e=>{const t=Jl.get(e.target);t&&t(e)},oP=e=>{e.forEach(iP)};function sP({root:e,...t}){const n=e||document;Hs.has(n)||Hs.set(n,{});const r=Hs.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(oP,{root:e,...t})),r[i]}function lP(e,t,n){const r=sP(t);return Jl.set(e,n),r.observe(e),()=>{Jl.delete(e),r.unobserve(e)}}const aP={some:0,all:1};class uP extends Ht{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:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:aP[i]},l=a=>{const{isIntersecting:u}=a;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=u?c:f;d&&d(a)};return lP(this.node.current,s,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(cP(t,n))&&this.startObserver()}unmount(){}}function cP({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const fP={inView:{Feature:uP},tap:{Feature:rP},focus:{Feature:nP},hover:{Feature:tP}},dP={layout:{ProjectionNode:hg,MeasureLayout:og}},ea={current:null},pg={current:!1};function hP(){if(pg.current=!0,!!nu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ea.current=e.matches;e.addListener(t),t()}else ea.current=!1}const pP=[...zm,he,zt],mP=e=>pP.find(Fm(e)),dd=new WeakMap;function gP(e,t,n){for(const r in t){const i=t[r],o=n[r];if(me(i))e.addValue(r,i);else if(me(o))e.addValue(r,ti(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,ti(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const hd=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class vP{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:s},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Au,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const g=it.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,U.render(this.render,!1,!0))};const{latestValues:a,renderState:u,onUpdate:c}=s;this.onUpdate=c,this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=ts(n),this.isVariantNode=Qp(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in d){const v=d[g];a[g]!==void 0&&me(v)&&v.set(a[g],!1)}}mount(t){this.current=t,dd.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)),pg.current||hP(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ea.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){dd.delete(this.current),this.projection&&this.projection.unmount(),Ft(this.notifyUpdate),Ft(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),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){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=mn.has(t),i=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&U.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Yn){const n=Yn[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Z()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=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<hd.length;r++){const i=hd[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,s=t[o];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=gP(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}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}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&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=ti(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(Om(i)||Rm(i))?i=parseFloat(i):!mP(i)&&zt.test(n)&&(i=Vm(t,n)),this.setBaseTarget(t,me(i)?i.get():i)),me(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const s=uu(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(i=s[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!me(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Eu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class mg extends vP{constructor(){super(...arguments),this.KeyframeResolver=Bm}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]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;me(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function yP(e){return window.getComputedStyle(e)}class wP extends mg{constructor(){super(...arguments),this.type="html",this.renderInstance=nm}readValueFromInstance(t,n){if(mn.has(n)){const r=Mu(n);return r&&r.default||0}else{const r=yP(t),i=(Jp(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return rg(t,n)}build(t,n,r){du(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return gu(t,n,r)}}class xP extends mg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Z}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(mn.has(n)){const r=Mu(n);return r&&r.default||0}return n=rm.has(n)?n:su(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return sm(t,n,r)}build(t,n,r){hu(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){im(t,n,r,i)}mount(t){this.isSVGTag=mu(t.tagName),super.mount(t)}}const SP=(e,t)=>au(e)?new xP(t):new wP(t,{allowProjection:e!==S.Fragment}),PP=Q1({...Kx,...fP,...eP,...dP},SP),ii=a1(PP);/**
77
- * @license lucide-react v0.460.0 - ISC
78
- *
79
- * This source code is licensed under the ISC license.
80
- * See the LICENSE file in the root directory of this source tree.
81
- */const EP=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),gg=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
82
- * @license lucide-react v0.460.0 - ISC
83
- *
84
- * This source code is licensed under the ISC license.
85
- * See the LICENSE file in the root directory of this source tree.
86
- */var CP={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"};/**
87
- * @license lucide-react v0.460.0 - ISC
88
- *
89
- * This source code is licensed under the ISC license.
90
- * See the LICENSE file in the root directory of this source tree.
91
- */const kP=S.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:s,...l},a)=>S.createElement("svg",{ref:a,...CP,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:gg("lucide",i),...l},[...s.map(([u,c])=>S.createElement(u,c)),...Array.isArray(o)?o:[o]]));/**
92
- * @license lucide-react v0.460.0 - ISC
93
- *
94
- * This source code is licensed under the ISC license.
95
- * See the LICENSE file in the root directory of this source tree.
96
- */const be=(e,t)=>{const n=S.forwardRef(({className:r,...i},o)=>S.createElement(kP,{ref:o,iconNode:t,className:gg(`lucide-${EP(e)}`,r),...i}));return n.displayName=`${e}`,n};/**
97
- * @license lucide-react v0.460.0 - ISC
98
- *
99
- * This source code is licensed under the ISC license.
100
- * See the LICENSE file in the root directory of this source tree.
101
- */const TP=be("Box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);/**
102
- * @license lucide-react v0.460.0 - ISC
103
- *
104
- * This source code is licensed under the ISC license.
105
- * See the LICENSE file in the root directory of this source tree.
106
- */const RP=be("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
107
- * @license lucide-react v0.460.0 - ISC
108
- *
109
- * This source code is licensed under the ISC license.
110
- * See the LICENSE file in the root directory of this source tree.
111
- */const MP=be("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
112
- * @license lucide-react v0.460.0 - ISC
113
- *
114
- * This source code is licensed under the ISC license.
115
- * See the LICENSE file in the root directory of this source tree.
116
- */const AP=be("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
117
- * @license lucide-react v0.460.0 - ISC
118
- *
119
- * This source code is licensed under the ISC license.
120
- * See the LICENSE file in the root directory of this source tree.
121
- */const LP=be("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
122
- * @license lucide-react v0.460.0 - ISC
123
- *
124
- * This source code is licensed under the ISC license.
125
- * See the LICENSE file in the root directory of this source tree.
126
- */const DP=be("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
127
- * @license lucide-react v0.460.0 - ISC
128
- *
129
- * This source code is licensed under the ISC license.
130
- * See the LICENSE file in the root directory of this source tree.
131
- */const _P=be("Route",[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]]);/**
132
- * @license lucide-react v0.460.0 - ISC
133
- *
134
- * This source code is licensed under the ISC license.
135
- * See the LICENSE file in the root directory of this source tree.
136
- */const VP=be("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
137
- * @license lucide-react v0.460.0 - ISC
138
- *
139
- * This source code is licensed under the ISC license.
140
- * See the LICENSE file in the root directory of this source tree.
141
- */const NP=be("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"}]]);/**
142
- * @license lucide-react v0.460.0 - ISC
143
- *
144
- * This source code is licensed under the ISC license.
145
- * See the LICENSE file in the root directory of this source tree.
146
- */const jP=be("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
147
- * @license lucide-react v0.460.0 - ISC
148
- *
149
- * This source code is licensed under the ISC license.
150
- * See the LICENSE file in the root directory of this source tree.
151
- */const OP=be("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),pd=e=>{let t;const n=new Set,r=(u,c)=>{const f=typeof u=="function"?u(t):u;if(!Object.is(f,t)){const d=t;t=c??(typeof f!="object"||f===null)?f:Object.assign({},t,f),n.forEach(g=>g(t,d))}},i=()=>t,l={setState:r,getState:i,getInitialState:()=>a,subscribe:u=>(n.add(u),()=>n.delete(u))},a=t=e(r,i,l);return l},IP=e=>e?pd(e):pd,FP=e=>e;function zP(e,t=FP){const n=hr.useSyncExternalStore(e.subscribe,hr.useCallback(()=>t(e.getState()),[e,t]),hr.useCallback(()=>t(e.getInitialState()),[e,t]));return hr.useDebugValue(n),n}const BP=e=>{const t=IP(e),n=r=>zP(t,r);return Object.assign(n,t),n},UP=e=>BP;function vg(e,t){let n;try{n=e()}catch{return}return{getItem:i=>{var o;const s=a=>a===null?null:JSON.parse(a,void 0),l=(o=n.getItem(i))!=null?o:null;return l instanceof Promise?l.then(s):s(l)},setItem:(i,o)=>n.setItem(i,JSON.stringify(o,void 0)),removeItem:i=>n.removeItem(i)}}const ta=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return ta(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return ta(r)(n)}}}},$P=(e,t)=>(n,r,i)=>{let o={storage:vg(()=>window.localStorage),partialize:w=>w,version:0,merge:(w,h)=>({...h,...w}),...t},s=!1,l=0;const a=new Set,u=new Set;let c=o.storage;if(!c)return e((...w)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...w)},r,i);const f=()=>{const w=o.partialize({...r()});return c.setItem(o.name,{state:w,version:o.version})},d=i.setState;i.setState=(w,h)=>(d(w,h),f());const g=e((...w)=>(n(...w),f()),r,i);i.getInitialState=()=>g;let v;const y=()=>{var w,h;if(!c)return;const p=++l;s=!1,a.forEach(x=>{var P;return x((P=r())!=null?P:g)});const m=((h=o.onRehydrateStorage)==null?void 0:h.call(o,(w=r())!=null?w:g))||void 0;return ta(c.getItem.bind(c))(o.name).then(x=>{if(x)if(typeof x.version=="number"&&x.version!==o.version){if(o.migrate){const P=o.migrate(x.state,x.version);return P instanceof Promise?P.then(E=>[!0,E]):[!0,P]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,x.state];return[!1,void 0]}).then(x=>{var P;if(p!==l)return;const[E,T]=x;if(v=o.merge(T,(P=r())!=null?P:g),n(v,!0),E)return f()}).then(()=>{p===l&&(m==null||m(v,void 0),v=r(),s=!0,u.forEach(x=>x(v)))}).catch(x=>{p===l&&(m==null||m(void 0,x))})};return i.persist={setOptions:w=>{o={...o,...w},w.storage&&(c=w.storage)},clearStorage:()=>{c==null||c.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>y(),hasHydrated:()=>s,onHydrate:w=>(a.add(w),()=>{a.delete(w)}),onFinishHydration:w=>(u.add(w),()=>{u.delete(w)})},o.skipHydration||y(),v||g},WP=$P,ge=UP()(WP(e=>({isSideBarOpen:!0,isMobile:!1,activeSection:"overview",setIsSideBarOpen:t=>e({isSideBarOpen:t}),setIsMobile:t=>e({isMobile:t}),setActiveSection:t=>e({activeSection:t})}),{name:"devtools-layout",storage:vg(()=>localStorage)}));function HP(){const e=ge(n=>n.isSideBarOpen),t=ge(n=>n.setIsSideBarOpen);return R.jsx(ii.button,{initial:{opacity:0,scale:.5},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.5},transition:{duration:.3},className:"flex size-8 items-center justify-center rounded-secondary border border-primary transition-colors hover:bg-primary",onClick:n=>{n.stopPropagation(),t(!e)},onMouseDown:n=>n.stopPropagation(),children:e?R.jsx(OP,{size:16,className:"text-primary"}):R.jsx(LP,{size:16,className:"text-primary"})})}const KP={API_BASE:"/dev/devtools",DEFAULT_THEME:"light"},yg=S.createContext({}),GP=({children:e})=>{const[t,n]=S.useState(KP.DEFAULT_THEME);S.useEffect(()=>{document.documentElement.setAttribute("data-theme",t)},[t]);const r=()=>{n(i=>i==="light"?"dark-forest":"light")};return R.jsx(yg.Provider,{value:{theme:t,toggleTheme:r},children:e})},QP=()=>S.useContext(yg);function XP(){const e=ge(r=>r.isMobile),{theme:t,toggleTheme:n}=QP();return R.jsxs(ii.div,{initial:{opacity:0,height:0,overflow:"hidden"},animate:{opacity:1,height:"60px",overflow:"visible"},exit:{opacity:0,height:0,overflow:"hidden"},className:`
152
- h-[60px] w-full py-[10px]
153
- ${e?"px-[10px]":""}
154
- relative flex bg-secondary
155
- items-center justify-between
156
- gap-4 transition-all duration-300 ease-in-out
157
- border-b border-primary
158
- `,children:[e?R.jsx(HP,{}):R.jsx("div",{}),R.jsx("div",{className:"mr-4 flex items-center gap-3",children:R.jsx("button",{onClick:n,className:"flex size-8 items-center justify-center rounded-secondary border border-primary transition-colors hover:bg-primary",children:t==="light"?R.jsx(DP,{size:16,className:"text-primary"}):R.jsx(NP,{size:16,className:"text-primary"})})})]},"header")}function md(e,t){let n;return(...r)=>{window.clearTimeout(n),n=window.setTimeout(()=>e(...r),t)}}function YP({debounce:e,scroll:t,polyfill:n,offsetSize:r}={debounce:0,scroll:!1,offsetSize:!1}){const i=n||(typeof window>"u"?class{}:window.ResizeObserver);if(!i)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[o,s]=S.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),l=S.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:o,orientationHandler:null}),a=e?typeof e=="number"?e:e.scroll:null,u=e?typeof e=="number"?e:e.resize:null,c=S.useRef(!1);S.useEffect(()=>(c.current=!0,()=>void(c.current=!1)));const[f,d,g]=S.useMemo(()=>{const h=()=>{if(!l.current.element)return;const{left:p,top:m,width:x,height:P,bottom:E,right:T,x:C,y:N}=l.current.element.getBoundingClientRect(),L={left:p,top:m,width:x,height:P,bottom:E,right:T,x:C,y:N};l.current.element instanceof HTMLElement&&r&&(L.height=l.current.element.offsetHeight,L.width=l.current.element.offsetWidth),Object.freeze(L),c.current&&!JP(l.current.lastBounds,L)&&s(l.current.lastBounds=L)};return[h,u?md(h,u):h,a?md(h,a):h]},[s,r,a,u]);function v(){l.current.scrollContainers&&(l.current.scrollContainers.forEach(h=>h.removeEventListener("scroll",g,!0)),l.current.scrollContainers=null),l.current.resizeObserver&&(l.current.resizeObserver.disconnect(),l.current.resizeObserver=null),l.current.orientationHandler&&("orientation"in screen&&"removeEventListener"in screen.orientation?screen.orientation.removeEventListener("change",l.current.orientationHandler):"onorientationchange"in window&&window.removeEventListener("orientationchange",l.current.orientationHandler))}function y(){l.current.element&&(l.current.resizeObserver=new i(g),l.current.resizeObserver.observe(l.current.element),t&&l.current.scrollContainers&&l.current.scrollContainers.forEach(h=>h.addEventListener("scroll",g,{capture:!0,passive:!0})),l.current.orientationHandler=()=>{g()},"orientation"in screen&&"addEventListener"in screen.orientation?screen.orientation.addEventListener("change",l.current.orientationHandler):"onorientationchange"in window&&window.addEventListener("orientationchange",l.current.orientationHandler))}const w=h=>{!h||h===l.current.element||(v(),l.current.element=h,l.current.scrollContainers=wg(h),y())};return bP(g,!!t),ZP(d),S.useEffect(()=>{v(),y()},[t,g,d]),S.useEffect(()=>v,[]),[w,o,f]}function ZP(e){S.useEffect(()=>{const t=e;return window.addEventListener("resize",t),()=>void window.removeEventListener("resize",t)},[e])}function bP(e,t){S.useEffect(()=>{if(t){const n=e;return window.addEventListener("scroll",n,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",n,!0)}},[e,t])}function wg(e){const t=[];if(!e||e===document.body)return t;const{overflow:n,overflowX:r,overflowY:i}=window.getComputedStyle(e);return[n,r,i].some(o=>o==="auto"||o==="scroll")&&t.push(e),[...t,...wg(e.parentElement)]}const qP=["x","y","top","bottom","left","right","width","height"],JP=(e,t)=>qP.every(n=>e[n]===t[n]);function eE({width:e}){return R.jsx("div",{className:`
159
- rounded-full
160
- border-8 border-primry
161
- border-t-blue-500
162
- animate-spin
163
- ease-linear
164
- ${!e&&"size-20"}
165
-
166
- `,style:{width:e?e+"px":"96px",height:e?e+"px":"96px",borderWidth:e?e>40?"8px":"4px":"8px"}})}function na(){return R.jsx("div",{className:"flex h-screen items-center justify-center",children:R.jsx(eE,{})})}function tE(){const e=ge(n=>n.isSideBarOpen),t=ge(n=>n.setIsSideBarOpen);return R.jsx("div",{className:"ease absolute -right-[10px] top-[50%] flex size-[25px] -translate-y-1/2 cursor-pointer items-center justify-center rounded-full border border-primary bg-secondary text-primary opacity-40 transition-all group-hover:opacity-100",onClick:()=>t(!e),children:R.jsx(RP,{size:14,className:`${e?"rotate-0":"-rotate-180"} transition-all duration-300 ease-in-out`})})}function xg(e){return R.jsx("div",{className:`
167
- flex max-h-[40px] min-h-[40px] w-[50px] min-w-[50px] max-w-[50px] items-center justify-center
168
- `,style:e.style,children:e.children})}function Sg(e){const t=ge(n=>n.isSideBarOpen);return R.jsx(ko,{mode:"wait",children:t&&R.jsx(ii.div,{className:"h-fit w-full overflow-hidden whitespace-nowrap",initial:{opacity:0,width:0},animate:{opacity:1,width:"100%"},exit:{opacity:0,width:0},transition:{duration:.3},style:e.style,children:e.children},e.childKey?e.childKey:0)})}function nE(){return R.jsxs("div",{className:"mb-[10px] flex h-fit w-full items-center gap-4 overflow-hidden py-[12px] transition-all duration-300 ease-in-out",children:[R.jsx(xg,{children:R.jsx("div",{className:"flex size-[45px] items-center justify-center rounded-full bg-primary",children:R.jsx(jP,{className:"size-5 text-primary"})})}),R.jsx(Sg,{childKey:"sidebarBrandChild",children:R.jsxs("div",{className:"flex flex-col justify-center gap-0.5 text-primary",children:[R.jsx("span",{className:"text-sm font-semibold",children:"Wecon DevTools"}),R.jsx("span",{className:"text-xs text-secondary",children:"Development Panel"})]})},"sidebarBrand")]})}const rE=[{key:"overview",label:"Overview",icon:AP,path:"/"},{key:"modules",label:"Modules",icon:TP,path:"/modules"},{key:"routes",label:"Routes",icon:_P,path:"/routes"},{key:"config",label:"Config",icon:VP,path:"/config"},{key:"i18n",label:"Translations",icon:MP,path:"/i18n"}];function iE({item:e}){const t=ge(a=>a.isMobile),n=ge(a=>a.setIsSideBarOpen),r=ge(a=>a.activeSection),i=ge(a=>a.setActiveSection),o=R0(),s=r===e.key,l=e.icon;return R.jsxs("div",{onClick:()=>{i(e.key),o(e.path),t&&n(!1)},className:`
169
- flex w-full cursor-pointer items-center rounded-secondary
170
- py-[5px] transition-all duration-300 ease-in-out relative
171
- ${s?`bg-btn-active-primary text-btn-primary shadow-light
172
- before:absolute before:min-h-[25px] before:min-w-[7px] before:rounded-r-[30px] before:bg-secondary`:"hover:bg-primary hover:text-primary"}
173
- `,children:[R.jsx(xg,{style:{fontSize:"14px"},children:R.jsx(l,{size:18})}),R.jsx(Sg,{style:{fontSize:"14px"},children:e.label},e.path)]})}function oE(){return R.jsx("div",{className:"my-auto flex size-full flex-col gap-2 overflow-hidden",children:R.jsx("div",{className:"mb-[10px] flex size-full flex-col gap-2 overflow-hidden overflow-y-auto",children:rE.map(e=>R.jsx(iE,{item:e},e.key))})})}const sE=()=>{const e=ge(i=>i.isSideBarOpen),t=ge(i=>i.setIsSideBarOpen),n=ge(i=>i.isMobile),r=S.useRef(null);return S.useEffect(()=>{const i=o=>{n&&e&&r.current&&!r.current.contains(o.target)&&t(!1)};return window.addEventListener("mousedown",i),()=>window.removeEventListener("mousedown",i)},[n,e,t]),R.jsxs("div",{ref:r,className:`
174
- h-full ${e?"w-[300px]":"w-[68px]"}
175
- text-primary
176
- group relative
177
- flex flex-col gap-2
178
- border-r border-primary
179
- bg-secondary p-[8px]
180
- transition-all duration-300 ease-in-out
181
- `,children:[R.jsx(tE,{}),R.jsx(nE,{}),R.jsx("div",{className:"h-[24px] min-h-[24px] w-full",children:R.jsx(ko,{mode:"wait",children:e?R.jsx(ii.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.3},className:"flex h-[24px] min-h-[24px] w-full items-center justify-start overflow-hidden px-[10px] text-[14px] font-medium text-secondary",children:"Menu"},"menu-title"):R.jsx(ii.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"24px"},exit:{opacity:0,height:0},transition:{duration:.3},className:"mx-auto flex h-[24px] w-[80%] items-center justify-center",children:R.jsx("div",{className:"h-px w-full bg-primary"})},"menu-title-line")})}),R.jsx(oE,{})]})};function lE(){const e=ge(o=>o.isSideBarOpen),t=ge(o=>o.isMobile),n=ge(o=>o.setIsMobile),[r,i]=YP();return S.useEffect(()=>{i.width!==0&&n(i.width<768)},[i.width,n]),R.jsxs("div",{ref:r,className:"flex h-lvh min-h-lvh w-full overflow-hidden bg-primary",children:[R.jsx("div",{className:`h-dvh max-h-dvh ${t?e?"ml-0 min-w-[300px]":"-ml-[300px] min-w-[300px]":e?"min-w-[300px]":"min-w-[68px]"} transition-all duration-300 ease-in-out`,children:R.jsx(sE,{})}),R.jsxs("div",{className:`${e?t?"min-w-full":"w-[calc(100%-300px)]":t?"w-full":"w-[calc(100%-68px)]"} flex max-h-[100dvh] flex-col gap-2 overflow-hidden overflow-y-auto transition-all duration-300 ease-in-out`,children:[R.jsx(ko,{mode:"wait",children:R.jsx(XP,{})}),R.jsx("div",{className:"size-full",children:R.jsx(ko,{mode:"wait",children:R.jsx(S.Suspense,{fallback:R.jsx(na,{}),children:R.jsx(K0,{})})})})]})]})}const aE="modulepreload",uE=function(e,t){return new URL(e,t).href},gd={},gn=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){const s=document.getElementsByTagName("link"),l=document.querySelector("meta[property=csp-nonce]"),a=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));i=Promise.allSettled(n.map(u=>{if(u=uE(u,r),u in gd)return;gd[u]=!0;const c=u.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(!!r)for(let v=s.length-1;v>=0;v--){const y=s[v];if(y.href===u&&(!c||y.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${f}`))return;const g=document.createElement("link");if(g.rel=c?"stylesheet":aE,c||(g.as="script"),g.crossOrigin="",g.href=u,a&&g.setAttribute("nonce",a),document.head.appendChild(g),c)return new Promise((v,y)=>{g.addEventListener("load",v),g.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(s){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=s,window.dispatchEvent(l),!l.defaultPrevented)throw s}return i.then(s=>{for(const l of s||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})},cE=S.lazy(()=>gn(()=>import("./index-BI-oiBt-.js"),__vite__mapDeps([0,1]),import.meta.url)),fE=S.lazy(()=>gn(()=>import("./index-BMd21Cuf.js"),__vite__mapDeps([2,1,3]),import.meta.url)),dE=S.lazy(()=>gn(()=>import("./ModuleDetail-BoiZYmmO.js"),__vite__mapDeps([4,1,5]),import.meta.url)),hE=S.lazy(()=>gn(()=>import("./index-D825pKz_.js"),__vite__mapDeps([6,1,3]),import.meta.url)),pE=S.lazy(()=>gn(()=>import("./index-DaglUNul.js"),__vite__mapDeps([7,1,3]),import.meta.url)),mE=S.lazy(()=>gn(()=>import("./TranslationEditor-Dz2BHJgQ.js"),__vite__mapDeps([8,1,5]),import.meta.url)),gE=S.lazy(()=>gn(()=>import("./index-DS8GcC6h.js"),__vite__mapDeps([9,1]),import.meta.url)),vE=[{path:"/",name:"Overview",component:cE},{path:"/modules",name:"Modules",component:fE},{path:"/modules/:name",name:"Module Detail",component:dE},{path:"/config",name:"Config",component:hE},{path:"/i18n",name:"I18n",component:pE},{path:"/i18n/:namespace/:lang",name:"Translation Editor",component:mE},{path:"/routes",name:"Routes",component:gE}];function yE(){return R.jsx(GP,{children:R.jsx(Q0,{children:R.jsx(Zi,{element:R.jsx(lE,{}),children:vE.map(e=>e.path==="/"?R.jsx(Zi,{index:!0,element:R.jsx(S.Suspense,{fallback:R.jsx(na,{}),children:R.jsx(e.component,{})})},e.path):R.jsx(Zi,{path:e.path,element:R.jsx(S.Suspense,{fallback:R.jsx(na,{}),children:R.jsx(e.component,{})})},e.path))})})})}function wE(){return R.jsx(Z0,{basename:"/dev/devtools/ui",children:R.jsx(yE,{})})}Ap(document.getElementById("root")).render(R.jsx(S.StrictMode,{children:R.jsx(wE,{})}));export{TP as B,MP as G,_P as R,VP as S,xE as a,KP as b,be as c,R as j,ii as m,S as r,R0 as u};