133 lines
318 KiB
JavaScript
133 lines
318 KiB
JavaScript
(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))a(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&a(d)}).observe(document,{childList:!0,subtree:!0});function s(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function a(u){if(u.ep)return;u.ep=!0;const f=s(u);fetch(u.href,f)}})();function Jh(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var ll={exports:{}},pi={},ul={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 Af;function by(){if(Af)return ae;Af=1;var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.iterator;function w(P){return P===null||typeof P!="object"?null:(P=v&&P[v]||P["@@iterator"],typeof P=="function"?P:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,D={};function M(P,L,se){this.props=P,this.context=L,this.refs=D,this.updater=se||C}M.prototype.isReactComponent={},M.prototype.setState=function(P,L){if(typeof P!="object"&&typeof P!="function"&&P!=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,P,L,"setState")},M.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function I(){}I.prototype=M.prototype;function U(P,L,se){this.props=P,this.context=L,this.refs=D,this.updater=se||C}var B=U.prototype=new I;B.constructor=U,N(B,M.prototype),B.isPureReactComponent=!0;var b=Array.isArray,G=Object.prototype.hasOwnProperty,ie={current:null},oe={key:!0,ref:!0,__self:!0,__source:!0};function J(P,L,se){var le,de={},fe=null,xe=null;if(L!=null)for(le in L.ref!==void 0&&(xe=L.ref),L.key!==void 0&&(fe=""+L.key),L)G.call(L,le)&&!oe.hasOwnProperty(le)&&(de[le]=L[le]);var me=arguments.length-2;if(me===1)de.children=se;else if(1<me){for(var Pe=Array(me),ct=0;ct<me;ct++)Pe[ct]=arguments[ct+2];de.children=Pe}if(P&&P.defaultProps)for(le in me=P.defaultProps,me)de[le]===void 0&&(de[le]=me[le]);return{$$typeof:n,type:P,key:fe,ref:xe,props:de,_owner:ie.current}}function re(P,L){return{$$typeof:n,type:P.type,key:L,ref:P.ref,props:P.props,_owner:P._owner}}function q(P){return typeof P=="object"&&P!==null&&P.$$typeof===n}function ce(P){var L={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(se){return L[se]})}var ye=/\/+/g;function je(P,L){return typeof P=="object"&&P!==null&&P.key!=null?ce(""+P.key):L.toString(36)}function Le(P,L,se,le,de){var fe=typeof P;(fe==="undefined"||fe==="boolean")&&(P=null);var xe=!1;if(P===null)xe=!0;else switch(fe){case"string":case"number":xe=!0;break;case"object":switch(P.$$typeof){case n:case r:xe=!0}}if(xe)return xe=P,de=de(xe),P=le===""?"."+je(xe,0):le,b(de)?(se="",P!=null&&(se=P.replace(ye,"$&/")+"/"),Le(de,L,se,"",function(ct){return ct})):de!=null&&(q(de)&&(de=re(de,se+(!de.key||xe&&xe.key===de.key?"":(""+de.key).replace(ye,"$&/")+"/")+P)),L.push(de)),1;if(xe=0,le=le===""?".":le+":",b(P))for(var me=0;me<P.length;me++){fe=P[me];var Pe=le+je(fe,me);xe+=Le(fe,L,se,Pe,de)}else if(Pe=w(P),typeof Pe=="function")for(P=Pe.call(P),me=0;!(fe=P.next()).done;)fe=fe.value,Pe=le+je(fe,me++),xe+=Le(fe,L,se,Pe,de);else if(fe==="object")throw L=String(P),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.");return xe}function _e(P,L,se){if(P==null)return P;var le=[],de=0;return Le(P,le,"","",function(fe){return L.call(se,fe,de++)}),le}function Se(P){if(P._status===-1){var L=P._result;L=L(),L.then(function(se){(P._status===0||P._status===-1)&&(P._status=1,P._result=se)},function(se){(P._status===0||P._status===-1)&&(P._status=2,P._result=se)}),P._status===-1&&(P._status=0,P._result=L)}if(P._status===1)return P._result.default;throw P._result}var Ne={current:null},z={transition:null},X={ReactCurrentDispatcher:Ne,ReactCurrentBatchConfig:z,ReactCurrentOwner:ie};function W(){throw Error("act(...) is not supported in production builds of React.")}return ae.Children={map:_e,forEach:function(P,L,se){_e(P,function(){L.apply(this,arguments)},se)},count:function(P){var L=0;return _e(P,function(){L++}),L},toArray:function(P){return _e(P,function(L){return L})||[]},only:function(P){if(!q(P))throw Error("React.Children.only expected to receive a single React element child.");return P}},ae.Component=M,ae.Fragment=s,ae.Profiler=u,ae.PureComponent=U,ae.StrictMode=a,ae.Suspense=g,ae.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=X,ae.act=W,ae.cloneElement=function(P,L,se){if(P==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+P+".");var le=N({},P.props),de=P.key,fe=P.ref,xe=P._owner;if(L!=null){if(L.ref!==void 0&&(fe=L.ref,xe=ie.current),L.key!==void 0&&(de=""+L.key),P.type&&P.type.defaultProps)var me=P.type.defaultProps;for(Pe in L)G.call(L,Pe)&&!oe.hasOwnProperty(Pe)&&(le[Pe]=L[Pe]===void 0&&me!==void 0?me[Pe]:L[Pe])}var Pe=arguments.length-2;if(Pe===1)le.children=se;else if(1<Pe){me=Array(Pe);for(var ct=0;ct<Pe;ct++)me[ct]=arguments[ct+2];le.children=me}return{$$typeof:n,type:P.type,key:de,ref:fe,props:le,_owner:xe}},ae.createContext=function(P){return P={$$typeof:d,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},P.Provider={$$typeof:f,_context:P},P.Consumer=P},ae.createElement=J,ae.createFactory=function(P){var L=J.bind(null,P);return L.type=P,L},ae.createRef=function(){return{current:null}},ae.forwardRef=function(P){return{$$typeof:h,render:P}},ae.isValidElement=q,ae.lazy=function(P){return{$$typeof:y,_payload:{_status:-1,_result:P},_init:Se}},ae.memo=function(P,L){return{$$typeof:x,type:P,compare:L===void 0?null:L}},ae.startTransition=function(P){var L=z.transition;z.transition={};try{P()}finally{z.transition=L}},ae.unstable_act=W,ae.useCallback=function(P,L){return Ne.current.useCallback(P,L)},ae.useContext=function(P){return Ne.current.useContext(P)},ae.useDebugValue=function(){},ae.useDeferredValue=function(P){return Ne.current.useDeferredValue(P)},ae.useEffect=function(P,L){return Ne.current.useEffect(P,L)},ae.useId=function(){return Ne.current.useId()},ae.useImperativeHandle=function(P,L,se){return Ne.current.useImperativeHandle(P,L,se)},ae.useInsertionEffect=function(P,L){return Ne.current.useInsertionEffect(P,L)},ae.useLayoutEffect=function(P,L){return Ne.current.useLayoutEffect(P,L)},ae.useMemo=function(P,L){return Ne.current.useMemo(P,L)},ae.useReducer=function(P,L,se){return Ne.current.useReducer(P,L,se)},ae.useRef=function(P){return Ne.current.useRef(P)},ae.useState=function(P){return Ne.current.useState(P)},ae.useSyncExternalStore=function(P,L,se){return Ne.current.useSyncExternalStore(P,L,se)},ae.useTransition=function(){return Ne.current.useTransition()},ae.version="18.3.1",ae}var Ef;function tu(){return Ef||(Ef=1,ul.exports=by()),ul.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 jf;function Uy(){if(jf)return pi;jf=1;var n=tu(),r=Symbol.for("react.element"),s=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,u=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function d(h,g,x){var y,v={},w=null,C=null;x!==void 0&&(w=""+x),g.key!==void 0&&(w=""+g.key),g.ref!==void 0&&(C=g.ref);for(y in g)a.call(g,y)&&!f.hasOwnProperty(y)&&(v[y]=g[y]);if(h&&h.defaultProps)for(y in g=h.defaultProps,g)v[y]===void 0&&(v[y]=g[y]);return{$$typeof:r,type:h,key:w,ref:C,props:v,_owner:u.current}}return pi.Fragment=s,pi.jsx=d,pi.jsxs=d,pi}var Nf;function Wy(){return Nf||(Nf=1,ll.exports=Uy()),ll.exports}var m=Wy(),_=tu();const Hy=Jh(_);var Os={},cl={exports:{}},ut={},dl={exports:{}},fl={};/**
|
||
* @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 Mf;function Gy(){return Mf||(Mf=1,(function(n){function r(z,X){var W=z.length;z.push(X);e:for(;0<W;){var P=W-1>>>1,L=z[P];if(0<u(L,X))z[P]=X,z[W]=L,W=P;else break e}}function s(z){return z.length===0?null:z[0]}function a(z){if(z.length===0)return null;var X=z[0],W=z.pop();if(W!==X){z[0]=W;e:for(var P=0,L=z.length,se=L>>>1;P<se;){var le=2*(P+1)-1,de=z[le],fe=le+1,xe=z[fe];if(0>u(de,W))fe<L&&0>u(xe,de)?(z[P]=xe,z[fe]=W,P=fe):(z[P]=de,z[le]=W,P=le);else if(fe<L&&0>u(xe,W))z[P]=xe,z[fe]=W,P=fe;else break e}}return X}function u(z,X){var W=z.sortIndex-X.sortIndex;return W!==0?W:z.id-X.id}if(typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,h=d.now();n.unstable_now=function(){return d.now()-h}}var g=[],x=[],y=1,v=null,w=3,C=!1,N=!1,D=!1,M=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function B(z){for(var X=s(x);X!==null;){if(X.callback===null)a(x);else if(X.startTime<=z)a(x),X.sortIndex=X.expirationTime,r(g,X);else break;X=s(x)}}function b(z){if(D=!1,B(z),!N)if(s(g)!==null)N=!0,Se(G);else{var X=s(x);X!==null&&Ne(b,X.startTime-z)}}function G(z,X){N=!1,D&&(D=!1,I(J),J=-1),C=!0;var W=w;try{for(B(X),v=s(g);v!==null&&(!(v.expirationTime>X)||z&&!ce());){var P=v.callback;if(typeof P=="function"){v.callback=null,w=v.priorityLevel;var L=P(v.expirationTime<=X);X=n.unstable_now(),typeof L=="function"?v.callback=L:v===s(g)&&a(g),B(X)}else a(g);v=s(g)}if(v!==null)var se=!0;else{var le=s(x);le!==null&&Ne(b,le.startTime-X),se=!1}return se}finally{v=null,w=W,C=!1}}var ie=!1,oe=null,J=-1,re=5,q=-1;function ce(){return!(n.unstable_now()-q<re)}function ye(){if(oe!==null){var z=n.unstable_now();q=z;var X=!0;try{X=oe(!0,z)}finally{X?je():(ie=!1,oe=null)}}else ie=!1}var je;if(typeof U=="function")je=function(){U(ye)};else if(typeof MessageChannel<"u"){var Le=new MessageChannel,_e=Le.port2;Le.port1.onmessage=ye,je=function(){_e.postMessage(null)}}else je=function(){M(ye,0)};function Se(z){oe=z,ie||(ie=!0,je())}function Ne(z,X){J=M(function(){z(n.unstable_now())},X)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(z){z.callback=null},n.unstable_continueExecution=function(){N||C||(N=!0,Se(G))},n.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"):re=0<z?Math.floor(1e3/z):5},n.unstable_getCurrentPriorityLevel=function(){return w},n.unstable_getFirstCallbackNode=function(){return s(g)},n.unstable_next=function(z){switch(w){case 1:case 2:case 3:var X=3;break;default:X=w}var W=w;w=X;try{return z()}finally{w=W}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(z,X){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var W=w;w=z;try{return X()}finally{w=W}},n.unstable_scheduleCallback=function(z,X,W){var P=n.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?P+W:P):W=P,z){case 1:var L=-1;break;case 2:L=250;break;case 5:L=1073741823;break;case 4:L=1e4;break;default:L=5e3}return L=W+L,z={id:y++,callback:X,priorityLevel:z,startTime:W,expirationTime:L,sortIndex:-1},W>P?(z.sortIndex=W,r(x,z),s(g)===null&&z===s(x)&&(D?(I(J),J=-1):D=!0,Ne(b,W-P))):(z.sortIndex=L,r(g,z),N||C||(N=!0,Se(G))),z},n.unstable_shouldYield=ce,n.unstable_wrapCallback=function(z){var X=w;return function(){var W=w;w=X;try{return z.apply(this,arguments)}finally{w=W}}}})(fl)),fl}var Df;function Ky(){return Df||(Df=1,dl.exports=Gy()),dl.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 Lf;function $y(){if(Lf)return ut;Lf=1;var n=tu(),r=Ky();function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,i=1;i<arguments.length;i++)t+="&args[]="+encodeURIComponent(arguments[i]);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,u={};function f(e,t){d(e,t),d(e+"Capture",t)}function d(e,t){for(u[e]=t,e=0;e<t.length;e++)a.add(t[e])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),g=Object.prototype.hasOwnProperty,x=/^[: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]*$/,y={},v={};function w(e){return g.call(v,e)?!0:g.call(y,e)?!1:x.test(e)?v[e]=!0:(y[e]=!0,!1)}function C(e,t,i,o){if(i!==null&&i.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:i!==null?!i.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function N(e,t,i,o){if(t===null||typeof t>"u"||C(e,t,i,o))return!0;if(o)return!1;if(i!==null)switch(i.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 D(e,t,i,o,l,c,p){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=l,this.mustUseProperty=i,this.propertyName=e,this.type=t,this.sanitizeURL=c,this.removeEmptyString=p}var M={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){M[e]=new D(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];M[t]=new D(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){M[e]=new D(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){M[e]=new D(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){M[e]=new D(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){M[e]=new D(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){M[e]=new D(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){M[e]=new D(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){M[e]=new D(e,5,!1,e.toLowerCase(),null,!1,!1)});var I=/[\-:]([a-z])/g;function U(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,U);M[t]=new D(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,U);M[t]=new D(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,U);M[t]=new D(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){M[e]=new D(e,1,!1,e.toLowerCase(),null,!1,!1)}),M.xlinkHref=new D("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){M[e]=new D(e,1,!1,e.toLowerCase(),null,!0,!0)});function B(e,t,i,o){var l=M.hasOwnProperty(t)?M[t]:null;(l!==null?l.type!==0:o||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(N(t,i,l,o)&&(i=null),o||l===null?w(t)&&(i===null?e.removeAttribute(t):e.setAttribute(t,""+i)):l.mustUseProperty?e[l.propertyName]=i===null?l.type===3?!1:"":i:(t=l.attributeName,o=l.attributeNamespace,i===null?e.removeAttribute(t):(l=l.type,i=l===3||l===4&&i===!0?"":""+i,o?e.setAttributeNS(o,t,i):e.setAttribute(t,i))))}var b=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,G=Symbol.for("react.element"),ie=Symbol.for("react.portal"),oe=Symbol.for("react.fragment"),J=Symbol.for("react.strict_mode"),re=Symbol.for("react.profiler"),q=Symbol.for("react.provider"),ce=Symbol.for("react.context"),ye=Symbol.for("react.forward_ref"),je=Symbol.for("react.suspense"),Le=Symbol.for("react.suspense_list"),_e=Symbol.for("react.memo"),Se=Symbol.for("react.lazy"),Ne=Symbol.for("react.offscreen"),z=Symbol.iterator;function X(e){return e===null||typeof e!="object"?null:(e=z&&e[z]||e["@@iterator"],typeof e=="function"?e:null)}var W=Object.assign,P;function L(e){if(P===void 0)try{throw Error()}catch(i){var t=i.stack.trim().match(/\n( *(at )?)/);P=t&&t[1]||""}return`
|
||
`+P+e}var se=!1;function le(e,t){if(!e||se)return"";se=!0;var i=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(j){var o=j}Reflect.construct(e,[],t)}else{try{t.call()}catch(j){o=j}e.call(t.prototype)}else{try{throw Error()}catch(j){o=j}e()}}catch(j){if(j&&o&&typeof j.stack=="string"){for(var l=j.stack.split(`
|
||
`),c=o.stack.split(`
|
||
`),p=l.length-1,S=c.length-1;1<=p&&0<=S&&l[p]!==c[S];)S--;for(;1<=p&&0<=S;p--,S--)if(l[p]!==c[S]){if(p!==1||S!==1)do if(p--,S--,0>S||l[p]!==c[S]){var k=`
|
||
`+l[p].replace(" at new "," at ");return e.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",e.displayName)),k}while(1<=p&&0<=S);break}}}finally{se=!1,Error.prepareStackTrace=i}return(e=e?e.displayName||e.name:"")?L(e):""}function de(e){switch(e.tag){case 5:return L(e.type);case 16:return L("Lazy");case 13:return L("Suspense");case 19:return L("SuspenseList");case 0:case 2:case 15:return e=le(e.type,!1),e;case 11:return e=le(e.type.render,!1),e;case 1:return e=le(e.type,!0),e;default:return""}}function fe(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 oe:return"Fragment";case ie:return"Portal";case re:return"Profiler";case J:return"StrictMode";case je:return"Suspense";case Le:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ce:return(e.displayName||"Context")+".Consumer";case q:return(e._context.displayName||"Context")+".Provider";case ye:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _e:return t=e.displayName||null,t!==null?t:fe(e.type)||"Memo";case Se:t=e._payload,e=e._init;try{return fe(e(t))}catch{}}return null}function xe(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 fe(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 me(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Pe(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ct(e){var t=Pe(e)?"checked":"value",i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var l=i.get,c=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(p){o=""+p,c.call(this,p)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return o},setValue:function(p){o=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ni(e){e._valueTracker||(e._valueTracker=ct(e))}function Du(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var i=t.getValue(),o="";return e&&(o=Pe(e)?e.checked?"true":"false":e.value),e=o,e!==i?(t.setValue(e),!0):!1}function Mi(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 mo(e,t){var i=t.checked;return W({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:i??e._wrapperState.initialChecked})}function Lu(e,t){var i=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;i=me(t.value!=null?t.value:i),e._wrapperState={initialChecked:o,initialValue:i,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ru(e,t){t=t.checked,t!=null&&B(e,"checked",t,!1)}function go(e,t){Ru(e,t);var i=me(t.value),o=t.type;if(i!=null)o==="number"?(i===0&&e.value===""||e.value!=i)&&(e.value=""+i):e.value!==""+i&&(e.value=""+i);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?yo(e,t.type,i):t.hasOwnProperty("defaultValue")&&yo(e,t.type,me(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Fu(e,t,i){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,i||t===e.value||(e.value=t),e.defaultValue=t}i=e.name,i!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,i!==""&&(e.name=i)}function yo(e,t,i){(t!=="number"||Mi(e.ownerDocument)!==e)&&(i==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+i&&(e.defaultValue=""+i))}var Nr=Array.isArray;function Kn(e,t,i,o){if(e=e.options,t){t={};for(var l=0;l<i.length;l++)t["$"+i[l]]=!0;for(i=0;i<e.length;i++)l=t.hasOwnProperty("$"+e[i].value),e[i].selected!==l&&(e[i].selected=l),l&&o&&(e[i].defaultSelected=!0)}else{for(i=""+me(i),t=null,l=0;l<e.length;l++){if(e[l].value===i){e[l].selected=!0,o&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function vo(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(s(91));return W({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Vu(e,t){var i=t.value;if(i==null){if(i=t.children,t=t.defaultValue,i!=null){if(t!=null)throw Error(s(92));if(Nr(i)){if(1<i.length)throw Error(s(93));i=i[0]}t=i}t==null&&(t=""),i=t}e._wrapperState={initialValue:me(i)}}function Iu(e,t){var i=me(t.value),o=me(t.defaultValue);i!=null&&(i=""+i,i!==e.value&&(e.value=i),t.defaultValue==null&&e.defaultValue!==i&&(e.defaultValue=i)),o!=null&&(e.defaultValue=""+o)}function _u(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function zu(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 xo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?zu(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Di,Ou=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,i,o,l){MSApp.execUnsafeLocalFunction(function(){return e(t,i,o,l)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Di=Di||document.createElement("div"),Di.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Di.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Mr(e,t){if(t){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=t;return}}e.textContent=t}var Dr={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},Gm=["Webkit","ms","Moz","O"];Object.keys(Dr).forEach(function(e){Gm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Dr[t]=Dr[e]})});function Bu(e,t,i){return t==null||typeof t=="boolean"||t===""?"":i||typeof t!="number"||t===0||Dr.hasOwnProperty(e)&&Dr[e]?(""+t).trim():t+"px"}function bu(e,t){e=e.style;for(var i in t)if(t.hasOwnProperty(i)){var o=i.indexOf("--")===0,l=Bu(i,t[i],o);i==="float"&&(i="cssFloat"),o?e.setProperty(i,l):e[i]=l}}var Km=W({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 wo(e,t){if(t){if(Km[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(s(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(s(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(t.style!=null&&typeof t.style!="object")throw Error(s(62))}}function So(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 ko=null;function To(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Co=null,$n=null,Yn=null;function Uu(e){if(e=Jr(e)){if(typeof Co!="function")throw Error(s(280));var t=e.stateNode;t&&(t=es(t),Co(e.stateNode,e.type,t))}}function Wu(e){$n?Yn?Yn.push(e):Yn=[e]:$n=e}function Hu(){if($n){var e=$n,t=Yn;if(Yn=$n=null,Uu(e),t)for(e=0;e<t.length;e++)Uu(t[e])}}function Gu(e,t){return e(t)}function Ku(){}var Po=!1;function $u(e,t,i){if(Po)return e(t,i);Po=!0;try{return Gu(e,t,i)}finally{Po=!1,($n!==null||Yn!==null)&&(Ku(),Hu())}}function Lr(e,t){var i=e.stateNode;if(i===null)return null;var o=es(i);if(o===null)return null;i=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(s(231,t,typeof i));return i}var Ao=!1;if(h)try{var Rr={};Object.defineProperty(Rr,"passive",{get:function(){Ao=!0}}),window.addEventListener("test",Rr,Rr),window.removeEventListener("test",Rr,Rr)}catch{Ao=!1}function $m(e,t,i,o,l,c,p,S,k){var j=Array.prototype.slice.call(arguments,3);try{t.apply(i,j)}catch(F){this.onError(F)}}var Fr=!1,Li=null,Ri=!1,Eo=null,Ym={onError:function(e){Fr=!0,Li=e}};function Xm(e,t,i,o,l,c,p,S,k){Fr=!1,Li=null,$m.apply(Ym,arguments)}function Qm(e,t,i,o,l,c,p,S,k){if(Xm.apply(this,arguments),Fr){if(Fr){var j=Li;Fr=!1,Li=null}else throw Error(s(198));Ri||(Ri=!0,Eo=j)}}function En(e){var t=e,i=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(i=t.return),e=t.return;while(e)}return t.tag===3?i:null}function Yu(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Xu(e){if(En(e)!==e)throw Error(s(188))}function qm(e){var t=e.alternate;if(!t){if(t=En(e),t===null)throw Error(s(188));return t!==e?null:e}for(var i=e,o=t;;){var l=i.return;if(l===null)break;var c=l.alternate;if(c===null){if(o=l.return,o!==null){i=o;continue}break}if(l.child===c.child){for(c=l.child;c;){if(c===i)return Xu(l),e;if(c===o)return Xu(l),t;c=c.sibling}throw Error(s(188))}if(i.return!==o.return)i=l,o=c;else{for(var p=!1,S=l.child;S;){if(S===i){p=!0,i=l,o=c;break}if(S===o){p=!0,o=l,i=c;break}S=S.sibling}if(!p){for(S=c.child;S;){if(S===i){p=!0,i=c,o=l;break}if(S===o){p=!0,o=c,i=l;break}S=S.sibling}if(!p)throw Error(s(189))}}if(i.alternate!==o)throw Error(s(190))}if(i.tag!==3)throw Error(s(188));return i.stateNode.current===i?e:t}function Qu(e){return e=qm(e),e!==null?qu(e):null}function qu(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=qu(e);if(t!==null)return t;e=e.sibling}return null}var Zu=r.unstable_scheduleCallback,Ju=r.unstable_cancelCallback,Zm=r.unstable_shouldYield,Jm=r.unstable_requestPaint,Ve=r.unstable_now,eg=r.unstable_getCurrentPriorityLevel,jo=r.unstable_ImmediatePriority,ec=r.unstable_UserBlockingPriority,Fi=r.unstable_NormalPriority,tg=r.unstable_LowPriority,tc=r.unstable_IdlePriority,Vi=null,Vt=null;function ng(e){if(Vt&&typeof Vt.onCommitFiberRoot=="function")try{Vt.onCommitFiberRoot(Vi,e,void 0,(e.current.flags&128)===128)}catch{}}var Pt=Math.clz32?Math.clz32:sg,rg=Math.log,ig=Math.LN2;function sg(e){return e>>>=0,e===0?32:31-(rg(e)/ig|0)|0}var Ii=64,_i=4194304;function Vr(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 zi(e,t){var i=e.pendingLanes;if(i===0)return 0;var o=0,l=e.suspendedLanes,c=e.pingedLanes,p=i&268435455;if(p!==0){var S=p&~l;S!==0?o=Vr(S):(c&=p,c!==0&&(o=Vr(c)))}else p=i&~l,p!==0?o=Vr(p):c!==0&&(o=Vr(c));if(o===0)return 0;if(t!==0&&t!==o&&(t&l)===0&&(l=o&-o,c=t&-t,l>=c||l===16&&(c&4194240)!==0))return t;if((o&4)!==0&&(o|=i&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0<t;)i=31-Pt(t),l=1<<i,o|=e[i],t&=~l;return o}function og(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 ag(e,t){for(var i=e.suspendedLanes,o=e.pingedLanes,l=e.expirationTimes,c=e.pendingLanes;0<c;){var p=31-Pt(c),S=1<<p,k=l[p];k===-1?((S&i)===0||(S&o)!==0)&&(l[p]=og(S,t)):k<=t&&(e.expiredLanes|=S),c&=~S}}function No(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function nc(){var e=Ii;return Ii<<=1,(Ii&4194240)===0&&(Ii=64),e}function Mo(e){for(var t=[],i=0;31>i;i++)t.push(e);return t}function Ir(e,t,i){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Pt(t),e[t]=i}function lg(e,t){var i=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var o=e.eventTimes;for(e=e.expirationTimes;0<i;){var l=31-Pt(i),c=1<<l;t[l]=0,o[l]=-1,e[l]=-1,i&=~c}}function Do(e,t){var i=e.entangledLanes|=t;for(e=e.entanglements;i;){var o=31-Pt(i),l=1<<o;l&t|e[o]&t&&(e[o]|=t),i&=~l}}var ge=0;function rc(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var ic,Lo,sc,oc,ac,Ro=!1,Oi=[],tn=null,nn=null,rn=null,_r=new Map,zr=new Map,sn=[],ug="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 lc(e,t){switch(e){case"focusin":case"focusout":tn=null;break;case"dragenter":case"dragleave":nn=null;break;case"mouseover":case"mouseout":rn=null;break;case"pointerover":case"pointerout":_r.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":zr.delete(t.pointerId)}}function Or(e,t,i,o,l,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:i,eventSystemFlags:o,nativeEvent:c,targetContainers:[l]},t!==null&&(t=Jr(t),t!==null&&Lo(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function cg(e,t,i,o,l){switch(t){case"focusin":return tn=Or(tn,e,t,i,o,l),!0;case"dragenter":return nn=Or(nn,e,t,i,o,l),!0;case"mouseover":return rn=Or(rn,e,t,i,o,l),!0;case"pointerover":var c=l.pointerId;return _r.set(c,Or(_r.get(c)||null,e,t,i,o,l)),!0;case"gotpointercapture":return c=l.pointerId,zr.set(c,Or(zr.get(c)||null,e,t,i,o,l)),!0}return!1}function uc(e){var t=jn(e.target);if(t!==null){var i=En(t);if(i!==null){if(t=i.tag,t===13){if(t=Yu(i),t!==null){e.blockedOn=t,ac(e.priority,function(){sc(i)});return}}else if(t===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Bi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var i=Vo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(i===null){i=e.nativeEvent;var o=new i.constructor(i.type,i);ko=o,i.target.dispatchEvent(o),ko=null}else return t=Jr(i),t!==null&&Lo(t),e.blockedOn=i,!1;t.shift()}return!0}function cc(e,t,i){Bi(e)&&i.delete(t)}function dg(){Ro=!1,tn!==null&&Bi(tn)&&(tn=null),nn!==null&&Bi(nn)&&(nn=null),rn!==null&&Bi(rn)&&(rn=null),_r.forEach(cc),zr.forEach(cc)}function Br(e,t){e.blockedOn===t&&(e.blockedOn=null,Ro||(Ro=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,dg)))}function br(e){function t(l){return Br(l,e)}if(0<Oi.length){Br(Oi[0],e);for(var i=1;i<Oi.length;i++){var o=Oi[i];o.blockedOn===e&&(o.blockedOn=null)}}for(tn!==null&&Br(tn,e),nn!==null&&Br(nn,e),rn!==null&&Br(rn,e),_r.forEach(t),zr.forEach(t),i=0;i<sn.length;i++)o=sn[i],o.blockedOn===e&&(o.blockedOn=null);for(;0<sn.length&&(i=sn[0],i.blockedOn===null);)uc(i),i.blockedOn===null&&sn.shift()}var Xn=b.ReactCurrentBatchConfig,bi=!0;function fg(e,t,i,o){var l=ge,c=Xn.transition;Xn.transition=null;try{ge=1,Fo(e,t,i,o)}finally{ge=l,Xn.transition=c}}function hg(e,t,i,o){var l=ge,c=Xn.transition;Xn.transition=null;try{ge=4,Fo(e,t,i,o)}finally{ge=l,Xn.transition=c}}function Fo(e,t,i,o){if(bi){var l=Vo(e,t,i,o);if(l===null)Zo(e,t,o,Ui,i),lc(e,o);else if(cg(l,e,t,i,o))o.stopPropagation();else if(lc(e,o),t&4&&-1<ug.indexOf(e)){for(;l!==null;){var c=Jr(l);if(c!==null&&ic(c),c=Vo(e,t,i,o),c===null&&Zo(e,t,o,Ui,i),c===l)break;l=c}l!==null&&o.stopPropagation()}else Zo(e,t,o,null,i)}}var Ui=null;function Vo(e,t,i,o){if(Ui=null,e=To(o),e=jn(e),e!==null)if(t=En(e),t===null)e=null;else if(i=t.tag,i===13){if(e=Yu(t),e!==null)return e;e=null}else if(i===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ui=e,null}function dc(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(eg()){case jo:return 1;case ec:return 4;case Fi:case tg:return 16;case tc:return 536870912;default:return 16}default:return 16}}var on=null,Io=null,Wi=null;function fc(){if(Wi)return Wi;var e,t=Io,i=t.length,o,l="value"in on?on.value:on.textContent,c=l.length;for(e=0;e<i&&t[e]===l[e];e++);var p=i-e;for(o=1;o<=p&&t[i-o]===l[c-o];o++);return Wi=l.slice(e,1<o?1-o:void 0)}function Hi(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 Gi(){return!0}function hc(){return!1}function dt(e){function t(i,o,l,c,p){this._reactName=i,this._targetInst=l,this.type=o,this.nativeEvent=c,this.target=p,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(i=e[S],this[S]=i?i(c):c[S]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Gi:hc,this.isPropagationStopped=hc,this}return W(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Gi)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Gi)},persist:function(){},isPersistent:Gi}),t}var Qn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_o=dt(Qn),Ur=W({},Qn,{view:0,detail:0}),pg=dt(Ur),zo,Oo,Wr,Ki=W({},Ur,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bo,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!==Wr&&(Wr&&e.type==="mousemove"?(zo=e.screenX-Wr.screenX,Oo=e.screenY-Wr.screenY):Oo=zo=0,Wr=e),zo)},movementY:function(e){return"movementY"in e?e.movementY:Oo}}),pc=dt(Ki),mg=W({},Ki,{dataTransfer:0}),gg=dt(mg),yg=W({},Ur,{relatedTarget:0}),Bo=dt(yg),vg=W({},Qn,{animationName:0,elapsedTime:0,pseudoElement:0}),xg=dt(vg),wg=W({},Qn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Sg=dt(wg),kg=W({},Qn,{data:0}),mc=dt(kg),Tg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cg={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"},Pg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ag(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Pg[e])?!!t[e]:!1}function bo(){return Ag}var Eg=W({},Ur,{key:function(e){if(e.key){var t=Tg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Hi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Cg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bo,charCode:function(e){return e.type==="keypress"?Hi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Hi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),jg=dt(Eg),Ng=W({},Ki,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gc=dt(Ng),Mg=W({},Ur,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bo}),Dg=dt(Mg),Lg=W({},Qn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Rg=dt(Lg),Fg=W({},Ki,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Vg=dt(Fg),Ig=[9,13,27,32],Uo=h&&"CompositionEvent"in window,Hr=null;h&&"documentMode"in document&&(Hr=document.documentMode);var _g=h&&"TextEvent"in window&&!Hr,yc=h&&(!Uo||Hr&&8<Hr&&11>=Hr),vc=" ",xc=!1;function wc(e,t){switch(e){case"keyup":return Ig.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Sc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qn=!1;function zg(e,t){switch(e){case"compositionend":return Sc(t);case"keypress":return t.which!==32?null:(xc=!0,vc);case"textInput":return e=t.data,e===vc&&xc?null:e;default:return null}}function Og(e,t){if(qn)return e==="compositionend"||!Uo&&wc(e,t)?(e=fc(),Wi=Io=on=null,qn=!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 yc&&t.locale!=="ko"?null:t.data;default:return null}}var Bg={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 kc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Bg[e.type]:t==="textarea"}function Tc(e,t,i,o){Wu(o),t=qi(t,"onChange"),0<t.length&&(i=new _o("onChange","change",null,i,o),e.push({event:i,listeners:t}))}var Gr=null,Kr=null;function bg(e){bc(e,0)}function $i(e){var t=nr(e);if(Du(t))return e}function Ug(e,t){if(e==="change")return t}var Cc=!1;if(h){var Wo;if(h){var Ho="oninput"in document;if(!Ho){var Pc=document.createElement("div");Pc.setAttribute("oninput","return;"),Ho=typeof Pc.oninput=="function"}Wo=Ho}else Wo=!1;Cc=Wo&&(!document.documentMode||9<document.documentMode)}function Ac(){Gr&&(Gr.detachEvent("onpropertychange",Ec),Kr=Gr=null)}function Ec(e){if(e.propertyName==="value"&&$i(Kr)){var t=[];Tc(t,Kr,e,To(e)),$u(bg,t)}}function Wg(e,t,i){e==="focusin"?(Ac(),Gr=t,Kr=i,Gr.attachEvent("onpropertychange",Ec)):e==="focusout"&&Ac()}function Hg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return $i(Kr)}function Gg(e,t){if(e==="click")return $i(t)}function Kg(e,t){if(e==="input"||e==="change")return $i(t)}function $g(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var At=typeof Object.is=="function"?Object.is:$g;function $r(e,t){if(At(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var i=Object.keys(e),o=Object.keys(t);if(i.length!==o.length)return!1;for(o=0;o<i.length;o++){var l=i[o];if(!g.call(t,l)||!At(e[l],t[l]))return!1}return!0}function jc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nc(e,t){var i=jc(e);e=0;for(var o;i;){if(i.nodeType===3){if(o=e+i.textContent.length,e<=t&&o>=t)return{node:i,offset:t-e};e=o}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=jc(i)}}function Mc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Mc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Dc(){for(var e=window,t=Mi();t instanceof e.HTMLIFrameElement;){try{var i=typeof t.contentWindow.location.href=="string"}catch{i=!1}if(i)e=t.contentWindow;else break;t=Mi(e.document)}return t}function Go(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 Yg(e){var t=Dc(),i=e.focusedElem,o=e.selectionRange;if(t!==i&&i&&i.ownerDocument&&Mc(i.ownerDocument.documentElement,i)){if(o!==null&&Go(i)){if(t=o.start,e=o.end,e===void 0&&(e=t),"selectionStart"in i)i.selectionStart=t,i.selectionEnd=Math.min(e,i.value.length);else if(e=(t=i.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=i.textContent.length,c=Math.min(o.start,l);o=o.end===void 0?c:Math.min(o.end,l),!e.extend&&c>o&&(l=o,o=c,c=l),l=Nc(i,c);var p=Nc(i,o);l&&p&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==p.node||e.focusOffset!==p.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),c>o?(e.addRange(t),e.extend(p.node,p.offset)):(t.setEnd(p.node,p.offset),e.addRange(t)))}}for(t=[],e=i;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i<t.length;i++)e=t[i],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Xg=h&&"documentMode"in document&&11>=document.documentMode,Zn=null,Ko=null,Yr=null,$o=!1;function Lc(e,t,i){var o=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;$o||Zn==null||Zn!==Mi(o)||(o=Zn,"selectionStart"in o&&Go(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Yr&&$r(Yr,o)||(Yr=o,o=qi(Ko,"onSelect"),0<o.length&&(t=new _o("onSelect","select",null,t,i),e.push({event:t,listeners:o}),t.target=Zn)))}function Yi(e,t){var i={};return i[e.toLowerCase()]=t.toLowerCase(),i["Webkit"+e]="webkit"+t,i["Moz"+e]="moz"+t,i}var Jn={animationend:Yi("Animation","AnimationEnd"),animationiteration:Yi("Animation","AnimationIteration"),animationstart:Yi("Animation","AnimationStart"),transitionend:Yi("Transition","TransitionEnd")},Yo={},Rc={};h&&(Rc=document.createElement("div").style,"AnimationEvent"in window||(delete Jn.animationend.animation,delete Jn.animationiteration.animation,delete Jn.animationstart.animation),"TransitionEvent"in window||delete Jn.transitionend.transition);function Xi(e){if(Yo[e])return Yo[e];if(!Jn[e])return e;var t=Jn[e],i;for(i in t)if(t.hasOwnProperty(i)&&i in Rc)return Yo[e]=t[i];return e}var Fc=Xi("animationend"),Vc=Xi("animationiteration"),Ic=Xi("animationstart"),_c=Xi("transitionend"),zc=new Map,Oc="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 an(e,t){zc.set(e,t),f(t,[e])}for(var Xo=0;Xo<Oc.length;Xo++){var Qo=Oc[Xo],Qg=Qo.toLowerCase(),qg=Qo[0].toUpperCase()+Qo.slice(1);an(Qg,"on"+qg)}an(Fc,"onAnimationEnd"),an(Vc,"onAnimationIteration"),an(Ic,"onAnimationStart"),an("dblclick","onDoubleClick"),an("focusin","onFocus"),an("focusout","onBlur"),an(_c,"onTransitionEnd"),d("onMouseEnter",["mouseout","mouseover"]),d("onMouseLeave",["mouseout","mouseover"]),d("onPointerEnter",["pointerout","pointerover"]),d("onPointerLeave",["pointerout","pointerover"]),f("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),f("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),f("onBeforeInput",["compositionend","keypress","textInput","paste"]),f("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xr="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(" "),Zg=new Set("cancel close invalid load scroll toggle".split(" ").concat(Xr));function Bc(e,t,i){var o=e.type||"unknown-event";e.currentTarget=i,Qm(o,t,void 0,e),e.currentTarget=null}function bc(e,t){t=(t&4)!==0;for(var i=0;i<e.length;i++){var o=e[i],l=o.event;o=o.listeners;e:{var c=void 0;if(t)for(var p=o.length-1;0<=p;p--){var S=o[p],k=S.instance,j=S.currentTarget;if(S=S.listener,k!==c&&l.isPropagationStopped())break e;Bc(l,S,j),c=k}else for(p=0;p<o.length;p++){if(S=o[p],k=S.instance,j=S.currentTarget,S=S.listener,k!==c&&l.isPropagationStopped())break e;Bc(l,S,j),c=k}}}if(Ri)throw e=Eo,Ri=!1,Eo=null,e}function ke(e,t){var i=t[ia];i===void 0&&(i=t[ia]=new Set);var o=e+"__bubble";i.has(o)||(Uc(t,e,2,!1),i.add(o))}function qo(e,t,i){var o=0;t&&(o|=4),Uc(i,e,o,t)}var Qi="_reactListening"+Math.random().toString(36).slice(2);function Qr(e){if(!e[Qi]){e[Qi]=!0,a.forEach(function(i){i!=="selectionchange"&&(Zg.has(i)||qo(i,!1,e),qo(i,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Qi]||(t[Qi]=!0,qo("selectionchange",!1,t))}}function Uc(e,t,i,o){switch(dc(t)){case 1:var l=fg;break;case 4:l=hg;break;default:l=Fo}i=l.bind(null,t,i,e),l=void 0,!Ao||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),o?l!==void 0?e.addEventListener(t,i,{capture:!0,passive:l}):e.addEventListener(t,i,!0):l!==void 0?e.addEventListener(t,i,{passive:l}):e.addEventListener(t,i,!1)}function Zo(e,t,i,o,l){var c=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var p=o.tag;if(p===3||p===4){var S=o.stateNode.containerInfo;if(S===l||S.nodeType===8&&S.parentNode===l)break;if(p===4)for(p=o.return;p!==null;){var k=p.tag;if((k===3||k===4)&&(k=p.stateNode.containerInfo,k===l||k.nodeType===8&&k.parentNode===l))return;p=p.return}for(;S!==null;){if(p=jn(S),p===null)return;if(k=p.tag,k===5||k===6){o=c=p;continue e}S=S.parentNode}}o=o.return}$u(function(){var j=c,F=To(i),V=[];e:{var R=zc.get(e);if(R!==void 0){var H=_o,$=e;switch(e){case"keypress":if(Hi(i)===0)break e;case"keydown":case"keyup":H=jg;break;case"focusin":$="focus",H=Bo;break;case"focusout":$="blur",H=Bo;break;case"beforeblur":case"afterblur":H=Bo;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=pc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=gg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=Dg;break;case Fc:case Vc:case Ic:H=xg;break;case _c:H=Rg;break;case"scroll":H=pg;break;case"wheel":H=Vg;break;case"copy":case"cut":case"paste":H=Sg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=gc}var Q=(t&4)!==0,Ie=!Q&&e==="scroll",A=Q?R!==null?R+"Capture":null:R;Q=[];for(var T=j,E;T!==null;){E=T;var O=E.stateNode;if(E.tag===5&&O!==null&&(E=O,A!==null&&(O=Lr(T,A),O!=null&&Q.push(qr(T,O,E)))),Ie)break;T=T.return}0<Q.length&&(R=new H(R,$,null,i,F),V.push({event:R,listeners:Q}))}}if((t&7)===0){e:{if(R=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",R&&i!==ko&&($=i.relatedTarget||i.fromElement)&&(jn($)||$[Kt]))break e;if((H||R)&&(R=F.window===F?F:(R=F.ownerDocument)?R.defaultView||R.parentWindow:window,H?($=i.relatedTarget||i.toElement,H=j,$=$?jn($):null,$!==null&&(Ie=En($),$!==Ie||$.tag!==5&&$.tag!==6)&&($=null)):(H=null,$=j),H!==$)){if(Q=pc,O="onMouseLeave",A="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(Q=gc,O="onPointerLeave",A="onPointerEnter",T="pointer"),Ie=H==null?R:nr(H),E=$==null?R:nr($),R=new Q(O,T+"leave",H,i,F),R.target=Ie,R.relatedTarget=E,O=null,jn(F)===j&&(Q=new Q(A,T+"enter",$,i,F),Q.target=E,Q.relatedTarget=Ie,O=Q),Ie=O,H&&$)t:{for(Q=H,A=$,T=0,E=Q;E;E=er(E))T++;for(E=0,O=A;O;O=er(O))E++;for(;0<T-E;)Q=er(Q),T--;for(;0<E-T;)A=er(A),E--;for(;T--;){if(Q===A||A!==null&&Q===A.alternate)break t;Q=er(Q),A=er(A)}Q=null}else Q=null;H!==null&&Wc(V,R,H,Q,!1),$!==null&&Ie!==null&&Wc(V,Ie,$,Q,!0)}}e:{if(R=j?nr(j):window,H=R.nodeName&&R.nodeName.toLowerCase(),H==="select"||H==="input"&&R.type==="file")var Z=Ug;else if(kc(R))if(Cc)Z=Kg;else{Z=Hg;var ee=Wg}else(H=R.nodeName)&&H.toLowerCase()==="input"&&(R.type==="checkbox"||R.type==="radio")&&(Z=Gg);if(Z&&(Z=Z(e,j))){Tc(V,Z,i,F);break e}ee&&ee(e,R,j),e==="focusout"&&(ee=R._wrapperState)&&ee.controlled&&R.type==="number"&&yo(R,"number",R.value)}switch(ee=j?nr(j):window,e){case"focusin":(kc(ee)||ee.contentEditable==="true")&&(Zn=ee,Ko=j,Yr=null);break;case"focusout":Yr=Ko=Zn=null;break;case"mousedown":$o=!0;break;case"contextmenu":case"mouseup":case"dragend":$o=!1,Lc(V,i,F);break;case"selectionchange":if(Xg)break;case"keydown":case"keyup":Lc(V,i,F)}var te;if(Uo)e:{switch(e){case"compositionstart":var ne="onCompositionStart";break e;case"compositionend":ne="onCompositionEnd";break e;case"compositionupdate":ne="onCompositionUpdate";break e}ne=void 0}else qn?wc(e,i)&&(ne="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(ne="onCompositionStart");ne&&(yc&&i.locale!=="ko"&&(qn||ne!=="onCompositionStart"?ne==="onCompositionEnd"&&qn&&(te=fc()):(on=F,Io="value"in on?on.value:on.textContent,qn=!0)),ee=qi(j,ne),0<ee.length&&(ne=new mc(ne,e,null,i,F),V.push({event:ne,listeners:ee}),te?ne.data=te:(te=Sc(i),te!==null&&(ne.data=te)))),(te=_g?zg(e,i):Og(e,i))&&(j=qi(j,"onBeforeInput"),0<j.length&&(F=new mc("onBeforeInput","beforeinput",null,i,F),V.push({event:F,listeners:j}),F.data=te))}bc(V,t)})}function qr(e,t,i){return{instance:e,listener:t,currentTarget:i}}function qi(e,t){for(var i=t+"Capture",o=[];e!==null;){var l=e,c=l.stateNode;l.tag===5&&c!==null&&(l=c,c=Lr(e,i),c!=null&&o.unshift(qr(e,c,l)),c=Lr(e,t),c!=null&&o.push(qr(e,c,l))),e=e.return}return o}function er(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Wc(e,t,i,o,l){for(var c=t._reactName,p=[];i!==null&&i!==o;){var S=i,k=S.alternate,j=S.stateNode;if(k!==null&&k===o)break;S.tag===5&&j!==null&&(S=j,l?(k=Lr(i,c),k!=null&&p.unshift(qr(i,k,S))):l||(k=Lr(i,c),k!=null&&p.push(qr(i,k,S)))),i=i.return}p.length!==0&&e.push({event:t,listeners:p})}var Jg=/\r\n?/g,ey=/\u0000|\uFFFD/g;function Hc(e){return(typeof e=="string"?e:""+e).replace(Jg,`
|
||
`).replace(ey,"")}function Zi(e,t,i){if(t=Hc(t),Hc(e)!==t&&i)throw Error(s(425))}function Ji(){}var Jo=null,ea=null;function ta(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 na=typeof setTimeout=="function"?setTimeout:void 0,ty=typeof clearTimeout=="function"?clearTimeout:void 0,Gc=typeof Promise=="function"?Promise:void 0,ny=typeof queueMicrotask=="function"?queueMicrotask:typeof Gc<"u"?function(e){return Gc.resolve(null).then(e).catch(ry)}:na;function ry(e){setTimeout(function(){throw e})}function ra(e,t){var i=t,o=0;do{var l=i.nextSibling;if(e.removeChild(i),l&&l.nodeType===8)if(i=l.data,i==="/$"){if(o===0){e.removeChild(l),br(t);return}o--}else i!=="$"&&i!=="$?"&&i!=="$!"||o++;i=l}while(i);br(t)}function ln(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 Kc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"){if(t===0)return e;t--}else i==="/$"&&t++}e=e.previousSibling}return null}var tr=Math.random().toString(36).slice(2),It="__reactFiber$"+tr,Zr="__reactProps$"+tr,Kt="__reactContainer$"+tr,ia="__reactEvents$"+tr,iy="__reactListeners$"+tr,sy="__reactHandles$"+tr;function jn(e){var t=e[It];if(t)return t;for(var i=e.parentNode;i;){if(t=i[Kt]||i[It]){if(i=t.alternate,t.child!==null||i!==null&&i.child!==null)for(e=Kc(e);e!==null;){if(i=e[It])return i;e=Kc(e)}return t}e=i,i=e.parentNode}return null}function Jr(e){return e=e[It]||e[Kt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function nr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(s(33))}function es(e){return e[Zr]||null}var sa=[],rr=-1;function un(e){return{current:e}}function Te(e){0>rr||(e.current=sa[rr],sa[rr]=null,rr--)}function we(e,t){rr++,sa[rr]=e.current,e.current=t}var cn={},Qe=un(cn),it=un(!1),Nn=cn;function ir(e,t){var i=e.type.contextTypes;if(!i)return cn;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var l={},c;for(c in i)l[c]=t[c];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function st(e){return e=e.childContextTypes,e!=null}function ts(){Te(it),Te(Qe)}function $c(e,t,i){if(Qe.current!==cn)throw Error(s(168));we(Qe,t),we(it,i)}function Yc(e,t,i){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return i;o=o.getChildContext();for(var l in o)if(!(l in t))throw Error(s(108,xe(e)||"Unknown",l));return W({},i,o)}function ns(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||cn,Nn=Qe.current,we(Qe,e),we(it,it.current),!0}function Xc(e,t,i){var o=e.stateNode;if(!o)throw Error(s(169));i?(e=Yc(e,t,Nn),o.__reactInternalMemoizedMergedChildContext=e,Te(it),Te(Qe),we(Qe,e)):Te(it),we(it,i)}var $t=null,rs=!1,oa=!1;function Qc(e){$t===null?$t=[e]:$t.push(e)}function oy(e){rs=!0,Qc(e)}function dn(){if(!oa&&$t!==null){oa=!0;var e=0,t=ge;try{var i=$t;for(ge=1;e<i.length;e++){var o=i[e];do o=o(!0);while(o!==null)}$t=null,rs=!1}catch(l){throw $t!==null&&($t=$t.slice(e+1)),Zu(jo,dn),l}finally{ge=t,oa=!1}}return null}var sr=[],or=0,is=null,ss=0,gt=[],yt=0,Mn=null,Yt=1,Xt="";function Dn(e,t){sr[or++]=ss,sr[or++]=is,is=e,ss=t}function qc(e,t,i){gt[yt++]=Yt,gt[yt++]=Xt,gt[yt++]=Mn,Mn=e;var o=Yt;e=Xt;var l=32-Pt(o)-1;o&=~(1<<l),i+=1;var c=32-Pt(t)+l;if(30<c){var p=l-l%5;c=(o&(1<<p)-1).toString(32),o>>=p,l-=p,Yt=1<<32-Pt(t)+l|i<<l|o,Xt=c+e}else Yt=1<<c|i<<l|o,Xt=e}function aa(e){e.return!==null&&(Dn(e,1),qc(e,1,0))}function la(e){for(;e===is;)is=sr[--or],sr[or]=null,ss=sr[--or],sr[or]=null;for(;e===Mn;)Mn=gt[--yt],gt[yt]=null,Xt=gt[--yt],gt[yt]=null,Yt=gt[--yt],gt[yt]=null}var ft=null,ht=null,Ae=!1,Et=null;function Zc(e,t){var i=St(5,null,null,0);i.elementType="DELETED",i.stateNode=t,i.return=e,t=e.deletions,t===null?(e.deletions=[i],e.flags|=16):t.push(i)}function Jc(e,t){switch(e.tag){case 5:var i=e.type;return t=t.nodeType!==1||i.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ft=e,ht=ln(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ft=e,ht=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(i=Mn!==null?{id:Yt,overflow:Xt}:null,e.memoizedState={dehydrated:t,treeContext:i,retryLane:1073741824},i=St(18,null,null,0),i.stateNode=t,i.return=e,e.child=i,ft=e,ht=null,!0):!1;default:return!1}}function ua(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ca(e){if(Ae){var t=ht;if(t){var i=t;if(!Jc(e,t)){if(ua(e))throw Error(s(418));t=ln(i.nextSibling);var o=ft;t&&Jc(e,t)?Zc(o,i):(e.flags=e.flags&-4097|2,Ae=!1,ft=e)}}else{if(ua(e))throw Error(s(418));e.flags=e.flags&-4097|2,Ae=!1,ft=e}}}function ed(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ft=e}function os(e){if(e!==ft)return!1;if(!Ae)return ed(e),Ae=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ta(e.type,e.memoizedProps)),t&&(t=ht)){if(ua(e))throw td(),Error(s(418));for(;t;)Zc(e,t),t=ln(t.nextSibling)}if(ed(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"){if(t===0){ht=ln(e.nextSibling);break e}t--}else i!=="$"&&i!=="$!"&&i!=="$?"||t++}e=e.nextSibling}ht=null}}else ht=ft?ln(e.stateNode.nextSibling):null;return!0}function td(){for(var e=ht;e;)e=ln(e.nextSibling)}function ar(){ht=ft=null,Ae=!1}function da(e){Et===null?Et=[e]:Et.push(e)}var ay=b.ReactCurrentBatchConfig;function ei(e,t,i){if(e=i.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(i._owner){if(i=i._owner,i){if(i.tag!==1)throw Error(s(309));var o=i.stateNode}if(!o)throw Error(s(147,e));var l=o,c=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===c?t.ref:(t=function(p){var S=l.refs;p===null?delete S[c]:S[c]=p},t._stringRef=c,t)}if(typeof e!="string")throw Error(s(284));if(!i._owner)throw Error(s(290,e))}return e}function as(e,t){throw e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function nd(e){var t=e._init;return t(e._payload)}function rd(e){function t(A,T){if(e){var E=A.deletions;E===null?(A.deletions=[T],A.flags|=16):E.push(T)}}function i(A,T){if(!e)return null;for(;T!==null;)t(A,T),T=T.sibling;return null}function o(A,T){for(A=new Map;T!==null;)T.key!==null?A.set(T.key,T):A.set(T.index,T),T=T.sibling;return A}function l(A,T){return A=xn(A,T),A.index=0,A.sibling=null,A}function c(A,T,E){return A.index=E,e?(E=A.alternate,E!==null?(E=E.index,E<T?(A.flags|=2,T):E):(A.flags|=2,T)):(A.flags|=1048576,T)}function p(A){return e&&A.alternate===null&&(A.flags|=2),A}function S(A,T,E,O){return T===null||T.tag!==6?(T=nl(E,A.mode,O),T.return=A,T):(T=l(T,E),T.return=A,T)}function k(A,T,E,O){var Z=E.type;return Z===oe?F(A,T,E.props.children,O,E.key):T!==null&&(T.elementType===Z||typeof Z=="object"&&Z!==null&&Z.$$typeof===Se&&nd(Z)===T.type)?(O=l(T,E.props),O.ref=ei(A,T,E),O.return=A,O):(O=Ds(E.type,E.key,E.props,null,A.mode,O),O.ref=ei(A,T,E),O.return=A,O)}function j(A,T,E,O){return T===null||T.tag!==4||T.stateNode.containerInfo!==E.containerInfo||T.stateNode.implementation!==E.implementation?(T=rl(E,A.mode,O),T.return=A,T):(T=l(T,E.children||[]),T.return=A,T)}function F(A,T,E,O,Z){return T===null||T.tag!==7?(T=On(E,A.mode,O,Z),T.return=A,T):(T=l(T,E),T.return=A,T)}function V(A,T,E){if(typeof T=="string"&&T!==""||typeof T=="number")return T=nl(""+T,A.mode,E),T.return=A,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case G:return E=Ds(T.type,T.key,T.props,null,A.mode,E),E.ref=ei(A,null,T),E.return=A,E;case ie:return T=rl(T,A.mode,E),T.return=A,T;case Se:var O=T._init;return V(A,O(T._payload),E)}if(Nr(T)||X(T))return T=On(T,A.mode,E,null),T.return=A,T;as(A,T)}return null}function R(A,T,E,O){var Z=T!==null?T.key:null;if(typeof E=="string"&&E!==""||typeof E=="number")return Z!==null?null:S(A,T,""+E,O);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case G:return E.key===Z?k(A,T,E,O):null;case ie:return E.key===Z?j(A,T,E,O):null;case Se:return Z=E._init,R(A,T,Z(E._payload),O)}if(Nr(E)||X(E))return Z!==null?null:F(A,T,E,O,null);as(A,E)}return null}function H(A,T,E,O,Z){if(typeof O=="string"&&O!==""||typeof O=="number")return A=A.get(E)||null,S(T,A,""+O,Z);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case G:return A=A.get(O.key===null?E:O.key)||null,k(T,A,O,Z);case ie:return A=A.get(O.key===null?E:O.key)||null,j(T,A,O,Z);case Se:var ee=O._init;return H(A,T,E,ee(O._payload),Z)}if(Nr(O)||X(O))return A=A.get(E)||null,F(T,A,O,Z,null);as(T,O)}return null}function $(A,T,E,O){for(var Z=null,ee=null,te=T,ne=T=0,Ge=null;te!==null&&ne<E.length;ne++){te.index>ne?(Ge=te,te=null):Ge=te.sibling;var he=R(A,te,E[ne],O);if(he===null){te===null&&(te=Ge);break}e&&te&&he.alternate===null&&t(A,te),T=c(he,T,ne),ee===null?Z=he:ee.sibling=he,ee=he,te=Ge}if(ne===E.length)return i(A,te),Ae&&Dn(A,ne),Z;if(te===null){for(;ne<E.length;ne++)te=V(A,E[ne],O),te!==null&&(T=c(te,T,ne),ee===null?Z=te:ee.sibling=te,ee=te);return Ae&&Dn(A,ne),Z}for(te=o(A,te);ne<E.length;ne++)Ge=H(te,A,ne,E[ne],O),Ge!==null&&(e&&Ge.alternate!==null&&te.delete(Ge.key===null?ne:Ge.key),T=c(Ge,T,ne),ee===null?Z=Ge:ee.sibling=Ge,ee=Ge);return e&&te.forEach(function(wn){return t(A,wn)}),Ae&&Dn(A,ne),Z}function Q(A,T,E,O){var Z=X(E);if(typeof Z!="function")throw Error(s(150));if(E=Z.call(E),E==null)throw Error(s(151));for(var ee=Z=null,te=T,ne=T=0,Ge=null,he=E.next();te!==null&&!he.done;ne++,he=E.next()){te.index>ne?(Ge=te,te=null):Ge=te.sibling;var wn=R(A,te,he.value,O);if(wn===null){te===null&&(te=Ge);break}e&&te&&wn.alternate===null&&t(A,te),T=c(wn,T,ne),ee===null?Z=wn:ee.sibling=wn,ee=wn,te=Ge}if(he.done)return i(A,te),Ae&&Dn(A,ne),Z;if(te===null){for(;!he.done;ne++,he=E.next())he=V(A,he.value,O),he!==null&&(T=c(he,T,ne),ee===null?Z=he:ee.sibling=he,ee=he);return Ae&&Dn(A,ne),Z}for(te=o(A,te);!he.done;ne++,he=E.next())he=H(te,A,ne,he.value,O),he!==null&&(e&&he.alternate!==null&&te.delete(he.key===null?ne:he.key),T=c(he,T,ne),ee===null?Z=he:ee.sibling=he,ee=he);return e&&te.forEach(function(By){return t(A,By)}),Ae&&Dn(A,ne),Z}function Ie(A,T,E,O){if(typeof E=="object"&&E!==null&&E.type===oe&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case G:e:{for(var Z=E.key,ee=T;ee!==null;){if(ee.key===Z){if(Z=E.type,Z===oe){if(ee.tag===7){i(A,ee.sibling),T=l(ee,E.props.children),T.return=A,A=T;break e}}else if(ee.elementType===Z||typeof Z=="object"&&Z!==null&&Z.$$typeof===Se&&nd(Z)===ee.type){i(A,ee.sibling),T=l(ee,E.props),T.ref=ei(A,ee,E),T.return=A,A=T;break e}i(A,ee);break}else t(A,ee);ee=ee.sibling}E.type===oe?(T=On(E.props.children,A.mode,O,E.key),T.return=A,A=T):(O=Ds(E.type,E.key,E.props,null,A.mode,O),O.ref=ei(A,T,E),O.return=A,A=O)}return p(A);case ie:e:{for(ee=E.key;T!==null;){if(T.key===ee)if(T.tag===4&&T.stateNode.containerInfo===E.containerInfo&&T.stateNode.implementation===E.implementation){i(A,T.sibling),T=l(T,E.children||[]),T.return=A,A=T;break e}else{i(A,T);break}else t(A,T);T=T.sibling}T=rl(E,A.mode,O),T.return=A,A=T}return p(A);case Se:return ee=E._init,Ie(A,T,ee(E._payload),O)}if(Nr(E))return $(A,T,E,O);if(X(E))return Q(A,T,E,O);as(A,E)}return typeof E=="string"&&E!==""||typeof E=="number"?(E=""+E,T!==null&&T.tag===6?(i(A,T.sibling),T=l(T,E),T.return=A,A=T):(i(A,T),T=nl(E,A.mode,O),T.return=A,A=T),p(A)):i(A,T)}return Ie}var lr=rd(!0),id=rd(!1),ls=un(null),us=null,ur=null,fa=null;function ha(){fa=ur=us=null}function pa(e){var t=ls.current;Te(ls),e._currentValue=t}function ma(e,t,i){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===i)break;e=e.return}}function cr(e,t){us=e,fa=ur=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(ot=!0),e.firstContext=null)}function vt(e){var t=e._currentValue;if(fa!==e)if(e={context:e,memoizedValue:t,next:null},ur===null){if(us===null)throw Error(s(308));ur=e,us.dependencies={lanes:0,firstContext:e}}else ur=ur.next=e;return t}var Ln=null;function ga(e){Ln===null?Ln=[e]:Ln.push(e)}function sd(e,t,i,o){var l=t.interleaved;return l===null?(i.next=i,ga(t)):(i.next=l.next,l.next=i),t.interleaved=i,Qt(e,o)}function Qt(e,t){e.lanes|=t;var i=e.alternate;for(i!==null&&(i.lanes|=t),i=e,e=e.return;e!==null;)e.childLanes|=t,i=e.alternate,i!==null&&(i.childLanes|=t),i=e,e=e.return;return i.tag===3?i.stateNode:null}var fn=!1;function ya(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function od(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 qt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function hn(e,t,i){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(ue&2)!==0){var l=o.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),o.pending=t,Qt(e,i)}return l=o.interleaved,l===null?(t.next=t,ga(o)):(t.next=l.next,l.next=t),o.interleaved=t,Qt(e,i)}function cs(e,t,i){if(t=t.updateQueue,t!==null&&(t=t.shared,(i&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,i|=o,t.lanes=i,Do(e,i)}}function ad(e,t){var i=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,i===o)){var l=null,c=null;if(i=i.firstBaseUpdate,i!==null){do{var p={eventTime:i.eventTime,lane:i.lane,tag:i.tag,payload:i.payload,callback:i.callback,next:null};c===null?l=c=p:c=c.next=p,i=i.next}while(i!==null);c===null?l=c=t:c=c.next=t}else l=c=t;i={baseState:o.baseState,firstBaseUpdate:l,lastBaseUpdate:c,shared:o.shared,effects:o.effects},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=t:e.next=t,i.lastBaseUpdate=t}function ds(e,t,i,o){var l=e.updateQueue;fn=!1;var c=l.firstBaseUpdate,p=l.lastBaseUpdate,S=l.shared.pending;if(S!==null){l.shared.pending=null;var k=S,j=k.next;k.next=null,p===null?c=j:p.next=j,p=k;var F=e.alternate;F!==null&&(F=F.updateQueue,S=F.lastBaseUpdate,S!==p&&(S===null?F.firstBaseUpdate=j:S.next=j,F.lastBaseUpdate=k))}if(c!==null){var V=l.baseState;p=0,F=j=k=null,S=c;do{var R=S.lane,H=S.eventTime;if((o&R)===R){F!==null&&(F=F.next={eventTime:H,lane:0,tag:S.tag,payload:S.payload,callback:S.callback,next:null});e:{var $=e,Q=S;switch(R=t,H=i,Q.tag){case 1:if($=Q.payload,typeof $=="function"){V=$.call(H,V,R);break e}V=$;break e;case 3:$.flags=$.flags&-65537|128;case 0:if($=Q.payload,R=typeof $=="function"?$.call(H,V,R):$,R==null)break e;V=W({},V,R);break e;case 2:fn=!0}}S.callback!==null&&S.lane!==0&&(e.flags|=64,R=l.effects,R===null?l.effects=[S]:R.push(S))}else H={eventTime:H,lane:R,tag:S.tag,payload:S.payload,callback:S.callback,next:null},F===null?(j=F=H,k=V):F=F.next=H,p|=R;if(S=S.next,S===null){if(S=l.shared.pending,S===null)break;R=S,S=R.next,R.next=null,l.lastBaseUpdate=R,l.shared.pending=null}}while(!0);if(F===null&&(k=V),l.baseState=k,l.firstBaseUpdate=j,l.lastBaseUpdate=F,t=l.shared.interleaved,t!==null){l=t;do p|=l.lane,l=l.next;while(l!==t)}else c===null&&(l.shared.lanes=0);Vn|=p,e.lanes=p,e.memoizedState=V}}function ld(e,t,i){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var o=e[t],l=o.callback;if(l!==null){if(o.callback=null,o=i,typeof l!="function")throw Error(s(191,l));l.call(o)}}}var ti={},_t=un(ti),ni=un(ti),ri=un(ti);function Rn(e){if(e===ti)throw Error(s(174));return e}function va(e,t){switch(we(ri,t),we(ni,e),we(_t,ti),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:xo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=xo(t,e)}Te(_t),we(_t,t)}function dr(){Te(_t),Te(ni),Te(ri)}function ud(e){Rn(ri.current);var t=Rn(_t.current),i=xo(t,e.type);t!==i&&(we(ni,e),we(_t,i))}function xa(e){ni.current===e&&(Te(_t),Te(ni))}var Me=un(0);function fs(e){for(var t=e;t!==null;){if(t.tag===13){var i=t.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||i.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 wa=[];function Sa(){for(var e=0;e<wa.length;e++)wa[e]._workInProgressVersionPrimary=null;wa.length=0}var hs=b.ReactCurrentDispatcher,ka=b.ReactCurrentBatchConfig,Fn=0,De=null,Be=null,We=null,ps=!1,ii=!1,si=0,ly=0;function qe(){throw Error(s(321))}function Ta(e,t){if(t===null)return!1;for(var i=0;i<t.length&&i<e.length;i++)if(!At(e[i],t[i]))return!1;return!0}function Ca(e,t,i,o,l,c){if(Fn=c,De=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,hs.current=e===null||e.memoizedState===null?fy:hy,e=i(o,l),ii){c=0;do{if(ii=!1,si=0,25<=c)throw Error(s(301));c+=1,We=Be=null,t.updateQueue=null,hs.current=py,e=i(o,l)}while(ii)}if(hs.current=ys,t=Be!==null&&Be.next!==null,Fn=0,We=Be=De=null,ps=!1,t)throw Error(s(300));return e}function Pa(){var e=si!==0;return si=0,e}function zt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return We===null?De.memoizedState=We=e:We=We.next=e,We}function xt(){if(Be===null){var e=De.alternate;e=e!==null?e.memoizedState:null}else e=Be.next;var t=We===null?De.memoizedState:We.next;if(t!==null)We=t,Be=e;else{if(e===null)throw Error(s(310));Be=e,e={memoizedState:Be.memoizedState,baseState:Be.baseState,baseQueue:Be.baseQueue,queue:Be.queue,next:null},We===null?De.memoizedState=We=e:We=We.next=e}return We}function oi(e,t){return typeof t=="function"?t(e):t}function Aa(e){var t=xt(),i=t.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=e;var o=Be,l=o.baseQueue,c=i.pending;if(c!==null){if(l!==null){var p=l.next;l.next=c.next,c.next=p}o.baseQueue=l=c,i.pending=null}if(l!==null){c=l.next,o=o.baseState;var S=p=null,k=null,j=c;do{var F=j.lane;if((Fn&F)===F)k!==null&&(k=k.next={lane:0,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),o=j.hasEagerState?j.eagerState:e(o,j.action);else{var V={lane:F,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null};k===null?(S=k=V,p=o):k=k.next=V,De.lanes|=F,Vn|=F}j=j.next}while(j!==null&&j!==c);k===null?p=o:k.next=S,At(o,t.memoizedState)||(ot=!0),t.memoizedState=o,t.baseState=p,t.baseQueue=k,i.lastRenderedState=o}if(e=i.interleaved,e!==null){l=e;do c=l.lane,De.lanes|=c,Vn|=c,l=l.next;while(l!==e)}else l===null&&(i.lanes=0);return[t.memoizedState,i.dispatch]}function Ea(e){var t=xt(),i=t.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=e;var o=i.dispatch,l=i.pending,c=t.memoizedState;if(l!==null){i.pending=null;var p=l=l.next;do c=e(c,p.action),p=p.next;while(p!==l);At(c,t.memoizedState)||(ot=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),i.lastRenderedState=c}return[c,o]}function cd(){}function dd(e,t){var i=De,o=xt(),l=t(),c=!At(o.memoizedState,l);if(c&&(o.memoizedState=l,ot=!0),o=o.queue,ja(pd.bind(null,i,o,e),[e]),o.getSnapshot!==t||c||We!==null&&We.memoizedState.tag&1){if(i.flags|=2048,ai(9,hd.bind(null,i,o,l,t),void 0,null),He===null)throw Error(s(349));(Fn&30)!==0||fd(i,t,l)}return l}function fd(e,t,i){e.flags|=16384,e={getSnapshot:t,value:i},t=De.updateQueue,t===null?(t={lastEffect:null,stores:null},De.updateQueue=t,t.stores=[e]):(i=t.stores,i===null?t.stores=[e]:i.push(e))}function hd(e,t,i,o){t.value=i,t.getSnapshot=o,md(t)&&gd(e)}function pd(e,t,i){return i(function(){md(t)&&gd(e)})}function md(e){var t=e.getSnapshot;e=e.value;try{var i=t();return!At(e,i)}catch{return!0}}function gd(e){var t=Qt(e,1);t!==null&&Dt(t,e,1,-1)}function yd(e){var t=zt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:oi,lastRenderedState:e},t.queue=e,e=e.dispatch=dy.bind(null,De,e),[t.memoizedState,e]}function ai(e,t,i,o){return e={tag:e,create:t,destroy:i,deps:o,next:null},t=De.updateQueue,t===null?(t={lastEffect:null,stores:null},De.updateQueue=t,t.lastEffect=e.next=e):(i=t.lastEffect,i===null?t.lastEffect=e.next=e:(o=i.next,i.next=e,e.next=o,t.lastEffect=e)),e}function vd(){return xt().memoizedState}function ms(e,t,i,o){var l=zt();De.flags|=e,l.memoizedState=ai(1|t,i,void 0,o===void 0?null:o)}function gs(e,t,i,o){var l=xt();o=o===void 0?null:o;var c=void 0;if(Be!==null){var p=Be.memoizedState;if(c=p.destroy,o!==null&&Ta(o,p.deps)){l.memoizedState=ai(t,i,c,o);return}}De.flags|=e,l.memoizedState=ai(1|t,i,c,o)}function xd(e,t){return ms(8390656,8,e,t)}function ja(e,t){return gs(2048,8,e,t)}function wd(e,t){return gs(4,2,e,t)}function Sd(e,t){return gs(4,4,e,t)}function kd(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 Td(e,t,i){return i=i!=null?i.concat([e]):null,gs(4,4,kd.bind(null,t,e),i)}function Na(){}function Cd(e,t){var i=xt();t=t===void 0?null:t;var o=i.memoizedState;return o!==null&&t!==null&&Ta(t,o[1])?o[0]:(i.memoizedState=[e,t],e)}function Pd(e,t){var i=xt();t=t===void 0?null:t;var o=i.memoizedState;return o!==null&&t!==null&&Ta(t,o[1])?o[0]:(e=e(),i.memoizedState=[e,t],e)}function Ad(e,t,i){return(Fn&21)===0?(e.baseState&&(e.baseState=!1,ot=!0),e.memoizedState=i):(At(i,t)||(i=nc(),De.lanes|=i,Vn|=i,e.baseState=!0),t)}function uy(e,t){var i=ge;ge=i!==0&&4>i?i:4,e(!0);var o=ka.transition;ka.transition={};try{e(!1),t()}finally{ge=i,ka.transition=o}}function Ed(){return xt().memoizedState}function cy(e,t,i){var o=yn(e);if(i={lane:o,action:i,hasEagerState:!1,eagerState:null,next:null},jd(e))Nd(t,i);else if(i=sd(e,t,i,o),i!==null){var l=tt();Dt(i,e,o,l),Md(i,t,o)}}function dy(e,t,i){var o=yn(e),l={lane:o,action:i,hasEagerState:!1,eagerState:null,next:null};if(jd(e))Nd(t,l);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var p=t.lastRenderedState,S=c(p,i);if(l.hasEagerState=!0,l.eagerState=S,At(S,p)){var k=t.interleaved;k===null?(l.next=l,ga(t)):(l.next=k.next,k.next=l),t.interleaved=l;return}}catch{}finally{}i=sd(e,t,l,o),i!==null&&(l=tt(),Dt(i,e,o,l),Md(i,t,o))}}function jd(e){var t=e.alternate;return e===De||t!==null&&t===De}function Nd(e,t){ii=ps=!0;var i=e.pending;i===null?t.next=t:(t.next=i.next,i.next=t),e.pending=t}function Md(e,t,i){if((i&4194240)!==0){var o=t.lanes;o&=e.pendingLanes,i|=o,t.lanes=i,Do(e,i)}}var ys={readContext:vt,useCallback:qe,useContext:qe,useEffect:qe,useImperativeHandle:qe,useInsertionEffect:qe,useLayoutEffect:qe,useMemo:qe,useReducer:qe,useRef:qe,useState:qe,useDebugValue:qe,useDeferredValue:qe,useTransition:qe,useMutableSource:qe,useSyncExternalStore:qe,useId:qe,unstable_isNewReconciler:!1},fy={readContext:vt,useCallback:function(e,t){return zt().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:xd,useImperativeHandle:function(e,t,i){return i=i!=null?i.concat([e]):null,ms(4194308,4,kd.bind(null,t,e),i)},useLayoutEffect:function(e,t){return ms(4194308,4,e,t)},useInsertionEffect:function(e,t){return ms(4,2,e,t)},useMemo:function(e,t){var i=zt();return t=t===void 0?null:t,e=e(),i.memoizedState=[e,t],e},useReducer:function(e,t,i){var o=zt();return t=i!==void 0?i(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=cy.bind(null,De,e),[o.memoizedState,e]},useRef:function(e){var t=zt();return e={current:e},t.memoizedState=e},useState:yd,useDebugValue:Na,useDeferredValue:function(e){return zt().memoizedState=e},useTransition:function(){var e=yd(!1),t=e[0];return e=uy.bind(null,e[1]),zt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,i){var o=De,l=zt();if(Ae){if(i===void 0)throw Error(s(407));i=i()}else{if(i=t(),He===null)throw Error(s(349));(Fn&30)!==0||fd(o,t,i)}l.memoizedState=i;var c={value:i,getSnapshot:t};return l.queue=c,xd(pd.bind(null,o,c,e),[e]),o.flags|=2048,ai(9,hd.bind(null,o,c,i,t),void 0,null),i},useId:function(){var e=zt(),t=He.identifierPrefix;if(Ae){var i=Xt,o=Yt;i=(o&~(1<<32-Pt(o)-1)).toString(32)+i,t=":"+t+"R"+i,i=si++,0<i&&(t+="H"+i.toString(32)),t+=":"}else i=ly++,t=":"+t+"r"+i.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},hy={readContext:vt,useCallback:Cd,useContext:vt,useEffect:ja,useImperativeHandle:Td,useInsertionEffect:wd,useLayoutEffect:Sd,useMemo:Pd,useReducer:Aa,useRef:vd,useState:function(){return Aa(oi)},useDebugValue:Na,useDeferredValue:function(e){var t=xt();return Ad(t,Be.memoizedState,e)},useTransition:function(){var e=Aa(oi)[0],t=xt().memoizedState;return[e,t]},useMutableSource:cd,useSyncExternalStore:dd,useId:Ed,unstable_isNewReconciler:!1},py={readContext:vt,useCallback:Cd,useContext:vt,useEffect:ja,useImperativeHandle:Td,useInsertionEffect:wd,useLayoutEffect:Sd,useMemo:Pd,useReducer:Ea,useRef:vd,useState:function(){return Ea(oi)},useDebugValue:Na,useDeferredValue:function(e){var t=xt();return Be===null?t.memoizedState=e:Ad(t,Be.memoizedState,e)},useTransition:function(){var e=Ea(oi)[0],t=xt().memoizedState;return[e,t]},useMutableSource:cd,useSyncExternalStore:dd,useId:Ed,unstable_isNewReconciler:!1};function jt(e,t){if(e&&e.defaultProps){t=W({},t),e=e.defaultProps;for(var i in e)t[i]===void 0&&(t[i]=e[i]);return t}return t}function Ma(e,t,i,o){t=e.memoizedState,i=i(o,t),i=i==null?t:W({},t,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var vs={isMounted:function(e){return(e=e._reactInternals)?En(e)===e:!1},enqueueSetState:function(e,t,i){e=e._reactInternals;var o=tt(),l=yn(e),c=qt(o,l);c.payload=t,i!=null&&(c.callback=i),t=hn(e,c,l),t!==null&&(Dt(t,e,l,o),cs(t,e,l))},enqueueReplaceState:function(e,t,i){e=e._reactInternals;var o=tt(),l=yn(e),c=qt(o,l);c.tag=1,c.payload=t,i!=null&&(c.callback=i),t=hn(e,c,l),t!==null&&(Dt(t,e,l,o),cs(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var i=tt(),o=yn(e),l=qt(i,o);l.tag=2,t!=null&&(l.callback=t),t=hn(e,l,o),t!==null&&(Dt(t,e,o,i),cs(t,e,o))}};function Dd(e,t,i,o,l,c,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,c,p):t.prototype&&t.prototype.isPureReactComponent?!$r(i,o)||!$r(l,c):!0}function Ld(e,t,i){var o=!1,l=cn,c=t.contextType;return typeof c=="object"&&c!==null?c=vt(c):(l=st(t)?Nn:Qe.current,o=t.contextTypes,c=(o=o!=null)?ir(e,l):cn),t=new t(i,c),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=vs,e.stateNode=t,t._reactInternals=e,o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=c),t}function Rd(e,t,i,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(i,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(i,o),t.state!==e&&vs.enqueueReplaceState(t,t.state,null)}function Da(e,t,i,o){var l=e.stateNode;l.props=i,l.state=e.memoizedState,l.refs={},ya(e);var c=t.contextType;typeof c=="object"&&c!==null?l.context=vt(c):(c=st(t)?Nn:Qe.current,l.context=ir(e,c)),l.state=e.memoizedState,c=t.getDerivedStateFromProps,typeof c=="function"&&(Ma(e,t,c,i),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&&vs.enqueueReplaceState(l,l.state,null),ds(e,i,l,o),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function fr(e,t){try{var i="",o=t;do i+=de(o),o=o.return;while(o);var l=i}catch(c){l=`
|
||
Error generating stack: `+c.message+`
|
||
`+c.stack}return{value:e,source:t,stack:l,digest:null}}function La(e,t,i){return{value:e,source:null,stack:i??null,digest:t??null}}function Ra(e,t){try{console.error(t.value)}catch(i){setTimeout(function(){throw i})}}var my=typeof WeakMap=="function"?WeakMap:Map;function Fd(e,t,i){i=qt(-1,i),i.tag=3,i.payload={element:null};var o=t.value;return i.callback=function(){Ps||(Ps=!0,Ya=o),Ra(e,t)},i}function Vd(e,t,i){i=qt(-1,i),i.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var l=t.value;i.payload=function(){return o(l)},i.callback=function(){Ra(e,t)}}var c=e.stateNode;return c!==null&&typeof c.componentDidCatch=="function"&&(i.callback=function(){Ra(e,t),typeof o!="function"&&(mn===null?mn=new Set([this]):mn.add(this));var p=t.stack;this.componentDidCatch(t.value,{componentStack:p!==null?p:""})}),i}function Id(e,t,i){var o=e.pingCache;if(o===null){o=e.pingCache=new my;var l=new Set;o.set(t,l)}else l=o.get(t),l===void 0&&(l=new Set,o.set(t,l));l.has(i)||(l.add(i),e=Ny.bind(null,e,t,i),t.then(e,e))}function _d(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 zd(e,t,i,o,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,i.flags|=131072,i.flags&=-52805,i.tag===1&&(i.alternate===null?i.tag=17:(t=qt(-1,1),t.tag=2,hn(i,t,1))),i.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var gy=b.ReactCurrentOwner,ot=!1;function et(e,t,i,o){t.child=e===null?id(t,null,i,o):lr(t,e.child,i,o)}function Od(e,t,i,o,l){i=i.render;var c=t.ref;return cr(t,l),o=Ca(e,t,i,o,c,l),i=Pa(),e!==null&&!ot?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Zt(e,t,l)):(Ae&&i&&aa(t),t.flags|=1,et(e,t,o,l),t.child)}function Bd(e,t,i,o,l){if(e===null){var c=i.type;return typeof c=="function"&&!tl(c)&&c.defaultProps===void 0&&i.compare===null&&i.defaultProps===void 0?(t.tag=15,t.type=c,bd(e,t,c,o,l)):(e=Ds(i.type,null,o,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,(e.lanes&l)===0){var p=c.memoizedProps;if(i=i.compare,i=i!==null?i:$r,i(p,o)&&e.ref===t.ref)return Zt(e,t,l)}return t.flags|=1,e=xn(c,o),e.ref=t.ref,e.return=t,t.child=e}function bd(e,t,i,o,l){if(e!==null){var c=e.memoizedProps;if($r(c,o)&&e.ref===t.ref)if(ot=!1,t.pendingProps=o=c,(e.lanes&l)!==0)(e.flags&131072)!==0&&(ot=!0);else return t.lanes=e.lanes,Zt(e,t,l)}return Fa(e,t,i,o,l)}function Ud(e,t,i){var o=t.pendingProps,l=o.children,c=e!==null?e.memoizedState:null;if(o.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},we(pr,pt),pt|=i;else{if((i&1073741824)===0)return e=c!==null?c.baseLanes|i:i,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,we(pr,pt),pt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=c!==null?c.baseLanes:i,we(pr,pt),pt|=o}else c!==null?(o=c.baseLanes|i,t.memoizedState=null):o=i,we(pr,pt),pt|=o;return et(e,t,l,i),t.child}function Wd(e,t){var i=t.ref;(e===null&&i!==null||e!==null&&e.ref!==i)&&(t.flags|=512,t.flags|=2097152)}function Fa(e,t,i,o,l){var c=st(i)?Nn:Qe.current;return c=ir(t,c),cr(t,l),i=Ca(e,t,i,o,c,l),o=Pa(),e!==null&&!ot?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Zt(e,t,l)):(Ae&&o&&aa(t),t.flags|=1,et(e,t,i,l),t.child)}function Hd(e,t,i,o,l){if(st(i)){var c=!0;ns(t)}else c=!1;if(cr(t,l),t.stateNode===null)ws(e,t),Ld(t,i,o),Da(t,i,o,l),o=!0;else if(e===null){var p=t.stateNode,S=t.memoizedProps;p.props=S;var k=p.context,j=i.contextType;typeof j=="object"&&j!==null?j=vt(j):(j=st(i)?Nn:Qe.current,j=ir(t,j));var F=i.getDerivedStateFromProps,V=typeof F=="function"||typeof p.getSnapshotBeforeUpdate=="function";V||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(S!==o||k!==j)&&Rd(t,p,o,j),fn=!1;var R=t.memoizedState;p.state=R,ds(t,o,p,l),k=t.memoizedState,S!==o||R!==k||it.current||fn?(typeof F=="function"&&(Ma(t,i,F,o),k=t.memoizedState),(S=fn||Dd(t,i,S,o,R,k,j))?(V||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(t.flags|=4194308)):(typeof p.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=k),p.props=o,p.state=k,p.context=j,o=S):(typeof p.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{p=t.stateNode,od(e,t),S=t.memoizedProps,j=t.type===t.elementType?S:jt(t.type,S),p.props=j,V=t.pendingProps,R=p.context,k=i.contextType,typeof k=="object"&&k!==null?k=vt(k):(k=st(i)?Nn:Qe.current,k=ir(t,k));var H=i.getDerivedStateFromProps;(F=typeof H=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(S!==V||R!==k)&&Rd(t,p,o,k),fn=!1,R=t.memoizedState,p.state=R,ds(t,o,p,l);var $=t.memoizedState;S!==V||R!==$||it.current||fn?(typeof H=="function"&&(Ma(t,i,H,o),$=t.memoizedState),(j=fn||Dd(t,i,j,o,R,$,k)||!1)?(F||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(o,$,k),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(o,$,k)),typeof p.componentDidUpdate=="function"&&(t.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof p.componentDidUpdate!="function"||S===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||S===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=$),p.props=o,p.state=$,p.context=k,o=j):(typeof p.componentDidUpdate!="function"||S===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||S===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),o=!1)}return Va(e,t,i,o,c,l)}function Va(e,t,i,o,l,c){Wd(e,t);var p=(t.flags&128)!==0;if(!o&&!p)return l&&Xc(t,i,!1),Zt(e,t,c);o=t.stateNode,gy.current=t;var S=p&&typeof i.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&p?(t.child=lr(t,e.child,null,c),t.child=lr(t,null,S,c)):et(e,t,S,c),t.memoizedState=o.state,l&&Xc(t,i,!0),t.child}function Gd(e){var t=e.stateNode;t.pendingContext?$c(e,t.pendingContext,t.pendingContext!==t.context):t.context&&$c(e,t.context,!1),va(e,t.containerInfo)}function Kd(e,t,i,o,l){return ar(),da(l),t.flags|=256,et(e,t,i,o),t.child}var Ia={dehydrated:null,treeContext:null,retryLane:0};function _a(e){return{baseLanes:e,cachePool:null,transitions:null}}function $d(e,t,i){var o=t.pendingProps,l=Me.current,c=!1,p=(t.flags&128)!==0,S;if((S=p)||(S=e!==null&&e.memoizedState===null?!1:(l&2)!==0),S?(c=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),we(Me,l&1),e===null)return ca(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):(p=o.children,e=o.fallback,c?(o=t.mode,c=t.child,p={mode:"hidden",children:p},(o&1)===0&&c!==null?(c.childLanes=0,c.pendingProps=p):c=Ls(p,o,0,null),e=On(e,o,i,null),c.return=t,e.return=t,c.sibling=e,t.child=c,t.child.memoizedState=_a(i),t.memoizedState=Ia,e):za(t,p));if(l=e.memoizedState,l!==null&&(S=l.dehydrated,S!==null))return yy(e,t,p,o,S,l,i);if(c){c=o.fallback,p=t.mode,l=e.child,S=l.sibling;var k={mode:"hidden",children:o.children};return(p&1)===0&&t.child!==l?(o=t.child,o.childLanes=0,o.pendingProps=k,t.deletions=null):(o=xn(l,k),o.subtreeFlags=l.subtreeFlags&14680064),S!==null?c=xn(S,c):(c=On(c,p,i,null),c.flags|=2),c.return=t,o.return=t,o.sibling=c,t.child=o,o=c,c=t.child,p=e.child.memoizedState,p=p===null?_a(i):{baseLanes:p.baseLanes|i,cachePool:null,transitions:p.transitions},c.memoizedState=p,c.childLanes=e.childLanes&~i,t.memoizedState=Ia,o}return c=e.child,e=c.sibling,o=xn(c,{mode:"visible",children:o.children}),(t.mode&1)===0&&(o.lanes=i),o.return=t,o.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=o,t.memoizedState=null,o}function za(e,t){return t=Ls({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function xs(e,t,i,o){return o!==null&&da(o),lr(t,e.child,null,i),e=za(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function yy(e,t,i,o,l,c,p){if(i)return t.flags&256?(t.flags&=-257,o=La(Error(s(422))),xs(e,t,p,o)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(c=o.fallback,l=t.mode,o=Ls({mode:"visible",children:o.children},l,0,null),c=On(c,l,p,null),c.flags|=2,o.return=t,c.return=t,o.sibling=c,t.child=o,(t.mode&1)!==0&&lr(t,e.child,null,p),t.child.memoizedState=_a(p),t.memoizedState=Ia,c);if((t.mode&1)===0)return xs(e,t,p,null);if(l.data==="$!"){if(o=l.nextSibling&&l.nextSibling.dataset,o)var S=o.dgst;return o=S,c=Error(s(419)),o=La(c,o,void 0),xs(e,t,p,o)}if(S=(p&e.childLanes)!==0,ot||S){if(o=He,o!==null){switch(p&-p){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=(l&(o.suspendedLanes|p))!==0?0:l,l!==0&&l!==c.retryLane&&(c.retryLane=l,Qt(e,l),Dt(o,e,l,-1))}return el(),o=La(Error(s(421))),xs(e,t,p,o)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=My.bind(null,e),l._reactRetry=t,null):(e=c.treeContext,ht=ln(l.nextSibling),ft=t,Ae=!0,Et=null,e!==null&&(gt[yt++]=Yt,gt[yt++]=Xt,gt[yt++]=Mn,Yt=e.id,Xt=e.overflow,Mn=t),t=za(t,o.children),t.flags|=4096,t)}function Yd(e,t,i){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),ma(e.return,t,i)}function Oa(e,t,i,o,l){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:i,tailMode:l}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=o,c.tail=i,c.tailMode=l)}function Xd(e,t,i){var o=t.pendingProps,l=o.revealOrder,c=o.tail;if(et(e,t,o.children,i),o=Me.current,(o&2)!==0)o=o&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&&Yd(e,i,t);else if(e.tag===19)Yd(e,i,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if(we(Me,o),(t.mode&1)===0)t.memoizedState=null;else switch(l){case"forwards":for(i=t.child,l=null;i!==null;)e=i.alternate,e!==null&&fs(e)===null&&(l=i),i=i.sibling;i=l,i===null?(l=t.child,t.child=null):(l=i.sibling,i.sibling=null),Oa(t,!1,l,i,c);break;case"backwards":for(i=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&fs(e)===null){t.child=l;break}e=l.sibling,l.sibling=i,i=l,l=e}Oa(t,!0,i,null,c);break;case"together":Oa(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ws(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Zt(e,t,i){if(e!==null&&(t.dependencies=e.dependencies),Vn|=t.lanes,(i&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,i=xn(e,e.pendingProps),t.child=i,i.return=t;e.sibling!==null;)e=e.sibling,i=i.sibling=xn(e,e.pendingProps),i.return=t;i.sibling=null}return t.child}function vy(e,t,i){switch(t.tag){case 3:Gd(t),ar();break;case 5:ud(t);break;case 1:st(t.type)&&ns(t);break;case 4:va(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,l=t.memoizedProps.value;we(ls,o._currentValue),o._currentValue=l;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?(we(Me,Me.current&1),t.flags|=128,null):(i&t.child.childLanes)!==0?$d(e,t,i):(we(Me,Me.current&1),e=Zt(e,t,i),e!==null?e.sibling:null);we(Me,Me.current&1);break;case 19:if(o=(i&t.childLanes)!==0,(e.flags&128)!==0){if(o)return Xd(e,t,i);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),we(Me,Me.current),o)break;return null;case 22:case 23:return t.lanes=0,Ud(e,t,i)}return Zt(e,t,i)}var Qd,Ba,qd,Zd;Qd=function(e,t){for(var i=t.child;i!==null;){if(i.tag===5||i.tag===6)e.appendChild(i.stateNode);else if(i.tag!==4&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}},Ba=function(){},qd=function(e,t,i,o){var l=e.memoizedProps;if(l!==o){e=t.stateNode,Rn(_t.current);var c=null;switch(i){case"input":l=mo(e,l),o=mo(e,o),c=[];break;case"select":l=W({},l,{value:void 0}),o=W({},o,{value:void 0}),c=[];break;case"textarea":l=vo(e,l),o=vo(e,o),c=[];break;default:typeof l.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=Ji)}wo(i,o);var p;i=null;for(j in l)if(!o.hasOwnProperty(j)&&l.hasOwnProperty(j)&&l[j]!=null)if(j==="style"){var S=l[j];for(p in S)S.hasOwnProperty(p)&&(i||(i={}),i[p]="")}else j!=="dangerouslySetInnerHTML"&&j!=="children"&&j!=="suppressContentEditableWarning"&&j!=="suppressHydrationWarning"&&j!=="autoFocus"&&(u.hasOwnProperty(j)?c||(c=[]):(c=c||[]).push(j,null));for(j in o){var k=o[j];if(S=l!=null?l[j]:void 0,o.hasOwnProperty(j)&&k!==S&&(k!=null||S!=null))if(j==="style")if(S){for(p in S)!S.hasOwnProperty(p)||k&&k.hasOwnProperty(p)||(i||(i={}),i[p]="");for(p in k)k.hasOwnProperty(p)&&S[p]!==k[p]&&(i||(i={}),i[p]=k[p])}else i||(c||(c=[]),c.push(j,i)),i=k;else j==="dangerouslySetInnerHTML"?(k=k?k.__html:void 0,S=S?S.__html:void 0,k!=null&&S!==k&&(c=c||[]).push(j,k)):j==="children"?typeof k!="string"&&typeof k!="number"||(c=c||[]).push(j,""+k):j!=="suppressContentEditableWarning"&&j!=="suppressHydrationWarning"&&(u.hasOwnProperty(j)?(k!=null&&j==="onScroll"&&ke("scroll",e),c||S===k||(c=[])):(c=c||[]).push(j,k))}i&&(c=c||[]).push("style",i);var j=c;(t.updateQueue=j)&&(t.flags|=4)}},Zd=function(e,t,i,o){i!==o&&(t.flags|=4)};function li(e,t){if(!Ae)switch(e.tailMode){case"hidden":t=e.tail;for(var i=null;t!==null;)t.alternate!==null&&(i=t),t=t.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Ze(e){var t=e.alternate!==null&&e.alternate.child===e.child,i=0,o=0;if(t)for(var l=e.child;l!==null;)i|=l.lanes|l.childLanes,o|=l.subtreeFlags&14680064,o|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)i|=l.lanes|l.childLanes,o|=l.subtreeFlags,o|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=o,e.childLanes=i,t}function xy(e,t,i){var o=t.pendingProps;switch(la(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ze(t),null;case 1:return st(t.type)&&ts(),Ze(t),null;case 3:return o=t.stateNode,dr(),Te(it),Te(Qe),Sa(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(os(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Et!==null&&(qa(Et),Et=null))),Ba(e,t),Ze(t),null;case 5:xa(t);var l=Rn(ri.current);if(i=t.type,e!==null&&t.stateNode!=null)qd(e,t,i,o,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(t.stateNode===null)throw Error(s(166));return Ze(t),null}if(e=Rn(_t.current),os(t)){o=t.stateNode,i=t.type;var c=t.memoizedProps;switch(o[It]=t,o[Zr]=c,e=(t.mode&1)!==0,i){case"dialog":ke("cancel",o),ke("close",o);break;case"iframe":case"object":case"embed":ke("load",o);break;case"video":case"audio":for(l=0;l<Xr.length;l++)ke(Xr[l],o);break;case"source":ke("error",o);break;case"img":case"image":case"link":ke("error",o),ke("load",o);break;case"details":ke("toggle",o);break;case"input":Lu(o,c),ke("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!c.multiple},ke("invalid",o);break;case"textarea":Vu(o,c),ke("invalid",o)}wo(i,c),l=null;for(var p in c)if(c.hasOwnProperty(p)){var S=c[p];p==="children"?typeof S=="string"?o.textContent!==S&&(c.suppressHydrationWarning!==!0&&Zi(o.textContent,S,e),l=["children",S]):typeof S=="number"&&o.textContent!==""+S&&(c.suppressHydrationWarning!==!0&&Zi(o.textContent,S,e),l=["children",""+S]):u.hasOwnProperty(p)&&S!=null&&p==="onScroll"&&ke("scroll",o)}switch(i){case"input":Ni(o),Fu(o,c,!0);break;case"textarea":Ni(o),_u(o);break;case"select":case"option":break;default:typeof c.onClick=="function"&&(o.onclick=Ji)}o=l,t.updateQueue=o,o!==null&&(t.flags|=4)}else{p=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=zu(i)),e==="http://www.w3.org/1999/xhtml"?i==="script"?(e=p.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=p.createElement(i,{is:o.is}):(e=p.createElement(i),i==="select"&&(p=e,o.multiple?p.multiple=!0:o.size&&(p.size=o.size))):e=p.createElementNS(e,i),e[It]=t,e[Zr]=o,Qd(e,t,!1,!1),t.stateNode=e;e:{switch(p=So(i,o),i){case"dialog":ke("cancel",e),ke("close",e),l=o;break;case"iframe":case"object":case"embed":ke("load",e),l=o;break;case"video":case"audio":for(l=0;l<Xr.length;l++)ke(Xr[l],e);l=o;break;case"source":ke("error",e),l=o;break;case"img":case"image":case"link":ke("error",e),ke("load",e),l=o;break;case"details":ke("toggle",e),l=o;break;case"input":Lu(e,o),l=mo(e,o),ke("invalid",e);break;case"option":l=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},l=W({},o,{value:void 0}),ke("invalid",e);break;case"textarea":Vu(e,o),l=vo(e,o),ke("invalid",e);break;default:l=o}wo(i,l),S=l;for(c in S)if(S.hasOwnProperty(c)){var k=S[c];c==="style"?bu(e,k):c==="dangerouslySetInnerHTML"?(k=k?k.__html:void 0,k!=null&&Ou(e,k)):c==="children"?typeof k=="string"?(i!=="textarea"||k!=="")&&Mr(e,k):typeof k=="number"&&Mr(e,""+k):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(u.hasOwnProperty(c)?k!=null&&c==="onScroll"&&ke("scroll",e):k!=null&&B(e,c,k,p))}switch(i){case"input":Ni(e),Fu(e,o,!1);break;case"textarea":Ni(e),_u(e);break;case"option":o.value!=null&&e.setAttribute("value",""+me(o.value));break;case"select":e.multiple=!!o.multiple,c=o.value,c!=null?Kn(e,!!o.multiple,c,!1):o.defaultValue!=null&&Kn(e,!!o.multiple,o.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=Ji)}switch(i){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ze(t),null;case 6:if(e&&t.stateNode!=null)Zd(e,t,e.memoizedProps,o);else{if(typeof o!="string"&&t.stateNode===null)throw Error(s(166));if(i=Rn(ri.current),Rn(_t.current),os(t)){if(o=t.stateNode,i=t.memoizedProps,o[It]=t,(c=o.nodeValue!==i)&&(e=ft,e!==null))switch(e.tag){case 3:Zi(o.nodeValue,i,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Zi(o.nodeValue,i,(e.mode&1)!==0)}c&&(t.flags|=4)}else o=(i.nodeType===9?i:i.ownerDocument).createTextNode(o),o[It]=t,t.stateNode=o}return Ze(t),null;case 13:if(Te(Me),o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ae&&ht!==null&&(t.mode&1)!==0&&(t.flags&128)===0)td(),ar(),t.flags|=98560,c=!1;else if(c=os(t),o!==null&&o.dehydrated!==null){if(e===null){if(!c)throw Error(s(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(s(317));c[It]=t}else ar(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ze(t),c=!1}else Et!==null&&(qa(Et),Et=null),c=!0;if(!c)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=i,t):(o=o!==null,o!==(e!==null&&e.memoizedState!==null)&&o&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Me.current&1)!==0?be===0&&(be=3):el())),t.updateQueue!==null&&(t.flags|=4),Ze(t),null);case 4:return dr(),Ba(e,t),e===null&&Qr(t.stateNode.containerInfo),Ze(t),null;case 10:return pa(t.type._context),Ze(t),null;case 17:return st(t.type)&&ts(),Ze(t),null;case 19:if(Te(Me),c=t.memoizedState,c===null)return Ze(t),null;if(o=(t.flags&128)!==0,p=c.rendering,p===null)if(o)li(c,!1);else{if(be!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(p=fs(e),p!==null){for(t.flags|=128,li(c,!1),o=p.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=i,i=t.child;i!==null;)c=i,e=o,c.flags&=14680066,p=c.alternate,p===null?(c.childLanes=0,c.lanes=e,c.child=null,c.subtreeFlags=0,c.memoizedProps=null,c.memoizedState=null,c.updateQueue=null,c.dependencies=null,c.stateNode=null):(c.childLanes=p.childLanes,c.lanes=p.lanes,c.child=p.child,c.subtreeFlags=0,c.deletions=null,c.memoizedProps=p.memoizedProps,c.memoizedState=p.memoizedState,c.updateQueue=p.updateQueue,c.type=p.type,e=p.dependencies,c.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),i=i.sibling;return we(Me,Me.current&1|2),t.child}e=e.sibling}c.tail!==null&&Ve()>mr&&(t.flags|=128,o=!0,li(c,!1),t.lanes=4194304)}else{if(!o)if(e=fs(p),e!==null){if(t.flags|=128,o=!0,i=e.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),li(c,!0),c.tail===null&&c.tailMode==="hidden"&&!p.alternate&&!Ae)return Ze(t),null}else 2*Ve()-c.renderingStartTime>mr&&i!==1073741824&&(t.flags|=128,o=!0,li(c,!1),t.lanes=4194304);c.isBackwards?(p.sibling=t.child,t.child=p):(i=c.last,i!==null?i.sibling=p:t.child=p,c.last=p)}return c.tail!==null?(t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=Ve(),t.sibling=null,i=Me.current,we(Me,o?i&1|2:i&1),t):(Ze(t),null);case 22:case 23:return Ja(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&(t.mode&1)!==0?(pt&1073741824)!==0&&(Ze(t),t.subtreeFlags&6&&(t.flags|=8192)):Ze(t),null;case 24:return null;case 25:return null}throw Error(s(156,t.tag))}function wy(e,t){switch(la(t),t.tag){case 1:return st(t.type)&&ts(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return dr(),Te(it),Te(Qe),Sa(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return xa(t),null;case 13:if(Te(Me),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));ar()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Te(Me),null;case 4:return dr(),null;case 10:return pa(t.type._context),null;case 22:case 23:return Ja(),null;case 24:return null;default:return null}}var Ss=!1,Je=!1,Sy=typeof WeakSet=="function"?WeakSet:Set,K=null;function hr(e,t){var i=e.ref;if(i!==null)if(typeof i=="function")try{i(null)}catch(o){Re(e,t,o)}else i.current=null}function ba(e,t,i){try{i()}catch(o){Re(e,t,o)}}var Jd=!1;function ky(e,t){if(Jo=bi,e=Dc(),Go(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var o=i.getSelection&&i.getSelection();if(o&&o.rangeCount!==0){i=o.anchorNode;var l=o.anchorOffset,c=o.focusNode;o=o.focusOffset;try{i.nodeType,c.nodeType}catch{i=null;break e}var p=0,S=-1,k=-1,j=0,F=0,V=e,R=null;t:for(;;){for(var H;V!==i||l!==0&&V.nodeType!==3||(S=p+l),V!==c||o!==0&&V.nodeType!==3||(k=p+o),V.nodeType===3&&(p+=V.nodeValue.length),(H=V.firstChild)!==null;)R=V,V=H;for(;;){if(V===e)break t;if(R===i&&++j===l&&(S=p),R===c&&++F===o&&(k=p),(H=V.nextSibling)!==null)break;V=R,R=V.parentNode}V=H}i=S===-1||k===-1?null:{start:S,end:k}}else i=null}i=i||{start:0,end:0}}else i=null;for(ea={focusedElem:e,selectionRange:i},bi=!1,K=t;K!==null;)if(t=K,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,K=e;else for(;K!==null;){t=K;try{var $=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if($!==null){var Q=$.memoizedProps,Ie=$.memoizedState,A=t.stateNode,T=A.getSnapshotBeforeUpdate(t.elementType===t.type?Q:jt(t.type,Q),Ie);A.__reactInternalSnapshotBeforeUpdate=T}break;case 3:var E=t.stateNode.containerInfo;E.nodeType===1?E.textContent="":E.nodeType===9&&E.documentElement&&E.removeChild(E.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch(O){Re(t,t.return,O)}if(e=t.sibling,e!==null){e.return=t.return,K=e;break}K=t.return}return $=Jd,Jd=!1,$}function ui(e,t,i){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var l=o=o.next;do{if((l.tag&e)===e){var c=l.destroy;l.destroy=void 0,c!==void 0&&ba(t,i,c)}l=l.next}while(l!==o)}}function ks(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var i=t=t.next;do{if((i.tag&e)===e){var o=i.create;i.destroy=o()}i=i.next}while(i!==t)}}function Ua(e){var t=e.ref;if(t!==null){var i=e.stateNode;switch(e.tag){case 5:e=i;break;default:e=i}typeof t=="function"?t(e):t.current=e}}function ef(e){var t=e.alternate;t!==null&&(e.alternate=null,ef(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[It],delete t[Zr],delete t[ia],delete t[iy],delete t[sy])),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 tf(e){return e.tag===5||e.tag===3||e.tag===4}function nf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||tf(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 Wa(e,t,i){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?i.nodeType===8?i.parentNode.insertBefore(e,t):i.insertBefore(e,t):(i.nodeType===8?(t=i.parentNode,t.insertBefore(e,i)):(t=i,t.appendChild(e)),i=i._reactRootContainer,i!=null||t.onclick!==null||(t.onclick=Ji));else if(o!==4&&(e=e.child,e!==null))for(Wa(e,t,i),e=e.sibling;e!==null;)Wa(e,t,i),e=e.sibling}function Ha(e,t,i){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?i.insertBefore(e,t):i.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(Ha(e,t,i),e=e.sibling;e!==null;)Ha(e,t,i),e=e.sibling}var Ke=null,Nt=!1;function pn(e,t,i){for(i=i.child;i!==null;)rf(e,t,i),i=i.sibling}function rf(e,t,i){if(Vt&&typeof Vt.onCommitFiberUnmount=="function")try{Vt.onCommitFiberUnmount(Vi,i)}catch{}switch(i.tag){case 5:Je||hr(i,t);case 6:var o=Ke,l=Nt;Ke=null,pn(e,t,i),Ke=o,Nt=l,Ke!==null&&(Nt?(e=Ke,i=i.stateNode,e.nodeType===8?e.parentNode.removeChild(i):e.removeChild(i)):Ke.removeChild(i.stateNode));break;case 18:Ke!==null&&(Nt?(e=Ke,i=i.stateNode,e.nodeType===8?ra(e.parentNode,i):e.nodeType===1&&ra(e,i),br(e)):ra(Ke,i.stateNode));break;case 4:o=Ke,l=Nt,Ke=i.stateNode.containerInfo,Nt=!0,pn(e,t,i),Ke=o,Nt=l;break;case 0:case 11:case 14:case 15:if(!Je&&(o=i.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){l=o=o.next;do{var c=l,p=c.destroy;c=c.tag,p!==void 0&&((c&2)!==0||(c&4)!==0)&&ba(i,t,p),l=l.next}while(l!==o)}pn(e,t,i);break;case 1:if(!Je&&(hr(i,t),o=i.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=i.memoizedProps,o.state=i.memoizedState,o.componentWillUnmount()}catch(S){Re(i,t,S)}pn(e,t,i);break;case 21:pn(e,t,i);break;case 22:i.mode&1?(Je=(o=Je)||i.memoizedState!==null,pn(e,t,i),Je=o):pn(e,t,i);break;default:pn(e,t,i)}}function sf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var i=e.stateNode;i===null&&(i=e.stateNode=new Sy),t.forEach(function(o){var l=Dy.bind(null,e,o);i.has(o)||(i.add(o),o.then(l,l))})}}function Mt(e,t){var i=t.deletions;if(i!==null)for(var o=0;o<i.length;o++){var l=i[o];try{var c=e,p=t,S=p;e:for(;S!==null;){switch(S.tag){case 5:Ke=S.stateNode,Nt=!1;break e;case 3:Ke=S.stateNode.containerInfo,Nt=!0;break e;case 4:Ke=S.stateNode.containerInfo,Nt=!0;break e}S=S.return}if(Ke===null)throw Error(s(160));rf(c,p,l),Ke=null,Nt=!1;var k=l.alternate;k!==null&&(k.return=null),l.return=null}catch(j){Re(l,t,j)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)of(t,e),t=t.sibling}function of(e,t){var i=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Mt(t,e),Ot(e),o&4){try{ui(3,e,e.return),ks(3,e)}catch(Q){Re(e,e.return,Q)}try{ui(5,e,e.return)}catch(Q){Re(e,e.return,Q)}}break;case 1:Mt(t,e),Ot(e),o&512&&i!==null&&hr(i,i.return);break;case 5:if(Mt(t,e),Ot(e),o&512&&i!==null&&hr(i,i.return),e.flags&32){var l=e.stateNode;try{Mr(l,"")}catch(Q){Re(e,e.return,Q)}}if(o&4&&(l=e.stateNode,l!=null)){var c=e.memoizedProps,p=i!==null?i.memoizedProps:c,S=e.type,k=e.updateQueue;if(e.updateQueue=null,k!==null)try{S==="input"&&c.type==="radio"&&c.name!=null&&Ru(l,c),So(S,p);var j=So(S,c);for(p=0;p<k.length;p+=2){var F=k[p],V=k[p+1];F==="style"?bu(l,V):F==="dangerouslySetInnerHTML"?Ou(l,V):F==="children"?Mr(l,V):B(l,F,V,j)}switch(S){case"input":go(l,c);break;case"textarea":Iu(l,c);break;case"select":var R=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!c.multiple;var H=c.value;H!=null?Kn(l,!!c.multiple,H,!1):R!==!!c.multiple&&(c.defaultValue!=null?Kn(l,!!c.multiple,c.defaultValue,!0):Kn(l,!!c.multiple,c.multiple?[]:"",!1))}l[Zr]=c}catch(Q){Re(e,e.return,Q)}}break;case 6:if(Mt(t,e),Ot(e),o&4){if(e.stateNode===null)throw Error(s(162));l=e.stateNode,c=e.memoizedProps;try{l.nodeValue=c}catch(Q){Re(e,e.return,Q)}}break;case 3:if(Mt(t,e),Ot(e),o&4&&i!==null&&i.memoizedState.isDehydrated)try{br(t.containerInfo)}catch(Q){Re(e,e.return,Q)}break;case 4:Mt(t,e),Ot(e);break;case 13:Mt(t,e),Ot(e),l=e.child,l.flags&8192&&(c=l.memoizedState!==null,l.stateNode.isHidden=c,!c||l.alternate!==null&&l.alternate.memoizedState!==null||($a=Ve())),o&4&&sf(e);break;case 22:if(F=i!==null&&i.memoizedState!==null,e.mode&1?(Je=(j=Je)||F,Mt(t,e),Je=j):Mt(t,e),Ot(e),o&8192){if(j=e.memoizedState!==null,(e.stateNode.isHidden=j)&&!F&&(e.mode&1)!==0)for(K=e,F=e.child;F!==null;){for(V=K=F;K!==null;){switch(R=K,H=R.child,R.tag){case 0:case 11:case 14:case 15:ui(4,R,R.return);break;case 1:hr(R,R.return);var $=R.stateNode;if(typeof $.componentWillUnmount=="function"){o=R,i=R.return;try{t=o,$.props=t.memoizedProps,$.state=t.memoizedState,$.componentWillUnmount()}catch(Q){Re(o,i,Q)}}break;case 5:hr(R,R.return);break;case 22:if(R.memoizedState!==null){uf(V);continue}}H!==null?(H.return=R,K=H):uf(V)}F=F.sibling}e:for(F=null,V=e;;){if(V.tag===5){if(F===null){F=V;try{l=V.stateNode,j?(c=l.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none"):(S=V.stateNode,k=V.memoizedProps.style,p=k!=null&&k.hasOwnProperty("display")?k.display:null,S.style.display=Bu("display",p))}catch(Q){Re(e,e.return,Q)}}}else if(V.tag===6){if(F===null)try{V.stateNode.nodeValue=j?"":V.memoizedProps}catch(Q){Re(e,e.return,Q)}}else if((V.tag!==22&&V.tag!==23||V.memoizedState===null||V===e)&&V.child!==null){V.child.return=V,V=V.child;continue}if(V===e)break e;for(;V.sibling===null;){if(V.return===null||V.return===e)break e;F===V&&(F=null),V=V.return}F===V&&(F=null),V.sibling.return=V.return,V=V.sibling}}break;case 19:Mt(t,e),Ot(e),o&4&&sf(e);break;case 21:break;default:Mt(t,e),Ot(e)}}function Ot(e){var t=e.flags;if(t&2){try{e:{for(var i=e.return;i!==null;){if(tf(i)){var o=i;break e}i=i.return}throw Error(s(160))}switch(o.tag){case 5:var l=o.stateNode;o.flags&32&&(Mr(l,""),o.flags&=-33);var c=nf(e);Ha(e,c,l);break;case 3:case 4:var p=o.stateNode.containerInfo,S=nf(e);Wa(e,S,p);break;default:throw Error(s(161))}}catch(k){Re(e,e.return,k)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ty(e,t,i){K=e,af(e)}function af(e,t,i){for(var o=(e.mode&1)!==0;K!==null;){var l=K,c=l.child;if(l.tag===22&&o){var p=l.memoizedState!==null||Ss;if(!p){var S=l.alternate,k=S!==null&&S.memoizedState!==null||Je;S=Ss;var j=Je;if(Ss=p,(Je=k)&&!j)for(K=l;K!==null;)p=K,k=p.child,p.tag===22&&p.memoizedState!==null?cf(l):k!==null?(k.return=p,K=k):cf(l);for(;c!==null;)K=c,af(c),c=c.sibling;K=l,Ss=S,Je=j}lf(e)}else(l.subtreeFlags&8772)!==0&&c!==null?(c.return=l,K=c):lf(e)}}function lf(e){for(;K!==null;){var t=K;if((t.flags&8772)!==0){var i=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Je||ks(5,t);break;case 1:var o=t.stateNode;if(t.flags&4&&!Je)if(i===null)o.componentDidMount();else{var l=t.elementType===t.type?i.memoizedProps:jt(t.type,i.memoizedProps);o.componentDidUpdate(l,i.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var c=t.updateQueue;c!==null&&ld(t,c,o);break;case 3:var p=t.updateQueue;if(p!==null){if(i=null,t.child!==null)switch(t.child.tag){case 5:i=t.child.stateNode;break;case 1:i=t.child.stateNode}ld(t,p,i)}break;case 5:var S=t.stateNode;if(i===null&&t.flags&4){i=S;var k=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":k.autoFocus&&i.focus();break;case"img":k.src&&(i.src=k.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var j=t.alternate;if(j!==null){var F=j.memoizedState;if(F!==null){var V=F.dehydrated;V!==null&&br(V)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(s(163))}Je||t.flags&512&&Ua(t)}catch(R){Re(t,t.return,R)}}if(t===e){K=null;break}if(i=t.sibling,i!==null){i.return=t.return,K=i;break}K=t.return}}function uf(e){for(;K!==null;){var t=K;if(t===e){K=null;break}var i=t.sibling;if(i!==null){i.return=t.return,K=i;break}K=t.return}}function cf(e){for(;K!==null;){var t=K;try{switch(t.tag){case 0:case 11:case 15:var i=t.return;try{ks(4,t)}catch(k){Re(t,i,k)}break;case 1:var o=t.stateNode;if(typeof o.componentDidMount=="function"){var l=t.return;try{o.componentDidMount()}catch(k){Re(t,l,k)}}var c=t.return;try{Ua(t)}catch(k){Re(t,c,k)}break;case 5:var p=t.return;try{Ua(t)}catch(k){Re(t,p,k)}}}catch(k){Re(t,t.return,k)}if(t===e){K=null;break}var S=t.sibling;if(S!==null){S.return=t.return,K=S;break}K=t.return}}var Cy=Math.ceil,Ts=b.ReactCurrentDispatcher,Ga=b.ReactCurrentOwner,wt=b.ReactCurrentBatchConfig,ue=0,He=null,ze=null,$e=0,pt=0,pr=un(0),be=0,ci=null,Vn=0,Cs=0,Ka=0,di=null,at=null,$a=0,mr=1/0,Jt=null,Ps=!1,Ya=null,mn=null,As=!1,gn=null,Es=0,fi=0,Xa=null,js=-1,Ns=0;function tt(){return(ue&6)!==0?Ve():js!==-1?js:js=Ve()}function yn(e){return(e.mode&1)===0?1:(ue&2)!==0&&$e!==0?$e&-$e:ay.transition!==null?(Ns===0&&(Ns=nc()),Ns):(e=ge,e!==0||(e=window.event,e=e===void 0?16:dc(e.type)),e)}function Dt(e,t,i,o){if(50<fi)throw fi=0,Xa=null,Error(s(185));Ir(e,i,o),((ue&2)===0||e!==He)&&(e===He&&((ue&2)===0&&(Cs|=i),be===4&&vn(e,$e)),lt(e,o),i===1&&ue===0&&(t.mode&1)===0&&(mr=Ve()+500,rs&&dn()))}function lt(e,t){var i=e.callbackNode;ag(e,t);var o=zi(e,e===He?$e:0);if(o===0)i!==null&&Ju(i),e.callbackNode=null,e.callbackPriority=0;else if(t=o&-o,e.callbackPriority!==t){if(i!=null&&Ju(i),t===1)e.tag===0?oy(ff.bind(null,e)):Qc(ff.bind(null,e)),ny(function(){(ue&6)===0&&dn()}),i=null;else{switch(rc(o)){case 1:i=jo;break;case 4:i=ec;break;case 16:i=Fi;break;case 536870912:i=tc;break;default:i=Fi}i=wf(i,df.bind(null,e))}e.callbackPriority=t,e.callbackNode=i}}function df(e,t){if(js=-1,Ns=0,(ue&6)!==0)throw Error(s(327));var i=e.callbackNode;if(gr()&&e.callbackNode!==i)return null;var o=zi(e,e===He?$e:0);if(o===0)return null;if((o&30)!==0||(o&e.expiredLanes)!==0||t)t=Ms(e,o);else{t=o;var l=ue;ue|=2;var c=pf();(He!==e||$e!==t)&&(Jt=null,mr=Ve()+500,_n(e,t));do try{Ey();break}catch(S){hf(e,S)}while(!0);ha(),Ts.current=c,ue=l,ze!==null?t=0:(He=null,$e=0,t=be)}if(t!==0){if(t===2&&(l=No(e),l!==0&&(o=l,t=Qa(e,l))),t===1)throw i=ci,_n(e,0),vn(e,o),lt(e,Ve()),i;if(t===6)vn(e,o);else{if(l=e.current.alternate,(o&30)===0&&!Py(l)&&(t=Ms(e,o),t===2&&(c=No(e),c!==0&&(o=c,t=Qa(e,c))),t===1))throw i=ci,_n(e,0),vn(e,o),lt(e,Ve()),i;switch(e.finishedWork=l,e.finishedLanes=o,t){case 0:case 1:throw Error(s(345));case 2:zn(e,at,Jt);break;case 3:if(vn(e,o),(o&130023424)===o&&(t=$a+500-Ve(),10<t)){if(zi(e,0)!==0)break;if(l=e.suspendedLanes,(l&o)!==o){tt(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=na(zn.bind(null,e,at,Jt),t);break}zn(e,at,Jt);break;case 4:if(vn(e,o),(o&4194240)===o)break;for(t=e.eventTimes,l=-1;0<o;){var p=31-Pt(o);c=1<<p,p=t[p],p>l&&(l=p),o&=~c}if(o=l,o=Ve()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Cy(o/1960))-o,10<o){e.timeoutHandle=na(zn.bind(null,e,at,Jt),o);break}zn(e,at,Jt);break;case 5:zn(e,at,Jt);break;default:throw Error(s(329))}}}return lt(e,Ve()),e.callbackNode===i?df.bind(null,e):null}function Qa(e,t){var i=di;return e.current.memoizedState.isDehydrated&&(_n(e,t).flags|=256),e=Ms(e,t),e!==2&&(t=at,at=i,t!==null&&qa(t)),e}function qa(e){at===null?at=e:at.push.apply(at,e)}function Py(e){for(var t=e;;){if(t.flags&16384){var i=t.updateQueue;if(i!==null&&(i=i.stores,i!==null))for(var o=0;o<i.length;o++){var l=i[o],c=l.getSnapshot;l=l.value;try{if(!At(c(),l))return!1}catch{return!1}}}if(i=t.child,t.subtreeFlags&16384&&i!==null)i.return=t,t=i;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 vn(e,t){for(t&=~Ka,t&=~Cs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var i=31-Pt(t),o=1<<i;e[i]=-1,t&=~o}}function ff(e){if((ue&6)!==0)throw Error(s(327));gr();var t=zi(e,0);if((t&1)===0)return lt(e,Ve()),null;var i=Ms(e,t);if(e.tag!==0&&i===2){var o=No(e);o!==0&&(t=o,i=Qa(e,o))}if(i===1)throw i=ci,_n(e,0),vn(e,t),lt(e,Ve()),i;if(i===6)throw Error(s(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,zn(e,at,Jt),lt(e,Ve()),null}function Za(e,t){var i=ue;ue|=1;try{return e(t)}finally{ue=i,ue===0&&(mr=Ve()+500,rs&&dn())}}function In(e){gn!==null&&gn.tag===0&&(ue&6)===0&&gr();var t=ue;ue|=1;var i=wt.transition,o=ge;try{if(wt.transition=null,ge=1,e)return e()}finally{ge=o,wt.transition=i,ue=t,(ue&6)===0&&dn()}}function Ja(){pt=pr.current,Te(pr)}function _n(e,t){e.finishedWork=null,e.finishedLanes=0;var i=e.timeoutHandle;if(i!==-1&&(e.timeoutHandle=-1,ty(i)),ze!==null)for(i=ze.return;i!==null;){var o=i;switch(la(o),o.tag){case 1:o=o.type.childContextTypes,o!=null&&ts();break;case 3:dr(),Te(it),Te(Qe),Sa();break;case 5:xa(o);break;case 4:dr();break;case 13:Te(Me);break;case 19:Te(Me);break;case 10:pa(o.type._context);break;case 22:case 23:Ja()}i=i.return}if(He=e,ze=e=xn(e.current,null),$e=pt=t,be=0,ci=null,Ka=Cs=Vn=0,at=di=null,Ln!==null){for(t=0;t<Ln.length;t++)if(i=Ln[t],o=i.interleaved,o!==null){i.interleaved=null;var l=o.next,c=i.pending;if(c!==null){var p=c.next;c.next=l,o.next=p}i.pending=o}Ln=null}return e}function hf(e,t){do{var i=ze;try{if(ha(),hs.current=ys,ps){for(var o=De.memoizedState;o!==null;){var l=o.queue;l!==null&&(l.pending=null),o=o.next}ps=!1}if(Fn=0,We=Be=De=null,ii=!1,si=0,Ga.current=null,i===null||i.return===null){be=1,ci=t,ze=null;break}e:{var c=e,p=i.return,S=i,k=t;if(t=$e,S.flags|=32768,k!==null&&typeof k=="object"&&typeof k.then=="function"){var j=k,F=S,V=F.tag;if((F.mode&1)===0&&(V===0||V===11||V===15)){var R=F.alternate;R?(F.updateQueue=R.updateQueue,F.memoizedState=R.memoizedState,F.lanes=R.lanes):(F.updateQueue=null,F.memoizedState=null)}var H=_d(p);if(H!==null){H.flags&=-257,zd(H,p,S,c,t),H.mode&1&&Id(c,j,t),t=H,k=j;var $=t.updateQueue;if($===null){var Q=new Set;Q.add(k),t.updateQueue=Q}else $.add(k);break e}else{if((t&1)===0){Id(c,j,t),el();break e}k=Error(s(426))}}else if(Ae&&S.mode&1){var Ie=_d(p);if(Ie!==null){(Ie.flags&65536)===0&&(Ie.flags|=256),zd(Ie,p,S,c,t),da(fr(k,S));break e}}c=k=fr(k,S),be!==4&&(be=2),di===null?di=[c]:di.push(c),c=p;do{switch(c.tag){case 3:c.flags|=65536,t&=-t,c.lanes|=t;var A=Fd(c,k,t);ad(c,A);break e;case 1:S=k;var T=c.type,E=c.stateNode;if((c.flags&128)===0&&(typeof T.getDerivedStateFromError=="function"||E!==null&&typeof E.componentDidCatch=="function"&&(mn===null||!mn.has(E)))){c.flags|=65536,t&=-t,c.lanes|=t;var O=Vd(c,S,t);ad(c,O);break e}}c=c.return}while(c!==null)}gf(i)}catch(Z){t=Z,ze===i&&i!==null&&(ze=i=i.return);continue}break}while(!0)}function pf(){var e=Ts.current;return Ts.current=ys,e===null?ys:e}function el(){(be===0||be===3||be===2)&&(be=4),He===null||(Vn&268435455)===0&&(Cs&268435455)===0||vn(He,$e)}function Ms(e,t){var i=ue;ue|=2;var o=pf();(He!==e||$e!==t)&&(Jt=null,_n(e,t));do try{Ay();break}catch(l){hf(e,l)}while(!0);if(ha(),ue=i,Ts.current=o,ze!==null)throw Error(s(261));return He=null,$e=0,be}function Ay(){for(;ze!==null;)mf(ze)}function Ey(){for(;ze!==null&&!Zm();)mf(ze)}function mf(e){var t=xf(e.alternate,e,pt);e.memoizedProps=e.pendingProps,t===null?gf(e):ze=t,Ga.current=null}function gf(e){var t=e;do{var i=t.alternate;if(e=t.return,(t.flags&32768)===0){if(i=xy(i,t,pt),i!==null){ze=i;return}}else{if(i=wy(i,t),i!==null){i.flags&=32767,ze=i;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{be=6,ze=null;return}}if(t=t.sibling,t!==null){ze=t;return}ze=t=e}while(t!==null);be===0&&(be=5)}function zn(e,t,i){var o=ge,l=wt.transition;try{wt.transition=null,ge=1,jy(e,t,i,o)}finally{wt.transition=l,ge=o}return null}function jy(e,t,i,o){do gr();while(gn!==null);if((ue&6)!==0)throw Error(s(327));i=e.finishedWork;var l=e.finishedLanes;if(i===null)return null;if(e.finishedWork=null,e.finishedLanes=0,i===e.current)throw Error(s(177));e.callbackNode=null,e.callbackPriority=0;var c=i.lanes|i.childLanes;if(lg(e,c),e===He&&(ze=He=null,$e=0),(i.subtreeFlags&2064)===0&&(i.flags&2064)===0||As||(As=!0,wf(Fi,function(){return gr(),null})),c=(i.flags&15990)!==0,(i.subtreeFlags&15990)!==0||c){c=wt.transition,wt.transition=null;var p=ge;ge=1;var S=ue;ue|=4,Ga.current=null,ky(e,i),of(i,e),Yg(ea),bi=!!Jo,ea=Jo=null,e.current=i,Ty(i),Jm(),ue=S,ge=p,wt.transition=c}else e.current=i;if(As&&(As=!1,gn=e,Es=l),c=e.pendingLanes,c===0&&(mn=null),ng(i.stateNode),lt(e,Ve()),t!==null)for(o=e.onRecoverableError,i=0;i<t.length;i++)l=t[i],o(l.value,{componentStack:l.stack,digest:l.digest});if(Ps)throw Ps=!1,e=Ya,Ya=null,e;return(Es&1)!==0&&e.tag!==0&&gr(),c=e.pendingLanes,(c&1)!==0?e===Xa?fi++:(fi=0,Xa=e):fi=0,dn(),null}function gr(){if(gn!==null){var e=rc(Es),t=wt.transition,i=ge;try{if(wt.transition=null,ge=16>e?16:e,gn===null)var o=!1;else{if(e=gn,gn=null,Es=0,(ue&6)!==0)throw Error(s(331));var l=ue;for(ue|=4,K=e.current;K!==null;){var c=K,p=c.child;if((K.flags&16)!==0){var S=c.deletions;if(S!==null){for(var k=0;k<S.length;k++){var j=S[k];for(K=j;K!==null;){var F=K;switch(F.tag){case 0:case 11:case 15:ui(8,F,c)}var V=F.child;if(V!==null)V.return=F,K=V;else for(;K!==null;){F=K;var R=F.sibling,H=F.return;if(ef(F),F===j){K=null;break}if(R!==null){R.return=H,K=R;break}K=H}}}var $=c.alternate;if($!==null){var Q=$.child;if(Q!==null){$.child=null;do{var Ie=Q.sibling;Q.sibling=null,Q=Ie}while(Q!==null)}}K=c}}if((c.subtreeFlags&2064)!==0&&p!==null)p.return=c,K=p;else e:for(;K!==null;){if(c=K,(c.flags&2048)!==0)switch(c.tag){case 0:case 11:case 15:ui(9,c,c.return)}var A=c.sibling;if(A!==null){A.return=c.return,K=A;break e}K=c.return}}var T=e.current;for(K=T;K!==null;){p=K;var E=p.child;if((p.subtreeFlags&2064)!==0&&E!==null)E.return=p,K=E;else e:for(p=T;K!==null;){if(S=K,(S.flags&2048)!==0)try{switch(S.tag){case 0:case 11:case 15:ks(9,S)}}catch(Z){Re(S,S.return,Z)}if(S===p){K=null;break e}var O=S.sibling;if(O!==null){O.return=S.return,K=O;break e}K=S.return}}if(ue=l,dn(),Vt&&typeof Vt.onPostCommitFiberRoot=="function")try{Vt.onPostCommitFiberRoot(Vi,e)}catch{}o=!0}return o}finally{ge=i,wt.transition=t}}return!1}function yf(e,t,i){t=fr(i,t),t=Fd(e,t,1),e=hn(e,t,1),t=tt(),e!==null&&(Ir(e,1,t),lt(e,t))}function Re(e,t,i){if(e.tag===3)yf(e,e,i);else for(;t!==null;){if(t.tag===3){yf(t,e,i);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(mn===null||!mn.has(o))){e=fr(i,e),e=Vd(t,e,1),t=hn(t,e,1),e=tt(),t!==null&&(Ir(t,1,e),lt(t,e));break}}t=t.return}}function Ny(e,t,i){var o=e.pingCache;o!==null&&o.delete(t),t=tt(),e.pingedLanes|=e.suspendedLanes&i,He===e&&($e&i)===i&&(be===4||be===3&&($e&130023424)===$e&&500>Ve()-$a?_n(e,0):Ka|=i),lt(e,t)}function vf(e,t){t===0&&((e.mode&1)===0?t=1:(t=_i,_i<<=1,(_i&130023424)===0&&(_i=4194304)));var i=tt();e=Qt(e,t),e!==null&&(Ir(e,t,i),lt(e,i))}function My(e){var t=e.memoizedState,i=0;t!==null&&(i=t.retryLane),vf(e,i)}function Dy(e,t){var i=0;switch(e.tag){case 13:var o=e.stateNode,l=e.memoizedState;l!==null&&(i=l.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(s(314))}o!==null&&o.delete(t),vf(e,i)}var xf;xf=function(e,t,i){if(e!==null)if(e.memoizedProps!==t.pendingProps||it.current)ot=!0;else{if((e.lanes&i)===0&&(t.flags&128)===0)return ot=!1,vy(e,t,i);ot=(e.flags&131072)!==0}else ot=!1,Ae&&(t.flags&1048576)!==0&&qc(t,ss,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;ws(e,t),e=t.pendingProps;var l=ir(t,Qe.current);cr(t,i),l=Ca(null,t,o,e,l,i);var c=Pa();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,st(o)?(c=!0,ns(t)):c=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,ya(t),l.updater=vs,t.stateNode=l,l._reactInternals=t,Da(t,o,e,i),t=Va(null,t,o,!0,c,i)):(t.tag=0,Ae&&c&&aa(t),et(null,t,l,i),t=t.child),t;case 16:o=t.elementType;e:{switch(ws(e,t),e=t.pendingProps,l=o._init,o=l(o._payload),t.type=o,l=t.tag=Ry(o),e=jt(o,e),l){case 0:t=Fa(null,t,o,e,i);break e;case 1:t=Hd(null,t,o,e,i);break e;case 11:t=Od(null,t,o,e,i);break e;case 14:t=Bd(null,t,o,jt(o.type,e),i);break e}throw Error(s(306,o,""))}return t;case 0:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:jt(o,l),Fa(e,t,o,l,i);case 1:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:jt(o,l),Hd(e,t,o,l,i);case 3:e:{if(Gd(t),e===null)throw Error(s(387));o=t.pendingProps,c=t.memoizedState,l=c.element,od(e,t),ds(t,o,null,i);var p=t.memoizedState;if(o=p.element,c.isDehydrated)if(c={element:o,isDehydrated:!1,cache:p.cache,pendingSuspenseBoundaries:p.pendingSuspenseBoundaries,transitions:p.transitions},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){l=fr(Error(s(423)),t),t=Kd(e,t,o,i,l);break e}else if(o!==l){l=fr(Error(s(424)),t),t=Kd(e,t,o,i,l);break e}else for(ht=ln(t.stateNode.containerInfo.firstChild),ft=t,Ae=!0,Et=null,i=id(t,null,o,i),t.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(ar(),o===l){t=Zt(e,t,i);break e}et(e,t,o,i)}t=t.child}return t;case 5:return ud(t),e===null&&ca(t),o=t.type,l=t.pendingProps,c=e!==null?e.memoizedProps:null,p=l.children,ta(o,l)?p=null:c!==null&&ta(o,c)&&(t.flags|=32),Wd(e,t),et(e,t,p,i),t.child;case 6:return e===null&&ca(t),null;case 13:return $d(e,t,i);case 4:return va(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=lr(t,null,o,i):et(e,t,o,i),t.child;case 11:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:jt(o,l),Od(e,t,o,l,i);case 7:return et(e,t,t.pendingProps,i),t.child;case 8:return et(e,t,t.pendingProps.children,i),t.child;case 12:return et(e,t,t.pendingProps.children,i),t.child;case 10:e:{if(o=t.type._context,l=t.pendingProps,c=t.memoizedProps,p=l.value,we(ls,o._currentValue),o._currentValue=p,c!==null)if(At(c.value,p)){if(c.children===l.children&&!it.current){t=Zt(e,t,i);break e}}else for(c=t.child,c!==null&&(c.return=t);c!==null;){var S=c.dependencies;if(S!==null){p=c.child;for(var k=S.firstContext;k!==null;){if(k.context===o){if(c.tag===1){k=qt(-1,i&-i),k.tag=2;var j=c.updateQueue;if(j!==null){j=j.shared;var F=j.pending;F===null?k.next=k:(k.next=F.next,F.next=k),j.pending=k}}c.lanes|=i,k=c.alternate,k!==null&&(k.lanes|=i),ma(c.return,i,t),S.lanes|=i;break}k=k.next}}else if(c.tag===10)p=c.type===t.type?null:c.child;else if(c.tag===18){if(p=c.return,p===null)throw Error(s(341));p.lanes|=i,S=p.alternate,S!==null&&(S.lanes|=i),ma(p,i,t),p=c.sibling}else p=c.child;if(p!==null)p.return=c;else for(p=c;p!==null;){if(p===t){p=null;break}if(c=p.sibling,c!==null){c.return=p.return,p=c;break}p=p.return}c=p}et(e,t,l.children,i),t=t.child}return t;case 9:return l=t.type,o=t.pendingProps.children,cr(t,i),l=vt(l),o=o(l),t.flags|=1,et(e,t,o,i),t.child;case 14:return o=t.type,l=jt(o,t.pendingProps),l=jt(o.type,l),Bd(e,t,o,l,i);case 15:return bd(e,t,t.type,t.pendingProps,i);case 17:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:jt(o,l),ws(e,t),t.tag=1,st(o)?(e=!0,ns(t)):e=!1,cr(t,i),Ld(t,o,l),Da(t,o,l,i),Va(null,t,o,!0,e,i);case 19:return Xd(e,t,i);case 22:return Ud(e,t,i)}throw Error(s(156,t.tag))};function wf(e,t){return Zu(e,t)}function Ly(e,t,i,o){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function St(e,t,i,o){return new Ly(e,t,i,o)}function tl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ry(e){if(typeof e=="function")return tl(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ye)return 11;if(e===_e)return 14}return 2}function xn(e,t){var i=e.alternate;return i===null?(i=St(e.tag,t,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=t,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&14680064,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,t=e.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i}function Ds(e,t,i,o,l,c){var p=2;if(o=e,typeof e=="function")tl(e)&&(p=1);else if(typeof e=="string")p=5;else e:switch(e){case oe:return On(i.children,l,c,t);case J:p=8,l|=8;break;case re:return e=St(12,i,t,l|2),e.elementType=re,e.lanes=c,e;case je:return e=St(13,i,t,l),e.elementType=je,e.lanes=c,e;case Le:return e=St(19,i,t,l),e.elementType=Le,e.lanes=c,e;case Ne:return Ls(i,l,c,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case q:p=10;break e;case ce:p=9;break e;case ye:p=11;break e;case _e:p=14;break e;case Se:p=16,o=null;break e}throw Error(s(130,e==null?e:typeof e,""))}return t=St(p,i,t,l),t.elementType=e,t.type=o,t.lanes=c,t}function On(e,t,i,o){return e=St(7,e,o,t),e.lanes=i,e}function Ls(e,t,i,o){return e=St(22,e,o,t),e.elementType=Ne,e.lanes=i,e.stateNode={isHidden:!1},e}function nl(e,t,i){return e=St(6,e,null,t),e.lanes=i,e}function rl(e,t,i){return t=St(4,e.children!==null?e.children:[],e.key,t),t.lanes=i,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fy(e,t,i,o,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Mo(0),this.expirationTimes=Mo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mo(0),this.identifierPrefix=o,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function il(e,t,i,o,l,c,p,S,k){return e=new Fy(e,t,i,S,k),t===1?(t=1,c===!0&&(t|=8)):t=0,c=St(3,null,null,t),e.current=c,c.stateNode=e,c.memoizedState={element:o,isDehydrated:i,cache:null,transitions:null,pendingSuspenseBoundaries:null},ya(c),e}function Vy(e,t,i){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ie,key:o==null?null:""+o,children:e,containerInfo:t,implementation:i}}function Sf(e){if(!e)return cn;e=e._reactInternals;e:{if(En(e)!==e||e.tag!==1)throw Error(s(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(st(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(s(171))}if(e.tag===1){var i=e.type;if(st(i))return Yc(e,i,t)}return t}function kf(e,t,i,o,l,c,p,S,k){return e=il(i,o,!0,e,l,c,p,S,k),e.context=Sf(null),i=e.current,o=tt(),l=yn(i),c=qt(o,l),c.callback=t??null,hn(i,c,l),e.current.lanes=l,Ir(e,l,o),lt(e,o),e}function Rs(e,t,i,o){var l=t.current,c=tt(),p=yn(l);return i=Sf(i),t.context===null?t.context=i:t.pendingContext=i,t=qt(c,p),t.payload={element:e},o=o===void 0?null:o,o!==null&&(t.callback=o),e=hn(l,t,p),e!==null&&(Dt(e,l,p,c),cs(e,l,p)),p}function Fs(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 Tf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<t?i:t}}function sl(e,t){Tf(e,t),(e=e.alternate)&&Tf(e,t)}function Iy(){return null}var Cf=typeof reportError=="function"?reportError:function(e){console.error(e)};function ol(e){this._internalRoot=e}Vs.prototype.render=ol.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));Rs(e,t,null,null)},Vs.prototype.unmount=ol.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;In(function(){Rs(null,e,null,null)}),t[Kt]=null}};function Vs(e){this._internalRoot=e}Vs.prototype.unstable_scheduleHydration=function(e){if(e){var t=oc();e={blockedOn:null,target:e,priority:t};for(var i=0;i<sn.length&&t!==0&&t<sn[i].priority;i++);sn.splice(i,0,e),i===0&&uc(e)}};function al(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Is(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Pf(){}function _y(e,t,i,o,l){if(l){if(typeof o=="function"){var c=o;o=function(){var j=Fs(p);c.call(j)}}var p=kf(t,o,e,0,null,!1,!1,"",Pf);return e._reactRootContainer=p,e[Kt]=p.current,Qr(e.nodeType===8?e.parentNode:e),In(),p}for(;l=e.lastChild;)e.removeChild(l);if(typeof o=="function"){var S=o;o=function(){var j=Fs(k);S.call(j)}}var k=il(e,0,!1,null,null,!1,!1,"",Pf);return e._reactRootContainer=k,e[Kt]=k.current,Qr(e.nodeType===8?e.parentNode:e),In(function(){Rs(t,k,i,o)}),k}function _s(e,t,i,o,l){var c=i._reactRootContainer;if(c){var p=c;if(typeof l=="function"){var S=l;l=function(){var k=Fs(p);S.call(k)}}Rs(t,p,e,l)}else p=_y(i,t,e,l,o);return Fs(p)}ic=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var i=Vr(t.pendingLanes);i!==0&&(Do(t,i|1),lt(t,Ve()),(ue&6)===0&&(mr=Ve()+500,dn()))}break;case 13:In(function(){var o=Qt(e,1);if(o!==null){var l=tt();Dt(o,e,1,l)}}),sl(e,1)}},Lo=function(e){if(e.tag===13){var t=Qt(e,134217728);if(t!==null){var i=tt();Dt(t,e,134217728,i)}sl(e,134217728)}},sc=function(e){if(e.tag===13){var t=yn(e),i=Qt(e,t);if(i!==null){var o=tt();Dt(i,e,t,o)}sl(e,t)}},oc=function(){return ge},ac=function(e,t){var i=ge;try{return ge=e,t()}finally{ge=i}},Co=function(e,t,i){switch(t){case"input":if(go(e,i),t=i.name,i.type==="radio"&&t!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<i.length;t++){var o=i[t];if(o!==e&&o.form===e.form){var l=es(o);if(!l)throw Error(s(90));Du(o),go(o,l)}}}break;case"textarea":Iu(e,i);break;case"select":t=i.value,t!=null&&Kn(e,!!i.multiple,t,!1)}},Gu=Za,Ku=In;var zy={usingClientEntryPoint:!1,Events:[Jr,nr,es,Wu,Hu,Za]},hi={findFiberByHostInstance:jn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Oy={bundleType:hi.bundleType,version:hi.version,rendererPackageName:hi.rendererPackageName,rendererConfig:hi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:b.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Qu(e),e===null?null:e.stateNode},findFiberByHostInstance:hi.findFiberByHostInstance||Iy,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 zs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zs.isDisabled&&zs.supportsFiber)try{Vi=zs.inject(Oy),Vt=zs}catch{}}return ut.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=zy,ut.createPortal=function(e,t){var i=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!al(t))throw Error(s(200));return Vy(e,t,null,i)},ut.createRoot=function(e,t){if(!al(e))throw Error(s(299));var i=!1,o="",l=Cf;return t!=null&&(t.unstable_strictMode===!0&&(i=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=il(e,1,!1,null,null,i,!1,o,l),e[Kt]=t.current,Qr(e.nodeType===8?e.parentNode:e),new ol(t)},ut.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=Qu(t),e=e===null?null:e.stateNode,e},ut.flushSync=function(e){return In(e)},ut.hydrate=function(e,t,i){if(!Is(t))throw Error(s(200));return _s(null,e,t,!0,i)},ut.hydrateRoot=function(e,t,i){if(!al(e))throw Error(s(405));var o=i!=null&&i.hydratedSources||null,l=!1,c="",p=Cf;if(i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onRecoverableError!==void 0&&(p=i.onRecoverableError)),t=kf(t,null,e,1,i??null,l,!1,c,p),e[Kt]=t.current,Qr(e),o)for(e=0;e<o.length;e++)i=o[e],l=i._getVersion,l=l(i._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[i,l]:t.mutableSourceEagerHydrationData.push(i,l);return new Vs(t)},ut.render=function(e,t,i){if(!Is(t))throw Error(s(200));return _s(null,e,t,!1,i)},ut.unmountComponentAtNode=function(e){if(!Is(e))throw Error(s(40));return e._reactRootContainer?(In(function(){_s(null,null,e,!1,function(){e._reactRootContainer=null,e[Kt]=null})}),!0):!1},ut.unstable_batchedUpdates=Za,ut.unstable_renderSubtreeIntoContainer=function(e,t,i,o){if(!Is(i))throw Error(s(200));if(e==null||e._reactInternals===void 0)throw Error(s(38));return _s(e,t,i,!1,o)},ut.version="18.3.1-next-f1338f8080-20240426",ut}var Rf;function Yy(){if(Rf)return cl.exports;Rf=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),cl.exports=$y(),cl.exports}var Ff;function Xy(){if(Ff)return Os;Ff=1;var n=Yy();return Os.createRoot=n.createRoot,Os.hydrateRoot=n.hydrateRoot,Os}var Qy=Xy();const qy=Jh(Qy),nu=_.createContext({});function ru(n){const r=_.useRef(null);return r.current===null&&(r.current=n()),r.current}const Zy=typeof window<"u",ep=Zy?_.useLayoutEffect:_.useEffect,uo=_.createContext(null);function iu(n,r){n.indexOf(r)===-1&&n.push(r)}function Js(n,r){const s=n.indexOf(r);s>-1&&n.splice(s,1)}const Gt=(n,r,s)=>s>r?r:s<n?n:s;let su=()=>{};const Cn={},tp=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n);function np(n){return typeof n=="object"&&n!==null}const rp=n=>/^0[^.\s]+$/u.test(n);function ip(n){let r;return()=>(r===void 0&&(r=n()),r)}const Tt=n=>n,Jy=(n,r)=>s=>r(n(s)),Pi=(...n)=>n.reduce(Jy),Si=(n,r,s)=>{const a=r-n;return a===0?1:(s-n)/a};class ou{constructor(){this.subscriptions=[]}add(r){return iu(this.subscriptions,r),()=>Js(this.subscriptions,r)}notify(r,s,a){const u=this.subscriptions.length;if(u)if(u===1)this.subscriptions[0](r,s,a);else for(let f=0;f<u;f++){const d=this.subscriptions[f];d&&d(r,s,a)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const mt=n=>n*1e3,kt=n=>n/1e3;function sp(n,r){return r?n*(1e3/r):0}const op=(n,r,s)=>(((1-3*s+3*r)*n+(3*s-6*r))*n+3*r)*n,e0=1e-7,t0=12;function n0(n,r,s,a,u){let f,d,h=0;do d=r+(s-r)/2,f=op(d,a,u)-n,f>0?s=d:r=d;while(Math.abs(f)>e0&&++h<t0);return d}function Ai(n,r,s,a){if(n===r&&s===a)return Tt;const u=f=>n0(f,0,1,n,s);return f=>f===0||f===1?f:op(u(f),r,a)}const ap=n=>r=>r<=.5?n(2*r)/2:(2-n(2*(1-r)))/2,lp=n=>r=>1-n(1-r),up=Ai(.33,1.53,.69,.99),au=lp(up),cp=ap(au),dp=n=>n>=1?1:(n*=2)<1?.5*au(n):.5*(2-Math.pow(2,-10*(n-1))),lu=n=>1-Math.sin(Math.acos(n)),fp=lp(lu),hp=ap(lu),r0=Ai(.42,0,1,1),i0=Ai(0,0,.58,1),pp=Ai(.42,0,.58,1),s0=n=>Array.isArray(n)&&typeof n[0]!="number",mp=n=>Array.isArray(n)&&typeof n[0]=="number",o0={linear:Tt,easeIn:r0,easeInOut:pp,easeOut:i0,circIn:lu,circInOut:hp,circOut:fp,backIn:au,backInOut:cp,backOut:up,anticipate:dp},a0=n=>typeof n=="string",Vf=n=>{if(mp(n)){su(n.length===4);const[r,s,a,u]=n;return Ai(r,s,a,u)}else if(a0(n))return o0[n];return n},Bs=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function l0(n,r){let s=new Set,a=new Set,u=!1,f=!1;const d=new WeakSet;let h={delta:0,timestamp:0,isProcessing:!1};function g(y){d.has(y)&&(x.schedule(y),n()),y(h)}const x={schedule:(y,v=!1,w=!1)=>{const N=w&&u?s:a;return v&&d.add(y),N.add(y),y},cancel:y=>{a.delete(y),d.delete(y)},process:y=>{if(h=y,u){f=!0;return}u=!0;const v=s;s=a,a=v,s.forEach(g),s.clear(),u=!1,f&&(f=!1,x.process(y))}};return x}const u0=40;function gp(n,r){let s=!1,a=!0;const u={delta:0,timestamp:0,isProcessing:!1},f=()=>s=!0,d=Bs.reduce((B,b)=>(B[b]=l0(f),B),{}),{setup:h,read:g,resolveKeyframes:x,preUpdate:y,update:v,preRender:w,render:C,postRender:N}=d,D=()=>{const B=Cn.useManualTiming,b=B?u.timestamp:performance.now();s=!1,B||(u.delta=a?1e3/60:Math.max(Math.min(b-u.timestamp,u0),1)),u.timestamp=b,u.isProcessing=!0,h.process(u),g.process(u),x.process(u),y.process(u),v.process(u),w.process(u),C.process(u),N.process(u),u.isProcessing=!1,s&&r&&(a=!1,n(D))},M=()=>{s=!0,a=!0,u.isProcessing||n(D)};return{schedule:Bs.reduce((B,b)=>{const G=d[b];return B[b]=(ie,oe=!1,J=!1)=>(s||M(),G.schedule(ie,oe,J)),B},{}),cancel:B=>{for(let b=0;b<Bs.length;b++)d[Bs[b]].cancel(B)},state:u,steps:d}}const{schedule:ve,cancel:Pn,state:Ye,steps:hl}=gp(typeof requestAnimationFrame<"u"?requestAnimationFrame:Tt,!0);let Gs;function c0(){Gs=void 0}const nt={now:()=>(Gs===void 0&&nt.set(Ye.isProcessing||Cn.useManualTiming?Ye.timestamp:performance.now()),Gs),set:n=>{Gs=n,queueMicrotask(c0)}},yp=n=>r=>typeof r=="string"&&r.startsWith(n),vp=yp("--"),d0=yp("var(--"),uu=n=>d0(n)?f0.test(n.split("/*")[0].trim()):!1,f0=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function If(n){return typeof n!="string"?!1:n.split("/*")[0].includes("var(--")}const Ar={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},ki={...Ar,transform:n=>Gt(0,1,n)},bs={...Ar,default:1},yi=n=>Math.round(n*1e5)/1e5,cu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function h0(n){return n==null}const p0=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,du=(n,r)=>s=>!!(typeof s=="string"&&p0.test(s)&&s.startsWith(n)||r&&!h0(s)&&Object.prototype.hasOwnProperty.call(s,r)),xp=(n,r,s)=>a=>{if(typeof a!="string")return a;const[u,f,d,h]=a.match(cu);return{[n]:parseFloat(u),[r]:parseFloat(f),[s]:parseFloat(d),alpha:h!==void 0?parseFloat(h):1}},m0=n=>Gt(0,255,n),pl={...Ar,transform:n=>Math.round(m0(n))},Un={test:du("rgb","red"),parse:xp("red","green","blue"),transform:({red:n,green:r,blue:s,alpha:a=1})=>"rgba("+pl.transform(n)+", "+pl.transform(r)+", "+pl.transform(s)+", "+yi(ki.transform(a))+")"};function g0(n){let r="",s="",a="",u="";return n.length>5?(r=n.substring(1,3),s=n.substring(3,5),a=n.substring(5,7),u=n.substring(7,9)):(r=n.substring(1,2),s=n.substring(2,3),a=n.substring(3,4),u=n.substring(4,5),r+=r,s+=s,a+=a,u+=u),{red:parseInt(r,16),green:parseInt(s,16),blue:parseInt(a,16),alpha:u?parseInt(u,16)/255:1}}const Nl={test:du("#"),parse:g0,transform:Un.transform},Ei=n=>({test:r=>typeof r=="string"&&r.endsWith(n)&&r.split(" ").length===1,parse:parseFloat,transform:r=>`${r}${n}`}),Sn=Ei("deg"),Ht=Ei("%"),Y=Ei("px"),y0=Ei("vh"),v0=Ei("vw"),_f={...Ht,parse:n=>Ht.parse(n)/100,transform:n=>Ht.transform(n*100)},xr={test:du("hsl","hue"),parse:xp("hue","saturation","lightness"),transform:({hue:n,saturation:r,lightness:s,alpha:a=1})=>"hsla("+Math.round(n)+", "+Ht.transform(yi(r))+", "+Ht.transform(yi(s))+", "+yi(ki.transform(a))+")"},Oe={test:n=>Un.test(n)||Nl.test(n)||xr.test(n),parse:n=>Un.test(n)?Un.parse(n):xr.test(n)?xr.parse(n):Nl.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?Un.transform(n):xr.transform(n),getAnimatableNone:n=>{const r=Oe.parse(n);return r.alpha=0,Oe.transform(r)}},x0=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function w0(n){var r,s;return isNaN(n)&&typeof n=="string"&&(((r=n.match(cu))==null?void 0:r.length)||0)+(((s=n.match(x0))==null?void 0:s.length)||0)>0}const wp="number",Sp="color",S0="var",k0="var(",zf="${}",T0=/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 Cr(n){const r=n.toString(),s=[],a={color:[],number:[],var:[]},u=[];let f=0;const h=r.replace(T0,g=>(Oe.test(g)?(a.color.push(f),u.push(Sp),s.push(Oe.parse(g))):g.startsWith(k0)?(a.var.push(f),u.push(S0),s.push(g)):(a.number.push(f),u.push(wp),s.push(parseFloat(g))),++f,zf)).split(zf);return{values:s,split:h,indexes:a,types:u}}function C0(n){return Cr(n).values}function kp({split:n,types:r}){const s=n.length;return a=>{let u="";for(let f=0;f<s;f++)if(u+=n[f],a[f]!==void 0){const d=r[f];d===wp?u+=yi(a[f]):d===Sp?u+=Oe.transform(a[f]):u+=a[f]}return u}}function P0(n){return kp(Cr(n))}const A0=n=>typeof n=="number"?0:Oe.test(n)?Oe.getAnimatableNone(n):n,E0=(n,r)=>typeof n=="number"?r!=null&&r.trim().endsWith("/")?n:0:A0(n);function j0(n){const r=Cr(n);return kp(r)(r.values.map((a,u)=>E0(a,r.split[u])))}const Ft={test:w0,parse:C0,createTransformer:P0,getAnimatableNone:j0};function ml(n,r,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?n+(r-n)*6*s:s<1/2?r:s<2/3?n+(r-n)*(2/3-s)*6:n}function N0({hue:n,saturation:r,lightness:s,alpha:a}){n/=360,r/=100,s/=100;let u=0,f=0,d=0;if(!r)u=f=d=s;else{const h=s<.5?s*(1+r):s+r-s*r,g=2*s-h;u=ml(g,h,n+1/3),f=ml(g,h,n),d=ml(g,h,n-1/3)}return{red:Math.round(u*255),green:Math.round(f*255),blue:Math.round(d*255),alpha:a}}function eo(n,r){return s=>s>0?r:n}const Ce=(n,r,s)=>n+(r-n)*s,gl=(n,r,s)=>{const a=n*n,u=s*(r*r-a)+a;return u<0?0:Math.sqrt(u)},M0=[Nl,Un,xr],D0=n=>M0.find(r=>r.test(n));function Of(n){const r=D0(n);if(!r)return!1;let s=r.parse(n);return r===xr&&(s=N0(s)),s}const Bf=(n,r)=>{const s=Of(n),a=Of(r);if(!s||!a)return eo(n,r);const u={...s};return f=>(u.red=gl(s.red,a.red,f),u.green=gl(s.green,a.green,f),u.blue=gl(s.blue,a.blue,f),u.alpha=Ce(s.alpha,a.alpha,f),Un.transform(u))},Ml=new Set(["none","hidden"]);function L0(n,r){return Ml.has(n)?s=>s<=0?n:r:s=>s>=1?r:n}function R0(n,r){return s=>Ce(n,r,s)}function fu(n){return typeof n=="number"?R0:typeof n=="string"?uu(n)?eo:Oe.test(n)?Bf:I0:Array.isArray(n)?Tp:typeof n=="object"?Oe.test(n)?Bf:F0:eo}function Tp(n,r){const s=[...n],a=s.length,u=n.map((f,d)=>fu(f)(f,r[d]));return f=>{for(let d=0;d<a;d++)s[d]=u[d](f);return s}}function F0(n,r){const s={...n,...r},a={};for(const u in s)n[u]!==void 0&&r[u]!==void 0&&(a[u]=fu(n[u])(n[u],r[u]));return u=>{for(const f in a)s[f]=a[f](u);return s}}function V0(n,r){const s=[],a={color:0,var:0,number:0};for(let u=0;u<r.values.length;u++){const f=r.types[u],d=n.indexes[f][a[f]],h=n.values[d]??0;s[u]=h,a[f]++}return s}const I0=(n,r)=>{const s=Ft.createTransformer(r),a=Cr(n),u=Cr(r);return a.indexes.var.length===u.indexes.var.length&&a.indexes.color.length===u.indexes.color.length&&a.indexes.number.length>=u.indexes.number.length?Ml.has(n)&&!u.values.length||Ml.has(r)&&!a.values.length?L0(n,r):Pi(Tp(V0(a,u),u.values),s):eo(n,r)};function Cp(n,r,s){return typeof n=="number"&&typeof r=="number"&&typeof s=="number"?Ce(n,r,s):fu(n)(n,r)}const _0=n=>{const r=({timestamp:s})=>n(s);return{start:(s=!0)=>ve.update(r,s),stop:()=>Pn(r),now:()=>Ye.isProcessing?Ye.timestamp:nt.now()}},Pp=(n,r,s=10)=>{let a="";const u=Math.max(Math.round(r/s),2);for(let f=0;f<u;f++)a+=Math.round(n(f/(u-1))*1e4)/1e4+", ";return`linear(${a.substring(0,a.length-2)})`},to=2e4;function hu(n){let r=0;const s=50;let a=n.next(r);for(;!a.done&&r<to;)r+=s,a=n.next(r);return r>=to?1/0:r}function z0(n,r=100,s){const a=s({...n,keyframes:[0,r]}),u=Math.min(hu(a),to);return{type:"keyframes",ease:f=>a.next(u*f).value/r,duration:kt(u)}}const Fe={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};function Dl(n,r){return n*Math.sqrt(1-r*r)}const O0=12;function B0(n,r,s){let a=s;for(let u=1;u<O0;u++)a=a-n(a)/r(a);return a}const yl=.001;function b0({duration:n=Fe.duration,bounce:r=Fe.bounce,velocity:s=Fe.velocity,mass:a=Fe.mass}){let u,f,d=1-r;d=Gt(Fe.minDamping,Fe.maxDamping,d),n=Gt(Fe.minDuration,Fe.maxDuration,kt(n)),d<1?(u=x=>{const y=x*d,v=y*n,w=y-s,C=Dl(x,d),N=Math.exp(-v);return yl-w/C*N},f=x=>{const v=x*d*n,w=v*s+s,C=Math.pow(d,2)*Math.pow(x,2)*n,N=Math.exp(-v),D=Dl(Math.pow(x,2),d);return(-u(x)+yl>0?-1:1)*((w-C)*N)/D}):(u=x=>{const y=Math.exp(-x*n),v=(x-s)*n+1;return-yl+y*v},f=x=>{const y=Math.exp(-x*n),v=(s-x)*(n*n);return y*v});const h=5/n,g=B0(u,f,h);if(n=mt(n),isNaN(g))return{stiffness:Fe.stiffness,damping:Fe.damping,duration:n};{const x=Math.pow(g,2)*a;return{stiffness:x,damping:d*2*Math.sqrt(a*x),duration:n}}}const U0=["duration","bounce"],W0=["stiffness","damping","mass"];function bf(n,r){return r.some(s=>n[s]!==void 0)}function H0(n){let r={velocity:Fe.velocity,stiffness:Fe.stiffness,damping:Fe.damping,mass:Fe.mass,isResolvedFromDuration:!1,...n};if(!bf(n,W0)&&bf(n,U0))if(r.velocity=0,n.visualDuration){const s=n.visualDuration,a=2*Math.PI/(s*1.2),u=a*a,f=2*Gt(.05,1,1-(n.bounce||0))*Math.sqrt(u);r={...r,mass:Fe.mass,stiffness:u,damping:f}}else{const s=b0({...n,velocity:0});r={...r,...s,mass:Fe.mass},r.isResolvedFromDuration=!0}return r}function no(n=Fe.visualDuration,r=Fe.bounce){const s=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:r}:n;let{restSpeed:a,restDelta:u}=s;const f=s.keyframes[0],d=s.keyframes[s.keyframes.length-1],h={done:!1,value:f},{stiffness:g,damping:x,mass:y,duration:v,velocity:w,isResolvedFromDuration:C}=H0({...s,velocity:-kt(s.velocity||0)}),N=w||0,D=x/(2*Math.sqrt(g*y)),M=d-f,I=kt(Math.sqrt(g/y)),U=Math.abs(M)<5;a||(a=U?Fe.restSpeed.granular:Fe.restSpeed.default),u||(u=U?Fe.restDelta.granular:Fe.restDelta.default);let B,b,G,ie,oe,J;if(D<1)G=Dl(I,D),ie=(N+D*I*M)/G,B=q=>{const ce=Math.exp(-D*I*q);return d-ce*(ie*Math.sin(G*q)+M*Math.cos(G*q))},oe=D*I*ie+M*G,J=D*I*M-ie*G,b=q=>Math.exp(-D*I*q)*(oe*Math.sin(G*q)+J*Math.cos(G*q));else if(D===1){B=ce=>d-Math.exp(-I*ce)*(M+(N+I*M)*ce);const q=N+I*M;b=ce=>Math.exp(-I*ce)*(I*q*ce-N)}else{const q=I*Math.sqrt(D*D-1);B=Le=>{const _e=Math.exp(-D*I*Le),Se=Math.min(q*Le,300);return d-_e*((N+D*I*M)*Math.sinh(Se)+q*M*Math.cosh(Se))/q};const ce=(N+D*I*M)/q,ye=D*I*ce-M*q,je=D*I*M-ce*q;b=Le=>{const _e=Math.exp(-D*I*Le),Se=Math.min(q*Le,300);return _e*(ye*Math.sinh(Se)+je*Math.cosh(Se))}}const re={calculatedDuration:C&&v||null,velocity:q=>mt(b(q)),next:q=>{if(!C&&D<1){const ye=Math.exp(-D*I*q),je=Math.sin(G*q),Le=Math.cos(G*q),_e=d-ye*(ie*je+M*Le),Se=mt(ye*(oe*je+J*Le));return h.done=Math.abs(Se)<=a&&Math.abs(d-_e)<=u,h.value=h.done?d:_e,h}const ce=B(q);if(C)h.done=q>=v;else{const ye=mt(b(q));h.done=Math.abs(ye)<=a&&Math.abs(d-ce)<=u}return h.value=h.done?d:ce,h},toString:()=>{const q=Math.min(hu(re),to),ce=Pp(ye=>re.next(q*ye).value,q,30);return q+"ms "+ce},toTransition:()=>{}};return re}no.applyToOptions=n=>{const r=z0(n,100,no);return n.ease=r.ease,n.duration=mt(r.duration),n.type="keyframes",n};const G0=5;function Ap(n,r,s){const a=Math.max(r-G0,0);return sp(s-n(a),r-a)}function Ll({keyframes:n,velocity:r=0,power:s=.8,timeConstant:a=325,bounceDamping:u=10,bounceStiffness:f=500,modifyTarget:d,min:h,max:g,restDelta:x=.5,restSpeed:y}){const v=n[0],w={done:!1,value:v},C=J=>h!==void 0&&J<h||g!==void 0&&J>g,N=J=>h===void 0?g:g===void 0||Math.abs(h-J)<Math.abs(g-J)?h:g;let D=s*r;const M=v+D,I=d===void 0?M:d(M);I!==M&&(D=I-v);const U=J=>-D*Math.exp(-J/a),B=J=>I+U(J),b=J=>{const re=U(J),q=B(J);w.done=Math.abs(re)<=x,w.value=w.done?I:q};let G,ie;const oe=J=>{C(w.value)&&(G=J,ie=no({keyframes:[w.value,N(w.value)],velocity:Ap(B,J,w.value),damping:u,stiffness:f,restDelta:x,restSpeed:y}))};return oe(0),{calculatedDuration:null,next:J=>{let re=!1;return!ie&&G===void 0&&(re=!0,b(J),oe(J)),G!==void 0&&J>=G?ie.next(J-G):(!re&&b(J),w)}}}function K0(n,r,s){const a=[],u=s||Cn.mix||Cp,f=n.length-1;for(let d=0;d<f;d++){let h=u(n[d],n[d+1]);if(r){const g=Array.isArray(r)?r[d]||Tt:r;h=Pi(g,h)}a.push(h)}return a}function $0(n,r,{clamp:s=!0,ease:a,mixer:u}={}){const f=n.length;if(su(f===r.length),f===1)return()=>r[0];if(f===2&&r[0]===r[1])return()=>r[1];const d=n[0]===n[1];n[0]>n[f-1]&&(n=[...n].reverse(),r=[...r].reverse());const h=K0(r,a,u),g=h.length,x=y=>{if(d&&y<n[0])return r[0];let v=0;if(g>1)for(;v<n.length-2&&!(y<n[v+1]);v++);const w=Si(n[v],n[v+1],y);return h[v](w)};return s?y=>x(Gt(n[0],n[f-1],y)):x}function Y0(n,r){const s=n[n.length-1];for(let a=1;a<=r;a++){const u=Si(0,r,a);n.push(Ce(s,1,u))}}function X0(n){const r=[0];return Y0(r,n.length-1),r}function Q0(n,r){return n.map(s=>s*r)}function q0(n,r){return n.map(()=>r||pp).splice(0,n.length-1)}function vi({duration:n=300,keyframes:r,times:s,ease:a="easeInOut"}){const u=s0(a)?a.map(Vf):Vf(a),f={done:!1,value:r[0]},d=Q0(s&&s.length===r.length?s:X0(r),n),h=$0(d,r,{ease:Array.isArray(u)?u:q0(r,u)});return{calculatedDuration:n,next:g=>(f.value=h(g),f.done=g>=n,f)}}const Z0=n=>n!==null;function co(n,{repeat:r,repeatType:s="loop"},a,u=1){const f=n.filter(Z0),h=u<0||r&&s!=="loop"&&r%2===1?0:f.length-1;return!h||a===void 0?f[h]:a}const J0={decay:Ll,inertia:Ll,tween:vi,keyframes:vi,spring:no};function Ep(n){typeof n.type=="string"&&(n.type=J0[n.type])}class pu{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(r=>{this.resolve=r})}notifyFinished(){this.resolve()}then(r,s){return this.finished.then(r,s)}}const ev=n=>n/100;class ro extends pu{constructor(r){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var a,u;const{motionValue:s}=this.options;s&&s.updatedAt!==nt.now()&&this.tick(nt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(u=(a=this.options).onStop)==null||u.call(a))},this.options=r,this.initAnimation(),this.play(),r.autoplay===!1&&this.pause()}initAnimation(){const{options:r}=this;Ep(r);const{type:s=vi,repeat:a=0,repeatDelay:u=0,repeatType:f,velocity:d=0}=r;let{keyframes:h}=r;const g=s||vi;g!==vi&&typeof h[0]!="number"&&(this.mixKeyframes=Pi(ev,Cp(h[0],h[1])),h=[0,100]);const x=g({...r,keyframes:h});f==="mirror"&&(this.mirroredGenerator=g({...r,keyframes:[...h].reverse(),velocity:-d})),x.calculatedDuration===null&&(x.calculatedDuration=hu(x));const{calculatedDuration:y}=x;this.calculatedDuration=y,this.resolvedDuration=y+u,this.totalDuration=this.resolvedDuration*(a+1)-u,this.generator=x}updateTime(r){const s=Math.round(r-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=s}tick(r,s=!1){const{generator:a,totalDuration:u,mixKeyframes:f,mirroredGenerator:d,resolvedDuration:h,calculatedDuration:g}=this;if(this.startTime===null)return a.next(0);const{delay:x=0,keyframes:y,repeat:v,repeatType:w,repeatDelay:C,type:N,onUpdate:D,finalKeyframe:M}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,r):this.speed<0&&(this.startTime=Math.min(r-u/this.speed,this.startTime)),s?this.currentTime=r:this.updateTime(r);const I=this.currentTime-x*(this.playbackSpeed>=0?1:-1),U=this.playbackSpeed>=0?I<0:I>u;this.currentTime=Math.max(I,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let B=this.currentTime,b=a;if(v){const J=Math.min(this.currentTime,u)/h;let re=Math.floor(J),q=J%1;!q&&J>=1&&(q=1),q===1&&re--,re=Math.min(re,v+1),!!(re%2)&&(w==="reverse"?(q=1-q,C&&(q-=C/h)):w==="mirror"&&(b=d)),B=Gt(0,1,q)*h}let G;U?(this.delayState.value=y[0],G=this.delayState):G=b.next(B),f&&!U&&(G.value=f(G.value));let{done:ie}=G;!U&&g!==null&&(ie=this.playbackSpeed>=0?this.currentTime>=u:this.currentTime<=0);const oe=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&ie);return oe&&N!==Ll&&(G.value=co(y,this.options,M,this.speed)),D&&D(G.value),oe&&this.finish(),G}then(r,s){return this.finished.then(r,s)}get duration(){return kt(this.calculatedDuration)}get iterationDuration(){const{delay:r=0}=this.options||{};return this.duration+kt(r)}get time(){return kt(this.currentTime)}set time(r){r=mt(r),this.currentTime=r,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=r:this.driver&&(this.startTime=this.driver.now()-r/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=r,this.tick(r))}getGeneratorVelocity(){const r=this.currentTime;if(r<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(r);const s=this.generator.next(r).value;return Ap(a=>this.generator.next(a).value,r,s)}get speed(){return this.playbackSpeed}set speed(r){const s=this.playbackSpeed!==r;s&&this.driver&&this.updateTime(nt.now()),this.playbackSpeed=r,s&&this.driver&&(this.time=kt(this.currentTime))}play(){var u,f;if(this.isStopped)return;const{driver:r=_0,startTime:s}=this.options;this.driver||(this.driver=r(d=>this.tick(d))),(f=(u=this.options).onPlay)==null||f.call(u);const a=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=a):this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime||(this.startTime=s??a),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(nt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var r,s;this.notifyFinished(),this.teardown(),this.state="finished",(s=(r=this.options).onComplete)==null||s.call(r)}cancel(){var r,s;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(s=(r=this.options).onCancel)==null||s.call(r)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(r){return this.startTime=0,this.tick(r,!0)}attachTimeline(r){var s;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(s=this.driver)==null||s.stop(),r.observe(this)}}function tv(n){for(let r=1;r<n.length;r++)n[r]??(n[r]=n[r-1])}const Wn=n=>n*180/Math.PI,Rl=n=>{const r=Wn(Math.atan2(n[1],n[0]));return Fl(r)},nv={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:n=>(Math.abs(n[0])+Math.abs(n[3]))/2,rotate:Rl,rotateZ:Rl,skewX:n=>Wn(Math.atan(n[1])),skewY:n=>Wn(Math.atan(n[2])),skew:n=>(Math.abs(n[1])+Math.abs(n[2]))/2},Fl=n=>(n=n%360,n<0&&(n+=360),n),Uf=Rl,Wf=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),Hf=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),rv={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Wf,scaleY:Hf,scale:n=>(Wf(n)+Hf(n))/2,rotateX:n=>Fl(Wn(Math.atan2(n[6],n[5]))),rotateY:n=>Fl(Wn(Math.atan2(-n[2],n[0]))),rotateZ:Uf,rotate:Uf,skewX:n=>Wn(Math.atan(n[4])),skewY:n=>Wn(Math.atan(n[1])),skew:n=>(Math.abs(n[1])+Math.abs(n[4]))/2};function Vl(n){return n.includes("scale")?1:0}function Il(n,r){if(!n||n==="none")return Vl(r);const s=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let a,u;if(s)a=rv,u=s;else{const h=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);a=nv,u=h}if(!u)return Vl(r);const f=a[r],d=u[1].split(",").map(sv);return typeof f=="function"?f(d):d[f]}const iv=(n,r)=>{const{transform:s="none"}=getComputedStyle(n);return Il(s,r)};function sv(n){return parseFloat(n.trim())}const Er=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],jr=new Set(Er),Gf=n=>n===Ar||n===Y,ov=new Set(["x","y","z"]),av=Er.filter(n=>!ov.has(n));function lv(n){const r=[];return av.forEach(s=>{const a=n.getValue(s);a!==void 0&&(r.push([s,a.get()]),a.set(s.startsWith("scale")?1:0))}),r}const Tn={width:({x:n},{paddingLeft:r="0",paddingRight:s="0",boxSizing:a})=>{const u=n.max-n.min;return a==="border-box"?u:u-parseFloat(r)-parseFloat(s)},height:({y:n},{paddingTop:r="0",paddingBottom:s="0",boxSizing:a})=>{const u=n.max-n.min;return a==="border-box"?u:u-parseFloat(r)-parseFloat(s)},top:(n,{top:r})=>parseFloat(r),left:(n,{left:r})=>parseFloat(r),bottom:({y:n},{top:r})=>parseFloat(r)+(n.max-n.min),right:({x:n},{left:r})=>parseFloat(r)+(n.max-n.min),x:(n,{transform:r})=>Il(r,"x"),y:(n,{transform:r})=>Il(r,"y")};Tn.translateX=Tn.x;Tn.translateY=Tn.y;const Hn=new Set;let _l=!1,zl=!1,Ol=!1;function jp(){if(zl){const n=Array.from(Hn).filter(a=>a.needsMeasurement),r=new Set(n.map(a=>a.element)),s=new Map;r.forEach(a=>{const u=lv(a);u.length&&(s.set(a,u),a.render())}),n.forEach(a=>a.measureInitialState()),r.forEach(a=>{a.render();const u=s.get(a);u&&u.forEach(([f,d])=>{var h;(h=a.getValue(f))==null||h.set(d)})}),n.forEach(a=>a.measureEndState()),n.forEach(a=>{a.suspendedScrollY!==void 0&&window.scrollTo(0,a.suspendedScrollY)})}zl=!1,_l=!1,Hn.forEach(n=>n.complete(Ol)),Hn.clear()}function Np(){Hn.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(zl=!0)})}function uv(){Ol=!0,Np(),jp(),Ol=!1}class mu{constructor(r,s,a,u,f,d=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...r],this.onComplete=s,this.name=a,this.motionValue=u,this.element=f,this.isAsync=d}scheduleResolve(){this.state="scheduled",this.isAsync?(Hn.add(this),_l||(_l=!0,ve.read(Np),ve.resolveKeyframes(jp))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:r,name:s,element:a,motionValue:u}=this;if(r[0]===null){const f=u==null?void 0:u.get(),d=r[r.length-1];if(f!==void 0)r[0]=f;else if(a&&s){const h=a.readValue(s,d);h!=null&&(r[0]=h)}r[0]===void 0&&(r[0]=d),u&&f===void 0&&u.set(r[0])}tv(r)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(r=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,r),Hn.delete(this)}cancel(){this.state==="scheduled"&&(Hn.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const cv=n=>n.startsWith("--");function Mp(n,r,s){cv(r)?n.style.setProperty(r,s):n.style[r]=s}const dv={};function Dp(n,r){const s=ip(n);return()=>dv[r]??s()}const fv=Dp(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Lp=Dp(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),gi=([n,r,s,a])=>`cubic-bezier(${n}, ${r}, ${s}, ${a})`,Kf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:gi([0,.65,.55,1]),circOut:gi([.55,0,1,.45]),backIn:gi([.31,.01,.66,-.59]),backOut:gi([.33,1.53,.69,.99])};function Rp(n,r){if(n)return typeof n=="function"?Lp()?Pp(n,r):"ease-out":mp(n)?gi(n):Array.isArray(n)?n.map(s=>Rp(s,r)||Kf.easeOut):Kf[n]}function hv(n,r,s,{delay:a=0,duration:u=300,repeat:f=0,repeatType:d="loop",ease:h="easeOut",times:g}={},x=void 0){const y={[r]:s};g&&(y.offset=g);const v=Rp(h,u);Array.isArray(v)&&(y.easing=v);const w={delay:a,duration:u,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:f+1,direction:d==="reverse"?"alternate":"normal"};return x&&(w.pseudoElement=x),n.animate(y,w)}function Fp(n){return typeof n=="function"&&"applyToOptions"in n}function pv({type:n,...r}){return Fp(n)&&Lp()?n.applyToOptions(r):(r.duration??(r.duration=300),r.ease??(r.ease="easeOut"),r)}class Vp extends pu{constructor(r){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!r)return;const{element:s,name:a,keyframes:u,pseudoElement:f,allowFlatten:d=!1,finalKeyframe:h,onComplete:g}=r;this.isPseudoElement=!!f,this.allowFlatten=d,this.options=r,su(typeof r.type!="string");const x=pv(r);this.animation=hv(s,a,u,x,f),x.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!f){const y=co(u,this.options,h,this.speed);this.updateMotionValue&&this.updateMotionValue(y),Mp(s,a,y),this.animation.cancel()}g==null||g(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var r,s;(s=(r=this.animation).finish)==null||s.call(r)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:r}=this;r==="idle"||r==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var s,a,u;const r=(s=this.options)==null?void 0:s.element;!this.isPseudoElement&&(r!=null&&r.isConnected)&&((u=(a=this.animation).commitStyles)==null||u.call(a))}get duration(){var s,a;const r=((a=(s=this.animation.effect)==null?void 0:s.getComputedTiming)==null?void 0:a.call(s).duration)||0;return kt(Number(r))}get iterationDuration(){const{delay:r=0}=this.options||{};return this.duration+kt(r)}get time(){return kt(Number(this.animation.currentTime)||0)}set time(r){const s=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=mt(r),s&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(r){r<0&&(this.finishedTime=null),this.animation.playbackRate=r}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(r){this.manualStartTime=this.animation.startTime=r}attachTimeline({timeline:r,rangeStart:s,rangeEnd:a,observe:u}){var f;return this.allowFlatten&&((f=this.animation.effect)==null||f.updateTiming({easing:"linear"})),this.animation.onfinish=null,r&&fv()?(this.animation.timeline=r,s&&(this.animation.rangeStart=s),a&&(this.animation.rangeEnd=a),Tt):u(this)}}const Ip={anticipate:dp,backInOut:cp,circInOut:hp};function mv(n){return n in Ip}function gv(n){typeof n.ease=="string"&&mv(n.ease)&&(n.ease=Ip[n.ease])}const vl=10;class yv extends Vp{constructor(r){gv(r),Ep(r),super(r),r.startTime!==void 0&&r.autoplay!==!1&&(this.startTime=r.startTime),this.options=r}updateMotionValue(r){const{motionValue:s,onUpdate:a,onComplete:u,element:f,...d}=this.options;if(!s)return;if(r!==void 0){s.set(r);return}const h=new ro({...d,autoplay:!1}),g=Math.max(vl,nt.now()-this.startTime),x=Gt(0,vl,g-vl),y=h.sample(g).value,{name:v}=this.options;f&&v&&Mp(f,v,y),s.setWithVelocity(h.sample(Math.max(0,g-x)).value,y,x),h.stop()}}const $f=(n,r)=>r==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(Ft.test(n)||n==="0")&&!n.startsWith("url("));function vv(n){const r=n[0];if(n.length===1)return!0;for(let s=0;s<n.length;s++)if(n[s]!==r)return!0}function xv(n,r,s,a){const u=n[0];if(u===null)return!1;if(r==="display"||r==="visibility")return!0;const f=n[n.length-1],d=$f(u,r),h=$f(f,r);return!d||!h?!1:vv(n)||(s==="spring"||Fp(s))&&a}function Bl(n){n.duration=0,n.type="keyframes"}const _p=new Set(["opacity","clipPath","filter","transform"]),wv=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Sv(n){for(let r=0;r<n.length;r++)if(typeof n[r]=="string"&&wv.test(n[r]))return!0;return!1}const kv=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Tv=ip(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Cv(n){var v;const{motionValue:r,name:s,repeatDelay:a,repeatType:u,damping:f,type:d,keyframes:h}=n;if(!(((v=r==null?void 0:r.owner)==null?void 0:v.current)instanceof HTMLElement))return!1;const{onUpdate:x,transformTemplate:y}=r.owner.getProps();return Tv()&&s&&(_p.has(s)||kv.has(s)&&Sv(h))&&(s!=="transform"||!y)&&!x&&!a&&u!=="mirror"&&f!==0&&d!=="inertia"}const Pv=40;class Av extends pu{constructor({autoplay:r=!0,delay:s=0,type:a="keyframes",repeat:u=0,repeatDelay:f=0,repeatType:d="loop",keyframes:h,name:g,motionValue:x,element:y,...v}){var N;super(),this.stop=()=>{var D,M;this._animation&&(this._animation.stop(),(D=this.stopTimeline)==null||D.call(this)),(M=this.keyframeResolver)==null||M.cancel()},this.createdAt=nt.now();const w={autoplay:r,delay:s,type:a,repeat:u,repeatDelay:f,repeatType:d,name:g,motionValue:x,element:y,...v},C=(y==null?void 0:y.KeyframeResolver)||mu;this.keyframeResolver=new C(h,(D,M,I)=>this.onKeyframesResolved(D,M,w,!I),g,x,y),(N=this.keyframeResolver)==null||N.scheduleResolve()}onKeyframesResolved(r,s,a,u){var I,U;this.keyframeResolver=void 0;const{name:f,type:d,velocity:h,delay:g,isHandoff:x,onUpdate:y}=a;this.resolvedAt=nt.now();let v=!0;xv(r,f,d,h)||(v=!1,(Cn.instantAnimations||!g)&&(y==null||y(co(r,a,s))),r[0]=r[r.length-1],Bl(a),a.repeat=0);const C={startTime:u?this.resolvedAt?this.resolvedAt-this.createdAt>Pv?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...a,keyframes:r},N=v&&!x&&Cv(C),D=(U=(I=C.motionValue)==null?void 0:I.owner)==null?void 0:U.current;let M;if(N)try{M=new yv({...C,element:D})}catch{M=new ro(C)}else M=new ro(C);M.finished.then(()=>{this.notifyFinished()}).catch(Tt),this.pendingTimeline&&(this.stopTimeline=M.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=M}get finished(){return this._animation?this.animation.finished:this._finished}then(r,s){return this.finished.finally(r).then(()=>{})}get animation(){var r;return this._animation||((r=this.keyframeResolver)==null||r.resume(),uv()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(r){this.animation.time=r}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(r){this.animation.speed=r}get startTime(){return this.animation.startTime}attachTimeline(r){return this._animation?this.stopTimeline=this.animation.attachTimeline(r):this.pendingTimeline=r,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var r;this._animation&&this.animation.cancel(),(r=this.keyframeResolver)==null||r.cancel()}}function zp(n,r,s,a=0,u=1){const f=Array.from(n).sort((x,y)=>x.sortNodePosition(y)).indexOf(r),d=n.size,h=(d-1)*a;return typeof s=="function"?s(f,d):u===1?f*a:h-f*a}const Ev=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function jv(n){const r=Ev.exec(n);if(!r)return[,];const[,s,a,u]=r;return[`--${s??a}`,u]}function Op(n,r,s=1){const[a,u]=jv(n);if(!a)return;const f=window.getComputedStyle(r).getPropertyValue(a);if(f){const d=f.trim();return tp(d)?parseFloat(d):d}return uu(u)?Op(u,r,s+1):u}const Nv={type:"spring",stiffness:500,damping:25,restSpeed:10},Mv=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),Dv={type:"keyframes",duration:.8},Lv={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Rv=(n,{keyframes:r})=>r.length>2?Dv:jr.has(n)?n.startsWith("scale")?Mv(r[1]):Nv:Lv;function Bp(n,r){if(n!=null&&n.inherit&&r){const{inherit:s,...a}=n;return{...r,...a}}return n}function gu(n,r){const s=(n==null?void 0:n[r])??(n==null?void 0:n.default)??n;return s!==n?Bp(s,n):s}const Fv=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Vv(n){for(const r in n)if(!Fv.has(r))return!0;return!1}const yu=(n,r,s,a={},u,f)=>d=>{const h=gu(a,n)||{},g=h.delay||a.delay||0;let{elapsed:x=0}=a;x=x-mt(g);const y={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:r.getVelocity(),...h,delay:-x,onUpdate:w=>{r.set(w),h.onUpdate&&h.onUpdate(w)},onComplete:()=>{d(),h.onComplete&&h.onComplete()},name:n,motionValue:r,element:f?void 0:u};Vv(h)||Object.assign(y,Rv(n,y)),y.duration&&(y.duration=mt(y.duration)),y.repeatDelay&&(y.repeatDelay=mt(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let v=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(Bl(y),y.delay===0&&(v=!0)),(Cn.instantAnimations||Cn.skipAnimations||u!=null&&u.shouldSkipAnimations)&&(v=!0,Bl(y),y.delay=0),y.allowFlatten=!h.type&&!h.ease,v&&!f&&r.get()!==void 0){const w=co(y.keyframes,h);if(w!==void 0){ve.update(()=>{y.onUpdate(w),y.onComplete()});return}}return h.isSync?new ro(y):new Av(y)};function Yf(n){const r=[{},{}];return n==null||n.values.forEach((s,a)=>{r[0][a]=s.get(),r[1][a]=s.getVelocity()}),r}function vu(n,r,s,a){if(typeof r=="function"){const[u,f]=Yf(a);r=r(s!==void 0?s:n.custom,u,f)}if(typeof r=="string"&&(r=n.variants&&n.variants[r]),typeof r=="function"){const[u,f]=Yf(a);r=r(s!==void 0?s:n.custom,u,f)}return r}function Gn(n,r,s){const a=n.getProps();return vu(a,r,s!==void 0?s:a.custom,n)}const bp=new Set(["width","height","top","left","right","bottom",...Er]),Xf=30,Iv=n=>!isNaN(parseFloat(n));class _v{constructor(r,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=a=>{var f;const u=nt.now();if(this.updatedAt!==u&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&((f=this.events.change)==null||f.notify(this.current),this.dependents))for(const d of this.dependents)d.dirty()},this.hasAnimated=!1,this.setCurrent(r),this.owner=s.owner}setCurrent(r){this.current=r,this.updatedAt=nt.now(),this.canTrackVelocity===null&&r!==void 0&&(this.canTrackVelocity=Iv(this.current))}setPrevFrameValue(r=this.current){this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt}onChange(r){return this.on("change",r)}on(r,s){this.events[r]||(this.events[r]=new ou);const a=this.events[r].add(s);return r==="change"?()=>{a(),ve.read(()=>{this.events.change.getSize()||this.stop()})}:a}clearListeners(){for(const r in this.events)this.events[r].clear()}attach(r,s){this.passiveEffect=r,this.stopPassiveEffect=s}set(r){this.passiveEffect?this.passiveEffect(r,this.updateAndNotify):this.updateAndNotify(r)}setWithVelocity(r,s,a){this.set(s),this.prev=void 0,this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt-a}jump(r,s=!0){this.updateAndNotify(r),this.prev=r,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var r;(r=this.events.change)==null||r.notify(this.current)}addDependent(r){this.dependents||(this.dependents=new Set),this.dependents.add(r)}removeDependent(r){this.dependents&&this.dependents.delete(r)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const r=nt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||r-this.updatedAt>Xf)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,Xf);return sp(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(r){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=r(s),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var r,s;(r=this.dependents)==null||r.clear(),(s=this.events.destroy)==null||s.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Pr(n,r){return new _v(n,r)}const bl=n=>Array.isArray(n);function zv(n,r,s){n.hasValue(r)?n.getValue(r).set(s):n.addValue(r,Pr(s))}function Ov(n){return bl(n)?n[n.length-1]||0:n}function Bv(n,r){const s=Gn(n,r);let{transitionEnd:a={},transition:u={},...f}=s||{};f={...f,...a};for(const d in f){const h=Ov(f[d]);zv(n,d,h)}}const Xe=n=>!!(n&&n.getVelocity);function bv(n){return!!(Xe(n)&&n.add)}function Ul(n,r){const s=n.getValue("willChange");if(bv(s))return s.add(r);if(!s&&Cn.WillChange){const a=new Cn.WillChange("auto");n.addValue("willChange",a),a.add(r)}}function xu(n){return n.replace(/([A-Z])/g,r=>`-${r.toLowerCase()}`)}const Uv="framerAppearId",Up="data-"+xu(Uv);function Wp(n){return n.props[Up]}function Wv({protectedKeys:n,needsAnimating:r},s){const a=n.hasOwnProperty(s)&&r[s]!==!0;return r[s]=!1,a}function Hp(n,r,{delay:s=0,transitionOverride:a,type:u}={}){let{transition:f,transitionEnd:d,...h}=r;const g=n.getDefaultTransition();f=f?Bp(f,g):g;const x=f==null?void 0:f.reduceMotion;a&&(f=a);const y=[],v=u&&n.animationState&&n.animationState.getState()[u];for(const w in h){const C=n.getValue(w,n.latestValues[w]??null),N=h[w];if(N===void 0||v&&Wv(v,w))continue;const D={delay:s,...gu(f||{},w)},M=C.get();if(M!==void 0&&!C.isAnimating()&&!Array.isArray(N)&&N===M&&!D.velocity){ve.update(()=>C.set(N));continue}let I=!1;if(window.MotionHandoffAnimation){const b=Wp(n);if(b){const G=window.MotionHandoffAnimation(b,w,ve);G!==null&&(D.startTime=G,I=!0)}}Ul(n,w);const U=x??n.shouldReduceMotion;C.start(yu(w,C,N,U&&bp.has(w)?{type:!1}:D,n,I));const B=C.animation;B&&y.push(B)}if(d){const w=()=>ve.update(()=>{d&&Bv(n,d)});y.length?Promise.all(y).then(w):w()}return y}function Wl(n,r,s={}){var g;const a=Gn(n,r,s.type==="exit"?(g=n.presenceContext)==null?void 0:g.custom:void 0);let{transition:u=n.getDefaultTransition()||{}}=a||{};s.transitionOverride&&(u=s.transitionOverride);const f=a?()=>Promise.all(Hp(n,a,s)):()=>Promise.resolve(),d=n.variantChildren&&n.variantChildren.size?(x=0)=>{const{delayChildren:y=0,staggerChildren:v,staggerDirection:w}=u;return Hv(n,r,x,y,v,w,s)}:()=>Promise.resolve(),{when:h}=u;if(h){const[x,y]=h==="beforeChildren"?[f,d]:[d,f];return x().then(()=>y())}else return Promise.all([f(),d(s.delay)])}function Hv(n,r,s=0,a=0,u=0,f=1,d){const h=[];for(const g of n.variantChildren)g.notify("AnimationStart",r),h.push(Wl(g,r,{...d,delay:s+(typeof a=="function"?0:a)+zp(n.variantChildren,g,a,u,f)}).then(()=>g.notify("AnimationComplete",r)));return Promise.all(h)}function Gv(n,r,s={}){n.notify("AnimationStart",r);let a;if(Array.isArray(r)){const u=r.map(f=>Wl(n,f,s));a=Promise.all(u)}else if(typeof r=="string")a=Wl(n,r,s);else{const u=typeof r=="function"?Gn(n,r,s.custom):r;a=Promise.all(Hp(n,u,s))}return a.then(()=>{n.notify("AnimationComplete",r)})}const Kv={test:n=>n==="auto",parse:n=>n},Gp=n=>r=>r.test(n),Kp=[Ar,Y,Ht,Sn,v0,y0,Kv],Qf=n=>Kp.find(Gp(n));function $v(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||rp(n):!0}const Yv=new Set(["brightness","contrast","saturate","opacity"]);function Xv(n){const[r,s]=n.slice(0,-1).split("(");if(r==="drop-shadow")return n;const[a]=s.match(cu)||[];if(!a)return n;const u=s.replace(a,"");let f=Yv.has(r)?1:0;return a!==s&&(f*=100),r+"("+f+u+")"}const Qv=/\b([a-z-]*)\(.*?\)/gu,Hl={...Ft,getAnimatableNone:n=>{const r=n.match(Qv);return r?r.map(Xv).join(" "):n}},Gl={...Ft,getAnimatableNone:n=>{const r=Ft.parse(n);return Ft.createTransformer(n)(r.map(a=>typeof a=="number"?0:typeof a=="object"?{...a,alpha:1}:a))}},qf={...Ar,transform:Math.round},qv={rotate:Sn,rotateX:Sn,rotateY:Sn,rotateZ:Sn,scale:bs,scaleX:bs,scaleY:bs,scaleZ:bs,skew:Sn,skewX:Sn,skewY:Sn,distance:Y,translateX:Y,translateY:Y,translateZ:Y,x:Y,y:Y,z:Y,perspective:Y,transformPerspective:Y,opacity:ki,originX:_f,originY:_f,originZ:Y},wu={borderWidth:Y,borderTopWidth:Y,borderRightWidth:Y,borderBottomWidth:Y,borderLeftWidth:Y,borderRadius:Y,borderTopLeftRadius:Y,borderTopRightRadius:Y,borderBottomRightRadius:Y,borderBottomLeftRadius:Y,width:Y,maxWidth:Y,height:Y,maxHeight:Y,top:Y,right:Y,bottom:Y,left:Y,inset:Y,insetBlock:Y,insetBlockStart:Y,insetBlockEnd:Y,insetInline:Y,insetInlineStart:Y,insetInlineEnd:Y,padding:Y,paddingTop:Y,paddingRight:Y,paddingBottom:Y,paddingLeft:Y,paddingBlock:Y,paddingBlockStart:Y,paddingBlockEnd:Y,paddingInline:Y,paddingInlineStart:Y,paddingInlineEnd:Y,margin:Y,marginTop:Y,marginRight:Y,marginBottom:Y,marginLeft:Y,marginBlock:Y,marginBlockStart:Y,marginBlockEnd:Y,marginInline:Y,marginInlineStart:Y,marginInlineEnd:Y,fontSize:Y,backgroundPositionX:Y,backgroundPositionY:Y,...qv,zIndex:qf,fillOpacity:ki,strokeOpacity:ki,numOctaves:qf},Zv={...wu,color:Oe,backgroundColor:Oe,outlineColor:Oe,fill:Oe,stroke:Oe,borderColor:Oe,borderTopColor:Oe,borderRightColor:Oe,borderBottomColor:Oe,borderLeftColor:Oe,filter:Hl,WebkitFilter:Hl,mask:Gl,WebkitMask:Gl},$p=n=>Zv[n],Jv=new Set([Hl,Gl]);function Yp(n,r){let s=$p(n);return Jv.has(s)||(s=Ft),s.getAnimatableNone?s.getAnimatableNone(r):void 0}const ex=new Set(["auto","none","0"]);function tx(n,r,s){let a=0,u;for(;a<n.length&&!u;){const f=n[a];typeof f=="string"&&!ex.has(f)&&Cr(f).values.length&&(u=n[a]),a++}if(u&&s)for(const f of r)n[f]=Yp(s,u)}class nx extends mu{constructor(r,s,a,u,f){super(r,s,a,u,f,!0)}readKeyframes(){const{unresolvedKeyframes:r,element:s,name:a}=this;if(!s||!s.current)return;super.readKeyframes();for(let y=0;y<r.length;y++){let v=r[y];if(typeof v=="string"&&(v=v.trim(),uu(v))){const w=Op(v,s.current);w!==void 0&&(r[y]=w),y===r.length-1&&(this.finalKeyframe=v)}}if(this.resolveNoneKeyframes(),!bp.has(a)||r.length!==2)return;const[u,f]=r,d=Qf(u),h=Qf(f),g=If(u),x=If(f);if(g!==x&&Tn[a]){this.needsMeasurement=!0;return}if(d!==h)if(Gf(d)&&Gf(h))for(let y=0;y<r.length;y++){const v=r[y];typeof v=="string"&&(r[y]=parseFloat(v))}else Tn[a]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:r,name:s}=this,a=[];for(let u=0;u<r.length;u++)(r[u]===null||$v(r[u]))&&a.push(u);a.length&&tx(r,a,s)}measureInitialState(){const{element:r,unresolvedKeyframes:s,name:a}=this;if(!r||!r.current)return;a==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Tn[a](r.measureViewportBox(),window.getComputedStyle(r.current)),s[0]=this.measuredOrigin;const u=s[s.length-1];u!==void 0&&r.getValue(a,u).jump(u,!1)}measureEndState(){var h;const{element:r,name:s,unresolvedKeyframes:a}=this;if(!r||!r.current)return;const u=r.getValue(s);u&&u.jump(this.measuredOrigin,!1);const f=a.length-1,d=a[f];a[f]=Tn[s](r.measureViewportBox(),window.getComputedStyle(r.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),(h=this.removedTransforms)!=null&&h.length&&this.removedTransforms.forEach(([g,x])=>{r.getValue(g).set(x)}),this.resolveNoneKeyframes()}}function Xp(n,r,s){if(n==null)return[];if(n instanceof EventTarget)return[n];if(typeof n=="string"){let a=document;const u=(s==null?void 0:s[n])??a.querySelectorAll(n);return u?Array.from(u):[]}return Array.from(n).filter(a=>a!=null)}const Qp=(n,r)=>r&&typeof n=="number"?r.transform(n):n;function Ks(n){return np(n)&&"offsetHeight"in n&&!("ownerSVGElement"in n)}const{schedule:Su}=gp(queueMicrotask,!1),Rt={x:!1,y:!1};function qp(){return Rt.x||Rt.y}function rx(n){return n==="x"||n==="y"?Rt[n]?null:(Rt[n]=!0,()=>{Rt[n]=!1}):Rt.x||Rt.y?null:(Rt.x=Rt.y=!0,()=>{Rt.x=Rt.y=!1})}function Zp(n,r){const s=Xp(n),a=new AbortController,u={passive:!0,...r,signal:a.signal};return[s,u,()=>a.abort()]}function ix(n){return!(n.pointerType==="touch"||qp())}function sx(n,r,s={}){const[a,u,f]=Zp(n,s);return a.forEach(d=>{let h=!1,g=!1,x;const y=()=>{d.removeEventListener("pointerleave",N)},v=M=>{x&&(x(M),x=void 0),y()},w=M=>{h=!1,window.removeEventListener("pointerup",w),window.removeEventListener("pointercancel",w),g&&(g=!1,v(M))},C=()=>{h=!0,window.addEventListener("pointerup",w,u),window.addEventListener("pointercancel",w,u)},N=M=>{if(M.pointerType!=="touch"){if(h){g=!0;return}v(M)}},D=M=>{if(!ix(M))return;g=!1;const I=r(d,M);typeof I=="function"&&(x=I,d.addEventListener("pointerleave",N,u))};d.addEventListener("pointerenter",D,u),d.addEventListener("pointerdown",C,u)}),f}const Jp=(n,r)=>r?n===r?!0:Jp(n,r.parentElement):!1,ku=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,ox=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ax(n){return ox.has(n.tagName)||n.isContentEditable===!0}const lx=new Set(["INPUT","SELECT","TEXTAREA"]);function ux(n){return lx.has(n.tagName)||n.isContentEditable===!0}const $s=new WeakSet;function Zf(n){return r=>{r.key==="Enter"&&n(r)}}function xl(n,r){n.dispatchEvent(new PointerEvent("pointer"+r,{isPrimary:!0,bubbles:!0}))}const cx=(n,r)=>{const s=n.currentTarget;if(!s)return;const a=Zf(()=>{if($s.has(s))return;xl(s,"down");const u=Zf(()=>{xl(s,"up")}),f=()=>xl(s,"cancel");s.addEventListener("keyup",u,r),s.addEventListener("blur",f,r)});s.addEventListener("keydown",a,r),s.addEventListener("blur",()=>s.removeEventListener("keydown",a),r)};function Jf(n){return ku(n)&&!qp()}const eh=new WeakSet;function dx(n,r,s={}){const[a,u,f]=Zp(n,s),d=h=>{const g=h.currentTarget;if(!Jf(h)||eh.has(h))return;$s.add(g),s.stopPropagation&&eh.add(h);const x=r(g,h),y=(C,N)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",w),$s.has(g)&&$s.delete(g),Jf(C)&&typeof x=="function"&&x(C,{success:N})},v=C=>{y(C,g===window||g===document||s.useGlobalTarget||Jp(g,C.target))},w=C=>{y(C,!1)};window.addEventListener("pointerup",v,u),window.addEventListener("pointercancel",w,u)};return a.forEach(h=>{(s.useGlobalTarget?window:h).addEventListener("pointerdown",d,u),Ks(h)&&(h.addEventListener("focus",x=>cx(x,u)),!ax(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),f}function Tu(n){return np(n)&&"ownerSVGElement"in n}const Ys=new WeakMap;let kn;const em=(n,r,s)=>(a,u)=>u&&u[0]?u[0][n+"Size"]:Tu(a)&&"getBBox"in a?a.getBBox()[r]:a[s],fx=em("inline","width","offsetWidth"),hx=em("block","height","offsetHeight");function px({target:n,borderBoxSize:r}){var s;(s=Ys.get(n))==null||s.forEach(a=>{a(n,{get width(){return fx(n,r)},get height(){return hx(n,r)}})})}function mx(n){n.forEach(px)}function gx(){typeof ResizeObserver>"u"||(kn=new ResizeObserver(mx))}function yx(n,r){kn||gx();const s=Xp(n);return s.forEach(a=>{let u=Ys.get(a);u||(u=new Set,Ys.set(a,u)),u.add(r),kn==null||kn.observe(a)}),()=>{s.forEach(a=>{const u=Ys.get(a);u==null||u.delete(r),u!=null&&u.size||kn==null||kn.unobserve(a)})}}const Xs=new Set;let wr;function vx(){wr=()=>{const n={get width(){return window.innerWidth},get height(){return window.innerHeight}};Xs.forEach(r=>r(n))},window.addEventListener("resize",wr)}function xx(n){return Xs.add(n),wr||vx(),()=>{Xs.delete(n),!Xs.size&&typeof wr=="function"&&(window.removeEventListener("resize",wr),wr=void 0)}}function th(n,r){return typeof n=="function"?xx(n):yx(n,r)}function wx(n){return Tu(n)&&n.tagName==="svg"}const Sx=[...Kp,Oe,Ft],kx=n=>Sx.find(Gp(n)),nh=()=>({translate:0,scale:1,origin:0,originPoint:0}),Sr=()=>({x:nh(),y:nh()}),rh=()=>({min:0,max:0}),Ue=()=>({x:rh(),y:rh()}),Tx=new WeakMap;function fo(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function Ti(n){return typeof n=="string"||Array.isArray(n)}const Cu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Pu=["initial",...Cu];function ho(n){return fo(n.animate)||Pu.some(r=>Ti(n[r]))}function tm(n){return!!(ho(n)||n.variants)}function Cx(n,r,s){for(const a in r){const u=r[a],f=s[a];if(Xe(u))n.addValue(a,u);else if(Xe(f))n.addValue(a,Pr(u,{owner:n}));else if(f!==u)if(n.hasValue(a)){const d=n.getValue(a);d.liveStyle===!0?d.jump(u):d.hasAnimated||d.set(u)}else{const d=n.getStaticValue(a);n.addValue(a,Pr(d!==void 0?d:u,{owner:n}))}}for(const a in s)r[a]===void 0&&n.removeValue(a);return r}const Kl={current:null},nm={current:!1},Px=typeof window<"u";function Ax(){if(nm.current=!0,!!Px)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),r=()=>Kl.current=n.matches;n.addEventListener("change",r),r()}else Kl.current=!1}const ih=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let io={};function rm(n){io=n}function Ex(){return io}class jx{scrapeMotionValuesFromProps(r,s,a){return{}}constructor({parent:r,props:s,presenceContext:a,reducedMotionConfig:u,skipAnimations:f,blockInitialAnimation:d,visualState:h},g={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=mu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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 C=nt.now();this.renderScheduledAt<C&&(this.renderScheduledAt=C,ve.render(this.render,!1,!0))};const{latestValues:x,renderState:y}=h;this.latestValues=x,this.baseTarget={...x},this.initialValues=s.initial?{...x}:{},this.renderState=y,this.parent=r,this.props=s,this.presenceContext=a,this.depth=r?r.depth+1:0,this.reducedMotionConfig=u,this.skipAnimationsConfig=f,this.options=g,this.blockInitialAnimation=!!d,this.isControllingVariants=ho(s),this.isVariantNode=tm(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(r&&r.current);const{willChange:v,...w}=this.scrapeMotionValuesFromProps(s,{},this);for(const C in w){const N=w[C];x[C]!==void 0&&Xe(N)&&N.set(x[C])}}mount(r){var s,a;if(this.hasBeenMounted)for(const u in this.initialValues)(s=this.values.get(u))==null||s.jump(this.initialValues[u]),this.latestValues[u]=this.initialValues[u];this.current=r,Tx.set(r,this),this.projection&&!this.projection.instance&&this.projection.mount(r),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((u,f)=>this.bindToMotionValue(f,u)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(nm.current||Ax(),this.shouldReduceMotion=Kl.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(a=this.parent)==null||a.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var r;this.projection&&this.projection.unmount(),Pn(this.notifyUpdate),Pn(this.render),this.valueSubscriptions.forEach(s=>s()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(r=this.parent)==null||r.removeChild(this);for(const s in this.events)this.events[s].clear();for(const s in this.features){const a=this.features[s];a&&(a.unmount(),a.isMounted=!1)}this.current=null}addChild(r){this.children.add(r),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(r)}removeChild(r){this.children.delete(r),this.enteringChildren&&this.enteringChildren.delete(r)}bindToMotionValue(r,s){if(this.valueSubscriptions.has(r)&&this.valueSubscriptions.get(r)(),s.accelerate&&_p.has(r)&&this.current instanceof HTMLElement){const{factory:d,keyframes:h,times:g,ease:x,duration:y}=s.accelerate,v=new Vp({element:this.current,name:r,keyframes:h,times:g,ease:x,duration:mt(y)}),w=d(v);this.valueSubscriptions.set(r,()=>{w(),v.cancel()});return}const a=jr.has(r);a&&this.onBindTransform&&this.onBindTransform();const u=s.on("change",d=>{this.latestValues[r]=d,this.props.onUpdate&&ve.preRender(this.notifyUpdate),a&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let f;typeof window<"u"&&window.MotionCheckAppearSync&&(f=window.MotionCheckAppearSync(this,r,s)),this.valueSubscriptions.set(r,()=>{u(),f&&f(),s.owner&&s.stop()})}sortNodePosition(r){return!this.current||!this.sortInstanceNodePosition||this.type!==r.type?0:this.sortInstanceNodePosition(this.current,r.current)}updateFeatures(){let r="animation";for(r in io){const s=io[r];if(!s)continue;const{isEnabled:a,Feature:u}=s;if(!this.features[r]&&u&&a(this.props)&&(this.features[r]=new u(this)),this.features[r]){const f=this.features[r];f.isMounted?f.update():(f.mount(),f.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ue()}getStaticValue(r){return this.latestValues[r]}setStaticValue(r,s){this.latestValues[r]=s}update(r,s){(r.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=r,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let a=0;a<ih.length;a++){const u=ih[a];this.propEventSubscriptions[u]&&(this.propEventSubscriptions[u](),delete this.propEventSubscriptions[u]);const f="on"+u,d=r[f];d&&(this.propEventSubscriptions[u]=this.on(u,d))}this.prevMotionValues=Cx(this,this.scrapeMotionValuesFromProps(r,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(r){return this.props.variants?this.props.variants[r]: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(r){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(r),()=>s.variantChildren.delete(r)}addValue(r,s){const a=this.values.get(r);s!==a&&(a&&this.removeValue(r),this.bindToMotionValue(r,s),this.values.set(r,s),this.latestValues[r]=s.get())}removeValue(r){this.values.delete(r);const s=this.valueSubscriptions.get(r);s&&(s(),this.valueSubscriptions.delete(r)),delete this.latestValues[r],this.removeValueFromRenderState(r,this.renderState)}hasValue(r){return this.values.has(r)}getValue(r,s){if(this.props.values&&this.props.values[r])return this.props.values[r];let a=this.values.get(r);return a===void 0&&s!==void 0&&(a=Pr(s===null?void 0:s,{owner:this}),this.addValue(r,a)),a}readValue(r,s){let a=this.latestValues[r]!==void 0||!this.current?this.latestValues[r]:this.getBaseTargetFromProps(this.props,r)??this.readValueFromInstance(this.current,r,this.options);return a!=null&&(typeof a=="string"&&(tp(a)||rp(a))?a=parseFloat(a):!kx(a)&&Ft.test(s)&&(a=Yp(r,s)),this.setBaseTarget(r,Xe(a)?a.get():a)),Xe(a)?a.get():a}setBaseTarget(r,s){this.baseTarget[r]=s}getBaseTarget(r){var f;const{initial:s}=this.props;let a;if(typeof s=="string"||typeof s=="object"){const d=vu(this.props,s,(f=this.presenceContext)==null?void 0:f.custom);d&&(a=d[r])}if(s&&a!==void 0)return a;const u=this.getBaseTargetFromProps(this.props,r);return u!==void 0&&!Xe(u)?u:this.initialValues[r]!==void 0&&a===void 0?void 0:this.baseTarget[r]}on(r,s){return this.events[r]||(this.events[r]=new ou),this.events[r].add(s)}notify(r,...s){this.events[r]&&this.events[r].notify(...s)}scheduleRenderMicrotask(){Su.render(this.render)}}class im extends jx{constructor(){super(...arguments),this.KeyframeResolver=nx}sortInstanceNodePosition(r,s){return r.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(r,s){const a=r.style;return a?a[s]:void 0}removeValueFromRenderState(r,{vars:s,style:a}){delete s[r],delete a[r]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:r}=this.props;Xe(r)&&(this.childSubscription=r.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}class An{constructor(r){this.isMounted=!1,this.node=r}update(){}}function sm({top:n,left:r,right:s,bottom:a}){return{x:{min:r,max:s},y:{min:n,max:a}}}function Nx({x:n,y:r}){return{top:r.min,right:n.max,bottom:r.max,left:n.min}}function Mx(n,r){if(!r)return n;const s=r({x:n.left,y:n.top}),a=r({x:n.right,y:n.bottom});return{top:s.y,left:s.x,bottom:a.y,right:a.x}}function wl(n){return n===void 0||n===1}function $l({scale:n,scaleX:r,scaleY:s}){return!wl(n)||!wl(r)||!wl(s)}function bn(n){return $l(n)||om(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function om(n){return sh(n.x)||sh(n.y)}function sh(n){return n&&n!=="0%"}function so(n,r,s){const a=n-s,u=r*a;return s+u}function oh(n,r,s,a,u){return u!==void 0&&(n=so(n,u,a)),so(n,s,a)+r}function Yl(n,r=0,s=1,a,u){n.min=oh(n.min,r,s,a,u),n.max=oh(n.max,r,s,a,u)}function am(n,{x:r,y:s}){Yl(n.x,r.translate,r.scale,r.originPoint),Yl(n.y,s.translate,s.scale,s.originPoint)}const ah=.999999999999,lh=1.0000000000001;function Dx(n,r,s,a=!1){var h;const u=s.length;if(!u)return;r.x=r.y=1;let f,d;for(let g=0;g<u;g++){f=s[g],d=f.projectionDelta;const{visualElement:x}=f.options;x&&x.props.style&&x.props.style.display==="contents"||(a&&f.options.layoutScroll&&f.scroll&&f!==f.root&&(Wt(n.x,-f.scroll.offset.x),Wt(n.y,-f.scroll.offset.y)),d&&(r.x*=d.x.scale,r.y*=d.y.scale,am(n,d)),a&&bn(f.latestValues)&&Qs(n,f.latestValues,(h=f.layout)==null?void 0:h.layoutBox))}r.x<lh&&r.x>ah&&(r.x=1),r.y<lh&&r.y>ah&&(r.y=1)}function Wt(n,r){n.min+=r,n.max+=r}function uh(n,r,s,a,u=.5){const f=Ce(n.min,n.max,u);Yl(n,r,s,f,a)}function ch(n,r){return typeof n=="string"?parseFloat(n)/100*(r.max-r.min):n}function Qs(n,r,s){const a=s??n;uh(n.x,ch(r.x,a.x),r.scaleX,r.scale,r.originX),uh(n.y,ch(r.y,a.y),r.scaleY,r.scale,r.originY)}function lm(n,r){return sm(Mx(n.getBoundingClientRect(),r))}function Lx(n,r,s){const a=lm(n,s),{scroll:u}=r;return u&&(Wt(a.x,u.offset.x),Wt(a.y,u.offset.y)),a}const Rx={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Fx=Er.length;function Vx(n,r,s){let a="",u=!0;for(let f=0;f<Fx;f++){const d=Er[f],h=n[d];if(h===void 0)continue;let g=!0;if(typeof h=="number")g=h===(d.startsWith("scale")?1:0);else{const x=parseFloat(h);g=d.startsWith("scale")?x===1:x===0}if(!g||s){const x=Qp(h,wu[d]);if(!g){u=!1;const y=Rx[d]||d;a+=`${y}(${x}) `}s&&(r[d]=x)}}return a=a.trim(),s?a=s(r,u?"":a):u&&(a="none"),a}function Au(n,r,s){const{style:a,vars:u,transformOrigin:f}=n;let d=!1,h=!1;for(const g in r){const x=r[g];if(jr.has(g)){d=!0;continue}else if(vp(g)){u[g]=x;continue}else{const y=Qp(x,wu[g]);g.startsWith("origin")?(h=!0,f[g]=y):a[g]=y}}if(r.transform||(d||s?a.transform=Vx(r,n.transform,s):a.transform&&(a.transform="none")),h){const{originX:g="50%",originY:x="50%",originZ:y=0}=f;a.transformOrigin=`${g} ${x} ${y}`}}function um(n,{style:r,vars:s},a,u){const f=n.style;let d;for(d in r)f[d]=r[d];u==null||u.applyProjectionStyles(f,a);for(d in s)f.setProperty(d,s[d])}function dh(n,r){return r.max===r.min?0:n/(r.max-r.min)*100}const mi={correct:(n,r)=>{if(!r.target)return n;if(typeof n=="string")if(Y.test(n))n=parseFloat(n);else return n;const s=dh(n,r.target.x),a=dh(n,r.target.y);return`${s}% ${a}%`}},Ix={correct:(n,{treeScale:r,projectionDelta:s})=>{const a=n,u=Ft.parse(n);if(u.length>5)return a;const f=Ft.createTransformer(n),d=typeof u[0]!="number"?1:0,h=s.x.scale*r.x,g=s.y.scale*r.y;u[0+d]/=h,u[1+d]/=g;const x=Ce(h,g,.5);return typeof u[2+d]=="number"&&(u[2+d]/=x),typeof u[3+d]=="number"&&(u[3+d]/=x),f(u)}},Xl={borderRadius:{...mi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:mi,borderTopRightRadius:mi,borderBottomLeftRadius:mi,borderBottomRightRadius:mi,boxShadow:Ix};function cm(n,{layout:r,layoutId:s}){return jr.has(n)||n.startsWith("origin")||(r||s!==void 0)&&(!!Xl[n]||n==="opacity")}function Eu(n,r,s){var d;const a=n.style,u=r==null?void 0:r.style,f={};if(!a)return f;for(const h in a)(Xe(a[h])||u&&Xe(u[h])||cm(h,n)||((d=s==null?void 0:s.getValue(h))==null?void 0:d.liveStyle)!==void 0)&&(f[h]=a[h]);return f}function _x(n){return window.getComputedStyle(n)}class zx extends im{constructor(){super(...arguments),this.type="html",this.renderInstance=um}readValueFromInstance(r,s){var a;if(jr.has(s))return(a=this.projection)!=null&&a.isProjecting?Vl(s):iv(r,s);{const u=_x(r),f=(vp(s)?u.getPropertyValue(s):u[s])||0;return typeof f=="string"?f.trim():f}}measureInstanceViewportBox(r,{transformPagePoint:s}){return lm(r,s)}build(r,s,a){Au(r,s,a.transformTemplate)}scrapeMotionValuesFromProps(r,s,a){return Eu(r,s,a)}}const Ox={offset:"stroke-dashoffset",array:"stroke-dasharray"},Bx={offset:"strokeDashoffset",array:"strokeDasharray"};function bx(n,r,s=1,a=0,u=!0){n.pathLength=1;const f=u?Ox:Bx;n[f.offset]=`${-a}`,n[f.array]=`${r} ${s}`}const Ux=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function dm(n,{attrX:r,attrY:s,attrScale:a,pathLength:u,pathSpacing:f=1,pathOffset:d=0,...h},g,x,y){if(Au(n,h,x),g){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:v,style:w}=n;v.transform&&(w.transform=v.transform,delete v.transform),(w.transform||v.transformOrigin)&&(w.transformOrigin=v.transformOrigin??"50% 50%",delete v.transformOrigin),w.transform&&(w.transformBox=(y==null?void 0:y.transformBox)??"fill-box",delete v.transformBox);for(const C of Ux)v[C]!==void 0&&(w[C]=v[C],delete v[C]);r!==void 0&&(v.x=r),s!==void 0&&(v.y=s),a!==void 0&&(v.scale=a),u!==void 0&&bx(v,u,f,d,!1)}const fm=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"]),hm=n=>typeof n=="string"&&n.toLowerCase()==="svg";function Wx(n,r,s,a){um(n,r,void 0,a);for(const u in r.attrs)n.setAttribute(fm.has(u)?u:xu(u),r.attrs[u])}function pm(n,r,s){const a=Eu(n,r,s);for(const u in n)if(Xe(n[u])||Xe(r[u])){const f=Er.indexOf(u)!==-1?"attr"+u.charAt(0).toUpperCase()+u.substring(1):u;a[f]=n[u]}return a}class Hx extends im{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ue}getBaseTargetFromProps(r,s){return r[s]}readValueFromInstance(r,s){if(jr.has(s)){const a=$p(s);return a&&a.default||0}return s=fm.has(s)?s:xu(s),r.getAttribute(s)}scrapeMotionValuesFromProps(r,s,a){return pm(r,s,a)}build(r,s,a){dm(r,s,this.isSVGTag,a.transformTemplate,a.style)}renderInstance(r,s,a,u){Wx(r,s,a,u)}mount(r){this.isSVGTag=hm(r.tagName),super.mount(r)}}const Gx=Pu.length;function mm(n){if(!n)return;if(!n.isControllingVariants){const s=n.parent?mm(n.parent)||{}:{};return n.props.initial!==void 0&&(s.initial=n.props.initial),s}const r={};for(let s=0;s<Gx;s++){const a=Pu[s],u=n.props[a];(Ti(u)||u===!1)&&(r[a]=u)}return r}function gm(n,r){if(!Array.isArray(r))return!1;const s=r.length;if(s!==n.length)return!1;for(let a=0;a<s;a++)if(r[a]!==n[a])return!1;return!0}const Kx=[...Cu].reverse(),$x=Cu.length;function Yx(n){return r=>Promise.all(r.map(({animation:s,options:a})=>Gv(n,s,a)))}function Xx(n){let r=Yx(n),s=fh(),a=!0,u=!1;const f=x=>(y,v)=>{var C;const w=Gn(n,v,x==="exit"?(C=n.presenceContext)==null?void 0:C.custom:void 0);if(w){const{transition:N,transitionEnd:D,...M}=w;y={...y,...M,...D}}return y};function d(x){r=x(n)}function h(x){const{props:y}=n,v=mm(n.parent)||{},w=[],C=new Set;let N={},D=1/0;for(let I=0;I<$x;I++){const U=Kx[I],B=s[U],b=y[U]!==void 0?y[U]:v[U],G=Ti(b),ie=U===x?B.isActive:null;ie===!1&&(D=I);let oe=b===v[U]&&b!==y[U]&&G;if(oe&&(a||u)&&n.manuallyAnimateOnMount&&(oe=!1),B.protectedKeys={...N},!B.isActive&&ie===null||!b&&!B.prevProp||fo(b)||typeof b=="boolean")continue;if(U==="exit"&&B.isActive&&ie!==!0){B.prevResolvedValues&&(N={...N,...B.prevResolvedValues});continue}const J=Qx(B.prevProp,b);let re=J||U===x&&B.isActive&&!oe&&G||I>D&&G,q=!1;const ce=Array.isArray(b)?b:[b];let ye=ce.reduce(f(U),{});ie===!1&&(ye={});const{prevResolvedValues:je={}}=B,Le={...je,...ye},_e=z=>{re=!0,C.has(z)&&(q=!0,C.delete(z)),B.needsAnimating[z]=!0;const X=n.getValue(z);X&&(X.liveStyle=!1)};for(const z in Le){const X=ye[z],W=je[z];if(N.hasOwnProperty(z))continue;let P=!1;bl(X)&&bl(W)?P=!gm(X,W):P=X!==W,P?X!=null?_e(z):C.add(z):X!==void 0&&C.has(z)?_e(z):B.protectedKeys[z]=!0}B.prevProp=b,B.prevResolvedValues=ye,B.isActive&&(N={...N,...ye}),(a||u)&&n.blockInitialAnimation&&(re=!1);const Se=oe&&J;re&&(!Se||q)&&w.push(...ce.map(z=>{const X={type:U};if(typeof z=="string"&&(a||u)&&!Se&&n.manuallyAnimateOnMount&&n.parent){const{parent:W}=n,P=Gn(W,z);if(W.enteringChildren&&P){const{delayChildren:L}=P.transition||{};X.delay=zp(W.enteringChildren,n,L)}}return{animation:z,options:X}}))}if(C.size){const I={};if(typeof y.initial!="boolean"){const U=Gn(n,Array.isArray(y.initial)?y.initial[0]:y.initial);U&&U.transition&&(I.transition=U.transition)}C.forEach(U=>{const B=n.getBaseTarget(U),b=n.getValue(U);b&&(b.liveStyle=!0),I[U]=B??null}),w.push({animation:I})}let M=!!w.length;return a&&(y.initial===!1||y.initial===y.animate)&&!n.manuallyAnimateOnMount&&(M=!1),a=!1,u=!1,M?r(w):Promise.resolve()}function g(x,y){var w;if(s[x].isActive===y)return Promise.resolve();(w=n.variantChildren)==null||w.forEach(C=>{var N;return(N=C.animationState)==null?void 0:N.setActive(x,y)}),s[x].isActive=y;const v=h(x);for(const C in s)s[C].protectedKeys={};return v}return{animateChanges:h,setActive:g,setAnimateFunction:d,getState:()=>s,reset:()=>{s=fh(),u=!0}}}function Qx(n,r){return typeof r=="string"?r!==n:Array.isArray(r)?!gm(r,n):!1}function Bn(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function fh(){return{animate:Bn(!0),whileInView:Bn(),whileHover:Bn(),whileTap:Bn(),whileDrag:Bn(),whileFocus:Bn(),exit:Bn()}}function Ql(n,r){n.min=r.min,n.max=r.max}function Lt(n,r){Ql(n.x,r.x),Ql(n.y,r.y)}function hh(n,r){n.translate=r.translate,n.scale=r.scale,n.originPoint=r.originPoint,n.origin=r.origin}const ym=1e-4,qx=1-ym,Zx=1+ym,vm=.01,Jx=0-vm,e1=0+vm;function rt(n){return n.max-n.min}function t1(n,r,s){return Math.abs(n-r)<=s}function ph(n,r,s,a=.5){n.origin=a,n.originPoint=Ce(r.min,r.max,n.origin),n.scale=rt(s)/rt(r),n.translate=Ce(s.min,s.max,n.origin)-n.originPoint,(n.scale>=qx&&n.scale<=Zx||isNaN(n.scale))&&(n.scale=1),(n.translate>=Jx&&n.translate<=e1||isNaN(n.translate))&&(n.translate=0)}function xi(n,r,s,a){ph(n.x,r.x,s.x,a?a.originX:void 0),ph(n.y,r.y,s.y,a?a.originY:void 0)}function mh(n,r,s,a=0){const u=a?Ce(s.min,s.max,a):s.min;n.min=u+r.min,n.max=n.min+rt(r)}function n1(n,r,s,a){mh(n.x,r.x,s.x,a==null?void 0:a.x),mh(n.y,r.y,s.y,a==null?void 0:a.y)}function gh(n,r,s,a=0){const u=a?Ce(s.min,s.max,a):s.min;n.min=r.min-u,n.max=n.min+rt(r)}function oo(n,r,s,a){gh(n.x,r.x,s.x,a==null?void 0:a.x),gh(n.y,r.y,s.y,a==null?void 0:a.y)}function yh(n,r,s,a,u){return n-=r,n=so(n,1/s,a),u!==void 0&&(n=so(n,1/u,a)),n}function r1(n,r=0,s=1,a=.5,u,f=n,d=n){if(Ht.test(r)&&(r=parseFloat(r),r=Ce(d.min,d.max,r/100)-d.min),typeof r!="number")return;let h=Ce(f.min,f.max,a);n===f&&(h-=r),n.min=yh(n.min,r,s,h,u),n.max=yh(n.max,r,s,h,u)}function vh(n,r,[s,a,u],f,d){r1(n,r[s],r[a],r[u],r.scale,f,d)}const i1=["x","scaleX","originX"],s1=["y","scaleY","originY"];function xh(n,r,s,a){vh(n.x,r,i1,s?s.x:void 0,a?a.x:void 0),vh(n.y,r,s1,s?s.y:void 0,a?a.y:void 0)}function wh(n){return n.translate===0&&n.scale===1}function xm(n){return wh(n.x)&&wh(n.y)}function Sh(n,r){return n.min===r.min&&n.max===r.max}function o1(n,r){return Sh(n.x,r.x)&&Sh(n.y,r.y)}function kh(n,r){return Math.round(n.min)===Math.round(r.min)&&Math.round(n.max)===Math.round(r.max)}function wm(n,r){return kh(n.x,r.x)&&kh(n.y,r.y)}function Th(n){return rt(n.x)/rt(n.y)}function Ch(n,r){return n.translate===r.translate&&n.scale===r.scale&&n.originPoint===r.originPoint}function bt(n){return[n("x"),n("y")]}function a1(n,r,s){let a="";const u=n.x.translate/r.x,f=n.y.translate/r.y,d=(s==null?void 0:s.z)||0;if((u||f||d)&&(a=`translate3d(${u}px, ${f}px, ${d}px) `),(r.x!==1||r.y!==1)&&(a+=`scale(${1/r.x}, ${1/r.y}) `),s){const{transformPerspective:x,rotate:y,rotateX:v,rotateY:w,skewX:C,skewY:N}=s;x&&(a=`perspective(${x}px) ${a}`),y&&(a+=`rotate(${y}deg) `),v&&(a+=`rotateX(${v}deg) `),w&&(a+=`rotateY(${w}deg) `),C&&(a+=`skewX(${C}deg) `),N&&(a+=`skewY(${N}deg) `)}const h=n.x.scale*r.x,g=n.y.scale*r.y;return(h!==1||g!==1)&&(a+=`scale(${h}, ${g})`),a||"none"}const Sm=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],l1=Sm.length,Ph=n=>typeof n=="string"?parseFloat(n):n,Ah=n=>typeof n=="number"||Y.test(n);function u1(n,r,s,a,u,f){u?(n.opacity=Ce(0,s.opacity??1,c1(a)),n.opacityExit=Ce(r.opacity??1,0,d1(a))):f&&(n.opacity=Ce(r.opacity??1,s.opacity??1,a));for(let d=0;d<l1;d++){const h=Sm[d];let g=Eh(r,h),x=Eh(s,h);if(g===void 0&&x===void 0)continue;g||(g=0),x||(x=0),g===0||x===0||Ah(g)===Ah(x)?(n[h]=Math.max(Ce(Ph(g),Ph(x),a),0),(Ht.test(x)||Ht.test(g))&&(n[h]+="%")):n[h]=x}(r.rotate||s.rotate)&&(n.rotate=Ce(r.rotate||0,s.rotate||0,a))}function Eh(n,r){return n[r]!==void 0?n[r]:n.borderRadius}const c1=km(0,.5,fp),d1=km(.5,.95,Tt);function km(n,r,s){return a=>a<n?0:a>r?1:s(Si(n,r,a))}function f1(n,r,s){const a=Xe(n)?n:Pr(n);return a.start(yu("",a,r,s)),a.animation}function Ci(n,r,s,a={passive:!0}){return n.addEventListener(r,s,a),()=>n.removeEventListener(r,s)}const h1=(n,r)=>n.depth-r.depth;class p1{constructor(){this.children=[],this.isDirty=!1}add(r){iu(this.children,r),this.isDirty=!0}remove(r){Js(this.children,r),this.isDirty=!0}forEach(r){this.isDirty&&this.children.sort(h1),this.isDirty=!1,this.children.forEach(r)}}function m1(n,r){const s=nt.now(),a=({timestamp:u})=>{const f=u-s;f>=r&&(Pn(a),n(f-r))};return ve.setup(a,!0),()=>Pn(a)}function qs(n){return Xe(n)?n.get():n}class g1{constructor(){this.members=[]}add(r){iu(this.members,r);for(let s=this.members.length-1;s>=0;s--){const a=this.members[s];if(a===r||a===this.lead||a===this.prevLead)continue;const u=a.instance;(!u||u.isConnected===!1)&&!a.snapshot&&(Js(this.members,a),a.unmount())}r.scheduleRender()}remove(r){if(Js(this.members,r),r===this.prevLead&&(this.prevLead=void 0),r===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(r){var s;for(let a=this.members.indexOf(r)-1;a>=0;a--){const u=this.members[a];if(u.isPresent!==!1&&((s=u.instance)==null?void 0:s.isConnected)!==!1)return this.promote(u),!0}return!1}promote(r,s){var u;const a=this.lead;if(r!==a&&(this.prevLead=a,this.lead=r,r.show(),a)){a.updateSnapshot(),r.scheduleRender();const{layoutDependency:f}=a.options,{layoutDependency:d}=r.options;(f===void 0||f!==d)&&(r.resumeFrom=a,s&&(a.preserveOpacity=!0),a.snapshot&&(r.snapshot=a.snapshot,r.snapshot.latestValues=a.animationValues||a.latestValues),(u=r.root)!=null&&u.isUpdating&&(r.isLayoutDirty=!0)),r.options.crossfade===!1&&a.hide()}}exitAnimationComplete(){this.members.forEach(r=>{var s,a,u,f,d;(a=(s=r.options).onExitComplete)==null||a.call(s),(d=(u=r.resumingFrom)==null?void 0:(f=u.options).onExitComplete)==null||d.call(f)})}scheduleRender(){this.members.forEach(r=>r.instance&&r.scheduleRender(!1))}removeLeadSnapshot(){var r;(r=this.lead)!=null&&r.snapshot&&(this.lead.snapshot=void 0)}}const Zs={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Sl=["","X","Y","Z"],y1=1e3;let v1=0;function kl(n,r,s,a){const{latestValues:u}=r;u[n]&&(s[n]=u[n],r.setStaticValue(n,0),a&&(a[n]=0))}function Tm(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:r}=n.options;if(!r)return;const s=Wp(r);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:u,layoutId:f}=n.options;window.MotionCancelOptimisedAnimation(s,"transform",ve,!(u||f))}const{parent:a}=n;a&&!a.hasCheckedOptimisedAppear&&Tm(a)}function Cm({attachResizeListener:n,defaultParent:r,measureScroll:s,checkIsScrollRoot:a,resetTransform:u}){return class{constructor(d={},h=r==null?void 0:r()){this.id=v1++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(S1),this.nodes.forEach(E1),this.nodes.forEach(j1),this.nodes.forEach(k1)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=d,this.root=h?h.root||h:this,this.path=h?[...h.path,h]:[],this.parent=h,this.depth=h?h.depth+1:0;for(let g=0;g<this.path.length;g++)this.path[g].shouldResetTransform=!0;this.root===this&&(this.nodes=new p1)}addEventListener(d,h){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new ou),this.eventHandlers.get(d).add(h)}notifyListeners(d,...h){const g=this.eventHandlers.get(d);g&&g.notify(...h)}hasListeners(d){return this.eventHandlers.has(d)}mount(d){if(this.instance)return;this.isSVG=Tu(d)&&!wx(d),this.instance=d;const{layoutId:h,layout:g,visualElement:x}=this.options;if(x&&!x.current&&x.mount(d),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(g||h)&&(this.isLayoutDirty=!0),n){let y,v=0;const w=()=>this.root.updateBlockedByResize=!1;ve.read(()=>{v=window.innerWidth}),n(d,()=>{const C=window.innerWidth;C!==v&&(v=C,this.root.updateBlockedByResize=!0,y&&y(),y=m1(w,250),Zs.hasAnimatedSinceResize&&(Zs.hasAnimatedSinceResize=!1,this.nodes.forEach(Mh)))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&x&&(h||g)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:v,hasRelativeLayoutChanged:w,layout:C})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const N=this.options.transition||x.getDefaultTransition()||R1,{onLayoutAnimationStart:D,onLayoutAnimationComplete:M}=x.getProps(),I=!this.targetLayout||!wm(this.targetLayout,C),U=!v&&w;if(this.options.layoutRoot||this.resumeFrom||U||v&&(I||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const B={...gu(N,"layout"),onPlay:D,onComplete:M};(x.shouldReduceMotion||this.options.layoutRoot)&&(B.delay=0,B.type=!1),this.startAnimation(B),this.setAnimationOrigin(y,U)}else v||Mh(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=C})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const d=this.getStack();d&&d.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),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(N1),this.animationId++)}getTransformTemplate(){const{visualElement:d}=this.options;return d&&d.getProps().transformTemplate}willUpdate(d=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Tm(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const v=this.path[y];v.shouldResetTransform=!0,(typeof v.latestValues.x=="string"||typeof v.latestValues.y=="string")&&(v.isLayoutDirty=!0),v.updateScroll("snapshot"),v.options.layoutRoot&&v.willUpdate(!1)}const{layoutId:h,layout:g}=this.options;if(h===void 0&&!g)return;const x=this.getTransformTemplate();this.prevTransformTemplateValue=x?x(this.latestValues,""):void 0,this.updateSnapshot(),d&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const g=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),g&&this.nodes.forEach(C1),this.nodes.forEach(jh);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Nh);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(P1),this.nodes.forEach(A1),this.nodes.forEach(x1),this.nodes.forEach(w1)):this.nodes.forEach(Nh),this.clearAllSnapshots();const h=nt.now();Ye.delta=Gt(0,1e3/60,h-Ye.timestamp),Ye.timestamp=h,Ye.isProcessing=!0,hl.update.process(Ye),hl.preRender.process(Ye),hl.render.process(Ye),Ye.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Su.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(T1),this.sharedNodes.forEach(M1)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ve.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ve.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!rt(this.snapshot.measuredBox.x)&&!rt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let g=0;g<this.path.length;g++)this.path[g].updateScroll();const d=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=Ue()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:h}=this.options;h&&h.notify("LayoutMeasure",this.layout.layoutBox,d?d.layoutBox:void 0)}updateScroll(d="measure"){let h=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===d&&(h=!1),h&&this.instance){const g=a(this.instance);this.scroll={animationId:this.root.animationId,phase:d,isRoot:g,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:g}}}resetTransform(){if(!u)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!xm(this.projectionDelta),g=this.getTransformTemplate(),x=g?g(this.latestValues,""):void 0,y=x!==this.prevTransformTemplateValue;d&&this.instance&&(h||bn(this.latestValues)||y)&&(u(this.instance,x),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const h=this.measurePageBox();let g=this.removeElementScroll(h);return d&&(g=this.removeTransform(g)),F1(g),{animationId:this.root.animationId,measuredBox:h,layoutBox:g,latestValues:{},source:this.id}}measurePageBox(){var x;const{visualElement:d}=this.options;if(!d)return Ue();const h=d.measureViewportBox();if(!(((x=this.scroll)==null?void 0:x.wasRoot)||this.path.some(V1))){const{scroll:y}=this.root;y&&(Wt(h.x,y.offset.x),Wt(h.y,y.offset.y))}return h}removeElementScroll(d){var g;const h=Ue();if(Lt(h,d),(g=this.scroll)!=null&&g.wasRoot)return h;for(let x=0;x<this.path.length;x++){const y=this.path[x],{scroll:v,options:w}=y;y!==this.root&&v&&w.layoutScroll&&(v.wasRoot&&Lt(h,d),Wt(h.x,v.offset.x),Wt(h.y,v.offset.y))}return h}applyTransform(d,h=!1,g){var y,v;const x=g||Ue();Lt(x,d);for(let w=0;w<this.path.length;w++){const C=this.path[w];!h&&C.options.layoutScroll&&C.scroll&&C!==C.root&&(Wt(x.x,-C.scroll.offset.x),Wt(x.y,-C.scroll.offset.y)),bn(C.latestValues)&&Qs(x,C.latestValues,(y=C.layout)==null?void 0:y.layoutBox)}return bn(this.latestValues)&&Qs(x,this.latestValues,(v=this.layout)==null?void 0:v.layoutBox),x}removeTransform(d){var g;const h=Ue();Lt(h,d);for(let x=0;x<this.path.length;x++){const y=this.path[x];if(!bn(y.latestValues))continue;let v;y.instance&&($l(y.latestValues)&&y.updateSnapshot(),v=Ue(),Lt(v,y.measurePageBox())),xh(h,y.latestValues,(g=y.snapshot)==null?void 0:g.layoutBox,v)}return bn(this.latestValues)&&xh(h,this.latestValues),h}setTargetDelta(d){this.targetDelta=d,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(d){this.options={...this.options,...d,crossfade:d.crossfade!==void 0?d.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!==Ye.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(d=!1){var C;const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const g=!!this.resumingFrom||this!==h;if(!(d||g&&this.isSharedProjectionDirty||this.isProjectionDirty||(C=this.parent)!=null&&C.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:v}=this.options;if(!this.layout||!(y||v))return;this.resolvedRelativeTargetAt=Ye.timestamp;const w=this.getClosestProjectingParent();w&&this.linkedParentVersion!==w.layoutVersion&&!w.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&w&&w.layout?this.createRelativeTarget(w,this.layout.layoutBox,w.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ue(),this.targetWithTransforms=Ue()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),n1(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Lt(this.target,this.layout.layoutBox),am(this.target,this.targetDelta)):Lt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&w&&!!w.resumingFrom==!!this.resumingFrom&&!w.options.layoutScroll&&w.target&&this.animationProgress!==1?this.createRelativeTarget(w,this.target,w.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||$l(this.parent.latestValues)||om(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(d,h,g){this.relativeParent=d,this.linkedParentVersion=d.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ue(),this.relativeTargetOrigin=Ue(),oo(this.relativeTargetOrigin,h,g,this.options.layoutAnchor||void 0),Lt(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var N;const d=this.getLead(),h=!!this.resumingFrom||this!==d;let g=!0;if((this.isProjectionDirty||(N=this.parent)!=null&&N.isProjectionDirty)&&(g=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(g=!1),this.resolvedRelativeTargetAt===Ye.timestamp&&(g=!1),g)return;const{layout:x,layoutId:y}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(x||y))return;Lt(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,w=this.treeScale.y;Dx(this.layoutCorrected,this.treeScale,this.path,h),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=Ue());const{target:C}=d;if(!C){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(hh(this.prevProjectionDelta.x,this.projectionDelta.x),hh(this.prevProjectionDelta.y,this.projectionDelta.y)),xi(this.projectionDelta,this.layoutCorrected,C,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==w||!Ch(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ch(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",C))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(d=!0){var h;if((h=this.options.visualElement)==null||h.scheduleRender(),d){const g=this.getStack();g&&g.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Sr(),this.projectionDelta=Sr(),this.projectionDeltaWithTransform=Sr()}setAnimationOrigin(d,h=!1){const g=this.snapshot,x=g?g.latestValues:{},y={...this.latestValues},v=Sr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const w=Ue(),C=g?g.source:void 0,N=this.layout?this.layout.source:void 0,D=C!==N,M=this.getStack(),I=!M||M.members.length<=1,U=!!(D&&!I&&this.options.crossfade===!0&&!this.path.some(L1));this.animationProgress=0;let B;this.mixTargetDelta=b=>{const G=b/1e3;Dh(v.x,d.x,G),Dh(v.y,d.y,G),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(oo(w,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),D1(this.relativeTarget,this.relativeTargetOrigin,w,G),B&&o1(this.relativeTarget,B)&&(this.isProjectionDirty=!1),B||(B=Ue()),Lt(B,this.relativeTarget)),D&&(this.animationValues=y,u1(y,x,this.latestValues,G,U,I)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=G},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){var h,g,x;this.notifyListeners("animationStart"),(h=this.currentAnimation)==null||h.stop(),(x=(g=this.resumingFrom)==null?void 0:g.currentAnimation)==null||x.stop(),this.pendingAnimation&&(Pn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ve.update(()=>{Zs.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Pr(0)),this.motionValue.jump(0,!1),this.currentAnimation=f1(this.motionValue,[0,1e3],{...d,velocity:0,isSync:!0,onUpdate:y=>{this.mixTargetDelta(y),d.onUpdate&&d.onUpdate(y)},onStop:()=>{},onComplete:()=>{d.onComplete&&d.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 d=this.getStack();d&&d.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(y1),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:h,target:g,layout:x,latestValues:y}=d;if(!(!h||!g||!x)){if(this!==d&&this.layout&&x&&Pm(this.options.animationType,this.layout.layoutBox,x.layoutBox)){g=this.target||Ue();const v=rt(this.layout.layoutBox.x);g.x.min=d.target.x.min,g.x.max=g.x.min+v;const w=rt(this.layout.layoutBox.y);g.y.min=d.target.y.min,g.y.max=g.y.min+w}Lt(h,g),Qs(h,y),xi(this.projectionDeltaWithTransform,this.layoutCorrected,h,y)}}registerSharedNode(d,h){this.sharedNodes.has(d)||this.sharedNodes.set(d,new g1),this.sharedNodes.get(d).add(h);const x=h.options.initialPromotionConfig;h.promote({transition:x?x.transition:void 0,preserveFollowOpacity:x&&x.shouldPreserveFollowOpacity?x.shouldPreserveFollowOpacity(h):void 0})}isLead(){const d=this.getStack();return d?d.lead===this:!0}getLead(){var h;const{layoutId:d}=this.options;return d?((h=this.getStack())==null?void 0:h.lead)||this:this}getPrevLead(){var h;const{layoutId:d}=this.options;return d?(h=this.getStack())==null?void 0:h.prevLead:void 0}getStack(){const{layoutId:d}=this.options;if(d)return this.root.sharedNodes.get(d)}promote({needsReset:d,transition:h,preserveFollowOpacity:g}={}){const x=this.getStack();x&&x.promote(this,g),d&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const d=this.getStack();return d?d.relegate(this):!1}resetSkewAndRotation(){const{visualElement:d}=this.options;if(!d)return;let h=!1;const{latestValues:g}=d;if((g.z||g.rotate||g.rotateX||g.rotateY||g.rotateZ||g.skewX||g.skewY)&&(h=!0),!h)return;const x={};g.z&&kl("z",d,x,this.animationValues);for(let y=0;y<Sl.length;y++)kl(`rotate${Sl[y]}`,d,x,this.animationValues),kl(`skew${Sl[y]}`,d,x,this.animationValues);d.render();for(const y in x)d.setStaticValue(y,x[y]),this.animationValues&&(this.animationValues[y]=x[y]);d.scheduleRender()}applyProjectionStyles(d,h){if(!this.instance||this.isSVG)return;if(!this.isVisible){d.visibility="hidden";return}const g=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,d.visibility="",d.opacity="",d.pointerEvents=qs(h==null?void 0:h.pointerEvents)||"",d.transform=g?g(this.latestValues,""):"none";return}const x=this.getLead();if(!this.projectionDelta||!this.layout||!x.target){this.options.layoutId&&(d.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,d.pointerEvents=qs(h==null?void 0:h.pointerEvents)||""),this.hasProjected&&!bn(this.latestValues)&&(d.transform=g?g({},""):"none",this.hasProjected=!1);return}d.visibility="";const y=x.animationValues||x.latestValues;this.applyTransformsToTarget();let v=a1(this.projectionDeltaWithTransform,this.treeScale,y);g&&(v=g(y,v)),d.transform=v;const{x:w,y:C}=this.projectionDelta;d.transformOrigin=`${w.origin*100}% ${C.origin*100}% 0`,x.animationValues?d.opacity=x===this?y.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:y.opacityExit:d.opacity=x===this?y.opacity!==void 0?y.opacity:"":y.opacityExit!==void 0?y.opacityExit:0;for(const N in Xl){if(y[N]===void 0)continue;const{correct:D,applyTo:M,isCSSVariable:I}=Xl[N],U=v==="none"?y[N]:D(y[N],x);if(M){const B=M.length;for(let b=0;b<B;b++)d[M[b]]=U}else I?this.options.visualElement.renderState.vars[N]=U:d[N]=U}this.options.layoutId&&(d.pointerEvents=x===this?qs(h==null?void 0:h.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>{var h;return(h=d.currentAnimation)==null?void 0:h.stop()}),this.root.nodes.forEach(jh),this.root.sharedNodes.clear()}}}function x1(n){n.updateLayout()}function w1(n){var s;const r=((s=n.resumeFrom)==null?void 0:s.snapshot)||n.snapshot;if(n.isLead()&&n.layout&&r&&n.hasListeners("didUpdate")){const{layoutBox:a,measuredBox:u}=n.layout,{animationType:f}=n.options,d=r.source!==n.layout.source;if(f==="size")bt(v=>{const w=d?r.measuredBox[v]:r.layoutBox[v],C=rt(w);w.min=a[v].min,w.max=w.min+C});else if(f==="x"||f==="y"){const v=f==="x"?"y":"x";Ql(d?r.measuredBox[v]:r.layoutBox[v],a[v])}else Pm(f,r.layoutBox,a)&&bt(v=>{const w=d?r.measuredBox[v]:r.layoutBox[v],C=rt(a[v]);w.max=w.min+C,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[v].max=n.relativeTarget[v].min+C)});const h=Sr();xi(h,a,r.layoutBox);const g=Sr();d?xi(g,n.applyTransform(u,!0),r.measuredBox):xi(g,a,r.layoutBox);const x=!xm(h);let y=!1;if(!n.resumeFrom){const v=n.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:w,layout:C}=v;if(w&&C){const N=n.options.layoutAnchor||void 0,D=Ue();oo(D,r.layoutBox,w.layoutBox,N);const M=Ue();oo(M,a,C.layoutBox,N),wm(D,M)||(y=!0),v.options.layoutRoot&&(n.relativeTarget=M,n.relativeTargetOrigin=D,n.relativeParent=v)}}}n.notifyListeners("didUpdate",{layout:a,snapshot:r,delta:g,layoutDelta:h,hasLayoutChanged:x,hasRelativeLayoutChanged:y})}else if(n.isLead()){const{onExitComplete:a}=n.options;a&&a()}n.options.transition=void 0}function S1(n){n.parent&&(n.isProjecting()||(n.isProjectionDirty=n.parent.isProjectionDirty),n.isSharedProjectionDirty||(n.isSharedProjectionDirty=!!(n.isProjectionDirty||n.parent.isProjectionDirty||n.parent.isSharedProjectionDirty)),n.isTransformDirty||(n.isTransformDirty=n.parent.isTransformDirty))}function k1(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function T1(n){n.clearSnapshot()}function jh(n){n.clearMeasurements()}function C1(n){n.isLayoutDirty=!0,n.updateLayout()}function Nh(n){n.isLayoutDirty=!1}function P1(n){n.isAnimationBlocked&&n.layout&&!n.isLayoutDirty&&(n.snapshot=n.layout,n.isLayoutDirty=!0)}function A1(n){const{visualElement:r}=n.options;r&&r.getProps().onBeforeLayoutMeasure&&r.notify("BeforeLayoutMeasure"),n.resetTransform()}function Mh(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function E1(n){n.resolveTargetDelta()}function j1(n){n.calcProjection()}function N1(n){n.resetSkewAndRotation()}function M1(n){n.removeLeadSnapshot()}function Dh(n,r,s){n.translate=Ce(r.translate,0,s),n.scale=Ce(r.scale,1,s),n.origin=r.origin,n.originPoint=r.originPoint}function Lh(n,r,s,a){n.min=Ce(r.min,s.min,a),n.max=Ce(r.max,s.max,a)}function D1(n,r,s,a){Lh(n.x,r.x,s.x,a),Lh(n.y,r.y,s.y,a)}function L1(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const R1={duration:.45,ease:[.4,0,.1,1]},Rh=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),Fh=Rh("applewebkit/")&&!Rh("chrome/")?Math.round:Tt;function Vh(n){n.min=Fh(n.min),n.max=Fh(n.max)}function F1(n){Vh(n.x),Vh(n.y)}function Pm(n,r,s){return n==="position"||n==="preserve-aspect"&&!t1(Th(r),Th(s),.2)}function V1(n){var r;return n!==n.root&&((r=n.scroll)==null?void 0:r.wasRoot)}const I1=Cm({attachResizeListener:(n,r)=>Ci(n,"resize",r),measureScroll:()=>{var n,r;return{x:document.documentElement.scrollLeft||((n=document.body)==null?void 0:n.scrollLeft)||0,y:document.documentElement.scrollTop||((r=document.body)==null?void 0:r.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Tl={current:void 0},Am=Cm({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!Tl.current){const n=new I1({});n.mount(window),n.setOptions({layoutScroll:!0}),Tl.current=n}return Tl.current},resetTransform:(n,r)=>{n.style.transform=r!==void 0?r:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),ju=_.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});function Ih(n,r){if(typeof n=="function")return n(r);n!=null&&(n.current=r)}function _1(...n){return r=>{let s=!1;const a=n.map(u=>{const f=Ih(u,r);return!s&&typeof f=="function"&&(s=!0),f});if(s)return()=>{for(let u=0;u<a.length;u++){const f=a[u];typeof f=="function"?f():Ih(n[u],null)}}}}function z1(...n){return _.useCallback(_1(...n),n)}class O1 extends _.Component{getSnapshotBeforeUpdate(r){const s=this.props.childRef.current;if(Ks(s)&&r.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const a=s.offsetParent,u=Ks(a)&&a.offsetWidth||0,f=Ks(a)&&a.offsetHeight||0,d=getComputedStyle(s),h=this.props.sizeRef.current;h.height=parseFloat(d.height),h.width=parseFloat(d.width),h.top=s.offsetTop,h.left=s.offsetLeft,h.right=u-h.width-h.left,h.bottom=f-h.height-h.top}return null}componentDidUpdate(){}render(){return this.props.children}}function B1({children:n,isPresent:r,anchorX:s,anchorY:a,root:u,pop:f}){var w;const d=_.useId(),h=_.useRef(null),g=_.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:x}=_.useContext(ju),y=((w=n.props)==null?void 0:w.ref)??(n==null?void 0:n.ref),v=z1(h,y);return _.useInsertionEffect(()=>{const{width:C,height:N,top:D,left:M,right:I,bottom:U}=g.current;if(r||f===!1||!h.current||!C||!N)return;const B=s==="left"?`left: ${M}`:`right: ${I}`,b=a==="bottom"?`bottom: ${U}`:`top: ${D}`;h.current.dataset.motionPopId=d;const G=document.createElement("style");x&&(G.nonce=x);const ie=u??document.head;return ie.appendChild(G),G.sheet&&G.sheet.insertRule(`
|
||
[data-motion-pop-id="${d}"] {
|
||
position: absolute !important;
|
||
width: ${C}px !important;
|
||
height: ${N}px !important;
|
||
${B}px !important;
|
||
${b}px !important;
|
||
}
|
||
`),()=>{var oe;(oe=h.current)==null||oe.removeAttribute("data-motion-pop-id"),ie.contains(G)&&ie.removeChild(G)}},[r]),m.jsx(O1,{isPresent:r,childRef:h,sizeRef:g,pop:f,children:f===!1?n:_.cloneElement(n,{ref:v})})}const b1=({children:n,initial:r,isPresent:s,onExitComplete:a,custom:u,presenceAffectsLayout:f,mode:d,anchorX:h,anchorY:g,root:x})=>{const y=ru(U1),v=_.useId();let w=!0,C=_.useMemo(()=>(w=!1,{id:v,initial:r,isPresent:s,custom:u,onExitComplete:N=>{y.set(N,!0);for(const D of y.values())if(!D)return;a&&a()},register:N=>(y.set(N,!1),()=>y.delete(N))}),[s,y,a]);return f&&w&&(C={...C}),_.useMemo(()=>{y.forEach((N,D)=>y.set(D,!1))},[s]),_.useEffect(()=>{!s&&!y.size&&a&&a()},[s]),n=m.jsx(B1,{pop:d==="popLayout",isPresent:s,anchorX:h,anchorY:g,root:x,children:n}),m.jsx(uo.Provider,{value:C,children:n})};function U1(){return new Map}function Em(n=!0){const r=_.useContext(uo);if(r===null)return[!0,null];const{isPresent:s,onExitComplete:a,register:u}=r,f=_.useId();_.useEffect(()=>{if(n)return u(f)},[n]);const d=_.useCallback(()=>n&&a&&a(f),[f,a,n]);return!s&&a?[!1,d]:[!0]}const Us=n=>n.key||"";function _h(n){const r=[];return _.Children.forEach(n,s=>{_.isValidElement(s)&&r.push(s)}),r}const Tr=({children:n,custom:r,initial:s=!0,onExitComplete:a,presenceAffectsLayout:u=!0,mode:f="sync",propagate:d=!1,anchorX:h="left",anchorY:g="top",root:x})=>{const[y,v]=Em(d),w=_.useMemo(()=>_h(n),[n]),C=d&&!y?[]:w.map(Us),N=_.useRef(!0),D=_.useRef(w),M=ru(()=>new Map),I=_.useRef(new Set),[U,B]=_.useState(w),[b,G]=_.useState(w);ep(()=>{N.current=!1,D.current=w;for(let J=0;J<b.length;J++){const re=Us(b[J]);C.includes(re)?(M.delete(re),I.current.delete(re)):M.get(re)!==!0&&M.set(re,!1)}},[b,C.length,C.join("-")]);const ie=[];if(w!==U){let J=[...w];for(let re=0;re<b.length;re++){const q=b[re],ce=Us(q);C.includes(ce)||(J.splice(re,0,q),ie.push(q))}return f==="wait"&&ie.length&&(J=ie),G(_h(J)),B(w),null}const{forceRender:oe}=_.useContext(nu);return m.jsx(m.Fragment,{children:b.map(J=>{const re=Us(J),q=d&&!y?!1:w===b||C.includes(re),ce=()=>{if(I.current.has(re))return;if(M.has(re))I.current.add(re),M.set(re,!0);else return;let ye=!0;M.forEach(je=>{je||(ye=!1)}),ye&&(oe==null||oe(),G(D.current),d&&(v==null||v()),a&&a())};return m.jsx(b1,{isPresent:q,initial:!N.current||s?void 0:!1,custom:r,presenceAffectsLayout:u,mode:f,root:x,onExitComplete:q?void 0:ce,anchorX:h,anchorY:g,children:J},re)})})},jm=_.createContext({strict:!1}),zh={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"]};let Oh=!1;function W1(){if(Oh)return;const n={};for(const r in zh)n[r]={isEnabled:s=>zh[r].some(a=>!!s[a])};rm(n),Oh=!0}function Nm(){return W1(),Ex()}function H1(n){const r=Nm();for(const s in n)r[s]={...r[s],...n[s]};rm(r)}const G1=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","propagate","ignoreStrict","viewport"]);function ao(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||G1.has(n)}let Mm=n=>!ao(n);function K1(n){typeof n=="function"&&(Mm=r=>r.startsWith("on")?!ao(r):n(r))}try{K1(require("@emotion/is-prop-valid").default)}catch{}function $1(n,r,s){const a={};for(const u in n)u==="values"&&typeof n.values=="object"||Xe(n[u])||(Mm(u)||s===!0&&ao(u)||!r&&!ao(u)||n.draggable&&u.startsWith("onDrag"))&&(a[u]=n[u]);return a}const po=_.createContext({});function Y1(n,r){if(ho(n)){const{initial:s,animate:a}=n;return{initial:s===!1||Ti(s)?s:void 0,animate:Ti(a)?a:void 0}}return n.inherit!==!1?r:{}}function X1(n){const{initial:r,animate:s}=Y1(n,_.useContext(po));return _.useMemo(()=>({initial:r,animate:s}),[Bh(r),Bh(s)])}function Bh(n){return Array.isArray(n)?n.join(" "):n}const Nu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Dm(n,r,s){for(const a in r)!Xe(r[a])&&!cm(a,s)&&(n[a]=r[a])}function Q1({transformTemplate:n},r){return _.useMemo(()=>{const s=Nu();return Au(s,r,n),Object.assign({},s.vars,s.style)},[r])}function q1(n,r){const s=n.style||{},a={};return Dm(a,s,n),Object.assign(a,Q1(n,r)),a}function Z1(n,r){const s={},a=q1(n,r);return n.drag&&n.dragListener!==!1&&(s.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=n.drag===!0?"none":`pan-${n.drag==="x"?"y":"x"}`),n.tabIndex===void 0&&(n.onTap||n.onTapStart||n.whileTap)&&(s.tabIndex=0),s.style=a,s}const Lm=()=>({...Nu(),attrs:{}});function J1(n,r,s,a){const u=_.useMemo(()=>{const f=Lm();return dm(f,r,hm(a),n.transformTemplate,n.style),{...f.attrs,style:{...f.style}}},[r]);if(n.style){const f={};Dm(f,n.style,n),u.style={...f,...u.style}}return u}const ew=["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 Mu(n){return typeof n!="string"||n.includes("-")?!1:!!(ew.indexOf(n)>-1||/[A-Z]/u.test(n))}function tw(n,r,s,{latestValues:a},u,f=!1,d){const g=(d??Mu(n)?J1:Z1)(r,a,u,n),x=$1(r,typeof n=="string",f),y=n!==_.Fragment?{...x,...g,ref:s}:{},{children:v}=r,w=_.useMemo(()=>Xe(v)?v.get():v,[v]);return _.createElement(n,{...y,children:w})}function nw({scrapeMotionValuesFromProps:n,createRenderState:r},s,a,u){return{latestValues:rw(s,a,u,n),renderState:r()}}function rw(n,r,s,a){const u={},f=a(n,{});for(const w in f)u[w]=qs(f[w]);let{initial:d,animate:h}=n;const g=ho(n),x=tm(n);r&&x&&!g&&n.inherit!==!1&&(d===void 0&&(d=r.initial),h===void 0&&(h=r.animate));let y=s?s.initial===!1:!1;y=y||d===!1;const v=y?h:d;if(v&&typeof v!="boolean"&&!fo(v)){const w=Array.isArray(v)?v:[v];for(let C=0;C<w.length;C++){const N=vu(n,w[C]);if(N){const{transitionEnd:D,transition:M,...I}=N;for(const U in I){let B=I[U];if(Array.isArray(B)){const b=y?B.length-1:0;B=B[b]}B!==null&&(u[U]=B)}for(const U in D)u[U]=D[U]}}}return u}const Rm=n=>(r,s)=>{const a=_.useContext(po),u=_.useContext(uo),f=()=>nw(n,r,a,u);return s?f():ru(f)},iw=Rm({scrapeMotionValuesFromProps:Eu,createRenderState:Nu}),sw=Rm({scrapeMotionValuesFromProps:pm,createRenderState:Lm}),ow=Symbol.for("motionComponentSymbol");function aw(n,r,s){const a=_.useRef(s);_.useInsertionEffect(()=>{a.current=s});const u=_.useRef(null);return _.useCallback(f=>{var h;f&&((h=n.onMount)==null||h.call(n,f));const d=a.current;if(typeof d=="function")if(f){const g=d(f);typeof g=="function"&&(u.current=g)}else u.current?(u.current(),u.current=null):d(f);else d&&(d.current=f);r&&(f?r.mount(f):r.unmount())},[r])}const Fm=_.createContext({});function vr(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function lw(n,r,s,a,u,f){var B,b;const{visualElement:d}=_.useContext(po),h=_.useContext(jm),g=_.useContext(uo),x=_.useContext(ju),y=x.reducedMotion,v=x.skipAnimations,w=_.useRef(null),C=_.useRef(!1);a=a||h.renderer,!w.current&&a&&(w.current=a(n,{visualState:r,parent:d,props:s,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:y,skipAnimations:v,isSVG:f}),C.current&&w.current&&(w.current.manuallyAnimateOnMount=!0));const N=w.current,D=_.useContext(Fm);N&&!N.projection&&u&&(N.type==="html"||N.type==="svg")&&uw(w.current,s,u,D);const M=_.useRef(!1);_.useInsertionEffect(()=>{N&&M.current&&N.update(s,g)});const I=s[Up],U=_.useRef(!!I&&typeof window<"u"&&!((B=window.MotionHandoffIsComplete)!=null&&B.call(window,I))&&((b=window.MotionHasOptimisedAnimation)==null?void 0:b.call(window,I)));return ep(()=>{C.current=!0,N&&(M.current=!0,window.MotionIsMounted=!0,N.updateFeatures(),N.scheduleRenderMicrotask(),U.current&&N.animationState&&N.animationState.animateChanges())}),_.useEffect(()=>{N&&(!U.current&&N.animationState&&N.animationState.animateChanges(),U.current&&(queueMicrotask(()=>{var G;(G=window.MotionHandoffMarkAsComplete)==null||G.call(window,I)}),U.current=!1),N.enteringChildren=void 0)}),N}function uw(n,r,s,a){const{layoutId:u,layout:f,drag:d,dragConstraints:h,layoutScroll:g,layoutRoot:x,layoutAnchor:y,layoutCrossfade:v}=r;n.projection=new s(n.latestValues,r["data-framer-portal-id"]?void 0:Vm(n.parent)),n.projection.setOptions({layoutId:u,layout:f,alwaysMeasureLayout:!!d||h&&vr(h),visualElement:n,animationType:typeof f=="string"?f:"both",initialPromotionConfig:a,crossfade:v,layoutScroll:g,layoutRoot:x,layoutAnchor:y})}function Vm(n){if(n)return n.options.allowProjection!==!1?n.projection:Vm(n.parent)}function Cl(n,{forwardMotionProps:r=!1,type:s}={},a,u){a&&H1(a);const f=s?s==="svg":Mu(n),d=f?sw:iw;function h(x,y){let v;const w={..._.useContext(ju),...x,layoutId:cw(x)},{isStatic:C}=w,N=X1(x),D=d(x,C);if(!C&&typeof window<"u"){dw();const M=fw(w);v=M.MeasureLayout,N.visualElement=lw(n,D,w,u,M.ProjectionNode,f)}return m.jsxs(po.Provider,{value:N,children:[v&&N.visualElement?m.jsx(v,{visualElement:N.visualElement,...w}):null,tw(n,x,aw(D,N.visualElement,y),D,C,r,f)]})}h.displayName=`motion.${typeof n=="string"?n:`create(${n.displayName??n.name??""})`}`;const g=_.forwardRef(h);return g[ow]=n,g}function cw({layoutId:n}){const r=_.useContext(nu).id;return r&&n!==void 0?r+"-"+n:n}function dw(n,r){_.useContext(jm).strict}function fw(n){const r=Nm(),{drag:s,layout:a}=r;if(!s&&!a)return{};const u={...s,...a};return{MeasureLayout:s!=null&&s.isEnabled(n)||a!=null&&a.isEnabled(n)?u.MeasureLayout:void 0,ProjectionNode:u.ProjectionNode}}function hw(n,r){if(typeof Proxy>"u")return Cl;const s=new Map,a=(f,d)=>Cl(f,d,n,r),u=(f,d)=>a(f,d);return new Proxy(u,{get:(f,d)=>d==="create"?a:(s.has(d)||s.set(d,Cl(d,void 0,n,r)),s.get(d))})}const pw=(n,r)=>r.isSVG??Mu(n)?new Hx(r):new zx(r,{allowProjection:n!==_.Fragment});class mw extends An{constructor(r){super(r),r.animationState||(r.animationState=Xx(r))}updateAnimationControlsSubscription(){const{animate:r}=this.node.getProps();fo(r)&&(this.unmountControls=r.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:r}=this.node.getProps(),{animate:s}=this.node.prevProps||{};r!==s&&this.updateAnimationControlsSubscription()}unmount(){var r;this.node.animationState.reset(),(r=this.unmountControls)==null||r.call(this)}}let gw=0;class yw extends An{constructor(){super(...arguments),this.id=gw++,this.isExitComplete=!1}update(){var f;if(!this.node.presenceContext)return;const{isPresent:r,onExitComplete:s}=this.node.presenceContext,{isPresent:a}=this.node.prevPresenceContext||{};if(!this.node.animationState||r===a)return;if(r&&a===!1){if(this.isExitComplete){const{initial:d,custom:h}=this.node.getProps();if(typeof d=="string"){const g=Gn(this.node,d,h);if(g){const{transition:x,transitionEnd:y,...v}=g;for(const w in v)(f=this.node.getValue(w))==null||f.jump(v[w])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const u=this.node.animationState.setActive("exit",!r);s&&!r&&u.then(()=>{this.isExitComplete=!0,s(this.id)})}mount(){const{register:r,onExitComplete:s}=this.node.presenceContext||{};s&&s(this.id),r&&(this.unmount=r(this.id))}unmount(){}}const vw={animation:{Feature:mw},exit:{Feature:yw}};function ji(n){return{point:{x:n.pageX,y:n.pageY}}}const xw=n=>r=>ku(r)&&n(r,ji(r));function wi(n,r,s,a){return Ci(n,r,xw(s),a)}const Im=({current:n})=>n?n.ownerDocument.defaultView:null,bh=(n,r)=>Math.abs(n-r);function ww(n,r){const s=bh(n.x,r.x),a=bh(n.y,r.y);return Math.sqrt(s**2+a**2)}const Uh=new Set(["auto","scroll"]);class _m{constructor(r,s,{transformPagePoint:a,contextWindow:u=window,dragSnapToOrigin:f=!1,distanceThreshold:d=3,element:h}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=C=>{this.handleScroll(C.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Ws(this.lastRawMoveEventInfo,this.transformPagePoint));const C=Pl(this.lastMoveEventInfo,this.history),N=this.startEvent!==null,D=ww(C.offset,{x:0,y:0})>=this.distanceThreshold;if(!N&&!D)return;const{point:M}=C,{timestamp:I}=Ye;this.history.push({...M,timestamp:I});const{onStart:U,onMove:B}=this.handlers;N||(U&&U(this.lastMoveEvent,C),this.startEvent=this.lastMoveEvent),B&&B(this.lastMoveEvent,C)},this.handlePointerMove=(C,N)=>{this.lastMoveEvent=C,this.lastRawMoveEventInfo=N,this.lastMoveEventInfo=Ws(N,this.transformPagePoint),ve.update(this.updatePoint,!0)},this.handlePointerUp=(C,N)=>{this.end();const{onEnd:D,onSessionEnd:M,resumeAnimation:I}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&I&&I(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const U=Pl(C.type==="pointercancel"?this.lastMoveEventInfo:Ws(N,this.transformPagePoint),this.history);this.startEvent&&D&&D(C,U),M&&M(C,U)},!ku(r))return;this.dragSnapToOrigin=f,this.handlers=s,this.transformPagePoint=a,this.distanceThreshold=d,this.contextWindow=u||window;const g=ji(r),x=Ws(g,this.transformPagePoint),{point:y}=x,{timestamp:v}=Ye;this.history=[{...y,timestamp:v}];const{onSessionStart:w}=s;w&&w(r,Pl(x,this.history)),this.removeListeners=Pi(wi(this.contextWindow,"pointermove",this.handlePointerMove),wi(this.contextWindow,"pointerup",this.handlePointerUp),wi(this.contextWindow,"pointercancel",this.handlePointerUp)),h&&this.startScrollTracking(h)}startScrollTracking(r){let s=r.parentElement;for(;s;){const a=getComputedStyle(s);(Uh.has(a.overflowX)||Uh.has(a.overflowY))&&this.scrollPositions.set(s,{x:s.scrollLeft,y:s.scrollTop}),s=s.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(r){const s=this.scrollPositions.get(r);if(!s)return;const a=r===window,u=a?{x:window.scrollX,y:window.scrollY}:{x:r.scrollLeft,y:r.scrollTop},f={x:u.x-s.x,y:u.y-s.y};f.x===0&&f.y===0||(a?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=f.x,this.lastMoveEventInfo.point.y+=f.y):this.history.length>0&&(this.history[0].x-=f.x,this.history[0].y-=f.y),this.scrollPositions.set(r,u),ve.update(this.updatePoint,!0))}updateHandlers(r){this.handlers=r}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Pn(this.updatePoint)}}function Ws(n,r){return r?{point:r(n.point)}:n}function Wh(n,r){return{x:n.x-r.x,y:n.y-r.y}}function Pl({point:n},r){return{point:n,delta:Wh(n,zm(r)),offset:Wh(n,Sw(r)),velocity:kw(r,.1)}}function Sw(n){return n[0]}function zm(n){return n[n.length-1]}function kw(n,r){if(n.length<2)return{x:0,y:0};let s=n.length-1,a=null;const u=zm(n);for(;s>=0&&(a=n[s],!(u.timestamp-a.timestamp>mt(r)));)s--;if(!a)return{x:0,y:0};a===n[0]&&n.length>2&&u.timestamp-a.timestamp>mt(r)*2&&(a=n[1]);const f=kt(u.timestamp-a.timestamp);if(f===0)return{x:0,y:0};const d={x:(u.x-a.x)/f,y:(u.y-a.y)/f};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}function Tw(n,{min:r,max:s},a){return r!==void 0&&n<r?n=a?Ce(r,n,a.min):Math.max(n,r):s!==void 0&&n>s&&(n=a?Ce(s,n,a.max):Math.min(n,s)),n}function Hh(n,r,s){return{min:r!==void 0?n.min+r:void 0,max:s!==void 0?n.max+s-(n.max-n.min):void 0}}function Cw(n,{top:r,left:s,bottom:a,right:u}){return{x:Hh(n.x,s,u),y:Hh(n.y,r,a)}}function Gh(n,r){let s=r.min-n.min,a=r.max-n.max;return r.max-r.min<n.max-n.min&&([s,a]=[a,s]),{min:s,max:a}}function Pw(n,r){return{x:Gh(n.x,r.x),y:Gh(n.y,r.y)}}function Aw(n,r){let s=.5;const a=rt(n),u=rt(r);return u>a?s=Si(r.min,r.max-a,n.min):a>u&&(s=Si(n.min,n.max-u,r.min)),Gt(0,1,s)}function Ew(n,r){const s={};return r.min!==void 0&&(s.min=r.min-n.min),r.max!==void 0&&(s.max=r.max-n.min),s}const ql=.35;function jw(n=ql){return n===!1?n=0:n===!0&&(n=ql),{x:Kh(n,"left","right"),y:Kh(n,"top","bottom")}}function Kh(n,r,s){return{min:$h(n,r),max:$h(n,s)}}function $h(n,r){return typeof n=="number"?n:n[r]||0}const Nw=new WeakMap;class Mw{constructor(r){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ue(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=r}start(r,{snapToCursor:s=!1,distanceThreshold:a}={}){const{presenceContext:u}=this.visualElement;if(u&&u.isPresent===!1)return;const f=v=>{s&&this.snapToCursor(ji(v).point),this.stopAnimation()},d=(v,w)=>{const{drag:C,dragPropagation:N,onDragStart:D}=this.getProps();if(C&&!N&&(this.openDragLock&&this.openDragLock(),this.openDragLock=rx(C),!this.openDragLock))return;this.latestPointerEvent=v,this.latestPanInfo=w,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),bt(I=>{let U=this.getAxisMotionValue(I).get()||0;if(Ht.test(U)){const{projection:B}=this.visualElement;if(B&&B.layout){const b=B.layout.layoutBox[I];b&&(U=rt(b)*(parseFloat(U)/100))}}this.originPoint[I]=U}),D&&ve.update(()=>D(v,w),!1,!0),Ul(this.visualElement,"transform");const{animationState:M}=this.visualElement;M&&M.setActive("whileDrag",!0)},h=(v,w)=>{this.latestPointerEvent=v,this.latestPanInfo=w;const{dragPropagation:C,dragDirectionLock:N,onDirectionLock:D,onDrag:M}=this.getProps();if(!C&&!this.openDragLock)return;const{offset:I}=w;if(N&&this.currentDirection===null){this.currentDirection=Lw(I),this.currentDirection!==null&&D&&D(this.currentDirection);return}this.updateAxis("x",w.point,I),this.updateAxis("y",w.point,I),this.visualElement.render(),M&&ve.update(()=>M(v,w),!1,!0)},g=(v,w)=>{this.latestPointerEvent=v,this.latestPanInfo=w,this.stop(v,w),this.latestPointerEvent=null,this.latestPanInfo=null},x=()=>{const{dragSnapToOrigin:v}=this.getProps();(v||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:y}=this.getProps();this.panSession=new _m(r,{onSessionStart:f,onStart:d,onMove:h,onSessionEnd:g,resumeAnimation:x},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,distanceThreshold:a,contextWindow:Im(this.visualElement),element:this.visualElement.current})}stop(r,s){const a=r||this.latestPointerEvent,u=s||this.latestPanInfo,f=this.isDragging;if(this.cancel(),!f||!u||!a)return;const{velocity:d}=u;this.startAnimation(d);const{onDragEnd:h}=this.getProps();h&&ve.postRender(()=>h(a,u))}cancel(){this.isDragging=!1;const{projection:r,animationState:s}=this.visualElement;r&&(r.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:a}=this.getProps();!a&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(r,s,a){const{drag:u}=this.getProps();if(!a||!Hs(r,u,this.currentDirection))return;const f=this.getAxisMotionValue(r);let d=this.originPoint[r]+a[r];this.constraints&&this.constraints[r]&&(d=Tw(d,this.constraints[r],this.elastic[r])),f.set(d)}resolveConstraints(){var f;const{dragConstraints:r,dragElastic:s}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(f=this.visualElement.projection)==null?void 0:f.layout,u=this.constraints;r&&vr(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&a?this.constraints=Cw(a.layoutBox,r):this.constraints=!1,this.elastic=jw(s),u!==this.constraints&&!vr(r)&&a&&this.constraints&&!this.hasMutatedConstraints&&bt(d=>{this.constraints!==!1&&this.getAxisMotionValue(d)&&(this.constraints[d]=Ew(a.layoutBox[d],this.constraints[d]))})}resolveRefConstraints(){const{dragConstraints:r,onMeasureDragConstraints:s}=this.getProps();if(!r||!vr(r))return!1;const a=r.current,{projection:u}=this.visualElement;if(!u||!u.layout)return!1;const f=Lx(a,u.root,this.visualElement.getTransformPagePoint());let d=Pw(u.layout.layoutBox,f);if(s){const h=s(Nx(d));this.hasMutatedConstraints=!!h,h&&(d=sm(h))}return d}startAnimation(r){const{drag:s,dragMomentum:a,dragElastic:u,dragTransition:f,dragSnapToOrigin:d,onDragTransitionEnd:h}=this.getProps(),g=this.constraints||{},x=bt(y=>{if(!Hs(y,s,this.currentDirection))return;let v=g&&g[y]||{};(d===!0||d===y)&&(v={min:0,max:0});const w=u?200:1e6,C=u?40:1e7,N={type:"inertia",velocity:a?r[y]:0,bounceStiffness:w,bounceDamping:C,timeConstant:750,restDelta:1,restSpeed:10,...f,...v};return this.startAxisValueAnimation(y,N)});return Promise.all(x).then(h)}startAxisValueAnimation(r,s){const a=this.getAxisMotionValue(r);return Ul(this.visualElement,r),a.start(yu(r,a,0,s,this.visualElement,!1))}stopAnimation(){bt(r=>this.getAxisMotionValue(r).stop())}getAxisMotionValue(r){const s=`_drag${r.toUpperCase()}`,a=this.visualElement.getProps(),u=a[s];return u||this.visualElement.getValue(r,(a.initial?a.initial[r]:void 0)||0)}snapToCursor(r){bt(s=>{const{drag:a}=this.getProps();if(!Hs(s,a,this.currentDirection))return;const{projection:u}=this.visualElement,f=this.getAxisMotionValue(s);if(u&&u.layout){const{min:d,max:h}=u.layout.layoutBox[s],g=f.get()||0;f.set(r[s]-Ce(d,h,.5)+g)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:r,dragConstraints:s}=this.getProps(),{projection:a}=this.visualElement;if(!vr(s)||!a||!this.constraints)return;this.stopAnimation();const u={x:0,y:0};bt(d=>{const h=this.getAxisMotionValue(d);if(h&&this.constraints!==!1){const g=h.get();u[d]=Aw({min:g,max:g},this.constraints[d])}});const{transformTemplate:f}=this.visualElement.getProps();this.visualElement.current.style.transform=f?f({},""):"none",a.root&&a.root.updateScroll(),a.updateLayout(),this.constraints=!1,this.resolveConstraints(),bt(d=>{if(!Hs(d,r,null))return;const h=this.getAxisMotionValue(d),{min:g,max:x}=this.constraints[d];h.set(Ce(g,x,u[d]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Nw.set(this.visualElement,this);const r=this.visualElement.current,s=wi(r,"pointerdown",x=>{const{drag:y,dragListener:v=!0}=this.getProps(),w=x.target,C=w!==r&&ux(w);y&&v&&!C&&this.start(x)});let a;const u=()=>{const{dragConstraints:x}=this.getProps();vr(x)&&x.current&&(this.constraints=this.resolveRefConstraints(),a||(a=Dw(r,x.current,()=>this.scalePositionWithinConstraints())))},{projection:f}=this.visualElement,d=f.addEventListener("measure",u);f&&!f.layout&&(f.root&&f.root.updateScroll(),f.updateLayout()),ve.read(u);const h=Ci(window,"resize",()=>this.scalePositionWithinConstraints()),g=f.addEventListener("didUpdate",(({delta:x,hasLayoutChanged:y})=>{this.isDragging&&y&&(bt(v=>{const w=this.getAxisMotionValue(v);w&&(this.originPoint[v]+=x[v].translate,w.set(w.get()+x[v].translate))}),this.visualElement.render())}));return()=>{h(),s(),d(),g&&g(),a&&a()}}getProps(){const r=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:a=!1,dragPropagation:u=!1,dragConstraints:f=!1,dragElastic:d=ql,dragMomentum:h=!0}=r;return{...r,drag:s,dragDirectionLock:a,dragPropagation:u,dragConstraints:f,dragElastic:d,dragMomentum:h}}}function Yh(n){let r=!0;return()=>{if(r){r=!1;return}n()}}function Dw(n,r,s){const a=th(n,Yh(s)),u=th(r,Yh(s));return()=>{a(),u()}}function Hs(n,r,s){return(r===!0||r===n)&&(s===null||s===n)}function Lw(n,r=10){let s=null;return Math.abs(n.y)>r?s="y":Math.abs(n.x)>r&&(s="x"),s}class Rw extends An{constructor(r){super(r),this.removeGroupControls=Tt,this.removeListeners=Tt,this.controls=new Mw(r)}mount(){const{dragControls:r}=this.node.getProps();r&&(this.removeGroupControls=r.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Tt}update(){const{dragControls:r}=this.node.getProps(),{dragControls:s}=this.node.prevProps||{};r!==s&&(this.removeGroupControls(),r&&(this.removeGroupControls=r.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Al=n=>(r,s)=>{n&&ve.update(()=>n(r,s),!1,!0)};class Fw extends An{constructor(){super(...arguments),this.removePointerDownListener=Tt}onPointerDown(r){this.session=new _m(r,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Im(this.node)})}createPanHandlers(){const{onPanSessionStart:r,onPanStart:s,onPan:a,onPanEnd:u}=this.node.getProps();return{onSessionStart:Al(r),onStart:Al(s),onMove:Al(a),onEnd:(f,d)=>{delete this.session,u&&ve.postRender(()=>u(f,d))}}}mount(){this.removePointerDownListener=wi(this.node.current,"pointerdown",r=>this.onPointerDown(r))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let El=!1;class Vw extends _.Component{componentDidMount(){const{visualElement:r,layoutGroup:s,switchLayoutGroup:a,layoutId:u}=this.props,{projection:f}=r;f&&(s.group&&s.group.add(f),a&&a.register&&u&&a.register(f),El&&f.root.didUpdate(),f.addEventListener("animationComplete",()=>{this.safeToRemove()}),f.setOptions({...f.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Zs.hasEverUpdated=!0}getSnapshotBeforeUpdate(r){const{layoutDependency:s,visualElement:a,drag:u,isPresent:f}=this.props,{projection:d}=a;return d&&(d.isPresent=f,r.layoutDependency!==s&&d.setOptions({...d.options,layoutDependency:s}),El=!0,u||r.layoutDependency!==s||s===void 0||r.isPresent!==f?d.willUpdate():this.safeToRemove(),r.isPresent!==f&&(f?d.promote():d.relegate()||ve.postRender(()=>{const h=d.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:r,layoutAnchor:s}=this.props,{projection:a}=r;a&&(a.options.layoutAnchor=s,a.root.didUpdate(),Su.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:r,layoutGroup:s,switchLayoutGroup:a}=this.props,{projection:u}=r;El=!0,u&&(u.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(u),a&&a.deregister&&a.deregister(u))}safeToRemove(){const{safeToRemove:r}=this.props;r&&r()}render(){return null}}function Om(n){const[r,s]=Em(),a=_.useContext(nu);return m.jsx(Vw,{...n,layoutGroup:a,switchLayoutGroup:_.useContext(Fm),isPresent:r,safeToRemove:s})}const Iw={pan:{Feature:Fw},drag:{Feature:Rw,ProjectionNode:Am,MeasureLayout:Om}};function Xh(n,r,s){const{props:a}=n;n.animationState&&a.whileHover&&n.animationState.setActive("whileHover",s==="Start");const u="onHover"+s,f=a[u];f&&ve.postRender(()=>f(r,ji(r)))}class _w extends An{mount(){const{current:r}=this.node;r&&(this.unmount=sx(r,(s,a)=>(Xh(this.node,a,"Start"),u=>Xh(this.node,u,"End"))))}unmount(){}}class zw extends An{constructor(){super(...arguments),this.isActive=!1}onFocus(){let r=!1;try{r=this.node.current.matches(":focus-visible")}catch{r=!0}!r||!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=Pi(Ci(this.node.current,"focus",()=>this.onFocus()),Ci(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Qh(n,r,s){const{props:a}=n;if(n.current instanceof HTMLButtonElement&&n.current.disabled)return;n.animationState&&a.whileTap&&n.animationState.setActive("whileTap",s==="Start");const u="onTap"+(s==="End"?"":s),f=a[u];f&&ve.postRender(()=>f(r,ji(r)))}class Ow extends An{mount(){const{current:r}=this.node;if(!r)return;const{globalTapTarget:s,propagate:a}=this.node.props;this.unmount=dx(r,(u,f)=>(Qh(this.node,f,"Start"),(d,{success:h})=>Qh(this.node,d,h?"End":"Cancel")),{useGlobalTarget:s,stopPropagation:(a==null?void 0:a.tap)===!1})}unmount(){}}const Zl=new WeakMap,jl=new WeakMap,Bw=n=>{const r=Zl.get(n.target);r&&r(n)},bw=n=>{n.forEach(Bw)};function Uw({root:n,...r}){const s=n||document;jl.has(s)||jl.set(s,{});const a=jl.get(s),u=JSON.stringify(r);return a[u]||(a[u]=new IntersectionObserver(bw,{root:n,...r})),a[u]}function Ww(n,r,s){const a=Uw(r);return Zl.set(n,s),a.observe(n),()=>{Zl.delete(n),a.unobserve(n)}}const Hw={some:0,all:1};class Gw extends An{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var g;(g=this.stopObserver)==null||g.call(this);const{viewport:r={}}=this.node.getProps(),{root:s,margin:a,amount:u="some",once:f}=r,d={root:s?s.current:void 0,rootMargin:a,threshold:typeof u=="number"?u:Hw[u]},h=x=>{const{isIntersecting:y}=x;if(this.isInView===y||(this.isInView=y,f&&!y&&this.hasEnteredView))return;y&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",y);const{onViewportEnter:v,onViewportLeave:w}=this.node.getProps(),C=y?v:w;C&&C(x)};this.stopObserver=Ww(this.node.current,d,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:r,prevProps:s}=this.node;["amount","margin","root"].some(Kw(r,s))&&this.startObserver()}unmount(){var r;(r=this.stopObserver)==null||r.call(this),this.hasEnteredView=!1,this.isInView=!1}}function Kw({viewport:n={}},{viewport:r={}}={}){return s=>n[s]!==r[s]}const $w={inView:{Feature:Gw},tap:{Feature:Ow},focus:{Feature:zw},hover:{Feature:_w}},Yw={layout:{ProjectionNode:Am,MeasureLayout:Om}},Xw={...vw,...$w,...Iw,...Yw},pe=hw(Xw,pw);/**
|
||
* @license lucide-react v0.469.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Qw=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Bm=(...n)=>n.filter((r,s,a)=>!!r&&r.trim()!==""&&a.indexOf(r)===s).join(" ").trim();/**
|
||
* @license lucide-react v0.469.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/var qw={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||
* @license lucide-react v0.469.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Zw=_.forwardRef(({color:n="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:a,className:u="",children:f,iconNode:d,...h},g)=>_.createElement("svg",{ref:g,...qw,width:r,height:r,stroke:n,strokeWidth:a?Number(s)*24/Number(r):s,className:Bm("lucide",u),...h},[...d.map(([x,y])=>_.createElement(x,y)),...Array.isArray(f)?f:[f]]));/**
|
||
* @license lucide-react v0.469.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Ct=(n,r)=>{const s=_.forwardRef(({className:a,...u},f)=>_.createElement(Zw,{ref:f,iconNode:r,className:Bm(`lucide-${Qw(n)}`,a),...u}));return s.displayName=`${n}`,s};/**
|
||
* @license lucide-react v0.469.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const bm=Ct("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
|
||
* @license lucide-react v0.469.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Jw=Ct("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/**
|
||
* @license lucide-react v0.469.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const kr=Ct("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
||
* @license lucide-react v0.469.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Um=Ct("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
|
||
* @license lucide-react v0.469.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const qh=Ct("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);/**
|
||
* @license lucide-react v0.469.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Zh=Ct("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
|
||
* @license lucide-react v0.469.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const eS=Ct("Layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);/**
|
||
* @license lucide-react v0.469.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Wm=Ct("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/**
|
||
* @license lucide-react v0.469.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Jl=Ct("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
|
||
* @license lucide-react v0.469.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const tS=Ct("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
|
||
* @license lucide-react v0.469.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const lo=Ct("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
|
||
* @license lucide-react v0.469.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const eu=Ct("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]),en={name:"VO NGUYEN DANG KHOA",title:"AI CREATIVE LEAD & SOFTWARE DEVELOPER",dob:"19/01/1993",phone:"0398300340",email:"vonguyendangkhoa@gmail.com",location:"Ho Chi Minh City, Vietnam",portfolio:"khoavo.myds.me",github:"git.khoavo.myds.me/vndangkhoa",summary:"Highly accomplished Creative Leader bridging the gap between artistic direction and high-performance software engineering. With over 9+ years managing brand strategies and digital design, I evaluate and execute technology-driven projects from concept to production. Specialized in merging traditional creative direction with cutting-edge generative AI workflows (ComfyUI, FLUX) and full-stack development (Go, React)."},nS=[{period:"12/2012 - 06/2016",school:"RMIT Vietnam",degree:"Bachelor of Multimedia System Design (Graduated with Excellence)"}],rS=[{category:"Creative & AI Tools",items:"Adobe Creative Suite (Ps, Ai, Id, Pr), ComfyUI, Stable Diffusion, FLUX, Ollama, 3D Animation, Motion Graphics"},{category:"Development Stack",items:"React, Next.js, Go (Gin), Rust (Axum), Python (FastAPI), TypeScript, Tailwind CSS"},{category:"Infrastructure",items:"Docker, SQLite, Synology NAS Deployment, HLS Video Streaming"},{category:"Leadership",items:"Cross-Functional Management, Creative Strategy, Technical Mentorship, Process Optimization"}],iS=[{role:"AI Creative Lead",company:"Phibious Viet Nam",period:"06/2024 - Present",highlights:["Manage highly complex, technology-driven creative projects, merging traditional design with advanced generative AI models and data analytics.","Deploy and utilize ComfyUI, Stable Diffusion, FLUX, and local LLMs (Ollama, LM Studio) to augment design workflows and drive overarching agency strategies.","Lead cross-functional collaboration between traditional designers, copywriters, and data analysts to ensure measurable campaign performance.","Optimize internal design processes by integrating advanced image generation pipelines into daily operations.","Train and mentor the broader agency (including interns) on core AI design competencies and prompt engineering."]},{role:"eCOM Design Lead",company:"Procter & Gamble (P&G) Vietnam",period:"09/2023 - 06/2025",highlights:["Spearheaded strategic design concepts and visual strategies for e-commerce, directly impacting consumer engagement and online sales for Hair Care brands.","Managed end-to-end medium-to-large design projects, actively improving internal design processes and ensuring strict corporate standard compliance.","Collaborated globally across functional geographic boundaries and cross-functional teams to deliver cohesive brand stories."]},{role:"ECOM Graphic Designer (ABM)",company:"P&G Viet Nam",period:"11/2020 - 09/2023",highlights:["Built concepts and executed visual strategy across vast consumer touchpoints including packaging, eCommerce, and social media under the Hair Care Packaging Design Studio.","Leveraged hands-on design mastery to craft illustrations and brand expressions that consistently met high commercial demands.","Ensured brand guidelines and directives were embraced consistently and creatively across all regional platforms."]},{role:"Production Creative Lead",company:"Inn Saigon",period:"12/2019 - 11/2020",highlights:["Led the photography and production team, setting the standard for internal branding deliverables (Food, Product, Events).","Managed project budgets, retouching workflows, and cross-team communications to deliver high-volume outcomes.","Conducted frequent feedback sessions to boost performance and facilitate the development of team members."]},{role:"Regional Head of Design",company:"ASIAMARINE",period:"12/2018 - 12/2019",highlights:["Supervised all creation of concepts and layouts across digital/offline marketing for luxury marine sectors.","Managed independent contractors and junior designers, leveraging creative marketing to develop targeted campaigns."]},{role:"Senior Graphic Designer",company:"EMG",period:"12/2017 - 12/2018",highlights:["Created outstanding digital and print designs, managing corporate identity, merchandise, and digital displays.","Assisted with concept proposals to clients including mockup preparations and asset sourcing."]},{role:"Graphic Artist",company:"Le Meridien Saigon",period:"12/2016 - 12/2017",highlights:["Designed and executed all promotional collateral according to strict Le Meridien brand identity guidelines.","Liaised with external suppliers to ensure creative print quality and deadlines were consistently met."]},{role:"Animation Designer",company:"Adidas Group",period:"06/2016 - 12/2016",highlights:["Developed graphics and animations for production environment simulations (Line Balancing, One Pair Flow).","Compiled and edited video infographics for visual training purposes."]}],sS=[{name:"KV-Tube",tech:"Go (Gin), Next.js, SQLite, Docker, HLS.js",desc:"YouTube-like video streaming platform with HLS support, subscriptions, and Synology NAS deployment."},{name:"Spotify Clone",tech:"React, Rust (Axum), YouTube API",desc:"Full-featured music player with real-time lyrics and custom playlists."},{name:"APIx (kv-pix)",tech:"Next.js 14, TypeScript, Prisma",desc:"AI Image Generator powered by multiple providers (Grok, Meta, Whisk)."}],oS=[{name:"Dung Bui",title:"Senior Manager",company:"Adidas Group",contact:"dung.bui@adidas-group.com"},{name:"Wouter Pasman",title:"Graphic Designer",company:"FreshStudio.vn",contact:"0908074383"},{name:"Tran Nhuan Vu",title:"Marketing Mgr",company:"Element Mgmt",contact:"Vu.tran@element.vn"}],Ee={pageContainer:{width:"210mm",padding:"14mm 16mm",background:"#ffffff",fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",color:"#000000",fontSize:"9pt",lineHeight:"1.5",margin:"0 auto"},header:{borderBottom:"2px solid #000",paddingBottom:"4mm",marginBottom:"4mm"},name:{fontSize:"25pt",fontWeight:900,letterSpacing:"-0.02em",margin:"0 0 4px 0",lineHeight:"1"},title:{fontSize:"11pt",fontWeight:600,color:"#333",margin:"0 0 4mm 0",letterSpacing:"0.05em"},infoGrid:{display:"flex",flexWrap:"wrap",gap:"3mm 8mm",fontSize:"8pt",color:"#444"},sectionTitle:{fontSize:"11pt",fontWeight:800,textTransform:"uppercase",letterSpacing:"0.05em",borderBottom:"1px solid #ccc",paddingBottom:"1.5mm",margin:"5mm 0 3mm 0",color:"#000"},summary:{fontSize:"9pt",lineHeight:"1.5",margin:"0 0 4mm 0",textAlign:"justify"},skillGrid:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"2mm 5mm",marginBottom:"3mm"},experienceItem:{marginBottom:"4mm"},expHeader:{display:"flex",justifyContent:"space-between",alignItems:"baseline",marginBottom:"1.5mm"},expRole:{fontSize:"10pt",fontWeight:700,margin:0},expCompany:{fontWeight:600,color:"#333"},expPeriod:{fontSize:"8pt",color:"#555",fontWeight:600},expList:{margin:"0",paddingLeft:"5mm"},expBullet:{marginBottom:"1mm",textAlign:"justify"},projectItem:{marginBottom:"2.5mm"},projectHeader:{fontWeight:700,fontSize:"9.5pt"},projectTech:{fontSize:"7.5pt",color:"#555",fontFamily:"monospace",marginLeft:"2mm"},refGrid:{display:"flex",justifyContent:"space-between",fontSize:"8pt",marginTop:"2mm"}};function aS(){return m.jsxs("div",{style:Ee.pageContainer,children:[m.jsxs("div",{style:Ee.header,children:[m.jsx("h1",{style:Ee.name,children:en.name}),m.jsx("div",{style:Ee.title,children:en.title}),m.jsxs("div",{style:Ee.infoGrid,children:[m.jsxs("span",{children:[m.jsx("strong",{children:"Email:"})," ",en.email]}),m.jsxs("span",{children:[m.jsx("strong",{children:"Phone:"})," ",en.phone]}),m.jsxs("span",{children:[m.jsx("strong",{children:"Location:"})," ",en.location]}),m.jsxs("span",{children:[m.jsx("strong",{children:"Portfolio:"})," ",en.portfolio]}),m.jsxs("span",{children:[m.jsx("strong",{children:"GitHub:"})," ",en.github]}),m.jsxs("span",{children:[m.jsx("strong",{children:"DOB:"})," ",en.dob]})]})]}),m.jsx("p",{style:Ee.summary,children:en.summary}),m.jsx("h2",{style:Ee.sectionTitle,children:"Core Competencies"}),m.jsx("div",{style:Ee.skillGrid,children:rS.map((n,r)=>m.jsxs("div",{children:[m.jsx("strong",{style:{display:"block",fontSize:"9pt",marginBottom:"1mm"},children:n.category}),m.jsx("span",{style:{fontSize:"8.5pt",color:"#333"},children:n.items})]},r))}),m.jsx("h2",{style:Ee.sectionTitle,children:"Work Experience"}),m.jsx("div",{children:iS.map((n,r)=>m.jsxs("div",{style:Ee.experienceItem,children:[m.jsxs("div",{style:Ee.expHeader,children:[m.jsxs("h3",{style:Ee.expRole,children:[n.role," ",m.jsx("span",{style:{fontWeight:400},children:"at"})," ",m.jsx("span",{style:Ee.expCompany,children:n.company})]}),m.jsx("span",{style:Ee.expPeriod,children:n.period})]}),m.jsx("ul",{style:Ee.expList,children:n.highlights.map((s,a)=>m.jsx("li",{style:Ee.expBullet,children:s},a))})]},r))}),m.jsx("h2",{style:Ee.sectionTitle,children:"Software Engineering Projects"}),m.jsx("div",{children:sS.map((n,r)=>m.jsxs("div",{style:Ee.projectItem,children:[m.jsx("span",{style:Ee.projectHeader,children:n.name}),m.jsxs("span",{style:Ee.projectTech,children:["[",n.tech,"]"]}),m.jsx("span",{style:{display:"block",fontSize:"8.5pt",color:"#333",marginTop:"1mm"},children:n.desc})]},r))}),m.jsx("h2",{style:Ee.sectionTitle,children:"Education"}),m.jsx("div",{style:{marginBottom:"6mm"},children:nS.map((n,r)=>m.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[m.jsx("strong",{children:n.school}),m.jsx("span",{children:n.degree}),m.jsx("span",{style:Ee.expPeriod,children:n.period})]},r))}),m.jsx("h2",{style:Ee.sectionTitle,children:"References"}),m.jsx("div",{style:Ee.refGrid,children:oS.map((n,r)=>m.jsxs("div",{children:[m.jsx("strong",{children:n.name}),m.jsx("br",{}),m.jsxs("span",{style:{color:"#555"},children:[n.title,", ",n.company]}),m.jsx("br",{}),m.jsx("span",{children:n.contact})]},r))})]})}const Ut={name:"Vo Nguyen Dang Khoa",phone:"0398300340",email:"vonguyendangkhoa@gmail.com",location:"Ho Chi Minh City, Vietnam",linkedin:"https://www.linkedin.com/in/khoa-vo-76291236/",portfolio:"https://khoavo.myds.me/"},Bt={title:"AI Creative Lead & Motion Designer",summary:"Visionary Creative Leader with 9+ years of expertise bridging brand strategy, digital design, motion graphics, and cutting-edge generative AI. Currently pioneering AI-augmented creative workflows at Phibious, merging traditional art direction with ComfyUI, Stable Diffusion, and FLUX to redefine what's possible in visual storytelling. Previously led eCommerce design at P&G, shaping digital experiences for millions of consumers across Southeast Asia.",tagline:"Where Design Meets Intelligence",skills:[{category:"AI & Generative Design",items:["ComfyUI","Stable Diffusion","FLUX","Midjourney","RunwayML","Ollama","LM Studio","LoRA Training","ControlNet","IP-Adapter"]},{category:"Design & Creative Tools",items:["Adobe Creative Suite","Figma","After Effects","Premiere Pro","Cinema 4D","Blender","Photoshop","Illustrator","InDesign"]},{category:"Motion & Animation",items:["Motion Graphics","3D Animation","Kinetic Typography","Visual Effects","Character Animation","Storyboarding"]},{category:"Brand & Strategy",items:["Brand Identity","Art Direction","Visual Storytelling","Editorial Design","Packaging Design","Strategic Design"]}],projects:[{id:1,title:"The Language of Poetry & Literature",category:"AI Generated Art",image:"https://portfolio.khoavo.myds.me/wp-content/uploads/2025/08/i2i_1756355661_62547902.png",description:"Exploring the ethereal boundary between reality and imagination through AI-generated visuals. Created with Stable Diffusion, ComfyUI, and custom LoRA training to capture the intangible essence of poetic imagery.",link:"https://portfolio.khoavo.myds.me/2025/08/28/the-language-of-poetry-and-literature/",year:"2025"},{id:2,title:"Delux Perfume – Fineline 2025 Launch",category:"AI Branding & Video",image:"https://portfolio.khoavo.myds.me/wp-content/uploads/2025/08/Delux-Perfume_red.png",description:"End-to-end creative strategy and art direction for premium perfume launch. From AI-generated mood boards and product visuals to cinematic video production, creating a cohesive brand narrative for Southeast Asia market.",link:"https://portfolio.khoavo.myds.me/2025/08/11/giving-art-direction-to-a-brand-a-case-study/",year:"2025"},{id:3,title:"AI Studio Photography",category:"AI-Generated Branding",image:"https://portfolio.khoavo.myds.me/wp-content/uploads/2025/07/img_0317.jpg",description:"Revolutionary approach to professional studio photography using AI. ComfyUI workflows with custom LoRA to generate studio-quality product and portrait images, reducing production costs by 70%.",link:"https://portfolio.khoavo.myds.me/2025/07/27/%F0%9F%A7%A0%F0%9F%93%B8-ai-studio-i-can-do-that-too/",year:"2025"},{id:4,title:"NAVIGATOR – ASIAMARINE Magazine",category:"Editorial Design",image:"https://portfolio.khoavo.myds.me/wp-content/uploads/2020/10/navigator-vol1_page_001.webp",description:"Complete editorial design for Vietnam's premier yacht market publication. Art direction, layout design, and visual storytelling for a luxury marine sector brand reaching high-net-worth readers across Asia.",link:"https://portfolio.khoavo.myds.me/2020/10/20/navigator/",year:"2020"},{id:5,title:"PetroVietnam – PCT Corporate Identity",category:"Brand Identity & 3D",image:"https://portfolio.khoavo.myds.me/wp-content/uploads/2017/04/cip_mockup2.png",description:"Comprehensive corporate identity for PetroVietnam Transportation. 3D vehicle visualization, logo design, stationery system, and POSM materials creating a cohesive national brand presence.",link:"https://portfolio.khoavo.myds.me/2017/04/10/petrovietnam-pct/",year:"2017"},{id:6,title:"Skyxx – Animated Poster Series",category:"Motion Graphics",image:"https://portfolio.khoavo.myds.me/wp-content/uploads/2019/04/aash-3-scaled.jpg",description:"Award-winning weekly animated poster series for entertainment events. Dynamic motion graphics with 3D elements, pushing creative boundaries under tight deadlines while maintaining exceptional quality.",link:"https://portfolio.khoavo.myds.me/2019/02/17/skyxx-poster-animation/",year:"2019"}],experience:[{role:"AI Creative Lead",company:"Phibious Vietnam",period:"2025 - Present",location:"Ho Chi Minh City",highlights:["Spearhead the integration of generative AI (ComfyUI, Stable Diffusion, FLUX) into creative workflows, reducing production time by 50%","Lead cross-functional teams of designers, copywriters, and data analysts to deliver technology-driven creative campaigns","Developed proprietary AI tools for mood boarding, concept visualization, and rapid prototyping","Created AI-augmented design concepts for digital and physical platforms serving Fortune 500 clients"]},{role:"eCommerce Design Lead",company:"Procter & Gamble (P&G)",period:"2020 - 2025",location:"Ho Chi Minh City",highlights:["Led visual strategy for eCommerce platforms across Hair Care category, directly impacting millions of consumers in SEA","Managed end-to-end design projects from concept to execution, aligning with global marketing strategies","Spearheaded the digital transformation of brand assets for omnichannel retail experiences","Mentored junior designers and established design standards adopted across the regional team"]},{role:"Production Creative Lead",company:"INN SaiGon",period:"Dec 2019 - Nov 2020",location:"Ho Chi Minh City",highlights:["Directed photography production for food, product, and event projects with 30+ client accounts","Established comprehensive brand guidelines and visual standards ensuring consistency across deliverables","Optimized post-production workflows, reducing turnaround time by 40%"]},{role:"Regional Head of Design",company:"ASIAMARINE",period:"2018 - 2019",location:"Ho Chi Minh City",highlights:["Led design team creating digital marketing assets, web graphics, and editorial content for luxury yacht brand","Delegated projects to junior designers while maintaining quality control and brand consistency","Collaborated with international teams to localize content for Asian markets"]},{role:"Senior Graphic Designer",company:"EMG - Element Management Group",period:"2017 - 2018",location:"Ho Chi Minh City",highlights:["Created impactful designs for print and digital campaigns for global luxury and lifestyle brands","Expert in photo sourcing, advanced image retouching, and brand identity development","Delivered corporate identity packages for multinational clients"]}],awards:[{title:"Best Digital Campaign",year:"2024",organization:"P&G SEA Digital Awards"},{title:"Outstanding Art Direction",year:"2019",organization:"Vietnam Design Awards"}]},yr={summary:"9-month intensive coding journey from zero to production. Built 5+ deployed applications including video streaming platforms, AI image generators, and music players. Proficient in modern web frameworks, containerization, and cloud deployment. Self-taught developer with a creative background bringing unique problem-solving perspective.",journey:[{month:"MAY '24",title:"The Spark",description:"First deep dive into Next.js. Abandoned manual CSS for Tailwind efficiency."},{month:"JUL '24",title:"First Production App",description:"Built kv-pix AI image generator with multi-provider support (Google Whisk, Meta AI, Grok)."},{month:"SEP '24",title:"Full-Stack Mastery",description:"Created KV-Tube YouTube platform with Go backend + Next.js. Dockerized for Synology NAS."},{month:"NOV '24",title:"The AI Pivot",description:"Fully embraced AI coding. Cursor and v0 became primary development engine."},{month:"DEC '24",title:"Rust Exploration",description:"Built Spotify clone with Rust Axum backend. Advanced system architecture."},{month:"PRESENT",title:"Vibe Ascended",description:"Building complex apps through high-level prompting and intuition."}],skills:{languages:["TypeScript","JavaScript","Go","Rust","Python","HTML/CSS","SQL"],frontend:["React","Next.js","Vite","Tailwind CSS","Shadcn","Framer Motion","Zustand","PWA"],backend:["Node.js","Go (Gin)","Rust (Axum)","Express","REST APIs","WebSocket"],ai:["LLM Integration","Cursor AI","v0","Replit AI","Ollama","Prompt Engineering","Multi-Provider AI APIs"],devops:["Docker","Docker Compose","GitHub Actions","Forgejo CI/CD","Synology NAS","Nginx","SQLite"],tools:["Git","VS Code","Figma","Postman","MongoDB","Prisma","ffmpeg"]},projects:[{name:"KV-Tube",description:"YouTube-like video streaming platform with HLS support, subscriptions, watch history, and PWA. Deployed on Synology NAS via Docker.",tech:["Go (Gin)","Next.js","TypeScript","SQLite","Docker","HLS.js","PWA"],github:"https://git.khoavo.myds.me/vndangkhoa/kv-tube"},{name:"Spotify Clone",description:"Full-featured Spotify-like music player with YouTube Music integration, real-time lyrics, custom playlists, and PWA support.",tech:["React (Vite)","Rust (Axum)","TailwindCSS","YouTube API","PWA"],github:"https://git.khoavo.myds.me/vndangkhoa/spotify-clone"},{name:"kv-pix (APIx)",description:"AI Image Generator powered by Google Whisk, Meta AI, and Grok. Multi-provider support with prompt library and history.",tech:["Next.js 14","TypeScript","Tailwind","Zustand","Docker"],github:"https://git.khoavo.myds.me/vndangkhoa/apix"},{name:"IT CV Portfolio",description:"This terminal-style interactive resume with typing animations and system aesthetics.",tech:["React","Vite","Tailwind","Framer Motion","TypeScript"],github:"https://git.khoavo.myds.me/vndangkhoa/it-cv"},{name:"kv-tiktok-download",description:"Douyin/TikTok video download API with batch processing support.",tech:["Python","FastAPI","yt-dlp"],github:"https://git.khoavo.myds.me/vndangkhoa/kv-tiktok-download"}],experience:[{role:"Creative Technology",company:"Phibious Vietnam",period:"2025 - Present",highlights:["Bridge between creative and technical teams","Develop interactive prototypes and AI-powered tools","Automate creative workflows with custom scripts","Build internal tools for design team productivity"]},{role:"Freelance Developer",company:"Self-Employed",period:"2024 - Present",highlights:["Built 5+ production web applications deployed on cloud and NAS","Integrated AI capabilities (image generation, video processing) into client solutions","Implemented CI/CD pipelines with GitHub/Forgejo Actions","Dockerized applications for easy deployment on various platforms"]}],forgejo:"https://git.khoavo.myds.me/vndangkhoa"},Hm=({size:n=36,vnColor:r="#1A1A1A",dkColor:s="#00FF94",className:a=""})=>m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",width:n,height:n,fill:"none",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round",className:a,children:[m.jsx("path",{stroke:r,d:"M 15 25 L 30 45 L 45 25"}),m.jsx("path",{stroke:r,d:"M 55 45 L 55 25 L 85 45 L 85 25"}),m.jsx("path",{stroke:s,d:"M 15 55 L 30 55 A 10 10 0 0 1 30 75 L 15 75 Z"}),m.jsx("path",{stroke:s,d:"M 55 55 L 55 75 M 85 55 L 55 65 L 85 75"})]}),lS=({onSelect:n})=>{const[r,s]=_.useState(!1);return m.jsxs(pe.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,y:-50},className:"fixed inset-0 overflow-hidden bg-[#FAFAFA]",children:[m.jsxs("div",{className:"relative w-full h-full flex flex-col items-center justify-center px-6",children:[m.jsxs("div",{className:"absolute inset-0 z-0",children:[m.jsx("div",{className:"absolute top-[-10%] left-[-10%] w-[40%] h-[40%] rounded-full bg-slate-100 blur-[120px] opacity-60 animate-pulse"}),m.jsx("div",{className:"absolute bottom-[-10%] right-[-10%] w-[40%] h-[40%] rounded-full bg-slate-200 blur-[120px] opacity-60 animate-pulse",style:{animationDelay:"2s"}})]}),m.jsx("div",{className:"absolute inset-0 opacity-[0.03] bg-[linear-gradient(rgba(0,0,0,0.1)_1px,transparent_1px),linear-gradient(90deg,rgba(0,0,0,0.1)_1px,transparent_1px)] bg-[size:60px_60px]"}),m.jsx("div",{className:"relative z-10 max-w-5xl w-full text-center",children:m.jsxs(pe.div,{initial:{y:30,opacity:0},animate:{y:0,opacity:1},transition:{duration:1,ease:[.22,1,.36,1]},children:[m.jsx("div",{className:"overflow-hidden mb-4 py-2 px-4",children:m.jsx(pe.h1,{initial:{y:"100%"},animate:{y:0},transition:{duration:1.2,ease:[.22,1,.36,1],delay:.2},className:"text-[clamp(2rem,6.5vw,7.5rem)] font-serif font-bold text-[#1A1A1A] tracking-tighter leading-tight whitespace-nowrap",style:{textShadow:"0 2px 4px rgba(0,0,0,0.02)"},children:"Vo Nguyen Dang Khoa"})}),m.jsx(pe.p,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.8,delay:.8},className:"text-lg md:text-2xl font-serif text-[#1A1A1A]/70 mb-2 italic",children:"Where Design Meets Intelligence"}),m.jsx(pe.p,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.8,delay:1},className:"text-[10px] font-bold tracking-[0.4em] text-[#1A1A1A]/30 uppercase mb-10 md:mb-12",children:"AI Creative Lead & Motion Designer"}),m.jsxs("button",{onClick:()=>n("creative"),className:"hidden md:inline-flex items-center gap-3 px-10 py-5 bg-[#1A1A1A] text-white text-lg font-medium rounded-full hover:bg-black hover:scale-105 transition-all shadow-2xl border-4 border-transparent hover:border-black/5",children:["Explore Portfolio",m.jsx(pe.div,{animate:{x:[0,5,0]},transition:{repeat:1/0,duration:1.5,ease:"easeInOut"},children:m.jsx(kr,{size:22})})]}),m.jsxs("div",{className:"md:hidden flex flex-col gap-4 mt-8",children:[m.jsxs("button",{onClick:()=>n("creative"),className:"flex items-center justify-between px-6 py-5 bg-[#1A1A1A] text-white font-medium rounded-2xl shadow-xl active:scale-[0.98] transition-transform",children:[m.jsxs("span",{className:"flex items-center gap-3",children:[m.jsx(lo,{size:18})," Creative Portfolio"]}),m.jsx(kr,{size:18})]}),m.jsxs("button",{onClick:()=>n("it"),className:"flex items-center justify-between px-6 py-5 border border-[#1A1A1A]/10 text-[#1A1A1A] font-medium rounded-2xl bg-white/50 backdrop-blur-md shadow-sm active:scale-[0.98] transition-transform",children:[m.jsxs("span",{className:"flex items-center gap-3",children:[m.jsx(eu,{size:18})," Developer Side"]}),m.jsx(kr,{size:18})]}),m.jsx("p",{className:"text-[10px] tracking-widest text-[#999] uppercase mt-2 opacity-60",children:"Select a persona to enter"})]})]})}),m.jsx(pe.div,{initial:{opacity:.5},animate:{opacity:r?0:.5},className:"absolute bottom-12 text-sm text-[#BBB] hidden md:block",children:m.jsxs("span",{className:"flex items-center gap-4",children:[m.jsx("span",{className:"w-12 h-px bg-[#BBB]"}),"Hover right to preview Developer side",m.jsx("span",{className:"w-12 h-px bg-[#BBB]"})]})})]}),m.jsxs(pe.div,{className:"absolute inset-y-0 right-0 w-full md:w-[75%] bg-[#0a0a0a] cursor-pointer hidden md:block z-40 border-l border-[#00FF94]/30",initial:{x:"calc(100% - 60px)"},animate:{x:r?"0%":"calc(100% - 60px)"},transition:{duration:.6,ease:[.22,1,.36,1]},onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),onClick:()=>n("it"),children:[!r&&m.jsx(pe.div,{initial:{opacity:0},animate:{opacity:1},className:"absolute left-0 inset-y-0 w-[60px] flex items-center justify-center pointer-events-none",children:m.jsx("span",{className:"rotate-90 text-[10px] tracking-[0.5em] text-[#00FF94]/40 font-mono whitespace-nowrap",children:"DEVELOPER SIDE // PREVIEW"})}),m.jsx("div",{className:"absolute inset-0 opacity-[0.04] bg-[linear-gradient(rgba(0,255,136,0.1)_1px,transparent_1px),linear-gradient(90deg,rgba(0,255,136,0.1)_1px,transparent_1px)] bg-[size:25px_25px]"}),m.jsx("div",{className:"relative z-10 w-full h-full flex flex-col items-center justify-center px-8",children:m.jsxs("div",{className:"max-w-md text-center",children:[m.jsx(eu,{size:56,className:"text-[#00FF94] mx-auto mb-6"}),m.jsx("h2",{className:"text-4xl md:text-5xl font-bold text-white font-mono mb-2",children:"DEVELOPER"}),m.jsx("p",{className:"text-[#00FF94]/70 font-mono text-sm tracking-[0.3em] mb-8",children:"FULL-STACK & DEVOPS"}),m.jsxs("p",{className:"text-slate-400 font-mono text-base mb-8 leading-relaxed",children:["9-month coding journey.",m.jsx("br",{}),"Built 5+ production applications.",m.jsx("br",{}),"Self-taught with AI-powered development."]}),m.jsxs("button",{className:"inline-flex items-center gap-2 px-8 py-4 border-2 border-[#00FF94]/40 bg-[#00FF94]/10 text-[#00FF94] font-mono text-base rounded-full hover:bg-[#00FF94]/20 transition-colors",children:["Enter Terminal ",m.jsx(kr,{size:18})]}),m.jsxs("div",{className:"mt-10 font-mono text-sm text-[#00FF94]/40 text-left space-y-2",children:[m.jsxs("div",{children:[m.jsx("span",{className:"text-[#00D9FF]",children:"const"}),' stack = ["Go", "Rust", "TS"];']}),m.jsxs("div",{children:[m.jsx("span",{className:"text-[#00D9FF]",children:"const"})," deployed = 5;"]}),m.jsxs("div",{children:[m.jsx("span",{className:"text-[#00D9FF]",children:"const"}),' vibe = "S-Tier";']})]})]})})]}),m.jsx(pe.div,{initial:{opacity:0},animate:{opacity:r?0:1},transition:{duration:.4},className:"absolute top-8 left-6 md:left-8 z-50 text-[10px] md:text-lg",children:m.jsxs("div",{className:"text-[#1A1A1A] font-serif font-bold tracking-widest flex items-center gap-2",children:["KHOA.VO ",m.jsx("span",{className:"w-4 md:w-8 h-px bg-[#1A1A1A]/30"})]})})]})},uS=({onComplete:n})=>{const r=_.useRef(null);return _.useEffect(()=>{const s=window.innerWidth,a=window.innerHeight,u=Math.floor(s/8)+5,f=Math.floor(a/10)+5;let d=0;const h=()=>{d+=.08;let y="";for(let v=0;v<f;v++){for(let w=0;w<u;w++){const C=Math.sin(w*.05+d)+Math.cos(v*.05+d*.8)+Math.sin((w+v)*.05+d*1.2);C>1.5?y+="V":C>.8?y+="N":C>.2?y+="D":C>-.2?y+="K":C>-.8?y+="→":C>-1.2?y+="←":C>-1.8?y+="↑":y+="↓"}y+=`
|
||
`}return y},g=setInterval(()=>{r.current&&(r.current.textContent=h())},50),x=setTimeout(()=>{clearInterval(g),n()},5e3);return()=>{clearInterval(g),clearTimeout(x)}},[n]),m.jsxs(pe.div,{exit:{opacity:0,scale:1.05,filter:"blur(5px)",transition:{duration:.8,ease:[.76,0,.24,1]}},className:"fixed inset-0 z-[200] bg-[#FAFAFA] flex items-center justify-center overflow-hidden",children:[m.jsx("pre",{ref:r,className:"text-[#1A1A1A] font-mono font-bold italic text-[10px] md:text-xs leading-[10px] md:leading-[12px] opacity-30 select-none whitespace-pre transform scale-110",style:{letterSpacing:"0.15em"}}),m.jsxs("button",{onClick:n,className:"absolute bottom-8 right-8 z-[210] flex items-center gap-2 text-[10px] md:text-xs font-bold tracking-[0.2em] uppercase text-[#1A1A1A]/50 hover:text-[#1A1A1A] transition-colors bg-white/80 px-4 py-2 backdrop-blur-sm rounded",children:["Click to Skip ",m.jsx("span",{className:"opacity-50",children:"→"})]})]})},cS=({onComplete:n})=>{const[r,s]=_.useState([]),a=["INIT SYSTEM KHOA.VO...","MOUNTING VIRTUAL DOM [OK]","LOADING REACT ROOT [OK]","ESTABLISHING AI SUBSYSTEMS...","AI SUBSYSTEMS [ONLINE]","BYPASSING SECURITY PROTOCOLS...","ACCESS GRANTED."];return _.useEffect(()=>{let u=0;const f=setInterval(()=>{u<a.length?(s(d=>[...d,a[u]]),u++):(clearInterval(f),setTimeout(n,500))},180);return()=>clearInterval(f)},[n]),m.jsx(pe.div,{exit:{opacity:0,scale:1.05,filter:"blur(10px)",transition:{duration:.6,ease:"easeIn"}},className:"fixed inset-0 z-[200] bg-[#0a0a0a] text-[#00FF94] font-mono p-6 md:p-12 flex flex-col justify-end pb-24",children:m.jsxs("div",{className:"space-y-2 opacity-80 text-sm md:text-base",children:[r.map((u,f)=>m.jsxs("div",{children:["> ",u]},f)),r.length<a.length&&m.jsx("div",{className:"animate-pulse",children:"> ▋"})]})})},dS=({onBack:n,onSwitch:r})=>{const[s,a]=_.useState(!0),[u,f]=_.useState(!1),[d,h]=_.useState(null),[g,x]=_.useState([]);_.useEffect(()=>{const v=()=>{f(window.scrollY>400)};return window.addEventListener("scroll",v),()=>window.removeEventListener("scroll",v)},[]);const y=()=>{window.scrollTo({top:0,behavior:"smooth"})};return _.useEffect(()=>{if(s)return;const v=setTimeout(()=>{x(Bt.projects.map(w=>w.id))},500);return()=>clearTimeout(v)},[s]),m.jsxs(m.Fragment,{children:[m.jsx(Tr,{children:s&&m.jsx(uS,{onComplete:()=>a(!1)})}),m.jsxs(pe.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"min-h-screen bg-[#FAFAFA] text-[#1A1A1A]",children:[m.jsx("nav",{className:"fixed top-0 left-0 right-0 z-50 bg-[#FAFAFA]/90 backdrop-blur-sm border-b border-[#1A1A1A]/10",children:m.jsxs("div",{className:"max-w-7xl mx-auto px-4 md:px-6 h-16 flex items-center justify-between",children:[m.jsxs("button",{onClick:n,className:"p-2 flex items-center gap-1.5 text-sm md:text-base text-[#1A1A1A]/60 hover:text-[#1A1A1A] transition-colors",children:[m.jsx(bm,{size:18})," ",m.jsx("span",{className:"hidden md:inline",children:"Back"})]}),m.jsx("div",{className:"flex items-center justify-center",children:m.jsx(Hm,{size:36,vnColor:"#1A1A1A",dkColor:"#00FF94"})}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsxs("button",{onClick:()=>window.print(),className:"px-3 py-1.5 text-[10px] md:text-xs font-bold uppercase tracking-widest text-[#1A1A1A] border border-[#1A1A1A] rounded-full hover:bg-[#1A1A1A] hover:text-white transition-colors flex items-center gap-2",children:[m.jsx("span",{className:"hidden md:inline",children:"Download CV"}),m.jsx("span",{className:"md:hidden",children:"CV"})]}),m.jsxs("button",{onClick:r,className:"px-4 py-2 text-[10px] md:text-xs text-white bg-[#1A1A1A] border border-[#1A1A1A] rounded-full hover:bg-transparent hover:text-[#1A1A1A] transition-colors flex items-center gap-2",children:[m.jsx(eu,{size:14})," ",m.jsx("span",{className:"hidden md:inline",children:"IT View"}),m.jsx("span",{className:"md:hidden",children:"IT"})]})]})]})}),m.jsx(Tr,{children:u&&m.jsx(pe.button,{initial:{opacity:0,scale:.8,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.8,y:20},onClick:y,className:"fixed bottom-8 right-6 z-50 p-4 bg-[#1A1A1A] text-white rounded-full shadow-2xl md:hidden",children:m.jsx(kr,{size:20,className:"-rotate-90"})})}),m.jsxs("main",{className:"pt-20",children:[m.jsx("section",{className:"max-w-5xl mx-auto px-6 py-24 md:py-32",children:m.jsxs(pe.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8},children:[m.jsx("p",{className:"text-xs tracking-[0.3em] text-[#666] uppercase mb-4",children:Bt.title}),m.jsx("h1",{className:"text-5xl md:text-7xl font-serif font-bold leading-tight mb-4",children:Bt.tagline}),m.jsx("p",{className:"text-2xl md:text-3xl font-serif text-[#666] mb-8",children:Ut.name}),m.jsx("p",{className:"text-lg text-[#666] max-w-2xl leading-relaxed",children:Bt.summary}),m.jsxs("div",{className:"flex flex-wrap gap-4 mt-8 text-sm text-[#999]",children:[m.jsxs("span",{className:"flex items-center gap-1",children:[m.jsx(Zh,{size:14})," ",Ut.location]}),m.jsxs("span",{className:"flex items-center gap-1",children:[m.jsx(Jl,{size:14})," ",Ut.email]}),m.jsxs("span",{className:"flex items-center gap-1",children:[m.jsx(tS,{size:14})," ",Ut.phone]})]})]})}),Bt.awards&&Bt.awards.length>0&&m.jsx("section",{className:"max-w-5xl mx-auto px-6 pb-16",children:m.jsx("div",{className:"flex flex-wrap gap-6",children:Bt.awards.map((v,w)=>m.jsxs(pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:w*.1},className:"flex items-center gap-3 bg-[#F5F5F5] px-4 py-2 rounded-full",children:[m.jsx(lo,{size:14,className:"text-amber-500"}),m.jsx("span",{className:"text-sm font-medium",children:v.title}),m.jsx("span",{className:"text-xs text-[#999]",children:v.year})]},w))})}),m.jsxs("section",{className:"max-w-7xl mx-auto px-6 py-16",children:[m.jsxs(pe.div,{initial:{opacity:0},whileInView:{opacity:1},viewport:{once:!0},className:"flex items-center gap-4 mb-12",children:[m.jsx(eS,{size:20}),m.jsx("h2",{className:"text-2xl font-serif font-bold",children:"Selected Works"})]}),m.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:Bt.projects.map((v,w)=>m.jsxs(pe.div,{initial:{opacity:0,y:30},animate:{opacity:g.includes(v.id)?1:0,y:g.includes(v.id)?0:30},transition:{duration:.6,delay:w*.1},className:"group cursor-pointer",onClick:()=>h(v),children:[m.jsxs("div",{className:"relative aspect-[4/3] overflow-hidden bg-slate-200 mb-4",children:[m.jsx("img",{src:v.image,alt:v.title,className:"w-full h-full object-cover transition-transform duration-700 group-hover:scale-105"}),m.jsx("div",{className:"absolute inset-0 bg-black/0 group-hover:bg-black/20 transition-colors duration-300"}),m.jsx("span",{className:"absolute top-4 right-4 bg-white/90 px-3 py-1 text-xs font-medium",children:v.year})]}),m.jsx("p",{className:"text-xs tracking-widest text-[#666] uppercase mb-1",children:v.category}),m.jsx("h3",{className:"text-lg font-serif font-semibold group-hover:text-[#666] transition-colors",children:v.title})]},v.id))})]}),m.jsxs("section",{className:"max-w-7xl mx-auto px-6 py-16 bg-[#F5F5F5]",children:[m.jsxs(pe.div,{initial:{opacity:0},whileInView:{opacity:1},viewport:{once:!0},className:"flex items-center gap-4 mb-12",children:[m.jsx(lo,{size:20}),m.jsx("h2",{className:"text-2xl font-serif font-bold",children:"Expertise"})]}),m.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8",children:Bt.skills.map((v,w)=>m.jsxs(pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:w*.1},children:[m.jsx("h3",{className:"text-sm font-bold text-[#1A1A1A] mb-4 pb-2 border-b border-[#1A1A1A]/10",children:v.category}),m.jsx("div",{className:"flex flex-wrap gap-2",children:v.items.map(C=>m.jsx("span",{className:"text-xs text-[#666] bg-white px-3 py-1 border border-[#1A1A1A]/10",children:C},C))})]},v.category))})]}),m.jsxs("section",{className:"max-w-5xl mx-auto px-6 py-16",children:[m.jsxs(pe.div,{initial:{opacity:0},whileInView:{opacity:1},viewport:{once:!0},className:"flex items-center gap-4 mb-12",children:[m.jsx(Jw,{size:20}),m.jsx("h2",{className:"text-2xl font-serif font-bold",children:"Professional Journey"})]}),m.jsxs("div",{className:"relative",children:[m.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-px bg-[#1A1A1A]/10"}),m.jsx("div",{className:"space-y-10",children:Bt.experience.map((v,w)=>m.jsxs(pe.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:w*.1},className:"relative pl-8",children:[m.jsx("div",{className:"absolute left-[-3px] top-2 w-2 h-2 bg-[#1A1A1A] rounded-full"}),m.jsxs("div",{className:"flex flex-col md:flex-row md:items-start gap-2 md:gap-6 mb-2",children:[m.jsx("div",{className:"text-sm font-medium text-[#1A1A1A] shrink-0",children:v.period}),m.jsxs("div",{children:[m.jsx("h3",{className:"text-xl font-bold text-[#1A1A1A]",children:v.role}),m.jsxs("div",{className:"flex items-center gap-2 text-[#666] mt-1",children:[m.jsx("span",{className:"font-medium",children:v.company}),v.location&&m.jsxs(m.Fragment,{children:[m.jsx("span",{className:"text-[#999]",children:"•"}),m.jsx("span",{className:"text-sm",children:v.location})]})]})]})]}),m.jsx("ul",{className:"text-[#666] space-y-2 mt-3",children:v.highlights.map((C,N)=>m.jsxs("li",{className:"leading-relaxed flex items-start gap-2",children:[m.jsx("span",{className:"w-1.5 h-1.5 bg-[#1A1A1A]/30 rounded-full mt-2 shrink-0"}),m.jsx("span",{children:C})]},N))})]},w))})]})]}),m.jsxs("footer",{className:"max-w-7xl mx-auto px-6 py-16 border-t border-[#1A1A1A]/10",children:[m.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center gap-8",children:[m.jsxs("div",{children:[m.jsx("h3",{className:"text-2xl font-serif font-bold mb-2",children:"Let's Create Together"}),m.jsx("p",{className:"text-[#666]",children:"Open for creative collaborations and opportunities"})]}),m.jsxs("div",{className:"flex gap-4",children:[m.jsx("a",{href:Ut.linkedin,target:"_blank",rel:"noreferrer",className:"p-3 border border-[#1A1A1A]/20 hover:bg-[#1A1A1A] hover:text-white transition-colors",children:m.jsx(Wm,{size:20})}),m.jsx("a",{href:Ut.email,className:"p-3 border border-[#1A1A1A]/20 hover:bg-[#1A1A1A] hover:text-white transition-colors",children:m.jsx(Jl,{size:20})}),m.jsx("a",{href:Ut.portfolio,target:"_blank",rel:"noreferrer",className:"p-3 border border-[#1A1A1A]/20 hover:bg-[#1A1A1A] hover:text-white transition-colors",children:m.jsx(Zh,{size:20})})]})]}),m.jsxs("p",{className:"text-center text-xs text-[#999] mt-12",children:["© ",new Date().getFullYear()," Vo Nguyen Dang Khoa. All rights reserved."]})]})]}),m.jsx(Tr,{children:d&&m.jsx(pe.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-[100] flex items-center justify-center bg-black/80 backdrop-blur-sm p-8",onClick:()=>h(null),children:m.jsxs(pe.div,{initial:{scale:.9,y:20},animate:{scale:1,y:0},exit:{scale:.9,y:20},className:"bg-[#FAFAFA] max-w-4xl w-full rounded-lg overflow-hidden",onClick:v=>v.stopPropagation(),children:[m.jsx("img",{src:d.image,alt:d.title,className:"w-full h-64 md:h-96 object-cover"}),m.jsxs("div",{className:"p-8",children:[m.jsx("p",{className:"text-xs tracking-widest text-[#666] uppercase mb-2",children:d.category}),m.jsx("h3",{className:"text-2xl font-serif font-bold mb-4",children:d.title}),m.jsx("p",{className:"text-[#666] mb-6",children:d.description}),m.jsxs("a",{href:d.link,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-2 text-sm font-medium text-[#1A1A1A] border-b border-[#1A1A1A] pb-1 hover:opacity-60",children:["View Project ",m.jsx(Um,{size:14})]})]})]})})})]})]})},fS=({onBack:n,onSwitch:r})=>{const[s,a]=_.useState(!0),[u,f]=_.useState("about"),[d,h]=_.useState(""),[g,x]=_.useState(!1),y=`> whoami
|
||
|
||
Vo Nguyen Dang Khoa
|
||
AI-Powered Developer
|
||
9-month coding journey from zero to production`;_.useEffect(()=>{const w=()=>{x(window.scrollY>400)};return window.addEventListener("scroll",w),()=>window.removeEventListener("scroll",w)},[]);const v=()=>{window.scrollTo({top:0,behavior:"smooth"})};return _.useEffect(()=>{if(s)return;let w=0;const C=setInterval(()=>{w<y.length?(h(y.slice(0,w+1)),w++):clearInterval(C)},30);return()=>clearInterval(C)},[s]),m.jsxs(m.Fragment,{children:[m.jsx(Tr,{children:s&&m.jsx(cS,{onComplete:()=>a(!1)})}),m.jsxs(pe.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"min-h-screen bg-[#0a0a0a] text-[#00FF94] font-mono",children:[m.jsx(Tr,{children:g&&m.jsx(pe.button,{initial:{opacity:0,scale:.8,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.8,y:20},onClick:v,className:"fixed bottom-8 right-6 z-50 p-4 bg-[#00FF94] text-[#0a0a0a] rounded-full shadow-[0_0_20px_rgba(0,255,148,0.3)] md:hidden",children:m.jsx(kr,{size:20,className:"-rotate-90"})})}),m.jsx("nav",{className:"fixed top-0 left-0 right-0 z-50 bg-[#0a0a0a]/90 backdrop-blur-sm border-b border-[#00FF94]/20",children:m.jsxs("div",{className:"max-w-6xl mx-auto px-4 h-14 flex items-center justify-between",children:[m.jsxs("button",{onClick:n,className:"p-2 -ml-2 flex items-center gap-1.5 text-xs text-[#00FF94]/60 hover:text-[#00FF94] transition-colors uppercase",children:[m.jsx(bm,{size:16})," ",m.jsx("span",{className:"hidden md:inline",children:"Exit"})]}),m.jsx("div",{className:"flex items-center justify-center opacity-90 drop-shadow-[0_0_5px_rgba(0,255,148,0.3)]",children:m.jsx(Hm,{size:32,vnColor:"#FFFFFF",dkColor:"#00FF94"})}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsxs("button",{onClick:()=>window.print(),className:"px-3 py-1.5 text-[10px] md:text-xs text-[#00FF94] border border-[#00FF94] rounded hover:bg-[#00FF94] hover:text-[#0a0a0a] transition-colors flex items-center gap-1.5 font-bold uppercase",children:[m.jsx("span",{className:"hidden md:inline",children:"Download CV"}),m.jsx("span",{className:"md:hidden",children:"CV"})]}),m.jsxs("button",{onClick:r,className:"px-3 py-1.5 text-[10px] md:text-xs text-[#0a0a0a] bg-[#00FF94] border border-[#00FF94] rounded hover:bg-transparent hover:text-[#00FF94] transition-colors flex items-center gap-1.5 uppercase font-bold",children:[m.jsx(lo,{size:12})," ",m.jsx("span",{className:"hidden md:inline",children:"Design View"}),m.jsx("span",{className:"md:hidden",children:"Design"})]})]})]})}),m.jsx("main",{className:"pt-16",children:m.jsxs("div",{className:"max-w-5xl mx-4 md:mx-auto",children:[m.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 bg-[#111] border border-[#00FF94]/20 border-b-0 rounded-t-lg",children:[m.jsx("div",{className:"w-3 h-3 rounded-full bg-red-500/50"}),m.jsx("div",{className:"w-3 h-3 rounded-full bg-yellow-500/50"}),m.jsx("div",{className:"w-3 h-3 rounded-full bg-green-500/50"}),m.jsx("span",{className:"ml-4 text-xs text-[#00FF94]/50",children:"khoa@portfolio ~"})]}),m.jsxs("div",{className:"border border-[#00FF94]/20 bg-[#0a0a0a] p-6 md:p-8 min-h-[80vh]",children:[m.jsx("div",{className:"flex gap-2 overflow-x-auto pb-4 mb-4 md:mb-8 no-scrollbar touch-pan-x",children:["about","skills","projects","experience"].map(w=>m.jsx("button",{onClick:()=>f(w),className:`px-5 py-3 md:px-4 md:py-2 text-[10px] md:text-xs border transition-colors whitespace-nowrap shrink-0 ${u===w?"border-[#00FF94] bg-[#00FF94]/10 text-[#00FF94]":"border-[#00FF94]/30 text-[#00FF94]/50 hover:text-[#00FF94] hover:border-[#00FF94]/50"}`,children:w.toUpperCase()},w))}),u==="about"&&m.jsxs(pe.div,{initial:{opacity:0},animate:{opacity:1},children:[m.jsx("div",{className:"text-xs text-[#00FF94]/50 mb-4",children:"SYSTEM STARTED..."}),m.jsxs("pre",{className:"text-sm leading-relaxed whitespace-pre-wrap",children:[d,m.jsx("span",{className:"animate-pulse",children:"▋"})]}),m.jsxs("div",{className:"mt-8 pt-8 border-t border-[#00FF94]/20",children:[m.jsx("div",{className:"text-xs text-[#00FF94]/50 mb-2",children:"> echo $JOURNEY"}),m.jsx("div",{className:"space-y-4",children:yr.journey.map((w,C)=>m.jsxs("div",{className:"flex gap-4",children:[m.jsx("span",{className:"text-[#00D9FF] text-xs shrink-0",children:w.month}),m.jsxs("div",{children:[m.jsx("span",{className:"text-white",children:w.title}),m.jsxs("span",{className:"text-[#00FF94]/50",children:[" — ",w.description]})]})]},C))})]}),m.jsxs("div",{className:"mt-8 pt-8 border-t border-[#00FF94]/20",children:[m.jsx("div",{className:"text-xs text-[#00FF94]/50 mb-4",children:"> cat summary.txt"}),m.jsx("p",{className:"text-sm text-slate-300 leading-relaxed max-w-xl",children:yr.summary})]})]}),u==="skills"&&m.jsx(pe.div,{initial:{opacity:0},animate:{opacity:1},children:Object.entries(yr.skills).map(([w,C])=>m.jsxs("div",{className:"mb-6",children:[m.jsx("div",{className:"text-xs text-[#00D9FF] mb-2 uppercase tracking-wider",children:w}),m.jsx("div",{className:"flex flex-wrap gap-2",children:C.map((N,D)=>m.jsx("span",{className:"text-sm border border-[#00FF94]/30 px-3 py-1 bg-[#00FF94]/5",children:N},D))})]},w))}),u==="projects"&&m.jsx(pe.div,{initial:{opacity:0},animate:{opacity:1},children:m.jsx("div",{className:"space-y-6",children:yr.projects.map((w,C)=>m.jsxs("div",{className:"border border-[#00FF94]/20 p-4 hover:border-[#00FF94]/40 transition-colors",children:[m.jsxs("div",{className:"flex items-center justify-between mb-2",children:[m.jsx("span",{className:"text-white font-bold",children:w.name}),m.jsxs("div",{className:"flex gap-2",children:[w.demo&&m.jsx("a",{href:w.demo,target:"_blank",rel:"noreferrer",className:"text-[#00D9FF] hover:text-[#00FF94]",title:"Live Demo",children:m.jsx(Um,{size:16})}),m.jsx("a",{href:w.github,target:"_blank",rel:"noreferrer",className:"text-[#00FF94] hover:text-[#00D9FF]",children:m.jsx(qh,{size:16})})]})]}),m.jsx("p",{className:"text-sm text-slate-400 mb-3",children:w.description}),m.jsx("div",{className:"flex flex-wrap gap-2",children:w.tech.map((N,D)=>m.jsx("span",{className:"text-xs bg-[#00FF94]/10 px-2 py-0.5 text-[#00FF94]",children:N},D))})]},C))})}),u==="experience"&&m.jsx(pe.div,{initial:{opacity:0},animate:{opacity:1},children:m.jsx("div",{className:"space-y-6",children:yr.experience.map((w,C)=>m.jsxs("div",{className:"border-l-2 border-[#00FF94] pl-4",children:[m.jsxs("div",{className:"flex justify-between items-start mb-2",children:[m.jsx("span",{className:"text-white font-bold",children:w.role}),m.jsx("span",{className:"text-xs text-[#00FF94]/50",children:w.period})]}),m.jsx("div",{className:"text-sm text-[#00D9FF] mb-2",children:w.company}),m.jsx("ul",{className:"text-sm text-slate-400 space-y-1",children:w.highlights.map((N,D)=>m.jsxs("li",{children:["• ",N]},D))})]},C))})}),m.jsxs("div",{className:"mt-12 pt-8 border-t border-[#00FF94]/20",children:[m.jsx("div",{className:"text-xs text-[#00FF94]/50 mb-4",children:"> exit --contact"}),m.jsxs("div",{className:"flex flex-wrap gap-4",children:[m.jsxs("a",{href:`mailto:${Ut.email}`,className:"flex items-center gap-2 text-sm text-slate-300 hover:text-[#00FF94]",children:[m.jsx(Jl,{size:14})," ",Ut.email]}),m.jsxs("a",{href:yr.forgejo,target:"_blank",rel:"noreferrer",className:"flex items-center gap-2 text-sm text-slate-300 hover:text-[#00FF94]",children:[m.jsx(qh,{size:14})," git.khoavo.myds.me/vndangkhoa"]}),m.jsxs("a",{href:Ut.linkedin,target:"_blank",rel:"noreferrer",className:"flex items-center gap-2 text-sm text-slate-300 hover:text-[#00FF94]",children:[m.jsx(Wm,{size:14})," linkedin.com/in/khoa-vo-76291236"]})]})]})]})]})}),m.jsxs("footer",{className:"py-8 text-center text-xs text-[#00FF94]/30",children:["khoa@portfolio:~$ echo ",new Date().getFullYear()," © Vo Nguyen Dang Khoa"]})]})]})};function hS(){const[n,r]=_.useState("landing"),[s,a]=_.useState(!1),u=d=>{r(d)},f=()=>{r("landing")};return m.jsxs(m.Fragment,{children:[m.jsxs(Tr,{mode:"wait",children:[n==="landing"&&m.jsx(lS,{onSelect:u},"landing"),n==="creative"&&m.jsx(dS,{onBack:f,onSwitch:()=>r("it")},"creative"),n==="it"&&m.jsx(fS,{onBack:f,onSwitch:()=>r("creative")},"it")]}),m.jsx("div",{className:"print-portfolio",children:m.jsx(aS,{})})]})}qy.createRoot(document.getElementById("root")).render(m.jsx(Hy.StrictMode,{children:m.jsx(hS,{})}));
|