(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))a(c);new MutationObserver(c=>{for(const h of c)if(h.type==="childList")for(const f of h.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&a(f)}).observe(document,{childList:!0,subtree:!0});function s(c){const h={};return c.integrity&&(h.integrity=c.integrity),c.referrerPolicy&&(h.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?h.credentials="include":c.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function a(c){if(c.ep)return;c.ep=!0;const h=s(c);fetch(c.href,h)}})();var Ul={exports:{}},ri={},Wl={exports:{}},oe={};/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Xf;function Wg(){if(Xf)return oe;Xf=1;var r=Symbol.for("react.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),S=Symbol.iterator;function P(T){return T===null||typeof T!="object"?null:(T=S&&T[S]||T["@@iterator"],typeof T=="function"?T:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},V=Object.assign,M={};function N(T,D,ne){this.props=T,this.context=D,this.refs=M,this.updater=ne||R}N.prototype.isReactComponent={},N.prototype.setState=function(T,D){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,D,"setState")},N.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function j(){}j.prototype=N.prototype;function B(T,D,ne){this.props=T,this.context=D,this.refs=M,this.updater=ne||R}var $=B.prototype=new j;$.constructor=B,V($,N.prototype),$.isPureReactComponent=!0;var ee=Array.isArray,G=Object.prototype.hasOwnProperty,te={current:null},ae={key:!0,ref:!0,__self:!0,__source:!0};function Z(T,D,ne){var se,ue={},ce=null,me=null;if(D!=null)for(se in D.ref!==void 0&&(me=D.ref),D.key!==void 0&&(ce=""+D.key),D)G.call(D,se)&&!ae.hasOwnProperty(se)&&(ue[se]=D[se]);var de=arguments.length-2;if(de===1)ue.children=ne;else if(1<de){for(var we=Array(de),st=0;st<de;st++)we[st]=arguments[st+2];ue.children=we}if(T&&T.defaultProps)for(se in de=T.defaultProps,de)ue[se]===void 0&&(ue[se]=de[se]);return{$$typeof:r,type:T,key:ce,ref:me,props:ue,_owner:te.current}}function xe(T,D){return{$$typeof:r,type:T.type,key:D,ref:T.ref,props:T.props,_owner:T._owner}}function Ce(T){return typeof T=="object"&&T!==null&&T.$$typeof===r}function qe(T){var D={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(ne){return D[ne]})}var ot=/\/+/g;function Qe(T,D){return typeof T=="object"&&T!==null&&T.key!=null?qe(""+T.key):D.toString(36)}function Je(T,D,ne,se,ue){var ce=typeof T;(ce==="undefined"||ce==="boolean")&&(T=null);var me=!1;if(T===null)me=!0;else switch(ce){case"string":case"number":me=!0;break;case"object":switch(T.$$typeof){case r:case i:me=!0}}if(me)return me=T,ue=ue(me),T=se===""?"."+Qe(me,0):se,ee(ue)?(ne="",T!=null&&(ne=T.replace(ot,"$&/")+"/"),Je(ue,D,ne,"",function(st){return st})):ue!=null&&(Ce(ue)&&(ue=xe(ue,ne+(!ue.key||me&&me.key===ue.key?"":(""+ue.key).replace(ot,"$&/")+"/")+T)),D.push(ue)),1;if(me=0,se=se===""?".":se+":",ee(T))for(var de=0;de<T.length;de++){ce=T[de];var we=se+Qe(ce,de);me+=Je(ce,D,ne,we,ue)}else if(we=P(T),typeof we=="function")for(T=we.call(T),de=0;!(ce=T.next()).done;)ce=ce.value,we=se+Qe(ce,de++),me+=Je(ce,D,ne,we,ue);else if(ce==="object")throw D=String(T),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.");return me}function St(T,D,ne){if(T==null)return T;var se=[],ue=0;return Je(T,se,"","",function(ce){return D.call(ne,ce,ue++)}),se}function Ye(T){if(T._status===-1){var D=T._result;D=D(),D.then(function(ne){(T._status===0||T._status===-1)&&(T._status=1,T._result=ne)},function(ne){(T._status===0||T._status===-1)&&(T._status=2,T._result=ne)}),T._status===-1&&(T._status=0,T._result=D)}if(T._status===1)return T._result.default;throw T._result}var ie={current:null},O={transition:null},Q={ReactCurrentDispatcher:ie,ReactCurrentBatchConfig:O,ReactCurrentOwner:te};function z(){throw Error("act(...) is not supported in production builds of React.")}return oe.Children={map:St,forEach:function(T,D,ne){St(T,function(){D.apply(this,arguments)},ne)},count:function(T){var D=0;return St(T,function(){D++}),D},toArray:function(T){return St(T,function(D){return D})||[]},only:function(T){if(!Ce(T))throw Error("React.Children.only expected to receive a single React element child.");return T}},oe.Component=N,oe.Fragment=s,oe.Profiler=c,oe.PureComponent=B,oe.StrictMode=a,oe.Suspense=m,oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Q,oe.act=z,oe.cloneElement=function(T,D,ne){if(T==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+T+".");var se=V({},T.props),ue=T.key,ce=T.ref,me=T._owner;if(D!=null){if(D.ref!==void 0&&(ce=D.ref,me=te.current),D.key!==void 0&&(ue=""+D.key),T.type&&T.type.defaultProps)var de=T.type.defaultProps;for(we in D)G.call(D,we)&&!ae.hasOwnProperty(we)&&(se[we]=D[we]===void 0&&de!==void 0?de[we]:D[we])}var we=arguments.length-2;if(we===1)se.children=ne;else if(1<we){de=Array(we);for(var st=0;st<we;st++)de[st]=arguments[st+2];se.children=de}return{$$typeof:r,type:T.type,key:ue,ref:ce,props:se,_owner:me}},oe.createContext=function(T){return T={$$typeof:f,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},T.Provider={$$typeof:h,_context:T},T.Consumer=T},oe.createElement=Z,oe.createFactory=function(T){var D=Z.bind(null,T);return D.type=T,D},oe.createRef=function(){return{current:null}},oe.forwardRef=function(T){return{$$typeof:p,render:T}},oe.isValidElement=Ce,oe.lazy=function(T){return{$$typeof:v,_payload:{_status:-1,_result:T},_init:Ye}},oe.memo=function(T,D){return{$$typeof:g,type:T,compare:D===void 0?null:D}},oe.startTransition=function(T){var D=O.transition;O.transition={};try{T()}finally{O.transition=D}},oe.unstable_act=z,oe.useCallback=function(T,D){return ie.current.useCallback(T,D)},oe.useContext=function(T){return ie.current.useContext(T)},oe.useDebugValue=function(){},oe.useDeferredValue=function(T){return ie.current.useDeferredValue(T)},oe.useEffect=function(T,D){return ie.current.useEffect(T,D)},oe.useId=function(){return ie.current.useId()},oe.useImperativeHandle=function(T,D,ne){return ie.current.useImperativeHandle(T,D,ne)},oe.useInsertionEffect=function(T,D){return ie.current.useInsertionEffect(T,D)},oe.useLayoutEffect=function(T,D){return ie.current.useLayoutEffect(T,D)},oe.useMemo=function(T,D){return ie.current.useMemo(T,D)},oe.useReducer=function(T,D,ne){return ie.current.useReducer(T,D,ne)},oe.useRef=function(T){return ie.current.useRef(T)},oe.useState=function(T){return ie.current.useState(T)},oe.useSyncExternalStore=function(T,D,ne){return ie.current.useSyncExternalStore(T,D,ne)},oe.useTransition=function(){return ie.current.useTransition()},oe.version="18.3.1",oe}var Zf;function Pa(){return Zf||(Zf=1,Wl.exports=Wg()),Wl.exports}/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var qf;function $g(){if(qf)return ri;qf=1;var r=Pa(),i=Symbol.for("react.element"),s=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,c=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h={key:!0,ref:!0,__self:!0,__source:!0};function f(p,m,g){var v,S={},P=null,R=null;g!==void 0&&(P=""+g),m.key!==void 0&&(P=""+m.key),m.ref!==void 0&&(R=m.ref);for(v in m)a.call(m,v)&&!h.hasOwnProperty(v)&&(S[v]=m[v]);if(p&&p.defaultProps)for(v in m=p.defaultProps,m)S[v]===void 0&&(S[v]=m[v]);return{$$typeof:i,type:p,key:P,ref:R,props:S,_owner:c.current}}return ri.Fragment=s,ri.jsx=f,ri.jsxs=f,ri}var Jf;function Hg(){return Jf||(Jf=1,Ul.exports=$g()),Ul.exports}var re=Hg(),J=Pa(),Ao={},$l={exports:{}},it={},Hl={exports:{}},Kl={};/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var bf;function Kg(){return bf||(bf=1,function(r){function i(O,Q){var z=O.length;O.push(Q);e:for(;0<z;){var T=z-1>>>1,D=O[T];if(0<c(D,Q))O[T]=Q,O[z]=D,z=T;else break e}}function s(O){return O.length===0?null:O[0]}function a(O){if(O.length===0)return null;var Q=O[0],z=O.pop();if(z!==Q){O[0]=z;e:for(var T=0,D=O.length,ne=D>>>1;T<ne;){var se=2*(T+1)-1,ue=O[se],ce=se+1,me=O[ce];if(0>c(ue,z))ce<D&&0>c(me,ue)?(O[T]=me,O[ce]=z,T=ce):(O[T]=ue,O[se]=z,T=se);else if(ce<D&&0>c(me,z))O[T]=me,O[ce]=z,T=ce;else break e}}return Q}function c(O,Q){var z=O.sortIndex-Q.sortIndex;return z!==0?z:O.id-Q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var h=performance;r.unstable_now=function(){return h.now()}}else{var f=Date,p=f.now();r.unstable_now=function(){return f.now()-p}}var m=[],g=[],v=1,S=null,P=3,R=!1,V=!1,M=!1,N=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function $(O){for(var Q=s(g);Q!==null;){if(Q.callback===null)a(g);else if(Q.startTime<=O)a(g),Q.sortIndex=Q.expirationTime,i(m,Q);else break;Q=s(g)}}function ee(O){if(M=!1,$(O),!V)if(s(m)!==null)V=!0,Ye(G);else{var Q=s(g);Q!==null&&ie(ee,Q.startTime-O)}}function G(O,Q){V=!1,M&&(M=!1,j(Z),Z=-1),R=!0;var z=P;try{for($(Q),S=s(m);S!==null&&(!(S.expirationTime>Q)||O&&!qe());){var T=S.callback;if(typeof T=="function"){S.callback=null,P=S.priorityLevel;var D=T(S.expirationTime<=Q);Q=r.unstable_now(),typeof D=="function"?S.callback=D:S===s(m)&&a(m),$(Q)}else a(m);S=s(m)}if(S!==null)var ne=!0;else{var se=s(g);se!==null&&ie(ee,se.startTime-Q),ne=!1}return ne}finally{S=null,P=z,R=!1}}var te=!1,ae=null,Z=-1,xe=5,Ce=-1;function qe(){return!(r.unstable_now()-Ce<xe)}function ot(){if(ae!==null){var O=r.unstable_now();Ce=O;var Q=!0;try{Q=ae(!0,O)}finally{Q?Qe():(te=!1,ae=null)}}else te=!1}var Qe;if(typeof B=="function")Qe=function(){B(ot)};else if(typeof MessageChannel<"u"){var Je=new MessageChannel,St=Je.port2;Je.port1.onmessage=ot,Qe=function(){St.postMessage(null)}}else Qe=function(){N(ot,0)};function Ye(O){ae=O,te||(te=!0,Qe())}function ie(O,Q){Z=N(function(){O(r.unstable_now())},Q)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(O){O.callback=null},r.unstable_continueExecution=function(){V||R||(V=!0,Ye(G))},r.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xe=0<O?Math.floor(1e3/O):5},r.unstable_getCurrentPriorityLevel=function(){return P},r.unstable_getFirstCallbackNode=function(){return s(m)},r.unstable_next=function(O){switch(P){case 1:case 2:case 3:var Q=3;break;default:Q=P}var z=P;P=Q;try{return O()}finally{P=z}},r.unstable_pauseExecution=function(){},r.unstable_requestPaint=function(){},r.unstable_runWithPriority=function(O,Q){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var z=P;P=O;try{return Q()}finally{P=z}},r.unstable_scheduleCallback=function(O,Q,z){var T=r.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?T+z:T):z=T,O){case 1:var D=-1;break;case 2:D=250;break;case 5:D=1073741823;break;case 4:D=1e4;break;default:D=5e3}return D=z+D,O={id:v++,callback:Q,priorityLevel:O,startTime:z,expirationTime:D,sortIndex:-1},z>T?(O.sortIndex=z,i(g,O),s(m)===null&&O===s(g)&&(M?(j(Z),Z=-1):M=!0,ie(ee,z-T))):(O.sortIndex=D,i(m,O),V||R||(V=!0,Ye(G))),O},r.unstable_shouldYield=qe,r.unstable_wrapCallback=function(O){var Q=P;return function(){var z=P;P=Q;try{return O.apply(this,arguments)}finally{P=z}}}}(Kl)),Kl}var ed;function Gg(){return ed||(ed=1,Hl.exports=Kg()),Hl.exports}/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var td;function Qg(){if(td)return it;td=1;var r=Pa(),i=Gg();function s(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 a=new Set,c={};function h(e,t){f(e,t),f(e+"Capture",t)}function f(e,t){for(c[e]=t,e=0;e<t.length;e++)a.add(t[e])}var p=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),m=Object.prototype.hasOwnProperty,g=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,v={},S={};function P(e){return m.call(S,e)?!0:m.call(v,e)?!1:g.test(e)?S[e]=!0:(v[e]=!0,!1)}function R(e,t,n,o){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function V(e,t,n,o){if(t===null||typeof t>"u"||R(e,t,n,o))return!0;if(o)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 M(e,t,n,o,l,u,d){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=d}var N={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){N[e]=new M(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];N[t]=new M(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){N[e]=new M(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){N[e]=new M(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){N[e]=new M(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){N[e]=new M(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){N[e]=new M(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){N[e]=new M(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){N[e]=new M(e,5,!1,e.toLowerCase(),null,!1,!1)});var j=/[\-:]([a-z])/g;function B(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(j,B);N[t]=new M(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(j,B);N[t]=new M(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(j,B);N[t]=new M(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){N[e]=new M(e,1,!1,e.toLowerCase(),null,!1,!1)}),N.xlinkHref=new M("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){N[e]=new M(e,1,!1,e.toLowerCase(),null,!0,!0)});function $(e,t,n,o){var l=N.hasOwnProperty(t)?N[t]:null;(l!==null?l.type!==0:o||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(V(t,n,l,o)&&(n=null),o||l===null?P(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=n===null?l.type===3?!1:"":n:(t=l.attributeName,o=l.attributeNamespace,n===null?e.removeAttribute(t):(l=l.type,n=l===3||l===4&&n===!0?"":""+n,o?e.setAttributeNS(o,t,n):e.setAttribute(t,n))))}var ee=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,G=Symbol.for("react.element"),te=Symbol.for("react.portal"),ae=Symbol.for("react.fragment"),Z=Symbol.for("react.strict_mode"),xe=Symbol.for("react.profiler"),Ce=Symbol.for("react.provider"),qe=Symbol.for("react.context"),ot=Symbol.for("react.forward_ref"),Qe=Symbol.for("react.suspense"),Je=Symbol.for("react.suspense_list"),St=Symbol.for("react.memo"),Ye=Symbol.for("react.lazy"),ie=Symbol.for("react.offscreen"),O=Symbol.iterator;function Q(e){return e===null||typeof e!="object"?null:(e=O&&e[O]||e["@@iterator"],typeof e=="function"?e:null)}var z=Object.assign,T;function D(e){if(T===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);T=t&&t[1]||""}return`
`+T+e}var ne=!1;function se(e,t){if(!e||ne)return"";ne=!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(E){var o=E}Reflect.construct(e,[],t)}else{try{t.call()}catch(E){o=E}e.call(t.prototype)}else{try{throw Error()}catch(E){o=E}e()}}catch(E){if(E&&o&&typeof E.stack=="string"){for(var l=E.stack.split(`
`),u=o.stack.split(`
`),d=l.length-1,y=u.length-1;1<=d&&0<=y&&l[d]!==u[y];)y--;for(;1<=d&&0<=y;d--,y--)if(l[d]!==u[y]){if(d!==1||y!==1)do if(d--,y--,0>y||l[d]!==u[y]){var w=`
`+l[d].replace(" at new "," at ");return e.displayName&&w.includes("<anonymous>")&&(w=w.replace("<anonymous>",e.displayName)),w}while(1<=d&&0<=y);break}}}finally{ne=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?D(e):""}function ue(e){switch(e.tag){case 5:return D(e.type);case 16:return D("Lazy");case 13:return D("Suspense");case 19:return D("SuspenseList");case 0:case 2:case 15:return e=se(e.type,!1),e;case 11:return e=se(e.type.render,!1),e;case 1:return e=se(e.type,!0),e;default:return""}}function ce(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ae:return"Fragment";case te:return"Portal";case xe:return"Profiler";case Z:return"StrictMode";case Qe:return"Suspense";case Je:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case qe:return(e.displayName||"Context")+".Consumer";case Ce:return(e._context.displayName||"Context")+".Provider";case ot:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case St:return t=e.displayName||null,t!==null?t:ce(e.type)||"Memo";case Ye:t=e._payload,e=e._init;try{return ce(e(t))}catch{}}return null}function me(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ce(t);case 8:return t===Z?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function de(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function we(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function st(e){var t=we(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(d){o=""+d,u.call(this,d)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(d){o=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yi(e){e._valueTracker||(e._valueTracker=st(e))}function eu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=we(e)?e.checked?"true":"false":e.value),e=o,e!==n?(t.setValue(e),!0):!1}function vi(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 Yo(e,t){var n=t.checked;return z({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function tu(e,t){var n=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;n=de(t.value!=null?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function nu(e,t){t=t.checked,t!=null&&$(e,"checked",t,!1)}function Xo(e,t){nu(e,t);var n=de(t.value),o=t.type;if(n!=null)o==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Zo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Zo(e,t.type,de(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ru(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,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 Zo(e,t,n){(t!=="number"||vi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var vr=Array.isArray;function In(e,t,n,o){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&o&&(e[n].defaultSelected=!0)}else{for(n=""+de(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,o&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function qo(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(s(91));return z({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function iu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(s(92));if(vr(n)){if(1<n.length)throw Error(s(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:de(n)}}function ou(e,t){var n=de(t.value),o=de(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),o!=null&&(e.defaultValue=""+o)}function su(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function lu(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 Jo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?lu(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var wi,au=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,o,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,o,l)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(wi=wi||document.createElement("div"),wi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=wi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function wr(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},Gp=["Webkit","ms","Moz","O"];Object.keys(Sr).forEach(function(e){Gp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Sr[t]=Sr[e]})});function uu(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 cu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var o=n.indexOf("--")===0,l=uu(n,t[n],o);n==="float"&&(n="cssFloat"),o?e.setProperty(n,l):e[n]=l}}var Qp=z({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function bo(e,t){if(t){if(Qp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(s(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(s(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(t.style!=null&&typeof t.style!="object")throw Error(s(62))}}function es(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 ts=null;function ns(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rs=null,zn=null,Bn=null;function fu(e){if(e=Wr(e)){if(typeof rs!="function")throw Error(s(280));var t=e.stateNode;t&&(t=Wi(t),rs(e.stateNode,e.type,t))}}function du(e){zn?Bn?Bn.push(e):Bn=[e]:zn=e}function hu(){if(zn){var e=zn,t=Bn;if(Bn=zn=null,fu(e),t)for(e=0;e<t.length;e++)fu(t[e])}}function pu(e,t){return e(t)}function mu(){}var is=!1;function gu(e,t,n){if(is)return e(t,n);is=!0;try{return pu(e,t,n)}finally{is=!1,(zn!==null||Bn!==null)&&(mu(),hu())}}function xr(e,t){var n=e.stateNode;if(n===null)return null;var o=Wi(n);if(o===null)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var os=!1;if(p)try{var Pr={};Object.defineProperty(Pr,"passive",{get:function(){os=!0}}),window.addEventListener("test",Pr,Pr),window.removeEventListener("test",Pr,Pr)}catch{os=!1}function Yp(e,t,n,o,l,u,d,y,w){var E=Array.prototype.slice.call(arguments,3);try{t.apply(n,E)}catch(L){this.onError(L)}}var Tr=!1,Si=null,xi=!1,ss=null,Xp={onError:function(e){Tr=!0,Si=e}};function Zp(e,t,n,o,l,u,d,y,w){Tr=!1,Si=null,Yp.apply(Xp,arguments)}function qp(e,t,n,o,l,u,d,y,w){if(Zp.apply(this,arguments),Tr){if(Tr){var E=Si;Tr=!1,Si=null}else throw Error(s(198));xi||(xi=!0,ss=E)}}function wn(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 yu(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 vu(e){if(wn(e)!==e)throw Error(s(188))}function Jp(e){var t=e.alternate;if(!t){if(t=wn(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,o=t;;){var l=n.return;if(l===null)break;var u=l.alternate;if(u===null){if(o=l.return,o!==null){n=o;continue}break}if(l.child===u.child){for(u=l.child;u;){if(u===n)return vu(l),e;if(u===o)return vu(l),t;u=u.sibling}throw Error(s(188))}if(n.return!==o.return)n=l,o=u;else{for(var d=!1,y=l.child;y;){if(y===n){d=!0,n=l,o=u;break}if(y===o){d=!0,o=l,n=u;break}y=y.sibling}if(!d){for(y=u.child;y;){if(y===n){d=!0,n=u,o=l;break}if(y===o){d=!0,o=u,n=l;break}y=y.sibling}if(!d)throw Error(s(189))}}if(n.alternate!==o)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function wu(e){return e=Jp(e),e!==null?Su(e):null}function Su(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Su(e);if(t!==null)return t;e=e.sibling}return null}var xu=i.unstable_scheduleCallback,Pu=i.unstable_cancelCallback,bp=i.unstable_shouldYield,em=i.unstable_requestPaint,Ae=i.unstable_now,tm=i.unstable_getCurrentPriorityLevel,ls=i.unstable_ImmediatePriority,Tu=i.unstable_UserBlockingPriority,Pi=i.unstable_NormalPriority,nm=i.unstable_LowPriority,ku=i.unstable_IdlePriority,Ti=null,At=null;function rm(e){if(At&&typeof At.onCommitFiberRoot=="function")try{At.onCommitFiberRoot(Ti,e,void 0,(e.current.flags&128)===128)}catch{}}var xt=Math.clz32?Math.clz32:sm,im=Math.log,om=Math.LN2;function sm(e){return e>>>=0,e===0?32:31-(im(e)/om|0)|0}var ki=64,Ci=4194304;function kr(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 Ei(e,t){var n=e.pendingLanes;if(n===0)return 0;var o=0,l=e.suspendedLanes,u=e.pingedLanes,d=n&268435455;if(d!==0){var y=d&~l;y!==0?o=kr(y):(u&=d,u!==0&&(o=kr(u)))}else d=n&~l,d!==0?o=kr(d):u!==0&&(o=kr(u));if(o===0)return 0;if(t!==0&&t!==o&&!(t&l)&&(l=o&-o,u=t&-t,l>=u||l===16&&(u&4194240)!==0))return t;if(o&4&&(o|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0<t;)n=31-xt(t),l=1<<n,o|=e[n],t&=~l;return o}function lm(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 am(e,t){for(var n=e.suspendedLanes,o=e.pingedLanes,l=e.expirationTimes,u=e.pendingLanes;0<u;){var d=31-xt(u),y=1<<d,w=l[d];w===-1?(!(y&n)||y&o)&&(l[d]=lm(y,t)):w<=t&&(e.expiredLanes|=y),u&=~y}}function as(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Cu(){var e=ki;return ki<<=1,!(ki&4194240)&&(ki=64),e}function us(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Cr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xt(t),e[t]=n}function um(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 o=e.eventTimes;for(e=e.expirationTimes;0<n;){var l=31-xt(n),u=1<<l;t[l]=0,o[l]=-1,e[l]=-1,n&=~u}}function cs(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var o=31-xt(n),l=1<<o;l&t|e[o]&t&&(e[o]|=t),n&=~l}}var he=0;function Eu(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Ru,fs,Au,Mu,Du,ds=!1,Ri=[],Xt=null,Zt=null,qt=null,Er=new Map,Rr=new Map,Jt=[],cm="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 Lu(e,t){switch(e){case"focusin":case"focusout":Xt=null;break;case"dragenter":case"dragleave":Zt=null;break;case"mouseover":case"mouseout":qt=null;break;case"pointerover":case"pointerout":Er.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rr.delete(t.pointerId)}}function Ar(e,t,n,o,l,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:o,nativeEvent:u,targetContainers:[l]},t!==null&&(t=Wr(t),t!==null&&fs(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function fm(e,t,n,o,l){switch(t){case"focusin":return Xt=Ar(Xt,e,t,n,o,l),!0;case"dragenter":return Zt=Ar(Zt,e,t,n,o,l),!0;case"mouseover":return qt=Ar(qt,e,t,n,o,l),!0;case"pointerover":var u=l.pointerId;return Er.set(u,Ar(Er.get(u)||null,e,t,n,o,l)),!0;case"gotpointercapture":return u=l.pointerId,Rr.set(u,Ar(Rr.get(u)||null,e,t,n,o,l)),!0}return!1}function Vu(e){var t=Sn(e.target);if(t!==null){var n=wn(t);if(n!==null){if(t=n.tag,t===13){if(t=yu(n),t!==null){e.blockedOn=t,Du(e.priority,function(){Au(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 Ai(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ps(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var o=new n.constructor(n.type,n);ts=o,n.target.dispatchEvent(o),ts=null}else return t=Wr(n),t!==null&&fs(t),e.blockedOn=n,!1;t.shift()}return!0}function _u(e,t,n){Ai(e)&&n.delete(t)}function dm(){ds=!1,Xt!==null&&Ai(Xt)&&(Xt=null),Zt!==null&&Ai(Zt)&&(Zt=null),qt!==null&&Ai(qt)&&(qt=null),Er.forEach(_u),Rr.forEach(_u)}function Mr(e,t){e.blockedOn===t&&(e.blockedOn=null,ds||(ds=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,dm)))}function Dr(e){function t(l){return Mr(l,e)}if(0<Ri.length){Mr(Ri[0],e);for(var n=1;n<Ri.length;n++){var o=Ri[n];o.blockedOn===e&&(o.blockedOn=null)}}for(Xt!==null&&Mr(Xt,e),Zt!==null&&Mr(Zt,e),qt!==null&&Mr(qt,e),Er.forEach(t),Rr.forEach(t),n=0;n<Jt.length;n++)o=Jt[n],o.blockedOn===e&&(o.blockedOn=null);for(;0<Jt.length&&(n=Jt[0],n.blockedOn===null);)Vu(n),n.blockedOn===null&&Jt.shift()}var Un=ee.ReactCurrentBatchConfig,Mi=!0;function hm(e,t,n,o){var l=he,u=Un.transition;Un.transition=null;try{he=1,hs(e,t,n,o)}finally{he=l,Un.transition=u}}function pm(e,t,n,o){var l=he,u=Un.transition;Un.transition=null;try{he=4,hs(e,t,n,o)}finally{he=l,Un.transition=u}}function hs(e,t,n,o){if(Mi){var l=ps(e,t,n,o);if(l===null)Ls(e,t,o,Di,n),Lu(e,o);else if(fm(l,e,t,n,o))o.stopPropagation();else if(Lu(e,o),t&4&&-1<cm.indexOf(e)){for(;l!==null;){var u=Wr(l);if(u!==null&&Ru(u),u=ps(e,t,n,o),u===null&&Ls(e,t,o,Di,n),u===l)break;l=u}l!==null&&o.stopPropagation()}else Ls(e,t,o,null,n)}}var Di=null;function ps(e,t,n,o){if(Di=null,e=ns(o),e=Sn(e),e!==null)if(t=wn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=yu(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 Di=e,null}function Nu(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(tm()){case ls:return 1;case Tu:return 4;case Pi:case nm:return 16;case ku:return 536870912;default:return 16}default:return 16}}var bt=null,ms=null,Li=null;function Fu(){if(Li)return Li;var e,t=ms,n=t.length,o,l="value"in bt?bt.value:bt.textContent,u=l.length;for(e=0;e<n&&t[e]===l[e];e++);var d=n-e;for(o=1;o<=d&&t[n-o]===l[u-o];o++);return Li=l.slice(e,1<o?1-o:void 0)}function Vi(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 _i(){return!0}function ju(){return!1}function lt(e){function t(n,o,l,u,d){this._reactName=n,this._targetInst=l,this.type=o,this.nativeEvent=u,this.target=d,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(n=e[y],this[y]=n?n(u):u[y]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?_i:ju,this.isPropagationStopped=ju,this}return z(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=_i)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=_i)},persist:function(){},isPersistent:_i}),t}var Wn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gs=lt(Wn),Lr=z({},Wn,{view:0,detail:0}),mm=lt(Lr),ys,vs,Vr,Ni=z({},Lr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ss,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!==Vr&&(Vr&&e.type==="mousemove"?(ys=e.screenX-Vr.screenX,vs=e.screenY-Vr.screenY):vs=ys=0,Vr=e),ys)},movementY:function(e){return"movementY"in e?e.movementY:vs}}),Ou=lt(Ni),gm=z({},Ni,{dataTransfer:0}),ym=lt(gm),vm=z({},Lr,{relatedTarget:0}),ws=lt(vm),wm=z({},Wn,{animationName:0,elapsedTime:0,pseudoElement:0}),Sm=lt(wm),xm=z({},Wn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Pm=lt(xm),Tm=z({},Wn,{data:0}),Iu=lt(Tm),km={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cm={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"},Em={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Rm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Em[e])?!!t[e]:!1}function Ss(){return Rm}var Am=z({},Lr,{key:function(e){if(e.key){var t=km[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Vi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Cm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ss,charCode:function(e){return e.type==="keypress"?Vi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Vi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Mm=lt(Am),Dm=z({},Ni,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),zu=lt(Dm),Lm=z({},Lr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ss}),Vm=lt(Lm),_m=z({},Wn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Nm=lt(_m),Fm=z({},Ni,{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}),jm=lt(Fm),Om=[9,13,27,32],xs=p&&"CompositionEvent"in window,_r=null;p&&"documentMode"in document&&(_r=document.documentMode);var Im=p&&"TextEvent"in window&&!_r,Bu=p&&(!xs||_r&&8<_r&&11>=_r),Uu=" ",Wu=!1;function $u(e,t){switch(e){case"keyup":return Om.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $n=!1;function zm(e,t){switch(e){case"compositionend":return Hu(t);case"keypress":return t.which!==32?null:(Wu=!0,Uu);case"textInput":return e=t.data,e===Uu&&Wu?null:e;default:return null}}function Bm(e,t){if($n)return e==="compositionend"||!xs&&$u(e,t)?(e=Fu(),Li=ms=bt=null,$n=!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 Bu&&t.locale!=="ko"?null:t.data;default:return null}}var Um={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 Ku(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Um[e.type]:t==="textarea"}function Gu(e,t,n,o){du(o),t=zi(t,"onChange"),0<t.length&&(n=new gs("onChange","change",null,n,o),e.push({event:n,listeners:t}))}var Nr=null,Fr=null;function Wm(e){cc(e,0)}function Fi(e){var t=Yn(e);if(eu(t))return e}function $m(e,t){if(e==="change")return t}var Qu=!1;if(p){var Ps;if(p){var Ts="oninput"in document;if(!Ts){var Yu=document.createElement("div");Yu.setAttribute("oninput","return;"),Ts=typeof Yu.oninput=="function"}Ps=Ts}else Ps=!1;Qu=Ps&&(!document.documentMode||9<document.documentMode)}function Xu(){Nr&&(Nr.detachEvent("onpropertychange",Zu),Fr=Nr=null)}function Zu(e){if(e.propertyName==="value"&&Fi(Fr)){var t=[];Gu(t,Fr,e,ns(e)),gu(Wm,t)}}function Hm(e,t,n){e==="focusin"?(Xu(),Nr=t,Fr=n,Nr.attachEvent("onpropertychange",Zu)):e==="focusout"&&Xu()}function Km(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Fi(Fr)}function Gm(e,t){if(e==="click")return Fi(t)}function Qm(e,t){if(e==="input"||e==="change")return Fi(t)}function Ym(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Pt=typeof Object.is=="function"?Object.is:Ym;function jr(e,t){if(Pt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++){var l=n[o];if(!m.call(t,l)||!Pt(e[l],t[l]))return!1}return!0}function qu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ju(e,t){var n=qu(e);e=0;for(var o;n;){if(n.nodeType===3){if(o=e+n.textContent.length,e<=t&&o>=t)return{node:n,offset:t-e};e=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=qu(n)}}function bu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?bu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ec(){for(var e=window,t=vi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=vi(e.document)}return t}function ks(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 Xm(e){var t=ec(),n=e.focusedElem,o=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&bu(n.ownerDocument.documentElement,n)){if(o!==null&&ks(n)){if(t=o.start,e=o.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 l=n.textContent.length,u=Math.min(o.start,l);o=o.end===void 0?u:Math.min(o.end,l),!e.extend&&u>o&&(l=o,o=u,u=l),l=Ju(n,u);var d=Ju(n,o);l&&d&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==d.node||e.focusOffset!==d.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),u>o?(e.addRange(t),e.extend(d.node,d.offset)):(t.setEnd(d.node,d.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 Zm=p&&"documentMode"in document&&11>=document.documentMode,Hn=null,Cs=null,Or=null,Es=!1;function tc(e,t,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Es||Hn==null||Hn!==vi(o)||(o=Hn,"selectionStart"in o&&ks(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Or&&jr(Or,o)||(Or=o,o=zi(Cs,"onSelect"),0<o.length&&(t=new gs("onSelect","select",null,t,n),e.push({event:t,listeners:o}),t.target=Hn)))}function ji(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Kn={animationend:ji("Animation","AnimationEnd"),animationiteration:ji("Animation","AnimationIteration"),animationstart:ji("Animation","AnimationStart"),transitionend:ji("Transition","TransitionEnd")},Rs={},nc={};p&&(nc=document.createElement("div").style,"AnimationEvent"in window||(delete Kn.animationend.animation,delete Kn.animationiteration.animation,delete Kn.animationstart.animation),"TransitionEvent"in window||delete Kn.transitionend.transition);function Oi(e){if(Rs[e])return Rs[e];if(!Kn[e])return e;var t=Kn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in nc)return Rs[e]=t[n];return e}var rc=Oi("animationend"),ic=Oi("animationiteration"),oc=Oi("animationstart"),sc=Oi("transitionend"),lc=new Map,ac="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function en(e,t){lc.set(e,t),h(t,[e])}for(var As=0;As<ac.length;As++){var Ms=ac[As],qm=Ms.toLowerCase(),Jm=Ms[0].toUpperCase()+Ms.slice(1);en(qm,"on"+Jm)}en(rc,"onAnimationEnd"),en(ic,"onAnimationIteration"),en(oc,"onAnimationStart"),en("dblclick","onDoubleClick"),en("focusin","onFocus"),en("focusout","onBlur"),en(sc,"onTransitionEnd"),f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),h("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),h("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),h("onBeforeInput",["compositionend","keypress","textInput","paste"]),h("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),h("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),h("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ir="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(" "),bm=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ir));function uc(e,t,n){var o=e.type||"unknown-event";e.currentTarget=n,qp(o,t,void 0,e),e.currentTarget=null}function cc(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var o=e[n],l=o.event;o=o.listeners;e:{var u=void 0;if(t)for(var d=o.length-1;0<=d;d--){var y=o[d],w=y.instance,E=y.currentTarget;if(y=y.listener,w!==u&&l.isPropagationStopped())break e;uc(l,y,E),u=w}else for(d=0;d<o.length;d++){if(y=o[d],w=y.instance,E=y.currentTarget,y=y.listener,w!==u&&l.isPropagationStopped())break e;uc(l,y,E),u=w}}}if(xi)throw e=ss,xi=!1,ss=null,e}function ye(e,t){var n=t[Os];n===void 0&&(n=t[Os]=new Set);var o=e+"__bubble";n.has(o)||(fc(t,e,2,!1),n.add(o))}function Ds(e,t,n){var o=0;t&&(o|=4),fc(n,e,o,t)}var Ii="_reactListening"+Math.random().toString(36).slice(2);function zr(e){if(!e[Ii]){e[Ii]=!0,a.forEach(function(n){n!=="selectionchange"&&(bm.has(n)||Ds(n,!1,e),Ds(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ii]||(t[Ii]=!0,Ds("selectionchange",!1,t))}}function fc(e,t,n,o){switch(Nu(t)){case 1:var l=hm;break;case 4:l=pm;break;default:l=hs}n=l.bind(null,t,n,e),l=void 0,!os||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),o?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function Ls(e,t,n,o,l){var u=o;if(!(t&1)&&!(t&2)&&o!==null)e:for(;;){if(o===null)return;var d=o.tag;if(d===3||d===4){var y=o.stateNode.containerInfo;if(y===l||y.nodeType===8&&y.parentNode===l)break;if(d===4)for(d=o.return;d!==null;){var w=d.tag;if((w===3||w===4)&&(w=d.stateNode.containerInfo,w===l||w.nodeType===8&&w.parentNode===l))return;d=d.return}for(;y!==null;){if(d=Sn(y),d===null)return;if(w=d.tag,w===5||w===6){o=u=d;continue e}y=y.parentNode}}o=o.return}gu(function(){var E=u,L=ns(n),_=[];e:{var A=lc.get(e);if(A!==void 0){var I=gs,W=e;switch(e){case"keypress":if(Vi(n)===0)break e;case"keydown":case"keyup":I=Mm;break;case"focusin":W="focus",I=ws;break;case"focusout":W="blur",I=ws;break;case"beforeblur":case"afterblur":I=ws;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":I=Ou;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":I=ym;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":I=Vm;break;case rc:case ic:case oc:I=Sm;break;case sc:I=Nm;break;case"scroll":I=mm;break;case"wheel":I=jm;break;case"copy":case"cut":case"paste":I=Pm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":I=zu}var H=(t&4)!==0,Me=!H&&e==="scroll",k=H?A!==null?A+"Capture":null:A;H=[];for(var x=E,C;x!==null;){C=x;var F=C.stateNode;if(C.tag===5&&F!==null&&(C=F,k!==null&&(F=xr(x,k),F!=null&&H.push(Br(x,F,C)))),Me)break;x=x.return}0<H.length&&(A=new I(A,W,null,n,L),_.push({event:A,listeners:H}))}}if(!(t&7)){e:{if(A=e==="mouseover"||e==="pointerover",I=e==="mouseout"||e==="pointerout",A&&n!==ts&&(W=n.relatedTarget||n.fromElement)&&(Sn(W)||W[Ft]))break e;if((I||A)&&(A=L.window===L?L:(A=L.ownerDocument)?A.defaultView||A.parentWindow:window,I?(W=n.relatedTarget||n.toElement,I=E,W=W?Sn(W):null,W!==null&&(Me=wn(W),W!==Me||W.tag!==5&&W.tag!==6)&&(W=null)):(I=null,W=E),I!==W)){if(H=Ou,F="onMouseLeave",k="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(H=zu,F="onPointerLeave",k="onPointerEnter",x="pointer"),Me=I==null?A:Yn(I),C=W==null?A:Yn(W),A=new H(F,x+"leave",I,n,L),A.target=Me,A.relatedTarget=C,F=null,Sn(L)===E&&(H=new H(k,x+"enter",W,n,L),H.target=C,H.relatedTarget=Me,F=H),Me=F,I&&W)t:{for(H=I,k=W,x=0,C=H;C;C=Gn(C))x++;for(C=0,F=k;F;F=Gn(F))C++;for(;0<x-C;)H=Gn(H),x--;for(;0<C-x;)k=Gn(k),C--;for(;x--;){if(H===k||k!==null&&H===k.alternate)break t;H=Gn(H),k=Gn(k)}H=null}else H=null;I!==null&&dc(_,A,I,H,!1),W!==null&&Me!==null&&dc(_,Me,W,H,!0)}}e:{if(A=E?Yn(E):window,I=A.nodeName&&A.nodeName.toLowerCase(),I==="select"||I==="input"&&A.type==="file")var K=$m;else if(Ku(A))if(Qu)K=Qm;else{K=Km;var Y=Hm}else(I=A.nodeName)&&I.toLowerCase()==="input"&&(A.type==="checkbox"||A.type==="radio")&&(K=Gm);if(K&&(K=K(e,E))){Gu(_,K,n,L);break e}Y&&Y(e,A,E),e==="focusout"&&(Y=A._wrapperState)&&Y.controlled&&A.type==="number"&&Zo(A,"number",A.value)}switch(Y=E?Yn(E):window,e){case"focusin":(Ku(Y)||Y.contentEditable==="true")&&(Hn=Y,Cs=E,Or=null);break;case"focusout":Or=Cs=Hn=null;break;case"mousedown":Es=!0;break;case"contextmenu":case"mouseup":case"dragend":Es=!1,tc(_,n,L);break;case"selectionchange":if(Zm)break;case"keydown":case"keyup":tc(_,n,L)}var X;if(xs)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else $n?$u(e,n)&&(b="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(b="onCompositionStart");b&&(Bu&&n.locale!=="ko"&&($n||b!=="onCompositionStart"?b==="onCompositionEnd"&&$n&&(X=Fu()):(bt=L,ms="value"in bt?bt.value:bt.textContent,$n=!0)),Y=zi(E,b),0<Y.length&&(b=new Iu(b,e,null,n,L),_.push({event:b,listeners:Y}),X?b.data=X:(X=Hu(n),X!==null&&(b.data=X)))),(X=Im?zm(e,n):Bm(e,n))&&(E=zi(E,"onBeforeInput"),0<E.length&&(L=new Iu("onBeforeInput","beforeinput",null,n,L),_.push({event:L,listeners:E}),L.data=X))}cc(_,t)})}function Br(e,t,n){return{instance:e,listener:t,currentTarget:n}}function zi(e,t){for(var n=t+"Capture",o=[];e!==null;){var l=e,u=l.stateNode;l.tag===5&&u!==null&&(l=u,u=xr(e,n),u!=null&&o.unshift(Br(e,u,l)),u=xr(e,t),u!=null&&o.push(Br(e,u,l))),e=e.return}return o}function Gn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function dc(e,t,n,o,l){for(var u=t._reactName,d=[];n!==null&&n!==o;){var y=n,w=y.alternate,E=y.stateNode;if(w!==null&&w===o)break;y.tag===5&&E!==null&&(y=E,l?(w=xr(n,u),w!=null&&d.unshift(Br(n,w,y))):l||(w=xr(n,u),w!=null&&d.push(Br(n,w,y)))),n=n.return}d.length!==0&&e.push({event:t,listeners:d})}var eg=/\r\n?/g,tg=/\u0000|\uFFFD/g;function hc(e){return(typeof e=="string"?e:""+e).replace(eg,`
`).replace(tg,"")}function Bi(e,t,n){if(t=hc(t),hc(e)!==t&&n)throw Error(s(425))}function Ui(){}var Vs=null,_s=null;function Ns(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 Fs=typeof setTimeout=="function"?setTimeout:void 0,ng=typeof clearTimeout=="function"?clearTimeout:void 0,pc=typeof Promise=="function"?Promise:void 0,rg=typeof queueMicrotask=="function"?queueMicrotask:typeof pc<"u"?function(e){return pc.resolve(null).then(e).catch(ig)}:Fs;function ig(e){setTimeout(function(){throw e})}function js(e,t){var n=t,o=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(o===0){e.removeChild(l),Dr(t);return}o--}else n!=="$"&&n!=="$?"&&n!=="$!"||o++;n=l}while(n);Dr(t)}function tn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function mc(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 Qn=Math.random().toString(36).slice(2),Mt="__reactFiber$"+Qn,Ur="__reactProps$"+Qn,Ft="__reactContainer$"+Qn,Os="__reactEvents$"+Qn,og="__reactListeners$"+Qn,sg="__reactHandles$"+Qn;function Sn(e){var t=e[Mt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ft]||n[Mt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=mc(e);e!==null;){if(n=e[Mt])return n;e=mc(e)}return t}e=n,n=e.parentNode}return null}function Wr(e){return e=e[Mt]||e[Ft],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Yn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(s(33))}function Wi(e){return e[Ur]||null}var Is=[],Xn=-1;function nn(e){return{current:e}}function ve(e){0>Xn||(e.current=Is[Xn],Is[Xn]=null,Xn--)}function ge(e,t){Xn++,Is[Xn]=e.current,e.current=t}var rn={},Be=nn(rn),be=nn(!1),xn=rn;function Zn(e,t){var n=e.type.contextTypes;if(!n)return rn;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var l={},u;for(u in n)l[u]=t[u];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function et(e){return e=e.childContextTypes,e!=null}function $i(){ve(be),ve(Be)}function gc(e,t,n){if(Be.current!==rn)throw Error(s(168));ge(Be,t),ge(be,n)}function yc(e,t,n){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return n;o=o.getChildContext();for(var l in o)if(!(l in t))throw Error(s(108,me(e)||"Unknown",l));return z({},n,o)}function Hi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||rn,xn=Be.current,ge(Be,e),ge(be,be.current),!0}function vc(e,t,n){var o=e.stateNode;if(!o)throw Error(s(169));n?(e=yc(e,t,xn),o.__reactInternalMemoizedMergedChildContext=e,ve(be),ve(Be),ge(Be,e)):ve(be),ge(be,n)}var jt=null,Ki=!1,zs=!1;function wc(e){jt===null?jt=[e]:jt.push(e)}function lg(e){Ki=!0,wc(e)}function on(){if(!zs&&jt!==null){zs=!0;var e=0,t=he;try{var n=jt;for(he=1;e<n.length;e++){var o=n[e];do o=o(!0);while(o!==null)}jt=null,Ki=!1}catch(l){throw jt!==null&&(jt=jt.slice(e+1)),xu(ls,on),l}finally{he=t,zs=!1}}return null}var qn=[],Jn=0,Gi=null,Qi=0,dt=[],ht=0,Pn=null,Ot=1,It="";function Tn(e,t){qn[Jn++]=Qi,qn[Jn++]=Gi,Gi=e,Qi=t}function Sc(e,t,n){dt[ht++]=Ot,dt[ht++]=It,dt[ht++]=Pn,Pn=e;var o=Ot;e=It;var l=32-xt(o)-1;o&=~(1<<l),n+=1;var u=32-xt(t)+l;if(30<u){var d=l-l%5;u=(o&(1<<d)-1).toString(32),o>>=d,l-=d,Ot=1<<32-xt(t)+l|n<<l|o,It=u+e}else Ot=1<<u|n<<l|o,It=e}function Bs(e){e.return!==null&&(Tn(e,1),Sc(e,1,0))}function Us(e){for(;e===Gi;)Gi=qn[--Jn],qn[Jn]=null,Qi=qn[--Jn],qn[Jn]=null;for(;e===Pn;)Pn=dt[--ht],dt[ht]=null,It=dt[--ht],dt[ht]=null,Ot=dt[--ht],dt[ht]=null}var at=null,ut=null,Se=!1,Tt=null;function xc(e,t){var n=yt(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 Pc(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,at=e,ut=tn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,at=e,ut=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Pn!==null?{id:Ot,overflow:It}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=yt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,at=e,ut=null,!0):!1;default:return!1}}function Ws(e){return(e.mode&1)!==0&&(e.flags&128)===0}function $s(e){if(Se){var t=ut;if(t){var n=t;if(!Pc(e,t)){if(Ws(e))throw Error(s(418));t=tn(n.nextSibling);var o=at;t&&Pc(e,t)?xc(o,n):(e.flags=e.flags&-4097|2,Se=!1,at=e)}}else{if(Ws(e))throw Error(s(418));e.flags=e.flags&-4097|2,Se=!1,at=e}}}function Tc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;at=e}function Yi(e){if(e!==at)return!1;if(!Se)return Tc(e),Se=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ns(e.type,e.memoizedProps)),t&&(t=ut)){if(Ws(e))throw kc(),Error(s(418));for(;t;)xc(e,t),t=tn(t.nextSibling)}if(Tc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ut=tn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ut=null}}else ut=at?tn(e.stateNode.nextSibling):null;return!0}function kc(){for(var e=ut;e;)e=tn(e.nextSibling)}function bn(){ut=at=null,Se=!1}function Hs(e){Tt===null?Tt=[e]:Tt.push(e)}var ag=ee.ReactCurrentBatchConfig;function $r(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(s(309));var o=n.stateNode}if(!o)throw Error(s(147,e));var l=o,u=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===u?t.ref:(t=function(d){var y=l.refs;d===null?delete y[u]:y[u]=d},t._stringRef=u,t)}if(typeof e!="string")throw Error(s(284));if(!n._owner)throw Error(s(290,e))}return e}function Xi(e,t){throw e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Cc(e){var t=e._init;return t(e._payload)}function Ec(e){function t(k,x){if(e){var C=k.deletions;C===null?(k.deletions=[x],k.flags|=16):C.push(x)}}function n(k,x){if(!e)return null;for(;x!==null;)t(k,x),x=x.sibling;return null}function o(k,x){for(k=new Map;x!==null;)x.key!==null?k.set(x.key,x):k.set(x.index,x),x=x.sibling;return k}function l(k,x){return k=hn(k,x),k.index=0,k.sibling=null,k}function u(k,x,C){return k.index=C,e?(C=k.alternate,C!==null?(C=C.index,C<x?(k.flags|=2,x):C):(k.flags|=2,x)):(k.flags|=1048576,x)}function d(k){return e&&k.alternate===null&&(k.flags|=2),k}function y(k,x,C,F){return x===null||x.tag!==6?(x=Fl(C,k.mode,F),x.return=k,x):(x=l(x,C),x.return=k,x)}function w(k,x,C,F){var K=C.type;return K===ae?L(k,x,C.props.children,F,C.key):x!==null&&(x.elementType===K||typeof K=="object"&&K!==null&&K.$$typeof===Ye&&Cc(K)===x.type)?(F=l(x,C.props),F.ref=$r(k,x,C),F.return=k,F):(F=So(C.type,C.key,C.props,null,k.mode,F),F.ref=$r(k,x,C),F.return=k,F)}function E(k,x,C,F){return x===null||x.tag!==4||x.stateNode.containerInfo!==C.containerInfo||x.stateNode.implementation!==C.implementation?(x=jl(C,k.mode,F),x.return=k,x):(x=l(x,C.children||[]),x.return=k,x)}function L(k,x,C,F,K){return x===null||x.tag!==7?(x=Ln(C,k.mode,F,K),x.return=k,x):(x=l(x,C),x.return=k,x)}function _(k,x,C){if(typeof x=="string"&&x!==""||typeof x=="number")return x=Fl(""+x,k.mode,C),x.return=k,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case G:return C=So(x.type,x.key,x.props,null,k.mode,C),C.ref=$r(k,null,x),C.return=k,C;case te:return x=jl(x,k.mode,C),x.return=k,x;case Ye:var F=x._init;return _(k,F(x._payload),C)}if(vr(x)||Q(x))return x=Ln(x,k.mode,C,null),x.return=k,x;Xi(k,x)}return null}function A(k,x,C,F){var K=x!==null?x.key:null;if(typeof C=="string"&&C!==""||typeof C=="number")return K!==null?null:y(k,x,""+C,F);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case G:return C.key===K?w(k,x,C,F):null;case te:return C.key===K?E(k,x,C,F):null;case Ye:return K=C._init,A(k,x,K(C._payload),F)}if(vr(C)||Q(C))return K!==null?null:L(k,x,C,F,null);Xi(k,C)}return null}function I(k,x,C,F,K){if(typeof F=="string"&&F!==""||typeof F=="number")return k=k.get(C)||null,y(x,k,""+F,K);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case G:return k=k.get(F.key===null?C:F.key)||null,w(x,k,F,K);case te:return k=k.get(F.key===null?C:F.key)||null,E(x,k,F,K);case Ye:var Y=F._init;return I(k,x,C,Y(F._payload),K)}if(vr(F)||Q(F))return k=k.get(C)||null,L(x,k,F,K,null);Xi(x,F)}return null}function W(k,x,C,F){for(var K=null,Y=null,X=x,b=x=0,je=null;X!==null&&b<C.length;b++){X.index>b?(je=X,X=null):je=X.sibling;var fe=A(k,X,C[b],F);if(fe===null){X===null&&(X=je);break}e&&X&&fe.alternate===null&&t(k,X),x=u(fe,x,b),Y===null?K=fe:Y.sibling=fe,Y=fe,X=je}if(b===C.length)return n(k,X),Se&&Tn(k,b),K;if(X===null){for(;b<C.length;b++)X=_(k,C[b],F),X!==null&&(x=u(X,x,b),Y===null?K=X:Y.sibling=X,Y=X);return Se&&Tn(k,b),K}for(X=o(k,X);b<C.length;b++)je=I(X,k,b,C[b],F),je!==null&&(e&&je.alternate!==null&&X.delete(je.key===null?b:je.key),x=u(je,x,b),Y===null?K=je:Y.sibling=je,Y=je);return e&&X.forEach(function(pn){return t(k,pn)}),Se&&Tn(k,b),K}function H(k,x,C,F){var K=Q(C);if(typeof K!="function")throw Error(s(150));if(C=K.call(C),C==null)throw Error(s(151));for(var Y=K=null,X=x,b=x=0,je=null,fe=C.next();X!==null&&!fe.done;b++,fe=C.next()){X.index>b?(je=X,X=null):je=X.sibling;var pn=A(k,X,fe.value,F);if(pn===null){X===null&&(X=je);break}e&&X&&pn.alternate===null&&t(k,X),x=u(pn,x,b),Y===null?K=pn:Y.sibling=pn,Y=pn,X=je}if(fe.done)return n(k,X),Se&&Tn(k,b),K;if(X===null){for(;!fe.done;b++,fe=C.next())fe=_(k,fe.value,F),fe!==null&&(x=u(fe,x,b),Y===null?K=fe:Y.sibling=fe,Y=fe);return Se&&Tn(k,b),K}for(X=o(k,X);!fe.done;b++,fe=C.next())fe=I(X,k,b,fe.value,F),fe!==null&&(e&&fe.alternate!==null&&X.delete(fe.key===null?b:fe.key),x=u(fe,x,b),Y===null?K=fe:Y.sibling=fe,Y=fe);return e&&X.forEach(function(Ug){return t(k,Ug)}),Se&&Tn(k,b),K}function Me(k,x,C,F){if(typeof C=="object"&&C!==null&&C.type===ae&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case G:e:{for(var K=C.key,Y=x;Y!==null;){if(Y.key===K){if(K=C.type,K===ae){if(Y.tag===7){n(k,Y.sibling),x=l(Y,C.props.children),x.return=k,k=x;break e}}else if(Y.elementType===K||typeof K=="object"&&K!==null&&K.$$typeof===Ye&&Cc(K)===Y.type){n(k,Y.sibling),x=l(Y,C.props),x.ref=$r(k,Y,C),x.return=k,k=x;break e}n(k,Y);break}else t(k,Y);Y=Y.sibling}C.type===ae?(x=Ln(C.props.children,k.mode,F,C.key),x.return=k,k=x):(F=So(C.type,C.key,C.props,null,k.mode,F),F.ref=$r(k,x,C),F.return=k,k=F)}return d(k);case te:e:{for(Y=C.key;x!==null;){if(x.key===Y)if(x.tag===4&&x.stateNode.containerInfo===C.containerInfo&&x.stateNode.implementation===C.implementation){n(k,x.sibling),x=l(x,C.children||[]),x.return=k,k=x;break e}else{n(k,x);break}else t(k,x);x=x.sibling}x=jl(C,k.mode,F),x.return=k,k=x}return d(k);case Ye:return Y=C._init,Me(k,x,Y(C._payload),F)}if(vr(C))return W(k,x,C,F);if(Q(C))return H(k,x,C,F);Xi(k,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,x!==null&&x.tag===6?(n(k,x.sibling),x=l(x,C),x.return=k,k=x):(n(k,x),x=Fl(C,k.mode,F),x.return=k,k=x),d(k)):n(k,x)}return Me}var er=Ec(!0),Rc=Ec(!1),Zi=nn(null),qi=null,tr=null,Ks=null;function Gs(){Ks=tr=qi=null}function Qs(e){var t=Zi.current;ve(Zi),e._currentValue=t}function Ys(e,t,n){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===n)break;e=e.return}}function nr(e,t){qi=e,Ks=tr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(tt=!0),e.firstContext=null)}function pt(e){var t=e._currentValue;if(Ks!==e)if(e={context:e,memoizedValue:t,next:null},tr===null){if(qi===null)throw Error(s(308));tr=e,qi.dependencies={lanes:0,firstContext:e}}else tr=tr.next=e;return t}var kn=null;function Xs(e){kn===null?kn=[e]:kn.push(e)}function Ac(e,t,n,o){var l=t.interleaved;return l===null?(n.next=n,Xs(t)):(n.next=l.next,l.next=n),t.interleaved=n,zt(e,o)}function zt(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 sn=!1;function Zs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Mc(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 Bt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ln(e,t,n){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,le&2){var l=o.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),o.pending=t,zt(e,n)}return l=o.interleaved,l===null?(t.next=t,Xs(o)):(t.next=l.next,l.next=t),o.interleaved=t,zt(e,n)}function Ji(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,cs(e,n)}}function Dc(e,t){var n=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,n===o)){var l=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var d={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};u===null?l=u=d:u=u.next=d,n=n.next}while(n!==null);u===null?l=u=t:u=u.next=t}else l=u=t;n={baseState:o.baseState,firstBaseUpdate:l,lastBaseUpdate:u,shared:o.shared,effects:o.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function bi(e,t,n,o){var l=e.updateQueue;sn=!1;var u=l.firstBaseUpdate,d=l.lastBaseUpdate,y=l.shared.pending;if(y!==null){l.shared.pending=null;var w=y,E=w.next;w.next=null,d===null?u=E:d.next=E,d=w;var L=e.alternate;L!==null&&(L=L.updateQueue,y=L.lastBaseUpdate,y!==d&&(y===null?L.firstBaseUpdate=E:y.next=E,L.lastBaseUpdate=w))}if(u!==null){var _=l.baseState;d=0,L=E=w=null,y=u;do{var A=y.lane,I=y.eventTime;if((o&A)===A){L!==null&&(L=L.next={eventTime:I,lane:0,tag:y.tag,payload:y.payload,callback:y.callback,next:null});e:{var W=e,H=y;switch(A=t,I=n,H.tag){case 1:if(W=H.payload,typeof W=="function"){_=W.call(I,_,A);break e}_=W;break e;case 3:W.flags=W.flags&-65537|128;case 0:if(W=H.payload,A=typeof W=="function"?W.call(I,_,A):W,A==null)break e;_=z({},_,A);break e;case 2:sn=!0}}y.callback!==null&&y.lane!==0&&(e.flags|=64,A=l.effects,A===null?l.effects=[y]:A.push(y))}else I={eventTime:I,lane:A,tag:y.tag,payload:y.payload,callback:y.callback,next:null},L===null?(E=L=I,w=_):L=L.next=I,d|=A;if(y=y.next,y===null){if(y=l.shared.pending,y===null)break;A=y,y=A.next,A.next=null,l.lastBaseUpdate=A,l.shared.pending=null}}while(!0);if(L===null&&(w=_),l.baseState=w,l.firstBaseUpdate=E,l.lastBaseUpdate=L,t=l.shared.interleaved,t!==null){l=t;do d|=l.lane,l=l.next;while(l!==t)}else u===null&&(l.shared.lanes=0);Rn|=d,e.lanes=d,e.memoizedState=_}}function Lc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var o=e[t],l=o.callback;if(l!==null){if(o.callback=null,o=n,typeof l!="function")throw Error(s(191,l));l.call(o)}}}var Hr={},Dt=nn(Hr),Kr=nn(Hr),Gr=nn(Hr);function Cn(e){if(e===Hr)throw Error(s(174));return e}function qs(e,t){switch(ge(Gr,t),ge(Kr,e),ge(Dt,Hr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Jo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Jo(t,e)}ve(Dt),ge(Dt,t)}function rr(){ve(Dt),ve(Kr),ve(Gr)}function Vc(e){Cn(Gr.current);var t=Cn(Dt.current),n=Jo(t,e.type);t!==n&&(ge(Kr,e),ge(Dt,n))}function Js(e){Kr.current===e&&(ve(Dt),ve(Kr))}var Pe=nn(0);function eo(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 bs=[];function el(){for(var e=0;e<bs.length;e++)bs[e]._workInProgressVersionPrimary=null;bs.length=0}var to=ee.ReactCurrentDispatcher,tl=ee.ReactCurrentBatchConfig,En=0,Te=null,Ve=null,Ne=null,no=!1,Qr=!1,Yr=0,ug=0;function Ue(){throw Error(s(321))}function nl(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Pt(e[n],t[n]))return!1;return!0}function rl(e,t,n,o,l,u){if(En=u,Te=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,to.current=e===null||e.memoizedState===null?hg:pg,e=n(o,l),Qr){u=0;do{if(Qr=!1,Yr=0,25<=u)throw Error(s(301));u+=1,Ne=Ve=null,t.updateQueue=null,to.current=mg,e=n(o,l)}while(Qr)}if(to.current=oo,t=Ve!==null&&Ve.next!==null,En=0,Ne=Ve=Te=null,no=!1,t)throw Error(s(300));return e}function il(){var e=Yr!==0;return Yr=0,e}function Lt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ne===null?Te.memoizedState=Ne=e:Ne=Ne.next=e,Ne}function mt(){if(Ve===null){var e=Te.alternate;e=e!==null?e.memoizedState:null}else e=Ve.next;var t=Ne===null?Te.memoizedState:Ne.next;if(t!==null)Ne=t,Ve=e;else{if(e===null)throw Error(s(310));Ve=e,e={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},Ne===null?Te.memoizedState=Ne=e:Ne=Ne.next=e}return Ne}function Xr(e,t){return typeof t=="function"?t(e):t}function ol(e){var t=mt(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var o=Ve,l=o.baseQueue,u=n.pending;if(u!==null){if(l!==null){var d=l.next;l.next=u.next,u.next=d}o.baseQueue=l=u,n.pending=null}if(l!==null){u=l.next,o=o.baseState;var y=d=null,w=null,E=u;do{var L=E.lane;if((En&L)===L)w!==null&&(w=w.next={lane:0,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null}),o=E.hasEagerState?E.eagerState:e(o,E.action);else{var _={lane:L,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null};w===null?(y=w=_,d=o):w=w.next=_,Te.lanes|=L,Rn|=L}E=E.next}while(E!==null&&E!==u);w===null?d=o:w.next=y,Pt(o,t.memoizedState)||(tt=!0),t.memoizedState=o,t.baseState=d,t.baseQueue=w,n.lastRenderedState=o}if(e=n.interleaved,e!==null){l=e;do u=l.lane,Te.lanes|=u,Rn|=u,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function sl(e){var t=mt(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var o=n.dispatch,l=n.pending,u=t.memoizedState;if(l!==null){n.pending=null;var d=l=l.next;do u=e(u,d.action),d=d.next;while(d!==l);Pt(u,t.memoizedState)||(tt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,o]}function _c(){}function Nc(e,t){var n=Te,o=mt(),l=t(),u=!Pt(o.memoizedState,l);if(u&&(o.memoizedState=l,tt=!0),o=o.queue,ll(Oc.bind(null,n,o,e),[e]),o.getSnapshot!==t||u||Ne!==null&&Ne.memoizedState.tag&1){if(n.flags|=2048,Zr(9,jc.bind(null,n,o,l,t),void 0,null),Fe===null)throw Error(s(349));En&30||Fc(n,t,l)}return l}function Fc(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Te.updateQueue,t===null?(t={lastEffect:null,stores:null},Te.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function jc(e,t,n,o){t.value=n,t.getSnapshot=o,Ic(t)&&zc(e)}function Oc(e,t,n){return n(function(){Ic(t)&&zc(e)})}function Ic(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Pt(e,n)}catch{return!0}}function zc(e){var t=zt(e,1);t!==null&&Rt(t,e,1,-1)}function Bc(e){var t=Lt();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=dg.bind(null,Te,e),[t.memoizedState,e]}function Zr(e,t,n,o){return e={tag:e,create:t,destroy:n,deps:o,next:null},t=Te.updateQueue,t===null?(t={lastEffect:null,stores:null},Te.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(o=n.next,n.next=e,e.next=o,t.lastEffect=e)),e}function Uc(){return mt().memoizedState}function ro(e,t,n,o){var l=Lt();Te.flags|=e,l.memoizedState=Zr(1|t,n,void 0,o===void 0?null:o)}function io(e,t,n,o){var l=mt();o=o===void 0?null:o;var u=void 0;if(Ve!==null){var d=Ve.memoizedState;if(u=d.destroy,o!==null&&nl(o,d.deps)){l.memoizedState=Zr(t,n,u,o);return}}Te.flags|=e,l.memoizedState=Zr(1|t,n,u,o)}function Wc(e,t){return ro(8390656,8,e,t)}function ll(e,t){return io(2048,8,e,t)}function $c(e,t){return io(4,2,e,t)}function Hc(e,t){return io(4,4,e,t)}function Kc(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 Gc(e,t,n){return n=n!=null?n.concat([e]):null,io(4,4,Kc.bind(null,t,e),n)}function al(){}function Qc(e,t){var n=mt();t=t===void 0?null:t;var o=n.memoizedState;return o!==null&&t!==null&&nl(t,o[1])?o[0]:(n.memoizedState=[e,t],e)}function Yc(e,t){var n=mt();t=t===void 0?null:t;var o=n.memoizedState;return o!==null&&t!==null&&nl(t,o[1])?o[0]:(e=e(),n.memoizedState=[e,t],e)}function Xc(e,t,n){return En&21?(Pt(n,t)||(n=Cu(),Te.lanes|=n,Rn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,tt=!0),e.memoizedState=n)}function cg(e,t){var n=he;he=n!==0&&4>n?n:4,e(!0);var o=tl.transition;tl.transition={};try{e(!1),t()}finally{he=n,tl.transition=o}}function Zc(){return mt().memoizedState}function fg(e,t,n){var o=fn(e);if(n={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null},qc(e))Jc(t,n);else if(n=Ac(e,t,n,o),n!==null){var l=Ze();Rt(n,e,o,l),bc(n,t,o)}}function dg(e,t,n){var o=fn(e),l={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null};if(qc(e))Jc(t,l);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var d=t.lastRenderedState,y=u(d,n);if(l.hasEagerState=!0,l.eagerState=y,Pt(y,d)){var w=t.interleaved;w===null?(l.next=l,Xs(t)):(l.next=w.next,w.next=l),t.interleaved=l;return}}catch{}finally{}n=Ac(e,t,l,o),n!==null&&(l=Ze(),Rt(n,e,o,l),bc(n,t,o))}}function qc(e){var t=e.alternate;return e===Te||t!==null&&t===Te}function Jc(e,t){Qr=no=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function bc(e,t,n){if(n&4194240){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,cs(e,n)}}var oo={readContext:pt,useCallback:Ue,useContext:Ue,useEffect:Ue,useImperativeHandle:Ue,useInsertionEffect:Ue,useLayoutEffect:Ue,useMemo:Ue,useReducer:Ue,useRef:Ue,useState:Ue,useDebugValue:Ue,useDeferredValue:Ue,useTransition:Ue,useMutableSource:Ue,useSyncExternalStore:Ue,useId:Ue,unstable_isNewReconciler:!1},hg={readContext:pt,useCallback:function(e,t){return Lt().memoizedState=[e,t===void 0?null:t],e},useContext:pt,useEffect:Wc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ro(4194308,4,Kc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ro(4194308,4,e,t)},useInsertionEffect:function(e,t){return ro(4,2,e,t)},useMemo:function(e,t){var n=Lt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=Lt();return t=n!==void 0?n(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=fg.bind(null,Te,e),[o.memoizedState,e]},useRef:function(e){var t=Lt();return e={current:e},t.memoizedState=e},useState:Bc,useDebugValue:al,useDeferredValue:function(e){return Lt().memoizedState=e},useTransition:function(){var e=Bc(!1),t=e[0];return e=cg.bind(null,e[1]),Lt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var o=Te,l=Lt();if(Se){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),Fe===null)throw Error(s(349));En&30||Fc(o,t,n)}l.memoizedState=n;var u={value:n,getSnapshot:t};return l.queue=u,Wc(Oc.bind(null,o,u,e),[e]),o.flags|=2048,Zr(9,jc.bind(null,o,u,n,t),void 0,null),n},useId:function(){var e=Lt(),t=Fe.identifierPrefix;if(Se){var n=It,o=Ot;n=(o&~(1<<32-xt(o)-1)).toString(32)+n,t=":"+t+"R"+n,n=Yr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=ug++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},pg={readContext:pt,useCallback:Qc,useContext:pt,useEffect:ll,useImperativeHandle:Gc,useInsertionEffect:$c,useLayoutEffect:Hc,useMemo:Yc,useReducer:ol,useRef:Uc,useState:function(){return ol(Xr)},useDebugValue:al,useDeferredValue:function(e){var t=mt();return Xc(t,Ve.memoizedState,e)},useTransition:function(){var e=ol(Xr)[0],t=mt().memoizedState;return[e,t]},useMutableSource:_c,useSyncExternalStore:Nc,useId:Zc,unstable_isNewReconciler:!1},mg={readContext:pt,useCallback:Qc,useContext:pt,useEffect:ll,useImperativeHandle:Gc,useInsertionEffect:$c,useLayoutEffect:Hc,useMemo:Yc,useReducer:sl,useRef:Uc,useState:function(){return sl(Xr)},useDebugValue:al,useDeferredValue:function(e){var t=mt();return Ve===null?t.memoizedState=e:Xc(t,Ve.memoizedState,e)},useTransition:function(){var e=sl(Xr)[0],t=mt().memoizedState;return[e,t]},useMutableSource:_c,useSyncExternalStore:Nc,useId:Zc,unstable_isNewReconciler:!1};function kt(e,t){if(e&&e.defaultProps){t=z({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ul(e,t,n,o){t=e.memoizedState,n=n(o,t),n=n==null?t:z({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var so={isMounted:function(e){return(e=e._reactInternals)?wn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var o=Ze(),l=fn(e),u=Bt(o,l);u.payload=t,n!=null&&(u.callback=n),t=ln(e,u,l),t!==null&&(Rt(t,e,l,o),Ji(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var o=Ze(),l=fn(e),u=Bt(o,l);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=ln(e,u,l),t!==null&&(Rt(t,e,l,o),Ji(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ze(),o=fn(e),l=Bt(n,o);l.tag=2,t!=null&&(l.callback=t),t=ln(e,l,o),t!==null&&(Rt(t,e,o,n),Ji(t,e,o))}};function ef(e,t,n,o,l,u,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,u,d):t.prototype&&t.prototype.isPureReactComponent?!jr(n,o)||!jr(l,u):!0}function tf(e,t,n){var o=!1,l=rn,u=t.contextType;return typeof u=="object"&&u!==null?u=pt(u):(l=et(t)?xn:Be.current,o=t.contextTypes,u=(o=o!=null)?Zn(e,l):rn),t=new t(n,u),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=so,e.stateNode=t,t._reactInternals=e,o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=u),t}function nf(e,t,n,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,o),t.state!==e&&so.enqueueReplaceState(t,t.state,null)}function cl(e,t,n,o){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},Zs(e);var u=t.contextType;typeof u=="object"&&u!==null?l.context=pt(u):(u=et(t)?xn:Be.current,l.context=Zn(e,u)),l.state=e.memoizedState,u=t.getDerivedStateFromProps,typeof u=="function"&&(ul(e,t,u,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&so.enqueueReplaceState(l,l.state,null),bi(e,n,l,o),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function ir(e,t){try{var n="",o=t;do n+=ue(o),o=o.return;while(o);var l=n}catch(u){l=`
Error generating stack: `+u.message+`
`+u.stack}return{value:e,source:t,stack:l,digest:null}}function fl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function dl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var gg=typeof WeakMap=="function"?WeakMap:Map;function rf(e,t,n){n=Bt(-1,n),n.tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){po||(po=!0,Rl=o),dl(e,t)},n}function of(e,t,n){n=Bt(-1,n),n.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var l=t.value;n.payload=function(){return o(l)},n.callback=function(){dl(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){dl(e,t),typeof o!="function"&&(un===null?un=new Set([this]):un.add(this));var d=t.stack;this.componentDidCatch(t.value,{componentStack:d!==null?d:""})}),n}function sf(e,t,n){var o=e.pingCache;if(o===null){o=e.pingCache=new gg;var l=new Set;o.set(t,l)}else l=o.get(t),l===void 0&&(l=new Set,o.set(t,l));l.has(n)||(l.add(n),e=Dg.bind(null,e,t,n),t.then(e,e))}function lf(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 af(e,t,n,o,l){return e.mode&1?(e.flags|=65536,e.lanes=l,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=Bt(-1,1),t.tag=2,ln(n,t,1))),n.lanes|=1),e)}var yg=ee.ReactCurrentOwner,tt=!1;function Xe(e,t,n,o){t.child=e===null?Rc(t,null,n,o):er(t,e.child,n,o)}function uf(e,t,n,o,l){n=n.render;var u=t.ref;return nr(t,l),o=rl(e,t,n,o,u,l),n=il(),e!==null&&!tt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Ut(e,t,l)):(Se&&n&&Bs(t),t.flags|=1,Xe(e,t,o,l),t.child)}function cf(e,t,n,o,l){if(e===null){var u=n.type;return typeof u=="function"&&!Nl(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,ff(e,t,u,o,l)):(e=So(n.type,null,o,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!(e.lanes&l)){var d=u.memoizedProps;if(n=n.compare,n=n!==null?n:jr,n(d,o)&&e.ref===t.ref)return Ut(e,t,l)}return t.flags|=1,e=hn(u,o),e.ref=t.ref,e.return=t,t.child=e}function ff(e,t,n,o,l){if(e!==null){var u=e.memoizedProps;if(jr(u,o)&&e.ref===t.ref)if(tt=!1,t.pendingProps=o=u,(e.lanes&l)!==0)e.flags&131072&&(tt=!0);else return t.lanes=e.lanes,Ut(e,t,l)}return hl(e,t,n,o,l)}function df(e,t,n){var o=t.pendingProps,l=o.children,u=e!==null?e.memoizedState:null;if(o.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ge(sr,ct),ct|=n;else{if(!(n&1073741824))return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ge(sr,ct),ct|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=u!==null?u.baseLanes:n,ge(sr,ct),ct|=o}else u!==null?(o=u.baseLanes|n,t.memoizedState=null):o=n,ge(sr,ct),ct|=o;return Xe(e,t,l,n),t.child}function hf(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function hl(e,t,n,o,l){var u=et(n)?xn:Be.current;return u=Zn(t,u),nr(t,l),n=rl(e,t,n,o,u,l),o=il(),e!==null&&!tt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Ut(e,t,l)):(Se&&o&&Bs(t),t.flags|=1,Xe(e,t,n,l),t.child)}function pf(e,t,n,o,l){if(et(n)){var u=!0;Hi(t)}else u=!1;if(nr(t,l),t.stateNode===null)ao(e,t),tf(t,n,o),cl(t,n,o,l),o=!0;else if(e===null){var d=t.stateNode,y=t.memoizedProps;d.props=y;var w=d.context,E=n.contextType;typeof E=="object"&&E!==null?E=pt(E):(E=et(n)?xn:Be.current,E=Zn(t,E));var L=n.getDerivedStateFromProps,_=typeof L=="function"||typeof d.getSnapshotBeforeUpdate=="function";_||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(y!==o||w!==E)&&nf(t,d,o,E),sn=!1;var A=t.memoizedState;d.state=A,bi(t,o,d,l),w=t.memoizedState,y!==o||A!==w||be.current||sn?(typeof L=="function"&&(ul(t,n,L,o),w=t.memoizedState),(y=sn||ef(t,n,y,o,A,w,E))?(_||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=w),d.props=o,d.state=w,d.context=E,o=y):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{d=t.stateNode,Mc(e,t),y=t.memoizedProps,E=t.type===t.elementType?y:kt(t.type,y),d.props=E,_=t.pendingProps,A=d.context,w=n.contextType,typeof w=="object"&&w!==null?w=pt(w):(w=et(n)?xn:Be.current,w=Zn(t,w));var I=n.getDerivedStateFromProps;(L=typeof I=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(y!==_||A!==w)&&nf(t,d,o,w),sn=!1,A=t.memoizedState,d.state=A,bi(t,o,d,l);var W=t.memoizedState;y!==_||A!==W||be.current||sn?(typeof I=="function"&&(ul(t,n,I,o),W=t.memoizedState),(E=sn||ef(t,n,E,o,A,W,w)||!1)?(L||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(o,W,w),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(o,W,w)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||y===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=W),d.props=o,d.state=W,d.context=w,o=E):(typeof d.componentDidUpdate!="function"||y===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),o=!1)}return pl(e,t,n,o,u,l)}function pl(e,t,n,o,l,u){hf(e,t);var d=(t.flags&128)!==0;if(!o&&!d)return l&&vc(t,n,!1),Ut(e,t,u);o=t.stateNode,yg.current=t;var y=d&&typeof n.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&d?(t.child=er(t,e.child,null,u),t.child=er(t,null,y,u)):Xe(e,t,y,u),t.memoizedState=o.state,l&&vc(t,n,!0),t.child}function mf(e){var t=e.stateNode;t.pendingContext?gc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&gc(e,t.context,!1),qs(e,t.containerInfo)}function gf(e,t,n,o,l){return bn(),Hs(l),t.flags|=256,Xe(e,t,n,o),t.child}var ml={dehydrated:null,treeContext:null,retryLane:0};function gl(e){return{baseLanes:e,cachePool:null,transitions:null}}function yf(e,t,n){var o=t.pendingProps,l=Pe.current,u=!1,d=(t.flags&128)!==0,y;if((y=d)||(y=e!==null&&e.memoizedState===null?!1:(l&2)!==0),y?(u=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),ge(Pe,l&1),e===null)return $s(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):(d=o.children,e=o.fallback,u?(o=t.mode,u=t.child,d={mode:"hidden",children:d},!(o&1)&&u!==null?(u.childLanes=0,u.pendingProps=d):u=xo(d,o,0,null),e=Ln(e,o,n,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=gl(n),t.memoizedState=ml,e):yl(t,d));if(l=e.memoizedState,l!==null&&(y=l.dehydrated,y!==null))return vg(e,t,d,o,y,l,n);if(u){u=o.fallback,d=t.mode,l=e.child,y=l.sibling;var w={mode:"hidden",children:o.children};return!(d&1)&&t.child!==l?(o=t.child,o.childLanes=0,o.pendingProps=w,t.deletions=null):(o=hn(l,w),o.subtreeFlags=l.subtreeFlags&14680064),y!==null?u=hn(y,u):(u=Ln(u,d,n,null),u.flags|=2),u.return=t,o.return=t,o.sibling=u,t.child=o,o=u,u=t.child,d=e.child.memoizedState,d=d===null?gl(n):{baseLanes:d.baseLanes|n,cachePool:null,transitions:d.transitions},u.memoizedState=d,u.childLanes=e.childLanes&~n,t.memoizedState=ml,o}return u=e.child,e=u.sibling,o=hn(u,{mode:"visible",children:o.children}),!(t.mode&1)&&(o.lanes=n),o.return=t,o.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function yl(e,t){return t=xo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function lo(e,t,n,o){return o!==null&&Hs(o),er(t,e.child,null,n),e=yl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function vg(e,t,n,o,l,u,d){if(n)return t.flags&256?(t.flags&=-257,o=fl(Error(s(422))),lo(e,t,d,o)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(u=o.fallback,l=t.mode,o=xo({mode:"visible",children:o.children},l,0,null),u=Ln(u,l,d,null),u.flags|=2,o.return=t,u.return=t,o.sibling=u,t.child=o,t.mode&1&&er(t,e.child,null,d),t.child.memoizedState=gl(d),t.memoizedState=ml,u);if(!(t.mode&1))return lo(e,t,d,null);if(l.data==="$!"){if(o=l.nextSibling&&l.nextSibling.dataset,o)var y=o.dgst;return o=y,u=Error(s(419)),o=fl(u,o,void 0),lo(e,t,d,o)}if(y=(d&e.childLanes)!==0,tt||y){if(o=Fe,o!==null){switch(d&-d){case 4:l=2;break;case 16:l=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:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(o.suspendedLanes|d)?0:l,l!==0&&l!==u.retryLane&&(u.retryLane=l,zt(e,l),Rt(o,e,l,-1))}return _l(),o=fl(Error(s(421))),lo(e,t,d,o)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=Lg.bind(null,e),l._reactRetry=t,null):(e=u.treeContext,ut=tn(l.nextSibling),at=t,Se=!0,Tt=null,e!==null&&(dt[ht++]=Ot,dt[ht++]=It,dt[ht++]=Pn,Ot=e.id,It=e.overflow,Pn=t),t=yl(t,o.children),t.flags|=4096,t)}function vf(e,t,n){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),Ys(e.return,t,n)}function vl(e,t,n,o,l){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:n,tailMode:l}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=o,u.tail=n,u.tailMode=l)}function wf(e,t,n){var o=t.pendingProps,l=o.revealOrder,u=o.tail;if(Xe(e,t,o.children,n),o=Pe.current,o&2)o=o&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&&vf(e,n,t);else if(e.tag===19)vf(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}o&=1}if(ge(Pe,o),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&eo(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),vl(t,!1,l,n,u);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&eo(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}vl(t,!0,n,null,u);break;case"together":vl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ao(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ut(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Rn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=hn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=hn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function wg(e,t,n){switch(t.tag){case 3:mf(t),bn();break;case 5:Vc(t);break;case 1:et(t.type)&&Hi(t);break;case 4:qs(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,l=t.memoizedProps.value;ge(Zi,o._currentValue),o._currentValue=l;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?(ge(Pe,Pe.current&1),t.flags|=128,null):n&t.child.childLanes?yf(e,t,n):(ge(Pe,Pe.current&1),e=Ut(e,t,n),e!==null?e.sibling:null);ge(Pe,Pe.current&1);break;case 19:if(o=(n&t.childLanes)!==0,e.flags&128){if(o)return wf(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),ge(Pe,Pe.current),o)break;return null;case 22:case 23:return t.lanes=0,df(e,t,n)}return Ut(e,t,n)}var Sf,wl,xf,Pf;Sf=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}},wl=function(){},xf=function(e,t,n,o){var l=e.memoizedProps;if(l!==o){e=t.stateNode,Cn(Dt.current);var u=null;switch(n){case"input":l=Yo(e,l),o=Yo(e,o),u=[];break;case"select":l=z({},l,{value:void 0}),o=z({},o,{value:void 0}),u=[];break;case"textarea":l=qo(e,l),o=qo(e,o),u=[];break;default:typeof l.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=Ui)}bo(n,o);var d;n=null;for(E in l)if(!o.hasOwnProperty(E)&&l.hasOwnProperty(E)&&l[E]!=null)if(E==="style"){var y=l[E];for(d in y)y.hasOwnProperty(d)&&(n||(n={}),n[d]="")}else E!=="dangerouslySetInnerHTML"&&E!=="children"&&E!=="suppressContentEditableWarning"&&E!=="suppressHydrationWarning"&&E!=="autoFocus"&&(c.hasOwnProperty(E)?u||(u=[]):(u=u||[]).push(E,null));for(E in o){var w=o[E];if(y=l?.[E],o.hasOwnProperty(E)&&w!==y&&(w!=null||y!=null))if(E==="style")if(y){for(d in y)!y.hasOwnProperty(d)||w&&w.hasOwnProperty(d)||(n||(n={}),n[d]="");for(d in w)w.hasOwnProperty(d)&&y[d]!==w[d]&&(n||(n={}),n[d]=w[d])}else n||(u||(u=[]),u.push(E,n)),n=w;else E==="dangerouslySetInnerHTML"?(w=w?w.__html:void 0,y=y?y.__html:void 0,w!=null&&y!==w&&(u=u||[]).push(E,w)):E==="children"?typeof w!="string"&&typeof w!="number"||(u=u||[]).push(E,""+w):E!=="suppressContentEditableWarning"&&E!=="suppressHydrationWarning"&&(c.hasOwnProperty(E)?(w!=null&&E==="onScroll"&&ye("scroll",e),u||y===w||(u=[])):(u=u||[]).push(E,w))}n&&(u=u||[]).push("style",n);var E=u;(t.updateQueue=E)&&(t.flags|=4)}},Pf=function(e,t,n,o){n!==o&&(t.flags|=4)};function qr(e,t){if(!Se)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 o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function We(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,o=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,o|=l.subtreeFlags&14680064,o|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,o|=l.subtreeFlags,o|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=o,e.childLanes=n,t}function Sg(e,t,n){var o=t.pendingProps;switch(Us(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(t),null;case 1:return et(t.type)&&$i(),We(t),null;case 3:return o=t.stateNode,rr(),ve(be),ve(Be),el(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(Yi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Tt!==null&&(Dl(Tt),Tt=null))),wl(e,t),We(t),null;case 5:Js(t);var l=Cn(Gr.current);if(n=t.type,e!==null&&t.stateNode!=null)xf(e,t,n,o,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(t.stateNode===null)throw Error(s(166));return We(t),null}if(e=Cn(Dt.current),Yi(t)){o=t.stateNode,n=t.type;var u=t.memoizedProps;switch(o[Mt]=t,o[Ur]=u,e=(t.mode&1)!==0,n){case"dialog":ye("cancel",o),ye("close",o);break;case"iframe":case"object":case"embed":ye("load",o);break;case"video":case"audio":for(l=0;l<Ir.length;l++)ye(Ir[l],o);break;case"source":ye("error",o);break;case"img":case"image":case"link":ye("error",o),ye("load",o);break;case"details":ye("toggle",o);break;case"input":tu(o,u),ye("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!u.multiple},ye("invalid",o);break;case"textarea":iu(o,u),ye("invalid",o)}bo(n,u),l=null;for(var d in u)if(u.hasOwnProperty(d)){var y=u[d];d==="children"?typeof y=="string"?o.textContent!==y&&(u.suppressHydrationWarning!==!0&&Bi(o.textContent,y,e),l=["children",y]):typeof y=="number"&&o.textContent!==""+y&&(u.suppressHydrationWarning!==!0&&Bi(o.textContent,y,e),l=["children",""+y]):c.hasOwnProperty(d)&&y!=null&&d==="onScroll"&&ye("scroll",o)}switch(n){case"input":yi(o),ru(o,u,!0);break;case"textarea":yi(o),su(o);break;case"select":case"option":break;default:typeof u.onClick=="function"&&(o.onclick=Ui)}o=l,t.updateQueue=o,o!==null&&(t.flags|=4)}else{d=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=lu(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=d.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=d.createElement(n,{is:o.is}):(e=d.createElement(n),n==="select"&&(d=e,o.multiple?d.multiple=!0:o.size&&(d.size=o.size))):e=d.createElementNS(e,n),e[Mt]=t,e[Ur]=o,Sf(e,t,!1,!1),t.stateNode=e;e:{switch(d=es(n,o),n){case"dialog":ye("cancel",e),ye("close",e),l=o;break;case"iframe":case"object":case"embed":ye("load",e),l=o;break;case"video":case"audio":for(l=0;l<Ir.length;l++)ye(Ir[l],e);l=o;break;case"source":ye("error",e),l=o;break;case"img":case"image":case"link":ye("error",e),ye("load",e),l=o;break;case"details":ye("toggle",e),l=o;break;case"input":tu(e,o),l=Yo(e,o),ye("invalid",e);break;case"option":l=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},l=z({},o,{value:void 0}),ye("invalid",e);break;case"textarea":iu(e,o),l=qo(e,o),ye("invalid",e);break;default:l=o}bo(n,l),y=l;for(u in y)if(y.hasOwnProperty(u)){var w=y[u];u==="style"?cu(e,w):u==="dangerouslySetInnerHTML"?(w=w?w.__html:void 0,w!=null&&au(e,w)):u==="children"?typeof w=="string"?(n!=="textarea"||w!=="")&&wr(e,w):typeof w=="number"&&wr(e,""+w):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(c.hasOwnProperty(u)?w!=null&&u==="onScroll"&&ye("scroll",e):w!=null&&$(e,u,w,d))}switch(n){case"input":yi(e),ru(e,o,!1);break;case"textarea":yi(e),su(e);break;case"option":o.value!=null&&e.setAttribute("value",""+de(o.value));break;case"select":e.multiple=!!o.multiple,u=o.value,u!=null?In(e,!!o.multiple,u,!1):o.defaultValue!=null&&In(e,!!o.multiple,o.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=Ui)}switch(n){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return We(t),null;case 6:if(e&&t.stateNode!=null)Pf(e,t,e.memoizedProps,o);else{if(typeof o!="string"&&t.stateNode===null)throw Error(s(166));if(n=Cn(Gr.current),Cn(Dt.current),Yi(t)){if(o=t.stateNode,n=t.memoizedProps,o[Mt]=t,(u=o.nodeValue!==n)&&(e=at,e!==null))switch(e.tag){case 3:Bi(o.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Bi(o.nodeValue,n,(e.mode&1)!==0)}u&&(t.flags|=4)}else o=(n.nodeType===9?n:n.ownerDocument).createTextNode(o),o[Mt]=t,t.stateNode=o}return We(t),null;case 13:if(ve(Pe),o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Se&&ut!==null&&t.mode&1&&!(t.flags&128))kc(),bn(),t.flags|=98560,u=!1;else if(u=Yi(t),o!==null&&o.dehydrated!==null){if(e===null){if(!u)throw Error(s(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(s(317));u[Mt]=t}else bn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;We(t),u=!1}else Tt!==null&&(Dl(Tt),Tt=null),u=!0;if(!u)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(o=o!==null,o!==(e!==null&&e.memoizedState!==null)&&o&&(t.child.flags|=8192,t.mode&1&&(e===null||Pe.current&1?_e===0&&(_e=3):_l())),t.updateQueue!==null&&(t.flags|=4),We(t),null);case 4:return rr(),wl(e,t),e===null&&zr(t.stateNode.containerInfo),We(t),null;case 10:return Qs(t.type._context),We(t),null;case 17:return et(t.type)&&$i(),We(t),null;case 19:if(ve(Pe),u=t.memoizedState,u===null)return We(t),null;if(o=(t.flags&128)!==0,d=u.rendering,d===null)if(o)qr(u,!1);else{if(_e!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(d=eo(e),d!==null){for(t.flags|=128,qr(u,!1),o=d.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=n,n=t.child;n!==null;)u=n,e=o,u.flags&=14680066,d=u.alternate,d===null?(u.childLanes=0,u.lanes=e,u.child=null,u.subtreeFlags=0,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=d.childLanes,u.lanes=d.lanes,u.child=d.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=d.memoizedProps,u.memoizedState=d.memoizedState,u.updateQueue=d.updateQueue,u.type=d.type,e=d.dependencies,u.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ge(Pe,Pe.current&1|2),t.child}e=e.sibling}u.tail!==null&&Ae()>lr&&(t.flags|=128,o=!0,qr(u,!1),t.lanes=4194304)}else{if(!o)if(e=eo(d),e!==null){if(t.flags|=128,o=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),qr(u,!0),u.tail===null&&u.tailMode==="hidden"&&!d.alternate&&!Se)return We(t),null}else 2*Ae()-u.renderingStartTime>lr&&n!==1073741824&&(t.flags|=128,o=!0,qr(u,!1),t.lanes=4194304);u.isBackwards?(d.sibling=t.child,t.child=d):(n=u.last,n!==null?n.sibling=d:t.child=d,u.last=d)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Ae(),t.sibling=null,n=Pe.current,ge(Pe,o?n&1|2:n&1),t):(We(t),null);case 22:case 23:return Vl(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&t.mode&1?ct&1073741824&&(We(t),t.subtreeFlags&6&&(t.flags|=8192)):We(t),null;case 24:return null;case 25:return null}throw Error(s(156,t.tag))}function xg(e,t){switch(Us(t),t.tag){case 1:return et(t.type)&&$i(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return rr(),ve(be),ve(Be),el(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Js(t),null;case 13:if(ve(Pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));bn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ve(Pe),null;case 4:return rr(),null;case 10:return Qs(t.type._context),null;case 22:case 23:return Vl(),null;case 24:return null;default:return null}}var uo=!1,$e=!1,Pg=typeof WeakSet=="function"?WeakSet:Set,U=null;function or(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(o){Ee(e,t,o)}else n.current=null}function Sl(e,t,n){try{n()}catch(o){Ee(e,t,o)}}var Tf=!1;function Tg(e,t){if(Vs=Mi,e=ec(),ks(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var o=n.getSelection&&n.getSelection();if(o&&o.rangeCount!==0){n=o.anchorNode;var l=o.anchorOffset,u=o.focusNode;o=o.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var d=0,y=-1,w=-1,E=0,L=0,_=e,A=null;t:for(;;){for(var I;_!==n||l!==0&&_.nodeType!==3||(y=d+l),_!==u||o!==0&&_.nodeType!==3||(w=d+o),_.nodeType===3&&(d+=_.nodeValue.length),(I=_.firstChild)!==null;)A=_,_=I;for(;;){if(_===e)break t;if(A===n&&++E===l&&(y=d),A===u&&++L===o&&(w=d),(I=_.nextSibling)!==null)break;_=A,A=_.parentNode}_=I}n=y===-1||w===-1?null:{start:y,end:w}}else n=null}n=n||{start:0,end:0}}else n=null;for(_s={focusedElem:e,selectionRange:n},Mi=!1,U=t;U!==null;)if(t=U,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,U=e;else for(;U!==null;){t=U;try{var W=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(W!==null){var H=W.memoizedProps,Me=W.memoizedState,k=t.stateNode,x=k.getSnapshotBeforeUpdate(t.elementType===t.type?H:kt(t.type,H),Me);k.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch(F){Ee(t,t.return,F)}if(e=t.sibling,e!==null){e.return=t.return,U=e;break}U=t.return}return W=Tf,Tf=!1,W}function Jr(e,t,n){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var l=o=o.next;do{if((l.tag&e)===e){var u=l.destroy;l.destroy=void 0,u!==void 0&&Sl(t,n,u)}l=l.next}while(l!==o)}}function co(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 o=n.create;n.destroy=o()}n=n.next}while(n!==t)}}function xl(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 kf(e){var t=e.alternate;t!==null&&(e.alternate=null,kf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Mt],delete t[Ur],delete t[Os],delete t[og],delete t[sg])),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 Cf(e){return e.tag===5||e.tag===3||e.tag===4}function Ef(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Cf(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 Pl(e,t,n){var o=e.tag;if(o===5||o===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=Ui));else if(o!==4&&(e=e.child,e!==null))for(Pl(e,t,n),e=e.sibling;e!==null;)Pl(e,t,n),e=e.sibling}function Tl(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(Tl(e,t,n),e=e.sibling;e!==null;)Tl(e,t,n),e=e.sibling}var Oe=null,Ct=!1;function an(e,t,n){for(n=n.child;n!==null;)Rf(e,t,n),n=n.sibling}function Rf(e,t,n){if(At&&typeof At.onCommitFiberUnmount=="function")try{At.onCommitFiberUnmount(Ti,n)}catch{}switch(n.tag){case 5:$e||or(n,t);case 6:var o=Oe,l=Ct;Oe=null,an(e,t,n),Oe=o,Ct=l,Oe!==null&&(Ct?(e=Oe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Oe.removeChild(n.stateNode));break;case 18:Oe!==null&&(Ct?(e=Oe,n=n.stateNode,e.nodeType===8?js(e.parentNode,n):e.nodeType===1&&js(e,n),Dr(e)):js(Oe,n.stateNode));break;case 4:o=Oe,l=Ct,Oe=n.stateNode.containerInfo,Ct=!0,an(e,t,n),Oe=o,Ct=l;break;case 0:case 11:case 14:case 15:if(!$e&&(o=n.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){l=o=o.next;do{var u=l,d=u.destroy;u=u.tag,d!==void 0&&(u&2||u&4)&&Sl(n,t,d),l=l.next}while(l!==o)}an(e,t,n);break;case 1:if(!$e&&(or(n,t),o=n.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=n.memoizedProps,o.state=n.memoizedState,o.componentWillUnmount()}catch(y){Ee(n,t,y)}an(e,t,n);break;case 21:an(e,t,n);break;case 22:n.mode&1?($e=(o=$e)||n.memoizedState!==null,an(e,t,n),$e=o):an(e,t,n);break;default:an(e,t,n)}}function Af(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Pg),t.forEach(function(o){var l=Vg.bind(null,e,o);n.has(o)||(n.add(o),o.then(l,l))})}}function Et(e,t){var n=t.deletions;if(n!==null)for(var o=0;o<n.length;o++){var l=n[o];try{var u=e,d=t,y=d;e:for(;y!==null;){switch(y.tag){case 5:Oe=y.stateNode,Ct=!1;break e;case 3:Oe=y.stateNode.containerInfo,Ct=!0;break e;case 4:Oe=y.stateNode.containerInfo,Ct=!0;break e}y=y.return}if(Oe===null)throw Error(s(160));Rf(u,d,l),Oe=null,Ct=!1;var w=l.alternate;w!==null&&(w.return=null),l.return=null}catch(E){Ee(l,t,E)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Mf(t,e),t=t.sibling}function Mf(e,t){var n=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Et(t,e),Vt(e),o&4){try{Jr(3,e,e.return),co(3,e)}catch(H){Ee(e,e.return,H)}try{Jr(5,e,e.return)}catch(H){Ee(e,e.return,H)}}break;case 1:Et(t,e),Vt(e),o&512&&n!==null&&or(n,n.return);break;case 5:if(Et(t,e),Vt(e),o&512&&n!==null&&or(n,n.return),e.flags&32){var l=e.stateNode;try{wr(l,"")}catch(H){Ee(e,e.return,H)}}if(o&4&&(l=e.stateNode,l!=null)){var u=e.memoizedProps,d=n!==null?n.memoizedProps:u,y=e.type,w=e.updateQueue;if(e.updateQueue=null,w!==null)try{y==="input"&&u.type==="radio"&&u.name!=null&&nu(l,u),es(y,d);var E=es(y,u);for(d=0;d<w.length;d+=2){var L=w[d],_=w[d+1];L==="style"?cu(l,_):L==="dangerouslySetInnerHTML"?au(l,_):L==="children"?wr(l,_):$(l,L,_,E)}switch(y){case"input":Xo(l,u);break;case"textarea":ou(l,u);break;case"select":var A=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!u.multiple;var I=u.value;I!=null?In(l,!!u.multiple,I,!1):A!==!!u.multiple&&(u.defaultValue!=null?In(l,!!u.multiple,u.defaultValue,!0):In(l,!!u.multiple,u.multiple?[]:"",!1))}l[Ur]=u}catch(H){Ee(e,e.return,H)}}break;case 6:if(Et(t,e),Vt(e),o&4){if(e.stateNode===null)throw Error(s(162));l=e.stateNode,u=e.memoizedProps;try{l.nodeValue=u}catch(H){Ee(e,e.return,H)}}break;case 3:if(Et(t,e),Vt(e),o&4&&n!==null&&n.memoizedState.isDehydrated)try{Dr(t.containerInfo)}catch(H){Ee(e,e.return,H)}break;case 4:Et(t,e),Vt(e);break;case 13:Et(t,e),Vt(e),l=e.child,l.flags&8192&&(u=l.memoizedState!==null,l.stateNode.isHidden=u,!u||l.alternate!==null&&l.alternate.memoizedState!==null||(El=Ae())),o&4&&Af(e);break;case 22:if(L=n!==null&&n.memoizedState!==null,e.mode&1?($e=(E=$e)||L,Et(t,e),$e=E):Et(t,e),Vt(e),o&8192){if(E=e.memoizedState!==null,(e.stateNode.isHidden=E)&&!L&&e.mode&1)for(U=e,L=e.child;L!==null;){for(_=U=L;U!==null;){switch(A=U,I=A.child,A.tag){case 0:case 11:case 14:case 15:Jr(4,A,A.return);break;case 1:or(A,A.return);var W=A.stateNode;if(typeof W.componentWillUnmount=="function"){o=A,n=A.return;try{t=o,W.props=t.memoizedProps,W.state=t.memoizedState,W.componentWillUnmount()}catch(H){Ee(o,n,H)}}break;case 5:or(A,A.return);break;case 22:if(A.memoizedState!==null){Vf(_);continue}}I!==null?(I.return=A,U=I):Vf(_)}L=L.sibling}e:for(L=null,_=e;;){if(_.tag===5){if(L===null){L=_;try{l=_.stateNode,E?(u=l.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none"):(y=_.stateNode,w=_.memoizedProps.style,d=w!=null&&w.hasOwnProperty("display")?w.display:null,y.style.display=uu("display",d))}catch(H){Ee(e,e.return,H)}}}else if(_.tag===6){if(L===null)try{_.stateNode.nodeValue=E?"":_.memoizedProps}catch(H){Ee(e,e.return,H)}}else if((_.tag!==22&&_.tag!==23||_.memoizedState===null||_===e)&&_.child!==null){_.child.return=_,_=_.child;continue}if(_===e)break e;for(;_.sibling===null;){if(_.return===null||_.return===e)break e;L===_&&(L=null),_=_.return}L===_&&(L=null),_.sibling.return=_.return,_=_.sibling}}break;case 19:Et(t,e),Vt(e),o&4&&Af(e);break;case 21:break;default:Et(t,e),Vt(e)}}function Vt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Cf(n)){var o=n;break e}n=n.return}throw Error(s(160))}switch(o.tag){case 5:var l=o.stateNode;o.flags&32&&(wr(l,""),o.flags&=-33);var u=Ef(e);Tl(e,u,l);break;case 3:case 4:var d=o.stateNode.containerInfo,y=Ef(e);Pl(e,y,d);break;default:throw Error(s(161))}}catch(w){Ee(e,e.return,w)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function kg(e,t,n){U=e,Df(e)}function Df(e,t,n){for(var o=(e.mode&1)!==0;U!==null;){var l=U,u=l.child;if(l.tag===22&&o){var d=l.memoizedState!==null||uo;if(!d){var y=l.alternate,w=y!==null&&y.memoizedState!==null||$e;y=uo;var E=$e;if(uo=d,($e=w)&&!E)for(U=l;U!==null;)d=U,w=d.child,d.tag===22&&d.memoizedState!==null?_f(l):w!==null?(w.return=d,U=w):_f(l);for(;u!==null;)U=u,Df(u),u=u.sibling;U=l,uo=y,$e=E}Lf(e)}else l.subtreeFlags&8772&&u!==null?(u.return=l,U=u):Lf(e)}}function Lf(e){for(;U!==null;){var t=U;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:$e||co(5,t);break;case 1:var o=t.stateNode;if(t.flags&4&&!$e)if(n===null)o.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:kt(t.type,n.memoizedProps);o.componentDidUpdate(l,n.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var u=t.updateQueue;u!==null&&Lc(t,u,o);break;case 3:var d=t.updateQueue;if(d!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Lc(t,d,n)}break;case 5:var y=t.stateNode;if(n===null&&t.flags&4){n=y;var w=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":w.autoFocus&&n.focus();break;case"img":w.src&&(n.src=w.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var E=t.alternate;if(E!==null){var L=E.memoizedState;if(L!==null){var _=L.dehydrated;_!==null&&Dr(_)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(s(163))}$e||t.flags&512&&xl(t)}catch(A){Ee(t,t.return,A)}}if(t===e){U=null;break}if(n=t.sibling,n!==null){n.return=t.return,U=n;break}U=t.return}}function Vf(e){for(;U!==null;){var t=U;if(t===e){U=null;break}var n=t.sibling;if(n!==null){n.return=t.return,U=n;break}U=t.return}}function _f(e){for(;U!==null;){var t=U;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{co(4,t)}catch(w){Ee(t,n,w)}break;case 1:var o=t.stateNode;if(typeof o.componentDidMount=="function"){var l=t.return;try{o.componentDidMount()}catch(w){Ee(t,l,w)}}var u=t.return;try{xl(t)}catch(w){Ee(t,u,w)}break;case 5:var d=t.return;try{xl(t)}catch(w){Ee(t,d,w)}}}catch(w){Ee(t,t.return,w)}if(t===e){U=null;break}var y=t.sibling;if(y!==null){y.return=t.return,U=y;break}U=t.return}}var Cg=Math.ceil,fo=ee.ReactCurrentDispatcher,kl=ee.ReactCurrentOwner,gt=ee.ReactCurrentBatchConfig,le=0,Fe=null,Le=null,Ie=0,ct=0,sr=nn(0),_e=0,br=null,Rn=0,ho=0,Cl=0,ei=null,nt=null,El=0,lr=1/0,Wt=null,po=!1,Rl=null,un=null,mo=!1,cn=null,go=0,ti=0,Al=null,yo=-1,vo=0;function Ze(){return le&6?Ae():yo!==-1?yo:yo=Ae()}function fn(e){return e.mode&1?le&2&&Ie!==0?Ie&-Ie:ag.transition!==null?(vo===0&&(vo=Cu()),vo):(e=he,e!==0||(e=window.event,e=e===void 0?16:Nu(e.type)),e):1}function Rt(e,t,n,o){if(50<ti)throw ti=0,Al=null,Error(s(185));Cr(e,n,o),(!(le&2)||e!==Fe)&&(e===Fe&&(!(le&2)&&(ho|=n),_e===4&&dn(e,Ie)),rt(e,o),n===1&&le===0&&!(t.mode&1)&&(lr=Ae()+500,Ki&&on()))}function rt(e,t){var n=e.callbackNode;am(e,t);var o=Ei(e,e===Fe?Ie:0);if(o===0)n!==null&&Pu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=o&-o,e.callbackPriority!==t){if(n!=null&&Pu(n),t===1)e.tag===0?lg(Ff.bind(null,e)):wc(Ff.bind(null,e)),rg(function(){!(le&6)&&on()}),n=null;else{switch(Eu(o)){case 1:n=ls;break;case 4:n=Tu;break;case 16:n=Pi;break;case 536870912:n=ku;break;default:n=Pi}n=$f(n,Nf.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Nf(e,t){if(yo=-1,vo=0,le&6)throw Error(s(327));var n=e.callbackNode;if(ar()&&e.callbackNode!==n)return null;var o=Ei(e,e===Fe?Ie:0);if(o===0)return null;if(o&30||o&e.expiredLanes||t)t=wo(e,o);else{t=o;var l=le;le|=2;var u=Of();(Fe!==e||Ie!==t)&&(Wt=null,lr=Ae()+500,Mn(e,t));do try{Ag();break}catch(y){jf(e,y)}while(!0);Gs(),fo.current=u,le=l,Le!==null?t=0:(Fe=null,Ie=0,t=_e)}if(t!==0){if(t===2&&(l=as(e),l!==0&&(o=l,t=Ml(e,l))),t===1)throw n=br,Mn(e,0),dn(e,o),rt(e,Ae()),n;if(t===6)dn(e,o);else{if(l=e.current.alternate,!(o&30)&&!Eg(l)&&(t=wo(e,o),t===2&&(u=as(e),u!==0&&(o=u,t=Ml(e,u))),t===1))throw n=br,Mn(e,0),dn(e,o),rt(e,Ae()),n;switch(e.finishedWork=l,e.finishedLanes=o,t){case 0:case 1:throw Error(s(345));case 2:Dn(e,nt,Wt);break;case 3:if(dn(e,o),(o&130023424)===o&&(t=El+500-Ae(),10<t)){if(Ei(e,0)!==0)break;if(l=e.suspendedLanes,(l&o)!==o){Ze(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Fs(Dn.bind(null,e,nt,Wt),t);break}Dn(e,nt,Wt);break;case 4:if(dn(e,o),(o&4194240)===o)break;for(t=e.eventTimes,l=-1;0<o;){var d=31-xt(o);u=1<<d,d=t[d],d>l&&(l=d),o&=~u}if(o=l,o=Ae()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Cg(o/1960))-o,10<o){e.timeoutHandle=Fs(Dn.bind(null,e,nt,Wt),o);break}Dn(e,nt,Wt);break;case 5:Dn(e,nt,Wt);break;default:throw Error(s(329))}}}return rt(e,Ae()),e.callbackNode===n?Nf.bind(null,e):null}function Ml(e,t){var n=ei;return e.current.memoizedState.isDehydrated&&(Mn(e,t).flags|=256),e=wo(e,t),e!==2&&(t=nt,nt=n,t!==null&&Dl(t)),e}function Dl(e){nt===null?nt=e:nt.push.apply(nt,e)}function Eg(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var o=0;o<n.length;o++){var l=n[o],u=l.getSnapshot;l=l.value;try{if(!Pt(u(),l))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 dn(e,t){for(t&=~Cl,t&=~ho,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-xt(t),o=1<<n;e[n]=-1,t&=~o}}function Ff(e){if(le&6)throw Error(s(327));ar();var t=Ei(e,0);if(!(t&1))return rt(e,Ae()),null;var n=wo(e,t);if(e.tag!==0&&n===2){var o=as(e);o!==0&&(t=o,n=Ml(e,o))}if(n===1)throw n=br,Mn(e,0),dn(e,t),rt(e,Ae()),n;if(n===6)throw Error(s(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Dn(e,nt,Wt),rt(e,Ae()),null}function Ll(e,t){var n=le;le|=1;try{return e(t)}finally{le=n,le===0&&(lr=Ae()+500,Ki&&on())}}function An(e){cn!==null&&cn.tag===0&&!(le&6)&&ar();var t=le;le|=1;var n=gt.transition,o=he;try{if(gt.transition=null,he=1,e)return e()}finally{he=o,gt.transition=n,le=t,!(le&6)&&on()}}function Vl(){ct=sr.current,ve(sr)}function Mn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,ng(n)),Le!==null)for(n=Le.return;n!==null;){var o=n;switch(Us(o),o.tag){case 1:o=o.type.childContextTypes,o!=null&&$i();break;case 3:rr(),ve(be),ve(Be),el();break;case 5:Js(o);break;case 4:rr();break;case 13:ve(Pe);break;case 19:ve(Pe);break;case 10:Qs(o.type._context);break;case 22:case 23:Vl()}n=n.return}if(Fe=e,Le=e=hn(e.current,null),Ie=ct=t,_e=0,br=null,Cl=ho=Rn=0,nt=ei=null,kn!==null){for(t=0;t<kn.length;t++)if(n=kn[t],o=n.interleaved,o!==null){n.interleaved=null;var l=o.next,u=n.pending;if(u!==null){var d=u.next;u.next=l,o.next=d}n.pending=o}kn=null}return e}function jf(e,t){do{var n=Le;try{if(Gs(),to.current=oo,no){for(var o=Te.memoizedState;o!==null;){var l=o.queue;l!==null&&(l.pending=null),o=o.next}no=!1}if(En=0,Ne=Ve=Te=null,Qr=!1,Yr=0,kl.current=null,n===null||n.return===null){_e=1,br=t,Le=null;break}e:{var u=e,d=n.return,y=n,w=t;if(t=Ie,y.flags|=32768,w!==null&&typeof w=="object"&&typeof w.then=="function"){var E=w,L=y,_=L.tag;if(!(L.mode&1)&&(_===0||_===11||_===15)){var A=L.alternate;A?(L.updateQueue=A.updateQueue,L.memoizedState=A.memoizedState,L.lanes=A.lanes):(L.updateQueue=null,L.memoizedState=null)}var I=lf(d);if(I!==null){I.flags&=-257,af(I,d,y,u,t),I.mode&1&&sf(u,E,t),t=I,w=E;var W=t.updateQueue;if(W===null){var H=new Set;H.add(w),t.updateQueue=H}else W.add(w);break e}else{if(!(t&1)){sf(u,E,t),_l();break e}w=Error(s(426))}}else if(Se&&y.mode&1){var Me=lf(d);if(Me!==null){!(Me.flags&65536)&&(Me.flags|=256),af(Me,d,y,u,t),Hs(ir(w,y));break e}}u=w=ir(w,y),_e!==4&&(_e=2),ei===null?ei=[u]:ei.push(u),u=d;do{switch(u.tag){case 3:u.flags|=65536,t&=-t,u.lanes|=t;var k=rf(u,w,t);Dc(u,k);break e;case 1:y=w;var x=u.type,C=u.stateNode;if(!(u.flags&128)&&(typeof x.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(un===null||!un.has(C)))){u.flags|=65536,t&=-t,u.lanes|=t;var F=of(u,y,t);Dc(u,F);break e}}u=u.return}while(u!==null)}zf(n)}catch(K){t=K,Le===n&&n!==null&&(Le=n=n.return);continue}break}while(!0)}function Of(){var e=fo.current;return fo.current=oo,e===null?oo:e}function _l(){(_e===0||_e===3||_e===2)&&(_e=4),Fe===null||!(Rn&268435455)&&!(ho&268435455)||dn(Fe,Ie)}function wo(e,t){var n=le;le|=2;var o=Of();(Fe!==e||Ie!==t)&&(Wt=null,Mn(e,t));do try{Rg();break}catch(l){jf(e,l)}while(!0);if(Gs(),le=n,fo.current=o,Le!==null)throw Error(s(261));return Fe=null,Ie=0,_e}function Rg(){for(;Le!==null;)If(Le)}function Ag(){for(;Le!==null&&!bp();)If(Le)}function If(e){var t=Wf(e.alternate,e,ct);e.memoizedProps=e.pendingProps,t===null?zf(e):Le=t,kl.current=null}function zf(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=xg(n,t),n!==null){n.flags&=32767,Le=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{_e=6,Le=null;return}}else if(n=Sg(n,t,ct),n!==null){Le=n;return}if(t=t.sibling,t!==null){Le=t;return}Le=t=e}while(t!==null);_e===0&&(_e=5)}function Dn(e,t,n){var o=he,l=gt.transition;try{gt.transition=null,he=1,Mg(e,t,n,o)}finally{gt.transition=l,he=o}return null}function Mg(e,t,n,o){do ar();while(cn!==null);if(le&6)throw Error(s(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(s(177));e.callbackNode=null,e.callbackPriority=0;var u=n.lanes|n.childLanes;if(um(e,u),e===Fe&&(Le=Fe=null,Ie=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||mo||(mo=!0,$f(Pi,function(){return ar(),null})),u=(n.flags&15990)!==0,n.subtreeFlags&15990||u){u=gt.transition,gt.transition=null;var d=he;he=1;var y=le;le|=4,kl.current=null,Tg(e,n),Mf(n,e),Xm(_s),Mi=!!Vs,_s=Vs=null,e.current=n,kg(n),em(),le=y,he=d,gt.transition=u}else e.current=n;if(mo&&(mo=!1,cn=e,go=l),u=e.pendingLanes,u===0&&(un=null),rm(n.stateNode),rt(e,Ae()),t!==null)for(o=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],o(l.value,{componentStack:l.stack,digest:l.digest});if(po)throw po=!1,e=Rl,Rl=null,e;return go&1&&e.tag!==0&&ar(),u=e.pendingLanes,u&1?e===Al?ti++:(ti=0,Al=e):ti=0,on(),null}function ar(){if(cn!==null){var e=Eu(go),t=gt.transition,n=he;try{if(gt.transition=null,he=16>e?16:e,cn===null)var o=!1;else{if(e=cn,cn=null,go=0,le&6)throw Error(s(331));var l=le;for(le|=4,U=e.current;U!==null;){var u=U,d=u.child;if(U.flags&16){var y=u.deletions;if(y!==null){for(var w=0;w<y.length;w++){var E=y[w];for(U=E;U!==null;){var L=U;switch(L.tag){case 0:case 11:case 15:Jr(8,L,u)}var _=L.child;if(_!==null)_.return=L,U=_;else for(;U!==null;){L=U;var A=L.sibling,I=L.return;if(kf(L),L===E){U=null;break}if(A!==null){A.return=I,U=A;break}U=I}}}var W=u.alternate;if(W!==null){var H=W.child;if(H!==null){W.child=null;do{var Me=H.sibling;H.sibling=null,H=Me}while(H!==null)}}U=u}}if(u.subtreeFlags&2064&&d!==null)d.return=u,U=d;else e:for(;U!==null;){if(u=U,u.flags&2048)switch(u.tag){case 0:case 11:case 15:Jr(9,u,u.return)}var k=u.sibling;if(k!==null){k.return=u.return,U=k;break e}U=u.return}}var x=e.current;for(U=x;U!==null;){d=U;var C=d.child;if(d.subtreeFlags&2064&&C!==null)C.return=d,U=C;else e:for(d=x;U!==null;){if(y=U,y.flags&2048)try{switch(y.tag){case 0:case 11:case 15:co(9,y)}}catch(K){Ee(y,y.return,K)}if(y===d){U=null;break e}var F=y.sibling;if(F!==null){F.return=y.return,U=F;break e}U=y.return}}if(le=l,on(),At&&typeof At.onPostCommitFiberRoot=="function")try{At.onPostCommitFiberRoot(Ti,e)}catch{}o=!0}return o}finally{he=n,gt.transition=t}}return!1}function Bf(e,t,n){t=ir(n,t),t=rf(e,t,1),e=ln(e,t,1),t=Ze(),e!==null&&(Cr(e,1,t),rt(e,t))}function Ee(e,t,n){if(e.tag===3)Bf(e,e,n);else for(;t!==null;){if(t.tag===3){Bf(t,e,n);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(un===null||!un.has(o))){e=ir(n,e),e=of(t,e,1),t=ln(t,e,1),e=Ze(),t!==null&&(Cr(t,1,e),rt(t,e));break}}t=t.return}}function Dg(e,t,n){var o=e.pingCache;o!==null&&o.delete(t),t=Ze(),e.pingedLanes|=e.suspendedLanes&n,Fe===e&&(Ie&n)===n&&(_e===4||_e===3&&(Ie&130023424)===Ie&&500>Ae()-El?Mn(e,0):Cl|=n),rt(e,t)}function Uf(e,t){t===0&&(e.mode&1?(t=Ci,Ci<<=1,!(Ci&130023424)&&(Ci=4194304)):t=1);var n=Ze();e=zt(e,t),e!==null&&(Cr(e,t,n),rt(e,n))}function Lg(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Uf(e,n)}function Vg(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(s(314))}o!==null&&o.delete(t),Uf(e,n)}var Wf;Wf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||be.current)tt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return tt=!1,wg(e,t,n);tt=!!(e.flags&131072)}else tt=!1,Se&&t.flags&1048576&&Sc(t,Qi,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;ao(e,t),e=t.pendingProps;var l=Zn(t,Be.current);nr(t,n),l=rl(null,t,o,e,l,n);var u=il();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,et(o)?(u=!0,Hi(t)):u=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Zs(t),l.updater=so,t.stateNode=l,l._reactInternals=t,cl(t,o,e,n),t=pl(null,t,o,!0,u,n)):(t.tag=0,Se&&u&&Bs(t),Xe(null,t,l,n),t=t.child),t;case 16:o=t.elementType;e:{switch(ao(e,t),e=t.pendingProps,l=o._init,o=l(o._payload),t.type=o,l=t.tag=Ng(o),e=kt(o,e),l){case 0:t=hl(null,t,o,e,n);break e;case 1:t=pf(null,t,o,e,n);break e;case 11:t=uf(null,t,o,e,n);break e;case 14:t=cf(null,t,o,kt(o.type,e),n);break e}throw Error(s(306,o,""))}return t;case 0:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:kt(o,l),hl(e,t,o,l,n);case 1:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:kt(o,l),pf(e,t,o,l,n);case 3:e:{if(mf(t),e===null)throw Error(s(387));o=t.pendingProps,u=t.memoizedState,l=u.element,Mc(e,t),bi(t,o,null,n);var d=t.memoizedState;if(o=d.element,u.isDehydrated)if(u={element:o,isDehydrated:!1,cache:d.cache,pendingSuspenseBoundaries:d.pendingSuspenseBoundaries,transitions:d.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){l=ir(Error(s(423)),t),t=gf(e,t,o,n,l);break e}else if(o!==l){l=ir(Error(s(424)),t),t=gf(e,t,o,n,l);break e}else for(ut=tn(t.stateNode.containerInfo.firstChild),at=t,Se=!0,Tt=null,n=Rc(t,null,o,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(bn(),o===l){t=Ut(e,t,n);break e}Xe(e,t,o,n)}t=t.child}return t;case 5:return Vc(t),e===null&&$s(t),o=t.type,l=t.pendingProps,u=e!==null?e.memoizedProps:null,d=l.children,Ns(o,l)?d=null:u!==null&&Ns(o,u)&&(t.flags|=32),hf(e,t),Xe(e,t,d,n),t.child;case 6:return e===null&&$s(t),null;case 13:return yf(e,t,n);case 4:return qs(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=er(t,null,o,n):Xe(e,t,o,n),t.child;case 11:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:kt(o,l),uf(e,t,o,l,n);case 7:return Xe(e,t,t.pendingProps,n),t.child;case 8:return Xe(e,t,t.pendingProps.children,n),t.child;case 12:return Xe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,l=t.pendingProps,u=t.memoizedProps,d=l.value,ge(Zi,o._currentValue),o._currentValue=d,u!==null)if(Pt(u.value,d)){if(u.children===l.children&&!be.current){t=Ut(e,t,n);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var y=u.dependencies;if(y!==null){d=u.child;for(var w=y.firstContext;w!==null;){if(w.context===o){if(u.tag===1){w=Bt(-1,n&-n),w.tag=2;var E=u.updateQueue;if(E!==null){E=E.shared;var L=E.pending;L===null?w.next=w:(w.next=L.next,L.next=w),E.pending=w}}u.lanes|=n,w=u.alternate,w!==null&&(w.lanes|=n),Ys(u.return,n,t),y.lanes|=n;break}w=w.next}}else if(u.tag===10)d=u.type===t.type?null:u.child;else if(u.tag===18){if(d=u.return,d===null)throw Error(s(341));d.lanes|=n,y=d.alternate,y!==null&&(y.lanes|=n),Ys(d,n,t),d=u.sibling}else d=u.child;if(d!==null)d.return=u;else for(d=u;d!==null;){if(d===t){d=null;break}if(u=d.sibling,u!==null){u.return=d.return,d=u;break}d=d.return}u=d}Xe(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,o=t.pendingProps.children,nr(t,n),l=pt(l),o=o(l),t.flags|=1,Xe(e,t,o,n),t.child;case 14:return o=t.type,l=kt(o,t.pendingProps),l=kt(o.type,l),cf(e,t,o,l,n);case 15:return ff(e,t,t.type,t.pendingProps,n);case 17:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:kt(o,l),ao(e,t),t.tag=1,et(o)?(e=!0,Hi(t)):e=!1,nr(t,n),tf(t,o,l),cl(t,o,l,n),pl(null,t,o,!0,e,n);case 19:return wf(e,t,n);case 22:return df(e,t,n)}throw Error(s(156,t.tag))};function $f(e,t){return xu(e,t)}function _g(e,t,n,o){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=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yt(e,t,n,o){return new _g(e,t,n,o)}function Nl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ng(e){if(typeof e=="function")return Nl(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ot)return 11;if(e===St)return 14}return 2}function hn(e,t){var n=e.alternate;return n===null?(n=yt(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 So(e,t,n,o,l,u){var d=2;if(o=e,typeof e=="function")Nl(e)&&(d=1);else if(typeof e=="string")d=5;else e:switch(e){case ae:return Ln(n.children,l,u,t);case Z:d=8,l|=8;break;case xe:return e=yt(12,n,t,l|2),e.elementType=xe,e.lanes=u,e;case Qe:return e=yt(13,n,t,l),e.elementType=Qe,e.lanes=u,e;case Je:return e=yt(19,n,t,l),e.elementType=Je,e.lanes=u,e;case ie:return xo(n,l,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ce:d=10;break e;case qe:d=9;break e;case ot:d=11;break e;case St:d=14;break e;case Ye:d=16,o=null;break e}throw Error(s(130,e==null?e:typeof e,""))}return t=yt(d,n,t,l),t.elementType=e,t.type=o,t.lanes=u,t}function Ln(e,t,n,o){return e=yt(7,e,o,t),e.lanes=n,e}function xo(e,t,n,o){return e=yt(22,e,o,t),e.elementType=ie,e.lanes=n,e.stateNode={isHidden:!1},e}function Fl(e,t,n){return e=yt(6,e,null,t),e.lanes=n,e}function jl(e,t,n){return t=yt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fg(e,t,n,o,l){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=us(0),this.expirationTimes=us(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=us(0),this.identifierPrefix=o,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Ol(e,t,n,o,l,u,d,y,w){return e=new Fg(e,t,n,y,w),t===1?(t=1,u===!0&&(t|=8)):t=0,u=yt(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:o,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Zs(u),e}function jg(e,t,n){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:te,key:o==null?null:""+o,children:e,containerInfo:t,implementation:n}}function Hf(e){if(!e)return rn;e=e._reactInternals;e:{if(wn(e)!==e||e.tag!==1)throw Error(s(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(et(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(s(171))}if(e.tag===1){var n=e.type;if(et(n))return yc(e,n,t)}return t}function Kf(e,t,n,o,l,u,d,y,w){return e=Ol(n,o,!0,e,l,u,d,y,w),e.context=Hf(null),n=e.current,o=Ze(),l=fn(n),u=Bt(o,l),u.callback=t??null,ln(n,u,l),e.current.lanes=l,Cr(e,l,o),rt(e,o),e}function Po(e,t,n,o){var l=t.current,u=Ze(),d=fn(l);return n=Hf(n),t.context===null?t.context=n:t.pendingContext=n,t=Bt(u,d),t.payload={element:e},o=o===void 0?null:o,o!==null&&(t.callback=o),e=ln(l,t,d),e!==null&&(Rt(e,l,d,u),Ji(e,l,d)),d}function To(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 Gf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Il(e,t){Gf(e,t),(e=e.alternate)&&Gf(e,t)}function Og(){return null}var Qf=typeof reportError=="function"?reportError:function(e){console.error(e)};function zl(e){this._internalRoot=e}ko.prototype.render=zl.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));Po(e,t,null,null)},ko.prototype.unmount=zl.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;An(function(){Po(null,e,null,null)}),t[Ft]=null}};function ko(e){this._internalRoot=e}ko.prototype.unstable_scheduleHydration=function(e){if(e){var t=Mu();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Jt.length&&t!==0&&t<Jt[n].priority;n++);Jt.splice(n,0,e),n===0&&Vu(e)}};function Bl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Co(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Yf(){}function Ig(e,t,n,o,l){if(l){if(typeof o=="function"){var u=o;o=function(){var E=To(d);u.call(E)}}var d=Kf(t,o,e,0,null,!1,!1,"",Yf);return e._reactRootContainer=d,e[Ft]=d.current,zr(e.nodeType===8?e.parentNode:e),An(),d}for(;l=e.lastChild;)e.removeChild(l);if(typeof o=="function"){var y=o;o=function(){var E=To(w);y.call(E)}}var w=Ol(e,0,!1,null,null,!1,!1,"",Yf);return e._reactRootContainer=w,e[Ft]=w.current,zr(e.nodeType===8?e.parentNode:e),An(function(){Po(t,w,n,o)}),w}function Eo(e,t,n,o,l){var u=n._reactRootContainer;if(u){var d=u;if(typeof l=="function"){var y=l;l=function(){var w=To(d);y.call(w)}}Po(t,d,e,l)}else d=Ig(n,t,e,l,o);return To(d)}Ru=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=kr(t.pendingLanes);n!==0&&(cs(t,n|1),rt(t,Ae()),!(le&6)&&(lr=Ae()+500,on()))}break;case 13:An(function(){var o=zt(e,1);if(o!==null){var l=Ze();Rt(o,e,1,l)}}),Il(e,1)}},fs=function(e){if(e.tag===13){var t=zt(e,134217728);if(t!==null){var n=Ze();Rt(t,e,134217728,n)}Il(e,134217728)}},Au=function(e){if(e.tag===13){var t=fn(e),n=zt(e,t);if(n!==null){var o=Ze();Rt(n,e,t,o)}Il(e,t)}},Mu=function(){return he},Du=function(e,t){var n=he;try{return he=e,t()}finally{he=n}},rs=function(e,t,n){switch(t){case"input":if(Xo(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 o=n[t];if(o!==e&&o.form===e.form){var l=Wi(o);if(!l)throw Error(s(90));eu(o),Xo(o,l)}}}break;case"textarea":ou(e,n);break;case"select":t=n.value,t!=null&&In(e,!!n.multiple,t,!1)}},pu=Ll,mu=An;var zg={usingClientEntryPoint:!1,Events:[Wr,Yn,Wi,du,hu,Ll]},ni={findFiberByHostInstance:Sn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Bg={bundleType:ni.bundleType,version:ni.version,rendererPackageName:ni.rendererPackageName,rendererConfig:ni.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ee.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=wu(e),e===null?null:e.stateNode},findFiberByHostInstance:ni.findFiberByHostInstance||Og,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 Ro=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ro.isDisabled&&Ro.supportsFiber)try{Ti=Ro.inject(Bg),At=Ro}catch{}}return it.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=zg,it.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Bl(t))throw Error(s(200));return jg(e,t,null,n)},it.createRoot=function(e,t){if(!Bl(e))throw Error(s(299));var n=!1,o="",l=Qf;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Ol(e,1,!1,null,null,n,!1,o,l),e[Ft]=t.current,zr(e.nodeType===8?e.parentNode:e),new zl(t)},it.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=wu(t),e=e===null?null:e.stateNode,e},it.flushSync=function(e){return An(e)},it.hydrate=function(e,t,n){if(!Co(t))throw Error(s(200));return Eo(null,e,t,!0,n)},it.hydrateRoot=function(e,t,n){if(!Bl(e))throw Error(s(405));var o=n!=null&&n.hydratedSources||null,l=!1,u="",d=Qf;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onRecoverableError!==void 0&&(d=n.onRecoverableError)),t=Kf(t,null,e,1,n??null,l,!1,u,d),e[Ft]=t.current,zr(e),o)for(e=0;e<o.length;e++)n=o[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new ko(t)},it.render=function(e,t,n){if(!Co(t))throw Error(s(200));return Eo(null,e,t,!1,n)},it.unmountComponentAtNode=function(e){if(!Co(e))throw Error(s(40));return e._reactRootContainer?(An(function(){Eo(null,null,e,!1,function(){e._reactRootContainer=null,e[Ft]=null})}),!0):!1},it.unstable_batchedUpdates=Ll,it.unstable_renderSubtreeIntoContainer=function(e,t,n,o){if(!Co(n))throw Error(s(200));if(e==null||e._reactInternals===void 0)throw Error(s(38));return Eo(e,t,n,!1,o)},it.version="18.3.1-next-f1338f8080-20240426",it}var nd;function Yg(){if(nd)return $l.exports;nd=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(i){console.error(i)}}return r(),$l.exports=Qg(),$l.exports}var rd;function Xg(){if(rd)return Ao;rd=1;var r=Yg();return Ao.createRoot=r.createRoot,Ao.hydrateRoot=r.hydrateRoot,Ao}var Zg=Xg();function qg(r){if(typeof Proxy>"u")return r;const i=new Map,s=(...a)=>r(...a);return new Proxy(s,{get:(a,c)=>c==="create"?r:(i.has(c)||i.set(c,r(c)),i.get(c))})}function Wo(r){return r!==null&&typeof r=="object"&&typeof r.start=="function"}const oa=r=>Array.isArray(r);function yh(r,i){if(!Array.isArray(i))return!1;const s=i.length;if(s!==r.length)return!1;for(let a=0;a<s;a++)if(i[a]!==r[a])return!1;return!0}function ci(r){return typeof r=="string"||Array.isArray(r)}function id(r){const i=[{},{}];return r?.values.forEach((s,a)=>{i[0][a]=s.get(),i[1][a]=s.getVelocity()}),i}function Ta(r,i,s,a){if(typeof i=="function"){const[c,h]=id(a);i=i(s!==void 0?s:r.custom,c,h)}if(typeof i=="string"&&(i=r.variants&&r.variants[i]),typeof i=="function"){const[c,h]=id(a);i=i(s!==void 0?s:r.custom,c,h)}return i}function $o(r,i,s){const a=r.getProps();return Ta(a,i,s!==void 0?s:a.custom,r)}const ka=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ca=["initial",...ka],pi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],On=new Set(pi),Ht=r=>r*1e3,Kt=r=>r/1e3,Jg={type:"spring",stiffness:500,damping:25,restSpeed:10},bg=r=>({type:"spring",stiffness:550,damping:r===0?2*Math.sqrt(550):30,restSpeed:10}),ey={type:"keyframes",duration:.8},ty={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ny=(r,{keyframes:i})=>i.length>2?ey:On.has(r)?r.startsWith("scale")?bg(i[1]):Jg:ty;function Ea(r,i){return r?r[i]||r.default||r:void 0}const ry={skipAnimations:!1,useManualTiming:!1},iy=r=>r!==null;function Ho(r,{repeat:i,repeatType:s="loop"},a){const c=r.filter(iy),h=i&&s!=="loop"&&i%2===1?0:c.length-1;return!h||a===void 0?c[h]:a}const Ge=r=>r;function oy(r){let i=new Set,s=new Set,a=!1,c=!1;const h=new WeakSet;let f={delta:0,timestamp:0,isProcessing:!1};function p(g){h.has(g)&&(m.schedule(g),r()),g(f)}const m={schedule:(g,v=!1,S=!1)=>{const R=S&&a?i:s;return v&&h.add(g),R.has(g)||R.add(g),g},cancel:g=>{s.delete(g),h.delete(g)},process:g=>{if(f=g,a){c=!0;return}a=!0,[i,s]=[s,i],s.clear(),i.forEach(p),a=!1,c&&(c=!1,m.process(g))}};return m}const Mo=["read","resolveKeyframes","update","preRender","render","postRender"],sy=40;function vh(r,i){let s=!1,a=!0;const c={delta:0,timestamp:0,isProcessing:!1},h=()=>s=!0,f=Mo.reduce((j,B)=>(j[B]=oy(h),j),{}),{read:p,resolveKeyframes:m,update:g,preRender:v,render:S,postRender:P}=f,R=()=>{const j=performance.now();s=!1,c.delta=a?1e3/60:Math.max(Math.min(j-c.timestamp,sy),1),c.timestamp=j,c.isProcessing=!0,p.process(c),m.process(c),g.process(c),v.process(c),S.process(c),P.process(c),c.isProcessing=!1,s&&i&&(a=!1,r(R))},V=()=>{s=!0,a=!0,c.isProcessing||r(R)};return{schedule:Mo.reduce((j,B)=>{const $=f[B];return j[B]=(ee,G=!1,te=!1)=>(s||V(),$.schedule(ee,G,te)),j},{}),cancel:j=>{for(let B=0;B<Mo.length;B++)f[Mo[B]].cancel(j)},state:c,steps:f}}const{schedule:pe,cancel:gn,state:ze,steps:Gl}=vh(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ge,!0),wh=(r,i,s)=>(((1-3*s+3*i)*r+(3*s-6*i))*r+3*i)*r,ly=1e-7,ay=12;function uy(r,i,s,a,c){let h,f,p=0;do f=i+(s-i)/2,h=wh(f,a,c)-r,h>0?s=f:i=f;while(Math.abs(h)>ly&&++p<ay);return f}function mi(r,i,s,a){if(r===i&&s===a)return Ge;const c=h=>uy(h,0,1,r,s);return h=>h===0||h===1?h:wh(c(h),i,a)}const Sh=r=>i=>i<=.5?r(2*i)/2:(2-r(2*(1-i)))/2,xh=r=>i=>1-r(1-i),Ph=mi(.33,1.53,.69,.99),Ra=xh(Ph),Th=Sh(Ra),kh=r=>(r*=2)<1?.5*Ra(r):.5*(2-Math.pow(2,-10*(r-1))),Aa=r=>1-Math.sin(Math.acos(r)),Ch=xh(Aa),Eh=Sh(Aa),Rh=r=>/^0[^.\s]+$/u.test(r);function cy(r){return typeof r=="number"?r===0:r!==null?r==="none"||r==="0"||Rh(r):!0}let sa=Ge;const Ah=r=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(r),Mh=r=>i=>typeof i=="string"&&i.startsWith(r),Dh=Mh("--"),fy=Mh("var(--"),Ma=r=>fy(r)?dy.test(r.split("/*")[0].trim()):!1,dy=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,hy=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function py(r){const i=hy.exec(r);if(!i)return[,];const[,s,a,c]=i;return[`--${s??a}`,c]}function Lh(r,i,s=1){const[a,c]=py(r);if(!a)return;const h=window.getComputedStyle(i).getPropertyValue(a);if(h){const f=h.trim();return Ah(f)?parseFloat(f):f}return Ma(c)?Lh(c,i,s+1):c}const Yt=(r,i,s)=>s>i?i:s<r?r:s,yr={test:r=>typeof r=="number",parse:parseFloat,transform:r=>r},fi={...yr,transform:r=>Yt(0,1,r)},Do={...yr,default:1},gi=r=>({test:i=>typeof i=="string"&&i.endsWith(r)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${r}`}),mn=gi("deg"),_t=gi("%"),q=gi("px"),my=gi("vh"),gy=gi("vw"),od={..._t,parse:r=>_t.parse(r)/100,transform:r=>_t.transform(r*100)},yy=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),sd=r=>r===yr||r===q,ld=(r,i)=>parseFloat(r.split(", ")[i]),ad=(r,i)=>(s,{transform:a})=>{if(a==="none"||!a)return 0;const c=a.match(/^matrix3d\((.+)\)$/u);if(c)return ld(c[1],i);{const h=a.match(/^matrix\((.+)\)$/u);return h?ld(h[1],r):0}},vy=new Set(["x","y","z"]),wy=pi.filter(r=>!vy.has(r));function Sy(r){const i=[];return wy.forEach(s=>{const a=r.getValue(s);a!==void 0&&(i.push([s,a.get()]),a.set(s.startsWith("scale")?1:0))}),i}const pr={width:({x:r},{paddingLeft:i="0",paddingRight:s="0"})=>r.max-r.min-parseFloat(i)-parseFloat(s),height:({y:r},{paddingTop:i="0",paddingBottom:s="0"})=>r.max-r.min-parseFloat(i)-parseFloat(s),top:(r,{top:i})=>parseFloat(i),left:(r,{left:i})=>parseFloat(i),bottom:({y:r},{top:i})=>parseFloat(i)+(r.max-r.min),right:({x:r},{left:i})=>parseFloat(i)+(r.max-r.min),x:ad(4,13),y:ad(5,14)};pr.translateX=pr.x;pr.translateY=pr.y;const Vh=r=>i=>i.test(r),xy={test:r=>r==="auto",parse:r=>r},_h=[yr,q,_t,mn,gy,my,xy],ud=r=>_h.find(Vh(r)),jn=new Set;let la=!1,aa=!1;function Nh(){if(aa){const r=Array.from(jn).filter(a=>a.needsMeasurement),i=new Set(r.map(a=>a.element)),s=new Map;i.forEach(a=>{const c=Sy(a);c.length&&(s.set(a,c),a.render())}),r.forEach(a=>a.measureInitialState()),i.forEach(a=>{a.render();const c=s.get(a);c&&c.forEach(([h,f])=>{var p;(p=a.getValue(h))===null||p===void 0||p.set(f)})}),r.forEach(a=>a.measureEndState()),r.forEach(a=>{a.suspendedScrollY!==void 0&&window.scrollTo(0,a.suspendedScrollY)})}aa=!1,la=!1,jn.forEach(r=>r.complete()),jn.clear()}function Fh(){jn.forEach(r=>{r.readKeyframes(),r.needsMeasurement&&(aa=!0)})}function Py(){Fh(),Nh()}class Da{constructor(i,s,a,c,h,f=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...i],this.onComplete=s,this.name=a,this.motionValue=c,this.element=h,this.isAsync=f}scheduleResolve(){this.isScheduled=!0,this.isAsync?(jn.add(this),la||(la=!0,pe.read(Fh),pe.resolveKeyframes(Nh))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:i,name:s,element:a,motionValue:c}=this;for(let h=0;h<i.length;h++)if(i[h]===null)if(h===0){const f=c?.get(),p=i[i.length-1];if(f!==void 0)i[0]=f;else if(a&&s){const m=a.readValue(s,p);m!=null&&(i[0]=m)}i[0]===void 0&&(i[0]=p),c&&f===void 0&&c.set(i[0])}else i[h]=i[h-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),jn.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,jn.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const li=r=>Math.round(r*1e5)/1e5,La=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ty(r){return r==null}const ky=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Va=(r,i)=>s=>!!(typeof s=="string"&&ky.test(s)&&s.startsWith(r)||i&&!Ty(s)&&Object.prototype.hasOwnProperty.call(s,i)),jh=(r,i,s)=>a=>{if(typeof a!="string")return a;const[c,h,f,p]=a.match(La);return{[r]:parseFloat(c),[i]:parseFloat(h),[s]:parseFloat(f),alpha:p!==void 0?parseFloat(p):1}},Cy=r=>Yt(0,255,r),Ql={...yr,transform:r=>Math.round(Cy(r))},Fn={test:Va("rgb","red"),parse:jh("red","green","blue"),transform:({red:r,green:i,blue:s,alpha:a=1})=>"rgba("+Ql.transform(r)+", "+Ql.transform(i)+", "+Ql.transform(s)+", "+li(fi.transform(a))+")"};function Ey(r){let i="",s="",a="",c="";return r.length>5?(i=r.substring(1,3),s=r.substring(3,5),a=r.substring(5,7),c=r.substring(7,9)):(i=r.substring(1,2),s=r.substring(2,3),a=r.substring(3,4),c=r.substring(4,5),i+=i,s+=s,a+=a,c+=c),{red:parseInt(i,16),green:parseInt(s,16),blue:parseInt(a,16),alpha:c?parseInt(c,16)/255:1}}const ua={test:Va("#"),parse:Ey,transform:Fn.transform},ur={test:Va("hsl","hue"),parse:jh("hue","saturation","lightness"),transform:({hue:r,saturation:i,lightness:s,alpha:a=1})=>"hsla("+Math.round(r)+", "+_t.transform(li(i))+", "+_t.transform(li(s))+", "+li(fi.transform(a))+")"},He={test:r=>Fn.test(r)||ua.test(r)||ur.test(r),parse:r=>Fn.test(r)?Fn.parse(r):ur.test(r)?ur.parse(r):ua.parse(r),transform:r=>typeof r=="string"?r:r.hasOwnProperty("red")?Fn.transform(r):ur.transform(r)},Ry=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ay(r){var i,s;return isNaN(r)&&typeof r=="string"&&(((i=r.match(La))===null||i===void 0?void 0:i.length)||0)+(((s=r.match(Ry))===null||s===void 0?void 0:s.length)||0)>0}const Oh="number",Ih="color",My="var",Dy="var(",cd="${}",Ly=/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 di(r){const i=r.toString(),s=[],a={color:[],number:[],var:[]},c=[];let h=0;const p=i.replace(Ly,m=>(He.test(m)?(a.color.push(h),c.push(Ih),s.push(He.parse(m))):m.startsWith(Dy)?(a.var.push(h),c.push(My),s.push(m)):(a.number.push(h),c.push(Oh),s.push(parseFloat(m))),++h,cd)).split(cd);return{values:s,split:p,indexes:a,types:c}}function zh(r){return di(r).values}function Bh(r){const{split:i,types:s}=di(r),a=i.length;return c=>{let h="";for(let f=0;f<a;f++)if(h+=i[f],c[f]!==void 0){const p=s[f];p===Oh?h+=li(c[f]):p===Ih?h+=He.transform(c[f]):h+=c[f]}return h}}const Vy=r=>typeof r=="number"?0:r;function _y(r){const i=zh(r);return Bh(r)(i.map(Vy))}const yn={test:Ay,parse:zh,createTransformer:Bh,getAnimatableNone:_y},Ny=new Set(["brightness","contrast","saturate","opacity"]);function Fy(r){const[i,s]=r.slice(0,-1).split("(");if(i==="drop-shadow")return r;const[a]=s.match(La)||[];if(!a)return r;const c=s.replace(a,"");let h=Ny.has(i)?1:0;return a!==s&&(h*=100),i+"("+h+c+")"}const jy=/\b([a-z-]*)\(.*?\)/gu,ca={...yn,getAnimatableNone:r=>{const i=r.match(jy);return i?i.map(Fy).join(" "):r}},Oy={borderWidth:q,borderTopWidth:q,borderRightWidth:q,borderBottomWidth:q,borderLeftWidth:q,borderRadius:q,radius:q,borderTopLeftRadius:q,borderTopRightRadius:q,borderBottomRightRadius:q,borderBottomLeftRadius:q,width:q,maxWidth:q,height:q,maxHeight:q,top:q,right:q,bottom:q,left:q,padding:q,paddingTop:q,paddingRight:q,paddingBottom:q,paddingLeft:q,margin:q,marginTop:q,marginRight:q,marginBottom:q,marginLeft:q,backgroundPositionX:q,backgroundPositionY:q},Iy={rotate:mn,rotateX:mn,rotateY:mn,rotateZ:mn,scale:Do,scaleX:Do,scaleY:Do,scaleZ:Do,skew:mn,skewX:mn,skewY:mn,distance:q,translateX:q,translateY:q,translateZ:q,x:q,y:q,z:q,perspective:q,transformPerspective:q,opacity:fi,originX:od,originY:od,originZ:q},fd={...yr,transform:Math.round},_a={...Oy,...Iy,zIndex:fd,size:q,fillOpacity:fi,strokeOpacity:fi,numOctaves:fd},zy={..._a,color:He,backgroundColor:He,outlineColor:He,fill:He,stroke:He,borderColor:He,borderTopColor:He,borderRightColor:He,borderBottomColor:He,borderLeftColor:He,filter:ca,WebkitFilter:ca},Na=r=>zy[r];function Uh(r,i){let s=Na(r);return s!==ca&&(s=yn),s.getAnimatableNone?s.getAnimatableNone(i):void 0}const By=new Set(["auto","none","0"]);function Uy(r,i,s){let a=0,c;for(;a<r.length&&!c;){const h=r[a];typeof h=="string"&&!By.has(h)&&di(h).values.length&&(c=r[a]),a++}if(c&&s)for(const h of i)r[h]=Uh(s,c)}class Wh extends Da{constructor(i,s,a,c,h){super(i,s,a,c,h,!0)}readKeyframes(){const{unresolvedKeyframes:i,element:s,name:a}=this;if(!s||!s.current)return;super.readKeyframes();for(let m=0;m<i.length;m++){let g=i[m];if(typeof g=="string"&&(g=g.trim(),Ma(g))){const v=Lh(g,s.current);v!==void 0&&(i[m]=v),m===i.length-1&&(this.finalKeyframe=g)}}if(this.resolveNoneKeyframes(),!yy.has(a)||i.length!==2)return;const[c,h]=i,f=ud(c),p=ud(h);if(f!==p)if(sd(f)&&sd(p))for(let m=0;m<i.length;m++){const g=i[m];typeof g=="string"&&(i[m]=parseFloat(g))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:i,name:s}=this,a=[];for(let c=0;c<i.length;c++)cy(i[c])&&a.push(c);a.length&&Uy(i,a,s)}measureInitialState(){const{element:i,unresolvedKeyframes:s,name:a}=this;if(!i||!i.current)return;a==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=pr[a](i.measureViewportBox(),window.getComputedStyle(i.current)),s[0]=this.measuredOrigin;const c=s[s.length-1];c!==void 0&&i.getValue(a,c).jump(c,!1)}measureEndState(){var i;const{element:s,name:a,unresolvedKeyframes:c}=this;if(!s||!s.current)return;const h=s.getValue(a);h&&h.jump(this.measuredOrigin,!1);const f=c.length-1,p=c[f];c[f]=pr[a](s.measureViewportBox(),window.getComputedStyle(s.current)),p!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=p),!((i=this.removedTransforms)===null||i===void 0)&&i.length&&this.removedTransforms.forEach(([m,g])=>{s.getValue(m).set(g)}),this.resolveNoneKeyframes()}}function Fa(r){return typeof r=="function"}let Vo;function Wy(){Vo=void 0}const Nt={now:()=>(Vo===void 0&&Nt.set(ze.isProcessing||ry.useManualTiming?ze.timestamp:performance.now()),Vo),set:r=>{Vo=r,queueMicrotask(Wy)}},dd=(r,i)=>i==="zIndex"?!1:!!(typeof r=="number"||Array.isArray(r)||typeof r=="string"&&(yn.test(r)||r==="0")&&!r.startsWith("url("));function $y(r){const i=r[0];if(r.length===1)return!0;for(let s=0;s<r.length;s++)if(r[s]!==i)return!0}function Hy(r,i,s,a){const c=r[0];if(c===null)return!1;if(i==="display"||i==="visibility")return!0;const h=r[r.length-1],f=dd(c,i),p=dd(h,i);return!f||!p?!1:$y(r)||(s==="spring"||Fa(s))&&a}const Ky=40;class $h{constructor({autoplay:i=!0,delay:s=0,type:a="keyframes",repeat:c=0,repeatDelay:h=0,repeatType:f="loop",...p}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Nt.now(),this.options={autoplay:i,delay:s,type:a,repeat:c,repeatDelay:h,repeatType:f,...p},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Ky?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Py(),this._resolved}onKeyframesResolved(i,s){this.resolvedAt=Nt.now(),this.hasAttemptedResolve=!0;const{name:a,type:c,velocity:h,delay:f,onComplete:p,onUpdate:m,isGenerator:g}=this.options;if(!g&&!Hy(i,a,c,h))if(f)this.options.duration=0;else{m?.(Ho(i,this.options,s)),p?.(),this.resolveFinishedPromise();return}const v=this.initPlayback(i,s);v!==!1&&(this._resolved={keyframes:i,finalKeyframe:s,...v},this.onPostResolved())}onPostResolved(){}then(i,s){return this.currentFinishedPromise.then(i,s)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(i=>{this.resolveFinishedPromise=i})}}const mr=(r,i,s)=>{const a=i-r;return a===0?1:(s-r)/a},Hh=(r,i,s=10)=>{let a="";const c=Math.max(Math.round(i/s),2);for(let h=0;h<c;h++)a+=r(mr(0,c-1,h))+", ";return`linear(${a.substring(0,a.length-2)})`};function Kh(r,i){return i?r*(1e3/i):0}const Gy=5;function Gh(r,i,s){const a=Math.max(i-Gy,0);return Kh(s-r(a),i-a)}const Re={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},Yl=.001;function Qy({duration:r=Re.duration,bounce:i=Re.bounce,velocity:s=Re.velocity,mass:a=Re.mass}){let c,h,f=1-i;f=Yt(Re.minDamping,Re.maxDamping,f),r=Yt(Re.minDuration,Re.maxDuration,Kt(r)),f<1?(c=g=>{const v=g*f,S=v*r,P=v-s,R=fa(g,f),V=Math.exp(-S);return Yl-P/R*V},h=g=>{const S=g*f*r,P=S*s+s,R=Math.pow(f,2)*Math.pow(g,2)*r,V=Math.exp(-S),M=fa(Math.pow(g,2),f);return(-c(g)+Yl>0?-1:1)*((P-R)*V)/M}):(c=g=>{const v=Math.exp(-g*r),S=(g-s)*r+1;return-Yl+v*S},h=g=>{const v=Math.exp(-g*r),S=(s-g)*(r*r);return v*S});const p=5/r,m=Xy(c,h,p);if(r=Ht(r),isNaN(m))return{stiffness:Re.stiffness,damping:Re.damping,duration:r};{const g=Math.pow(m,2)*a;return{stiffness:g,damping:f*2*Math.sqrt(a*g),duration:r}}}const Yy=12;function Xy(r,i,s){let a=s;for(let c=1;c<Yy;c++)a=a-r(a)/i(a);return a}function fa(r,i){return r*Math.sqrt(1-i*i)}const da=2e4;function Qh(r){let i=0;const s=50;let a=r.next(i);for(;!a.done&&i<da;)i+=s,a=r.next(i);return i>=da?1/0:i}const Zy=["duration","bounce"],qy=["stiffness","damping","mass"];function hd(r,i){return i.some(s=>r[s]!==void 0)}function Jy(r){let i={velocity:Re.velocity,stiffness:Re.stiffness,damping:Re.damping,mass:Re.mass,isResolvedFromDuration:!1,...r};if(!hd(r,qy)&&hd(r,Zy))if(r.visualDuration){const s=r.visualDuration,a=2*Math.PI/(s*1.2),c=a*a,h=2*Yt(.05,1,1-r.bounce)*Math.sqrt(c);i={...i,mass:Re.mass,stiffness:c,damping:h}}else{const s=Qy(r);i={...i,...s,mass:Re.mass},i.isResolvedFromDuration=!0}return i}function Yh(r=Re.visualDuration,i=Re.bounce){const s=typeof r!="object"?{visualDuration:r,keyframes:[0,1],bounce:i}:r;let{restSpeed:a,restDelta:c}=s;const h=s.keyframes[0],f=s.keyframes[s.keyframes.length-1],p={done:!1,value:h},{stiffness:m,damping:g,mass:v,duration:S,velocity:P,isResolvedFromDuration:R}=Jy({...s,velocity:-Kt(s.velocity||0)}),V=P||0,M=g/(2*Math.sqrt(m*v)),N=f-h,j=Kt(Math.sqrt(m/v)),B=Math.abs(N)<5;a||(a=B?Re.restSpeed.granular:Re.restSpeed.default),c||(c=B?Re.restDelta.granular:Re.restDelta.default);let $;if(M<1){const G=fa(j,M);$=te=>{const ae=Math.exp(-M*j*te);return f-ae*((V+M*j*N)/G*Math.sin(G*te)+N*Math.cos(G*te))}}else if(M===1)$=G=>f-Math.exp(-j*G)*(N+(V+j*N)*G);else{const G=j*Math.sqrt(M*M-1);$=te=>{const ae=Math.exp(-M*j*te),Z=Math.min(G*te,300);return f-ae*((V+M*j*N)*Math.sinh(Z)+G*N*Math.cosh(Z))/G}}const ee={calculatedDuration:R&&S||null,next:G=>{const te=$(G);if(R)p.done=G>=S;else{let ae=0;M<1&&(ae=G===0?Ht(V):Gh($,G,te));const Z=Math.abs(ae)<=a,xe=Math.abs(f-te)<=c;p.done=Z&&xe}return p.value=p.done?f:te,p},toString:()=>{const G=Math.min(Qh(ee),da),te=Hh(ae=>ee.next(G*ae).value,G,30);return G+"ms "+te}};return ee}function pd({keyframes:r,velocity:i=0,power:s=.8,timeConstant:a=325,bounceDamping:c=10,bounceStiffness:h=500,modifyTarget:f,min:p,max:m,restDelta:g=.5,restSpeed:v}){const S=r[0],P={done:!1,value:S},R=Z=>p!==void 0&&Z<p||m!==void 0&&Z>m,V=Z=>p===void 0?m:m===void 0||Math.abs(p-Z)<Math.abs(m-Z)?p:m;let M=s*i;const N=S+M,j=f===void 0?N:f(N);j!==N&&(M=j-S);const B=Z=>-M*Math.exp(-Z/a),$=Z=>j+B(Z),ee=Z=>{const xe=B(Z),Ce=$(Z);P.done=Math.abs(xe)<=g,P.value=P.done?j:Ce};let G,te;const ae=Z=>{R(P.value)&&(G=Z,te=Yh({keyframes:[P.value,V(P.value)],velocity:Gh($,Z,P.value),damping:c,stiffness:h,restDelta:g,restSpeed:v}))};return ae(0),{calculatedDuration:null,next:Z=>{let xe=!1;return!te&&G===void 0&&(xe=!0,ee(Z),ae(Z)),G!==void 0&&Z>=G?te.next(Z-G):(!xe&&ee(Z),P)}}}const by=mi(.42,0,1,1),ev=mi(0,0,.58,1),Xh=mi(.42,0,.58,1),tv=r=>Array.isArray(r)&&typeof r[0]!="number",ja=r=>Array.isArray(r)&&typeof r[0]=="number",md={linear:Ge,easeIn:by,easeInOut:Xh,easeOut:ev,circIn:Aa,circInOut:Eh,circOut:Ch,backIn:Ra,backInOut:Th,backOut:Ph,anticipate:kh},gd=r=>{if(ja(r)){sa(r.length===4);const[i,s,a,c]=r;return mi(i,s,a,c)}else if(typeof r=="string")return sa(md[r]!==void 0),md[r];return r},nv=(r,i)=>s=>i(r(s)),Gt=(...r)=>r.reduce(nv),ke=(r,i,s)=>r+(i-r)*s;function Xl(r,i,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?r+(i-r)*6*s:s<1/2?i:s<2/3?r+(i-r)*(2/3-s)*6:r}function rv({hue:r,saturation:i,lightness:s,alpha:a}){r/=360,i/=100,s/=100;let c=0,h=0,f=0;if(!i)c=h=f=s;else{const p=s<.5?s*(1+i):s+i-s*i,m=2*s-p;c=Xl(m,p,r+1/3),h=Xl(m,p,r),f=Xl(m,p,r-1/3)}return{red:Math.round(c*255),green:Math.round(h*255),blue:Math.round(f*255),alpha:a}}function Fo(r,i){return s=>s>0?i:r}const Zl=(r,i,s)=>{const a=r*r,c=s*(i*i-a)+a;return c<0?0:Math.sqrt(c)},iv=[ua,Fn,ur],ov=r=>iv.find(i=>i.test(r));function yd(r){const i=ov(r);if(!i)return!1;let s=i.parse(r);return i===ur&&(s=rv(s)),s}const vd=(r,i)=>{const s=yd(r),a=yd(i);if(!s||!a)return Fo(r,i);const c={...s};return h=>(c.red=Zl(s.red,a.red,h),c.green=Zl(s.green,a.green,h),c.blue=Zl(s.blue,a.blue,h),c.alpha=ke(s.alpha,a.alpha,h),Fn.transform(c))},ha=new Set(["none","hidden"]);function sv(r,i){return ha.has(r)?s=>s<=0?r:i:s=>s>=1?i:r}function lv(r,i){return s=>ke(r,i,s)}function Oa(r){return typeof r=="number"?lv:typeof r=="string"?Ma(r)?Fo:He.test(r)?vd:cv:Array.isArray(r)?Zh:typeof r=="object"?He.test(r)?vd:av:Fo}function Zh(r,i){const s=[...r],a=s.length,c=r.map((h,f)=>Oa(h)(h,i[f]));return h=>{for(let f=0;f<a;f++)s[f]=c[f](h);return s}}function av(r,i){const s={...r,...i},a={};for(const c in s)r[c]!==void 0&&i[c]!==void 0&&(a[c]=Oa(r[c])(r[c],i[c]));return c=>{for(const h in a)s[h]=a[h](c);return s}}function uv(r,i){var s;const a=[],c={color:0,var:0,number:0};for(let h=0;h<i.values.length;h++){const f=i.types[h],p=r.indexes[f][c[f]],m=(s=r.values[p])!==null&&s!==void 0?s:0;a[h]=m,c[f]++}return a}const cv=(r,i)=>{const s=yn.createTransformer(i),a=di(r),c=di(i);return a.indexes.var.length===c.indexes.var.length&&a.indexes.color.length===c.indexes.color.length&&a.indexes.number.length>=c.indexes.number.length?ha.has(r)&&!c.values.length||ha.has(i)&&!a.values.length?sv(r,i):Gt(Zh(uv(a,c),c.values),s):Fo(r,i)};function qh(r,i,s){return typeof r=="number"&&typeof i=="number"&&typeof s=="number"?ke(r,i,s):Oa(r)(r,i)}function fv(r,i,s){const a=[],c=s||qh,h=r.length-1;for(let f=0;f<h;f++){let p=c(r[f],r[f+1]);if(i){const m=Array.isArray(i)?i[f]||Ge:i;p=Gt(m,p)}a.push(p)}return a}function dv(r,i,{clamp:s=!0,ease:a,mixer:c}={}){const h=r.length;if(sa(h===i.length),h===1)return()=>i[0];if(h===2&&r[0]===r[1])return()=>i[1];r[0]>r[h-1]&&(r=[...r].reverse(),i=[...i].reverse());const f=fv(i,a,c),p=f.length,m=g=>{let v=0;if(p>1)for(;v<r.length-2&&!(g<r[v+1]);v++);const S=mr(r[v],r[v+1],g);return f[v](S)};return s?g=>m(Yt(r[0],r[h-1],g)):m}function hv(r,i){const s=r[r.length-1];for(let a=1;a<=i;a++){const c=mr(0,i,a);r.push(ke(s,1,c))}}function pv(r){const i=[0];return hv(i,r.length-1),i}function mv(r,i){return r.map(s=>s*i)}function gv(r,i){return r.map(()=>i||Xh).splice(0,r.length-1)}function jo({duration:r=300,keyframes:i,times:s,ease:a="easeInOut"}){const c=tv(a)?a.map(gd):gd(a),h={done:!1,value:i[0]},f=mv(s&&s.length===i.length?s:pv(i),r),p=dv(f,i,{ease:Array.isArray(c)?c:gv(i,c)});return{calculatedDuration:r,next:m=>(h.value=p(m),h.done=m>=r,h)}}const yv=r=>{const i=({timestamp:s})=>r(s);return{start:()=>pe.update(i,!0),stop:()=>gn(i),now:()=>ze.isProcessing?ze.timestamp:Nt.now()}},vv={decay:pd,inertia:pd,tween:jo,keyframes:jo,spring:Yh},wv=r=>r/100;class Ia extends $h{constructor(i){super(i),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:m}=this.options;m&&m()};const{name:s,motionValue:a,element:c,keyframes:h}=this.options,f=c?.KeyframeResolver||Da,p=(m,g)=>this.onKeyframesResolved(m,g);this.resolver=new f(h,p,s,a,c),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(i){const{type:s="keyframes",repeat:a=0,repeatDelay:c=0,repeatType:h,velocity:f=0}=this.options,p=Fa(s)?s:vv[s]||jo;let m,g;p!==jo&&typeof i[0]!="number"&&(m=Gt(wv,qh(i[0],i[1])),i=[0,100]);const v=p({...this.options,keyframes:i});h==="mirror"&&(g=p({...this.options,keyframes:[...i].reverse(),velocity:-f})),v.calculatedDuration===null&&(v.calculatedDuration=Qh(v));const{calculatedDuration:S}=v,P=S+c,R=P*(a+1)-c;return{generator:v,mirroredGenerator:g,mapPercentToKeyframes:m,calculatedDuration:S,resolvedDuration:P,totalDuration:R}}onPostResolved(){const{autoplay:i=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!i?this.pause():this.state=this.pendingPlayState}tick(i,s=!1){const{resolved:a}=this;if(!a){const{keyframes:Z}=this.options;return{done:!0,value:Z[Z.length-1]}}const{finalKeyframe:c,generator:h,mirroredGenerator:f,mapPercentToKeyframes:p,keyframes:m,calculatedDuration:g,totalDuration:v,resolvedDuration:S}=a;if(this.startTime===null)return h.next(0);const{delay:P,repeat:R,repeatType:V,repeatDelay:M,onUpdate:N}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,i):this.speed<0&&(this.startTime=Math.min(i-v/this.speed,this.startTime)),s?this.currentTime=i:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(i-this.startTime)*this.speed;const j=this.currentTime-P*(this.speed>=0?1:-1),B=this.speed>=0?j<0:j>v;this.currentTime=Math.max(j,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=v);let $=this.currentTime,ee=h;if(R){const Z=Math.min(this.currentTime,v)/S;let xe=Math.floor(Z),Ce=Z%1;!Ce&&Z>=1&&(Ce=1),Ce===1&&xe--,xe=Math.min(xe,R+1),!!(xe%2)&&(V==="reverse"?(Ce=1-Ce,M&&(Ce-=M/S)):V==="mirror"&&(ee=f)),$=Yt(0,1,Ce)*S}const G=B?{done:!1,value:m[0]}:ee.next($);p&&(G.value=p(G.value));let{done:te}=G;!B&&g!==null&&(te=this.speed>=0?this.currentTime>=v:this.currentTime<=0);const ae=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&te);return ae&&c!==void 0&&(G.value=Ho(m,this.options,c)),N&&N(G.value),ae&&this.finish(),G}get duration(){const{resolved:i}=this;return i?Kt(i.calculatedDuration):0}get time(){return Kt(this.currentTime)}set time(i){i=Ht(i),this.currentTime=i,this.holdTime!==null||this.speed===0?this.holdTime=i:this.driver&&(this.startTime=this.driver.now()-i/this.speed)}get speed(){return this.playbackSpeed}set speed(i){const s=this.playbackSpeed!==i;this.playbackSpeed=i,s&&(this.time=Kt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:i=yv,onPlay:s,startTime:a}=this.options;this.driver||(this.driver=i(h=>this.tick(h))),s&&s();const c=this.driver.now();this.holdTime!==null?this.startTime=c-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=c):this.startTime=a??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var i;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(i=this.currentTime)!==null&&i!==void 0?i:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:i}=this.options;i&&i()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(i){return this.startTime=0,this.tick(i,!0)}}const Sv=new Set(["opacity","clipPath","filter","transform"]);function za(r){let i;return()=>(i===void 0&&(i=r()),i)}const xv={linearEasing:void 0};function Pv(r,i){const s=za(r);return()=>{var a;return(a=xv[i])!==null&&a!==void 0?a:s()}}const Oo=Pv(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function Jh(r){return!!(typeof r=="function"&&Oo()||!r||typeof r=="string"&&(r in pa||Oo())||ja(r)||Array.isArray(r)&&r.every(Jh))}const oi=([r,i,s,a])=>`cubic-bezier(${r}, ${i}, ${s}, ${a})`,pa={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:oi([0,.65,.55,1]),circOut:oi([.55,0,1,.45]),backIn:oi([.31,.01,.66,-.59]),backOut:oi([.33,1.53,.69,.99])};function bh(r,i){if(r)return typeof r=="function"&&Oo()?Hh(r,i):ja(r)?oi(r):Array.isArray(r)?r.map(s=>bh(s,i)||pa.easeOut):pa[r]}function Tv(r,i,s,{delay:a=0,duration:c=300,repeat:h=0,repeatType:f="loop",ease:p="easeInOut",times:m}={}){const g={[i]:s};m&&(g.offset=m);const v=bh(p,c);return Array.isArray(v)&&(g.easing=v),r.animate(g,{delay:a,duration:c,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:h+1,direction:f==="reverse"?"alternate":"normal"})}function wd(r,i){r.timeline=i,r.onfinish=null}const kv=za(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Io=10,Cv=2e4;function Ev(r){return Fa(r.type)||r.type==="spring"||!Jh(r.ease)}function Rv(r,i){const s=new Ia({...i,keyframes:r,repeat:0,delay:0,isGenerator:!0});let a={done:!1,value:r[0]};const c=[];let h=0;for(;!a.done&&h<Cv;)a=s.sample(h),c.push(a.value),h+=Io;return{times:void 0,keyframes:c,duration:h-Io,ease:"linear"}}const ep={anticipate:kh,backInOut:Th,circInOut:Eh};function Av(r){return r in ep}class Sd extends $h{constructor(i){super(i);const{name:s,motionValue:a,element:c,keyframes:h}=this.options;this.resolver=new Wh(h,(f,p)=>this.onKeyframesResolved(f,p),s,a,c),this.resolver.scheduleResolve()}initPlayback(i,s){var a;let{duration:c=300,times:h,ease:f,type:p,motionValue:m,name:g,startTime:v}=this.options;if(!(!((a=m.owner)===null||a===void 0)&&a.current))return!1;if(typeof f=="string"&&Oo()&&Av(f)&&(f=ep[f]),Ev(this.options)){const{onComplete:P,onUpdate:R,motionValue:V,element:M,...N}=this.options,j=Rv(i,N);i=j.keyframes,i.length===1&&(i[1]=i[0]),c=j.duration,h=j.times,f=j.ease,p="keyframes"}const S=Tv(m.owner.current,g,i,{...this.options,duration:c,times:h,ease:f});return S.startTime=v??this.calcStartTime(),this.pendingTimeline?(wd(S,this.pendingTimeline),this.pendingTimeline=void 0):S.onfinish=()=>{const{onComplete:P}=this.options;m.set(Ho(i,this.options,s)),P&&P(),this.cancel(),this.resolveFinishedPromise()},{animation:S,duration:c,times:h,type:p,ease:f,keyframes:i}}get duration(){const{resolved:i}=this;if(!i)return 0;const{duration:s}=i;return Kt(s)}get time(){const{resolved:i}=this;if(!i)return 0;const{animation:s}=i;return Kt(s.currentTime||0)}set time(i){const{resolved:s}=this;if(!s)return;const{animation:a}=s;a.currentTime=Ht(i)}get speed(){const{resolved:i}=this;if(!i)return 1;const{animation:s}=i;return s.playbackRate}set speed(i){const{resolved:s}=this;if(!s)return;const{animation:a}=s;a.playbackRate=i}get state(){const{resolved:i}=this;if(!i)return"idle";const{animation:s}=i;return s.playState}get startTime(){const{resolved:i}=this;if(!i)return null;const{animation:s}=i;return s.startTime}attachTimeline(i){if(!this._resolved)this.pendingTimeline=i;else{const{resolved:s}=this;if(!s)return Ge;const{animation:a}=s;wd(a,i)}return Ge}play(){if(this.isStopped)return;const{resolved:i}=this;if(!i)return;const{animation:s}=i;s.playState==="finished"&&this.updateFinishedPromise(),s.play()}pause(){const{resolved:i}=this;if(!i)return;const{animation:s}=i;s.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:i}=this;if(!i)return;const{animation:s,keyframes:a,duration:c,type:h,ease:f,times:p}=i;if(s.playState==="idle"||s.playState==="finished")return;if(this.time){const{motionValue:g,onUpdate:v,onComplete:S,element:P,...R}=this.options,V=new Ia({...R,keyframes:a,duration:c,type:h,ease:f,times:p,isGenerator:!0}),M=Ht(this.time);g.setWithVelocity(V.sample(M-Io).value,V.sample(M).value,Io)}const{onStop:m}=this.options;m&&m(),this.cancel()}complete(){const{resolved:i}=this;i&&i.animation.finish()}cancel(){const{resolved:i}=this;i&&i.animation.cancel()}static supports(i){const{motionValue:s,name:a,repeatDelay:c,repeatType:h,damping:f,type:p}=i;return kv()&&a&&Sv.has(a)&&s&&s.owner&&s.owner.current instanceof HTMLElement&&!s.owner.getProps().onUpdate&&!c&&h!=="mirror"&&f!==0&&p!=="inertia"}}const Mv=za(()=>window.ScrollTimeline!==void 0);class Dv{constructor(i){this.stop=()=>this.runAll("stop"),this.animations=i.filter(Boolean)}then(i,s){return Promise.all(this.animations).then(i).catch(s)}getAll(i){return this.animations[0][i]}setAll(i,s){for(let a=0;a<this.animations.length;a++)this.animations[a][i]=s}attachTimeline(i,s){const a=this.animations.map(c=>Mv()&&c.attachTimeline?c.attachTimeline(i):s(c));return()=>{a.forEach((c,h)=>{c&&c(),this.animations[h].stop()})}}get time(){return this.getAll("time")}set time(i){this.setAll("time",i)}get speed(){return this.getAll("speed")}set speed(i){this.setAll("speed",i)}get startTime(){return this.getAll("startTime")}get duration(){let i=0;for(let s=0;s<this.animations.length;s++)i=Math.max(i,this.animations[s].duration);return i}runAll(i){this.animations.forEach(s=>s[i]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function Lv({when:r,delay:i,delayChildren:s,staggerChildren:a,staggerDirection:c,repeat:h,repeatType:f,repeatDelay:p,from:m,elapsed:g,...v}){return!!Object.keys(v).length}const Ba=(r,i,s,a={},c,h)=>f=>{const p=Ea(a,r)||{},m=p.delay||a.delay||0;let{elapsed:g=0}=a;g=g-Ht(m);let v={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:i.getVelocity(),...p,delay:-g,onUpdate:P=>{i.set(P),p.onUpdate&&p.onUpdate(P)},onComplete:()=>{f(),p.onComplete&&p.onComplete()},name:r,motionValue:i,element:h?void 0:c};Lv(p)||(v={...v,...ny(r,v)}),v.duration&&(v.duration=Ht(v.duration)),v.repeatDelay&&(v.repeatDelay=Ht(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let S=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(v.duration=0,v.delay===0&&(S=!0)),S&&!h&&i.get()!==void 0){const P=Ho(v.keyframes,p);if(P!==void 0)return pe.update(()=>{v.onUpdate(P),v.onComplete()}),new Dv([])}return!h&&Sd.supports(v)?new Sd(v):new Ia(v)},Vv=r=>!!(r&&typeof r=="object"&&r.mix&&r.toValue),_v=r=>oa(r)?r[r.length-1]||0:r;function Ua(r,i){r.indexOf(i)===-1&&r.push(i)}function Wa(r,i){const s=r.indexOf(i);s>-1&&r.splice(s,1)}class $a{constructor(){this.subscriptions=[]}add(i){return Ua(this.subscriptions,i),()=>Wa(this.subscriptions,i)}notify(i,s,a){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](i,s,a);else for(let h=0;h<c;h++){const f=this.subscriptions[h];f&&f(i,s,a)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const xd=30,Nv=r=>!isNaN(parseFloat(r));class Fv{constructor(i,s={}){this.version="11.12.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(a,c=!0)=>{const h=Nt.now();this.updatedAt!==h&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),c&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(i),this.owner=s.owner}setCurrent(i){this.current=i,this.updatedAt=Nt.now(),this.canTrackVelocity===null&&i!==void 0&&(this.canTrackVelocity=Nv(this.current))}setPrevFrameValue(i=this.current){this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt}onChange(i){return this.on("change",i)}on(i,s){this.events[i]||(this.events[i]=new $a);const a=this.events[i].add(s);return i==="change"?()=>{a(),pe.read(()=>{this.events.change.getSize()||this.stop()})}:a}clearListeners(){for(const i in this.events)this.events[i].clear()}attach(i,s){this.passiveEffect=i,this.stopPassiveEffect=s}set(i,s=!0){!s||!this.passiveEffect?this.updateAndNotify(i,s):this.passiveEffect(i,this.updateAndNotify)}setWithVelocity(i,s,a){this.set(s),this.prev=void 0,this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt-a}jump(i,s=!0){this.updateAndNotify(i),this.prev=i,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const i=Nt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||i-this.updatedAt>xd)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,xd);return Kh(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(i){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=i(s),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function hi(r,i){return new Fv(r,i)}function jv(r,i,s){r.hasValue(i)?r.getValue(i).set(s):r.addValue(i,hi(s))}function Ov(r,i){const s=$o(r,i);let{transitionEnd:a={},transition:c={},...h}=s||{};h={...h,...a};for(const f in h){const p=_v(h[f]);jv(r,f,p)}}const Ha=r=>r.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Iv="framerAppearId",tp="data-"+Ha(Iv);function np(r){return r.props[tp]}const Ke=r=>!!(r&&r.getVelocity);function zv(r){return!!(Ke(r)&&r.add)}function ma(r,i){const s=r.getValue("willChange");if(zv(s))return s.add(i)}function Bv({protectedKeys:r,needsAnimating:i},s){const a=r.hasOwnProperty(s)&&i[s]!==!0;return i[s]=!1,a}function rp(r,i,{delay:s=0,transitionOverride:a,type:c}={}){var h;let{transition:f=r.getDefaultTransition(),transitionEnd:p,...m}=i;a&&(f=a);const g=[],v=c&&r.animationState&&r.animationState.getState()[c];for(const S in m){const P=r.getValue(S,(h=r.latestValues[S])!==null&&h!==void 0?h:null),R=m[S];if(R===void 0||v&&Bv(v,S))continue;const V={delay:s,...Ea(f||{},S)};let M=!1;if(window.MotionHandoffAnimation){const j=np(r);if(j){const B=window.MotionHandoffAnimation(j,S,pe);B!==null&&(V.startTime=B,M=!0)}}ma(r,S),P.start(Ba(S,P,R,r.shouldReduceMotion&&On.has(S)?{type:!1}:V,r,M));const N=P.animation;N&&g.push(N)}return p&&Promise.all(g).then(()=>{pe.update(()=>{p&&Ov(r,p)})}),g}function ga(r,i,s={}){var a;const c=$o(r,i,s.type==="exit"?(a=r.presenceContext)===null||a===void 0?void 0:a.custom:void 0);let{transition:h=r.getDefaultTransition()||{}}=c||{};s.transitionOverride&&(h=s.transitionOverride);const f=c?()=>Promise.all(rp(r,c,s)):()=>Promise.resolve(),p=r.variantChildren&&r.variantChildren.size?(g=0)=>{const{delayChildren:v=0,staggerChildren:S,staggerDirection:P}=h;return Uv(r,i,v+g,S,P,s)}:()=>Promise.resolve(),{when:m}=h;if(m){const[g,v]=m==="beforeChildren"?[f,p]:[p,f];return g().then(()=>v())}else return Promise.all([f(),p(s.delay)])}function Uv(r,i,s=0,a=0,c=1,h){const f=[],p=(r.variantChildren.size-1)*a,m=c===1?(g=0)=>g*a:(g=0)=>p-g*a;return Array.from(r.variantChildren).sort(Wv).forEach((g,v)=>{g.notify("AnimationStart",i),f.push(ga(g,i,{...h,delay:s+m(v)}).then(()=>g.notify("AnimationComplete",i)))}),Promise.all(f)}function Wv(r,i){return r.sortNodePosition(i)}function $v(r,i,s={}){r.notify("AnimationStart",i);let a;if(Array.isArray(i)){const c=i.map(h=>ga(r,h,s));a=Promise.all(c)}else if(typeof i=="string")a=ga(r,i,s);else{const c=typeof i=="function"?$o(r,i,s.custom):i;a=Promise.all(rp(r,c,s))}return a.then(()=>{r.notify("AnimationComplete",i)})}const Hv=Ca.length;function ip(r){if(!r)return;if(!r.isControllingVariants){const s=r.parent?ip(r.parent)||{}:{};return r.props.initial!==void 0&&(s.initial=r.props.initial),s}const i={};for(let s=0;s<Hv;s++){const a=Ca[s],c=r.props[a];(ci(c)||c===!1)&&(i[a]=c)}return i}const Kv=[...ka].reverse(),Gv=ka.length;function Qv(r){return i=>Promise.all(i.map(({animation:s,options:a})=>$v(r,s,a)))}function Yv(r){let i=Qv(r),s=Pd(),a=!0;const c=m=>(g,v)=>{var S;const P=$o(r,v,m==="exit"?(S=r.presenceContext)===null||S===void 0?void 0:S.custom:void 0);if(P){const{transition:R,transitionEnd:V,...M}=P;g={...g,...M,...V}}return g};function h(m){i=m(r)}function f(m){const{props:g}=r,v=ip(r.parent)||{},S=[],P=new Set;let R={},V=1/0;for(let N=0;N<Gv;N++){const j=Kv[N],B=s[j],$=g[j]!==void 0?g[j]:v[j],ee=ci($),G=j===m?B.isActive:null;G===!1&&(V=N);let te=$===v[j]&&$!==g[j]&&ee;if(te&&a&&r.manuallyAnimateOnMount&&(te=!1),B.protectedKeys={...R},!B.isActive&&G===null||!$&&!B.prevProp||Wo($)||typeof $=="boolean")continue;const ae=Xv(B.prevProp,$);let Z=ae||j===m&&B.isActive&&!te&&ee||N>V&&ee,xe=!1;const Ce=Array.isArray($)?$:[$];let qe=Ce.reduce(c(j),{});G===!1&&(qe={});const{prevResolvedValues:ot={}}=B,Qe={...ot,...qe},Je=ie=>{Z=!0,P.has(ie)&&(xe=!0,P.delete(ie)),B.needsAnimating[ie]=!0;const O=r.getValue(ie);O&&(O.liveStyle=!1)};for(const ie in Qe){const O=qe[ie],Q=ot[ie];if(R.hasOwnProperty(ie))continue;let z=!1;oa(O)&&oa(Q)?z=!yh(O,Q):z=O!==Q,z?O!=null?Je(ie):P.add(ie):O!==void 0&&P.has(ie)?Je(ie):B.protectedKeys[ie]=!0}B.prevProp=$,B.prevResolvedValues=qe,B.isActive&&(R={...R,...qe}),a&&r.blockInitialAnimation&&(Z=!1),Z&&(!(te&&ae)||xe)&&S.push(...Ce.map(ie=>({animation:ie,options:{type:j}})))}if(P.size){const N={};P.forEach(j=>{const B=r.getBaseTarget(j),$=r.getValue(j);$&&($.liveStyle=!0),N[j]=B??null}),S.push({animation:N})}let M=!!S.length;return a&&(g.initial===!1||g.initial===g.animate)&&!r.manuallyAnimateOnMount&&(M=!1),a=!1,M?i(S):Promise.resolve()}function p(m,g){var v;if(s[m].isActive===g)return Promise.resolve();(v=r.variantChildren)===null||v===void 0||v.forEach(P=>{var R;return(R=P.animationState)===null||R===void 0?void 0:R.setActive(m,g)}),s[m].isActive=g;const S=f(m);for(const P in s)s[P].protectedKeys={};return S}return{animateChanges:f,setActive:p,setAnimateFunction:h,getState:()=>s,reset:()=>{s=Pd(),a=!0}}}function Xv(r,i){return typeof i=="string"?i!==r:Array.isArray(i)?!yh(i,r):!1}function Vn(r=!1){return{isActive:r,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Pd(){return{animate:Vn(!0),whileInView:Vn(),whileHover:Vn(),whileTap:Vn(),whileDrag:Vn(),whileFocus:Vn(),exit:Vn()}}class vn{constructor(i){this.isMounted=!1,this.node=i}update(){}}class Zv extends vn{constructor(i){super(i),i.animationState||(i.animationState=Yv(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();Wo(i)&&(this.unmountControls=i.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:i}=this.node.getProps(),{animate:s}=this.node.prevProps||{};i!==s&&this.updateAnimationControlsSubscription()}unmount(){var i;this.node.animationState.reset(),(i=this.unmountControls)===null||i===void 0||i.call(this)}}let qv=0;class Jv extends vn{constructor(){super(...arguments),this.id=qv++}update(){if(!this.node.presenceContext)return;const{isPresent:i,onExitComplete:s}=this.node.presenceContext,{isPresent:a}=this.node.prevPresenceContext||{};if(!this.node.animationState||i===a)return;const c=this.node.animationState.setActive("exit",!i);s&&!i&&c.then(()=>s(this.id))}mount(){const{register:i}=this.node.presenceContext||{};i&&(this.unmount=i(this.id))}unmount(){}}const bv={animation:{Feature:Zv},exit:{Feature:Jv}},op=r=>r.pointerType==="mouse"?typeof r.button!="number"||r.button<=0:r.isPrimary!==!1;function Ko(r,i="page"){return{point:{x:r[`${i}X`],y:r[`${i}Y`]}}}const e0=r=>i=>op(i)&&r(i,Ko(i));function $t(r,i,s,a={passive:!0}){return r.addEventListener(i,s,a),()=>r.removeEventListener(i,s)}function Qt(r,i,s,a){return $t(r,i,e0(s),a)}const Td=(r,i)=>Math.abs(r-i);function t0(r,i){const s=Td(r.x,i.x),a=Td(r.y,i.y);return Math.sqrt(s**2+a**2)}class sp{constructor(i,s,{transformPagePoint:a,contextWindow:c,dragSnapToOrigin:h=!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 S=Jl(this.lastMoveEventInfo,this.history),P=this.startEvent!==null,R=t0(S.offset,{x:0,y:0})>=3;if(!P&&!R)return;const{point:V}=S,{timestamp:M}=ze;this.history.push({...V,timestamp:M});const{onStart:N,onMove:j}=this.handlers;P||(N&&N(this.lastMoveEvent,S),this.startEvent=this.lastMoveEvent),j&&j(this.lastMoveEvent,S)},this.handlePointerMove=(S,P)=>{this.lastMoveEvent=S,this.lastMoveEventInfo=ql(P,this.transformPagePoint),pe.update(this.updatePoint,!0)},this.handlePointerUp=(S,P)=>{this.end();const{onEnd:R,onSessionEnd:V,resumeAnimation:M}=this.handlers;if(this.dragSnapToOrigin&&M&&M(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const N=Jl(S.type==="pointercancel"?this.lastMoveEventInfo:ql(P,this.transformPagePoint),this.history);this.startEvent&&R&&R(S,N),V&&V(S,N)},!op(i))return;this.dragSnapToOrigin=h,this.handlers=s,this.transformPagePoint=a,this.contextWindow=c||window;const f=Ko(i),p=ql(f,this.transformPagePoint),{point:m}=p,{timestamp:g}=ze;this.history=[{...m,timestamp:g}];const{onSessionStart:v}=s;v&&v(i,Jl(p,this.history)),this.removeListeners=Gt(Qt(this.contextWindow,"pointermove",this.handlePointerMove),Qt(this.contextWindow,"pointerup",this.handlePointerUp),Qt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(i){this.handlers=i}end(){this.removeListeners&&this.removeListeners(),gn(this.updatePoint)}}function ql(r,i){return i?{point:i(r.point)}:r}function kd(r,i){return{x:r.x-i.x,y:r.y-i.y}}function Jl({point:r},i){return{point:r,delta:kd(r,lp(i)),offset:kd(r,n0(i)),velocity:r0(i,.1)}}function n0(r){return r[0]}function lp(r){return r[r.length-1]}function r0(r,i){if(r.length<2)return{x:0,y:0};let s=r.length-1,a=null;const c=lp(r);for(;s>=0&&(a=r[s],!(c.timestamp-a.timestamp>Ht(i)));)s--;if(!a)return{x:0,y:0};const h=Kt(c.timestamp-a.timestamp);if(h===0)return{x:0,y:0};const f={x:(c.x-a.x)/h,y:(c.y-a.y)/h};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}function ap(r){let i=null;return()=>{const s=()=>{i=null};return i===null?(i=r,s):!1}}const Cd=ap("dragHorizontal"),Ed=ap("dragVertical");function up(r){let i=!1;if(r==="y")i=Ed();else if(r==="x")i=Cd();else{const s=Cd(),a=Ed();s&&a?i=()=>{s(),a()}:(s&&s(),a&&a())}return i}function cp(){const r=up(!0);return r?(r(),!1):!0}function cr(r){return r&&typeof r=="object"&&Object.prototype.hasOwnProperty.call(r,"current")}const fp=1e-4,i0=1-fp,o0=1+fp,dp=.01,s0=0-dp,l0=0+dp;function ft(r){return r.max-r.min}function a0(r,i,s){return Math.abs(r-i)<=s}function Rd(r,i,s,a=.5){r.origin=a,r.originPoint=ke(i.min,i.max,r.origin),r.scale=ft(s)/ft(i),r.translate=ke(s.min,s.max,r.origin)-r.originPoint,(r.scale>=i0&&r.scale<=o0||isNaN(r.scale))&&(r.scale=1),(r.translate>=s0&&r.translate<=l0||isNaN(r.translate))&&(r.translate=0)}function ai(r,i,s,a){Rd(r.x,i.x,s.x,a?a.originX:void 0),Rd(r.y,i.y,s.y,a?a.originY:void 0)}function Ad(r,i,s){r.min=s.min+i.min,r.max=r.min+ft(i)}function u0(r,i,s){Ad(r.x,i.x,s.x),Ad(r.y,i.y,s.y)}function Md(r,i,s){r.min=i.min-s.min,r.max=r.min+ft(i)}function ui(r,i,s){Md(r.x,i.x,s.x),Md(r.y,i.y,s.y)}function c0(r,{min:i,max:s},a){return i!==void 0&&r<i?r=a?ke(i,r,a.min):Math.max(r,i):s!==void 0&&r>s&&(r=a?ke(s,r,a.max):Math.min(r,s)),r}function Dd(r,i,s){return{min:i!==void 0?r.min+i:void 0,max:s!==void 0?r.max+s-(r.max-r.min):void 0}}function f0(r,{top:i,left:s,bottom:a,right:c}){return{x:Dd(r.x,s,c),y:Dd(r.y,i,a)}}function Ld(r,i){let s=i.min-r.min,a=i.max-r.max;return i.max-i.min<r.max-r.min&&([s,a]=[a,s]),{min:s,max:a}}function d0(r,i){return{x:Ld(r.x,i.x),y:Ld(r.y,i.y)}}function h0(r,i){let s=.5;const a=ft(r),c=ft(i);return c>a?s=mr(i.min,i.max-a,r.min):a>c&&(s=mr(r.min,r.max-c,i.min)),Yt(0,1,s)}function p0(r,i){const s={};return i.min!==void 0&&(s.min=i.min-r.min),i.max!==void 0&&(s.max=i.max-r.min),s}const ya=.35;function m0(r=ya){return r===!1?r=0:r===!0&&(r=ya),{x:Vd(r,"left","right"),y:Vd(r,"top","bottom")}}function Vd(r,i,s){return{min:_d(r,i),max:_d(r,s)}}function _d(r,i){return typeof r=="number"?r:r[i]||0}const Nd=()=>({translate:0,scale:1,origin:0,originPoint:0}),fr=()=>({x:Nd(),y:Nd()}),Fd=()=>({min:0,max:0}),De=()=>({x:Fd(),y:Fd()});function wt(r){return[r("x"),r("y")]}function hp({top:r,left:i,right:s,bottom:a}){return{x:{min:i,max:s},y:{min:r,max:a}}}function g0({x:r,y:i}){return{top:i.min,right:r.max,bottom:i.max,left:r.min}}function y0(r,i){if(!i)return r;const s=i({x:r.left,y:r.top}),a=i({x:r.right,y:r.bottom});return{top:s.y,left:s.x,bottom:a.y,right:a.x}}function bl(r){return r===void 0||r===1}function va({scale:r,scaleX:i,scaleY:s}){return!bl(r)||!bl(i)||!bl(s)}function _n(r){return va(r)||pp(r)||r.z||r.rotate||r.rotateX||r.rotateY||r.skewX||r.skewY}function pp(r){return jd(r.x)||jd(r.y)}function jd(r){return r&&r!=="0%"}function zo(r,i,s){const a=r-s,c=i*a;return s+c}function Od(r,i,s,a,c){return c!==void 0&&(r=zo(r,c,a)),zo(r,s,a)+i}function wa(r,i=0,s=1,a,c){r.min=Od(r.min,i,s,a,c),r.max=Od(r.max,i,s,a,c)}function mp(r,{x:i,y:s}){wa(r.x,i.translate,i.scale,i.originPoint),wa(r.y,s.translate,s.scale,s.originPoint)}const Id=.999999999999,zd=1.0000000000001;function v0(r,i,s,a=!1){const c=s.length;if(!c)return;i.x=i.y=1;let h,f;for(let p=0;p<c;p++){h=s[p],f=h.projectionDelta;const{visualElement:m}=h.options;m&&m.props.style&&m.props.style.display==="contents"||(a&&h.options.layoutScroll&&h.scroll&&h!==h.root&&hr(r,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),f&&(i.x*=f.x.scale,i.y*=f.y.scale,mp(r,f)),a&&_n(h.latestValues)&&hr(r,h.latestValues))}i.x<zd&&i.x>Id&&(i.x=1),i.y<zd&&i.y>Id&&(i.y=1)}function dr(r,i){r.min=r.min+i,r.max=r.max+i}function Bd(r,i,s,a,c=.5){const h=ke(r.min,r.max,c);wa(r,i,s,h,a)}function hr(r,i){Bd(r.x,i.x,i.scaleX,i.scale,i.originX),Bd(r.y,i.y,i.scaleY,i.scale,i.originY)}function gp(r,i){return hp(y0(r.getBoundingClientRect(),i))}function w0(r,i,s){const a=gp(r,s),{scroll:c}=i;return c&&(dr(a.x,c.offset.x),dr(a.y,c.offset.y)),a}const yp=({current:r})=>r?r.ownerDocument.defaultView:null,S0=new WeakMap;class x0{constructor(i){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=De(),this.visualElement=i}start(i,{snapToCursor:s=!1}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const c=v=>{const{dragSnapToOrigin:S}=this.getProps();S?this.pauseAnimation():this.stopAnimation(),s&&this.snapToCursor(Ko(v,"page").point)},h=(v,S)=>{const{drag:P,dragPropagation:R,onDragStart:V}=this.getProps();if(P&&!R&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=up(P),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),wt(N=>{let j=this.getAxisMotionValue(N).get()||0;if(_t.test(j)){const{projection:B}=this.visualElement;if(B&&B.layout){const $=B.layout.layoutBox[N];$&&(j=ft($)*(parseFloat(j)/100))}}this.originPoint[N]=j}),V&&pe.postRender(()=>V(v,S)),ma(this.visualElement,"transform");const{animationState:M}=this.visualElement;M&&M.setActive("whileDrag",!0)},f=(v,S)=>{const{dragPropagation:P,dragDirectionLock:R,onDirectionLock:V,onDrag:M}=this.getProps();if(!P&&!this.openGlobalLock)return;const{offset:N}=S;if(R&&this.currentDirection===null){this.currentDirection=P0(N),this.currentDirection!==null&&V&&V(this.currentDirection);return}this.updateAxis("x",S.point,N),this.updateAxis("y",S.point,N),this.visualElement.render(),M&&M(v,S)},p=(v,S)=>this.stop(v,S),m=()=>wt(v=>{var S;return this.getAnimationState(v)==="paused"&&((S=this.getAxisMotionValue(v).animation)===null||S===void 0?void 0:S.play())}),{dragSnapToOrigin:g}=this.getProps();this.panSession=new sp(i,{onSessionStart:c,onStart:h,onMove:f,onSessionEnd:p,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,contextWindow:yp(this.visualElement)})}stop(i,s){const a=this.isDragging;if(this.cancel(),!a)return;const{velocity:c}=s;this.startAnimation(c);const{onDragEnd:h}=this.getProps();h&&pe.postRender(()=>h(i,s))}cancel(){this.isDragging=!1;const{projection:i,animationState:s}=this.visualElement;i&&(i.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:a}=this.getProps();!a&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),s&&s.setActive("whileDrag",!1)}updateAxis(i,s,a){const{drag:c}=this.getProps();if(!a||!Lo(i,c,this.currentDirection))return;const h=this.getAxisMotionValue(i);let f=this.originPoint[i]+a[i];this.constraints&&this.constraints[i]&&(f=c0(f,this.constraints[i],this.elastic[i])),h.set(f)}resolveConstraints(){var i;const{dragConstraints:s,dragElastic:a}=this.getProps(),c=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)===null||i===void 0?void 0:i.layout,h=this.constraints;s&&cr(s)?this.constraints||(this.constraints=this.resolveRefConstraints()):s&&c?this.constraints=f0(c.layoutBox,s):this.constraints=!1,this.elastic=m0(a),h!==this.constraints&&c&&this.constraints&&!this.hasMutatedConstraints&&wt(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=p0(c.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:s}=this.getProps();if(!i||!cr(i))return!1;const a=i.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const h=w0(a,c.root,this.visualElement.getTransformPagePoint());let f=d0(c.layout.layoutBox,h);if(s){const p=s(g0(f));this.hasMutatedConstraints=!!p,p&&(f=hp(p))}return f}startAnimation(i){const{drag:s,dragMomentum:a,dragElastic:c,dragTransition:h,dragSnapToOrigin:f,onDragTransitionEnd:p}=this.getProps(),m=this.constraints||{},g=wt(v=>{if(!Lo(v,s,this.currentDirection))return;let S=m&&m[v]||{};f&&(S={min:0,max:0});const P=c?200:1e6,R=c?40:1e7,V={type:"inertia",velocity:a?i[v]:0,bounceStiffness:P,bounceDamping:R,timeConstant:750,restDelta:1,restSpeed:10,...h,...S};return this.startAxisValueAnimation(v,V)});return Promise.all(g).then(p)}startAxisValueAnimation(i,s){const a=this.getAxisMotionValue(i);return ma(this.visualElement,i),a.start(Ba(i,a,0,s,this.visualElement,!1))}stopAnimation(){wt(i=>this.getAxisMotionValue(i).stop())}pauseAnimation(){wt(i=>{var s;return(s=this.getAxisMotionValue(i).animation)===null||s===void 0?void 0:s.pause()})}getAnimationState(i){var s;return(s=this.getAxisMotionValue(i).animation)===null||s===void 0?void 0:s.state}getAxisMotionValue(i){const s=`_drag${i.toUpperCase()}`,a=this.visualElement.getProps(),c=a[s];return c||this.visualElement.getValue(i,(a.initial?a.initial[i]:void 0)||0)}snapToCursor(i){wt(s=>{const{drag:a}=this.getProps();if(!Lo(s,a,this.currentDirection))return;const{projection:c}=this.visualElement,h=this.getAxisMotionValue(s);if(c&&c.layout){const{min:f,max:p}=c.layout.layoutBox[s];h.set(i[s]-ke(f,p,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:s}=this.getProps(),{projection:a}=this.visualElement;if(!cr(s)||!a||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};wt(f=>{const p=this.getAxisMotionValue(f);if(p&&this.constraints!==!1){const m=p.get();c[f]=h0({min:m,max:m},this.constraints[f])}});const{transformTemplate:h}=this.visualElement.getProps();this.visualElement.current.style.transform=h?h({},""):"none",a.root&&a.root.updateScroll(),a.updateLayout(),this.resolveConstraints(),wt(f=>{if(!Lo(f,i,null))return;const p=this.getAxisMotionValue(f),{min:m,max:g}=this.constraints[f];p.set(ke(m,g,c[f]))})}addListeners(){if(!this.visualElement.current)return;S0.set(this.visualElement,this);const i=this.visualElement.current,s=Qt(i,"pointerdown",m=>{const{drag:g,dragListener:v=!0}=this.getProps();g&&v&&this.start(m)}),a=()=>{const{dragConstraints:m}=this.getProps();cr(m)&&m.current&&(this.constraints=this.resolveRefConstraints())},{projection:c}=this.visualElement,h=c.addEventListener("measure",a);c&&!c.layout&&(c.root&&c.root.updateScroll(),c.updateLayout()),pe.read(a);const f=$t(window,"resize",()=>this.scalePositionWithinConstraints()),p=c.addEventListener("didUpdate",({delta:m,hasLayoutChanged:g})=>{this.isDragging&&g&&(wt(v=>{const S=this.getAxisMotionValue(v);S&&(this.originPoint[v]+=m[v].translate,S.set(S.get()+m[v].translate))}),this.visualElement.render())});return()=>{f(),s(),h(),p&&p()}}getProps(){const i=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:a=!1,dragPropagation:c=!1,dragConstraints:h=!1,dragElastic:f=ya,dragMomentum:p=!0}=i;return{...i,drag:s,dragDirectionLock:a,dragPropagation:c,dragConstraints:h,dragElastic:f,dragMomentum:p}}}function Lo(r,i,s){return(i===!0||i===r)&&(s===null||s===r)}function P0(r,i=10){let s=null;return Math.abs(r.y)>i?s="y":Math.abs(r.x)>i&&(s="x"),s}class T0 extends vn{constructor(i){super(i),this.removeGroupControls=Ge,this.removeListeners=Ge,this.controls=new x0(i)}mount(){const{dragControls:i}=this.node.getProps();i&&(this.removeGroupControls=i.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ge}unmount(){this.removeGroupControls(),this.removeListeners()}}const Ud=r=>(i,s)=>{r&&pe.postRender(()=>r(i,s))};class k0 extends vn{constructor(){super(...arguments),this.removePointerDownListener=Ge}onPointerDown(i){this.session=new sp(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:yp(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:s,onPan:a,onPanEnd:c}=this.node.getProps();return{onSessionStart:Ud(i),onStart:Ud(s),onMove:a,onEnd:(h,f)=>{delete this.session,c&&pe.postRender(()=>c(h,f))}}}mount(){this.removePointerDownListener=Qt(this.node.current,"pointerdown",i=>this.onPointerDown(i))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Ka=J.createContext(null);function C0(){const r=J.useContext(Ka);if(r===null)return[!0,null];const{isPresent:i,onExitComplete:s,register:a}=r,c=J.useId();J.useEffect(()=>a(c),[]);const h=J.useCallback(()=>s&&s(c),[c,s]);return!i&&s?[!1,h]:[!0]}const vp=J.createContext({}),wp=J.createContext({}),_o={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Wd(r,i){return i.max===i.min?0:r/(i.max-i.min)*100}const ii={correct:(r,i)=>{if(!i.target)return r;if(typeof r=="string")if(q.test(r))r=parseFloat(r);else return r;const s=Wd(r,i.target.x),a=Wd(r,i.target.y);return`${s}% ${a}%`}},E0={correct:(r,{treeScale:i,projectionDelta:s})=>{const a=r,c=yn.parse(r);if(c.length>5)return a;const h=yn.createTransformer(r),f=typeof c[0]!="number"?1:0,p=s.x.scale*i.x,m=s.y.scale*i.y;c[0+f]/=p,c[1+f]/=m;const g=ke(p,m,.5);return typeof c[2+f]=="number"&&(c[2+f]/=g),typeof c[3+f]=="number"&&(c[3+f]/=g),h(c)}},Bo={};function R0(r){Object.assign(Bo,r)}const{schedule:Ga,cancel:pw}=vh(queueMicrotask,!1);class A0 extends J.Component{componentDidMount(){const{visualElement:i,layoutGroup:s,switchLayoutGroup:a,layoutId:c}=this.props,{projection:h}=i;R0(M0),h&&(s.group&&s.group.add(h),a&&a.register&&c&&a.register(h),h.root.didUpdate(),h.addEventListener("animationComplete",()=>{this.safeToRemove()}),h.setOptions({...h.options,onExitComplete:()=>this.safeToRemove()})),_o.hasEverUpdated=!0}getSnapshotBeforeUpdate(i){const{layoutDependency:s,visualElement:a,drag:c,isPresent:h}=this.props,f=a.projection;return f&&(f.isPresent=h,c||i.layoutDependency!==s||s===void 0?f.willUpdate():this.safeToRemove(),i.isPresent!==h&&(h?f.promote():f.relegate()||pe.postRender(()=>{const p=f.getStack();(!p||!p.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:i}=this.props.visualElement;i&&(i.root.didUpdate(),Ga.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:s,switchLayoutGroup:a}=this.props,{projection:c}=i;c&&(c.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(c),a&&a.deregister&&a.deregister(c))}safeToRemove(){const{safeToRemove:i}=this.props;i&&i()}render(){return null}}function Sp(r){const[i,s]=C0(),a=J.useContext(vp);return re.jsx(A0,{...r,layoutGroup:a,switchLayoutGroup:J.useContext(wp),isPresent:i,safeToRemove:s})}const M0={borderRadius:{...ii,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ii,borderTopRightRadius:ii,borderBottomLeftRadius:ii,borderBottomRightRadius:ii,boxShadow:E0},xp=["TopLeft","TopRight","BottomLeft","BottomRight"],D0=xp.length,$d=r=>typeof r=="string"?parseFloat(r):r,Hd=r=>typeof r=="number"||q.test(r);function L0(r,i,s,a,c,h){c?(r.opacity=ke(0,s.opacity!==void 0?s.opacity:1,V0(a)),r.opacityExit=ke(i.opacity!==void 0?i.opacity:1,0,_0(a))):h&&(r.opacity=ke(i.opacity!==void 0?i.opacity:1,s.opacity!==void 0?s.opacity:1,a));for(let f=0;f<D0;f++){const p=`border${xp[f]}Radius`;let m=Kd(i,p),g=Kd(s,p);if(m===void 0&&g===void 0)continue;m||(m=0),g||(g=0),m===0||g===0||Hd(m)===Hd(g)?(r[p]=Math.max(ke($d(m),$d(g),a),0),(_t.test(g)||_t.test(m))&&(r[p]+="%")):r[p]=g}(i.rotate||s.rotate)&&(r.rotate=ke(i.rotate||0,s.rotate||0,a))}function Kd(r,i){return r[i]!==void 0?r[i]:r.borderRadius}const V0=Pp(0,.5,Ch),_0=Pp(.5,.95,Ge);function Pp(r,i,s){return a=>a<r?0:a>i?1:s(mr(r,i,a))}function Gd(r,i){r.min=i.min,r.max=i.max}function vt(r,i){Gd(r.x,i.x),Gd(r.y,i.y)}function Qd(r,i){r.translate=i.translate,r.scale=i.scale,r.originPoint=i.originPoint,r.origin=i.origin}function Yd(r,i,s,a,c){return r-=i,r=zo(r,1/s,a),c!==void 0&&(r=zo(r,1/c,a)),r}function N0(r,i=0,s=1,a=.5,c,h=r,f=r){if(_t.test(i)&&(i=parseFloat(i),i=ke(f.min,f.max,i/100)-f.min),typeof i!="number")return;let p=ke(h.min,h.max,a);r===h&&(p-=i),r.min=Yd(r.min,i,s,p,c),r.max=Yd(r.max,i,s,p,c)}function Xd(r,i,[s,a,c],h,f){N0(r,i[s],i[a],i[c],i.scale,h,f)}const F0=["x","scaleX","originX"],j0=["y","scaleY","originY"];function Zd(r,i,s,a){Xd(r.x,i,F0,s?s.x:void 0,a?a.x:void 0),Xd(r.y,i,j0,s?s.y:void 0,a?a.y:void 0)}function qd(r){return r.translate===0&&r.scale===1}function Tp(r){return qd(r.x)&&qd(r.y)}function Jd(r,i){return r.min===i.min&&r.max===i.max}function O0(r,i){return Jd(r.x,i.x)&&Jd(r.y,i.y)}function bd(r,i){return Math.round(r.min)===Math.round(i.min)&&Math.round(r.max)===Math.round(i.max)}function kp(r,i){return bd(r.x,i.x)&&bd(r.y,i.y)}function eh(r){return ft(r.x)/ft(r.y)}function th(r,i){return r.translate===i.translate&&r.scale===i.scale&&r.originPoint===i.originPoint}class I0{constructor(){this.members=[]}add(i){Ua(this.members,i),i.scheduleRender()}remove(i){if(Wa(this.members,i),i===this.prevLead&&(this.prevLead=void 0),i===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(i){const s=this.members.findIndex(c=>i===c);if(s===0)return!1;let a;for(let c=s;c>=0;c--){const h=this.members[c];if(h.isPresent!==!1){a=h;break}}return a?(this.promote(a),!0):!1}promote(i,s){const a=this.lead;if(i!==a&&(this.prevLead=a,this.lead=i,i.show(),a)){a.instance&&a.scheduleRender(),i.scheduleRender(),i.resumeFrom=a,s&&(i.resumeFrom.preserveOpacity=!0),a.snapshot&&(i.snapshot=a.snapshot,i.snapshot.latestValues=a.animationValues||a.latestValues),i.root&&i.root.isUpdating&&(i.isLayoutDirty=!0);const{crossfade:c}=i.options;c===!1&&a.hide()}}exitAnimationComplete(){this.members.forEach(i=>{const{options:s,resumingFrom:a}=i;s.onExitComplete&&s.onExitComplete(),a&&a.options.onExitComplete&&a.options.onExitComplete()})}scheduleRender(){this.members.forEach(i=>{i.instance&&i.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function z0(r,i,s){let a="";const c=r.x.translate/i.x,h=r.y.translate/i.y,f=s?.z||0;if((c||h||f)&&(a=`translate3d(${c}px, ${h}px, ${f}px) `),(i.x!==1||i.y!==1)&&(a+=`scale(${1/i.x}, ${1/i.y}) `),s){const{transformPerspective:g,rotate:v,rotateX:S,rotateY:P,skewX:R,skewY:V}=s;g&&(a=`perspective(${g}px) ${a}`),v&&(a+=`rotate(${v}deg) `),S&&(a+=`rotateX(${S}deg) `),P&&(a+=`rotateY(${P}deg) `),R&&(a+=`skewX(${R}deg) `),V&&(a+=`skewY(${V}deg) `)}const p=r.x.scale*i.x,m=r.y.scale*i.y;return(p!==1||m!==1)&&(a+=`scale(${p}, ${m})`),a||"none"}const B0=(r,i)=>r.depth-i.depth;class U0{constructor(){this.children=[],this.isDirty=!1}add(i){Ua(this.children,i),this.isDirty=!0}remove(i){Wa(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(B0),this.isDirty=!1,this.children.forEach(i)}}function No(r){const i=Ke(r)?r.get():r;return Vv(i)?i.toValue():i}function W0(r,i){const s=Nt.now(),a=({timestamp:c})=>{const h=c-s;h>=i&&(gn(a),r(h-i))};return pe.read(a,!0),()=>gn(a)}function $0(r){return r instanceof SVGElement&&r.tagName!=="svg"}function H0(r,i,s){const a=Ke(r)?r:hi(r);return a.start(Ba("",a,i,s)),a.animation}const Nn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},si=typeof window<"u"&&window.MotionDebug!==void 0,ea=["","X","Y","Z"],K0={visibility:"hidden"},nh=1e3;let G0=0;function ta(r,i,s,a){const{latestValues:c}=i;c[r]&&(s[r]=c[r],i.setStaticValue(r,0),a&&(a[r]=0))}function Cp(r){if(r.hasCheckedOptimisedAppear=!0,r.root===r)return;const{visualElement:i}=r.options;if(!i)return;const s=np(i);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:c,layoutId:h}=r.options;window.MotionCancelOptimisedAnimation(s,"transform",pe,!(c||h))}const{parent:a}=r;a&&!a.hasCheckedOptimisedAppear&&Cp(a)}function Ep({attachResizeListener:r,defaultParent:i,measureScroll:s,checkIsScrollRoot:a,resetTransform:c}){return class{constructor(f={},p=i?.()){this.id=G0++,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,si&&(Nn.totalNodes=Nn.resolvedTargetDeltas=Nn.recalculatedProjection=0),this.nodes.forEach(X0),this.nodes.forEach(e1),this.nodes.forEach(t1),this.nodes.forEach(Z0),si&&window.MotionDebug.record(Nn)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,this.root=p?p.root||p:this,this.path=p?[...p.path,p]:[],this.parent=p,this.depth=p?p.depth+1:0;for(let m=0;m<this.path.length;m++)this.path[m].shouldResetTransform=!0;this.root===this&&(this.nodes=new U0)}addEventListener(f,p){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new $a),this.eventHandlers.get(f).add(p)}notifyListeners(f,...p){const m=this.eventHandlers.get(f);m&&m.notify(...p)}hasListeners(f){return this.eventHandlers.has(f)}mount(f,p=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=$0(f),this.instance=f;const{layoutId:m,layout:g,visualElement:v}=this.options;if(v&&!v.current&&v.mount(f),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),p&&(g||m)&&(this.isLayoutDirty=!0),r){let S;const P=()=>this.root.updateBlockedByResize=!1;r(f,()=>{this.root.updateBlockedByResize=!0,S&&S(),S=W0(P,250),_o.hasAnimatedSinceResize&&(_o.hasAnimatedSinceResize=!1,this.nodes.forEach(ih))})}m&&this.root.registerSharedNode(m,this),this.options.animate!==!1&&v&&(m||g)&&this.addEventListener("didUpdate",({delta:S,hasLayoutChanged:P,hasRelativeTargetChanged:R,layout:V})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const M=this.options.transition||v.getDefaultTransition()||s1,{onLayoutAnimationStart:N,onLayoutAnimationComplete:j}=v.getProps(),B=!this.targetLayout||!kp(this.targetLayout,V)||R,$=!P&&R;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||$||P&&(B||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(S,$);const ee={...Ea(M,"layout"),onPlay:N,onComplete:j};(v.shouldReduceMotion||this.options.layoutRoot)&&(ee.delay=0,ee.type=!1),this.startAnimation(ee)}else P||ih(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=V})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const f=this.getStack();f&&f.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,gn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(n1),this.animationId++)}getTransformTemplate(){const{visualElement:f}=this.options;return f&&f.getProps().transformTemplate}willUpdate(f=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Cp(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const S=this.path[v];S.shouldResetTransform=!0,S.updateScroll("snapshot"),S.options.layoutRoot&&S.willUpdate(!1)}const{layoutId:p,layout:m}=this.options;if(p===void 0&&!m)return;const g=this.getTransformTemplate();this.prevTransformTemplateValue=g?g(this.latestValues,""):void 0,this.updateSnapshot(),f&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(rh);return}this.isUpdating||this.nodes.forEach(J0),this.isUpdating=!1,this.nodes.forEach(b0),this.nodes.forEach(Q0),this.nodes.forEach(Y0),this.clearAllSnapshots();const p=Nt.now();ze.delta=Yt(0,1e3/60,p-ze.timestamp),ze.timestamp=p,ze.isProcessing=!0,Gl.update.process(ze),Gl.preRender.process(ze),Gl.render.process(ze),ze.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ga.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(q0),this.sharedNodes.forEach(r1)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,pe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){pe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let m=0;m<this.path.length;m++)this.path[m].updateScroll();const f=this.layout;this.layout=this.measure(!1),this.layoutCorrected=De(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:p}=this.options;p&&p.notify("LayoutMeasure",this.layout.layoutBox,f?f.layoutBox:void 0)}updateScroll(f="measure"){let p=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===f&&(p=!1),p){const m=a(this.instance);this.scroll={animationId:this.root.animationId,phase:f,isRoot:m,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:m}}}resetTransform(){if(!c)return;const f=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,p=this.projectionDelta&&!Tp(this.projectionDelta),m=this.getTransformTemplate(),g=m?m(this.latestValues,""):void 0,v=g!==this.prevTransformTemplateValue;f&&(p||_n(this.latestValues)||v)&&(c(this.instance,g),this.shouldResetTransform=!1,this.scheduleRender())}measure(f=!0){const p=this.measurePageBox();let m=this.removeElementScroll(p);return f&&(m=this.removeTransform(m)),l1(m),{animationId:this.root.animationId,measuredBox:p,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){var f;const{visualElement:p}=this.options;if(!p)return De();const m=p.measureViewportBox();if(!(((f=this.scroll)===null||f===void 0?void 0:f.wasRoot)||this.path.some(a1))){const{scroll:v}=this.root;v&&(dr(m.x,v.offset.x),dr(m.y,v.offset.y))}return m}removeElementScroll(f){var p;const m=De();if(vt(m,f),!((p=this.scroll)===null||p===void 0)&&p.wasRoot)return m;for(let g=0;g<this.path.length;g++){const v=this.path[g],{scroll:S,options:P}=v;v!==this.root&&S&&P.layoutScroll&&(S.wasRoot&&vt(m,f),dr(m.x,S.offset.x),dr(m.y,S.offset.y))}return m}applyTransform(f,p=!1){const m=De();vt(m,f);for(let g=0;g<this.path.length;g++){const v=this.path[g];!p&&v.options.layoutScroll&&v.scroll&&v!==v.root&&hr(m,{x:-v.scroll.offset.x,y:-v.scroll.offset.y}),_n(v.latestValues)&&hr(m,v.latestValues)}return _n(this.latestValues)&&hr(m,this.latestValues),m}removeTransform(f){const p=De();vt(p,f);for(let m=0;m<this.path.length;m++){const g=this.path[m];if(!g.instance||!_n(g.latestValues))continue;va(g.latestValues)&&g.updateSnapshot();const v=De(),S=g.measurePageBox();vt(v,S),Zd(p,g.latestValues,g.snapshot?g.snapshot.layoutBox:void 0,v)}return _n(this.latestValues)&&Zd(p,this.latestValues),p}setTargetDelta(f){this.targetDelta=f,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(f){this.options={...this.options,...f,crossfade:f.crossfade!==void 0?f.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ze.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(f=!1){var p;const m=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=m.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=m.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=m.isSharedProjectionDirty);const g=!!this.resumingFrom||this!==m;if(!(f||g&&this.isSharedProjectionDirty||this.isProjectionDirty||!((p=this.parent)===null||p===void 0)&&p.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:S,layoutId:P}=this.options;if(!(!this.layout||!(S||P))){if(this.resolvedRelativeTargetAt=ze.timestamp,!this.targetDelta&&!this.relativeTarget){const R=this.getClosestProjectingParent();R&&R.layout&&this.animationProgress!==1?(this.relativeParent=R,this.forceRelativeParentToResolveTarget(),this.relativeTarget=De(),this.relativeTargetOrigin=De(),ui(this.relativeTargetOrigin,this.layout.layoutBox,R.layout.layoutBox),vt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=De(),this.targetWithTransforms=De()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),u0(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):vt(this.target,this.layout.layoutBox),mp(this.target,this.targetDelta)):vt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const R=this.getClosestProjectingParent();R&&!!R.resumingFrom==!!this.resumingFrom&&!R.options.layoutScroll&&R.target&&this.animationProgress!==1?(this.relativeParent=R,this.forceRelativeParentToResolveTarget(),this.relativeTarget=De(),this.relativeTargetOrigin=De(),ui(this.relativeTargetOrigin,this.target,R.target),vt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}si&&Nn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||va(this.parent.latestValues)||pp(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 f;const p=this.getLead(),m=!!this.resumingFrom||this!==p;let g=!0;if((this.isProjectionDirty||!((f=this.parent)===null||f===void 0)&&f.isProjectionDirty)&&(g=!1),m&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(g=!1),this.resolvedRelativeTargetAt===ze.timestamp&&(g=!1),g)return;const{layout:v,layoutId:S}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(v||S))return;vt(this.layoutCorrected,this.layout.layoutBox);const P=this.treeScale.x,R=this.treeScale.y;v0(this.layoutCorrected,this.treeScale,this.path,m),p.layout&&!p.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(p.target=p.layout.layoutBox,p.targetWithTransforms=De());const{target:V}=p;if(!V){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Qd(this.prevProjectionDelta.x,this.projectionDelta.x),Qd(this.prevProjectionDelta.y,this.projectionDelta.y)),ai(this.projectionDelta,this.layoutCorrected,V,this.latestValues),(this.treeScale.x!==P||this.treeScale.y!==R||!th(this.projectionDelta.x,this.prevProjectionDelta.x)||!th(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",V)),si&&Nn.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(f=!0){var p;if((p=this.options.visualElement)===null||p===void 0||p.scheduleRender(),f){const m=this.getStack();m&&m.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=fr(),this.projectionDelta=fr(),this.projectionDeltaWithTransform=fr()}setAnimationOrigin(f,p=!1){const m=this.snapshot,g=m?m.latestValues:{},v={...this.latestValues},S=fr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!p;const P=De(),R=m?m.source:void 0,V=this.layout?this.layout.source:void 0,M=R!==V,N=this.getStack(),j=!N||N.members.length<=1,B=!!(M&&!j&&this.options.crossfade===!0&&!this.path.some(o1));this.animationProgress=0;let $;this.mixTargetDelta=ee=>{const G=ee/1e3;oh(S.x,f.x,G),oh(S.y,f.y,G),this.setTargetDelta(S),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ui(P,this.layout.layoutBox,this.relativeParent.layout.layoutBox),i1(this.relativeTarget,this.relativeTargetOrigin,P,G),$&&O0(this.relativeTarget,$)&&(this.isProjectionDirty=!1),$||($=De()),vt($,this.relativeTarget)),M&&(this.animationValues=v,L0(v,g,this.latestValues,G,B,j)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=G},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(gn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=pe.update(()=>{_o.hasAnimatedSinceResize=!0,this.currentAnimation=H0(0,nh,{...f,onUpdate:p=>{this.mixTargetDelta(p),f.onUpdate&&f.onUpdate(p)},onComplete:()=>{f.onComplete&&f.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const f=this.getStack();f&&f.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(nh),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:p,target:m,layout:g,latestValues:v}=f;if(!(!p||!m||!g)){if(this!==f&&this.layout&&g&&Rp(this.options.animationType,this.layout.layoutBox,g.layoutBox)){m=this.target||De();const S=ft(this.layout.layoutBox.x);m.x.min=f.target.x.min,m.x.max=m.x.min+S;const P=ft(this.layout.layoutBox.y);m.y.min=f.target.y.min,m.y.max=m.y.min+P}vt(p,m),hr(p,v),ai(this.projectionDeltaWithTransform,this.layoutCorrected,p,v)}}registerSharedNode(f,p){this.sharedNodes.has(f)||this.sharedNodes.set(f,new I0),this.sharedNodes.get(f).add(p);const g=p.options.initialPromotionConfig;p.promote({transition:g?g.transition:void 0,preserveFollowOpacity:g&&g.shouldPreserveFollowOpacity?g.shouldPreserveFollowOpacity(p):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){var f;const{layoutId:p}=this.options;return p?((f=this.getStack())===null||f===void 0?void 0:f.lead)||this:this}getPrevLead(){var f;const{layoutId:p}=this.options;return p?(f=this.getStack())===null||f===void 0?void 0:f.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:p,preserveFollowOpacity:m}={}){const g=this.getStack();g&&g.promote(this,m),f&&(this.projectionDelta=void 0,this.needsReset=!0),p&&this.setOptions({transition:p})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let p=!1;const{latestValues:m}=f;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(p=!0),!p)return;const g={};m.z&&ta("z",f,g,this.animationValues);for(let v=0;v<ea.length;v++)ta(`rotate${ea[v]}`,f,g,this.animationValues),ta(`skew${ea[v]}`,f,g,this.animationValues);f.render();for(const v in g)f.setStaticValue(v,g[v]),this.animationValues&&(this.animationValues[v]=g[v]);f.scheduleRender()}getProjectionStyles(f){var p,m;if(!this.instance||this.isSVG)return;if(!this.isVisible)return K0;const g={visibility:""},v=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,g.opacity="",g.pointerEvents=No(f?.pointerEvents)||"",g.transform=v?v(this.latestValues,""):"none",g;const S=this.getLead();if(!this.projectionDelta||!this.layout||!S.target){const M={};return this.options.layoutId&&(M.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,M.pointerEvents=No(f?.pointerEvents)||""),this.hasProjected&&!_n(this.latestValues)&&(M.transform=v?v({},""):"none",this.hasProjected=!1),M}const P=S.animationValues||S.latestValues;this.applyTransformsToTarget(),g.transform=z0(this.projectionDeltaWithTransform,this.treeScale,P),v&&(g.transform=v(P,g.transform));const{x:R,y:V}=this.projectionDelta;g.transformOrigin=`${R.origin*100}% ${V.origin*100}% 0`,S.animationValues?g.opacity=S===this?(m=(p=P.opacity)!==null&&p!==void 0?p:this.latestValues.opacity)!==null&&m!==void 0?m:1:this.preserveOpacity?this.latestValues.opacity:P.opacityExit:g.opacity=S===this?P.opacity!==void 0?P.opacity:"":P.opacityExit!==void 0?P.opacityExit:0;for(const M in Bo){if(P[M]===void 0)continue;const{correct:N,applyTo:j}=Bo[M],B=g.transform==="none"?P[M]:N(P[M],S);if(j){const $=j.length;for(let ee=0;ee<$;ee++)g[j[ee]]=B}else g[M]=B}return this.options.layoutId&&(g.pointerEvents=S===this?No(f?.pointerEvents)||"":"none"),g}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(f=>{var p;return(p=f.currentAnimation)===null||p===void 0?void 0:p.stop()}),this.root.nodes.forEach(rh),this.root.sharedNodes.clear()}}}function Q0(r){r.updateLayout()}function Y0(r){var i;const s=((i=r.resumeFrom)===null||i===void 0?void 0:i.snapshot)||r.snapshot;if(r.isLead()&&r.layout&&s&&r.hasListeners("didUpdate")){const{layoutBox:a,measuredBox:c}=r.layout,{animationType:h}=r.options,f=s.source!==r.layout.source;h==="size"?wt(S=>{const P=f?s.measuredBox[S]:s.layoutBox[S],R=ft(P);P.min=a[S].min,P.max=P.min+R}):Rp(h,s.layoutBox,a)&&wt(S=>{const P=f?s.measuredBox[S]:s.layoutBox[S],R=ft(a[S]);P.max=P.min+R,r.relativeTarget&&!r.currentAnimation&&(r.isProjectionDirty=!0,r.relativeTarget[S].max=r.relativeTarget[S].min+R)});const p=fr();ai(p,a,s.layoutBox);const m=fr();f?ai(m,r.applyTransform(c,!0),s.measuredBox):ai(m,a,s.layoutBox);const g=!Tp(p);let v=!1;if(!r.resumeFrom){const S=r.getClosestProjectingParent();if(S&&!S.resumeFrom){const{snapshot:P,layout:R}=S;if(P&&R){const V=De();ui(V,s.layoutBox,P.layoutBox);const M=De();ui(M,a,R.layoutBox),kp(V,M)||(v=!0),S.options.layoutRoot&&(r.relativeTarget=M,r.relativeTargetOrigin=V,r.relativeParent=S)}}}r.notifyListeners("didUpdate",{layout:a,snapshot:s,delta:m,layoutDelta:p,hasLayoutChanged:g,hasRelativeTargetChanged:v})}else if(r.isLead()){const{onExitComplete:a}=r.options;a&&a()}r.options.transition=void 0}function X0(r){si&&Nn.totalNodes++,r.parent&&(r.isProjecting()||(r.isProjectionDirty=r.parent.isProjectionDirty),r.isSharedProjectionDirty||(r.isSharedProjectionDirty=!!(r.isProjectionDirty||r.parent.isProjectionDirty||r.parent.isSharedProjectionDirty)),r.isTransformDirty||(r.isTransformDirty=r.parent.isTransformDirty))}function Z0(r){r.isProjectionDirty=r.isSharedProjectionDirty=r.isTransformDirty=!1}function q0(r){r.clearSnapshot()}function rh(r){r.clearMeasurements()}function J0(r){r.isLayoutDirty=!1}function b0(r){const{visualElement:i}=r.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),r.resetTransform()}function ih(r){r.finishAnimation(),r.targetDelta=r.relativeTarget=r.target=void 0,r.isProjectionDirty=!0}function e1(r){r.resolveTargetDelta()}function t1(r){r.calcProjection()}function n1(r){r.resetSkewAndRotation()}function r1(r){r.removeLeadSnapshot()}function oh(r,i,s){r.translate=ke(i.translate,0,s),r.scale=ke(i.scale,1,s),r.origin=i.origin,r.originPoint=i.originPoint}function sh(r,i,s,a){r.min=ke(i.min,s.min,a),r.max=ke(i.max,s.max,a)}function i1(r,i,s,a){sh(r.x,i.x,s.x,a),sh(r.y,i.y,s.y,a)}function o1(r){return r.animationValues&&r.animationValues.opacityExit!==void 0}const s1={duration:.45,ease:[.4,0,.1,1]},lh=r=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(r),ah=lh("applewebkit/")&&!lh("chrome/")?Math.round:Ge;function uh(r){r.min=ah(r.min),r.max=ah(r.max)}function l1(r){uh(r.x),uh(r.y)}function Rp(r,i,s){return r==="position"||r==="preserve-aspect"&&!a0(eh(i),eh(s),.2)}function a1(r){var i;return r!==r.root&&((i=r.scroll)===null||i===void 0?void 0:i.wasRoot)}const u1=Ep({attachResizeListener:(r,i)=>$t(r,"resize",i),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),na={current:void 0},Ap=Ep({measureScroll:r=>({x:r.scrollLeft,y:r.scrollTop}),defaultParent:()=>{if(!na.current){const r=new u1({});r.mount(window),r.setOptions({layoutScroll:!0}),na.current=r}return na.current},resetTransform:(r,i)=>{r.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:r=>window.getComputedStyle(r).position==="fixed"}),c1={pan:{Feature:k0},drag:{Feature:T0,ProjectionNode:Ap,MeasureLayout:Sp}};function ch(r,i){const s=i?"pointerenter":"pointerleave",a=i?"onHoverStart":"onHoverEnd",c=(h,f)=>{if(h.pointerType==="touch"||cp())return;const p=r.getProps();r.animationState&&p.whileHover&&r.animationState.setActive("whileHover",i);const m=p[a];m&&pe.postRender(()=>m(h,f))};return Qt(r.current,s,c,{passive:!r.getProps()[a]})}class f1 extends vn{mount(){this.unmount=Gt(ch(this.node,!0),ch(this.node,!1))}unmount(){}}class d1 extends vn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let i=!1;try{i=this.node.current.matches(":focus-visible")}catch{i=!0}!i||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Gt($t(this.node.current,"focus",()=>this.onFocus()),$t(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Mp=(r,i)=>i?r===i?!0:Mp(r,i.parentElement):!1;function ra(r,i){if(!i)return;const s=new PointerEvent("pointer"+r);i(s,Ko(s))}class h1 extends vn{constructor(){super(...arguments),this.removeStartListeners=Ge,this.removeEndListeners=Ge,this.removeAccessibleListeners=Ge,this.startPointerPress=(i,s)=>{if(this.isPressing)return;this.removeEndListeners();const a=this.node.getProps(),h=Qt(window,"pointerup",(p,m)=>{if(!this.checkPressEnd())return;const{onTap:g,onTapCancel:v,globalTapTarget:S}=this.node.getProps(),P=!S&&!Mp(this.node.current,p.target)?v:g;P&&pe.update(()=>P(p,m))},{passive:!(a.onTap||a.onPointerUp)}),f=Qt(window,"pointercancel",(p,m)=>this.cancelPress(p,m),{passive:!(a.onTapCancel||a.onPointerCancel)});this.removeEndListeners=Gt(h,f),this.startPress(i,s)},this.startAccessiblePress=()=>{const i=h=>{if(h.key!=="Enter"||this.isPressing)return;const f=p=>{p.key!=="Enter"||!this.checkPressEnd()||ra("up",(m,g)=>{const{onTap:v}=this.node.getProps();v&&pe.postRender(()=>v(m,g))})};this.removeEndListeners(),this.removeEndListeners=$t(this.node.current,"keyup",f),ra("down",(p,m)=>{this.startPress(p,m)})},s=$t(this.node.current,"keydown",i),a=()=>{this.isPressing&&ra("cancel",(h,f)=>this.cancelPress(h,f))},c=$t(this.node.current,"blur",a);this.removeAccessibleListeners=Gt(s,c)}}startPress(i,s){this.isPressing=!0;const{onTapStart:a,whileTap:c}=this.node.getProps();c&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),a&&pe.postRender(()=>a(i,s))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!cp()}cancelPress(i,s){if(!this.checkPressEnd())return;const{onTapCancel:a}=this.node.getProps();a&&pe.postRender(()=>a(i,s))}mount(){const i=this.node.getProps(),s=Qt(i.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(i.onTapStart||i.onPointerStart)}),a=$t(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Gt(s,a)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Sa=new WeakMap,ia=new WeakMap,p1=r=>{const i=Sa.get(r.target);i&&i(r)},m1=r=>{r.forEach(p1)};function g1({root:r,...i}){const s=r||document;ia.has(s)||ia.set(s,{});const a=ia.get(s),c=JSON.stringify(i);return a[c]||(a[c]=new IntersectionObserver(m1,{root:r,...i})),a[c]}function y1(r,i,s){const a=g1(i);return Sa.set(r,s),a.observe(r),()=>{Sa.delete(r),a.unobserve(r)}}const v1={some:0,all:1};class w1 extends vn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:i={}}=this.node.getProps(),{root:s,margin:a,amount:c="some",once:h}=i,f={root:s?s.current:void 0,rootMargin:a,threshold:typeof c=="number"?c:v1[c]},p=m=>{const{isIntersecting:g}=m;if(this.isInView===g||(this.isInView=g,h&&!g&&this.hasEnteredView))return;g&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",g);const{onViewportEnter:v,onViewportLeave:S}=this.node.getProps(),P=g?v:S;P&&P(m)};return y1(this.node.current,f,p)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:i,prevProps:s}=this.node;["amount","margin","root"].some(S1(i,s))&&this.startObserver()}unmount(){}}function S1({viewport:r={}},{viewport:i={}}={}){return s=>r[s]!==i[s]}const x1={inView:{Feature:w1},tap:{Feature:h1},focus:{Feature:d1},hover:{Feature:f1}},P1={layout:{ProjectionNode:Ap,MeasureLayout:Sp}},Dp=J.createContext({transformPagePoint:r=>r,isStatic:!1,reducedMotion:"never"}),Go=J.createContext({}),Qa=typeof window<"u",T1=Qa?J.useLayoutEffect:J.useEffect,Lp=J.createContext({strict:!1});function k1(r,i,s,a,c){var h,f;const{visualElement:p}=J.useContext(Go),m=J.useContext(Lp),g=J.useContext(Ka),v=J.useContext(Dp).reducedMotion,S=J.useRef();a=a||m.renderer,!S.current&&a&&(S.current=a(r,{visualState:i,parent:p,props:s,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:v}));const P=S.current,R=J.useContext(wp);P&&!P.projection&&c&&(P.type==="html"||P.type==="svg")&&C1(S.current,s,c,R);const V=J.useRef(!1);J.useInsertionEffect(()=>{P&&V.current&&P.update(s,g)});const M=s[tp],N=J.useRef(!!M&&!(!((h=window.MotionHandoffIsComplete)===null||h===void 0)&&h.call(window,M))&&((f=window.MotionHasOptimisedAnimation)===null||f===void 0?void 0:f.call(window,M)));return T1(()=>{P&&(V.current=!0,window.MotionIsMounted=!0,P.updateFeatures(),Ga.render(P.render),N.current&&P.animationState&&P.animationState.animateChanges())}),J.useEffect(()=>{P&&(!N.current&&P.animationState&&P.animationState.animateChanges(),N.current&&(queueMicrotask(()=>{var j;(j=window.MotionHandoffMarkAsComplete)===null||j===void 0||j.call(window,M)}),N.current=!1))}),P}function C1(r,i,s,a){const{layoutId:c,layout:h,drag:f,dragConstraints:p,layoutScroll:m,layoutRoot:g}=i;r.projection=new s(r.latestValues,i["data-framer-portal-id"]?void 0:Vp(r.parent)),r.projection.setOptions({layoutId:c,layout:h,alwaysMeasureLayout:!!f||p&&cr(p),visualElement:r,animationType:typeof h=="string"?h:"both",initialPromotionConfig:a,layoutScroll:m,layoutRoot:g})}function Vp(r){if(r)return r.options.allowProjection!==!1?r.projection:Vp(r.parent)}function E1(r,i,s){return J.useCallback(a=>{a&&r.mount&&r.mount(a),i&&(a?i.mount(a):i.unmount()),s&&(typeof s=="function"?s(a):cr(s)&&(s.current=a))},[i])}function Qo(r){return Wo(r.animate)||Ca.some(i=>ci(r[i]))}function _p(r){return!!(Qo(r)||r.variants)}function R1(r,i){if(Qo(r)){const{initial:s,animate:a}=r;return{initial:s===!1||ci(s)?s:void 0,animate:ci(a)?a:void 0}}return r.inherit!==!1?i:{}}function A1(r){const{initial:i,animate:s}=R1(r,J.useContext(Go));return J.useMemo(()=>({initial:i,animate:s}),[fh(i),fh(s)])}function fh(r){return Array.isArray(r)?r.join(" "):r}const dh={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},gr={};for(const r in dh)gr[r]={isEnabled:i=>dh[r].some(s=>!!i[s])};function M1(r){for(const i in r)gr[i]={...gr[i],...r[i]}}const D1=Symbol.for("motionComponentSymbol");function L1({preloadedFeatures:r,createVisualElement:i,useRender:s,useVisualState:a,Component:c}){r&&M1(r);function h(p,m){let g;const v={...J.useContext(Dp),...p,layoutId:V1(p)},{isStatic:S}=v,P=A1(p),R=a(p,S);if(!S&&Qa){_1();const V=N1(v);g=V.MeasureLayout,P.visualElement=k1(c,R,v,i,V.ProjectionNode)}return re.jsxs(Go.Provider,{value:P,children:[g&&P.visualElement?re.jsx(g,{visualElement:P.visualElement,...v}):null,s(c,p,E1(R,P.visualElement,m),R,S,P.visualElement)]})}const f=J.forwardRef(h);return f[D1]=c,f}function V1({layoutId:r}){const i=J.useContext(vp).id;return i&&r!==void 0?i+"-"+r:r}function _1(r,i){J.useContext(Lp).strict}function N1(r){const{drag:i,layout:s}=gr;if(!i&&!s)return{};const a={...i,...s};return{MeasureLayout:i?.isEnabled(r)||s?.isEnabled(r)?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}const F1=["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 Ya(r){return typeof r!="string"||r.includes("-")?!1:!!(F1.indexOf(r)>-1||/[A-Z]/u.test(r))}function Np(r,{style:i,vars:s},a,c){Object.assign(r.style,i,c&&c.getProjectionStyles(a));for(const h in s)r.style.setProperty(h,s[h])}const Fp=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 jp(r,i,s,a){Np(r,i,void 0,a);for(const c in i.attrs)r.setAttribute(Fp.has(c)?c:Ha(c),i.attrs[c])}function Op(r,{layout:i,layoutId:s}){return On.has(r)||r.startsWith("origin")||(i||s!==void 0)&&(!!Bo[r]||r==="opacity")}function Xa(r,i,s){var a;const{style:c}=r,h={};for(const f in c)(Ke(c[f])||i.style&&Ke(i.style[f])||Op(f,r)||((a=s?.getValue(f))===null||a===void 0?void 0:a.liveStyle)!==void 0)&&(h[f]=c[f]);return h}function Ip(r,i,s){const a=Xa(r,i,s);for(const c in r)if(Ke(r[c])||Ke(i[c])){const h=pi.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;a[h]=r[c]}return a}function j1(r){const i=J.useRef(null);return i.current===null&&(i.current=r()),i.current}function O1({scrapeMotionValuesFromProps:r,createRenderState:i,onMount:s},a,c,h){const f={latestValues:I1(a,c,h,r),renderState:i()};return s&&(f.mount=p=>s(a,p,f)),f}const zp=r=>(i,s)=>{const a=J.useContext(Go),c=J.useContext(Ka),h=()=>O1(r,i,a,c);return s?h():j1(h)};function I1(r,i,s,a){const c={},h=a(r,{});for(const P in h)c[P]=No(h[P]);let{initial:f,animate:p}=r;const m=Qo(r),g=_p(r);i&&g&&!m&&r.inherit!==!1&&(f===void 0&&(f=i.initial),p===void 0&&(p=i.animate));let v=s?s.initial===!1:!1;v=v||f===!1;const S=v?p:f;if(S&&typeof S!="boolean"&&!Wo(S)){const P=Array.isArray(S)?S:[S];for(let R=0;R<P.length;R++){const V=Ta(r,P[R]);if(V){const{transitionEnd:M,transition:N,...j}=V;for(const B in j){let $=j[B];if(Array.isArray($)){const ee=v?$.length-1:0;$=$[ee]}$!==null&&(c[B]=$)}for(const B in M)c[B]=M[B]}}}return c}const Za=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Bp=()=>({...Za(),attrs:{}}),Up=(r,i)=>i&&typeof r=="number"?i.transform(r):r,z1={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},B1=pi.length;function U1(r,i,s){let a="",c=!0;for(let h=0;h<B1;h++){const f=pi[h],p=r[f];if(p===void 0)continue;let m=!0;if(typeof p=="number"?m=p===(f.startsWith("scale")?1:0):m=parseFloat(p)===0,!m||s){const g=Up(p,_a[f]);if(!m){c=!1;const v=z1[f]||f;a+=`${v}(${g}) `}s&&(i[f]=g)}}return a=a.trim(),s?a=s(i,c?"":a):c&&(a="none"),a}function qa(r,i,s){const{style:a,vars:c,transformOrigin:h}=r;let f=!1,p=!1;for(const m in i){const g=i[m];if(On.has(m)){f=!0;continue}else if(Dh(m)){c[m]=g;continue}else{const v=Up(g,_a[m]);m.startsWith("origin")?(p=!0,h[m]=v):a[m]=v}}if(i.transform||(f||s?a.transform=U1(i,r.transform,s):a.transform&&(a.transform="none")),p){const{originX:m="50%",originY:g="50%",originZ:v=0}=h;a.transformOrigin=`${m} ${g} ${v}`}}function hh(r,i,s){return typeof r=="string"?r:q.transform(i+s*r)}function W1(r,i,s){const a=hh(i,r.x,r.width),c=hh(s,r.y,r.height);return`${a} ${c}`}const $1={offset:"stroke-dashoffset",array:"stroke-dasharray"},H1={offset:"strokeDashoffset",array:"strokeDasharray"};function K1(r,i,s=1,a=0,c=!0){r.pathLength=1;const h=c?$1:H1;r[h.offset]=q.transform(-a);const f=q.transform(i),p=q.transform(s);r[h.array]=`${f} ${p}`}function Ja(r,{attrX:i,attrY:s,attrScale:a,originX:c,originY:h,pathLength:f,pathSpacing:p=1,pathOffset:m=0,...g},v,S){if(qa(r,g,S),v){r.style.viewBox&&(r.attrs.viewBox=r.style.viewBox);return}r.attrs=r.style,r.style={};const{attrs:P,style:R,dimensions:V}=r;P.transform&&(V&&(R.transform=P.transform),delete P.transform),V&&(c!==void 0||h!==void 0||R.transform)&&(R.transformOrigin=W1(V,c!==void 0?c:.5,h!==void 0?h:.5)),i!==void 0&&(P.x=i),s!==void 0&&(P.y=s),a!==void 0&&(P.scale=a),f!==void 0&&K1(P,f,p,m,!1)}const ba=r=>typeof r=="string"&&r.toLowerCase()==="svg",G1={useVisualState:zp({scrapeMotionValuesFromProps:Ip,createRenderState:Bp,onMount:(r,i,{renderState:s,latestValues:a})=>{pe.read(()=>{try{s.dimensions=typeof i.getBBox=="function"?i.getBBox():i.getBoundingClientRect()}catch{s.dimensions={x:0,y:0,width:0,height:0}}}),pe.render(()=>{Ja(s,a,ba(i.tagName),r.transformTemplate),jp(i,s)})}})},Q1={useVisualState:zp({scrapeMotionValuesFromProps:Xa,createRenderState:Za})};function Wp(r,i,s){for(const a in i)!Ke(i[a])&&!Op(a,s)&&(r[a]=i[a])}function Y1({transformTemplate:r},i){return J.useMemo(()=>{const s=Za();return qa(s,i,r),Object.assign({},s.vars,s.style)},[i])}function X1(r,i){const s=r.style||{},a={};return Wp(a,s,r),Object.assign(a,Y1(r,i)),a}function Z1(r,i){const s={},a=X1(r,i);return r.drag&&r.dragListener!==!1&&(s.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=r.drag===!0?"none":`pan-${r.drag==="x"?"y":"x"}`),r.tabIndex===void 0&&(r.onTap||r.onTapStart||r.whileTap)&&(s.tabIndex=0),s.style=a,s}const q1=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 Uo(r){return r.startsWith("while")||r.startsWith("drag")&&r!=="draggable"||r.startsWith("layout")||r.startsWith("onTap")||r.startsWith("onPan")||r.startsWith("onLayout")||q1.has(r)}let $p=r=>!Uo(r);function J1(r){r&&($p=i=>i.startsWith("on")?!Uo(i):r(i))}try{J1(require("@emotion/is-prop-valid").default)}catch{}function b1(r,i,s){const a={};for(const c in r)c==="values"&&typeof r.values=="object"||($p(c)||s===!0&&Uo(c)||!i&&!Uo(c)||r.draggable&&c.startsWith("onDrag"))&&(a[c]=r[c]);return a}function ew(r,i,s,a){const c=J.useMemo(()=>{const h=Bp();return Ja(h,i,ba(a),r.transformTemplate),{...h.attrs,style:{...h.style}}},[i]);if(r.style){const h={};Wp(h,r.style,r),c.style={...h,...c.style}}return c}function tw(r=!1){return(s,a,c,{latestValues:h},f)=>{const m=(Ya(s)?ew:Z1)(a,h,f,s),g=b1(a,typeof s=="string",r),v=s!==J.Fragment?{...g,...m,ref:c}:{},{children:S}=a,P=J.useMemo(()=>Ke(S)?S.get():S,[S]);return J.createElement(s,{...v,children:P})}}function nw(r,i){return function(a,{forwardMotionProps:c}={forwardMotionProps:!1}){const f={...Ya(a)?G1:Q1,preloadedFeatures:r,useRender:tw(c),createVisualElement:i,Component:a};return L1(f)}}const xa={current:null},Hp={current:!1};function rw(){if(Hp.current=!0,!!Qa)if(window.matchMedia){const r=window.matchMedia("(prefers-reduced-motion)"),i=()=>xa.current=r.matches;r.addListener(i),i()}else xa.current=!1}function iw(r,i,s){for(const a in i){const c=i[a],h=s[a];if(Ke(c))r.addValue(a,c);else if(Ke(h))r.addValue(a,hi(c,{owner:r}));else if(h!==c)if(r.hasValue(a)){const f=r.getValue(a);f.liveStyle===!0?f.jump(c):f.hasAnimated||f.set(c)}else{const f=r.getStaticValue(a);r.addValue(a,hi(f!==void 0?f:c,{owner:r}))}}for(const a in s)i[a]===void 0&&r.removeValue(a);return i}const ph=new WeakMap,ow=[..._h,He,yn],sw=r=>ow.find(Vh(r)),mh=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class lw{scrapeMotionValuesFromProps(i,s,a){return{}}constructor({parent:i,props:s,presenceContext:a,reducedMotionConfig:c,blockInitialAnimation:h,visualState:f},p={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Da,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 P=Nt.now();this.renderScheduledAt<P&&(this.renderScheduledAt=P,pe.render(this.render,!1,!0))};const{latestValues:m,renderState:g}=f;this.latestValues=m,this.baseTarget={...m},this.initialValues=s.initial?{...m}:{},this.renderState=g,this.parent=i,this.props=s,this.presenceContext=a,this.depth=i?i.depth+1:0,this.reducedMotionConfig=c,this.options=p,this.blockInitialAnimation=!!h,this.isControllingVariants=Qo(s),this.isVariantNode=_p(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(i&&i.current);const{willChange:v,...S}=this.scrapeMotionValuesFromProps(s,{},this);for(const P in S){const R=S[P];m[P]!==void 0&&Ke(R)&&R.set(m[P],!1)}}mount(i){this.current=i,ph.set(i,this),this.projection&&!this.projection.instance&&this.projection.mount(i),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,a)=>this.bindToMotionValue(a,s)),Hp.current||rw(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:xa.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){ph.delete(this.current),this.projection&&this.projection.unmount(),gn(this.notifyUpdate),gn(this.render),this.valueSubscriptions.forEach(i=>i()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const i in this.events)this.events[i].clear();for(const i in this.features){const s=this.features[i];s&&(s.unmount(),s.isMounted=!1)}this.current=null}bindToMotionValue(i,s){this.valueSubscriptions.has(i)&&this.valueSubscriptions.get(i)();const a=On.has(i),c=s.on("change",p=>{this.latestValues[i]=p,this.props.onUpdate&&pe.preRender(this.notifyUpdate),a&&this.projection&&(this.projection.isTransformDirty=!0)}),h=s.on("renderRequest",this.scheduleRender);let f;window.MotionCheckAppearSync&&(f=window.MotionCheckAppearSync(this,i,s)),this.valueSubscriptions.set(i,()=>{c(),h(),f&&f(),s.owner&&s.stop()})}sortNodePosition(i){return!this.current||!this.sortInstanceNodePosition||this.type!==i.type?0:this.sortInstanceNodePosition(this.current,i.current)}updateFeatures(){let i="animation";for(i in gr){const s=gr[i];if(!s)continue;const{isEnabled:a,Feature:c}=s;if(!this.features[i]&&c&&a(this.props)&&(this.features[i]=new c(this)),this.features[i]){const h=this.features[i];h.isMounted?h.update():(h.mount(),h.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):De()}getStaticValue(i){return this.latestValues[i]}setStaticValue(i,s){this.latestValues[i]=s}update(i,s){(i.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=i,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let a=0;a<mh.length;a++){const c=mh[a];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const h="on"+c,f=i[h];f&&(this.propEventSubscriptions[c]=this.on(c,f))}this.prevMotionValues=iw(this,this.scrapeMotionValuesFromProps(i,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(i){return this.props.variants?this.props.variants[i]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(i){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(i),()=>s.variantChildren.delete(i)}addValue(i,s){const a=this.values.get(i);s!==a&&(a&&this.removeValue(i),this.bindToMotionValue(i,s),this.values.set(i,s),this.latestValues[i]=s.get())}removeValue(i){this.values.delete(i);const s=this.valueSubscriptions.get(i);s&&(s(),this.valueSubscriptions.delete(i)),delete this.latestValues[i],this.removeValueFromRenderState(i,this.renderState)}hasValue(i){return this.values.has(i)}getValue(i,s){if(this.props.values&&this.props.values[i])return this.props.values[i];let a=this.values.get(i);return a===void 0&&s!==void 0&&(a=hi(s===null?void 0:s,{owner:this}),this.addValue(i,a)),a}readValue(i,s){var a;let c=this.latestValues[i]!==void 0||!this.current?this.latestValues[i]:(a=this.getBaseTargetFromProps(this.props,i))!==null&&a!==void 0?a:this.readValueFromInstance(this.current,i,this.options);return c!=null&&(typeof c=="string"&&(Ah(c)||Rh(c))?c=parseFloat(c):!sw(c)&&yn.test(s)&&(c=Uh(i,s)),this.setBaseTarget(i,Ke(c)?c.get():c)),Ke(c)?c.get():c}setBaseTarget(i,s){this.baseTarget[i]=s}getBaseTarget(i){var s;const{initial:a}=this.props;let c;if(typeof a=="string"||typeof a=="object"){const f=Ta(this.props,a,(s=this.presenceContext)===null||s===void 0?void 0:s.custom);f&&(c=f[i])}if(a&&c!==void 0)return c;const h=this.getBaseTargetFromProps(this.props,i);return h!==void 0&&!Ke(h)?h:this.initialValues[i]!==void 0&&c===void 0?void 0:this.baseTarget[i]}on(i,s){return this.events[i]||(this.events[i]=new $a),this.events[i].add(s)}notify(i,...s){this.events[i]&&this.events[i].notify(...s)}}class Kp extends lw{constructor(){super(...arguments),this.KeyframeResolver=Wh}sortInstanceNodePosition(i,s){return i.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(i,s){return i.style?i.style[s]:void 0}removeValueFromRenderState(i,{vars:s,style:a}){delete s[i],delete a[i]}}function aw(r){return window.getComputedStyle(r)}class uw extends Kp{constructor(){super(...arguments),this.type="html",this.renderInstance=Np}readValueFromInstance(i,s){if(On.has(s)){const a=Na(s);return a&&a.default||0}else{const a=aw(i),c=(Dh(s)?a.getPropertyValue(s):a[s])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(i,{transformPagePoint:s}){return gp(i,s)}build(i,s,a){qa(i,s,a.transformTemplate)}scrapeMotionValuesFromProps(i,s,a){return Xa(i,s,a)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:i}=this.props;Ke(i)&&(this.childSubscription=i.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}class cw extends Kp{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=De}getBaseTargetFromProps(i,s){return i[s]}readValueFromInstance(i,s){if(On.has(s)){const a=Na(s);return a&&a.default||0}return s=Fp.has(s)?s:Ha(s),i.getAttribute(s)}scrapeMotionValuesFromProps(i,s,a){return Ip(i,s,a)}build(i,s,a){Ja(i,s,this.isSVGTag,a.transformTemplate)}renderInstance(i,s,a,c){jp(i,s,a,c)}mount(i){this.isSVGTag=ba(i.tagName),super.mount(i)}}const fw=(r,i)=>Ya(r)?new cw(i):new uw(i,{allowProjection:r!==J.Fragment}),dw=nw({...bv,...x1,...c1,...P1},fw),gh=qg(dw);function hw(){const r=J.useRef(null),[i,s]=J.useState("Speech synthesis is the artificial production of human speech."),[a,c]=J.useState("male_1"),[h,f]=J.useState(null),[p,m]=J.useState(null),[g,v]=J.useState("Detecting WebGPU support..."),[S,P]=J.useState([]);J.useEffect(()=>{r.current??=new Worker(new URL("/assets/worker-BKr81zhZ.js",import.meta.url),{type:"module"});const V=N=>{switch(N.data.status){case"feature-success":v("Loading model (only downloaded once)...");break;case"feature-error":m(N.data.data);break;case"ready":f("ready");break;case"complete":const{audio:j,text:B}=N.data;P($=>[{text:B,src:j},...$]),f("ready");break}},M=N=>{console.error("Worker error:",N)};return r.current.addEventListener("message",V),r.current.addEventListener("error",M),()=>{r.current.removeEventListener("message",V),r.current.removeEventListener("error",M)}},[]);const R=V=>{V.preventDefault(),f("running"),r.current.postMessage({type:"generate",text:i.trim(),speaker_id:a})};return re.jsxs("div",{className:"relative w-full min-h-screen bg-gradient-to-br from-gray-900 to-gray-700 flex flex-col items-center justify-center p-4 relative overflow-hidden font-sans",children:[re.jsxs(gh.div,{initial:{opacity:1},animate:{opacity:h===null?1:0},transition:{duration:.5},className:"absolute w-screen h-screen justify-center flex flex-col items-center z-10 bg-gray-800/95 backdrop-blur-md",style:{pointerEvents:h===null?"auto":"none"},children:[re.jsx("div",{className:"w-[250px] h-[250px] border-4 border-white shadow-[0_0_0_5px_#4973ff] rounded-full overflow-hidden",children:re.jsx("div",{className:"loading-wave"})}),re.jsx("p",{className:`text-3xl my-5 text-center ${p?"text-red-500":"text-white"}`,children:p??g})]}),re.jsxs("div",{className:"max-w-3xl w-full space-y-8 relative z-[2]",children:[re.jsxs("div",{className:"text-center",children:[re.jsx("h1",{className:"text-5xl font-extrabold text-gray-100 mb-2 drop-shadow-lg font-heading",children:"WebGPU Text-to-Speech"}),re.jsxs("p",{className:"text-2xl text-gray-300 font-semibold font-subheading",children:["Powered by ",re.jsx("a",{href:"https://github.com/edwko/OuteTTS",target:"_blank",rel:"noreferrer",className:"underline",children:"OuteTTS"})," and ",re.jsxs("a",{href:"https://huggingface.co/docs/transformers.js",target:"_blank",rel:"noreferrer",className:"underline",children:[re.jsx("img",{width:"40",src:"hf-logo.svg",className:"inline translate-y-[-2px] me-1"}),"Transformers.js"]})]})]}),re.jsx("div",{className:"bg-gray-800/50 backdrop-blur-sm border border-gray-700 rounded-lg p-6",children:re.jsxs("form",{onSubmit:R,className:"space-y-4",children:[re.jsx("textarea",{placeholder:"Enter text...",value:i,onChange:V=>s(V.target.value),className:"w-full min-h-[100px] max-h-[300px] bg-gray-700/50 backdrop-blur-sm border-2 border-gray-600 rounded-xl resize-y text-gray-100 placeholder-gray-400 px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent",rows:Math.min(8,i.split(`
`).length)}),re.jsxs("div",{className:"flex flex-col items-center space-y-4",children:[re.jsxs("select",{value:a,onChange:V=>c(V.target.value),className:"w-full bg-gray-700/50 backdrop-blur-sm border-2 border-gray-600 rounded-xl text-gray-100 px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent",children:[re.jsx("option",{value:"male_1",children:"Male 1"}),re.jsx("option",{value:"male_2",children:"Male 2"}),re.jsx("option",{value:"male_3",children:"Male 3"}),re.jsx("option",{value:"male_4",children:"Male 4"}),re.jsx("option",{value:"female_1",children:"Female 1"}),re.jsx("option",{value:"female_2",children:"Female 2"}),re.jsx("option",{value:"random",children:"Random"})]}),re.jsx("button",{type:"submit",className:"inline-flex justify-center items-center px-6 py-2 text-lg font-semibold bg-gradient-to-t from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 transition-colors duration-300 rounded-xl text-white disabled:opacity-50",disabled:h==="running"||i.trim()==="",children:h==="running"?"Generating...":"Generate"})]})]})}),S.length>0&&re.jsx(gh.div,{initial:{y:50,opacity:0},animate:{y:0,opacity:1},transition:{duration:.5},className:"max-h-[250px] overflow-y-auto px-2 mt-4 space-y-6 relative z-[2]",children:S.map((V,M)=>re.jsx("div",{children:re.jsxs("div",{className:"text-white bg-gray-800/70 backdrop-blur-sm border border-gray-700 rounded-lg p-4 z-10",children:[re.jsxs("span",{className:"absolute right-5 font-bold",children:["#",S.length-M]}),re.jsx("p",{className:"mb-3 max-w-[95%]",children:V.text}),re.jsx("audio",{controls:!0,src:V.src,className:"w-full",children:"Your browser does not support the audio element."})]})},M))})]}),re.jsxs("div",{className:"bg-[#015871] pointer-events-none absolute left-0 w-full h-[5%] bottom-[-50px]",children:[re.jsx("div",{className:"wave"}),re.jsx("div",{className:"wave"})]})]})}Zg.createRoot(document.getElementById("root")).render(re.jsx(J.StrictMode,{children:re.jsx(hw,{})}));