Spaces:
Running
Running
Download assets/index-DzABGDWh.js from shreyask/svara-tts-webgpu: direct link, hf CLI and curl.
- Browser
- Download file 269 kB
-
https://huggingface.co/spaces/shreyask/svara-tts-webgpu/resolve/main/assets/index-DzABGDWh.js
- Command line
-
hf download hf://spaces/shreyask/svara-tts-webgpu/assets/index-DzABGDWh.js
-
curl -L -o index-DzABGDWh.js https://huggingface.co/spaces/shreyask/svara-tts-webgpu/resolve/main/assets/index-DzABGDWh.js
269 kB
| (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 d of c)if(d.type==="childList")for(const f of d.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&a(f)}).observe(document,{childList:!0,subtree:!0});function o(c){const d={};return c.integrity&&(d.integrity=c.integrity),c.referrerPolicy&&(d.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?d.credentials="include":c.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function a(c){if(c.ep)return;c.ep=!0;const d=o(c);fetch(c.href,d)}})();var Hl={exports:{}},ni={},Kl={exports:{}},ae={};/** | |
| * @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 bf;function Yg(){if(bf)return ae;bf=1;var r=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=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"),w=Symbol.iterator;function T(k){return k===null||typeof k!="object"?null:(k=w&&k[w]||k["@@iterator"],typeof k=="function"?k:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,M={};function V(k,R,se){this.props=k,this.context=R,this.refs=M,this.updater=se||D}V.prototype.isReactComponent={},V.prototype.setState=function(k,R){if(typeof k!="object"&&typeof k!="function"&&k!=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,k,R,"setState")},V.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function I(){}I.prototype=V.prototype;function $(k,R,se){this.props=k,this.context=R,this.refs=M,this.updater=se||D}var K=$.prototype=new I;K.constructor=$,j(K,V.prototype),K.isPureReactComponent=!0;var ne=Array.isArray,X=Object.prototype.hasOwnProperty,ie={current:null},ue={key:!0,ref:!0,__self:!0,__source:!0};function J(k,R,se){var F,Z={},le=null,de=null;if(R!=null)for(F in R.ref!==void 0&&(de=R.ref),R.key!==void 0&&(le=""+R.key),R)X.call(R,F)&&!ue.hasOwnProperty(F)&&(Z[F]=R[F]);var he=arguments.length-2;if(he===1)Z.children=se;else if(1<he){for(var Te=Array(he),ot=0;ot<he;ot++)Te[ot]=arguments[ot+2];Z.children=Te}if(k&&k.defaultProps)for(F in he=k.defaultProps,he)Z[F]===void 0&&(Z[F]=he[F]);return{$$typeof:r,type:k,key:le,ref:de,props:Z,_owner:ie.current}}function me(k,R){return{$$typeof:r,type:k.type,key:R,ref:k.ref,props:k.props,_owner:k._owner}}function ge(k){return typeof k=="object"&&k!==null&&k.$$typeof===r}function ve(k){var R={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(se){return R[se]})}var Me=/\/+/g;function Fe(k,R){return typeof k=="object"&&k!==null&&k.key!=null?ve(""+k.key):R.toString(36)}function He(k,R,se,F,Z){var le=typeof k;(le==="undefined"||le==="boolean")&&(k=null);var de=!1;if(k===null)de=!0;else switch(le){case"string":case"number":de=!0;break;case"object":switch(k.$$typeof){case r:case i:de=!0}}if(de)return de=k,Z=Z(de),k=F===""?"."+Fe(de,0):F,ne(Z)?(se="",k!=null&&(se=k.replace(Me,"$&/")+"/"),He(Z,R,se,"",function(ot){return ot})):Z!=null&&(ge(Z)&&(Z=me(Z,se+(!Z.key||de&&de.key===Z.key?"":(""+Z.key).replace(Me,"$&/")+"/")+k)),R.push(Z)),1;if(de=0,F=F===""?".":F+":",ne(k))for(var he=0;he<k.length;he++){le=k[he];var Te=F+Fe(le,he);de+=He(le,R,se,Te,Z)}else if(Te=T(k),typeof Te=="function")for(k=Te.call(k),he=0;!(le=k.next()).done;)le=le.value,Te=F+Fe(le,he++),de+=He(le,R,se,Te,Z);else if(le==="object")throw R=String(k),Error("Objects are not valid as a React child (found: "+(R==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":R)+"). If you meant to render a collection of children, use an array instead.");return de}function st(k,R,se){if(k==null)return k;var F=[],Z=0;return He(k,F,"","",function(le){return R.call(se,le,Z++)}),F}function Be(k){if(k._status===-1){var R=k._result;R=R(),R.then(function(se){(k._status===0||k._status===-1)&&(k._status=1,k._result=se)},function(se){(k._status===0||k._status===-1)&&(k._status=2,k._result=se)}),k._status===-1&&(k._status=0,k._result=R)}if(k._status===1)return k._result.default;throw k._result}var oe={current:null},z={transition:null},Q={ReactCurrentDispatcher:oe,ReactCurrentBatchConfig:z,ReactCurrentOwner:ie};function B(){throw Error("act(...) is not supported in production builds of React.")}return ae.Children={map:st,forEach:function(k,R,se){st(k,function(){R.apply(this,arguments)},se)},count:function(k){var R=0;return st(k,function(){R++}),R},toArray:function(k){return st(k,function(R){return R})||[]},only:function(k){if(!ge(k))throw Error("React.Children.only expected to receive a single React element child.");return k}},ae.Component=V,ae.Fragment=o,ae.Profiler=c,ae.PureComponent=$,ae.StrictMode=a,ae.Suspense=m,ae.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Q,ae.act=B,ae.cloneElement=function(k,R,se){if(k==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+k+".");var F=j({},k.props),Z=k.key,le=k.ref,de=k._owner;if(R!=null){if(R.ref!==void 0&&(le=R.ref,de=ie.current),R.key!==void 0&&(Z=""+R.key),k.type&&k.type.defaultProps)var he=k.type.defaultProps;for(Te in R)X.call(R,Te)&&!ue.hasOwnProperty(Te)&&(F[Te]=R[Te]===void 0&&he!==void 0?he[Te]:R[Te])}var Te=arguments.length-2;if(Te===1)F.children=se;else if(1<Te){he=Array(Te);for(var ot=0;ot<Te;ot++)he[ot]=arguments[ot+2];F.children=he}return{$$typeof:r,type:k.type,key:Z,ref:le,props:F,_owner:de}},ae.createContext=function(k){return k={$$typeof:f,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},k.Provider={$$typeof:d,_context:k},k.Consumer=k},ae.createElement=J,ae.createFactory=function(k){var R=J.bind(null,k);return R.type=k,R},ae.createRef=function(){return{current:null}},ae.forwardRef=function(k){return{$$typeof:p,render:k}},ae.isValidElement=ge,ae.lazy=function(k){return{$$typeof:v,_payload:{_status:-1,_result:k},_init:Be}},ae.memo=function(k,R){return{$$typeof:g,type:k,compare:R===void 0?null:R}},ae.startTransition=function(k){var R=z.transition;z.transition={};try{k()}finally{z.transition=R}},ae.unstable_act=B,ae.useCallback=function(k,R){return oe.current.useCallback(k,R)},ae.useContext=function(k){return oe.current.useContext(k)},ae.useDebugValue=function(){},ae.useDeferredValue=function(k){return oe.current.useDeferredValue(k)},ae.useEffect=function(k,R){return oe.current.useEffect(k,R)},ae.useId=function(){return oe.current.useId()},ae.useImperativeHandle=function(k,R,se){return oe.current.useImperativeHandle(k,R,se)},ae.useInsertionEffect=function(k,R){return oe.current.useInsertionEffect(k,R)},ae.useLayoutEffect=function(k,R){return oe.current.useLayoutEffect(k,R)},ae.useMemo=function(k,R){return oe.current.useMemo(k,R)},ae.useReducer=function(k,R,se){return oe.current.useReducer(k,R,se)},ae.useRef=function(k){return oe.current.useRef(k)},ae.useState=function(k){return oe.current.useState(k)},ae.useSyncExternalStore=function(k,R,se){return oe.current.useSyncExternalStore(k,R,se)},ae.useTransition=function(){return oe.current.useTransition()},ae.version="18.3.1",ae}var ed;function Ca(){return ed||(ed=1,Kl.exports=Yg()),Kl.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 td;function Xg(){if(td)return ni;td=1;var r=Ca(),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,c=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d={key:!0,ref:!0,__self:!0,__source:!0};function f(p,m,g){var v,w={},T=null,D=null;g!==void 0&&(T=""+g),m.key!==void 0&&(T=""+m.key),m.ref!==void 0&&(D=m.ref);for(v in m)a.call(m,v)&&!d.hasOwnProperty(v)&&(w[v]=m[v]);if(p&&p.defaultProps)for(v in m=p.defaultProps,m)w[v]===void 0&&(w[v]=m[v]);return{$$typeof:i,type:p,key:T,ref:D,props:w,_owner:c.current}}return ni.Fragment=o,ni.jsx=f,ni.jsxs=f,ni}var nd;function qg(){return nd||(nd=1,Hl.exports=Xg()),Hl.exports}var A=qg(),q=Ca(),Ls={},Gl={exports:{}},it={},Ql={exports:{}},Yl={};/** | |
| * @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 rd;function Zg(){return rd||(rd=1,(function(r){function i(z,Q){var B=z.length;z.push(Q);e:for(;0<B;){var k=B-1>>>1,R=z[k];if(0<c(R,Q))z[k]=Q,z[B]=R,B=k;else break e}}function o(z){return z.length===0?null:z[0]}function a(z){if(z.length===0)return null;var Q=z[0],B=z.pop();if(B!==Q){z[0]=B;e:for(var k=0,R=z.length,se=R>>>1;k<se;){var F=2*(k+1)-1,Z=z[F],le=F+1,de=z[le];if(0>c(Z,B))le<R&&0>c(de,Z)?(z[k]=de,z[le]=B,k=le):(z[k]=Z,z[F]=B,k=F);else if(le<R&&0>c(de,B))z[k]=de,z[le]=B,k=le;else break e}}return Q}function c(z,Q){var B=z.sortIndex-Q.sortIndex;return B!==0?B:z.id-Q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var d=performance;r.unstable_now=function(){return d.now()}}else{var f=Date,p=f.now();r.unstable_now=function(){return f.now()-p}}var m=[],g=[],v=1,w=null,T=3,D=!1,j=!1,M=!1,V=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function K(z){for(var Q=o(g);Q!==null;){if(Q.callback===null)a(g);else if(Q.startTime<=z)a(g),Q.sortIndex=Q.expirationTime,i(m,Q);else break;Q=o(g)}}function ne(z){if(M=!1,K(z),!j)if(o(m)!==null)j=!0,Be(X);else{var Q=o(g);Q!==null&&oe(ne,Q.startTime-z)}}function X(z,Q){j=!1,M&&(M=!1,I(J),J=-1),D=!0;var B=T;try{for(K(Q),w=o(m);w!==null&&(!(w.expirationTime>Q)||z&&!ve());){var k=w.callback;if(typeof k=="function"){w.callback=null,T=w.priorityLevel;var R=k(w.expirationTime<=Q);Q=r.unstable_now(),typeof R=="function"?w.callback=R:w===o(m)&&a(m),K(Q)}else a(m);w=o(m)}if(w!==null)var se=!0;else{var F=o(g);F!==null&&oe(ne,F.startTime-Q),se=!1}return se}finally{w=null,T=B,D=!1}}var ie=!1,ue=null,J=-1,me=5,ge=-1;function ve(){return!(r.unstable_now()-ge<me)}function Me(){if(ue!==null){var z=r.unstable_now();ge=z;var Q=!0;try{Q=ue(!0,z)}finally{Q?Fe():(ie=!1,ue=null)}}else ie=!1}var Fe;if(typeof $=="function")Fe=function(){$(Me)};else if(typeof MessageChannel<"u"){var He=new MessageChannel,st=He.port2;He.port1.onmessage=Me,Fe=function(){st.postMessage(null)}}else Fe=function(){V(Me,0)};function Be(z){ue=z,ie||(ie=!0,Fe())}function oe(z,Q){J=V(function(){z(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(z){z.callback=null},r.unstable_continueExecution=function(){j||D||(j=!0,Be(X))},r.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):me=0<z?Math.floor(1e3/z):5},r.unstable_getCurrentPriorityLevel=function(){return T},r.unstable_getFirstCallbackNode=function(){return o(m)},r.unstable_next=function(z){switch(T){case 1:case 2:case 3:var Q=3;break;default:Q=T}var B=T;T=Q;try{return z()}finally{T=B}},r.unstable_pauseExecution=function(){},r.unstable_requestPaint=function(){},r.unstable_runWithPriority=function(z,Q){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var B=T;T=z;try{return Q()}finally{T=B}},r.unstable_scheduleCallback=function(z,Q,B){var k=r.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?k+B:k):B=k,z){case 1:var R=-1;break;case 2:R=250;break;case 5:R=1073741823;break;case 4:R=1e4;break;default:R=5e3}return R=B+R,z={id:v++,callback:Q,priorityLevel:z,startTime:B,expirationTime:R,sortIndex:-1},B>k?(z.sortIndex=B,i(g,z),o(m)===null&&z===o(g)&&(M?(I(J),J=-1):M=!0,oe(ne,B-k))):(z.sortIndex=R,i(m,z),j||D||(j=!0,Be(X))),z},r.unstable_shouldYield=ve,r.unstable_wrapCallback=function(z){var Q=T;return function(){var B=T;T=Q;try{return z.apply(this,arguments)}finally{T=B}}}})(Yl)),Yl}var id;function Jg(){return id||(id=1,Ql.exports=Zg()),Ql.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 sd;function bg(){if(sd)return it;sd=1;var r=Ca(),i=Jg();function o(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 d(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={},w={};function T(e){return m.call(w,e)?!0:m.call(v,e)?!1:g.test(e)?w[e]=!0:(v[e]=!0,!1)}function D(e,t,n,s){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return s?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function j(e,t,n,s){if(t===null||typeof t>"u"||D(e,t,n,s))return!0;if(s)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,s,l,u,h){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=s,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=h}var V={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){V[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];V[t]=new M(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){V[e]=new M(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){V[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){V[e]=new M(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){V[e]=new M(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){V[e]=new M(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){V[e]=new M(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){V[e]=new M(e,5,!1,e.toLowerCase(),null,!1,!1)});var I=/[\-:]([a-z])/g;function $(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(I,$);V[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(I,$);V[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(I,$);V[t]=new M(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){V[e]=new M(e,1,!1,e.toLowerCase(),null,!1,!1)}),V.xlinkHref=new M("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){V[e]=new M(e,1,!1,e.toLowerCase(),null,!0,!0)});function K(e,t,n,s){var l=V.hasOwnProperty(t)?V[t]:null;(l!==null?l.type!==0:s||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(j(t,n,l,s)&&(n=null),s||l===null?T(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,s=l.attributeNamespace,n===null?e.removeAttribute(t):(l=l.type,n=l===3||l===4&&n===!0?"":""+n,s?e.setAttributeNS(s,t,n):e.setAttribute(t,n))))}var ne=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,X=Symbol.for("react.element"),ie=Symbol.for("react.portal"),ue=Symbol.for("react.fragment"),J=Symbol.for("react.strict_mode"),me=Symbol.for("react.profiler"),ge=Symbol.for("react.provider"),ve=Symbol.for("react.context"),Me=Symbol.for("react.forward_ref"),Fe=Symbol.for("react.suspense"),He=Symbol.for("react.suspense_list"),st=Symbol.for("react.memo"),Be=Symbol.for("react.lazy"),oe=Symbol.for("react.offscreen"),z=Symbol.iterator;function Q(e){return e===null||typeof e!="object"?null:(e=z&&e[z]||e["@@iterator"],typeof e=="function"?e:null)}var B=Object.assign,k;function R(e){if(k===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);k=t&&t[1]||""}return` | |
| `+k+e}var se=!1;function F(e,t){if(!e||se)return"";se=!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 s=E}Reflect.construct(e,[],t)}else{try{t.call()}catch(E){s=E}e.call(t.prototype)}else{try{throw Error()}catch(E){s=E}e()}}catch(E){if(E&&s&&typeof E.stack=="string"){for(var l=E.stack.split(` | |
| `),u=s.stack.split(` | |
| `),h=l.length-1,y=u.length-1;1<=h&&0<=y&&l[h]!==u[y];)y--;for(;1<=h&&0<=y;h--,y--)if(l[h]!==u[y]){if(h!==1||y!==1)do if(h--,y--,0>y||l[h]!==u[y]){var S=` | |
| `+l[h].replace(" at new "," at ");return e.displayName&&S.includes("<anonymous>")&&(S=S.replace("<anonymous>",e.displayName)),S}while(1<=h&&0<=y);break}}}finally{se=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?R(e):""}function Z(e){switch(e.tag){case 5:return R(e.type);case 16:return R("Lazy");case 13:return R("Suspense");case 19:return R("SuspenseList");case 0:case 2:case 15:return e=F(e.type,!1),e;case 11:return e=F(e.type.render,!1),e;case 1:return e=F(e.type,!0),e;default:return""}}function le(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 ue:return"Fragment";case ie:return"Portal";case me:return"Profiler";case J:return"StrictMode";case Fe:return"Suspense";case He:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ve:return(e.displayName||"Context")+".Consumer";case ge:return(e._context.displayName||"Context")+".Provider";case Me: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:le(e.type)||"Memo";case Be:t=e._payload,e=e._init;try{return le(e(t))}catch{}}return null}function de(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 le(t);case 8:return t===J?"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 he(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Te(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ot(e){var t=Te(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+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(h){s=""+h,u.call(this,h)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return s},setValue:function(h){s=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function xi(e){e._valueTracker||(e._valueTracker=ot(e))}function iu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=Te(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function Ti(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 qs(e,t){var n=t.checked;return B({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function su(e,t){var n=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;n=he(t.value!=null?t.value:n),e._wrapperState={initialChecked:s,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ou(e,t){t=t.checked,t!=null&&K(e,"checked",t,!1)}function Zs(e,t){ou(e,t);var n=he(t.value),s=t.type;if(n!=null)s==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Js(e,t.type,n):t.hasOwnProperty("defaultValue")&&Js(e,t.type,he(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function lu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var s=t.type;if(!(s!=="submit"&&s!=="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 Js(e,t,n){(t!=="number"||Ti(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var yr=Array.isArray;function Fn(e,t,n,s){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&&s&&(e[n].defaultSelected=!0)}else{for(n=""+he(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,s&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function bs(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(o(91));return B({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function au(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(o(92));if(yr(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:he(n)}}function uu(e,t){var n=he(t.value),s=he(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),s!=null&&(e.defaultValue=""+s)}function cu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function fu(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 eo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?fu(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ki,du=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,s,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,s,l)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ki=ki||document.createElement("div"),ki.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ki.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function vr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var wr={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},Jp=["Webkit","ms","Moz","O"];Object.keys(wr).forEach(function(e){Jp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),wr[t]=wr[e]})});function hu(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||wr.hasOwnProperty(e)&&wr[e]?(""+t).trim():t+"px"}function pu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var s=n.indexOf("--")===0,l=hu(n,t[n],s);n==="float"&&(n="cssFloat"),s?e.setProperty(n,l):e[n]=l}}var bp=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function to(e,t){if(t){if(bp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(o(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(o(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(t.style!=null&&typeof t.style!="object")throw Error(o(62))}}function no(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 ro=null;function io(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var so=null,On=null,In=null;function mu(e){if(e=Ur(e)){if(typeof so!="function")throw Error(o(280));var t=e.stateNode;t&&(t=Gi(t),so(e.stateNode,e.type,t))}}function gu(e){On?In?In.push(e):In=[e]:On=e}function yu(){if(On){var e=On,t=In;if(In=On=null,mu(e),t)for(e=0;e<t.length;e++)mu(t[e])}}function vu(e,t){return e(t)}function wu(){}var oo=!1;function Su(e,t,n){if(oo)return e(t,n);oo=!0;try{return vu(e,t,n)}finally{oo=!1,(On!==null||In!==null)&&(wu(),yu())}}function Sr(e,t){var n=e.stateNode;if(n===null)return null;var s=Gi(n);if(s===null)return null;n=s[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":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(o(231,t,typeof n));return n}var lo=!1;if(p)try{var xr={};Object.defineProperty(xr,"passive",{get:function(){lo=!0}}),window.addEventListener("test",xr,xr),window.removeEventListener("test",xr,xr)}catch{lo=!1}function em(e,t,n,s,l,u,h,y,S){var E=Array.prototype.slice.call(arguments,3);try{t.apply(n,E)}catch(N){this.onError(N)}}var Tr=!1,Pi=null,Ci=!1,ao=null,tm={onError:function(e){Tr=!0,Pi=e}};function nm(e,t,n,s,l,u,h,y,S){Tr=!1,Pi=null,em.apply(tm,arguments)}function rm(e,t,n,s,l,u,h,y,S){if(nm.apply(this,arguments),Tr){if(Tr){var E=Pi;Tr=!1,Pi=null}else throw Error(o(198));Ci||(Ci=!0,ao=E)}}function yn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function xu(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 Tu(e){if(yn(e)!==e)throw Error(o(188))}function im(e){var t=e.alternate;if(!t){if(t=yn(e),t===null)throw Error(o(188));return t!==e?null:e}for(var n=e,s=t;;){var l=n.return;if(l===null)break;var u=l.alternate;if(u===null){if(s=l.return,s!==null){n=s;continue}break}if(l.child===u.child){for(u=l.child;u;){if(u===n)return Tu(l),e;if(u===s)return Tu(l),t;u=u.sibling}throw Error(o(188))}if(n.return!==s.return)n=l,s=u;else{for(var h=!1,y=l.child;y;){if(y===n){h=!0,n=l,s=u;break}if(y===s){h=!0,s=l,n=u;break}y=y.sibling}if(!h){for(y=u.child;y;){if(y===n){h=!0,n=u,s=l;break}if(y===s){h=!0,s=u,n=l;break}y=y.sibling}if(!h)throw Error(o(189))}}if(n.alternate!==s)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?e:t}function ku(e){return e=im(e),e!==null?Pu(e):null}function Pu(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Pu(e);if(t!==null)return t;e=e.sibling}return null}var Cu=i.unstable_scheduleCallback,Eu=i.unstable_cancelCallback,sm=i.unstable_shouldYield,om=i.unstable_requestPaint,Re=i.unstable_now,lm=i.unstable_getCurrentPriorityLevel,uo=i.unstable_ImmediatePriority,Du=i.unstable_UserBlockingPriority,Ei=i.unstable_NormalPriority,am=i.unstable_LowPriority,Au=i.unstable_IdlePriority,Di=null,Mt=null;function um(e){if(Mt&&typeof Mt.onCommitFiberRoot=="function")try{Mt.onCommitFiberRoot(Di,e,void 0,(e.current.flags&128)===128)}catch{}}var xt=Math.clz32?Math.clz32:dm,cm=Math.log,fm=Math.LN2;function dm(e){return e>>>=0,e===0?32:31-(cm(e)/fm|0)|0}var Ai=64,Mi=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 Ri(e,t){var n=e.pendingLanes;if(n===0)return 0;var s=0,l=e.suspendedLanes,u=e.pingedLanes,h=n&268435455;if(h!==0){var y=h&~l;y!==0?s=kr(y):(u&=h,u!==0&&(s=kr(u)))}else h=n&~l,h!==0?s=kr(h):u!==0&&(s=kr(u));if(s===0)return 0;if(t!==0&&t!==s&&(t&l)===0&&(l=s&-s,u=t&-t,l>=u||l===16&&(u&4194240)!==0))return t;if((s&4)!==0&&(s|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=s;0<t;)n=31-xt(t),l=1<<n,s|=e[n],t&=~l;return s}function hm(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function pm(e,t){for(var n=e.suspendedLanes,s=e.pingedLanes,l=e.expirationTimes,u=e.pendingLanes;0<u;){var h=31-xt(u),y=1<<h,S=l[h];S===-1?((y&n)===0||(y&s)!==0)&&(l[h]=hm(y,t)):S<=t&&(e.expiredLanes|=y),u&=~y}}function co(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Mu(){var e=Ai;return Ai<<=1,(Ai&4194240)===0&&(Ai=64),e}function fo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Pr(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 mm(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 s=e.eventTimes;for(e=e.expirationTimes;0<n;){var l=31-xt(n),u=1<<l;t[l]=0,s[l]=-1,e[l]=-1,n&=~u}}function ho(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var s=31-xt(n),l=1<<s;l&t|e[s]&t&&(e[s]|=t),n&=~l}}var pe=0;function Ru(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Lu,po,Nu,Vu,_u,mo=!1,Li=[],Qt=null,Yt=null,Xt=null,Cr=new Map,Er=new Map,qt=[],gm="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 ju(e,t){switch(e){case"focusin":case"focusout":Qt=null;break;case"dragenter":case"dragleave":Yt=null;break;case"mouseover":case"mouseout":Xt=null;break;case"pointerover":case"pointerout":Cr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Er.delete(t.pointerId)}}function Dr(e,t,n,s,l,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:s,nativeEvent:u,targetContainers:[l]},t!==null&&(t=Ur(t),t!==null&&po(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function ym(e,t,n,s,l){switch(t){case"focusin":return Qt=Dr(Qt,e,t,n,s,l),!0;case"dragenter":return Yt=Dr(Yt,e,t,n,s,l),!0;case"mouseover":return Xt=Dr(Xt,e,t,n,s,l),!0;case"pointerover":var u=l.pointerId;return Cr.set(u,Dr(Cr.get(u)||null,e,t,n,s,l)),!0;case"gotpointercapture":return u=l.pointerId,Er.set(u,Dr(Er.get(u)||null,e,t,n,s,l)),!0}return!1}function Fu(e){var t=vn(e.target);if(t!==null){var n=yn(t);if(n!==null){if(t=n.tag,t===13){if(t=xu(n),t!==null){e.blockedOn=t,_u(e.priority,function(){Nu(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 Ni(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=yo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var s=new n.constructor(n.type,n);ro=s,n.target.dispatchEvent(s),ro=null}else return t=Ur(n),t!==null&&po(t),e.blockedOn=n,!1;t.shift()}return!0}function Ou(e,t,n){Ni(e)&&n.delete(t)}function vm(){mo=!1,Qt!==null&&Ni(Qt)&&(Qt=null),Yt!==null&&Ni(Yt)&&(Yt=null),Xt!==null&&Ni(Xt)&&(Xt=null),Cr.forEach(Ou),Er.forEach(Ou)}function Ar(e,t){e.blockedOn===t&&(e.blockedOn=null,mo||(mo=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,vm)))}function Mr(e){function t(l){return Ar(l,e)}if(0<Li.length){Ar(Li[0],e);for(var n=1;n<Li.length;n++){var s=Li[n];s.blockedOn===e&&(s.blockedOn=null)}}for(Qt!==null&&Ar(Qt,e),Yt!==null&&Ar(Yt,e),Xt!==null&&Ar(Xt,e),Cr.forEach(t),Er.forEach(t),n=0;n<qt.length;n++)s=qt[n],s.blockedOn===e&&(s.blockedOn=null);for(;0<qt.length&&(n=qt[0],n.blockedOn===null);)Fu(n),n.blockedOn===null&&qt.shift()}var zn=ne.ReactCurrentBatchConfig,Vi=!0;function wm(e,t,n,s){var l=pe,u=zn.transition;zn.transition=null;try{pe=1,go(e,t,n,s)}finally{pe=l,zn.transition=u}}function Sm(e,t,n,s){var l=pe,u=zn.transition;zn.transition=null;try{pe=4,go(e,t,n,s)}finally{pe=l,zn.transition=u}}function go(e,t,n,s){if(Vi){var l=yo(e,t,n,s);if(l===null)_o(e,t,s,_i,n),ju(e,s);else if(ym(l,e,t,n,s))s.stopPropagation();else if(ju(e,s),t&4&&-1<gm.indexOf(e)){for(;l!==null;){var u=Ur(l);if(u!==null&&Lu(u),u=yo(e,t,n,s),u===null&&_o(e,t,s,_i,n),u===l)break;l=u}l!==null&&s.stopPropagation()}else _o(e,t,s,null,n)}}var _i=null;function yo(e,t,n,s){if(_i=null,e=io(s),e=vn(e),e!==null)if(t=yn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=xu(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 _i=e,null}function Iu(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(lm()){case uo:return 1;case Du:return 4;case Ei:case am:return 16;case Au:return 536870912;default:return 16}default:return 16}}var Zt=null,vo=null,ji=null;function zu(){if(ji)return ji;var e,t=vo,n=t.length,s,l="value"in Zt?Zt.value:Zt.textContent,u=l.length;for(e=0;e<n&&t[e]===l[e];e++);var h=n-e;for(s=1;s<=h&&t[n-s]===l[u-s];s++);return ji=l.slice(e,1<s?1-s:void 0)}function Fi(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 Oi(){return!0}function Bu(){return!1}function lt(e){function t(n,s,l,u,h){this._reactName=n,this._targetInst=l,this.type=s,this.nativeEvent=u,this.target=h,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)?Oi:Bu,this.isPropagationStopped=Bu,this}return B(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=Oi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Oi)},persist:function(){},isPersistent:Oi}),t}var Bn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wo=lt(Bn),Rr=B({},Bn,{view:0,detail:0}),xm=lt(Rr),So,xo,Lr,Ii=B({},Rr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ko,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!==Lr&&(Lr&&e.type==="mousemove"?(So=e.screenX-Lr.screenX,xo=e.screenY-Lr.screenY):xo=So=0,Lr=e),So)},movementY:function(e){return"movementY"in e?e.movementY:xo}}),Uu=lt(Ii),Tm=B({},Ii,{dataTransfer:0}),km=lt(Tm),Pm=B({},Rr,{relatedTarget:0}),To=lt(Pm),Cm=B({},Bn,{animationName:0,elapsedTime:0,pseudoElement:0}),Em=lt(Cm),Dm=B({},Bn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Am=lt(Dm),Mm=B({},Bn,{data:0}),$u=lt(Mm),Rm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Lm={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"},Nm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Vm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Nm[e])?!!t[e]:!1}function ko(){return Vm}var _m=B({},Rr,{key:function(e){if(e.key){var t=Rm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Fi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Lm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ko,charCode:function(e){return e.type==="keypress"?Fi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Fi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),jm=lt(_m),Fm=B({},Ii,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Wu=lt(Fm),Om=B({},Rr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ko}),Im=lt(Om),zm=B({},Bn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Bm=lt(zm),Um=B({},Ii,{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}),$m=lt(Um),Wm=[9,13,27,32],Po=p&&"CompositionEvent"in window,Nr=null;p&&"documentMode"in document&&(Nr=document.documentMode);var Hm=p&&"TextEvent"in window&&!Nr,Hu=p&&(!Po||Nr&&8<Nr&&11>=Nr),Ku=" ",Gu=!1;function Qu(e,t){switch(e){case"keyup":return Wm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Un=!1;function Km(e,t){switch(e){case"compositionend":return Yu(t);case"keypress":return t.which!==32?null:(Gu=!0,Ku);case"textInput":return e=t.data,e===Ku&&Gu?null:e;default:return null}}function Gm(e,t){if(Un)return e==="compositionend"||!Po&&Qu(e,t)?(e=zu(),ji=vo=Zt=null,Un=!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 Hu&&t.locale!=="ko"?null:t.data;default:return null}}var Qm={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Xu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Qm[e.type]:t==="textarea"}function qu(e,t,n,s){gu(s),t=Wi(t,"onChange"),0<t.length&&(n=new wo("onChange","change",null,n,s),e.push({event:n,listeners:t}))}var Vr=null,_r=null;function Ym(e){pc(e,0)}function zi(e){var t=Gn(e);if(iu(t))return e}function Xm(e,t){if(e==="change")return t}var Zu=!1;if(p){var Co;if(p){var Eo="oninput"in document;if(!Eo){var Ju=document.createElement("div");Ju.setAttribute("oninput","return;"),Eo=typeof Ju.oninput=="function"}Co=Eo}else Co=!1;Zu=Co&&(!document.documentMode||9<document.documentMode)}function bu(){Vr&&(Vr.detachEvent("onpropertychange",ec),_r=Vr=null)}function ec(e){if(e.propertyName==="value"&&zi(_r)){var t=[];qu(t,_r,e,io(e)),Su(Ym,t)}}function qm(e,t,n){e==="focusin"?(bu(),Vr=t,_r=n,Vr.attachEvent("onpropertychange",ec)):e==="focusout"&&bu()}function Zm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return zi(_r)}function Jm(e,t){if(e==="click")return zi(t)}function bm(e,t){if(e==="input"||e==="change")return zi(t)}function eg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tt=typeof Object.is=="function"?Object.is:eg;function jr(e,t){if(Tt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(s=0;s<n.length;s++){var l=n[s];if(!m.call(t,l)||!Tt(e[l],t[l]))return!1}return!0}function tc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function nc(e,t){var n=tc(e);e=0;for(var s;n;){if(n.nodeType===3){if(s=e+n.textContent.length,e<=t&&s>=t)return{node:n,offset:t-e};e=s}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=tc(n)}}function rc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?rc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ic(){for(var e=window,t=Ti();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ti(e.document)}return t}function Do(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 tg(e){var t=ic(),n=e.focusedElem,s=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&rc(n.ownerDocument.documentElement,n)){if(s!==null&&Do(n)){if(t=s.start,e=s.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(s.start,l);s=s.end===void 0?u:Math.min(s.end,l),!e.extend&&u>s&&(l=s,s=u,u=l),l=nc(n,u);var h=nc(n,s);l&&h&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==h.node||e.focusOffset!==h.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),u>s?(e.addRange(t),e.extend(h.node,h.offset)):(t.setEnd(h.node,h.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 ng=p&&"documentMode"in document&&11>=document.documentMode,$n=null,Ao=null,Fr=null,Mo=!1;function sc(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Mo||$n==null||$n!==Ti(s)||(s=$n,"selectionStart"in s&&Do(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Fr&&jr(Fr,s)||(Fr=s,s=Wi(Ao,"onSelect"),0<s.length&&(t=new wo("onSelect","select",null,t,n),e.push({event:t,listeners:s}),t.target=$n)))}function Bi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Wn={animationend:Bi("Animation","AnimationEnd"),animationiteration:Bi("Animation","AnimationIteration"),animationstart:Bi("Animation","AnimationStart"),transitionend:Bi("Transition","TransitionEnd")},Ro={},oc={};p&&(oc=document.createElement("div").style,"AnimationEvent"in window||(delete Wn.animationend.animation,delete Wn.animationiteration.animation,delete Wn.animationstart.animation),"TransitionEvent"in window||delete Wn.transitionend.transition);function Ui(e){if(Ro[e])return Ro[e];if(!Wn[e])return e;var t=Wn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in oc)return Ro[e]=t[n];return e}var lc=Ui("animationend"),ac=Ui("animationiteration"),uc=Ui("animationstart"),cc=Ui("transitionend"),fc=new Map,dc="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 Jt(e,t){fc.set(e,t),d(t,[e])}for(var Lo=0;Lo<dc.length;Lo++){var No=dc[Lo],rg=No.toLowerCase(),ig=No[0].toUpperCase()+No.slice(1);Jt(rg,"on"+ig)}Jt(lc,"onAnimationEnd"),Jt(ac,"onAnimationIteration"),Jt(uc,"onAnimationStart"),Jt("dblclick","onDoubleClick"),Jt("focusin","onFocus"),Jt("focusout","onBlur"),Jt(cc,"onTransitionEnd"),f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),d("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),d("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),d("onBeforeInput",["compositionend","keypress","textInput","paste"]),d("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Or="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(" "),sg=new Set("cancel close invalid load scroll toggle".split(" ").concat(Or));function hc(e,t,n){var s=e.type||"unknown-event";e.currentTarget=n,rm(s,t,void 0,e),e.currentTarget=null}function pc(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var s=e[n],l=s.event;s=s.listeners;e:{var u=void 0;if(t)for(var h=s.length-1;0<=h;h--){var y=s[h],S=y.instance,E=y.currentTarget;if(y=y.listener,S!==u&&l.isPropagationStopped())break e;hc(l,y,E),u=S}else for(h=0;h<s.length;h++){if(y=s[h],S=y.instance,E=y.currentTarget,y=y.listener,S!==u&&l.isPropagationStopped())break e;hc(l,y,E),u=S}}}if(Ci)throw e=ao,Ci=!1,ao=null,e}function we(e,t){var n=t[Bo];n===void 0&&(n=t[Bo]=new Set);var s=e+"__bubble";n.has(s)||(mc(t,e,2,!1),n.add(s))}function Vo(e,t,n){var s=0;t&&(s|=4),mc(n,e,s,t)}var $i="_reactListening"+Math.random().toString(36).slice(2);function Ir(e){if(!e[$i]){e[$i]=!0,a.forEach(function(n){n!=="selectionchange"&&(sg.has(n)||Vo(n,!1,e),Vo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[$i]||(t[$i]=!0,Vo("selectionchange",!1,t))}}function mc(e,t,n,s){switch(Iu(t)){case 1:var l=wm;break;case 4:l=Sm;break;default:l=go}n=l.bind(null,t,n,e),l=void 0,!lo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),s?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 _o(e,t,n,s,l){var u=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var h=s.tag;if(h===3||h===4){var y=s.stateNode.containerInfo;if(y===l||y.nodeType===8&&y.parentNode===l)break;if(h===4)for(h=s.return;h!==null;){var S=h.tag;if((S===3||S===4)&&(S=h.stateNode.containerInfo,S===l||S.nodeType===8&&S.parentNode===l))return;h=h.return}for(;y!==null;){if(h=vn(y),h===null)return;if(S=h.tag,S===5||S===6){s=u=h;continue e}y=y.parentNode}}s=s.return}Su(function(){var E=u,N=io(n),_=[];e:{var L=fc.get(e);if(L!==void 0){var U=wo,H=e;switch(e){case"keypress":if(Fi(n)===0)break e;case"keydown":case"keyup":U=jm;break;case"focusin":H="focus",U=To;break;case"focusout":H="blur",U=To;break;case"beforeblur":case"afterblur":U=To;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":U=Uu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=km;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=Im;break;case lc:case ac:case uc:U=Em;break;case cc:U=Bm;break;case"scroll":U=xm;break;case"wheel":U=$m;break;case"copy":case"cut":case"paste":U=Am;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=Wu}var G=(t&4)!==0,Le=!G&&e==="scroll",P=G?L!==null?L+"Capture":null:L;G=[];for(var x=E,C;x!==null;){C=x;var O=C.stateNode;if(C.tag===5&&O!==null&&(C=O,P!==null&&(O=Sr(x,P),O!=null&&G.push(zr(x,O,C)))),Le)break;x=x.return}0<G.length&&(L=new U(L,H,null,n,N),_.push({event:L,listeners:G}))}}if((t&7)===0){e:{if(L=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",L&&n!==ro&&(H=n.relatedTarget||n.fromElement)&&(vn(H)||H[Ft]))break e;if((U||L)&&(L=N.window===N?N:(L=N.ownerDocument)?L.defaultView||L.parentWindow:window,U?(H=n.relatedTarget||n.toElement,U=E,H=H?vn(H):null,H!==null&&(Le=yn(H),H!==Le||H.tag!==5&&H.tag!==6)&&(H=null)):(U=null,H=E),U!==H)){if(G=Uu,O="onMouseLeave",P="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(G=Wu,O="onPointerLeave",P="onPointerEnter",x="pointer"),Le=U==null?L:Gn(U),C=H==null?L:Gn(H),L=new G(O,x+"leave",U,n,N),L.target=Le,L.relatedTarget=C,O=null,vn(N)===E&&(G=new G(P,x+"enter",H,n,N),G.target=C,G.relatedTarget=Le,O=G),Le=O,U&&H)t:{for(G=U,P=H,x=0,C=G;C;C=Hn(C))x++;for(C=0,O=P;O;O=Hn(O))C++;for(;0<x-C;)G=Hn(G),x--;for(;0<C-x;)P=Hn(P),C--;for(;x--;){if(G===P||P!==null&&G===P.alternate)break t;G=Hn(G),P=Hn(P)}G=null}else G=null;U!==null&&gc(_,L,U,G,!1),H!==null&&Le!==null&&gc(_,Le,H,G,!0)}}e:{if(L=E?Gn(E):window,U=L.nodeName&&L.nodeName.toLowerCase(),U==="select"||U==="input"&&L.type==="file")var Y=Xm;else if(Xu(L))if(Zu)Y=bm;else{Y=Zm;var b=qm}else(U=L.nodeName)&&U.toLowerCase()==="input"&&(L.type==="checkbox"||L.type==="radio")&&(Y=Jm);if(Y&&(Y=Y(e,E))){qu(_,Y,n,N);break e}b&&b(e,L,E),e==="focusout"&&(b=L._wrapperState)&&b.controlled&&L.type==="number"&&Js(L,"number",L.value)}switch(b=E?Gn(E):window,e){case"focusin":(Xu(b)||b.contentEditable==="true")&&($n=b,Ao=E,Fr=null);break;case"focusout":Fr=Ao=$n=null;break;case"mousedown":Mo=!0;break;case"contextmenu":case"mouseup":case"dragend":Mo=!1,sc(_,n,N);break;case"selectionchange":if(ng)break;case"keydown":case"keyup":sc(_,n,N)}var ee;if(Po)e:{switch(e){case"compositionstart":var re="onCompositionStart";break e;case"compositionend":re="onCompositionEnd";break e;case"compositionupdate":re="onCompositionUpdate";break e}re=void 0}else Un?Qu(e,n)&&(re="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(re="onCompositionStart");re&&(Hu&&n.locale!=="ko"&&(Un||re!=="onCompositionStart"?re==="onCompositionEnd"&&Un&&(ee=zu()):(Zt=N,vo="value"in Zt?Zt.value:Zt.textContent,Un=!0)),b=Wi(E,re),0<b.length&&(re=new $u(re,e,null,n,N),_.push({event:re,listeners:b}),ee?re.data=ee:(ee=Yu(n),ee!==null&&(re.data=ee)))),(ee=Hm?Km(e,n):Gm(e,n))&&(E=Wi(E,"onBeforeInput"),0<E.length&&(N=new $u("onBeforeInput","beforeinput",null,n,N),_.push({event:N,listeners:E}),N.data=ee))}pc(_,t)})}function zr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Wi(e,t){for(var n=t+"Capture",s=[];e!==null;){var l=e,u=l.stateNode;l.tag===5&&u!==null&&(l=u,u=Sr(e,n),u!=null&&s.unshift(zr(e,u,l)),u=Sr(e,t),u!=null&&s.push(zr(e,u,l))),e=e.return}return s}function Hn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function gc(e,t,n,s,l){for(var u=t._reactName,h=[];n!==null&&n!==s;){var y=n,S=y.alternate,E=y.stateNode;if(S!==null&&S===s)break;y.tag===5&&E!==null&&(y=E,l?(S=Sr(n,u),S!=null&&h.unshift(zr(n,S,y))):l||(S=Sr(n,u),S!=null&&h.push(zr(n,S,y)))),n=n.return}h.length!==0&&e.push({event:t,listeners:h})}var og=/\r\n?/g,lg=/\u0000|\uFFFD/g;function yc(e){return(typeof e=="string"?e:""+e).replace(og,` | |
| `).replace(lg,"")}function Hi(e,t,n){if(t=yc(t),yc(e)!==t&&n)throw Error(o(425))}function Ki(){}var jo=null,Fo=null;function Oo(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 Io=typeof setTimeout=="function"?setTimeout:void 0,ag=typeof clearTimeout=="function"?clearTimeout:void 0,vc=typeof Promise=="function"?Promise:void 0,ug=typeof queueMicrotask=="function"?queueMicrotask:typeof vc<"u"?function(e){return vc.resolve(null).then(e).catch(cg)}:Io;function cg(e){setTimeout(function(){throw e})}function zo(e,t){var n=t,s=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(s===0){e.removeChild(l),Mr(t);return}s--}else n!=="$"&&n!=="$?"&&n!=="$!"||s++;n=l}while(n);Mr(t)}function bt(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 wc(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 Kn=Math.random().toString(36).slice(2),Rt="__reactFiber$"+Kn,Br="__reactProps$"+Kn,Ft="__reactContainer$"+Kn,Bo="__reactEvents$"+Kn,fg="__reactListeners$"+Kn,dg="__reactHandles$"+Kn;function vn(e){var t=e[Rt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ft]||n[Rt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=wc(e);e!==null;){if(n=e[Rt])return n;e=wc(e)}return t}e=n,n=e.parentNode}return null}function Ur(e){return e=e[Rt]||e[Ft],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Gn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(o(33))}function Gi(e){return e[Br]||null}var Uo=[],Qn=-1;function en(e){return{current:e}}function Se(e){0>Qn||(e.current=Uo[Qn],Uo[Qn]=null,Qn--)}function ye(e,t){Qn++,Uo[Qn]=e.current,e.current=t}var tn={},Ke=en(tn),be=en(!1),wn=tn;function Yn(e,t){var n=e.type.contextTypes;if(!n)return tn;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var l={},u;for(u in n)l[u]=t[u];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function et(e){return e=e.childContextTypes,e!=null}function Qi(){Se(be),Se(Ke)}function Sc(e,t,n){if(Ke.current!==tn)throw Error(o(168));ye(Ke,t),ye(be,n)}function xc(e,t,n){var s=e.stateNode;if(t=t.childContextTypes,typeof s.getChildContext!="function")return n;s=s.getChildContext();for(var l in s)if(!(l in t))throw Error(o(108,de(e)||"Unknown",l));return B({},n,s)}function Yi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||tn,wn=Ke.current,ye(Ke,e),ye(be,be.current),!0}function Tc(e,t,n){var s=e.stateNode;if(!s)throw Error(o(169));n?(e=xc(e,t,wn),s.__reactInternalMemoizedMergedChildContext=e,Se(be),Se(Ke),ye(Ke,e)):Se(be),ye(be,n)}var Ot=null,Xi=!1,$o=!1;function kc(e){Ot===null?Ot=[e]:Ot.push(e)}function hg(e){Xi=!0,kc(e)}function nn(){if(!$o&&Ot!==null){$o=!0;var e=0,t=pe;try{var n=Ot;for(pe=1;e<n.length;e++){var s=n[e];do s=s(!0);while(s!==null)}Ot=null,Xi=!1}catch(l){throw Ot!==null&&(Ot=Ot.slice(e+1)),Cu(uo,nn),l}finally{pe=t,$o=!1}}return null}var Xn=[],qn=0,qi=null,Zi=0,ht=[],pt=0,Sn=null,It=1,zt="";function xn(e,t){Xn[qn++]=Zi,Xn[qn++]=qi,qi=e,Zi=t}function Pc(e,t,n){ht[pt++]=It,ht[pt++]=zt,ht[pt++]=Sn,Sn=e;var s=It;e=zt;var l=32-xt(s)-1;s&=~(1<<l),n+=1;var u=32-xt(t)+l;if(30<u){var h=l-l%5;u=(s&(1<<h)-1).toString(32),s>>=h,l-=h,It=1<<32-xt(t)+l|n<<l|s,zt=u+e}else It=1<<u|n<<l|s,zt=e}function Wo(e){e.return!==null&&(xn(e,1),Pc(e,1,0))}function Ho(e){for(;e===qi;)qi=Xn[--qn],Xn[qn]=null,Zi=Xn[--qn],Xn[qn]=null;for(;e===Sn;)Sn=ht[--pt],ht[pt]=null,zt=ht[--pt],ht[pt]=null,It=ht[--pt],ht[pt]=null}var at=null,ut=null,ke=!1,kt=null;function Cc(e,t){var n=vt(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 Ec(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=bt(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=Sn!==null?{id:It,overflow:zt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=vt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,at=e,ut=null,!0):!1;default:return!1}}function Ko(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Go(e){if(ke){var t=ut;if(t){var n=t;if(!Ec(e,t)){if(Ko(e))throw Error(o(418));t=bt(n.nextSibling);var s=at;t&&Ec(e,t)?Cc(s,n):(e.flags=e.flags&-4097|2,ke=!1,at=e)}}else{if(Ko(e))throw Error(o(418));e.flags=e.flags&-4097|2,ke=!1,at=e}}}function Dc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;at=e}function Ji(e){if(e!==at)return!1;if(!ke)return Dc(e),ke=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Oo(e.type,e.memoizedProps)),t&&(t=ut)){if(Ko(e))throw Ac(),Error(o(418));for(;t;)Cc(e,t),t=bt(t.nextSibling)}if(Dc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ut=bt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ut=null}}else ut=at?bt(e.stateNode.nextSibling):null;return!0}function Ac(){for(var e=ut;e;)e=bt(e.nextSibling)}function Zn(){ut=at=null,ke=!1}function Qo(e){kt===null?kt=[e]:kt.push(e)}var pg=ne.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(o(309));var s=n.stateNode}if(!s)throw Error(o(147,e));var l=s,u=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===u?t.ref:(t=function(h){var y=l.refs;h===null?delete y[u]:y[u]=h},t._stringRef=u,t)}if(typeof e!="string")throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function bi(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Mc(e){var t=e._init;return t(e._payload)}function Rc(e){function t(P,x){if(e){var C=P.deletions;C===null?(P.deletions=[x],P.flags|=16):C.push(x)}}function n(P,x){if(!e)return null;for(;x!==null;)t(P,x),x=x.sibling;return null}function s(P,x){for(P=new Map;x!==null;)x.key!==null?P.set(x.key,x):P.set(x.index,x),x=x.sibling;return P}function l(P,x){return P=fn(P,x),P.index=0,P.sibling=null,P}function u(P,x,C){return P.index=C,e?(C=P.alternate,C!==null?(C=C.index,C<x?(P.flags|=2,x):C):(P.flags|=2,x)):(P.flags|=1048576,x)}function h(P){return e&&P.alternate===null&&(P.flags|=2),P}function y(P,x,C,O){return x===null||x.tag!==6?(x=Il(C,P.mode,O),x.return=P,x):(x=l(x,C),x.return=P,x)}function S(P,x,C,O){var Y=C.type;return Y===ue?N(P,x,C.props.children,O,C.key):x!==null&&(x.elementType===Y||typeof Y=="object"&&Y!==null&&Y.$$typeof===Be&&Mc(Y)===x.type)?(O=l(x,C.props),O.ref=$r(P,x,C),O.return=P,O):(O=ks(C.type,C.key,C.props,null,P.mode,O),O.ref=$r(P,x,C),O.return=P,O)}function E(P,x,C,O){return x===null||x.tag!==4||x.stateNode.containerInfo!==C.containerInfo||x.stateNode.implementation!==C.implementation?(x=zl(C,P.mode,O),x.return=P,x):(x=l(x,C.children||[]),x.return=P,x)}function N(P,x,C,O,Y){return x===null||x.tag!==7?(x=Mn(C,P.mode,O,Y),x.return=P,x):(x=l(x,C),x.return=P,x)}function _(P,x,C){if(typeof x=="string"&&x!==""||typeof x=="number")return x=Il(""+x,P.mode,C),x.return=P,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case X:return C=ks(x.type,x.key,x.props,null,P.mode,C),C.ref=$r(P,null,x),C.return=P,C;case ie:return x=zl(x,P.mode,C),x.return=P,x;case Be:var O=x._init;return _(P,O(x._payload),C)}if(yr(x)||Q(x))return x=Mn(x,P.mode,C,null),x.return=P,x;bi(P,x)}return null}function L(P,x,C,O){var Y=x!==null?x.key:null;if(typeof C=="string"&&C!==""||typeof C=="number")return Y!==null?null:y(P,x,""+C,O);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case X:return C.key===Y?S(P,x,C,O):null;case ie:return C.key===Y?E(P,x,C,O):null;case Be:return Y=C._init,L(P,x,Y(C._payload),O)}if(yr(C)||Q(C))return Y!==null?null:N(P,x,C,O,null);bi(P,C)}return null}function U(P,x,C,O,Y){if(typeof O=="string"&&O!==""||typeof O=="number")return P=P.get(C)||null,y(x,P,""+O,Y);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case X:return P=P.get(O.key===null?C:O.key)||null,S(x,P,O,Y);case ie:return P=P.get(O.key===null?C:O.key)||null,E(x,P,O,Y);case Be:var b=O._init;return U(P,x,C,b(O._payload),Y)}if(yr(O)||Q(O))return P=P.get(C)||null,N(x,P,O,Y,null);bi(x,O)}return null}function H(P,x,C,O){for(var Y=null,b=null,ee=x,re=x=0,ze=null;ee!==null&&re<C.length;re++){ee.index>re?(ze=ee,ee=null):ze=ee.sibling;var fe=L(P,ee,C[re],O);if(fe===null){ee===null&&(ee=ze);break}e&&ee&&fe.alternate===null&&t(P,ee),x=u(fe,x,re),b===null?Y=fe:b.sibling=fe,b=fe,ee=ze}if(re===C.length)return n(P,ee),ke&&xn(P,re),Y;if(ee===null){for(;re<C.length;re++)ee=_(P,C[re],O),ee!==null&&(x=u(ee,x,re),b===null?Y=ee:b.sibling=ee,b=ee);return ke&&xn(P,re),Y}for(ee=s(P,ee);re<C.length;re++)ze=U(ee,P,re,C[re],O),ze!==null&&(e&&ze.alternate!==null&&ee.delete(ze.key===null?re:ze.key),x=u(ze,x,re),b===null?Y=ze:b.sibling=ze,b=ze);return e&&ee.forEach(function(dn){return t(P,dn)}),ke&&xn(P,re),Y}function G(P,x,C,O){var Y=Q(C);if(typeof Y!="function")throw Error(o(150));if(C=Y.call(C),C==null)throw Error(o(151));for(var b=Y=null,ee=x,re=x=0,ze=null,fe=C.next();ee!==null&&!fe.done;re++,fe=C.next()){ee.index>re?(ze=ee,ee=null):ze=ee.sibling;var dn=L(P,ee,fe.value,O);if(dn===null){ee===null&&(ee=ze);break}e&&ee&&dn.alternate===null&&t(P,ee),x=u(dn,x,re),b===null?Y=dn:b.sibling=dn,b=dn,ee=ze}if(fe.done)return n(P,ee),ke&&xn(P,re),Y;if(ee===null){for(;!fe.done;re++,fe=C.next())fe=_(P,fe.value,O),fe!==null&&(x=u(fe,x,re),b===null?Y=fe:b.sibling=fe,b=fe);return ke&&xn(P,re),Y}for(ee=s(P,ee);!fe.done;re++,fe=C.next())fe=U(ee,P,re,fe.value,O),fe!==null&&(e&&fe.alternate!==null&&ee.delete(fe.key===null?re:fe.key),x=u(fe,x,re),b===null?Y=fe:b.sibling=fe,b=fe);return e&&ee.forEach(function(Qg){return t(P,Qg)}),ke&&xn(P,re),Y}function Le(P,x,C,O){if(typeof C=="object"&&C!==null&&C.type===ue&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case X:e:{for(var Y=C.key,b=x;b!==null;){if(b.key===Y){if(Y=C.type,Y===ue){if(b.tag===7){n(P,b.sibling),x=l(b,C.props.children),x.return=P,P=x;break e}}else if(b.elementType===Y||typeof Y=="object"&&Y!==null&&Y.$$typeof===Be&&Mc(Y)===b.type){n(P,b.sibling),x=l(b,C.props),x.ref=$r(P,b,C),x.return=P,P=x;break e}n(P,b);break}else t(P,b);b=b.sibling}C.type===ue?(x=Mn(C.props.children,P.mode,O,C.key),x.return=P,P=x):(O=ks(C.type,C.key,C.props,null,P.mode,O),O.ref=$r(P,x,C),O.return=P,P=O)}return h(P);case ie:e:{for(b=C.key;x!==null;){if(x.key===b)if(x.tag===4&&x.stateNode.containerInfo===C.containerInfo&&x.stateNode.implementation===C.implementation){n(P,x.sibling),x=l(x,C.children||[]),x.return=P,P=x;break e}else{n(P,x);break}else t(P,x);x=x.sibling}x=zl(C,P.mode,O),x.return=P,P=x}return h(P);case Be:return b=C._init,Le(P,x,b(C._payload),O)}if(yr(C))return H(P,x,C,O);if(Q(C))return G(P,x,C,O);bi(P,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,x!==null&&x.tag===6?(n(P,x.sibling),x=l(x,C),x.return=P,P=x):(n(P,x),x=Il(C,P.mode,O),x.return=P,P=x),h(P)):n(P,x)}return Le}var Jn=Rc(!0),Lc=Rc(!1),es=en(null),ts=null,bn=null,Yo=null;function Xo(){Yo=bn=ts=null}function qo(e){var t=es.current;Se(es),e._currentValue=t}function Zo(e,t,n){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===n)break;e=e.return}}function er(e,t){ts=e,Yo=bn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(tt=!0),e.firstContext=null)}function mt(e){var t=e._currentValue;if(Yo!==e)if(e={context:e,memoizedValue:t,next:null},bn===null){if(ts===null)throw Error(o(308));bn=e,ts.dependencies={lanes:0,firstContext:e}}else bn=bn.next=e;return t}var Tn=null;function Jo(e){Tn===null?Tn=[e]:Tn.push(e)}function Nc(e,t,n,s){var l=t.interleaved;return l===null?(n.next=n,Jo(t)):(n.next=l.next,l.next=n),t.interleaved=n,Bt(e,s)}function Bt(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 rn=!1;function bo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ut(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function sn(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(ce&2)!==0){var l=s.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),s.pending=t,Bt(e,n)}return l=s.interleaved,l===null?(t.next=t,Jo(s)):(t.next=l.next,l.next=t),s.interleaved=t,Bt(e,n)}function ns(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,ho(e,n)}}function _c(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var l=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var h={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};u===null?l=u=h:u=u.next=h,n=n.next}while(n!==null);u===null?l=u=t:u=u.next=t}else l=u=t;n={baseState:s.baseState,firstBaseUpdate:l,lastBaseUpdate:u,shared:s.shared,effects:s.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function rs(e,t,n,s){var l=e.updateQueue;rn=!1;var u=l.firstBaseUpdate,h=l.lastBaseUpdate,y=l.shared.pending;if(y!==null){l.shared.pending=null;var S=y,E=S.next;S.next=null,h===null?u=E:h.next=E,h=S;var N=e.alternate;N!==null&&(N=N.updateQueue,y=N.lastBaseUpdate,y!==h&&(y===null?N.firstBaseUpdate=E:y.next=E,N.lastBaseUpdate=S))}if(u!==null){var _=l.baseState;h=0,N=E=S=null,y=u;do{var L=y.lane,U=y.eventTime;if((s&L)===L){N!==null&&(N=N.next={eventTime:U,lane:0,tag:y.tag,payload:y.payload,callback:y.callback,next:null});e:{var H=e,G=y;switch(L=t,U=n,G.tag){case 1:if(H=G.payload,typeof H=="function"){_=H.call(U,_,L);break e}_=H;break e;case 3:H.flags=H.flags&-65537|128;case 0:if(H=G.payload,L=typeof H=="function"?H.call(U,_,L):H,L==null)break e;_=B({},_,L);break e;case 2:rn=!0}}y.callback!==null&&y.lane!==0&&(e.flags|=64,L=l.effects,L===null?l.effects=[y]:L.push(y))}else U={eventTime:U,lane:L,tag:y.tag,payload:y.payload,callback:y.callback,next:null},N===null?(E=N=U,S=_):N=N.next=U,h|=L;if(y=y.next,y===null){if(y=l.shared.pending,y===null)break;L=y,y=L.next,L.next=null,l.lastBaseUpdate=L,l.shared.pending=null}}while(!0);if(N===null&&(S=_),l.baseState=S,l.firstBaseUpdate=E,l.lastBaseUpdate=N,t=l.shared.interleaved,t!==null){l=t;do h|=l.lane,l=l.next;while(l!==t)}else u===null&&(l.shared.lanes=0);Cn|=h,e.lanes=h,e.memoizedState=_}}function jc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var s=e[t],l=s.callback;if(l!==null){if(s.callback=null,s=n,typeof l!="function")throw Error(o(191,l));l.call(s)}}}var Wr={},Lt=en(Wr),Hr=en(Wr),Kr=en(Wr);function kn(e){if(e===Wr)throw Error(o(174));return e}function el(e,t){switch(ye(Kr,t),ye(Hr,e),ye(Lt,Wr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:eo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=eo(t,e)}Se(Lt),ye(Lt,t)}function tr(){Se(Lt),Se(Hr),Se(Kr)}function Fc(e){kn(Kr.current);var t=kn(Lt.current),n=eo(t,e.type);t!==n&&(ye(Hr,e),ye(Lt,n))}function tl(e){Hr.current===e&&(Se(Lt),Se(Hr))}var Pe=en(0);function is(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)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var nl=[];function rl(){for(var e=0;e<nl.length;e++)nl[e]._workInProgressVersionPrimary=null;nl.length=0}var ss=ne.ReactCurrentDispatcher,il=ne.ReactCurrentBatchConfig,Pn=0,Ce=null,_e=null,Oe=null,os=!1,Gr=!1,Qr=0,mg=0;function Ge(){throw Error(o(321))}function sl(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Tt(e[n],t[n]))return!1;return!0}function ol(e,t,n,s,l,u){if(Pn=u,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ss.current=e===null||e.memoizedState===null?wg:Sg,e=n(s,l),Gr){u=0;do{if(Gr=!1,Qr=0,25<=u)throw Error(o(301));u+=1,Oe=_e=null,t.updateQueue=null,ss.current=xg,e=n(s,l)}while(Gr)}if(ss.current=us,t=_e!==null&&_e.next!==null,Pn=0,Oe=_e=Ce=null,os=!1,t)throw Error(o(300));return e}function ll(){var e=Qr!==0;return Qr=0,e}function Nt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Oe===null?Ce.memoizedState=Oe=e:Oe=Oe.next=e,Oe}function gt(){if(_e===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=_e.next;var t=Oe===null?Ce.memoizedState:Oe.next;if(t!==null)Oe=t,_e=e;else{if(e===null)throw Error(o(310));_e=e,e={memoizedState:_e.memoizedState,baseState:_e.baseState,baseQueue:_e.baseQueue,queue:_e.queue,next:null},Oe===null?Ce.memoizedState=Oe=e:Oe=Oe.next=e}return Oe}function Yr(e,t){return typeof t=="function"?t(e):t}function al(e){var t=gt(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var s=_e,l=s.baseQueue,u=n.pending;if(u!==null){if(l!==null){var h=l.next;l.next=u.next,u.next=h}s.baseQueue=l=u,n.pending=null}if(l!==null){u=l.next,s=s.baseState;var y=h=null,S=null,E=u;do{var N=E.lane;if((Pn&N)===N)S!==null&&(S=S.next={lane:0,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null}),s=E.hasEagerState?E.eagerState:e(s,E.action);else{var _={lane:N,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null};S===null?(y=S=_,h=s):S=S.next=_,Ce.lanes|=N,Cn|=N}E=E.next}while(E!==null&&E!==u);S===null?h=s:S.next=y,Tt(s,t.memoizedState)||(tt=!0),t.memoizedState=s,t.baseState=h,t.baseQueue=S,n.lastRenderedState=s}if(e=n.interleaved,e!==null){l=e;do u=l.lane,Ce.lanes|=u,Cn|=u,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ul(e){var t=gt(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var s=n.dispatch,l=n.pending,u=t.memoizedState;if(l!==null){n.pending=null;var h=l=l.next;do u=e(u,h.action),h=h.next;while(h!==l);Tt(u,t.memoizedState)||(tt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,s]}function Oc(){}function Ic(e,t){var n=Ce,s=gt(),l=t(),u=!Tt(s.memoizedState,l);if(u&&(s.memoizedState=l,tt=!0),s=s.queue,cl(Uc.bind(null,n,s,e),[e]),s.getSnapshot!==t||u||Oe!==null&&Oe.memoizedState.tag&1){if(n.flags|=2048,Xr(9,Bc.bind(null,n,s,l,t),void 0,null),Ie===null)throw Error(o(349));(Pn&30)!==0||zc(n,t,l)}return l}function zc(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ce.updateQueue,t===null?(t={lastEffect:null,stores:null},Ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Bc(e,t,n,s){t.value=n,t.getSnapshot=s,$c(t)&&Wc(e)}function Uc(e,t,n){return n(function(){$c(t)&&Wc(e)})}function $c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Tt(e,n)}catch{return!0}}function Wc(e){var t=Bt(e,1);t!==null&&Dt(t,e,1,-1)}function Hc(e){var t=Nt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Yr,lastRenderedState:e},t.queue=e,e=e.dispatch=vg.bind(null,Ce,e),[t.memoizedState,e]}function Xr(e,t,n,s){return e={tag:e,create:t,destroy:n,deps:s,next:null},t=Ce.updateQueue,t===null?(t={lastEffect:null,stores:null},Ce.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(s=n.next,n.next=e,e.next=s,t.lastEffect=e)),e}function Kc(){return gt().memoizedState}function ls(e,t,n,s){var l=Nt();Ce.flags|=e,l.memoizedState=Xr(1|t,n,void 0,s===void 0?null:s)}function as(e,t,n,s){var l=gt();s=s===void 0?null:s;var u=void 0;if(_e!==null){var h=_e.memoizedState;if(u=h.destroy,s!==null&&sl(s,h.deps)){l.memoizedState=Xr(t,n,u,s);return}}Ce.flags|=e,l.memoizedState=Xr(1|t,n,u,s)}function Gc(e,t){return ls(8390656,8,e,t)}function cl(e,t){return as(2048,8,e,t)}function Qc(e,t){return as(4,2,e,t)}function Yc(e,t){return as(4,4,e,t)}function Xc(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 qc(e,t,n){return n=n!=null?n.concat([e]):null,as(4,4,Xc.bind(null,t,e),n)}function fl(){}function Zc(e,t){var n=gt();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&sl(t,s[1])?s[0]:(n.memoizedState=[e,t],e)}function Jc(e,t){var n=gt();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&sl(t,s[1])?s[0]:(e=e(),n.memoizedState=[e,t],e)}function bc(e,t,n){return(Pn&21)===0?(e.baseState&&(e.baseState=!1,tt=!0),e.memoizedState=n):(Tt(n,t)||(n=Mu(),Ce.lanes|=n,Cn|=n,e.baseState=!0),t)}function gg(e,t){var n=pe;pe=n!==0&&4>n?n:4,e(!0);var s=il.transition;il.transition={};try{e(!1),t()}finally{pe=n,il.transition=s}}function ef(){return gt().memoizedState}function yg(e,t,n){var s=un(e);if(n={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null},tf(e))nf(t,n);else if(n=Nc(e,t,n,s),n!==null){var l=Je();Dt(n,e,s,l),rf(n,t,s)}}function vg(e,t,n){var s=un(e),l={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null};if(tf(e))nf(t,l);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var h=t.lastRenderedState,y=u(h,n);if(l.hasEagerState=!0,l.eagerState=y,Tt(y,h)){var S=t.interleaved;S===null?(l.next=l,Jo(t)):(l.next=S.next,S.next=l),t.interleaved=l;return}}catch{}finally{}n=Nc(e,t,l,s),n!==null&&(l=Je(),Dt(n,e,s,l),rf(n,t,s))}}function tf(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function nf(e,t){Gr=os=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function rf(e,t,n){if((n&4194240)!==0){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,ho(e,n)}}var us={readContext:mt,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useInsertionEffect:Ge,useLayoutEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useMutableSource:Ge,useSyncExternalStore:Ge,useId:Ge,unstable_isNewReconciler:!1},wg={readContext:mt,useCallback:function(e,t){return Nt().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:Gc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ls(4194308,4,Xc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ls(4194308,4,e,t)},useInsertionEffect:function(e,t){return ls(4,2,e,t)},useMemo:function(e,t){var n=Nt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var s=Nt();return t=n!==void 0?n(t):t,s.memoizedState=s.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},s.queue=e,e=e.dispatch=yg.bind(null,Ce,e),[s.memoizedState,e]},useRef:function(e){var t=Nt();return e={current:e},t.memoizedState=e},useState:Hc,useDebugValue:fl,useDeferredValue:function(e){return Nt().memoizedState=e},useTransition:function(){var e=Hc(!1),t=e[0];return e=gg.bind(null,e[1]),Nt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var s=Ce,l=Nt();if(ke){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),Ie===null)throw Error(o(349));(Pn&30)!==0||zc(s,t,n)}l.memoizedState=n;var u={value:n,getSnapshot:t};return l.queue=u,Gc(Uc.bind(null,s,u,e),[e]),s.flags|=2048,Xr(9,Bc.bind(null,s,u,n,t),void 0,null),n},useId:function(){var e=Nt(),t=Ie.identifierPrefix;if(ke){var n=zt,s=It;n=(s&~(1<<32-xt(s)-1)).toString(32)+n,t=":"+t+"R"+n,n=Qr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=mg++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Sg={readContext:mt,useCallback:Zc,useContext:mt,useEffect:cl,useImperativeHandle:qc,useInsertionEffect:Qc,useLayoutEffect:Yc,useMemo:Jc,useReducer:al,useRef:Kc,useState:function(){return al(Yr)},useDebugValue:fl,useDeferredValue:function(e){var t=gt();return bc(t,_e.memoizedState,e)},useTransition:function(){var e=al(Yr)[0],t=gt().memoizedState;return[e,t]},useMutableSource:Oc,useSyncExternalStore:Ic,useId:ef,unstable_isNewReconciler:!1},xg={readContext:mt,useCallback:Zc,useContext:mt,useEffect:cl,useImperativeHandle:qc,useInsertionEffect:Qc,useLayoutEffect:Yc,useMemo:Jc,useReducer:ul,useRef:Kc,useState:function(){return ul(Yr)},useDebugValue:fl,useDeferredValue:function(e){var t=gt();return _e===null?t.memoizedState=e:bc(t,_e.memoizedState,e)},useTransition:function(){var e=ul(Yr)[0],t=gt().memoizedState;return[e,t]},useMutableSource:Oc,useSyncExternalStore:Ic,useId:ef,unstable_isNewReconciler:!1};function Pt(e,t){if(e&&e.defaultProps){t=B({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function dl(e,t,n,s){t=e.memoizedState,n=n(s,t),n=n==null?t:B({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var cs={isMounted:function(e){return(e=e._reactInternals)?yn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var s=Je(),l=un(e),u=Ut(s,l);u.payload=t,n!=null&&(u.callback=n),t=sn(e,u,l),t!==null&&(Dt(t,e,l,s),ns(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var s=Je(),l=un(e),u=Ut(s,l);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=sn(e,u,l),t!==null&&(Dt(t,e,l,s),ns(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Je(),s=un(e),l=Ut(n,s);l.tag=2,t!=null&&(l.callback=t),t=sn(e,l,s),t!==null&&(Dt(t,e,s,n),ns(t,e,s))}};function sf(e,t,n,s,l,u,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,u,h):t.prototype&&t.prototype.isPureReactComponent?!jr(n,s)||!jr(l,u):!0}function of(e,t,n){var s=!1,l=tn,u=t.contextType;return typeof u=="object"&&u!==null?u=mt(u):(l=et(t)?wn:Ke.current,s=t.contextTypes,u=(s=s!=null)?Yn(e,l):tn),t=new t(n,u),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=cs,e.stateNode=t,t._reactInternals=e,s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=u),t}function lf(e,t,n,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,s),t.state!==e&&cs.enqueueReplaceState(t,t.state,null)}function hl(e,t,n,s){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},bo(e);var u=t.contextType;typeof u=="object"&&u!==null?l.context=mt(u):(u=et(t)?wn:Ke.current,l.context=Yn(e,u)),l.state=e.memoizedState,u=t.getDerivedStateFromProps,typeof u=="function"&&(dl(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&&cs.enqueueReplaceState(l,l.state,null),rs(e,n,l,s),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function nr(e,t){try{var n="",s=t;do n+=Z(s),s=s.return;while(s);var l=n}catch(u){l=` | |
| Error generating stack: `+u.message+` | |
| `+u.stack}return{value:e,source:t,stack:l,digest:null}}function pl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ml(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Tg=typeof WeakMap=="function"?WeakMap:Map;function af(e,t,n){n=Ut(-1,n),n.tag=3,n.payload={element:null};var s=t.value;return n.callback=function(){ys||(ys=!0,Rl=s),ml(e,t)},n}function uf(e,t,n){n=Ut(-1,n),n.tag=3;var s=e.type.getDerivedStateFromError;if(typeof s=="function"){var l=t.value;n.payload=function(){return s(l)},n.callback=function(){ml(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){ml(e,t),typeof s!="function"&&(ln===null?ln=new Set([this]):ln.add(this));var h=t.stack;this.componentDidCatch(t.value,{componentStack:h!==null?h:""})}),n}function cf(e,t,n){var s=e.pingCache;if(s===null){s=e.pingCache=new Tg;var l=new Set;s.set(t,l)}else l=s.get(t),l===void 0&&(l=new Set,s.set(t,l));l.has(n)||(l.add(n),e=Fg.bind(null,e,t,n),t.then(e,e))}function ff(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 df(e,t,n,s,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ut(-1,1),t.tag=2,sn(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var kg=ne.ReactCurrentOwner,tt=!1;function Ze(e,t,n,s){t.child=e===null?Lc(t,null,n,s):Jn(t,e.child,n,s)}function hf(e,t,n,s,l){n=n.render;var u=t.ref;return er(t,l),s=ol(e,t,n,s,u,l),n=ll(),e!==null&&!tt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,$t(e,t,l)):(ke&&n&&Wo(t),t.flags|=1,Ze(e,t,s,l),t.child)}function pf(e,t,n,s,l){if(e===null){var u=n.type;return typeof u=="function"&&!Ol(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,mf(e,t,u,s,l)):(e=ks(n.type,null,s,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&l)===0){var h=u.memoizedProps;if(n=n.compare,n=n!==null?n:jr,n(h,s)&&e.ref===t.ref)return $t(e,t,l)}return t.flags|=1,e=fn(u,s),e.ref=t.ref,e.return=t,t.child=e}function mf(e,t,n,s,l){if(e!==null){var u=e.memoizedProps;if(jr(u,s)&&e.ref===t.ref)if(tt=!1,t.pendingProps=s=u,(e.lanes&l)!==0)(e.flags&131072)!==0&&(tt=!0);else return t.lanes=e.lanes,$t(e,t,l)}return gl(e,t,n,s,l)}function gf(e,t,n){var s=t.pendingProps,l=s.children,u=e!==null?e.memoizedState:null;if(s.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ye(ir,ct),ct|=n;else{if((n&1073741824)===0)return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ye(ir,ct),ct|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=u!==null?u.baseLanes:n,ye(ir,ct),ct|=s}else u!==null?(s=u.baseLanes|n,t.memoizedState=null):s=n,ye(ir,ct),ct|=s;return Ze(e,t,l,n),t.child}function yf(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function gl(e,t,n,s,l){var u=et(n)?wn:Ke.current;return u=Yn(t,u),er(t,l),n=ol(e,t,n,s,u,l),s=ll(),e!==null&&!tt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,$t(e,t,l)):(ke&&s&&Wo(t),t.flags|=1,Ze(e,t,n,l),t.child)}function vf(e,t,n,s,l){if(et(n)){var u=!0;Yi(t)}else u=!1;if(er(t,l),t.stateNode===null)ds(e,t),of(t,n,s),hl(t,n,s,l),s=!0;else if(e===null){var h=t.stateNode,y=t.memoizedProps;h.props=y;var S=h.context,E=n.contextType;typeof E=="object"&&E!==null?E=mt(E):(E=et(n)?wn:Ke.current,E=Yn(t,E));var N=n.getDerivedStateFromProps,_=typeof N=="function"||typeof h.getSnapshotBeforeUpdate=="function";_||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(y!==s||S!==E)&&lf(t,h,s,E),rn=!1;var L=t.memoizedState;h.state=L,rs(t,s,h,l),S=t.memoizedState,y!==s||L!==S||be.current||rn?(typeof N=="function"&&(dl(t,n,N,s),S=t.memoizedState),(y=rn||sf(t,n,y,s,L,S,E))?(_||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(t.flags|=4194308)):(typeof h.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=S),h.props=s,h.state=S,h.context=E,s=y):(typeof h.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{h=t.stateNode,Vc(e,t),y=t.memoizedProps,E=t.type===t.elementType?y:Pt(t.type,y),h.props=E,_=t.pendingProps,L=h.context,S=n.contextType,typeof S=="object"&&S!==null?S=mt(S):(S=et(n)?wn:Ke.current,S=Yn(t,S));var U=n.getDerivedStateFromProps;(N=typeof U=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(y!==_||L!==S)&&lf(t,h,s,S),rn=!1,L=t.memoizedState,h.state=L,rs(t,s,h,l);var H=t.memoizedState;y!==_||L!==H||be.current||rn?(typeof U=="function"&&(dl(t,n,U,s),H=t.memoizedState),(E=rn||sf(t,n,E,s,L,H,S)||!1)?(N||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(s,H,S),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(s,H,S)),typeof h.componentDidUpdate=="function"&&(t.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof h.componentDidUpdate!="function"||y===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=H),h.props=s,h.state=H,h.context=S,s=E):(typeof h.componentDidUpdate!="function"||y===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),s=!1)}return yl(e,t,n,s,u,l)}function yl(e,t,n,s,l,u){yf(e,t);var h=(t.flags&128)!==0;if(!s&&!h)return l&&Tc(t,n,!1),$t(e,t,u);s=t.stateNode,kg.current=t;var y=h&&typeof n.getDerivedStateFromError!="function"?null:s.render();return t.flags|=1,e!==null&&h?(t.child=Jn(t,e.child,null,u),t.child=Jn(t,null,y,u)):Ze(e,t,y,u),t.memoizedState=s.state,l&&Tc(t,n,!0),t.child}function wf(e){var t=e.stateNode;t.pendingContext?Sc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Sc(e,t.context,!1),el(e,t.containerInfo)}function Sf(e,t,n,s,l){return Zn(),Qo(l),t.flags|=256,Ze(e,t,n,s),t.child}var vl={dehydrated:null,treeContext:null,retryLane:0};function wl(e){return{baseLanes:e,cachePool:null,transitions:null}}function xf(e,t,n){var s=t.pendingProps,l=Pe.current,u=!1,h=(t.flags&128)!==0,y;if((y=h)||(y=e!==null&&e.memoizedState===null?!1:(l&2)!==0),y?(u=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),ye(Pe,l&1),e===null)return Go(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(h=s.children,e=s.fallback,u?(s=t.mode,u=t.child,h={mode:"hidden",children:h},(s&1)===0&&u!==null?(u.childLanes=0,u.pendingProps=h):u=Ps(h,s,0,null),e=Mn(e,s,n,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=wl(n),t.memoizedState=vl,e):Sl(t,h));if(l=e.memoizedState,l!==null&&(y=l.dehydrated,y!==null))return Pg(e,t,h,s,y,l,n);if(u){u=s.fallback,h=t.mode,l=e.child,y=l.sibling;var S={mode:"hidden",children:s.children};return(h&1)===0&&t.child!==l?(s=t.child,s.childLanes=0,s.pendingProps=S,t.deletions=null):(s=fn(l,S),s.subtreeFlags=l.subtreeFlags&14680064),y!==null?u=fn(y,u):(u=Mn(u,h,n,null),u.flags|=2),u.return=t,s.return=t,s.sibling=u,t.child=s,s=u,u=t.child,h=e.child.memoizedState,h=h===null?wl(n):{baseLanes:h.baseLanes|n,cachePool:null,transitions:h.transitions},u.memoizedState=h,u.childLanes=e.childLanes&~n,t.memoizedState=vl,s}return u=e.child,e=u.sibling,s=fn(u,{mode:"visible",children:s.children}),(t.mode&1)===0&&(s.lanes=n),s.return=t,s.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=s,t.memoizedState=null,s}function Sl(e,t){return t=Ps({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function fs(e,t,n,s){return s!==null&&Qo(s),Jn(t,e.child,null,n),e=Sl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Pg(e,t,n,s,l,u,h){if(n)return t.flags&256?(t.flags&=-257,s=pl(Error(o(422))),fs(e,t,h,s)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(u=s.fallback,l=t.mode,s=Ps({mode:"visible",children:s.children},l,0,null),u=Mn(u,l,h,null),u.flags|=2,s.return=t,u.return=t,s.sibling=u,t.child=s,(t.mode&1)!==0&&Jn(t,e.child,null,h),t.child.memoizedState=wl(h),t.memoizedState=vl,u);if((t.mode&1)===0)return fs(e,t,h,null);if(l.data==="$!"){if(s=l.nextSibling&&l.nextSibling.dataset,s)var y=s.dgst;return s=y,u=Error(o(419)),s=pl(u,s,void 0),fs(e,t,h,s)}if(y=(h&e.childLanes)!==0,tt||y){if(s=Ie,s!==null){switch(h&-h){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&(s.suspendedLanes|h))!==0?0:l,l!==0&&l!==u.retryLane&&(u.retryLane=l,Bt(e,l),Dt(s,e,l,-1))}return Fl(),s=pl(Error(o(421))),fs(e,t,h,s)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=Og.bind(null,e),l._reactRetry=t,null):(e=u.treeContext,ut=bt(l.nextSibling),at=t,ke=!0,kt=null,e!==null&&(ht[pt++]=It,ht[pt++]=zt,ht[pt++]=Sn,It=e.id,zt=e.overflow,Sn=t),t=Sl(t,s.children),t.flags|=4096,t)}function Tf(e,t,n){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),Zo(e.return,t,n)}function xl(e,t,n,s,l){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:l}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=s,u.tail=n,u.tailMode=l)}function kf(e,t,n){var s=t.pendingProps,l=s.revealOrder,u=s.tail;if(Ze(e,t,s.children,n),s=Pe.current,(s&2)!==0)s=s&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Tf(e,n,t);else if(e.tag===19)Tf(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}s&=1}if(ye(Pe,s),(t.mode&1)===0)t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&is(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),xl(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&&is(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}xl(t,!0,n,null,u);break;case"together":xl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ds(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function $t(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Cn|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,n=fn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=fn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Cg(e,t,n){switch(t.tag){case 3:wf(t),Zn();break;case 5:Fc(t);break;case 1:et(t.type)&&Yi(t);break;case 4:el(t,t.stateNode.containerInfo);break;case 10:var s=t.type._context,l=t.memoizedProps.value;ye(es,s._currentValue),s._currentValue=l;break;case 13:if(s=t.memoizedState,s!==null)return s.dehydrated!==null?(ye(Pe,Pe.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?xf(e,t,n):(ye(Pe,Pe.current&1),e=$t(e,t,n),e!==null?e.sibling:null);ye(Pe,Pe.current&1);break;case 19:if(s=(n&t.childLanes)!==0,(e.flags&128)!==0){if(s)return kf(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),ye(Pe,Pe.current),s)break;return null;case 22:case 23:return t.lanes=0,gf(e,t,n)}return $t(e,t,n)}var Pf,Tl,Cf,Ef;Pf=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}},Tl=function(){},Cf=function(e,t,n,s){var l=e.memoizedProps;if(l!==s){e=t.stateNode,kn(Lt.current);var u=null;switch(n){case"input":l=qs(e,l),s=qs(e,s),u=[];break;case"select":l=B({},l,{value:void 0}),s=B({},s,{value:void 0}),u=[];break;case"textarea":l=bs(e,l),s=bs(e,s),u=[];break;default:typeof l.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=Ki)}to(n,s);var h;n=null;for(E in l)if(!s.hasOwnProperty(E)&&l.hasOwnProperty(E)&&l[E]!=null)if(E==="style"){var y=l[E];for(h in y)y.hasOwnProperty(h)&&(n||(n={}),n[h]="")}else E!=="dangerouslySetInnerHTML"&&E!=="children"&&E!=="suppressContentEditableWarning"&&E!=="suppressHydrationWarning"&&E!=="autoFocus"&&(c.hasOwnProperty(E)?u||(u=[]):(u=u||[]).push(E,null));for(E in s){var S=s[E];if(y=l?.[E],s.hasOwnProperty(E)&&S!==y&&(S!=null||y!=null))if(E==="style")if(y){for(h in y)!y.hasOwnProperty(h)||S&&S.hasOwnProperty(h)||(n||(n={}),n[h]="");for(h in S)S.hasOwnProperty(h)&&y[h]!==S[h]&&(n||(n={}),n[h]=S[h])}else n||(u||(u=[]),u.push(E,n)),n=S;else E==="dangerouslySetInnerHTML"?(S=S?S.__html:void 0,y=y?y.__html:void 0,S!=null&&y!==S&&(u=u||[]).push(E,S)):E==="children"?typeof S!="string"&&typeof S!="number"||(u=u||[]).push(E,""+S):E!=="suppressContentEditableWarning"&&E!=="suppressHydrationWarning"&&(c.hasOwnProperty(E)?(S!=null&&E==="onScroll"&&we("scroll",e),u||y===S||(u=[])):(u=u||[]).push(E,S))}n&&(u=u||[]).push("style",n);var E=u;(t.updateQueue=E)&&(t.flags|=4)}},Ef=function(e,t,n,s){n!==s&&(t.flags|=4)};function qr(e,t){if(!ke)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 s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function Qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,s=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,s|=l.subtreeFlags&14680064,s|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,s|=l.subtreeFlags,s|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=s,e.childLanes=n,t}function Eg(e,t,n){var s=t.pendingProps;switch(Ho(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qe(t),null;case 1:return et(t.type)&&Qi(),Qe(t),null;case 3:return s=t.stateNode,tr(),Se(be),Se(Ke),rl(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(Ji(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,kt!==null&&(Vl(kt),kt=null))),Tl(e,t),Qe(t),null;case 5:tl(t);var l=kn(Kr.current);if(n=t.type,e!==null&&t.stateNode!=null)Cf(e,t,n,s,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!s){if(t.stateNode===null)throw Error(o(166));return Qe(t),null}if(e=kn(Lt.current),Ji(t)){s=t.stateNode,n=t.type;var u=t.memoizedProps;switch(s[Rt]=t,s[Br]=u,e=(t.mode&1)!==0,n){case"dialog":we("cancel",s),we("close",s);break;case"iframe":case"object":case"embed":we("load",s);break;case"video":case"audio":for(l=0;l<Or.length;l++)we(Or[l],s);break;case"source":we("error",s);break;case"img":case"image":case"link":we("error",s),we("load",s);break;case"details":we("toggle",s);break;case"input":su(s,u),we("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!u.multiple},we("invalid",s);break;case"textarea":au(s,u),we("invalid",s)}to(n,u),l=null;for(var h in u)if(u.hasOwnProperty(h)){var y=u[h];h==="children"?typeof y=="string"?s.textContent!==y&&(u.suppressHydrationWarning!==!0&&Hi(s.textContent,y,e),l=["children",y]):typeof y=="number"&&s.textContent!==""+y&&(u.suppressHydrationWarning!==!0&&Hi(s.textContent,y,e),l=["children",""+y]):c.hasOwnProperty(h)&&y!=null&&h==="onScroll"&&we("scroll",s)}switch(n){case"input":xi(s),lu(s,u,!0);break;case"textarea":xi(s),cu(s);break;case"select":case"option":break;default:typeof u.onClick=="function"&&(s.onclick=Ki)}s=l,t.updateQueue=s,s!==null&&(t.flags|=4)}else{h=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=fu(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=h.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=h.createElement(n,{is:s.is}):(e=h.createElement(n),n==="select"&&(h=e,s.multiple?h.multiple=!0:s.size&&(h.size=s.size))):e=h.createElementNS(e,n),e[Rt]=t,e[Br]=s,Pf(e,t,!1,!1),t.stateNode=e;e:{switch(h=no(n,s),n){case"dialog":we("cancel",e),we("close",e),l=s;break;case"iframe":case"object":case"embed":we("load",e),l=s;break;case"video":case"audio":for(l=0;l<Or.length;l++)we(Or[l],e);l=s;break;case"source":we("error",e),l=s;break;case"img":case"image":case"link":we("error",e),we("load",e),l=s;break;case"details":we("toggle",e),l=s;break;case"input":su(e,s),l=qs(e,s),we("invalid",e);break;case"option":l=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},l=B({},s,{value:void 0}),we("invalid",e);break;case"textarea":au(e,s),l=bs(e,s),we("invalid",e);break;default:l=s}to(n,l),y=l;for(u in y)if(y.hasOwnProperty(u)){var S=y[u];u==="style"?pu(e,S):u==="dangerouslySetInnerHTML"?(S=S?S.__html:void 0,S!=null&&du(e,S)):u==="children"?typeof S=="string"?(n!=="textarea"||S!=="")&&vr(e,S):typeof S=="number"&&vr(e,""+S):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(c.hasOwnProperty(u)?S!=null&&u==="onScroll"&&we("scroll",e):S!=null&&K(e,u,S,h))}switch(n){case"input":xi(e),lu(e,s,!1);break;case"textarea":xi(e),cu(e);break;case"option":s.value!=null&&e.setAttribute("value",""+he(s.value));break;case"select":e.multiple=!!s.multiple,u=s.value,u!=null?Fn(e,!!s.multiple,u,!1):s.defaultValue!=null&&Fn(e,!!s.multiple,s.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=Ki)}switch(n){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}}s&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Qe(t),null;case 6:if(e&&t.stateNode!=null)Ef(e,t,e.memoizedProps,s);else{if(typeof s!="string"&&t.stateNode===null)throw Error(o(166));if(n=kn(Kr.current),kn(Lt.current),Ji(t)){if(s=t.stateNode,n=t.memoizedProps,s[Rt]=t,(u=s.nodeValue!==n)&&(e=at,e!==null))switch(e.tag){case 3:Hi(s.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Hi(s.nodeValue,n,(e.mode&1)!==0)}u&&(t.flags|=4)}else s=(n.nodeType===9?n:n.ownerDocument).createTextNode(s),s[Rt]=t,t.stateNode=s}return Qe(t),null;case 13:if(Se(Pe),s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ke&&ut!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Ac(),Zn(),t.flags|=98560,u=!1;else if(u=Ji(t),s!==null&&s.dehydrated!==null){if(e===null){if(!u)throw Error(o(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(o(317));u[Rt]=t}else Zn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Qe(t),u=!1}else kt!==null&&(Vl(kt),kt=null),u=!0;if(!u)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(s=s!==null,s!==(e!==null&&e.memoizedState!==null)&&s&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Pe.current&1)!==0?je===0&&(je=3):Fl())),t.updateQueue!==null&&(t.flags|=4),Qe(t),null);case 4:return tr(),Tl(e,t),e===null&&Ir(t.stateNode.containerInfo),Qe(t),null;case 10:return qo(t.type._context),Qe(t),null;case 17:return et(t.type)&&Qi(),Qe(t),null;case 19:if(Se(Pe),u=t.memoizedState,u===null)return Qe(t),null;if(s=(t.flags&128)!==0,h=u.rendering,h===null)if(s)qr(u,!1);else{if(je!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(h=is(e),h!==null){for(t.flags|=128,qr(u,!1),s=h.updateQueue,s!==null&&(t.updateQueue=s,t.flags|=4),t.subtreeFlags=0,s=n,n=t.child;n!==null;)u=n,e=s,u.flags&=14680066,h=u.alternate,h===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=h.childLanes,u.lanes=h.lanes,u.child=h.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=h.memoizedProps,u.memoizedState=h.memoizedState,u.updateQueue=h.updateQueue,u.type=h.type,e=h.dependencies,u.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ye(Pe,Pe.current&1|2),t.child}e=e.sibling}u.tail!==null&&Re()>sr&&(t.flags|=128,s=!0,qr(u,!1),t.lanes=4194304)}else{if(!s)if(e=is(h),e!==null){if(t.flags|=128,s=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),qr(u,!0),u.tail===null&&u.tailMode==="hidden"&&!h.alternate&&!ke)return Qe(t),null}else 2*Re()-u.renderingStartTime>sr&&n!==1073741824&&(t.flags|=128,s=!0,qr(u,!1),t.lanes=4194304);u.isBackwards?(h.sibling=t.child,t.child=h):(n=u.last,n!==null?n.sibling=h:t.child=h,u.last=h)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Re(),t.sibling=null,n=Pe.current,ye(Pe,s?n&1|2:n&1),t):(Qe(t),null);case 22:case 23:return jl(),s=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(t.flags|=8192),s&&(t.mode&1)!==0?(ct&1073741824)!==0&&(Qe(t),t.subtreeFlags&6&&(t.flags|=8192)):Qe(t),null;case 24:return null;case 25:return null}throw Error(o(156,t.tag))}function Dg(e,t){switch(Ho(t),t.tag){case 1:return et(t.type)&&Qi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return tr(),Se(be),Se(Ke),rl(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return tl(t),null;case 13:if(Se(Pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Zn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Se(Pe),null;case 4:return tr(),null;case 10:return qo(t.type._context),null;case 22:case 23:return jl(),null;case 24:return null;default:return null}}var hs=!1,Ye=!1,Ag=typeof WeakSet=="function"?WeakSet:Set,W=null;function rr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(s){De(e,t,s)}else n.current=null}function kl(e,t,n){try{n()}catch(s){De(e,t,s)}}var Df=!1;function Mg(e,t){if(jo=Vi,e=ic(),Do(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var s=n.getSelection&&n.getSelection();if(s&&s.rangeCount!==0){n=s.anchorNode;var l=s.anchorOffset,u=s.focusNode;s=s.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var h=0,y=-1,S=-1,E=0,N=0,_=e,L=null;t:for(;;){for(var U;_!==n||l!==0&&_.nodeType!==3||(y=h+l),_!==u||s!==0&&_.nodeType!==3||(S=h+s),_.nodeType===3&&(h+=_.nodeValue.length),(U=_.firstChild)!==null;)L=_,_=U;for(;;){if(_===e)break t;if(L===n&&++E===l&&(y=h),L===u&&++N===s&&(S=h),(U=_.nextSibling)!==null)break;_=L,L=_.parentNode}_=U}n=y===-1||S===-1?null:{start:y,end:S}}else n=null}n=n||{start:0,end:0}}else n=null;for(Fo={focusedElem:e,selectionRange:n},Vi=!1,W=t;W!==null;)if(t=W,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,W=e;else for(;W!==null;){t=W;try{var H=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(H!==null){var G=H.memoizedProps,Le=H.memoizedState,P=t.stateNode,x=P.getSnapshotBeforeUpdate(t.elementType===t.type?G:Pt(t.type,G),Le);P.__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(o(163))}}catch(O){De(t,t.return,O)}if(e=t.sibling,e!==null){e.return=t.return,W=e;break}W=t.return}return H=Df,Df=!1,H}function Zr(e,t,n){var s=t.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var l=s=s.next;do{if((l.tag&e)===e){var u=l.destroy;l.destroy=void 0,u!==void 0&&kl(t,n,u)}l=l.next}while(l!==s)}}function ps(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 s=n.create;n.destroy=s()}n=n.next}while(n!==t)}}function Pl(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Af(e){var t=e.alternate;t!==null&&(e.alternate=null,Af(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Rt],delete t[Br],delete t[Bo],delete t[fg],delete t[dg])),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 Mf(e){return e.tag===5||e.tag===3||e.tag===4}function Rf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Mf(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 Cl(e,t,n){var s=e.tag;if(s===5||s===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=Ki));else if(s!==4&&(e=e.child,e!==null))for(Cl(e,t,n),e=e.sibling;e!==null;)Cl(e,t,n),e=e.sibling}function El(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(s!==4&&(e=e.child,e!==null))for(El(e,t,n),e=e.sibling;e!==null;)El(e,t,n),e=e.sibling}var Ue=null,Ct=!1;function on(e,t,n){for(n=n.child;n!==null;)Lf(e,t,n),n=n.sibling}function Lf(e,t,n){if(Mt&&typeof Mt.onCommitFiberUnmount=="function")try{Mt.onCommitFiberUnmount(Di,n)}catch{}switch(n.tag){case 5:Ye||rr(n,t);case 6:var s=Ue,l=Ct;Ue=null,on(e,t,n),Ue=s,Ct=l,Ue!==null&&(Ct?(e=Ue,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ue.removeChild(n.stateNode));break;case 18:Ue!==null&&(Ct?(e=Ue,n=n.stateNode,e.nodeType===8?zo(e.parentNode,n):e.nodeType===1&&zo(e,n),Mr(e)):zo(Ue,n.stateNode));break;case 4:s=Ue,l=Ct,Ue=n.stateNode.containerInfo,Ct=!0,on(e,t,n),Ue=s,Ct=l;break;case 0:case 11:case 14:case 15:if(!Ye&&(s=n.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){l=s=s.next;do{var u=l,h=u.destroy;u=u.tag,h!==void 0&&((u&2)!==0||(u&4)!==0)&&kl(n,t,h),l=l.next}while(l!==s)}on(e,t,n);break;case 1:if(!Ye&&(rr(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=n.memoizedProps,s.state=n.memoizedState,s.componentWillUnmount()}catch(y){De(n,t,y)}on(e,t,n);break;case 21:on(e,t,n);break;case 22:n.mode&1?(Ye=(s=Ye)||n.memoizedState!==null,on(e,t,n),Ye=s):on(e,t,n);break;default:on(e,t,n)}}function Nf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Ag),t.forEach(function(s){var l=Ig.bind(null,e,s);n.has(s)||(n.add(s),s.then(l,l))})}}function Et(e,t){var n=t.deletions;if(n!==null)for(var s=0;s<n.length;s++){var l=n[s];try{var u=e,h=t,y=h;e:for(;y!==null;){switch(y.tag){case 5:Ue=y.stateNode,Ct=!1;break e;case 3:Ue=y.stateNode.containerInfo,Ct=!0;break e;case 4:Ue=y.stateNode.containerInfo,Ct=!0;break e}y=y.return}if(Ue===null)throw Error(o(160));Lf(u,h,l),Ue=null,Ct=!1;var S=l.alternate;S!==null&&(S.return=null),l.return=null}catch(E){De(l,t,E)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Vf(t,e),t=t.sibling}function Vf(e,t){var n=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Et(t,e),Vt(e),s&4){try{Zr(3,e,e.return),ps(3,e)}catch(G){De(e,e.return,G)}try{Zr(5,e,e.return)}catch(G){De(e,e.return,G)}}break;case 1:Et(t,e),Vt(e),s&512&&n!==null&&rr(n,n.return);break;case 5:if(Et(t,e),Vt(e),s&512&&n!==null&&rr(n,n.return),e.flags&32){var l=e.stateNode;try{vr(l,"")}catch(G){De(e,e.return,G)}}if(s&4&&(l=e.stateNode,l!=null)){var u=e.memoizedProps,h=n!==null?n.memoizedProps:u,y=e.type,S=e.updateQueue;if(e.updateQueue=null,S!==null)try{y==="input"&&u.type==="radio"&&u.name!=null&&ou(l,u),no(y,h);var E=no(y,u);for(h=0;h<S.length;h+=2){var N=S[h],_=S[h+1];N==="style"?pu(l,_):N==="dangerouslySetInnerHTML"?du(l,_):N==="children"?vr(l,_):K(l,N,_,E)}switch(y){case"input":Zs(l,u);break;case"textarea":uu(l,u);break;case"select":var L=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!u.multiple;var U=u.value;U!=null?Fn(l,!!u.multiple,U,!1):L!==!!u.multiple&&(u.defaultValue!=null?Fn(l,!!u.multiple,u.defaultValue,!0):Fn(l,!!u.multiple,u.multiple?[]:"",!1))}l[Br]=u}catch(G){De(e,e.return,G)}}break;case 6:if(Et(t,e),Vt(e),s&4){if(e.stateNode===null)throw Error(o(162));l=e.stateNode,u=e.memoizedProps;try{l.nodeValue=u}catch(G){De(e,e.return,G)}}break;case 3:if(Et(t,e),Vt(e),s&4&&n!==null&&n.memoizedState.isDehydrated)try{Mr(t.containerInfo)}catch(G){De(e,e.return,G)}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||(Ml=Re())),s&4&&Nf(e);break;case 22:if(N=n!==null&&n.memoizedState!==null,e.mode&1?(Ye=(E=Ye)||N,Et(t,e),Ye=E):Et(t,e),Vt(e),s&8192){if(E=e.memoizedState!==null,(e.stateNode.isHidden=E)&&!N&&(e.mode&1)!==0)for(W=e,N=e.child;N!==null;){for(_=W=N;W!==null;){switch(L=W,U=L.child,L.tag){case 0:case 11:case 14:case 15:Zr(4,L,L.return);break;case 1:rr(L,L.return);var H=L.stateNode;if(typeof H.componentWillUnmount=="function"){s=L,n=L.return;try{t=s,H.props=t.memoizedProps,H.state=t.memoizedState,H.componentWillUnmount()}catch(G){De(s,n,G)}}break;case 5:rr(L,L.return);break;case 22:if(L.memoizedState!==null){Ff(_);continue}}U!==null?(U.return=L,W=U):Ff(_)}N=N.sibling}e:for(N=null,_=e;;){if(_.tag===5){if(N===null){N=_;try{l=_.stateNode,E?(u=l.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none"):(y=_.stateNode,S=_.memoizedProps.style,h=S!=null&&S.hasOwnProperty("display")?S.display:null,y.style.display=hu("display",h))}catch(G){De(e,e.return,G)}}}else if(_.tag===6){if(N===null)try{_.stateNode.nodeValue=E?"":_.memoizedProps}catch(G){De(e,e.return,G)}}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;N===_&&(N=null),_=_.return}N===_&&(N=null),_.sibling.return=_.return,_=_.sibling}}break;case 19:Et(t,e),Vt(e),s&4&&Nf(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(Mf(n)){var s=n;break e}n=n.return}throw Error(o(160))}switch(s.tag){case 5:var l=s.stateNode;s.flags&32&&(vr(l,""),s.flags&=-33);var u=Rf(e);El(e,u,l);break;case 3:case 4:var h=s.stateNode.containerInfo,y=Rf(e);Cl(e,y,h);break;default:throw Error(o(161))}}catch(S){De(e,e.return,S)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Rg(e,t,n){W=e,_f(e)}function _f(e,t,n){for(var s=(e.mode&1)!==0;W!==null;){var l=W,u=l.child;if(l.tag===22&&s){var h=l.memoizedState!==null||hs;if(!h){var y=l.alternate,S=y!==null&&y.memoizedState!==null||Ye;y=hs;var E=Ye;if(hs=h,(Ye=S)&&!E)for(W=l;W!==null;)h=W,S=h.child,h.tag===22&&h.memoizedState!==null?Of(l):S!==null?(S.return=h,W=S):Of(l);for(;u!==null;)W=u,_f(u),u=u.sibling;W=l,hs=y,Ye=E}jf(e)}else(l.subtreeFlags&8772)!==0&&u!==null?(u.return=l,W=u):jf(e)}}function jf(e){for(;W!==null;){var t=W;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Ye||ps(5,t);break;case 1:var s=t.stateNode;if(t.flags&4&&!Ye)if(n===null)s.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:Pt(t.type,n.memoizedProps);s.componentDidUpdate(l,n.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var u=t.updateQueue;u!==null&&jc(t,u,s);break;case 3:var h=t.updateQueue;if(h!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}jc(t,h,n)}break;case 5:var y=t.stateNode;if(n===null&&t.flags&4){n=y;var S=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":S.autoFocus&&n.focus();break;case"img":S.src&&(n.src=S.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 N=E.memoizedState;if(N!==null){var _=N.dehydrated;_!==null&&Mr(_)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(o(163))}Ye||t.flags&512&&Pl(t)}catch(L){De(t,t.return,L)}}if(t===e){W=null;break}if(n=t.sibling,n!==null){n.return=t.return,W=n;break}W=t.return}}function Ff(e){for(;W!==null;){var t=W;if(t===e){W=null;break}var n=t.sibling;if(n!==null){n.return=t.return,W=n;break}W=t.return}}function Of(e){for(;W!==null;){var t=W;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ps(4,t)}catch(S){De(t,n,S)}break;case 1:var s=t.stateNode;if(typeof s.componentDidMount=="function"){var l=t.return;try{s.componentDidMount()}catch(S){De(t,l,S)}}var u=t.return;try{Pl(t)}catch(S){De(t,u,S)}break;case 5:var h=t.return;try{Pl(t)}catch(S){De(t,h,S)}}}catch(S){De(t,t.return,S)}if(t===e){W=null;break}var y=t.sibling;if(y!==null){y.return=t.return,W=y;break}W=t.return}}var Lg=Math.ceil,ms=ne.ReactCurrentDispatcher,Dl=ne.ReactCurrentOwner,yt=ne.ReactCurrentBatchConfig,ce=0,Ie=null,Ve=null,$e=0,ct=0,ir=en(0),je=0,Jr=null,Cn=0,gs=0,Al=0,br=null,nt=null,Ml=0,sr=1/0,Wt=null,ys=!1,Rl=null,ln=null,vs=!1,an=null,ws=0,ei=0,Ll=null,Ss=-1,xs=0;function Je(){return(ce&6)!==0?Re():Ss!==-1?Ss:Ss=Re()}function un(e){return(e.mode&1)===0?1:(ce&2)!==0&&$e!==0?$e&-$e:pg.transition!==null?(xs===0&&(xs=Mu()),xs):(e=pe,e!==0||(e=window.event,e=e===void 0?16:Iu(e.type)),e)}function Dt(e,t,n,s){if(50<ei)throw ei=0,Ll=null,Error(o(185));Pr(e,n,s),((ce&2)===0||e!==Ie)&&(e===Ie&&((ce&2)===0&&(gs|=n),je===4&&cn(e,$e)),rt(e,s),n===1&&ce===0&&(t.mode&1)===0&&(sr=Re()+500,Xi&&nn()))}function rt(e,t){var n=e.callbackNode;pm(e,t);var s=Ri(e,e===Ie?$e:0);if(s===0)n!==null&&Eu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=s&-s,e.callbackPriority!==t){if(n!=null&&Eu(n),t===1)e.tag===0?hg(zf.bind(null,e)):kc(zf.bind(null,e)),ug(function(){(ce&6)===0&&nn()}),n=null;else{switch(Ru(s)){case 1:n=uo;break;case 4:n=Du;break;case 16:n=Ei;break;case 536870912:n=Au;break;default:n=Ei}n=Qf(n,If.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function If(e,t){if(Ss=-1,xs=0,(ce&6)!==0)throw Error(o(327));var n=e.callbackNode;if(or()&&e.callbackNode!==n)return null;var s=Ri(e,e===Ie?$e:0);if(s===0)return null;if((s&30)!==0||(s&e.expiredLanes)!==0||t)t=Ts(e,s);else{t=s;var l=ce;ce|=2;var u=Uf();(Ie!==e||$e!==t)&&(Wt=null,sr=Re()+500,Dn(e,t));do try{_g();break}catch(y){Bf(e,y)}while(!0);Xo(),ms.current=u,ce=l,Ve!==null?t=0:(Ie=null,$e=0,t=je)}if(t!==0){if(t===2&&(l=co(e),l!==0&&(s=l,t=Nl(e,l))),t===1)throw n=Jr,Dn(e,0),cn(e,s),rt(e,Re()),n;if(t===6)cn(e,s);else{if(l=e.current.alternate,(s&30)===0&&!Ng(l)&&(t=Ts(e,s),t===2&&(u=co(e),u!==0&&(s=u,t=Nl(e,u))),t===1))throw n=Jr,Dn(e,0),cn(e,s),rt(e,Re()),n;switch(e.finishedWork=l,e.finishedLanes=s,t){case 0:case 1:throw Error(o(345));case 2:An(e,nt,Wt);break;case 3:if(cn(e,s),(s&130023424)===s&&(t=Ml+500-Re(),10<t)){if(Ri(e,0)!==0)break;if(l=e.suspendedLanes,(l&s)!==s){Je(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Io(An.bind(null,e,nt,Wt),t);break}An(e,nt,Wt);break;case 4:if(cn(e,s),(s&4194240)===s)break;for(t=e.eventTimes,l=-1;0<s;){var h=31-xt(s);u=1<<h,h=t[h],h>l&&(l=h),s&=~u}if(s=l,s=Re()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*Lg(s/1960))-s,10<s){e.timeoutHandle=Io(An.bind(null,e,nt,Wt),s);break}An(e,nt,Wt);break;case 5:An(e,nt,Wt);break;default:throw Error(o(329))}}}return rt(e,Re()),e.callbackNode===n?If.bind(null,e):null}function Nl(e,t){var n=br;return e.current.memoizedState.isDehydrated&&(Dn(e,t).flags|=256),e=Ts(e,t),e!==2&&(t=nt,nt=n,t!==null&&Vl(t)),e}function Vl(e){nt===null?nt=e:nt.push.apply(nt,e)}function Ng(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var s=0;s<n.length;s++){var l=n[s],u=l.getSnapshot;l=l.value;try{if(!Tt(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 cn(e,t){for(t&=~Al,t&=~gs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-xt(t),s=1<<n;e[n]=-1,t&=~s}}function zf(e){if((ce&6)!==0)throw Error(o(327));or();var t=Ri(e,0);if((t&1)===0)return rt(e,Re()),null;var n=Ts(e,t);if(e.tag!==0&&n===2){var s=co(e);s!==0&&(t=s,n=Nl(e,s))}if(n===1)throw n=Jr,Dn(e,0),cn(e,t),rt(e,Re()),n;if(n===6)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,An(e,nt,Wt),rt(e,Re()),null}function _l(e,t){var n=ce;ce|=1;try{return e(t)}finally{ce=n,ce===0&&(sr=Re()+500,Xi&&nn())}}function En(e){an!==null&&an.tag===0&&(ce&6)===0&&or();var t=ce;ce|=1;var n=yt.transition,s=pe;try{if(yt.transition=null,pe=1,e)return e()}finally{pe=s,yt.transition=n,ce=t,(ce&6)===0&&nn()}}function jl(){ct=ir.current,Se(ir)}function Dn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,ag(n)),Ve!==null)for(n=Ve.return;n!==null;){var s=n;switch(Ho(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&Qi();break;case 3:tr(),Se(be),Se(Ke),rl();break;case 5:tl(s);break;case 4:tr();break;case 13:Se(Pe);break;case 19:Se(Pe);break;case 10:qo(s.type._context);break;case 22:case 23:jl()}n=n.return}if(Ie=e,Ve=e=fn(e.current,null),$e=ct=t,je=0,Jr=null,Al=gs=Cn=0,nt=br=null,Tn!==null){for(t=0;t<Tn.length;t++)if(n=Tn[t],s=n.interleaved,s!==null){n.interleaved=null;var l=s.next,u=n.pending;if(u!==null){var h=u.next;u.next=l,s.next=h}n.pending=s}Tn=null}return e}function Bf(e,t){do{var n=Ve;try{if(Xo(),ss.current=us,os){for(var s=Ce.memoizedState;s!==null;){var l=s.queue;l!==null&&(l.pending=null),s=s.next}os=!1}if(Pn=0,Oe=_e=Ce=null,Gr=!1,Qr=0,Dl.current=null,n===null||n.return===null){je=1,Jr=t,Ve=null;break}e:{var u=e,h=n.return,y=n,S=t;if(t=$e,y.flags|=32768,S!==null&&typeof S=="object"&&typeof S.then=="function"){var E=S,N=y,_=N.tag;if((N.mode&1)===0&&(_===0||_===11||_===15)){var L=N.alternate;L?(N.updateQueue=L.updateQueue,N.memoizedState=L.memoizedState,N.lanes=L.lanes):(N.updateQueue=null,N.memoizedState=null)}var U=ff(h);if(U!==null){U.flags&=-257,df(U,h,y,u,t),U.mode&1&&cf(u,E,t),t=U,S=E;var H=t.updateQueue;if(H===null){var G=new Set;G.add(S),t.updateQueue=G}else H.add(S);break e}else{if((t&1)===0){cf(u,E,t),Fl();break e}S=Error(o(426))}}else if(ke&&y.mode&1){var Le=ff(h);if(Le!==null){(Le.flags&65536)===0&&(Le.flags|=256),df(Le,h,y,u,t),Qo(nr(S,y));break e}}u=S=nr(S,y),je!==4&&(je=2),br===null?br=[u]:br.push(u),u=h;do{switch(u.tag){case 3:u.flags|=65536,t&=-t,u.lanes|=t;var P=af(u,S,t);_c(u,P);break e;case 1:y=S;var x=u.type,C=u.stateNode;if((u.flags&128)===0&&(typeof x.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(ln===null||!ln.has(C)))){u.flags|=65536,t&=-t,u.lanes|=t;var O=uf(u,y,t);_c(u,O);break e}}u=u.return}while(u!==null)}Wf(n)}catch(Y){t=Y,Ve===n&&n!==null&&(Ve=n=n.return);continue}break}while(!0)}function Uf(){var e=ms.current;return ms.current=us,e===null?us:e}function Fl(){(je===0||je===3||je===2)&&(je=4),Ie===null||(Cn&268435455)===0&&(gs&268435455)===0||cn(Ie,$e)}function Ts(e,t){var n=ce;ce|=2;var s=Uf();(Ie!==e||$e!==t)&&(Wt=null,Dn(e,t));do try{Vg();break}catch(l){Bf(e,l)}while(!0);if(Xo(),ce=n,ms.current=s,Ve!==null)throw Error(o(261));return Ie=null,$e=0,je}function Vg(){for(;Ve!==null;)$f(Ve)}function _g(){for(;Ve!==null&&!sm();)$f(Ve)}function $f(e){var t=Gf(e.alternate,e,ct);e.memoizedProps=e.pendingProps,t===null?Wf(e):Ve=t,Dl.current=null}function Wf(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=Eg(n,t,ct),n!==null){Ve=n;return}}else{if(n=Dg(n,t),n!==null){n.flags&=32767,Ve=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{je=6,Ve=null;return}}if(t=t.sibling,t!==null){Ve=t;return}Ve=t=e}while(t!==null);je===0&&(je=5)}function An(e,t,n){var s=pe,l=yt.transition;try{yt.transition=null,pe=1,jg(e,t,n,s)}finally{yt.transition=l,pe=s}return null}function jg(e,t,n,s){do or();while(an!==null);if((ce&6)!==0)throw Error(o(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(o(177));e.callbackNode=null,e.callbackPriority=0;var u=n.lanes|n.childLanes;if(mm(e,u),e===Ie&&(Ve=Ie=null,$e=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||vs||(vs=!0,Qf(Ei,function(){return or(),null})),u=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||u){u=yt.transition,yt.transition=null;var h=pe;pe=1;var y=ce;ce|=4,Dl.current=null,Mg(e,n),Vf(n,e),tg(Fo),Vi=!!jo,Fo=jo=null,e.current=n,Rg(n),om(),ce=y,pe=h,yt.transition=u}else e.current=n;if(vs&&(vs=!1,an=e,ws=l),u=e.pendingLanes,u===0&&(ln=null),um(n.stateNode),rt(e,Re()),t!==null)for(s=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],s(l.value,{componentStack:l.stack,digest:l.digest});if(ys)throw ys=!1,e=Rl,Rl=null,e;return(ws&1)!==0&&e.tag!==0&&or(),u=e.pendingLanes,(u&1)!==0?e===Ll?ei++:(ei=0,Ll=e):ei=0,nn(),null}function or(){if(an!==null){var e=Ru(ws),t=yt.transition,n=pe;try{if(yt.transition=null,pe=16>e?16:e,an===null)var s=!1;else{if(e=an,an=null,ws=0,(ce&6)!==0)throw Error(o(331));var l=ce;for(ce|=4,W=e.current;W!==null;){var u=W,h=u.child;if((W.flags&16)!==0){var y=u.deletions;if(y!==null){for(var S=0;S<y.length;S++){var E=y[S];for(W=E;W!==null;){var N=W;switch(N.tag){case 0:case 11:case 15:Zr(8,N,u)}var _=N.child;if(_!==null)_.return=N,W=_;else for(;W!==null;){N=W;var L=N.sibling,U=N.return;if(Af(N),N===E){W=null;break}if(L!==null){L.return=U,W=L;break}W=U}}}var H=u.alternate;if(H!==null){var G=H.child;if(G!==null){H.child=null;do{var Le=G.sibling;G.sibling=null,G=Le}while(G!==null)}}W=u}}if((u.subtreeFlags&2064)!==0&&h!==null)h.return=u,W=h;else e:for(;W!==null;){if(u=W,(u.flags&2048)!==0)switch(u.tag){case 0:case 11:case 15:Zr(9,u,u.return)}var P=u.sibling;if(P!==null){P.return=u.return,W=P;break e}W=u.return}}var x=e.current;for(W=x;W!==null;){h=W;var C=h.child;if((h.subtreeFlags&2064)!==0&&C!==null)C.return=h,W=C;else e:for(h=x;W!==null;){if(y=W,(y.flags&2048)!==0)try{switch(y.tag){case 0:case 11:case 15:ps(9,y)}}catch(Y){De(y,y.return,Y)}if(y===h){W=null;break e}var O=y.sibling;if(O!==null){O.return=y.return,W=O;break e}W=y.return}}if(ce=l,nn(),Mt&&typeof Mt.onPostCommitFiberRoot=="function")try{Mt.onPostCommitFiberRoot(Di,e)}catch{}s=!0}return s}finally{pe=n,yt.transition=t}}return!1}function Hf(e,t,n){t=nr(n,t),t=af(e,t,1),e=sn(e,t,1),t=Je(),e!==null&&(Pr(e,1,t),rt(e,t))}function De(e,t,n){if(e.tag===3)Hf(e,e,n);else for(;t!==null;){if(t.tag===3){Hf(t,e,n);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(ln===null||!ln.has(s))){e=nr(n,e),e=uf(t,e,1),t=sn(t,e,1),e=Je(),t!==null&&(Pr(t,1,e),rt(t,e));break}}t=t.return}}function Fg(e,t,n){var s=e.pingCache;s!==null&&s.delete(t),t=Je(),e.pingedLanes|=e.suspendedLanes&n,Ie===e&&($e&n)===n&&(je===4||je===3&&($e&130023424)===$e&&500>Re()-Ml?Dn(e,0):Al|=n),rt(e,t)}function Kf(e,t){t===0&&((e.mode&1)===0?t=1:(t=Mi,Mi<<=1,(Mi&130023424)===0&&(Mi=4194304)));var n=Je();e=Bt(e,t),e!==null&&(Pr(e,t,n),rt(e,n))}function Og(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Kf(e,n)}function Ig(e,t){var n=0;switch(e.tag){case 13:var s=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(o(314))}s!==null&&s.delete(t),Kf(e,n)}var Gf;Gf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||be.current)tt=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return tt=!1,Cg(e,t,n);tt=(e.flags&131072)!==0}else tt=!1,ke&&(t.flags&1048576)!==0&&Pc(t,Zi,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;ds(e,t),e=t.pendingProps;var l=Yn(t,Ke.current);er(t,n),l=ol(null,t,s,e,l,n);var u=ll();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(s)?(u=!0,Yi(t)):u=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,bo(t),l.updater=cs,t.stateNode=l,l._reactInternals=t,hl(t,s,e,n),t=yl(null,t,s,!0,u,n)):(t.tag=0,ke&&u&&Wo(t),Ze(null,t,l,n),t=t.child),t;case 16:s=t.elementType;e:{switch(ds(e,t),e=t.pendingProps,l=s._init,s=l(s._payload),t.type=s,l=t.tag=Bg(s),e=Pt(s,e),l){case 0:t=gl(null,t,s,e,n);break e;case 1:t=vf(null,t,s,e,n);break e;case 11:t=hf(null,t,s,e,n);break e;case 14:t=pf(null,t,s,Pt(s.type,e),n);break e}throw Error(o(306,s,""))}return t;case 0:return s=t.type,l=t.pendingProps,l=t.elementType===s?l:Pt(s,l),gl(e,t,s,l,n);case 1:return s=t.type,l=t.pendingProps,l=t.elementType===s?l:Pt(s,l),vf(e,t,s,l,n);case 3:e:{if(wf(t),e===null)throw Error(o(387));s=t.pendingProps,u=t.memoizedState,l=u.element,Vc(e,t),rs(t,s,null,n);var h=t.memoizedState;if(s=h.element,u.isDehydrated)if(u={element:s,isDehydrated:!1,cache:h.cache,pendingSuspenseBoundaries:h.pendingSuspenseBoundaries,transitions:h.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){l=nr(Error(o(423)),t),t=Sf(e,t,s,n,l);break e}else if(s!==l){l=nr(Error(o(424)),t),t=Sf(e,t,s,n,l);break e}else for(ut=bt(t.stateNode.containerInfo.firstChild),at=t,ke=!0,kt=null,n=Lc(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Zn(),s===l){t=$t(e,t,n);break e}Ze(e,t,s,n)}t=t.child}return t;case 5:return Fc(t),e===null&&Go(t),s=t.type,l=t.pendingProps,u=e!==null?e.memoizedProps:null,h=l.children,Oo(s,l)?h=null:u!==null&&Oo(s,u)&&(t.flags|=32),yf(e,t),Ze(e,t,h,n),t.child;case 6:return e===null&&Go(t),null;case 13:return xf(e,t,n);case 4:return el(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=Jn(t,null,s,n):Ze(e,t,s,n),t.child;case 11:return s=t.type,l=t.pendingProps,l=t.elementType===s?l:Pt(s,l),hf(e,t,s,l,n);case 7:return Ze(e,t,t.pendingProps,n),t.child;case 8:return Ze(e,t,t.pendingProps.children,n),t.child;case 12:return Ze(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(s=t.type._context,l=t.pendingProps,u=t.memoizedProps,h=l.value,ye(es,s._currentValue),s._currentValue=h,u!==null)if(Tt(u.value,h)){if(u.children===l.children&&!be.current){t=$t(e,t,n);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var y=u.dependencies;if(y!==null){h=u.child;for(var S=y.firstContext;S!==null;){if(S.context===s){if(u.tag===1){S=Ut(-1,n&-n),S.tag=2;var E=u.updateQueue;if(E!==null){E=E.shared;var N=E.pending;N===null?S.next=S:(S.next=N.next,N.next=S),E.pending=S}}u.lanes|=n,S=u.alternate,S!==null&&(S.lanes|=n),Zo(u.return,n,t),y.lanes|=n;break}S=S.next}}else if(u.tag===10)h=u.type===t.type?null:u.child;else if(u.tag===18){if(h=u.return,h===null)throw Error(o(341));h.lanes|=n,y=h.alternate,y!==null&&(y.lanes|=n),Zo(h,n,t),h=u.sibling}else h=u.child;if(h!==null)h.return=u;else for(h=u;h!==null;){if(h===t){h=null;break}if(u=h.sibling,u!==null){u.return=h.return,h=u;break}h=h.return}u=h}Ze(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,s=t.pendingProps.children,er(t,n),l=mt(l),s=s(l),t.flags|=1,Ze(e,t,s,n),t.child;case 14:return s=t.type,l=Pt(s,t.pendingProps),l=Pt(s.type,l),pf(e,t,s,l,n);case 15:return mf(e,t,t.type,t.pendingProps,n);case 17:return s=t.type,l=t.pendingProps,l=t.elementType===s?l:Pt(s,l),ds(e,t),t.tag=1,et(s)?(e=!0,Yi(t)):e=!1,er(t,n),of(t,s,l),hl(t,s,l,n),yl(null,t,s,!0,e,n);case 19:return kf(e,t,n);case 22:return gf(e,t,n)}throw Error(o(156,t.tag))};function Qf(e,t){return Cu(e,t)}function zg(e,t,n,s){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=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function vt(e,t,n,s){return new zg(e,t,n,s)}function Ol(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Bg(e){if(typeof e=="function")return Ol(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Me)return 11;if(e===st)return 14}return 2}function fn(e,t){var n=e.alternate;return n===null?(n=vt(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 ks(e,t,n,s,l,u){var h=2;if(s=e,typeof e=="function")Ol(e)&&(h=1);else if(typeof e=="string")h=5;else e:switch(e){case ue:return Mn(n.children,l,u,t);case J:h=8,l|=8;break;case me:return e=vt(12,n,t,l|2),e.elementType=me,e.lanes=u,e;case Fe:return e=vt(13,n,t,l),e.elementType=Fe,e.lanes=u,e;case He:return e=vt(19,n,t,l),e.elementType=He,e.lanes=u,e;case oe:return Ps(n,l,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ge:h=10;break e;case ve:h=9;break e;case Me:h=11;break e;case st:h=14;break e;case Be:h=16,s=null;break e}throw Error(o(130,e==null?e:typeof e,""))}return t=vt(h,n,t,l),t.elementType=e,t.type=s,t.lanes=u,t}function Mn(e,t,n,s){return e=vt(7,e,s,t),e.lanes=n,e}function Ps(e,t,n,s){return e=vt(22,e,s,t),e.elementType=oe,e.lanes=n,e.stateNode={isHidden:!1},e}function Il(e,t,n){return e=vt(6,e,null,t),e.lanes=n,e}function zl(e,t,n){return t=vt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ug(e,t,n,s,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=fo(0),this.expirationTimes=fo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fo(0),this.identifierPrefix=s,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Bl(e,t,n,s,l,u,h,y,S){return e=new Ug(e,t,n,y,S),t===1?(t=1,u===!0&&(t|=8)):t=0,u=vt(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:s,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},bo(u),e}function $g(e,t,n){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ie,key:s==null?null:""+s,children:e,containerInfo:t,implementation:n}}function Yf(e){if(!e)return tn;e=e._reactInternals;e:{if(yn(e)!==e||e.tag!==1)throw Error(o(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(o(171))}if(e.tag===1){var n=e.type;if(et(n))return xc(e,n,t)}return t}function Xf(e,t,n,s,l,u,h,y,S){return e=Bl(n,s,!0,e,l,u,h,y,S),e.context=Yf(null),n=e.current,s=Je(),l=un(n),u=Ut(s,l),u.callback=t??null,sn(n,u,l),e.current.lanes=l,Pr(e,l,s),rt(e,s),e}function Cs(e,t,n,s){var l=t.current,u=Je(),h=un(l);return n=Yf(n),t.context===null?t.context=n:t.pendingContext=n,t=Ut(u,h),t.payload={element:e},s=s===void 0?null:s,s!==null&&(t.callback=s),e=sn(l,t,h),e!==null&&(Dt(e,l,h,u),ns(e,l,h)),h}function Es(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 qf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ul(e,t){qf(e,t),(e=e.alternate)&&qf(e,t)}function Wg(){return null}var Zf=typeof reportError=="function"?reportError:function(e){console.error(e)};function $l(e){this._internalRoot=e}Ds.prototype.render=$l.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));Cs(e,t,null,null)},Ds.prototype.unmount=$l.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;En(function(){Cs(null,e,null,null)}),t[Ft]=null}};function Ds(e){this._internalRoot=e}Ds.prototype.unstable_scheduleHydration=function(e){if(e){var t=Vu();e={blockedOn:null,target:e,priority:t};for(var n=0;n<qt.length&&t!==0&&t<qt[n].priority;n++);qt.splice(n,0,e),n===0&&Fu(e)}};function Wl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function As(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Jf(){}function Hg(e,t,n,s,l){if(l){if(typeof s=="function"){var u=s;s=function(){var E=Es(h);u.call(E)}}var h=Xf(t,s,e,0,null,!1,!1,"",Jf);return e._reactRootContainer=h,e[Ft]=h.current,Ir(e.nodeType===8?e.parentNode:e),En(),h}for(;l=e.lastChild;)e.removeChild(l);if(typeof s=="function"){var y=s;s=function(){var E=Es(S);y.call(E)}}var S=Bl(e,0,!1,null,null,!1,!1,"",Jf);return e._reactRootContainer=S,e[Ft]=S.current,Ir(e.nodeType===8?e.parentNode:e),En(function(){Cs(t,S,n,s)}),S}function Ms(e,t,n,s,l){var u=n._reactRootContainer;if(u){var h=u;if(typeof l=="function"){var y=l;l=function(){var S=Es(h);y.call(S)}}Cs(t,h,e,l)}else h=Hg(n,t,e,l,s);return Es(h)}Lu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=kr(t.pendingLanes);n!==0&&(ho(t,n|1),rt(t,Re()),(ce&6)===0&&(sr=Re()+500,nn()))}break;case 13:En(function(){var s=Bt(e,1);if(s!==null){var l=Je();Dt(s,e,1,l)}}),Ul(e,1)}},po=function(e){if(e.tag===13){var t=Bt(e,134217728);if(t!==null){var n=Je();Dt(t,e,134217728,n)}Ul(e,134217728)}},Nu=function(e){if(e.tag===13){var t=un(e),n=Bt(e,t);if(n!==null){var s=Je();Dt(n,e,t,s)}Ul(e,t)}},Vu=function(){return pe},_u=function(e,t){var n=pe;try{return pe=e,t()}finally{pe=n}},so=function(e,t,n){switch(t){case"input":if(Zs(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 s=n[t];if(s!==e&&s.form===e.form){var l=Gi(s);if(!l)throw Error(o(90));iu(s),Zs(s,l)}}}break;case"textarea":uu(e,n);break;case"select":t=n.value,t!=null&&Fn(e,!!n.multiple,t,!1)}},vu=_l,wu=En;var Kg={usingClientEntryPoint:!1,Events:[Ur,Gn,Gi,gu,yu,_l]},ti={findFiberByHostInstance:vn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Gg={bundleType:ti.bundleType,version:ti.version,rendererPackageName:ti.rendererPackageName,rendererConfig:ti.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ne.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ku(e),e===null?null:e.stateNode},findFiberByHostInstance:ti.findFiberByHostInstance||Wg,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 Rs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Rs.isDisabled&&Rs.supportsFiber)try{Di=Rs.inject(Gg),Mt=Rs}catch{}}return it.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Kg,it.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Wl(t))throw Error(o(200));return $g(e,t,null,n)},it.createRoot=function(e,t){if(!Wl(e))throw Error(o(299));var n=!1,s="",l=Zf;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Bl(e,1,!1,null,null,n,!1,s,l),e[Ft]=t.current,Ir(e.nodeType===8?e.parentNode:e),new $l(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(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=ku(t),e=e===null?null:e.stateNode,e},it.flushSync=function(e){return En(e)},it.hydrate=function(e,t,n){if(!As(t))throw Error(o(200));return Ms(null,e,t,!0,n)},it.hydrateRoot=function(e,t,n){if(!Wl(e))throw Error(o(405));var s=n!=null&&n.hydratedSources||null,l=!1,u="",h=Zf;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onRecoverableError!==void 0&&(h=n.onRecoverableError)),t=Xf(t,null,e,1,n??null,l,!1,u,h),e[Ft]=t.current,Ir(e),s)for(e=0;e<s.length;e++)n=s[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new Ds(t)},it.render=function(e,t,n){if(!As(t))throw Error(o(200));return Ms(null,e,t,!1,n)},it.unmountComponentAtNode=function(e){if(!As(e))throw Error(o(40));return e._reactRootContainer?(En(function(){Ms(null,null,e,!1,function(){e._reactRootContainer=null,e[Ft]=null})}),!0):!1},it.unstable_batchedUpdates=_l,it.unstable_renderSubtreeIntoContainer=function(e,t,n,s){if(!As(n))throw Error(o(200));if(e==null||e._reactInternals===void 0)throw Error(o(38));return Ms(e,t,n,!1,s)},it.version="18.3.1-next-f1338f8080-20240426",it}var od;function ey(){if(od)return Gl.exports;od=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(),Gl.exports=bg(),Gl.exports}var ld;function ty(){if(ld)return Ls;ld=1;var r=ey();return Ls.createRoot=r.createRoot,Ls.hydrateRoot=r.hydrateRoot,Ls}var ny=ty();const kh=q.createContext({});function ry(r){const i=q.useRef(null);return i.current===null&&(i.current=r()),i.current}const Ea=q.createContext(null),Ph=q.createContext({transformPagePoint:r=>r,isStatic:!1,reducedMotion:"never"});function iy(r=!0){const i=q.useContext(Ea);if(i===null)return[!0,null];const{isPresent:o,onExitComplete:a,register:c}=i,d=q.useId();q.useEffect(()=>{r&&c(d)},[r]);const f=q.useCallback(()=>r&&a&&a(d),[d,a,r]);return!o&&a?[!1,f]:[!0]}const Da=typeof window<"u",sy=Da?q.useLayoutEffect:q.useEffect,ft=r=>r;let Ch=ft;const oy={useManualTiming:!1};function ly(r){let i=new Set,o=new Set,a=!1,c=!1;const d=new WeakSet;let f={delta:0,timestamp:0,isProcessing:!1};function p(g){d.has(g)&&(m.schedule(g),r()),g(f)}const m={schedule:(g,v=!1,w=!1)=>{const D=w&&a?i:o;return v&&d.add(g),D.has(g)||D.add(g),g},cancel:g=>{o.delete(g),d.delete(g)},process:g=>{if(f=g,a){c=!0;return}a=!0,[i,o]=[o,i],i.forEach(p),i.clear(),a=!1,c&&(c=!1,m.process(g))}};return m}const Ns=["read","resolveKeyframes","update","preRender","render","postRender"],ay=40;function Eh(r,i){let o=!1,a=!0;const c={delta:0,timestamp:0,isProcessing:!1},d=()=>o=!0,f=Ns.reduce((I,$)=>(I[$]=ly(d),I),{}),{read:p,resolveKeyframes:m,update:g,preRender:v,render:w,postRender:T}=f,D=()=>{const I=performance.now();o=!1,c.delta=a?1e3/60:Math.max(Math.min(I-c.timestamp,ay),1),c.timestamp=I,c.isProcessing=!0,p.process(c),m.process(c),g.process(c),v.process(c),w.process(c),T.process(c),c.isProcessing=!1,o&&i&&(a=!1,r(D))},j=()=>{o=!0,a=!0,c.isProcessing||r(D)};return{schedule:Ns.reduce((I,$)=>{const K=f[$];return I[$]=(ne,X=!1,ie=!1)=>(o||j(),K.schedule(ne,X,ie)),I},{}),cancel:I=>{for(let $=0;$<Ns.length;$++)f[Ns[$]].cancel(I)},state:c,steps:f}}const{schedule:xe,cancel:pn,state:We,steps:Xl}=Eh(typeof requestAnimationFrame<"u"?requestAnimationFrame:ft,!0),Dh=q.createContext({strict:!1}),ad={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"]},dr={};for(const r in ad)dr[r]={isEnabled:i=>ad[r].some(o=>!!i[o])};function uy(r){for(const i in r)dr[i]={...dr[i],...r[i]}}const cy=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 Is(r){return r.startsWith("while")||r.startsWith("drag")&&r!=="draggable"||r.startsWith("layout")||r.startsWith("onTap")||r.startsWith("onPan")||r.startsWith("onLayout")||cy.has(r)}let Ah=r=>!Is(r);function fy(r){r&&(Ah=i=>i.startsWith("on")?!Is(i):r(i))}try{fy(require("@emotion/is-prop-valid").default)}catch{}function dy(r,i,o){const a={};for(const c in r)c==="values"&&typeof r.values=="object"||(Ah(c)||o===!0&&Is(c)||!i&&!Is(c)||r.draggable&&c.startsWith("onDrag"))&&(a[c]=r[c]);return a}function hy(r){if(typeof Proxy>"u")return r;const i=new Map,o=(...a)=>r(...a);return new Proxy(o,{get:(a,c)=>c==="create"?r:(i.has(c)||i.set(c,r(c)),i.get(c))})}const Ks=q.createContext({});function di(r){return typeof r=="string"||Array.isArray(r)}function Gs(r){return r!==null&&typeof r=="object"&&typeof r.start=="function"}const Aa=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ma=["initial",...Aa];function Qs(r){return Gs(r.animate)||Ma.some(i=>di(r[i]))}function Mh(r){return!!(Qs(r)||r.variants)}function py(r,i){if(Qs(r)){const{initial:o,animate:a}=r;return{initial:o===!1||di(o)?o:void 0,animate:di(a)?a:void 0}}return r.inherit!==!1?i:{}}function my(r){const{initial:i,animate:o}=py(r,q.useContext(Ks));return q.useMemo(()=>({initial:i,animate:o}),[ud(i),ud(o)])}function ud(r){return Array.isArray(r)?r.join(" "):r}const gy=Symbol.for("motionComponentSymbol");function lr(r){return r&&typeof r=="object"&&Object.prototype.hasOwnProperty.call(r,"current")}function yy(r,i,o){return q.useCallback(a=>{a&&r.onMount&&r.onMount(a),i&&(a?i.mount(a):i.unmount()),o&&(typeof o=="function"?o(a):lr(o)&&(o.current=a))},[i])}const Ra=r=>r.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),vy="framerAppearId",Rh="data-"+Ra(vy),{schedule:La}=Eh(queueMicrotask,!1),Lh=q.createContext({});function wy(r,i,o,a,c){var d,f;const{visualElement:p}=q.useContext(Ks),m=q.useContext(Dh),g=q.useContext(Ea),v=q.useContext(Ph).reducedMotion,w=q.useRef(null);a=a||m.renderer,!w.current&&a&&(w.current=a(r,{visualState:i,parent:p,props:o,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:v}));const T=w.current,D=q.useContext(Lh);T&&!T.projection&&c&&(T.type==="html"||T.type==="svg")&&Sy(w.current,o,c,D);const j=q.useRef(!1);q.useInsertionEffect(()=>{T&&j.current&&T.update(o,g)});const M=o[Rh],V=q.useRef(!!M&&!(!((d=window.MotionHandoffIsComplete)===null||d===void 0)&&d.call(window,M))&&((f=window.MotionHasOptimisedAnimation)===null||f===void 0?void 0:f.call(window,M)));return sy(()=>{T&&(j.current=!0,window.MotionIsMounted=!0,T.updateFeatures(),La.render(T.render),V.current&&T.animationState&&T.animationState.animateChanges())}),q.useEffect(()=>{T&&(!V.current&&T.animationState&&T.animationState.animateChanges(),V.current&&(queueMicrotask(()=>{var I;(I=window.MotionHandoffMarkAsComplete)===null||I===void 0||I.call(window,M)}),V.current=!1))}),T}function Sy(r,i,o,a){const{layoutId:c,layout:d,drag:f,dragConstraints:p,layoutScroll:m,layoutRoot:g}=i;r.projection=new o(r.latestValues,i["data-framer-portal-id"]?void 0:Nh(r.parent)),r.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!f||p&&lr(p),visualElement:r,animationType:typeof d=="string"?d:"both",initialPromotionConfig:a,layoutScroll:m,layoutRoot:g})}function Nh(r){if(r)return r.options.allowProjection!==!1?r.projection:Nh(r.parent)}function xy({preloadedFeatures:r,createVisualElement:i,useRender:o,useVisualState:a,Component:c}){var d,f;r&&uy(r);function p(g,v){let w;const T={...q.useContext(Ph),...g,layoutId:Ty(g)},{isStatic:D}=T,j=my(g),M=a(g,D);if(!D&&Da){ky();const V=Py(T);w=V.MeasureLayout,j.visualElement=wy(c,M,T,i,V.ProjectionNode)}return A.jsxs(Ks.Provider,{value:j,children:[w&&j.visualElement?A.jsx(w,{visualElement:j.visualElement,...T}):null,o(c,g,yy(M,j.visualElement,v),M,D,j.visualElement)]})}p.displayName=`motion.${typeof c=="string"?c:`create(${(f=(d=c.displayName)!==null&&d!==void 0?d:c.name)!==null&&f!==void 0?f:""})`}`;const m=q.forwardRef(p);return m[gy]=c,m}function Ty({layoutId:r}){const i=q.useContext(kh).id;return i&&r!==void 0?i+"-"+r:r}function ky(r,i){q.useContext(Dh).strict}function Py(r){const{drag:i,layout:o}=dr;if(!i&&!o)return{};const a={...i,...o};return{MeasureLayout:i?.isEnabled(r)||o?.isEnabled(r)?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}const Cy=["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 Na(r){return typeof r!="string"||r.includes("-")?!1:!!(Cy.indexOf(r)>-1||/[A-Z]/u.test(r))}function cd(r){const i=[{},{}];return r?.values.forEach((o,a)=>{i[0][a]=o.get(),i[1][a]=o.getVelocity()}),i}function Va(r,i,o,a){if(typeof i=="function"){const[c,d]=cd(a);i=i(o!==void 0?o:r.custom,c,d)}if(typeof i=="string"&&(i=r.variants&&r.variants[i]),typeof i=="function"){const[c,d]=cd(a);i=i(o!==void 0?o:r.custom,c,d)}return i}const ua=r=>Array.isArray(r),Ey=r=>!!(r&&typeof r=="object"&&r.mix&&r.toValue),Dy=r=>ua(r)?r[r.length-1]||0:r,qe=r=>!!(r&&r.getVelocity);function js(r){const i=qe(r)?r.get():r;return Ey(i)?i.toValue():i}function Ay({scrapeMotionValuesFromProps:r,createRenderState:i,onUpdate:o},a,c,d){const f={latestValues:My(a,c,d,r),renderState:i()};return o&&(f.onMount=p=>o({props:a,current:p,...f}),f.onUpdate=p=>o(p)),f}const Vh=r=>(i,o)=>{const a=q.useContext(Ks),c=q.useContext(Ea),d=()=>Ay(r,i,a,c);return o?d():ry(d)};function My(r,i,o,a){const c={},d=a(r,{});for(const T in d)c[T]=js(d[T]);let{initial:f,animate:p}=r;const m=Qs(r),g=Mh(r);i&&g&&!m&&r.inherit!==!1&&(f===void 0&&(f=i.initial),p===void 0&&(p=i.animate));let v=o?o.initial===!1:!1;v=v||f===!1;const w=v?p:f;if(w&&typeof w!="boolean"&&!Gs(w)){const T=Array.isArray(w)?w:[w];for(let D=0;D<T.length;D++){const j=Va(r,T[D]);if(j){const{transitionEnd:M,transition:V,...I}=j;for(const $ in I){let K=I[$];if(Array.isArray(K)){const ne=v?K.length-1:0;K=K[ne]}K!==null&&(c[$]=K)}for(const $ in M)c[$]=M[$]}}}return c}const mr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],jn=new Set(mr),_h=r=>i=>typeof i=="string"&&i.startsWith(r),jh=_h("--"),Ry=_h("var(--"),_a=r=>Ry(r)?Ly.test(r.split("/*")[0].trim()):!1,Ly=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Fh=(r,i)=>i&&typeof r=="number"?i.transform(r):r,Gt=(r,i,o)=>o>i?i:o<r?r:o,gr={test:r=>typeof r=="number",parse:parseFloat,transform:r=>r},hi={...gr,transform:r=>Gt(0,1,r)},Vs={...gr,default:1},yi=r=>({test:i=>typeof i=="string"&&i.endsWith(r)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${r}`}),hn=yi("deg"),_t=yi("%"),te=yi("px"),Ny=yi("vh"),Vy=yi("vw"),fd={..._t,parse:r=>_t.parse(r)/100,transform:r=>_t.transform(r*100)},_y={borderWidth:te,borderTopWidth:te,borderRightWidth:te,borderBottomWidth:te,borderLeftWidth:te,borderRadius:te,radius:te,borderTopLeftRadius:te,borderTopRightRadius:te,borderBottomRightRadius:te,borderBottomLeftRadius:te,width:te,maxWidth:te,height:te,maxHeight:te,top:te,right:te,bottom:te,left:te,padding:te,paddingTop:te,paddingRight:te,paddingBottom:te,paddingLeft:te,margin:te,marginTop:te,marginRight:te,marginBottom:te,marginLeft:te,backgroundPositionX:te,backgroundPositionY:te},jy={rotate:hn,rotateX:hn,rotateY:hn,rotateZ:hn,scale:Vs,scaleX:Vs,scaleY:Vs,scaleZ:Vs,skew:hn,skewX:hn,skewY:hn,distance:te,translateX:te,translateY:te,translateZ:te,x:te,y:te,z:te,perspective:te,transformPerspective:te,opacity:hi,originX:fd,originY:fd,originZ:te},dd={...gr,transform:Math.round},ja={..._y,...jy,zIndex:dd,size:te,fillOpacity:hi,strokeOpacity:hi,numOctaves:dd},Fy={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Oy=mr.length;function Iy(r,i,o){let a="",c=!0;for(let d=0;d<Oy;d++){const f=mr[d],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||o){const g=Fh(p,ja[f]);if(!m){c=!1;const v=Fy[f]||f;a+=`${v}(${g}) `}o&&(i[f]=g)}}return a=a.trim(),o?a=o(i,c?"":a):c&&(a="none"),a}function Fa(r,i,o){const{style:a,vars:c,transformOrigin:d}=r;let f=!1,p=!1;for(const m in i){const g=i[m];if(jn.has(m)){f=!0;continue}else if(jh(m)){c[m]=g;continue}else{const v=Fh(g,ja[m]);m.startsWith("origin")?(p=!0,d[m]=v):a[m]=v}}if(i.transform||(f||o?a.transform=Iy(i,r.transform,o):a.transform&&(a.transform="none")),p){const{originX:m="50%",originY:g="50%",originZ:v=0}=d;a.transformOrigin=`${m} ${g} ${v}`}}const zy={offset:"stroke-dashoffset",array:"stroke-dasharray"},By={offset:"strokeDashoffset",array:"strokeDasharray"};function Uy(r,i,o=1,a=0,c=!0){r.pathLength=1;const d=c?zy:By;r[d.offset]=te.transform(-a);const f=te.transform(i),p=te.transform(o);r[d.array]=`${f} ${p}`}function hd(r,i,o){return typeof r=="string"?r:te.transform(i+o*r)}function $y(r,i,o){const a=hd(i,r.x,r.width),c=hd(o,r.y,r.height);return`${a} ${c}`}function Oa(r,{attrX:i,attrY:o,attrScale:a,originX:c,originY:d,pathLength:f,pathSpacing:p=1,pathOffset:m=0,...g},v,w){if(Fa(r,g,w),v){r.style.viewBox&&(r.attrs.viewBox=r.style.viewBox);return}r.attrs=r.style,r.style={};const{attrs:T,style:D,dimensions:j}=r;T.transform&&(j&&(D.transform=T.transform),delete T.transform),j&&(c!==void 0||d!==void 0||D.transform)&&(D.transformOrigin=$y(j,c!==void 0?c:.5,d!==void 0?d:.5)),i!==void 0&&(T.x=i),o!==void 0&&(T.y=o),a!==void 0&&(T.scale=a),f!==void 0&&Uy(T,f,p,m,!1)}const Ia=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Oh=()=>({...Ia(),attrs:{}}),za=r=>typeof r=="string"&&r.toLowerCase()==="svg";function Ih(r,{style:i,vars:o},a,c){Object.assign(r.style,i,c&&c.getProjectionStyles(a));for(const d in o)r.style.setProperty(d,o[d])}const zh=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Bh(r,i,o,a){Ih(r,i,void 0,a);for(const c in i.attrs)r.setAttribute(zh.has(c)?c:Ra(c),i.attrs[c])}const zs={};function Wy(r){Object.assign(zs,r)}function Uh(r,{layout:i,layoutId:o}){return jn.has(r)||r.startsWith("origin")||(i||o!==void 0)&&(!!zs[r]||r==="opacity")}function Ba(r,i,o){var a;const{style:c}=r,d={};for(const f in c)(qe(c[f])||i.style&&qe(i.style[f])||Uh(f,r)||((a=o?.getValue(f))===null||a===void 0?void 0:a.liveStyle)!==void 0)&&(d[f]=c[f]);return d}function $h(r,i,o){const a=Ba(r,i,o);for(const c in r)if(qe(r[c])||qe(i[c])){const d=mr.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;a[d]=r[c]}return a}function Hy(r,i){try{i.dimensions=typeof r.getBBox=="function"?r.getBBox():r.getBoundingClientRect()}catch{i.dimensions={x:0,y:0,width:0,height:0}}}const pd=["x","y","width","height","cx","cy","r"],Ky={useVisualState:Vh({scrapeMotionValuesFromProps:$h,createRenderState:Oh,onUpdate:({props:r,prevProps:i,current:o,renderState:a,latestValues:c})=>{if(!o)return;let d=!!r.drag;if(!d){for(const p in c)if(jn.has(p)){d=!0;break}}if(!d)return;let f=!i;if(i)for(let p=0;p<pd.length;p++){const m=pd[p];r[m]!==i[m]&&(f=!0)}f&&xe.read(()=>{Hy(o,a),xe.render(()=>{Oa(a,c,za(o.tagName),r.transformTemplate),Bh(o,a)})})}})},Gy={useVisualState:Vh({scrapeMotionValuesFromProps:Ba,createRenderState:Ia})};function Wh(r,i,o){for(const a in i)!qe(i[a])&&!Uh(a,o)&&(r[a]=i[a])}function Qy({transformTemplate:r},i){return q.useMemo(()=>{const o=Ia();return Fa(o,i,r),Object.assign({},o.vars,o.style)},[i])}function Yy(r,i){const o=r.style||{},a={};return Wh(a,o,r),Object.assign(a,Qy(r,i)),a}function Xy(r,i){const o={},a=Yy(r,i);return r.drag&&r.dragListener!==!1&&(o.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)&&(o.tabIndex=0),o.style=a,o}function qy(r,i,o,a){const c=q.useMemo(()=>{const d=Oh();return Oa(d,i,za(a),r.transformTemplate),{...d.attrs,style:{...d.style}}},[i]);if(r.style){const d={};Wh(d,r.style,r),c.style={...d,...c.style}}return c}function Zy(r=!1){return(o,a,c,{latestValues:d},f)=>{const m=(Na(o)?qy:Xy)(a,d,f,o),g=dy(a,typeof o=="string",r),v=o!==q.Fragment?{...g,...m,ref:c}:{},{children:w}=a,T=q.useMemo(()=>qe(w)?w.get():w,[w]);return q.createElement(o,{...v,children:T})}}function Jy(r,i){return function(a,{forwardMotionProps:c}={forwardMotionProps:!1}){const f={...Na(a)?Ky:Gy,preloadedFeatures:r,useRender:Zy(c),createVisualElement:i,Component:a};return xy(f)}}function Hh(r,i){if(!Array.isArray(i))return!1;const o=i.length;if(o!==r.length)return!1;for(let a=0;a<o;a++)if(i[a]!==r[a])return!1;return!0}function Ys(r,i,o){const a=r.getProps();return Va(a,i,o!==void 0?o:a.custom,r)}function Ua(r,i){return r?r[i]||r.default||r:void 0}const Kh=new Set(["width","height","top","left","right","bottom",...mr]);let Fs;function by(){Fs=void 0}const jt={now:()=>(Fs===void 0&&jt.set(We.isProcessing||oy.useManualTiming?We.timestamp:performance.now()),Fs),set:r=>{Fs=r,queueMicrotask(by)}};function $a(r,i){r.indexOf(i)===-1&&r.push(i)}function Wa(r,i){const o=r.indexOf(i);o>-1&&r.splice(o,1)}class Ha{constructor(){this.subscriptions=[]}add(i){return $a(this.subscriptions,i),()=>Wa(this.subscriptions,i)}notify(i,o,a){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](i,o,a);else for(let d=0;d<c;d++){const f=this.subscriptions[d];f&&f(i,o,a)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Gh(r,i){return i?r*(1e3/i):0}const md=30,ev=r=>!isNaN(parseFloat(r));class tv{constructor(i,o={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(a,c=!0)=>{const d=jt.now();this.updatedAt!==d&&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=o.owner}setCurrent(i){this.current=i,this.updatedAt=jt.now(),this.canTrackVelocity===null&&i!==void 0&&(this.canTrackVelocity=ev(this.current))}setPrevFrameValue(i=this.current){this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt}onChange(i){return this.on("change",i)}on(i,o){this.events[i]||(this.events[i]=new Ha);const a=this.events[i].add(o);return i==="change"?()=>{a(),xe.read(()=>{this.events.change.getSize()||this.stop()})}:a}clearListeners(){for(const i in this.events)this.events[i].clear()}attach(i,o){this.passiveEffect=i,this.stopPassiveEffect=o}set(i,o=!0){!o||!this.passiveEffect?this.updateAndNotify(i,o):this.passiveEffect(i,this.updateAndNotify)}setWithVelocity(i,o,a){this.set(o),this.prev=void 0,this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt-a}jump(i,o=!0){this.updateAndNotify(i),this.prev=i,this.prevUpdatedAt=this.prevFrameValue=void 0,o&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const i=jt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||i-this.updatedAt>md)return 0;const o=Math.min(this.updatedAt-this.prevUpdatedAt,md);return Gh(parseFloat(this.current)-parseFloat(this.prevFrameValue),o)}start(i){return this.stop(),new Promise(o=>{this.hasAnimated=!0,this.animation=i(o),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 pi(r,i){return new tv(r,i)}function nv(r,i,o){r.hasValue(i)?r.getValue(i).set(o):r.addValue(i,pi(o))}function rv(r,i){const o=Ys(r,i);let{transitionEnd:a={},transition:c={},...d}=o||{};d={...d,...a};for(const f in d){const p=Dy(d[f]);nv(r,f,p)}}function iv(r){return!!(qe(r)&&r.add)}function ca(r,i){const o=r.getValue("willChange");if(iv(o))return o.add(i)}function Qh(r){return r.props[Rh]}function Ka(r){let i;return()=>(i===void 0&&(i=r()),i)}const sv=Ka(()=>window.ScrollTimeline!==void 0);class ov{constructor(i){this.stop=()=>this.runAll("stop"),this.animations=i.filter(Boolean)}get finished(){return Promise.all(this.animations.map(i=>"finished"in i?i.finished:i))}getAll(i){return this.animations[0][i]}setAll(i,o){for(let a=0;a<this.animations.length;a++)this.animations[a][i]=o}attachTimeline(i,o){const a=this.animations.map(c=>{if(sv()&&c.attachTimeline)return c.attachTimeline(i);if(typeof o=="function")return o(c)});return()=>{a.forEach((c,d)=>{c&&c(),this.animations[d].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 o=0;o<this.animations.length;o++)i=Math.max(i,this.animations[o].duration);return i}runAll(i){this.animations.forEach(o=>o[i]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class lv extends ov{then(i,o){return Promise.all(this.animations).then(i).catch(o)}}const Ht=r=>r*1e3,Kt=r=>r/1e3;function Ga(r){return typeof r=="function"}function gd(r,i){r.timeline=i,r.onfinish=null}const Qa=r=>Array.isArray(r)&&typeof r[0]=="number",av={linearEasing:void 0};function uv(r,i){const o=Ka(r);return()=>{var a;return(a=av[i])!==null&&a!==void 0?a:o()}}const Bs=uv(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),hr=(r,i,o)=>{const a=i-r;return a===0?1:(o-r)/a},Yh=(r,i,o=10)=>{let a="";const c=Math.max(Math.round(i/o),2);for(let d=0;d<c;d++)a+=r(hr(0,c-1,d))+", ";return`linear(${a.substring(0,a.length-2)})`};function Xh(r){return!!(typeof r=="function"&&Bs()||!r||typeof r=="string"&&(r in fa||Bs())||Qa(r)||Array.isArray(r)&&r.every(Xh))}const ii=([r,i,o,a])=>`cubic-bezier(${r}, ${i}, ${o}, ${a})`,fa={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ii([0,.65,.55,1]),circOut:ii([.55,0,1,.45]),backIn:ii([.31,.01,.66,-.59]),backOut:ii([.33,1.53,.69,.99])};function qh(r,i){if(r)return typeof r=="function"&&Bs()?Yh(r,i):Qa(r)?ii(r):Array.isArray(r)?r.map(o=>qh(o,i)||fa.easeOut):fa[r]}const Zh=(r,i,o)=>(((1-3*o+3*i)*r+(3*o-6*i))*r+3*i)*r,cv=1e-7,fv=12;function dv(r,i,o,a,c){let d,f,p=0;do f=i+(o-i)/2,d=Zh(f,a,c)-r,d>0?o=f:i=f;while(Math.abs(d)>cv&&++p<fv);return f}function vi(r,i,o,a){if(r===i&&o===a)return ft;const c=d=>dv(d,0,1,r,o);return d=>d===0||d===1?d:Zh(c(d),i,a)}const Jh=r=>i=>i<=.5?r(2*i)/2:(2-r(2*(1-i)))/2,bh=r=>i=>1-r(1-i),ep=vi(.33,1.53,.69,.99),Ya=bh(ep),tp=Jh(Ya),np=r=>(r*=2)<1?.5*Ya(r):.5*(2-Math.pow(2,-10*(r-1))),Xa=r=>1-Math.sin(Math.acos(r)),rp=bh(Xa),ip=Jh(Xa),sp=r=>/^0[^.\s]+$/u.test(r);function hv(r){return typeof r=="number"?r===0:r!==null?r==="none"||r==="0"||sp(r):!0}const ai=r=>Math.round(r*1e5)/1e5,qa=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function pv(r){return r==null}const mv=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Za=(r,i)=>o=>!!(typeof o=="string"&&mv.test(o)&&o.startsWith(r)||i&&!pv(o)&&Object.prototype.hasOwnProperty.call(o,i)),op=(r,i,o)=>a=>{if(typeof a!="string")return a;const[c,d,f,p]=a.match(qa);return{[r]:parseFloat(c),[i]:parseFloat(d),[o]:parseFloat(f),alpha:p!==void 0?parseFloat(p):1}},gv=r=>Gt(0,255,r),ql={...gr,transform:r=>Math.round(gv(r))},Vn={test:Za("rgb","red"),parse:op("red","green","blue"),transform:({red:r,green:i,blue:o,alpha:a=1})=>"rgba("+ql.transform(r)+", "+ql.transform(i)+", "+ql.transform(o)+", "+ai(hi.transform(a))+")"};function yv(r){let i="",o="",a="",c="";return r.length>5?(i=r.substring(1,3),o=r.substring(3,5),a=r.substring(5,7),c=r.substring(7,9)):(i=r.substring(1,2),o=r.substring(2,3),a=r.substring(3,4),c=r.substring(4,5),i+=i,o+=o,a+=a,c+=c),{red:parseInt(i,16),green:parseInt(o,16),blue:parseInt(a,16),alpha:c?parseInt(c,16)/255:1}}const da={test:Za("#"),parse:yv,transform:Vn.transform},ar={test:Za("hsl","hue"),parse:op("hue","saturation","lightness"),transform:({hue:r,saturation:i,lightness:o,alpha:a=1})=>"hsla("+Math.round(r)+", "+_t.transform(ai(i))+", "+_t.transform(ai(o))+", "+ai(hi.transform(a))+")"},Xe={test:r=>Vn.test(r)||da.test(r)||ar.test(r),parse:r=>Vn.test(r)?Vn.parse(r):ar.test(r)?ar.parse(r):da.parse(r),transform:r=>typeof r=="string"?r:r.hasOwnProperty("red")?Vn.transform(r):ar.transform(r)},vv=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function wv(r){var i,o;return isNaN(r)&&typeof r=="string"&&(((i=r.match(qa))===null||i===void 0?void 0:i.length)||0)+(((o=r.match(vv))===null||o===void 0?void 0:o.length)||0)>0}const lp="number",ap="color",Sv="var",xv="var(",yd="${}",Tv=/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 mi(r){const i=r.toString(),o=[],a={color:[],number:[],var:[]},c=[];let d=0;const p=i.replace(Tv,m=>(Xe.test(m)?(a.color.push(d),c.push(ap),o.push(Xe.parse(m))):m.startsWith(xv)?(a.var.push(d),c.push(Sv),o.push(m)):(a.number.push(d),c.push(lp),o.push(parseFloat(m))),++d,yd)).split(yd);return{values:o,split:p,indexes:a,types:c}}function up(r){return mi(r).values}function cp(r){const{split:i,types:o}=mi(r),a=i.length;return c=>{let d="";for(let f=0;f<a;f++)if(d+=i[f],c[f]!==void 0){const p=o[f];p===lp?d+=ai(c[f]):p===ap?d+=Xe.transform(c[f]):d+=c[f]}return d}}const kv=r=>typeof r=="number"?0:r;function Pv(r){const i=up(r);return cp(r)(i.map(kv))}const mn={test:wv,parse:up,createTransformer:cp,getAnimatableNone:Pv},Cv=new Set(["brightness","contrast","saturate","opacity"]);function Ev(r){const[i,o]=r.slice(0,-1).split("(");if(i==="drop-shadow")return r;const[a]=o.match(qa)||[];if(!a)return r;const c=o.replace(a,"");let d=Cv.has(i)?1:0;return a!==o&&(d*=100),i+"("+d+c+")"}const Dv=/\b([a-z-]*)\(.*?\)/gu,ha={...mn,getAnimatableNone:r=>{const i=r.match(Dv);return i?i.map(Ev).join(" "):r}},Av={...ja,color:Xe,backgroundColor:Xe,outlineColor:Xe,fill:Xe,stroke:Xe,borderColor:Xe,borderTopColor:Xe,borderRightColor:Xe,borderBottomColor:Xe,borderLeftColor:Xe,filter:ha,WebkitFilter:ha},Ja=r=>Av[r];function fp(r,i){let o=Ja(r);return o!==ha&&(o=mn),o.getAnimatableNone?o.getAnimatableNone(i):void 0}const Mv=new Set(["auto","none","0"]);function Rv(r,i,o){let a=0,c;for(;a<r.length&&!c;){const d=r[a];typeof d=="string"&&!Mv.has(d)&&mi(d).values.length&&(c=r[a]),a++}if(c&&o)for(const d of i)r[d]=fp(o,c)}const vd=r=>r===gr||r===te,wd=(r,i)=>parseFloat(r.split(", ")[i]),Sd=(r,i)=>(o,{transform:a})=>{if(a==="none"||!a)return 0;const c=a.match(/^matrix3d\((.+)\)$/u);if(c)return wd(c[1],i);{const d=a.match(/^matrix\((.+)\)$/u);return d?wd(d[1],r):0}},Lv=new Set(["x","y","z"]),Nv=mr.filter(r=>!Lv.has(r));function Vv(r){const i=[];return Nv.forEach(o=>{const a=r.getValue(o);a!==void 0&&(i.push([o,a.get()]),a.set(o.startsWith("scale")?1:0))}),i}const pr={width:({x:r},{paddingLeft:i="0",paddingRight:o="0"})=>r.max-r.min-parseFloat(i)-parseFloat(o),height:({y:r},{paddingTop:i="0",paddingBottom:o="0"})=>r.max-r.min-parseFloat(i)-parseFloat(o),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:Sd(4,13),y:Sd(5,14)};pr.translateX=pr.x;pr.translateY=pr.y;const _n=new Set;let pa=!1,ma=!1;function dp(){if(ma){const r=Array.from(_n).filter(a=>a.needsMeasurement),i=new Set(r.map(a=>a.element)),o=new Map;i.forEach(a=>{const c=Vv(a);c.length&&(o.set(a,c),a.render())}),r.forEach(a=>a.measureInitialState()),i.forEach(a=>{a.render();const c=o.get(a);c&&c.forEach(([d,f])=>{var p;(p=a.getValue(d))===null||p===void 0||p.set(f)})}),r.forEach(a=>a.measureEndState()),r.forEach(a=>{a.suspendedScrollY!==void 0&&window.scrollTo(0,a.suspendedScrollY)})}ma=!1,pa=!1,_n.forEach(r=>r.complete()),_n.clear()}function hp(){_n.forEach(r=>{r.readKeyframes(),r.needsMeasurement&&(ma=!0)})}function _v(){hp(),dp()}class ba{constructor(i,o,a,c,d,f=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...i],this.onComplete=o,this.name=a,this.motionValue=c,this.element=d,this.isAsync=f}scheduleResolve(){this.isScheduled=!0,this.isAsync?(_n.add(this),pa||(pa=!0,xe.read(hp),xe.resolveKeyframes(dp))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:i,name:o,element:a,motionValue:c}=this;for(let d=0;d<i.length;d++)if(i[d]===null)if(d===0){const f=c?.get(),p=i[i.length-1];if(f!==void 0)i[0]=f;else if(a&&o){const m=a.readValue(o,p);m!=null&&(i[0]=m)}i[0]===void 0&&(i[0]=p),c&&f===void 0&&c.set(i[0])}else i[d]=i[d-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),_n.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,_n.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const pp=r=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(r),jv=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Fv(r){const i=jv.exec(r);if(!i)return[,];const[,o,a,c]=i;return[`--${o??a}`,c]}function mp(r,i,o=1){const[a,c]=Fv(r);if(!a)return;const d=window.getComputedStyle(i).getPropertyValue(a);if(d){const f=d.trim();return pp(f)?parseFloat(f):f}return _a(c)?mp(c,i,o+1):c}const gp=r=>i=>i.test(r),Ov={test:r=>r==="auto",parse:r=>r},yp=[gr,te,_t,hn,Vy,Ny,Ov],xd=r=>yp.find(gp(r));class vp extends ba{constructor(i,o,a,c,d){super(i,o,a,c,d,!0)}readKeyframes(){const{unresolvedKeyframes:i,element:o,name:a}=this;if(!o||!o.current)return;super.readKeyframes();for(let m=0;m<i.length;m++){let g=i[m];if(typeof g=="string"&&(g=g.trim(),_a(g))){const v=mp(g,o.current);v!==void 0&&(i[m]=v),m===i.length-1&&(this.finalKeyframe=g)}}if(this.resolveNoneKeyframes(),!Kh.has(a)||i.length!==2)return;const[c,d]=i,f=xd(c),p=xd(d);if(f!==p)if(vd(f)&&vd(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:o}=this,a=[];for(let c=0;c<i.length;c++)hv(i[c])&&a.push(c);a.length&&Rv(i,a,o)}measureInitialState(){const{element:i,unresolvedKeyframes:o,name:a}=this;if(!i||!i.current)return;a==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=pr[a](i.measureViewportBox(),window.getComputedStyle(i.current)),o[0]=this.measuredOrigin;const c=o[o.length-1];c!==void 0&&i.getValue(a,c).jump(c,!1)}measureEndState(){var i;const{element:o,name:a,unresolvedKeyframes:c}=this;if(!o||!o.current)return;const d=o.getValue(a);d&&d.jump(this.measuredOrigin,!1);const f=c.length-1,p=c[f];c[f]=pr[a](o.measureViewportBox(),window.getComputedStyle(o.current)),p!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=p),!((i=this.removedTransforms)===null||i===void 0)&&i.length&&this.removedTransforms.forEach(([m,g])=>{o.getValue(m).set(g)}),this.resolveNoneKeyframes()}}const Td=(r,i)=>i==="zIndex"?!1:!!(typeof r=="number"||Array.isArray(r)||typeof r=="string"&&(mn.test(r)||r==="0")&&!r.startsWith("url("));function Iv(r){const i=r[0];if(r.length===1)return!0;for(let o=0;o<r.length;o++)if(r[o]!==i)return!0}function zv(r,i,o,a){const c=r[0];if(c===null)return!1;if(i==="display"||i==="visibility")return!0;const d=r[r.length-1],f=Td(c,i),p=Td(d,i);return!f||!p?!1:Iv(r)||(o==="spring"||Ga(o))&&a}const Bv=r=>r!==null;function Xs(r,{repeat:i,repeatType:o="loop"},a){const c=r.filter(Bv),d=i&&o!=="loop"&&i%2===1?0:c.length-1;return!d||a===void 0?c[d]:a}const Uv=40;class wp{constructor({autoplay:i=!0,delay:o=0,type:a="keyframes",repeat:c=0,repeatDelay:d=0,repeatType:f="loop",...p}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=jt.now(),this.options={autoplay:i,delay:o,type:a,repeat:c,repeatDelay:d,repeatType:f,...p},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Uv?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&_v(),this._resolved}onKeyframesResolved(i,o){this.resolvedAt=jt.now(),this.hasAttemptedResolve=!0;const{name:a,type:c,velocity:d,delay:f,onComplete:p,onUpdate:m,isGenerator:g}=this.options;if(!g&&!zv(i,a,c,d))if(f)this.options.duration=0;else{m&&m(Xs(i,this.options,o)),p&&p(),this.resolveFinishedPromise();return}const v=this.initPlayback(i,o);v!==!1&&(this._resolved={keyframes:i,finalKeyframe:o,...v},this.onPostResolved())}onPostResolved(){}then(i,o){return this.currentFinishedPromise.then(i,o)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(i=>{this.resolveFinishedPromise=i})}}const ga=2e4;function Sp(r){let i=0;const o=50;let a=r.next(i);for(;!a.done&&i<ga;)i+=o,a=r.next(i);return i>=ga?1/0:i}const Ee=(r,i,o)=>r+(i-r)*o;function Zl(r,i,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?r+(i-r)*6*o:o<1/2?i:o<2/3?r+(i-r)*(2/3-o)*6:r}function $v({hue:r,saturation:i,lightness:o,alpha:a}){r/=360,i/=100,o/=100;let c=0,d=0,f=0;if(!i)c=d=f=o;else{const p=o<.5?o*(1+i):o+i-o*i,m=2*o-p;c=Zl(m,p,r+1/3),d=Zl(m,p,r),f=Zl(m,p,r-1/3)}return{red:Math.round(c*255),green:Math.round(d*255),blue:Math.round(f*255),alpha:a}}function Us(r,i){return o=>o>0?i:r}const Jl=(r,i,o)=>{const a=r*r,c=o*(i*i-a)+a;return c<0?0:Math.sqrt(c)},Wv=[da,Vn,ar],Hv=r=>Wv.find(i=>i.test(r));function kd(r){const i=Hv(r);if(!i)return!1;let o=i.parse(r);return i===ar&&(o=$v(o)),o}const Pd=(r,i)=>{const o=kd(r),a=kd(i);if(!o||!a)return Us(r,i);const c={...o};return d=>(c.red=Jl(o.red,a.red,d),c.green=Jl(o.green,a.green,d),c.blue=Jl(o.blue,a.blue,d),c.alpha=Ee(o.alpha,a.alpha,d),Vn.transform(c))},Kv=(r,i)=>o=>i(r(o)),wi=(...r)=>r.reduce(Kv),ya=new Set(["none","hidden"]);function Gv(r,i){return ya.has(r)?o=>o<=0?r:i:o=>o>=1?i:r}function Qv(r,i){return o=>Ee(r,i,o)}function eu(r){return typeof r=="number"?Qv:typeof r=="string"?_a(r)?Us:Xe.test(r)?Pd:qv:Array.isArray(r)?xp:typeof r=="object"?Xe.test(r)?Pd:Yv:Us}function xp(r,i){const o=[...r],a=o.length,c=r.map((d,f)=>eu(d)(d,i[f]));return d=>{for(let f=0;f<a;f++)o[f]=c[f](d);return o}}function Yv(r,i){const o={...r,...i},a={};for(const c in o)r[c]!==void 0&&i[c]!==void 0&&(a[c]=eu(r[c])(r[c],i[c]));return c=>{for(const d in a)o[d]=a[d](c);return o}}function Xv(r,i){var o;const a=[],c={color:0,var:0,number:0};for(let d=0;d<i.values.length;d++){const f=i.types[d],p=r.indexes[f][c[f]],m=(o=r.values[p])!==null&&o!==void 0?o:0;a[d]=m,c[f]++}return a}const qv=(r,i)=>{const o=mn.createTransformer(i),a=mi(r),c=mi(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?ya.has(r)&&!c.values.length||ya.has(i)&&!a.values.length?Gv(r,i):wi(xp(Xv(a,c),c.values),o):Us(r,i)};function Tp(r,i,o){return typeof r=="number"&&typeof i=="number"&&typeof o=="number"?Ee(r,i,o):eu(r)(r,i)}const Zv=5;function kp(r,i,o){const a=Math.max(i-Zv,0);return Gh(o-r(a),i-a)}const Ae={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},bl=.001;function Jv({duration:r=Ae.duration,bounce:i=Ae.bounce,velocity:o=Ae.velocity,mass:a=Ae.mass}){let c,d,f=1-i;f=Gt(Ae.minDamping,Ae.maxDamping,f),r=Gt(Ae.minDuration,Ae.maxDuration,Kt(r)),f<1?(c=g=>{const v=g*f,w=v*r,T=v-o,D=va(g,f),j=Math.exp(-w);return bl-T/D*j},d=g=>{const w=g*f*r,T=w*o+o,D=Math.pow(f,2)*Math.pow(g,2)*r,j=Math.exp(-w),M=va(Math.pow(g,2),f);return(-c(g)+bl>0?-1:1)*((T-D)*j)/M}):(c=g=>{const v=Math.exp(-g*r),w=(g-o)*r+1;return-bl+v*w},d=g=>{const v=Math.exp(-g*r),w=(o-g)*(r*r);return v*w});const p=5/r,m=e0(c,d,p);if(r=Ht(r),isNaN(m))return{stiffness:Ae.stiffness,damping:Ae.damping,duration:r};{const g=Math.pow(m,2)*a;return{stiffness:g,damping:f*2*Math.sqrt(a*g),duration:r}}}const bv=12;function e0(r,i,o){let a=o;for(let c=1;c<bv;c++)a=a-r(a)/i(a);return a}function va(r,i){return r*Math.sqrt(1-i*i)}const t0=["duration","bounce"],n0=["stiffness","damping","mass"];function Cd(r,i){return i.some(o=>r[o]!==void 0)}function r0(r){let i={velocity:Ae.velocity,stiffness:Ae.stiffness,damping:Ae.damping,mass:Ae.mass,isResolvedFromDuration:!1,...r};if(!Cd(r,n0)&&Cd(r,t0))if(r.visualDuration){const o=r.visualDuration,a=2*Math.PI/(o*1.2),c=a*a,d=2*Gt(.05,1,1-(r.bounce||0))*Math.sqrt(c);i={...i,mass:Ae.mass,stiffness:c,damping:d}}else{const o=Jv(r);i={...i,...o,mass:Ae.mass},i.isResolvedFromDuration=!0}return i}function Pp(r=Ae.visualDuration,i=Ae.bounce){const o=typeof r!="object"?{visualDuration:r,keyframes:[0,1],bounce:i}:r;let{restSpeed:a,restDelta:c}=o;const d=o.keyframes[0],f=o.keyframes[o.keyframes.length-1],p={done:!1,value:d},{stiffness:m,damping:g,mass:v,duration:w,velocity:T,isResolvedFromDuration:D}=r0({...o,velocity:-Kt(o.velocity||0)}),j=T||0,M=g/(2*Math.sqrt(m*v)),V=f-d,I=Kt(Math.sqrt(m/v)),$=Math.abs(V)<5;a||(a=$?Ae.restSpeed.granular:Ae.restSpeed.default),c||(c=$?Ae.restDelta.granular:Ae.restDelta.default);let K;if(M<1){const X=va(I,M);K=ie=>{const ue=Math.exp(-M*I*ie);return f-ue*((j+M*I*V)/X*Math.sin(X*ie)+V*Math.cos(X*ie))}}else if(M===1)K=X=>f-Math.exp(-I*X)*(V+(j+I*V)*X);else{const X=I*Math.sqrt(M*M-1);K=ie=>{const ue=Math.exp(-M*I*ie),J=Math.min(X*ie,300);return f-ue*((j+M*I*V)*Math.sinh(J)+X*V*Math.cosh(J))/X}}const ne={calculatedDuration:D&&w||null,next:X=>{const ie=K(X);if(D)p.done=X>=w;else{let ue=0;M<1&&(ue=X===0?Ht(j):kp(K,X,ie));const J=Math.abs(ue)<=a,me=Math.abs(f-ie)<=c;p.done=J&&me}return p.value=p.done?f:ie,p},toString:()=>{const X=Math.min(Sp(ne),ga),ie=Yh(ue=>ne.next(X*ue).value,X,30);return X+"ms "+ie}};return ne}function Ed({keyframes:r,velocity:i=0,power:o=.8,timeConstant:a=325,bounceDamping:c=10,bounceStiffness:d=500,modifyTarget:f,min:p,max:m,restDelta:g=.5,restSpeed:v}){const w=r[0],T={done:!1,value:w},D=J=>p!==void 0&&J<p||m!==void 0&&J>m,j=J=>p===void 0?m:m===void 0||Math.abs(p-J)<Math.abs(m-J)?p:m;let M=o*i;const V=w+M,I=f===void 0?V:f(V);I!==V&&(M=I-w);const $=J=>-M*Math.exp(-J/a),K=J=>I+$(J),ne=J=>{const me=$(J),ge=K(J);T.done=Math.abs(me)<=g,T.value=T.done?I:ge};let X,ie;const ue=J=>{D(T.value)&&(X=J,ie=Pp({keyframes:[T.value,j(T.value)],velocity:kp(K,J,T.value),damping:c,stiffness:d,restDelta:g,restSpeed:v}))};return ue(0),{calculatedDuration:null,next:J=>{let me=!1;return!ie&&X===void 0&&(me=!0,ne(J),ue(J)),X!==void 0&&J>=X?ie.next(J-X):(!me&&ne(J),T)}}}const i0=vi(.42,0,1,1),s0=vi(0,0,.58,1),Cp=vi(.42,0,.58,1),o0=r=>Array.isArray(r)&&typeof r[0]!="number",l0={linear:ft,easeIn:i0,easeInOut:Cp,easeOut:s0,circIn:Xa,circInOut:ip,circOut:rp,backIn:Ya,backInOut:tp,backOut:ep,anticipate:np},Dd=r=>{if(Qa(r)){Ch(r.length===4);const[i,o,a,c]=r;return vi(i,o,a,c)}else if(typeof r=="string")return l0[r];return r};function a0(r,i,o){const a=[],c=o||Tp,d=r.length-1;for(let f=0;f<d;f++){let p=c(r[f],r[f+1]);if(i){const m=Array.isArray(i)?i[f]||ft:i;p=wi(m,p)}a.push(p)}return a}function u0(r,i,{clamp:o=!0,ease:a,mixer:c}={}){const d=r.length;if(Ch(d===i.length),d===1)return()=>i[0];if(d===2&&i[0]===i[1])return()=>i[1];const f=r[0]===r[1];r[0]>r[d-1]&&(r=[...r].reverse(),i=[...i].reverse());const p=a0(i,a,c),m=p.length,g=v=>{if(f&&v<r[0])return i[0];let w=0;if(m>1)for(;w<r.length-2&&!(v<r[w+1]);w++);const T=hr(r[w],r[w+1],v);return p[w](T)};return o?v=>g(Gt(r[0],r[d-1],v)):g}function c0(r,i){const o=r[r.length-1];for(let a=1;a<=i;a++){const c=hr(0,i,a);r.push(Ee(o,1,c))}}function f0(r){const i=[0];return c0(i,r.length-1),i}function d0(r,i){return r.map(o=>o*i)}function h0(r,i){return r.map(()=>i||Cp).splice(0,r.length-1)}function $s({duration:r=300,keyframes:i,times:o,ease:a="easeInOut"}){const c=o0(a)?a.map(Dd):Dd(a),d={done:!1,value:i[0]},f=d0(o&&o.length===i.length?o:f0(i),r),p=u0(f,i,{ease:Array.isArray(c)?c:h0(i,c)});return{calculatedDuration:r,next:m=>(d.value=p(m),d.done=m>=r,d)}}const p0=r=>{const i=({timestamp:o})=>r(o);return{start:()=>xe.update(i,!0),stop:()=>pn(i),now:()=>We.isProcessing?We.timestamp:jt.now()}},m0={decay:Ed,inertia:Ed,tween:$s,keyframes:$s,spring:Pp},g0=r=>r/100;class tu extends wp{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:o,motionValue:a,element:c,keyframes:d}=this.options,f=c?.KeyframeResolver||ba,p=(m,g)=>this.onKeyframesResolved(m,g);this.resolver=new f(d,p,o,a,c),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(i){const{type:o="keyframes",repeat:a=0,repeatDelay:c=0,repeatType:d,velocity:f=0}=this.options,p=Ga(o)?o:m0[o]||$s;let m,g;p!==$s&&typeof i[0]!="number"&&(m=wi(g0,Tp(i[0],i[1])),i=[0,100]);const v=p({...this.options,keyframes:i});d==="mirror"&&(g=p({...this.options,keyframes:[...i].reverse(),velocity:-f})),v.calculatedDuration===null&&(v.calculatedDuration=Sp(v));const{calculatedDuration:w}=v,T=w+c,D=T*(a+1)-c;return{generator:v,mirroredGenerator:g,mapPercentToKeyframes:m,calculatedDuration:w,resolvedDuration:T,totalDuration:D}}onPostResolved(){const{autoplay:i=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!i?this.pause():this.state=this.pendingPlayState}tick(i,o=!1){const{resolved:a}=this;if(!a){const{keyframes:J}=this.options;return{done:!0,value:J[J.length-1]}}const{finalKeyframe:c,generator:d,mirroredGenerator:f,mapPercentToKeyframes:p,keyframes:m,calculatedDuration:g,totalDuration:v,resolvedDuration:w}=a;if(this.startTime===null)return d.next(0);const{delay:T,repeat:D,repeatType:j,repeatDelay:M,onUpdate:V}=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)),o?this.currentTime=i:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(i-this.startTime)*this.speed;const I=this.currentTime-T*(this.speed>=0?1:-1),$=this.speed>=0?I<0:I>v;this.currentTime=Math.max(I,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=v);let K=this.currentTime,ne=d;if(D){const J=Math.min(this.currentTime,v)/w;let me=Math.floor(J),ge=J%1;!ge&&J>=1&&(ge=1),ge===1&&me--,me=Math.min(me,D+1),!!(me%2)&&(j==="reverse"?(ge=1-ge,M&&(ge-=M/w)):j==="mirror"&&(ne=f)),K=Gt(0,1,ge)*w}const X=$?{done:!1,value:m[0]}:ne.next(K);p&&(X.value=p(X.value));let{done:ie}=X;!$&&g!==null&&(ie=this.speed>=0?this.currentTime>=v:this.currentTime<=0);const ue=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&ie);return ue&&c!==void 0&&(X.value=Xs(m,this.options,c)),V&&V(X.value),ue&&this.finish(),X}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 o=this.playbackSpeed!==i;this.playbackSpeed=i,o&&(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=p0,onPlay:o,startTime:a}=this.options;this.driver||(this.driver=i(d=>this.tick(d))),o&&o();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 y0=new Set(["opacity","clipPath","filter","transform"]);function v0(r,i,o,{delay:a=0,duration:c=300,repeat:d=0,repeatType:f="loop",ease:p="easeInOut",times:m}={}){const g={[i]:o};m&&(g.offset=m);const v=qh(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:d+1,direction:f==="reverse"?"alternate":"normal"})}const w0=Ka(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ws=10,S0=2e4;function x0(r){return Ga(r.type)||r.type==="spring"||!Xh(r.ease)}function T0(r,i){const o=new tu({...i,keyframes:r,repeat:0,delay:0,isGenerator:!0});let a={done:!1,value:r[0]};const c=[];let d=0;for(;!a.done&&d<S0;)a=o.sample(d),c.push(a.value),d+=Ws;return{times:void 0,keyframes:c,duration:d-Ws,ease:"linear"}}const Ep={anticipate:np,backInOut:tp,circInOut:ip};function k0(r){return r in Ep}class Ad extends wp{constructor(i){super(i);const{name:o,motionValue:a,element:c,keyframes:d}=this.options;this.resolver=new vp(d,(f,p)=>this.onKeyframesResolved(f,p),o,a,c),this.resolver.scheduleResolve()}initPlayback(i,o){let{duration:a=300,times:c,ease:d,type:f,motionValue:p,name:m,startTime:g}=this.options;if(!p.owner||!p.owner.current)return!1;if(typeof d=="string"&&Bs()&&k0(d)&&(d=Ep[d]),x0(this.options)){const{onComplete:w,onUpdate:T,motionValue:D,element:j,...M}=this.options,V=T0(i,M);i=V.keyframes,i.length===1&&(i[1]=i[0]),a=V.duration,c=V.times,d=V.ease,f="keyframes"}const v=v0(p.owner.current,m,i,{...this.options,duration:a,times:c,ease:d});return v.startTime=g??this.calcStartTime(),this.pendingTimeline?(gd(v,this.pendingTimeline),this.pendingTimeline=void 0):v.onfinish=()=>{const{onComplete:w}=this.options;p.set(Xs(i,this.options,o)),w&&w(),this.cancel(),this.resolveFinishedPromise()},{animation:v,duration:a,times:c,type:f,ease:d,keyframes:i}}get duration(){const{resolved:i}=this;if(!i)return 0;const{duration:o}=i;return Kt(o)}get time(){const{resolved:i}=this;if(!i)return 0;const{animation:o}=i;return Kt(o.currentTime||0)}set time(i){const{resolved:o}=this;if(!o)return;const{animation:a}=o;a.currentTime=Ht(i)}get speed(){const{resolved:i}=this;if(!i)return 1;const{animation:o}=i;return o.playbackRate}set speed(i){const{resolved:o}=this;if(!o)return;const{animation:a}=o;a.playbackRate=i}get state(){const{resolved:i}=this;if(!i)return"idle";const{animation:o}=i;return o.playState}get startTime(){const{resolved:i}=this;if(!i)return null;const{animation:o}=i;return o.startTime}attachTimeline(i){if(!this._resolved)this.pendingTimeline=i;else{const{resolved:o}=this;if(!o)return ft;const{animation:a}=o;gd(a,i)}return ft}play(){if(this.isStopped)return;const{resolved:i}=this;if(!i)return;const{animation:o}=i;o.playState==="finished"&&this.updateFinishedPromise(),o.play()}pause(){const{resolved:i}=this;if(!i)return;const{animation:o}=i;o.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:o,keyframes:a,duration:c,type:d,ease:f,times:p}=i;if(o.playState==="idle"||o.playState==="finished")return;if(this.time){const{motionValue:g,onUpdate:v,onComplete:w,element:T,...D}=this.options,j=new tu({...D,keyframes:a,duration:c,type:d,ease:f,times:p,isGenerator:!0}),M=Ht(this.time);g.setWithVelocity(j.sample(M-Ws).value,j.sample(M).value,Ws)}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:o,name:a,repeatDelay:c,repeatType:d,damping:f,type:p}=i;if(!o||!o.owner||!(o.owner.current instanceof HTMLElement))return!1;const{onUpdate:m,transformTemplate:g}=o.owner.getProps();return w0()&&a&&y0.has(a)&&!m&&!g&&!c&&d!=="mirror"&&f!==0&&p!=="inertia"}}const P0={type:"spring",stiffness:500,damping:25,restSpeed:10},C0=r=>({type:"spring",stiffness:550,damping:r===0?2*Math.sqrt(550):30,restSpeed:10}),E0={type:"keyframes",duration:.8},D0={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},A0=(r,{keyframes:i})=>i.length>2?E0:jn.has(r)?r.startsWith("scale")?C0(i[1]):P0:D0;function M0({when:r,delay:i,delayChildren:o,staggerChildren:a,staggerDirection:c,repeat:d,repeatType:f,repeatDelay:p,from:m,elapsed:g,...v}){return!!Object.keys(v).length}const nu=(r,i,o,a={},c,d)=>f=>{const p=Ua(a,r)||{},m=p.delay||a.delay||0;let{elapsed:g=0}=a;g=g-Ht(m);let v={keyframes:Array.isArray(o)?o:[null,o],ease:"easeOut",velocity:i.getVelocity(),...p,delay:-g,onUpdate:T=>{i.set(T),p.onUpdate&&p.onUpdate(T)},onComplete:()=>{f(),p.onComplete&&p.onComplete()},name:r,motionValue:i,element:d?void 0:c};M0(p)||(v={...v,...A0(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 w=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(v.duration=0,v.delay===0&&(w=!0)),w&&!d&&i.get()!==void 0){const T=Xs(v.keyframes,p);if(T!==void 0)return xe.update(()=>{v.onUpdate(T),v.onComplete()}),new lv([])}return!d&&Ad.supports(v)?new Ad(v):new tu(v)};function R0({protectedKeys:r,needsAnimating:i},o){const a=r.hasOwnProperty(o)&&i[o]!==!0;return i[o]=!1,a}function Dp(r,i,{delay:o=0,transitionOverride:a,type:c}={}){var d;let{transition:f=r.getDefaultTransition(),transitionEnd:p,...m}=i;a&&(f=a);const g=[],v=c&&r.animationState&&r.animationState.getState()[c];for(const w in m){const T=r.getValue(w,(d=r.latestValues[w])!==null&&d!==void 0?d:null),D=m[w];if(D===void 0||v&&R0(v,w))continue;const j={delay:o,...Ua(f||{},w)};let M=!1;if(window.MotionHandoffAnimation){const I=Qh(r);if(I){const $=window.MotionHandoffAnimation(I,w,xe);$!==null&&(j.startTime=$,M=!0)}}ca(r,w),T.start(nu(w,T,D,r.shouldReduceMotion&&Kh.has(w)?{type:!1}:j,r,M));const V=T.animation;V&&g.push(V)}return p&&Promise.all(g).then(()=>{xe.update(()=>{p&&rv(r,p)})}),g}function wa(r,i,o={}){var a;const c=Ys(r,i,o.type==="exit"?(a=r.presenceContext)===null||a===void 0?void 0:a.custom:void 0);let{transition:d=r.getDefaultTransition()||{}}=c||{};o.transitionOverride&&(d=o.transitionOverride);const f=c?()=>Promise.all(Dp(r,c,o)):()=>Promise.resolve(),p=r.variantChildren&&r.variantChildren.size?(g=0)=>{const{delayChildren:v=0,staggerChildren:w,staggerDirection:T}=d;return L0(r,i,v+g,w,T,o)}:()=>Promise.resolve(),{when:m}=d;if(m){const[g,v]=m==="beforeChildren"?[f,p]:[p,f];return g().then(()=>v())}else return Promise.all([f(),p(o.delay)])}function L0(r,i,o=0,a=0,c=1,d){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(N0).forEach((g,v)=>{g.notify("AnimationStart",i),f.push(wa(g,i,{...d,delay:o+m(v)}).then(()=>g.notify("AnimationComplete",i)))}),Promise.all(f)}function N0(r,i){return r.sortNodePosition(i)}function V0(r,i,o={}){r.notify("AnimationStart",i);let a;if(Array.isArray(i)){const c=i.map(d=>wa(r,d,o));a=Promise.all(c)}else if(typeof i=="string")a=wa(r,i,o);else{const c=typeof i=="function"?Ys(r,i,o.custom):i;a=Promise.all(Dp(r,c,o))}return a.then(()=>{r.notify("AnimationComplete",i)})}const _0=Ma.length;function Ap(r){if(!r)return;if(!r.isControllingVariants){const o=r.parent?Ap(r.parent)||{}:{};return r.props.initial!==void 0&&(o.initial=r.props.initial),o}const i={};for(let o=0;o<_0;o++){const a=Ma[o],c=r.props[a];(di(c)||c===!1)&&(i[a]=c)}return i}const j0=[...Aa].reverse(),F0=Aa.length;function O0(r){return i=>Promise.all(i.map(({animation:o,options:a})=>V0(r,o,a)))}function I0(r){let i=O0(r),o=Md(),a=!0;const c=m=>(g,v)=>{var w;const T=Ys(r,v,m==="exit"?(w=r.presenceContext)===null||w===void 0?void 0:w.custom:void 0);if(T){const{transition:D,transitionEnd:j,...M}=T;g={...g,...M,...j}}return g};function d(m){i=m(r)}function f(m){const{props:g}=r,v=Ap(r.parent)||{},w=[],T=new Set;let D={},j=1/0;for(let V=0;V<F0;V++){const I=j0[V],$=o[I],K=g[I]!==void 0?g[I]:v[I],ne=di(K),X=I===m?$.isActive:null;X===!1&&(j=V);let ie=K===v[I]&&K!==g[I]&≠if(ie&&a&&r.manuallyAnimateOnMount&&(ie=!1),$.protectedKeys={...D},!$.isActive&&X===null||!K&&!$.prevProp||Gs(K)||typeof K=="boolean")continue;const ue=z0($.prevProp,K);let J=ue||I===m&&$.isActive&&!ie&&ne||V>j&&ne,me=!1;const ge=Array.isArray(K)?K:[K];let ve=ge.reduce(c(I),{});X===!1&&(ve={});const{prevResolvedValues:Me={}}=$,Fe={...Me,...ve},He=oe=>{J=!0,T.has(oe)&&(me=!0,T.delete(oe)),$.needsAnimating[oe]=!0;const z=r.getValue(oe);z&&(z.liveStyle=!1)};for(const oe in Fe){const z=ve[oe],Q=Me[oe];if(D.hasOwnProperty(oe))continue;let B=!1;ua(z)&&ua(Q)?B=!Hh(z,Q):B=z!==Q,B?z!=null?He(oe):T.add(oe):z!==void 0&&T.has(oe)?He(oe):$.protectedKeys[oe]=!0}$.prevProp=K,$.prevResolvedValues=ve,$.isActive&&(D={...D,...ve}),a&&r.blockInitialAnimation&&(J=!1),J&&(!(ie&&ue)||me)&&w.push(...ge.map(oe=>({animation:oe,options:{type:I}})))}if(T.size){const V={};T.forEach(I=>{const $=r.getBaseTarget(I),K=r.getValue(I);K&&(K.liveStyle=!0),V[I]=$??null}),w.push({animation:V})}let M=!!w.length;return a&&(g.initial===!1||g.initial===g.animate)&&!r.manuallyAnimateOnMount&&(M=!1),a=!1,M?i(w):Promise.resolve()}function p(m,g){var v;if(o[m].isActive===g)return Promise.resolve();(v=r.variantChildren)===null||v===void 0||v.forEach(T=>{var D;return(D=T.animationState)===null||D===void 0?void 0:D.setActive(m,g)}),o[m].isActive=g;const w=f(m);for(const T in o)o[T].protectedKeys={};return w}return{animateChanges:f,setActive:p,setAnimateFunction:d,getState:()=>o,reset:()=>{o=Md(),a=!0}}}function z0(r,i){return typeof i=="string"?i!==r:Array.isArray(i)?!Hh(i,r):!1}function Rn(r=!1){return{isActive:r,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Md(){return{animate:Rn(!0),whileInView:Rn(),whileHover:Rn(),whileTap:Rn(),whileDrag:Rn(),whileFocus:Rn(),exit:Rn()}}class gn{constructor(i){this.isMounted=!1,this.node=i}update(){}}class B0 extends gn{constructor(i){super(i),i.animationState||(i.animationState=I0(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();Gs(i)&&(this.unmountControls=i.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:i}=this.node.getProps(),{animate:o}=this.node.prevProps||{};i!==o&&this.updateAnimationControlsSubscription()}unmount(){var i;this.node.animationState.reset(),(i=this.unmountControls)===null||i===void 0||i.call(this)}}let U0=0;class $0 extends gn{constructor(){super(...arguments),this.id=U0++}update(){if(!this.node.presenceContext)return;const{isPresent:i,onExitComplete:o}=this.node.presenceContext,{isPresent:a}=this.node.prevPresenceContext||{};if(!this.node.animationState||i===a)return;const c=this.node.animationState.setActive("exit",!i);o&&!i&&c.then(()=>o(this.id))}mount(){const{register:i}=this.node.presenceContext||{};i&&(this.unmount=i(this.id))}unmount(){}}const W0={animation:{Feature:B0},exit:{Feature:$0}},At={x:!1,y:!1};function Mp(){return At.x||At.y}function H0(r){return r==="x"||r==="y"?At[r]?null:(At[r]=!0,()=>{At[r]=!1}):At.x||At.y?null:(At.x=At.y=!0,()=>{At.x=At.y=!1})}const ru=r=>r.pointerType==="mouse"?typeof r.button!="number"||r.button<=0:r.isPrimary!==!1;function gi(r,i,o,a={passive:!0}){return r.addEventListener(i,o,a),()=>r.removeEventListener(i,o)}function Si(r){return{point:{x:r.pageX,y:r.pageY}}}const K0=r=>i=>ru(i)&&r(i,Si(i));function ui(r,i,o,a){return gi(r,i,K0(o),a)}const Rd=(r,i)=>Math.abs(r-i);function G0(r,i){const o=Rd(r.x,i.x),a=Rd(r.y,i.y);return Math.sqrt(o**2+a**2)}class Rp{constructor(i,o,{transformPagePoint:a,contextWindow:c,dragSnapToOrigin:d=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=ta(this.lastMoveEventInfo,this.history),T=this.startEvent!==null,D=G0(w.offset,{x:0,y:0})>=3;if(!T&&!D)return;const{point:j}=w,{timestamp:M}=We;this.history.push({...j,timestamp:M});const{onStart:V,onMove:I}=this.handlers;T||(V&&V(this.lastMoveEvent,w),this.startEvent=this.lastMoveEvent),I&&I(this.lastMoveEvent,w)},this.handlePointerMove=(w,T)=>{this.lastMoveEvent=w,this.lastMoveEventInfo=ea(T,this.transformPagePoint),xe.update(this.updatePoint,!0)},this.handlePointerUp=(w,T)=>{this.end();const{onEnd:D,onSessionEnd:j,resumeAnimation:M}=this.handlers;if(this.dragSnapToOrigin&&M&&M(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const V=ta(w.type==="pointercancel"?this.lastMoveEventInfo:ea(T,this.transformPagePoint),this.history);this.startEvent&&D&&D(w,V),j&&j(w,V)},!ru(i))return;this.dragSnapToOrigin=d,this.handlers=o,this.transformPagePoint=a,this.contextWindow=c||window;const f=Si(i),p=ea(f,this.transformPagePoint),{point:m}=p,{timestamp:g}=We;this.history=[{...m,timestamp:g}];const{onSessionStart:v}=o;v&&v(i,ta(p,this.history)),this.removeListeners=wi(ui(this.contextWindow,"pointermove",this.handlePointerMove),ui(this.contextWindow,"pointerup",this.handlePointerUp),ui(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(i){this.handlers=i}end(){this.removeListeners&&this.removeListeners(),pn(this.updatePoint)}}function ea(r,i){return i?{point:i(r.point)}:r}function Ld(r,i){return{x:r.x-i.x,y:r.y-i.y}}function ta({point:r},i){return{point:r,delta:Ld(r,Lp(i)),offset:Ld(r,Q0(i)),velocity:Y0(i,.1)}}function Q0(r){return r[0]}function Lp(r){return r[r.length-1]}function Y0(r,i){if(r.length<2)return{x:0,y:0};let o=r.length-1,a=null;const c=Lp(r);for(;o>=0&&(a=r[o],!(c.timestamp-a.timestamp>Ht(i)));)o--;if(!a)return{x:0,y:0};const d=Kt(c.timestamp-a.timestamp);if(d===0)return{x:0,y:0};const f={x:(c.x-a.x)/d,y:(c.y-a.y)/d};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}const Np=1e-4,X0=1-Np,q0=1+Np,Vp=.01,Z0=0-Vp,J0=0+Vp;function dt(r){return r.max-r.min}function b0(r,i,o){return Math.abs(r-i)<=o}function Nd(r,i,o,a=.5){r.origin=a,r.originPoint=Ee(i.min,i.max,r.origin),r.scale=dt(o)/dt(i),r.translate=Ee(o.min,o.max,r.origin)-r.originPoint,(r.scale>=X0&&r.scale<=q0||isNaN(r.scale))&&(r.scale=1),(r.translate>=Z0&&r.translate<=J0||isNaN(r.translate))&&(r.translate=0)}function ci(r,i,o,a){Nd(r.x,i.x,o.x,a?a.originX:void 0),Nd(r.y,i.y,o.y,a?a.originY:void 0)}function Vd(r,i,o){r.min=o.min+i.min,r.max=r.min+dt(i)}function e1(r,i,o){Vd(r.x,i.x,o.x),Vd(r.y,i.y,o.y)}function _d(r,i,o){r.min=i.min-o.min,r.max=r.min+dt(i)}function fi(r,i,o){_d(r.x,i.x,o.x),_d(r.y,i.y,o.y)}function t1(r,{min:i,max:o},a){return i!==void 0&&r<i?r=a?Ee(i,r,a.min):Math.max(r,i):o!==void 0&&r>o&&(r=a?Ee(o,r,a.max):Math.min(r,o)),r}function jd(r,i,o){return{min:i!==void 0?r.min+i:void 0,max:o!==void 0?r.max+o-(r.max-r.min):void 0}}function n1(r,{top:i,left:o,bottom:a,right:c}){return{x:jd(r.x,o,c),y:jd(r.y,i,a)}}function Fd(r,i){let o=i.min-r.min,a=i.max-r.max;return i.max-i.min<r.max-r.min&&([o,a]=[a,o]),{min:o,max:a}}function r1(r,i){return{x:Fd(r.x,i.x),y:Fd(r.y,i.y)}}function i1(r,i){let o=.5;const a=dt(r),c=dt(i);return c>a?o=hr(i.min,i.max-a,r.min):a>c&&(o=hr(r.min,r.max-c,i.min)),Gt(0,1,o)}function s1(r,i){const o={};return i.min!==void 0&&(o.min=i.min-r.min),i.max!==void 0&&(o.max=i.max-r.min),o}const Sa=.35;function o1(r=Sa){return r===!1?r=0:r===!0&&(r=Sa),{x:Od(r,"left","right"),y:Od(r,"top","bottom")}}function Od(r,i,o){return{min:Id(r,i),max:Id(r,o)}}function Id(r,i){return typeof r=="number"?r:r[i]||0}const zd=()=>({translate:0,scale:1,origin:0,originPoint:0}),ur=()=>({x:zd(),y:zd()}),Bd=()=>({min:0,max:0}),Ne=()=>({x:Bd(),y:Bd()});function St(r){return[r("x"),r("y")]}function _p({top:r,left:i,right:o,bottom:a}){return{x:{min:i,max:o},y:{min:r,max:a}}}function l1({x:r,y:i}){return{top:i.min,right:r.max,bottom:i.max,left:r.min}}function a1(r,i){if(!i)return r;const o=i({x:r.left,y:r.top}),a=i({x:r.right,y:r.bottom});return{top:o.y,left:o.x,bottom:a.y,right:a.x}}function na(r){return r===void 0||r===1}function xa({scale:r,scaleX:i,scaleY:o}){return!na(r)||!na(i)||!na(o)}function Ln(r){return xa(r)||jp(r)||r.z||r.rotate||r.rotateX||r.rotateY||r.skewX||r.skewY}function jp(r){return Ud(r.x)||Ud(r.y)}function Ud(r){return r&&r!=="0%"}function Hs(r,i,o){const a=r-o,c=i*a;return o+c}function $d(r,i,o,a,c){return c!==void 0&&(r=Hs(r,c,a)),Hs(r,o,a)+i}function Ta(r,i=0,o=1,a,c){r.min=$d(r.min,i,o,a,c),r.max=$d(r.max,i,o,a,c)}function Fp(r,{x:i,y:o}){Ta(r.x,i.translate,i.scale,i.originPoint),Ta(r.y,o.translate,o.scale,o.originPoint)}const Wd=.999999999999,Hd=1.0000000000001;function u1(r,i,o,a=!1){const c=o.length;if(!c)return;i.x=i.y=1;let d,f;for(let p=0;p<c;p++){d=o[p],f=d.projectionDelta;const{visualElement:m}=d.options;m&&m.props.style&&m.props.style.display==="contents"||(a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&fr(r,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),f&&(i.x*=f.x.scale,i.y*=f.y.scale,Fp(r,f)),a&&Ln(d.latestValues)&&fr(r,d.latestValues))}i.x<Hd&&i.x>Wd&&(i.x=1),i.y<Hd&&i.y>Wd&&(i.y=1)}function cr(r,i){r.min=r.min+i,r.max=r.max+i}function Kd(r,i,o,a,c=.5){const d=Ee(r.min,r.max,c);Ta(r,i,o,d,a)}function fr(r,i){Kd(r.x,i.x,i.scaleX,i.scale,i.originX),Kd(r.y,i.y,i.scaleY,i.scale,i.originY)}function Op(r,i){return _p(a1(r.getBoundingClientRect(),i))}function c1(r,i,o){const a=Op(r,o),{scroll:c}=i;return c&&(cr(a.x,c.offset.x),cr(a.y,c.offset.y)),a}const Ip=({current:r})=>r?r.ownerDocument.defaultView:null,f1=new WeakMap;class d1{constructor(i){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ne(),this.visualElement=i}start(i,{snapToCursor:o=!1}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const c=v=>{const{dragSnapToOrigin:w}=this.getProps();w?this.pauseAnimation():this.stopAnimation(),o&&this.snapToCursor(Si(v).point)},d=(v,w)=>{const{drag:T,dragPropagation:D,onDragStart:j}=this.getProps();if(T&&!D&&(this.openDragLock&&this.openDragLock(),this.openDragLock=H0(T),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),St(V=>{let I=this.getAxisMotionValue(V).get()||0;if(_t.test(I)){const{projection:$}=this.visualElement;if($&&$.layout){const K=$.layout.layoutBox[V];K&&(I=dt(K)*(parseFloat(I)/100))}}this.originPoint[V]=I}),j&&xe.postRender(()=>j(v,w)),ca(this.visualElement,"transform");const{animationState:M}=this.visualElement;M&&M.setActive("whileDrag",!0)},f=(v,w)=>{const{dragPropagation:T,dragDirectionLock:D,onDirectionLock:j,onDrag:M}=this.getProps();if(!T&&!this.openDragLock)return;const{offset:V}=w;if(D&&this.currentDirection===null){this.currentDirection=h1(V),this.currentDirection!==null&&j&&j(this.currentDirection);return}this.updateAxis("x",w.point,V),this.updateAxis("y",w.point,V),this.visualElement.render(),M&&M(v,w)},p=(v,w)=>this.stop(v,w),m=()=>St(v=>{var w;return this.getAnimationState(v)==="paused"&&((w=this.getAxisMotionValue(v).animation)===null||w===void 0?void 0:w.play())}),{dragSnapToOrigin:g}=this.getProps();this.panSession=new Rp(i,{onSessionStart:c,onStart:d,onMove:f,onSessionEnd:p,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,contextWindow:Ip(this.visualElement)})}stop(i,o){const a=this.isDragging;if(this.cancel(),!a)return;const{velocity:c}=o;this.startAnimation(c);const{onDragEnd:d}=this.getProps();d&&xe.postRender(()=>d(i,o))}cancel(){this.isDragging=!1;const{projection:i,animationState:o}=this.visualElement;i&&(i.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:a}=this.getProps();!a&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),o&&o.setActive("whileDrag",!1)}updateAxis(i,o,a){const{drag:c}=this.getProps();if(!a||!_s(i,c,this.currentDirection))return;const d=this.getAxisMotionValue(i);let f=this.originPoint[i]+a[i];this.constraints&&this.constraints[i]&&(f=t1(f,this.constraints[i],this.elastic[i])),d.set(f)}resolveConstraints(){var i;const{dragConstraints:o,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,d=this.constraints;o&&lr(o)?this.constraints||(this.constraints=this.resolveRefConstraints()):o&&c?this.constraints=n1(c.layoutBox,o):this.constraints=!1,this.elastic=o1(a),d!==this.constraints&&c&&this.constraints&&!this.hasMutatedConstraints&&St(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=s1(c.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:o}=this.getProps();if(!i||!lr(i))return!1;const a=i.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const d=c1(a,c.root,this.visualElement.getTransformPagePoint());let f=r1(c.layout.layoutBox,d);if(o){const p=o(l1(f));this.hasMutatedConstraints=!!p,p&&(f=_p(p))}return f}startAnimation(i){const{drag:o,dragMomentum:a,dragElastic:c,dragTransition:d,dragSnapToOrigin:f,onDragTransitionEnd:p}=this.getProps(),m=this.constraints||{},g=St(v=>{if(!_s(v,o,this.currentDirection))return;let w=m&&m[v]||{};f&&(w={min:0,max:0});const T=c?200:1e6,D=c?40:1e7,j={type:"inertia",velocity:a?i[v]:0,bounceStiffness:T,bounceDamping:D,timeConstant:750,restDelta:1,restSpeed:10,...d,...w};return this.startAxisValueAnimation(v,j)});return Promise.all(g).then(p)}startAxisValueAnimation(i,o){const a=this.getAxisMotionValue(i);return ca(this.visualElement,i),a.start(nu(i,a,0,o,this.visualElement,!1))}stopAnimation(){St(i=>this.getAxisMotionValue(i).stop())}pauseAnimation(){St(i=>{var o;return(o=this.getAxisMotionValue(i).animation)===null||o===void 0?void 0:o.pause()})}getAnimationState(i){var o;return(o=this.getAxisMotionValue(i).animation)===null||o===void 0?void 0:o.state}getAxisMotionValue(i){const o=`_drag${i.toUpperCase()}`,a=this.visualElement.getProps(),c=a[o];return c||this.visualElement.getValue(i,(a.initial?a.initial[i]:void 0)||0)}snapToCursor(i){St(o=>{const{drag:a}=this.getProps();if(!_s(o,a,this.currentDirection))return;const{projection:c}=this.visualElement,d=this.getAxisMotionValue(o);if(c&&c.layout){const{min:f,max:p}=c.layout.layoutBox[o];d.set(i[o]-Ee(f,p,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:o}=this.getProps(),{projection:a}=this.visualElement;if(!lr(o)||!a||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};St(f=>{const p=this.getAxisMotionValue(f);if(p&&this.constraints!==!1){const m=p.get();c[f]=i1({min:m,max:m},this.constraints[f])}});const{transformTemplate:d}=this.visualElement.getProps();this.visualElement.current.style.transform=d?d({},""):"none",a.root&&a.root.updateScroll(),a.updateLayout(),this.resolveConstraints(),St(f=>{if(!_s(f,i,null))return;const p=this.getAxisMotionValue(f),{min:m,max:g}=this.constraints[f];p.set(Ee(m,g,c[f]))})}addListeners(){if(!this.visualElement.current)return;f1.set(this.visualElement,this);const i=this.visualElement.current,o=ui(i,"pointerdown",m=>{const{drag:g,dragListener:v=!0}=this.getProps();g&&v&&this.start(m)}),a=()=>{const{dragConstraints:m}=this.getProps();lr(m)&&m.current&&(this.constraints=this.resolveRefConstraints())},{projection:c}=this.visualElement,d=c.addEventListener("measure",a);c&&!c.layout&&(c.root&&c.root.updateScroll(),c.updateLayout()),xe.read(a);const f=gi(window,"resize",()=>this.scalePositionWithinConstraints()),p=c.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:g})=>{this.isDragging&&g&&(St(v=>{const w=this.getAxisMotionValue(v);w&&(this.originPoint[v]+=m[v].translate,w.set(w.get()+m[v].translate))}),this.visualElement.render())}));return()=>{f(),o(),d(),p&&p()}}getProps(){const i=this.visualElement.getProps(),{drag:o=!1,dragDirectionLock:a=!1,dragPropagation:c=!1,dragConstraints:d=!1,dragElastic:f=Sa,dragMomentum:p=!0}=i;return{...i,drag:o,dragDirectionLock:a,dragPropagation:c,dragConstraints:d,dragElastic:f,dragMomentum:p}}}function _s(r,i,o){return(i===!0||i===r)&&(o===null||o===r)}function h1(r,i=10){let o=null;return Math.abs(r.y)>i?o="y":Math.abs(r.x)>i&&(o="x"),o}class p1 extends gn{constructor(i){super(i),this.removeGroupControls=ft,this.removeListeners=ft,this.controls=new d1(i)}mount(){const{dragControls:i}=this.node.getProps();i&&(this.removeGroupControls=i.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ft}unmount(){this.removeGroupControls(),this.removeListeners()}}const Gd=r=>(i,o)=>{r&&xe.postRender(()=>r(i,o))};class m1 extends gn{constructor(){super(...arguments),this.removePointerDownListener=ft}onPointerDown(i){this.session=new Rp(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ip(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:o,onPan:a,onPanEnd:c}=this.node.getProps();return{onSessionStart:Gd(i),onStart:Gd(o),onMove:a,onEnd:(d,f)=>{delete this.session,c&&xe.postRender(()=>c(d,f))}}}mount(){this.removePointerDownListener=ui(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 Os={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Qd(r,i){return i.max===i.min?0:r/(i.max-i.min)*100}const ri={correct:(r,i)=>{if(!i.target)return r;if(typeof r=="string")if(te.test(r))r=parseFloat(r);else return r;const o=Qd(r,i.target.x),a=Qd(r,i.target.y);return`${o}% ${a}%`}},g1={correct:(r,{treeScale:i,projectionDelta:o})=>{const a=r,c=mn.parse(r);if(c.length>5)return a;const d=mn.createTransformer(r),f=typeof c[0]!="number"?1:0,p=o.x.scale*i.x,m=o.y.scale*i.y;c[0+f]/=p,c[1+f]/=m;const g=Ee(p,m,.5);return typeof c[2+f]=="number"&&(c[2+f]/=g),typeof c[3+f]=="number"&&(c[3+f]/=g),d(c)}};class y1 extends q.Component{componentDidMount(){const{visualElement:i,layoutGroup:o,switchLayoutGroup:a,layoutId:c}=this.props,{projection:d}=i;Wy(v1),d&&(o.group&&o.group.add(d),a&&a.register&&c&&a.register(d),d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,onExitComplete:()=>this.safeToRemove()})),Os.hasEverUpdated=!0}getSnapshotBeforeUpdate(i){const{layoutDependency:o,visualElement:a,drag:c,isPresent:d}=this.props,f=a.projection;return f&&(f.isPresent=d,c||i.layoutDependency!==o||o===void 0?f.willUpdate():this.safeToRemove(),i.isPresent!==d&&(d?f.promote():f.relegate()||xe.postRender(()=>{const p=f.getStack();(!p||!p.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:i}=this.props.visualElement;i&&(i.root.didUpdate(),La.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:o,switchLayoutGroup:a}=this.props,{projection:c}=i;c&&(c.scheduleCheckAfterUnmount(),o&&o.group&&o.group.remove(c),a&&a.deregister&&a.deregister(c))}safeToRemove(){const{safeToRemove:i}=this.props;i&&i()}render(){return null}}function zp(r){const[i,o]=iy(),a=q.useContext(kh);return A.jsx(y1,{...r,layoutGroup:a,switchLayoutGroup:q.useContext(Lh),isPresent:i,safeToRemove:o})}const v1={borderRadius:{...ri,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ri,borderTopRightRadius:ri,borderBottomLeftRadius:ri,borderBottomRightRadius:ri,boxShadow:g1};function w1(r,i,o){const a=qe(r)?r:pi(r);return a.start(nu("",a,i,o)),a.animation}function S1(r){return r instanceof SVGElement&&r.tagName!=="svg"}const x1=(r,i)=>r.depth-i.depth;class T1{constructor(){this.children=[],this.isDirty=!1}add(i){$a(this.children,i),this.isDirty=!0}remove(i){Wa(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(x1),this.isDirty=!1,this.children.forEach(i)}}function k1(r,i){const o=jt.now(),a=({timestamp:c})=>{const d=c-o;d>=i&&(pn(a),r(d-i))};return xe.read(a,!0),()=>pn(a)}const Bp=["TopLeft","TopRight","BottomLeft","BottomRight"],P1=Bp.length,Yd=r=>typeof r=="string"?parseFloat(r):r,Xd=r=>typeof r=="number"||te.test(r);function C1(r,i,o,a,c,d){c?(r.opacity=Ee(0,o.opacity!==void 0?o.opacity:1,E1(a)),r.opacityExit=Ee(i.opacity!==void 0?i.opacity:1,0,D1(a))):d&&(r.opacity=Ee(i.opacity!==void 0?i.opacity:1,o.opacity!==void 0?o.opacity:1,a));for(let f=0;f<P1;f++){const p=`border${Bp[f]}Radius`;let m=qd(i,p),g=qd(o,p);if(m===void 0&&g===void 0)continue;m||(m=0),g||(g=0),m===0||g===0||Xd(m)===Xd(g)?(r[p]=Math.max(Ee(Yd(m),Yd(g),a),0),(_t.test(g)||_t.test(m))&&(r[p]+="%")):r[p]=g}(i.rotate||o.rotate)&&(r.rotate=Ee(i.rotate||0,o.rotate||0,a))}function qd(r,i){return r[i]!==void 0?r[i]:r.borderRadius}const E1=Up(0,.5,rp),D1=Up(.5,.95,ft);function Up(r,i,o){return a=>a<r?0:a>i?1:o(hr(r,i,a))}function Zd(r,i){r.min=i.min,r.max=i.max}function wt(r,i){Zd(r.x,i.x),Zd(r.y,i.y)}function Jd(r,i){r.translate=i.translate,r.scale=i.scale,r.originPoint=i.originPoint,r.origin=i.origin}function bd(r,i,o,a,c){return r-=i,r=Hs(r,1/o,a),c!==void 0&&(r=Hs(r,1/c,a)),r}function A1(r,i=0,o=1,a=.5,c,d=r,f=r){if(_t.test(i)&&(i=parseFloat(i),i=Ee(f.min,f.max,i/100)-f.min),typeof i!="number")return;let p=Ee(d.min,d.max,a);r===d&&(p-=i),r.min=bd(r.min,i,o,p,c),r.max=bd(r.max,i,o,p,c)}function eh(r,i,[o,a,c],d,f){A1(r,i[o],i[a],i[c],i.scale,d,f)}const M1=["x","scaleX","originX"],R1=["y","scaleY","originY"];function th(r,i,o,a){eh(r.x,i,M1,o?o.x:void 0,a?a.x:void 0),eh(r.y,i,R1,o?o.y:void 0,a?a.y:void 0)}function nh(r){return r.translate===0&&r.scale===1}function $p(r){return nh(r.x)&&nh(r.y)}function rh(r,i){return r.min===i.min&&r.max===i.max}function L1(r,i){return rh(r.x,i.x)&&rh(r.y,i.y)}function ih(r,i){return Math.round(r.min)===Math.round(i.min)&&Math.round(r.max)===Math.round(i.max)}function Wp(r,i){return ih(r.x,i.x)&&ih(r.y,i.y)}function sh(r){return dt(r.x)/dt(r.y)}function oh(r,i){return r.translate===i.translate&&r.scale===i.scale&&r.originPoint===i.originPoint}class N1{constructor(){this.members=[]}add(i){$a(this.members,i),i.scheduleRender()}remove(i){if(Wa(this.members,i),i===this.prevLead&&(this.prevLead=void 0),i===this.lead){const o=this.members[this.members.length-1];o&&this.promote(o)}}relegate(i){const o=this.members.findIndex(c=>i===c);if(o===0)return!1;let a;for(let c=o;c>=0;c--){const d=this.members[c];if(d.isPresent!==!1){a=d;break}}return a?(this.promote(a),!0):!1}promote(i,o){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,o&&(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:o,resumingFrom:a}=i;o.onExitComplete&&o.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 V1(r,i,o){let a="";const c=r.x.translate/i.x,d=r.y.translate/i.y,f=o?.z||0;if((c||d||f)&&(a=`translate3d(${c}px, ${d}px, ${f}px) `),(i.x!==1||i.y!==1)&&(a+=`scale(${1/i.x}, ${1/i.y}) `),o){const{transformPerspective:g,rotate:v,rotateX:w,rotateY:T,skewX:D,skewY:j}=o;g&&(a=`perspective(${g}px) ${a}`),v&&(a+=`rotate(${v}deg) `),w&&(a+=`rotateX(${w}deg) `),T&&(a+=`rotateY(${T}deg) `),D&&(a+=`skewX(${D}deg) `),j&&(a+=`skewY(${j}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 Nn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},si=typeof window<"u"&&window.MotionDebug!==void 0,ra=["","X","Y","Z"],_1={visibility:"hidden"},lh=1e3;let j1=0;function ia(r,i,o,a){const{latestValues:c}=i;c[r]&&(o[r]=c[r],i.setStaticValue(r,0),a&&(a[r]=0))}function Hp(r){if(r.hasCheckedOptimisedAppear=!0,r.root===r)return;const{visualElement:i}=r.options;if(!i)return;const o=Qh(i);if(window.MotionHasOptimisedAnimation(o,"transform")){const{layout:c,layoutId:d}=r.options;window.MotionCancelOptimisedAnimation(o,"transform",xe,!(c||d))}const{parent:a}=r;a&&!a.hasCheckedOptimisedAppear&&Hp(a)}function Kp({attachResizeListener:r,defaultParent:i,measureScroll:o,checkIsScrollRoot:a,resetTransform:c}){return class{constructor(f={},p=i?.()){this.id=j1++,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(I1),this.nodes.forEach(W1),this.nodes.forEach(H1),this.nodes.forEach(z1),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 T1)}addEventListener(f,p){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new Ha),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=S1(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 w;const T=()=>this.root.updateBlockedByResize=!1;r(f,()=>{this.root.updateBlockedByResize=!0,w&&w(),w=k1(T,250),Os.hasAnimatedSinceResize&&(Os.hasAnimatedSinceResize=!1,this.nodes.forEach(uh))})}m&&this.root.registerSharedNode(m,this),this.options.animate!==!1&&v&&(m||g)&&this.addEventListener("didUpdate",({delta:w,hasLayoutChanged:T,hasRelativeTargetChanged:D,layout:j})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const M=this.options.transition||v.getDefaultTransition()||X1,{onLayoutAnimationStart:V,onLayoutAnimationComplete:I}=v.getProps(),$=!this.targetLayout||!Wp(this.targetLayout,j)||D,K=!T&&D;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||K||T&&($||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(w,K);const ne={...Ua(M,"layout"),onPlay:V,onComplete:I};(v.shouldReduceMotion||this.options.layoutRoot)&&(ne.delay=0,ne.type=!1),this.startAnimation(ne)}else T||uh(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=j})}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,pn(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(K1),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&&Hp(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const w=this.path[v];w.shouldResetTransform=!0,w.updateScroll("snapshot"),w.options.layoutRoot&&w.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(ah);return}this.isUpdating||this.nodes.forEach(U1),this.isUpdating=!1,this.nodes.forEach($1),this.nodes.forEach(F1),this.nodes.forEach(O1),this.clearAllSnapshots();const p=jt.now();We.delta=Gt(0,1e3/60,p-We.timestamp),We.timestamp=p,We.isProcessing=!0,Xl.update.process(We),Xl.preRender.process(We),Xl.render.process(We),We.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,La.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(B1),this.sharedNodes.forEach(G1)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,xe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){xe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let m=0;m<this.path.length;m++)this.path[m].updateScroll();const f=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ne(),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:o(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&&!$p(this.projectionDelta),m=this.getTransformTemplate(),g=m?m(this.latestValues,""):void 0,v=g!==this.prevTransformTemplateValue;f&&(p||Ln(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)),q1(m),{animationId:this.root.animationId,measuredBox:p,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){var f;const{visualElement:p}=this.options;if(!p)return Ne();const m=p.measureViewportBox();if(!(((f=this.scroll)===null||f===void 0?void 0:f.wasRoot)||this.path.some(Z1))){const{scroll:v}=this.root;v&&(cr(m.x,v.offset.x),cr(m.y,v.offset.y))}return m}removeElementScroll(f){var p;const m=Ne();if(wt(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:w,options:T}=v;v!==this.root&&w&&T.layoutScroll&&(w.wasRoot&&wt(m,f),cr(m.x,w.offset.x),cr(m.y,w.offset.y))}return m}applyTransform(f,p=!1){const m=Ne();wt(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&&fr(m,{x:-v.scroll.offset.x,y:-v.scroll.offset.y}),Ln(v.latestValues)&&fr(m,v.latestValues)}return Ln(this.latestValues)&&fr(m,this.latestValues),m}removeTransform(f){const p=Ne();wt(p,f);for(let m=0;m<this.path.length;m++){const g=this.path[m];if(!g.instance||!Ln(g.latestValues))continue;xa(g.latestValues)&&g.updateSnapshot();const v=Ne(),w=g.measurePageBox();wt(v,w),th(p,g.latestValues,g.snapshot?g.snapshot.layoutBox:void 0,v)}return Ln(this.latestValues)&&th(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!==We.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:w,layoutId:T}=this.options;if(!(!this.layout||!(w||T))){if(this.resolvedRelativeTargetAt=We.timestamp,!this.targetDelta&&!this.relativeTarget){const D=this.getClosestProjectingParent();D&&D.layout&&this.animationProgress!==1?(this.relativeParent=D,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ne(),this.relativeTargetOrigin=Ne(),fi(this.relativeTargetOrigin,this.layout.layoutBox,D.layout.layoutBox),wt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Ne(),this.targetWithTransforms=Ne()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),e1(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):wt(this.target,this.layout.layoutBox),Fp(this.target,this.targetDelta)):wt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const D=this.getClosestProjectingParent();D&&!!D.resumingFrom==!!this.resumingFrom&&!D.options.layoutScroll&&D.target&&this.animationProgress!==1?(this.relativeParent=D,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ne(),this.relativeTargetOrigin=Ne(),fi(this.relativeTargetOrigin,this.target,D.target),wt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}si&&Nn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||xa(this.parent.latestValues)||jp(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===We.timestamp&&(g=!1),g)return;const{layout:v,layoutId:w}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(v||w))return;wt(this.layoutCorrected,this.layout.layoutBox);const T=this.treeScale.x,D=this.treeScale.y;u1(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=Ne());const{target:j}=p;if(!j){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Jd(this.prevProjectionDelta.x,this.projectionDelta.x),Jd(this.prevProjectionDelta.y,this.projectionDelta.y)),ci(this.projectionDelta,this.layoutCorrected,j,this.latestValues),(this.treeScale.x!==T||this.treeScale.y!==D||!oh(this.projectionDelta.x,this.prevProjectionDelta.x)||!oh(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",j)),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=ur(),this.projectionDelta=ur(),this.projectionDeltaWithTransform=ur()}setAnimationOrigin(f,p=!1){const m=this.snapshot,g=m?m.latestValues:{},v={...this.latestValues},w=ur();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!p;const T=Ne(),D=m?m.source:void 0,j=this.layout?this.layout.source:void 0,M=D!==j,V=this.getStack(),I=!V||V.members.length<=1,$=!!(M&&!I&&this.options.crossfade===!0&&!this.path.some(Y1));this.animationProgress=0;let K;this.mixTargetDelta=ne=>{const X=ne/1e3;ch(w.x,f.x,X),ch(w.y,f.y,X),this.setTargetDelta(w),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(fi(T,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Q1(this.relativeTarget,this.relativeTargetOrigin,T,X),K&&L1(this.relativeTarget,K)&&(this.isProjectionDirty=!1),K||(K=Ne()),wt(K,this.relativeTarget)),M&&(this.animationValues=v,C1(v,g,this.latestValues,X,$,I)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=X},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&&(pn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=xe.update(()=>{Os.hasAnimatedSinceResize=!0,this.currentAnimation=w1(0,lh,{...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(lh),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&&Gp(this.options.animationType,this.layout.layoutBox,g.layoutBox)){m=this.target||Ne();const w=dt(this.layout.layoutBox.x);m.x.min=f.target.x.min,m.x.max=m.x.min+w;const T=dt(this.layout.layoutBox.y);m.y.min=f.target.y.min,m.y.max=m.y.min+T}wt(p,m),fr(p,v),ci(this.projectionDeltaWithTransform,this.layoutCorrected,p,v)}}registerSharedNode(f,p){this.sharedNodes.has(f)||this.sharedNodes.set(f,new N1),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&&ia("z",f,g,this.animationValues);for(let v=0;v<ra.length;v++)ia(`rotate${ra[v]}`,f,g,this.animationValues),ia(`skew${ra[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 _1;const g={visibility:""},v=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,g.opacity="",g.pointerEvents=js(f?.pointerEvents)||"",g.transform=v?v(this.latestValues,""):"none",g;const w=this.getLead();if(!this.projectionDelta||!this.layout||!w.target){const M={};return this.options.layoutId&&(M.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,M.pointerEvents=js(f?.pointerEvents)||""),this.hasProjected&&!Ln(this.latestValues)&&(M.transform=v?v({},""):"none",this.hasProjected=!1),M}const T=w.animationValues||w.latestValues;this.applyTransformsToTarget(),g.transform=V1(this.projectionDeltaWithTransform,this.treeScale,T),v&&(g.transform=v(T,g.transform));const{x:D,y:j}=this.projectionDelta;g.transformOrigin=`${D.origin*100}% ${j.origin*100}% 0`,w.animationValues?g.opacity=w===this?(m=(p=T.opacity)!==null&&p!==void 0?p:this.latestValues.opacity)!==null&&m!==void 0?m:1:this.preserveOpacity?this.latestValues.opacity:T.opacityExit:g.opacity=w===this?T.opacity!==void 0?T.opacity:"":T.opacityExit!==void 0?T.opacityExit:0;for(const M in zs){if(T[M]===void 0)continue;const{correct:V,applyTo:I}=zs[M],$=g.transform==="none"?T[M]:V(T[M],w);if(I){const K=I.length;for(let ne=0;ne<K;ne++)g[I[ne]]=$}else g[M]=$}return this.options.layoutId&&(g.pointerEvents=w===this?js(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(ah),this.root.sharedNodes.clear()}}}function F1(r){r.updateLayout()}function O1(r){var i;const o=((i=r.resumeFrom)===null||i===void 0?void 0:i.snapshot)||r.snapshot;if(r.isLead()&&r.layout&&o&&r.hasListeners("didUpdate")){const{layoutBox:a,measuredBox:c}=r.layout,{animationType:d}=r.options,f=o.source!==r.layout.source;d==="size"?St(w=>{const T=f?o.measuredBox[w]:o.layoutBox[w],D=dt(T);T.min=a[w].min,T.max=T.min+D}):Gp(d,o.layoutBox,a)&&St(w=>{const T=f?o.measuredBox[w]:o.layoutBox[w],D=dt(a[w]);T.max=T.min+D,r.relativeTarget&&!r.currentAnimation&&(r.isProjectionDirty=!0,r.relativeTarget[w].max=r.relativeTarget[w].min+D)});const p=ur();ci(p,a,o.layoutBox);const m=ur();f?ci(m,r.applyTransform(c,!0),o.measuredBox):ci(m,a,o.layoutBox);const g=!$p(p);let v=!1;if(!r.resumeFrom){const w=r.getClosestProjectingParent();if(w&&!w.resumeFrom){const{snapshot:T,layout:D}=w;if(T&&D){const j=Ne();fi(j,o.layoutBox,T.layoutBox);const M=Ne();fi(M,a,D.layoutBox),Wp(j,M)||(v=!0),w.options.layoutRoot&&(r.relativeTarget=M,r.relativeTargetOrigin=j,r.relativeParent=w)}}}r.notifyListeners("didUpdate",{layout:a,snapshot:o,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 I1(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 z1(r){r.isProjectionDirty=r.isSharedProjectionDirty=r.isTransformDirty=!1}function B1(r){r.clearSnapshot()}function ah(r){r.clearMeasurements()}function U1(r){r.isLayoutDirty=!1}function $1(r){const{visualElement:i}=r.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),r.resetTransform()}function uh(r){r.finishAnimation(),r.targetDelta=r.relativeTarget=r.target=void 0,r.isProjectionDirty=!0}function W1(r){r.resolveTargetDelta()}function H1(r){r.calcProjection()}function K1(r){r.resetSkewAndRotation()}function G1(r){r.removeLeadSnapshot()}function ch(r,i,o){r.translate=Ee(i.translate,0,o),r.scale=Ee(i.scale,1,o),r.origin=i.origin,r.originPoint=i.originPoint}function fh(r,i,o,a){r.min=Ee(i.min,o.min,a),r.max=Ee(i.max,o.max,a)}function Q1(r,i,o,a){fh(r.x,i.x,o.x,a),fh(r.y,i.y,o.y,a)}function Y1(r){return r.animationValues&&r.animationValues.opacityExit!==void 0}const X1={duration:.45,ease:[.4,0,.1,1]},dh=r=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(r),hh=dh("applewebkit/")&&!dh("chrome/")?Math.round:ft;function ph(r){r.min=hh(r.min),r.max=hh(r.max)}function q1(r){ph(r.x),ph(r.y)}function Gp(r,i,o){return r==="position"||r==="preserve-aspect"&&!b0(sh(i),sh(o),.2)}function Z1(r){var i;return r!==r.root&&((i=r.scroll)===null||i===void 0?void 0:i.wasRoot)}const J1=Kp({attachResizeListener:(r,i)=>gi(r,"resize",i),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),sa={current:void 0},Qp=Kp({measureScroll:r=>({x:r.scrollLeft,y:r.scrollTop}),defaultParent:()=>{if(!sa.current){const r=new J1({});r.mount(window),r.setOptions({layoutScroll:!0}),sa.current=r}return sa.current},resetTransform:(r,i)=>{r.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:r=>window.getComputedStyle(r).position==="fixed"}),b1={pan:{Feature:m1},drag:{Feature:p1,ProjectionNode:Qp,MeasureLayout:zp}};function ew(r,i,o){var a;if(r instanceof Element)return[r];if(typeof r=="string"){let c=document;const d=(a=void 0)!==null&&a!==void 0?a:c.querySelectorAll(r);return d?Array.from(d):[]}return Array.from(r)}function Yp(r,i){const o=ew(r),a=new AbortController,c={passive:!0,...i,signal:a.signal};return[o,c,()=>a.abort()]}function mh(r){return i=>{i.pointerType==="touch"||Mp()||r(i)}}function tw(r,i,o={}){const[a,c,d]=Yp(r,o),f=mh(p=>{const{target:m}=p,g=i(p);if(typeof g!="function"||!m)return;const v=mh(w=>{g(w),m.removeEventListener("pointerleave",v)});m.addEventListener("pointerleave",v,c)});return a.forEach(p=>{p.addEventListener("pointerenter",f,c)}),d}function gh(r,i,o){const{props:a}=r;r.animationState&&a.whileHover&&r.animationState.setActive("whileHover",o==="Start");const c="onHover"+o,d=a[c];d&&xe.postRender(()=>d(i,Si(i)))}class nw extends gn{mount(){const{current:i}=this.node;i&&(this.unmount=tw(i,o=>(gh(this.node,o,"Start"),a=>gh(this.node,a,"End"))))}unmount(){}}class rw extends gn{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=wi(gi(this.node.current,"focus",()=>this.onFocus()),gi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Xp=(r,i)=>i?r===i?!0:Xp(r,i.parentElement):!1,iw=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function sw(r){return iw.has(r.tagName)||r.tabIndex!==-1}const oi=new WeakSet;function yh(r){return i=>{i.key==="Enter"&&r(i)}}function oa(r,i){r.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const ow=(r,i)=>{const o=r.currentTarget;if(!o)return;const a=yh(()=>{if(oi.has(o))return;oa(o,"down");const c=yh(()=>{oa(o,"up")}),d=()=>oa(o,"cancel");o.addEventListener("keyup",c,i),o.addEventListener("blur",d,i)});o.addEventListener("keydown",a,i),o.addEventListener("blur",()=>o.removeEventListener("keydown",a),i)};function vh(r){return ru(r)&&!Mp()}function lw(r,i,o={}){const[a,c,d]=Yp(r,o),f=p=>{const m=p.currentTarget;if(!vh(p)||oi.has(m))return;oi.add(m);const g=i(p),v=(D,j)=>{window.removeEventListener("pointerup",w),window.removeEventListener("pointercancel",T),!(!vh(D)||!oi.has(m))&&(oi.delete(m),typeof g=="function"&&g(D,{success:j}))},w=D=>{v(D,o.useGlobalTarget||Xp(m,D.target))},T=D=>{v(D,!1)};window.addEventListener("pointerup",w,c),window.addEventListener("pointercancel",T,c)};return a.forEach(p=>{!sw(p)&&p.getAttribute("tabindex")===null&&(p.tabIndex=0),(o.useGlobalTarget?window:p).addEventListener("pointerdown",f,c),p.addEventListener("focus",g=>ow(g,c),c)}),d}function wh(r,i,o){const{props:a}=r;r.animationState&&a.whileTap&&r.animationState.setActive("whileTap",o==="Start");const c="onTap"+(o==="End"?"":o),d=a[c];d&&xe.postRender(()=>d(i,Si(i)))}class aw extends gn{mount(){const{current:i}=this.node;i&&(this.unmount=lw(i,o=>(wh(this.node,o,"Start"),(a,{success:c})=>wh(this.node,a,c?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ka=new WeakMap,la=new WeakMap,uw=r=>{const i=ka.get(r.target);i&&i(r)},cw=r=>{r.forEach(uw)};function fw({root:r,...i}){const o=r||document;la.has(o)||la.set(o,{});const a=la.get(o),c=JSON.stringify(i);return a[c]||(a[c]=new IntersectionObserver(cw,{root:r,...i})),a[c]}function dw(r,i,o){const a=fw(i);return ka.set(r,o),a.observe(r),()=>{ka.delete(r),a.unobserve(r)}}const hw={some:0,all:1};class pw extends gn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:i={}}=this.node.getProps(),{root:o,margin:a,amount:c="some",once:d}=i,f={root:o?o.current:void 0,rootMargin:a,threshold:typeof c=="number"?c:hw[c]},p=m=>{const{isIntersecting:g}=m;if(this.isInView===g||(this.isInView=g,d&&!g&&this.hasEnteredView))return;g&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",g);const{onViewportEnter:v,onViewportLeave:w}=this.node.getProps(),T=g?v:w;T&&T(m)};return dw(this.node.current,f,p)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:i,prevProps:o}=this.node;["amount","margin","root"].some(mw(i,o))&&this.startObserver()}unmount(){}}function mw({viewport:r={}},{viewport:i={}}={}){return o=>r[o]!==i[o]}const gw={inView:{Feature:pw},tap:{Feature:aw},focus:{Feature:rw},hover:{Feature:nw}},yw={layout:{ProjectionNode:Qp,MeasureLayout:zp}},Pa={current:null},qp={current:!1};function vw(){if(qp.current=!0,!!Da)if(window.matchMedia){const r=window.matchMedia("(prefers-reduced-motion)"),i=()=>Pa.current=r.matches;r.addListener(i),i()}else Pa.current=!1}const ww=[...yp,Xe,mn],Sw=r=>ww.find(gp(r)),Sh=new WeakMap;function xw(r,i,o){for(const a in i){const c=i[a],d=o[a];if(qe(c))r.addValue(a,c);else if(qe(d))r.addValue(a,pi(c,{owner:r}));else if(d!==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,pi(f!==void 0?f:c,{owner:r}))}}for(const a in o)i[a]===void 0&&r.removeValue(a);return i}const xh=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Tw{scrapeMotionValuesFromProps(i,o,a){return{}}constructor({parent:i,props:o,presenceContext:a,reducedMotionConfig:c,blockInitialAnimation:d,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=ba,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 D=jt.now();this.renderScheduledAt<D&&(this.renderScheduledAt=D,xe.render(this.render,!1,!0))};const{latestValues:m,renderState:g,onUpdate:v}=f;this.onUpdate=v,this.latestValues=m,this.baseTarget={...m},this.initialValues=o.initial?{...m}:{},this.renderState=g,this.parent=i,this.props=o,this.presenceContext=a,this.depth=i?i.depth+1:0,this.reducedMotionConfig=c,this.options=p,this.blockInitialAnimation=!!d,this.isControllingVariants=Qs(o),this.isVariantNode=Mh(o),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(i&&i.current);const{willChange:w,...T}=this.scrapeMotionValuesFromProps(o,{},this);for(const D in T){const j=T[D];m[D]!==void 0&&qe(j)&&j.set(m[D],!1)}}mount(i){this.current=i,Sh.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((o,a)=>this.bindToMotionValue(a,o)),qp.current||vw(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Pa.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Sh.delete(this.current),this.projection&&this.projection.unmount(),pn(this.notifyUpdate),pn(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 o=this.features[i];o&&(o.unmount(),o.isMounted=!1)}this.current=null}bindToMotionValue(i,o){this.valueSubscriptions.has(i)&&this.valueSubscriptions.get(i)();const a=jn.has(i),c=o.on("change",p=>{this.latestValues[i]=p,this.props.onUpdate&&xe.preRender(this.notifyUpdate),a&&this.projection&&(this.projection.isTransformDirty=!0)}),d=o.on("renderRequest",this.scheduleRender);let f;window.MotionCheckAppearSync&&(f=window.MotionCheckAppearSync(this,i,o)),this.valueSubscriptions.set(i,()=>{c(),d(),f&&f(),o.owner&&o.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 dr){const o=dr[i];if(!o)continue;const{isEnabled:a,Feature:c}=o;if(!this.features[i]&&c&&a(this.props)&&(this.features[i]=new c(this)),this.features[i]){const d=this.features[i];d.isMounted?d.update():(d.mount(),d.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ne()}getStaticValue(i){return this.latestValues[i]}setStaticValue(i,o){this.latestValues[i]=o}update(i,o){(i.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=i,this.prevPresenceContext=this.presenceContext,this.presenceContext=o;for(let a=0;a<xh.length;a++){const c=xh[a];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const d="on"+c,f=i[d];f&&(this.propEventSubscriptions[c]=this.on(c,f))}this.prevMotionValues=xw(this,this.scrapeMotionValuesFromProps(i,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(i){return this.props.variants?this.props.variants[i]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(i){const o=this.getClosestVariantNode();if(o)return o.variantChildren&&o.variantChildren.add(i),()=>o.variantChildren.delete(i)}addValue(i,o){const a=this.values.get(i);o!==a&&(a&&this.removeValue(i),this.bindToMotionValue(i,o),this.values.set(i,o),this.latestValues[i]=o.get())}removeValue(i){this.values.delete(i);const o=this.valueSubscriptions.get(i);o&&(o(),this.valueSubscriptions.delete(i)),delete this.latestValues[i],this.removeValueFromRenderState(i,this.renderState)}hasValue(i){return this.values.has(i)}getValue(i,o){if(this.props.values&&this.props.values[i])return this.props.values[i];let a=this.values.get(i);return a===void 0&&o!==void 0&&(a=pi(o===null?void 0:o,{owner:this}),this.addValue(i,a)),a}readValue(i,o){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"&&(pp(c)||sp(c))?c=parseFloat(c):!Sw(c)&&mn.test(o)&&(c=fp(i,o)),this.setBaseTarget(i,qe(c)?c.get():c)),qe(c)?c.get():c}setBaseTarget(i,o){this.baseTarget[i]=o}getBaseTarget(i){var o;const{initial:a}=this.props;let c;if(typeof a=="string"||typeof a=="object"){const f=Va(this.props,a,(o=this.presenceContext)===null||o===void 0?void 0:o.custom);f&&(c=f[i])}if(a&&c!==void 0)return c;const d=this.getBaseTargetFromProps(this.props,i);return d!==void 0&&!qe(d)?d:this.initialValues[i]!==void 0&&c===void 0?void 0:this.baseTarget[i]}on(i,o){return this.events[i]||(this.events[i]=new Ha),this.events[i].add(o)}notify(i,...o){this.events[i]&&this.events[i].notify(...o)}}class Zp extends Tw{constructor(){super(...arguments),this.KeyframeResolver=vp}sortInstanceNodePosition(i,o){return i.compareDocumentPosition(o)&2?1:-1}getBaseTargetFromProps(i,o){return i.style?i.style[o]:void 0}removeValueFromRenderState(i,{vars:o,style:a}){delete o[i],delete a[i]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:i}=this.props;qe(i)&&(this.childSubscription=i.on("change",o=>{this.current&&(this.current.textContent=`${o}`)}))}}function kw(r){return window.getComputedStyle(r)}class Pw extends Zp{constructor(){super(...arguments),this.type="html",this.renderInstance=Ih}readValueFromInstance(i,o){if(jn.has(o)){const a=Ja(o);return a&&a.default||0}else{const a=kw(i),c=(jh(o)?a.getPropertyValue(o):a[o])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(i,{transformPagePoint:o}){return Op(i,o)}build(i,o,a){Fa(i,o,a.transformTemplate)}scrapeMotionValuesFromProps(i,o,a){return Ba(i,o,a)}}class Cw extends Zp{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ne}getBaseTargetFromProps(i,o){return i[o]}readValueFromInstance(i,o){if(jn.has(o)){const a=Ja(o);return a&&a.default||0}return o=zh.has(o)?o:Ra(o),i.getAttribute(o)}scrapeMotionValuesFromProps(i,o,a){return $h(i,o,a)}build(i,o,a){Oa(i,o,this.isSVGTag,a.transformTemplate)}renderInstance(i,o,a,c){Bh(i,o,a,c)}mount(i){this.isSVGTag=za(i.tagName),super.mount(i)}}const Ew=(r,i)=>Na(r)?new Cw(i):new Pw(i,{allowProjection:r!==q.Fragment}),Dw=Jy({...W0,...gw,...b1,...yw},Ew),Aw=hy(Dw),li=[["Hindi","नमस्ते, आप कैसे हैं?"],["Bengali","নমস্কার, আপনি কেমন আছেন?"],["Marathi","नमस्कार, तुम्ही कसे आहात?"],["Telugu","నమస్కారం, మీరు ఎలా ఉన్నారు?"],["Kannada","ನಮಸ್ಕಾರ, ನೀವು ಹೇಗಿದ್ದೀರಿ?"],["Tamil","வணக்கம், நீங்கள் எப்படி இருக்கிறீர்கள்?"],["Malayalam","നമസ്കാരം, സുഖമാണോ?"],["Gujarati","નમસ્તે, તમે કેમ છો?"],["Punjabi","ਸਤ ਸ੍ਰੀ ਅਕਾਲ, ਤੁਸੀਂ ਕਿਵੇਂ ਹੋ?"],["Assamese","নমস্কাৰ, আপুনি কেনে আছে?"],["Bhojpuri","नमस्कार, राउर का हाल बा?"],["Magahi","नमस्कार, तू कैसन हे?"],["Maithili","नमस्कार, अहाँ कोना छी?"],["Chhattisgarhi","नमस्कार, आप कइसन हन?"],["Bodo","नमस्कार, नोँ बेसेबा डंनो?"],["Dogri","नमस्ते, तुसें कि’यां ओ?"],["Nepali","नमस्ते, तपाईं कस्तो हुनुहुन्छ?"],["Sanskrit","नमस्कारः, भवान् कथमस्ति?"],["English (Indian)","Hello, how are you?"]],Mw={Hindi:{script:"Devanagari",region:"North India"},Bengali:{script:"Bengali",region:"Eastern India"},Marathi:{script:"Devanagari",region:"Maharashtra"},Telugu:{script:"Telugu",region:"Andhra Pradesh + Telangana"},Kannada:{script:"Kannada",region:"Karnataka"},Tamil:{script:"Tamil",region:"Tamil Nadu"},Malayalam:{script:"Malayalam",region:"Kerala"},Gujarati:{script:"Gujarati",region:"Gujarat"},Punjabi:{script:"Gurmukhi",region:"Punjab"},Assamese:{script:"Assamese",region:"Assam"},Bhojpuri:{script:"Devanagari",region:"Bihar + Eastern UP"},Magahi:{script:"Devanagari",region:"Bihar"},Maithili:{script:"Devanagari",region:"Mithila"},Chhattisgarhi:{script:"Devanagari",region:"Chhattisgarh"},Bodo:{script:"Devanagari",region:"Northeast India"},Dogri:{script:"Devanagari",region:"Jammu"},Nepali:{script:"Devanagari",region:"Nepal + India"},Sanskrit:{script:"Devanagari",region:"Classical Indic"},"English (Indian)":{script:"Latin",region:"Indian English"}},Rw=li.flatMap(([r])=>[`${r} (Female)`,`${r} (Male)`]),aa=[{value:"q4f16",label:"q4f16",note:"~1.95 GB · fastest cold start"},{value:"q8",label:"q8",note:"~4.32 GB · cleaner, slower preload"}],Lw=[{label:"Model",value:"Svāra-TTS v1"},{label:"Codec",value:"SNAC 24 kHz"},{label:"Runtime",value:"WebGPU + Transformers.js"}];function Th(r,i){return`${r.replace(/\s*<[^>]+>\s*$/u,"").trim()} ${i}`}function Nw(){const r=q.useRef(null),i=q.useRef(!1),o=q.useRef([]),[a,c]=q.useState("Hindi (Female)"),[d,f]=q.useState(li[0][1]),[p,m]=q.useState("q4f16"),[g,v]=q.useState(null),[w,T]=q.useState(null),[D,j]=q.useState(!1),[M,V]=q.useState(null),[I,$]=q.useState([]),[K,ne]=q.useState("Detecting WebGPU support..."),[X,ie]=q.useState([]),ue=a.split(" (")[0],J=a.includes("(Male)")?"Male":"Female",me=Mw[ue]??{script:"Indic",region:"South Asia"},ge=li.find(([F])=>F===ue)?.[1]??d,ve=aa.find(F=>F.value===p)??aa[0],Me=I.includes(p),Fe=g==="loading"&&M===ve.value,He=q.useMemo(()=>[{label:"Sample line",value:ge},{label:"Sample + <sad>",value:Th(ge,"<sad>")},{label:"Sample + <happy>",value:Th(ge,"<happy>")}],[ge]);q.useEffect(()=>{i.current=D},[D]),q.useEffect(()=>{o.current=I},[I]),q.useEffect(()=>{r.current??=new Worker(new URL("/assets/worker-CrcBdVZY.js",import.meta.url),{type:"module"});const F=Z=>{switch(Z.data.status){case"feature-success":i.current=!0,j(!0),T(null),v("idle"),ne("WebGPU is available. Load a model when you want to start local synthesis.");break;case"feature-error":T(Z.data.data);break;case"loading":T(null),o.current.includes(Z.data.dtype)?(V(null),v("running")):(V(Z.data.dtype),ne(Z.data.dtype==="q8"?"Loading q8 weights (~4.32 GB, sharded). First run can take a minute...":"Loading q4f16 weights (~1.95 GB). First run downloads once, then stays cached..."),v("loading"));break;case"ready":V(null),T(null),$(le=>{if(le.includes(Z.data.dtype))return le;const de=[...le,Z.data.dtype];return o.current=de,de}),v("ready");break;case"complete":ie(le=>[{text:Z.data.text,src:Z.data.audio,voice:Z.data.voice,dtype:Z.data.dtype,createdAt:new Date().toLocaleTimeString([],{hour:"numeric",minute:"2-digit"})},...le]),T(null),v("ready");break;case"error":V(null),T(Z.data.data),v(o.current.includes(Z.data.dtype)?"ready":i.current?"idle":null);break}};return r.current.addEventListener("message",F),r.current.addEventListener("error",Z=>console.error(Z)),()=>{r.current.removeEventListener("message",F)}},[]);const st=F=>{F.preventDefault(),Me&&(v("running"),T(null),r.current.postMessage({type:"generate",text:d.trim(),speaker_id:a,dtype:p}))},Be=()=>{!D||Me||(T(null),V(p),ne(p==="q8"?"Loading q8 weights (~4.32 GB, sharded). First run can take a minute...":"Loading q4f16 weights (~1.95 GB). First run downloads once, then stays cached..."),v("loading"),r.current?.postMessage({type:"preload",dtype:p}))},oe=F=>{const Z=li.find(([le])=>le===F)?.[1]??d;f(Z),c(`${F} (Female)`)},z=F=>{F!==p&&(m(F),T(null),V(null),v(o.current.includes(F)?"ready":"idle"))};let Q="Checking browser runtime",B=K;w?(Q=D?"Load issue":"Startup issue",B=w):g==="running"?(Q="Rendering speech locally",B=`Synthesizing with ${a} on ${ve.label}.`):g==="loading"?Q="Loading model weights":D&&!Me?(Q="Ready to load model",B=`${ve.label} is a one-time ${ve.note.split("·")[0].trim()} download. Tap Load model to cache it in this browser.`):Me&&(Q="Model ready in this browser",B=`${a} is ready on ${ve.label}. Everything runs locally after the one-time model download.`);const k=g==="running"?"Generating audio...":g==="loading"?"Loading in the background":null,R=!w&&(g==="loading"||g==="running"||g===null),se=Fe?`Loading ${ve.label}...`:`Load ${ve.label}`;return A.jsxs("div",{className:"app-shell",children:[A.jsx("div",{className:"ornament ornament-top","aria-hidden":"true",children:A.jsx("img",{src:"/warli-strip.svg",alt:""})}),A.jsxs("main",{className:"app-main",children:[A.jsxs("header",{className:"hero",children:[A.jsx("span",{className:"hero-kicker",children:"Svāra TTS · WebGPU"}),A.jsx("h1",{className:"hero-title",children:"Svāra"}),A.jsx("span",{className:"hero-subline",children:"स्वरा · Indic text-to-speech in the browser"}),A.jsx("p",{className:"hero-copy",children:"A warmer frontend for the same local synthesis engine: 19 languages, 38 voices, SNAC decoding, and no server round-trip once the model is cached in this browser."}),A.jsxs("div",{className:"hero-links",children:[A.jsx("a",{href:"https://huggingface.co/kenpath/svara-tts-v1",target:"_blank",rel:"noreferrer",children:"Base model"}),A.jsx("a",{href:"https://huggingface.co/shreyask/svara-tts-v1-ONNX",target:"_blank",rel:"noreferrer",children:"ONNX export"}),A.jsx("a",{href:"https://huggingface.co/onnx-community/snac_24khz-ONNX",target:"_blank",rel:"noreferrer",children:"SNAC codec"})]})]}),A.jsxs("section",{className:`card status-card ${R?"is-busy":""}`,children:[A.jsxs("div",{className:"status-main",children:[A.jsx("p",{className:"section-kicker",children:"Session"}),A.jsx("h2",{children:Q}),A.jsx("p",{className:`status-copy ${w?"is-error":""}`,children:B}),k&&!w&&A.jsxs("div",{className:"inline-loader","aria-hidden":"true",children:[A.jsx("span",{className:"inline-loader-dot"}),A.jsx("span",{className:"inline-loader-label",children:k})]}),D&&!Me&&g!=="loading"&&A.jsxs("div",{className:"model-gate",children:[A.jsxs("div",{children:[A.jsx("p",{className:"model-gate-copy",children:"Model load is explicit in this build."}),A.jsx("span",{className:"model-gate-sub",children:I.length>0?`Cached here: ${I.join(", ")}`:"Nothing cached in this browser session yet."})]}),A.jsx("button",{type:"button",className:"primary-button load-button",onClick:Be,disabled:!D||g==="running",children:se})]})]}),A.jsxs("div",{className:"pill-row",children:[A.jsx("span",{className:"pill",children:"19 languages"}),A.jsx("span",{className:"pill",children:"38 voices"}),A.jsx("span",{className:"pill",children:"24 kHz mono"}),A.jsx("span",{className:"pill",children:"Runs locally"})]})]}),A.jsxs("div",{className:"workspace",children:[A.jsxs("section",{className:"card composer-card",children:[A.jsxs("div",{className:"card-header",children:[A.jsxs("div",{children:[A.jsx("p",{className:"section-kicker",children:"Compose"}),A.jsx("h2",{children:"Switch language, adjust voice, synthesize"})]}),A.jsx("button",{type:"button",className:"ghost-button",onClick:()=>f(ge),children:"Use sample"})]}),A.jsxs("form",{onSubmit:st,className:"composer-form",children:[A.jsxs("div",{className:"control-grid",children:[A.jsxs("label",{className:"field",children:[A.jsx("span",{className:"field-label",children:"Language"}),A.jsx("select",{value:ue,onChange:F=>oe(F.target.value),children:li.map(([F])=>A.jsx("option",{value:F,children:F},F))})]}),A.jsxs("label",{className:"field",children:[A.jsx("span",{className:"field-label",children:"Voice"}),A.jsx("select",{value:a,onChange:F=>c(F.target.value),children:Rw.filter(F=>F.startsWith(`${ue} (`)).map(F=>A.jsx("option",{value:F,children:F.split("(")[1].replace(")","")},F))})]}),A.jsxs("label",{className:"field field-wide",children:[A.jsx("span",{className:"field-label",children:"Quantization"}),A.jsx("select",{value:p,onChange:F=>z(F.target.value),disabled:g==="running"||g==="loading",children:aa.map(F=>A.jsx("option",{value:F.value,children:F.label},F.value))}),A.jsx("small",{className:"field-note",children:ve.note})]})]}),A.jsxs("label",{className:"field",children:[A.jsxs("div",{className:"label-row",children:[A.jsx("span",{className:"field-label",children:"Prompt"}),A.jsxs("span",{className:"field-meta",children:[me.script," · ",me.region]})]}),A.jsx("textarea",{placeholder:"Enter text in any supported Indian language...",value:d,onChange:F=>f(F.target.value),rows:Math.min(8,Math.max(4,d.split(` | |
| `).length))})]}),A.jsx("div",{className:"chip-bar",children:He.map(F=>A.jsx("button",{type:"button",className:"utility-chip",onClick:()=>f(F.value),children:F.label},F.label))}),A.jsxs("div",{className:"composer-footer",children:[A.jsxs("p",{className:"helper-copy",children:["Emotion tags can be appended at the end of the sentence, for example ",A.jsx("code",{children:"<sad>"})," or ",A.jsx("code",{children:"<happy>"}),". Use ",A.jsx("code",{children:"q8"})," if you want the cleanest output and can afford the larger one-time download."]}),A.jsx("button",{type:"submit",className:"primary-button",disabled:g!=="ready"||!Me||d.trim()==="",children:g==="running"?"Generating audio...":Fe?`Loading ${ve.label}...`:Me?"Generate speech":"Load model to continue"})]})]})]}),A.jsx("aside",{className:"sidebar",children:A.jsxs("section",{className:"card inspector-card",children:[A.jsx("p",{className:"section-kicker",children:"Inspector"}),A.jsx("h3",{className:"inspector-title",children:a}),A.jsxs("dl",{className:"compact-meta-grid",children:[A.jsxs("div",{className:"compact-meta",children:[A.jsx("dt",{children:"Script"}),A.jsx("dd",{children:me.script})]}),A.jsxs("div",{className:"compact-meta",children:[A.jsx("dt",{children:"Region"}),A.jsx("dd",{children:me.region})]}),A.jsxs("div",{className:"compact-meta",children:[A.jsx("dt",{children:"Type"}),A.jsx("dd",{children:J})]}),A.jsxs("div",{className:"compact-meta",children:[A.jsx("dt",{children:"Quant"}),A.jsx("dd",{children:ve.label})]})]}),A.jsx("div",{className:"stack-chip-list",children:Lw.map(F=>A.jsxs("div",{className:"stack-chip",children:[A.jsx("span",{children:F.label}),A.jsx("strong",{children:F.value})]},F.label))}),A.jsxs("details",{className:"debug-notes",children:[A.jsx("summary",{children:"Usage notes"}),A.jsxs("ul",{className:"note-list note-list-compact",children:[A.jsx("li",{children:"Model and codec are browser-cached after the first load."}),A.jsx("li",{children:"Short prompts are the best way to compare voices and quant levels."}),A.jsx("li",{children:"The results archive below preserves each render with the actual voice used."})]})]})]})})]}),X.length>0&&A.jsxs("section",{className:"results-section",children:[A.jsxs("div",{className:"results-header",children:[A.jsxs("div",{children:[A.jsx("p",{className:"section-kicker",children:"Archive"}),A.jsx("h2",{children:"Generated takes"})]}),A.jsx("span",{className:"results-meta",children:"Newest first"})]}),A.jsx("div",{className:"results-grid",children:X.map((F,Z)=>A.jsxs(Aw.article,{initial:{y:24,opacity:0},animate:{y:0,opacity:1},transition:{duration:.35,delay:Z*.04},className:"card result-card",children:[A.jsxs("div",{className:"result-head",children:[A.jsxs("div",{children:[A.jsx("h3",{children:F.voice}),A.jsx("p",{children:F.createdAt})]}),A.jsx("span",{className:"result-pill",children:F.dtype})]}),A.jsx("p",{className:"result-text",children:F.text}),A.jsx("audio",{controls:!0,src:F.src,className:"result-audio",children:"Your browser does not support the audio element."})]},`${F.voice}-${F.createdAt}-${Z}`))})]})]}),A.jsx("div",{className:"ornament ornament-bottom","aria-hidden":"true",children:A.jsx("img",{src:"/warli-strip.svg",alt:""})})]})}ny.createRoot(document.getElementById("root")).render(A.jsx(q.StrictMode,{children:A.jsx(Nw,{})})); | |