170 lines
334 KiB
JavaScript
170 lines
334 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 np(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var ul={exports:{}},hi={},cl={exports:{}},le={};/**
|
||
* @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 Hy(){if(Af)return le;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"),v=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),x=Symbol.iterator;function S(E){return E===null||typeof E!="object"?null:(E=x&&E[x]||E["@@iterator"],typeof E=="function"?E:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D=Object.assign,L={};function N(E,I,oe){this.props=E,this.context=I,this.refs=L,this.updater=oe||C}N.prototype.isReactComponent={},N.prototype.setState=function(E,I){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,I,"setState")},N.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function b(){}b.prototype=N.prototype;function F(E,I,oe){this.props=E,this.context=I,this.refs=L,this.updater=oe||C}var P=F.prototype=new b;P.constructor=F,D(P,N.prototype),P.isPureReactComponent=!0;var R=Array.isArray,W=Object.prototype.hasOwnProperty,ee={current:null},se={key:!0,ref:!0,__self:!0,__source:!0};function J(E,I,oe){var ue,pe={},me=null,Se=null;if(I!=null)for(ue in I.ref!==void 0&&(Se=I.ref),I.key!==void 0&&(me=""+I.key),I)W.call(I,ue)&&!se.hasOwnProperty(ue)&&(pe[ue]=I[ue]);var ye=arguments.length-2;if(ye===1)pe.children=oe;else if(1<ye){for(var Ae=Array(ye),ft=0;ft<ye;ft++)Ae[ft]=arguments[ft+2];pe.children=Ae}if(E&&E.defaultProps)for(ue in ye=E.defaultProps,ye)pe[ue]===void 0&&(pe[ue]=ye[ue]);return{$$typeof:n,type:E,key:me,ref:Se,props:pe,_owner:ee.current}}function ie(E,I){return{$$typeof:n,type:E.type,key:I,ref:E.ref,props:E.props,_owner:E._owner}}function q(E){return typeof E=="object"&&E!==null&&E.$$typeof===n}function he(E){var I={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(oe){return I[oe]})}var xe=/\/+/g;function Ne(E,I){return typeof E=="object"&&E!==null&&E.key!=null?he(""+E.key):I.toString(36)}function Le(E,I,oe,ue,pe){var me=typeof E;(me==="undefined"||me==="boolean")&&(E=null);var Se=!1;if(E===null)Se=!0;else switch(me){case"string":case"number":Se=!0;break;case"object":switch(E.$$typeof){case n:case r:Se=!0}}if(Se)return Se=E,pe=pe(Se),E=ue===""?"."+Ne(Se,0):ue,R(pe)?(oe="",E!=null&&(oe=E.replace(xe,"$&/")+"/"),Le(pe,I,oe,"",function(ft){return ft})):pe!=null&&(q(pe)&&(pe=ie(pe,oe+(!pe.key||Se&&Se.key===pe.key?"":(""+pe.key).replace(xe,"$&/")+"/")+E)),I.push(pe)),1;if(Se=0,ue=ue===""?".":ue+":",R(E))for(var ye=0;ye<E.length;ye++){me=E[ye];var Ae=ue+Ne(me,ye);Se+=Le(me,I,oe,Ae,pe)}else if(Ae=S(E),typeof Ae=="function")for(E=Ae.call(E),ye=0;!(me=E.next()).done;)me=me.value,Ae=ue+Ne(me,ye++),Se+=Le(me,I,oe,Ae,pe);else if(me==="object")throw I=String(E),Error("Objects are not valid as a React child (found: "+(I==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":I)+"). If you meant to render a collection of children, use an array instead.");return Se}function _e(E,I,oe){if(E==null)return E;var ue=[],pe=0;return Le(E,ue,"","",function(me){return I.call(oe,me,pe++)}),ue}function Te(E){if(E._status===-1){var I=E._result;I=I(),I.then(function(oe){(E._status===0||E._status===-1)&&(E._status=1,E._result=oe)},function(oe){(E._status===0||E._status===-1)&&(E._status=2,E._result=oe)}),E._status===-1&&(E._status=0,E._result=I)}if(E._status===1)return E._result.default;throw E._result}var Me={current:null},B={transition:null},X={ReactCurrentDispatcher:Me,ReactCurrentBatchConfig:B,ReactCurrentOwner:ee};function H(){throw Error("act(...) is not supported in production builds of React.")}return le.Children={map:_e,forEach:function(E,I,oe){_e(E,function(){I.apply(this,arguments)},oe)},count:function(E){var I=0;return _e(E,function(){I++}),I},toArray:function(E){return _e(E,function(I){return I})||[]},only:function(E){if(!q(E))throw Error("React.Children.only expected to receive a single React element child.");return E}},le.Component=N,le.Fragment=s,le.Profiler=u,le.PureComponent=F,le.StrictMode=a,le.Suspense=g,le.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=X,le.act=H,le.cloneElement=function(E,I,oe){if(E==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+E+".");var ue=D({},E.props),pe=E.key,me=E.ref,Se=E._owner;if(I!=null){if(I.ref!==void 0&&(me=I.ref,Se=ee.current),I.key!==void 0&&(pe=""+I.key),E.type&&E.type.defaultProps)var ye=E.type.defaultProps;for(Ae in I)W.call(I,Ae)&&!se.hasOwnProperty(Ae)&&(ue[Ae]=I[Ae]===void 0&&ye!==void 0?ye[Ae]:I[Ae])}var Ae=arguments.length-2;if(Ae===1)ue.children=oe;else if(1<Ae){ye=Array(Ae);for(var ft=0;ft<Ae;ft++)ye[ft]=arguments[ft+2];ue.children=ye}return{$$typeof:n,type:E.type,key:pe,ref:me,props:ue,_owner:Se}},le.createContext=function(E){return E={$$typeof:d,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},E.Provider={$$typeof:f,_context:E},E.Consumer=E},le.createElement=J,le.createFactory=function(E){var I=J.bind(null,E);return I.type=E,I},le.createRef=function(){return{current:null}},le.forwardRef=function(E){return{$$typeof:h,render:E}},le.isValidElement=q,le.lazy=function(E){return{$$typeof:y,_payload:{_status:-1,_result:E},_init:Te}},le.memo=function(E,I){return{$$typeof:v,type:E,compare:I===void 0?null:I}},le.startTransition=function(E){var I=B.transition;B.transition={};try{E()}finally{B.transition=I}},le.unstable_act=H,le.useCallback=function(E,I){return Me.current.useCallback(E,I)},le.useContext=function(E){return Me.current.useContext(E)},le.useDebugValue=function(){},le.useDeferredValue=function(E){return Me.current.useDeferredValue(E)},le.useEffect=function(E,I){return Me.current.useEffect(E,I)},le.useId=function(){return Me.current.useId()},le.useImperativeHandle=function(E,I,oe){return Me.current.useImperativeHandle(E,I,oe)},le.useInsertionEffect=function(E,I){return Me.current.useInsertionEffect(E,I)},le.useLayoutEffect=function(E,I){return Me.current.useLayoutEffect(E,I)},le.useMemo=function(E,I){return Me.current.useMemo(E,I)},le.useReducer=function(E,I,oe){return Me.current.useReducer(E,I,oe)},le.useRef=function(E){return Me.current.useRef(E)},le.useState=function(E){return Me.current.useState(E)},le.useSyncExternalStore=function(E,I,oe){return Me.current.useSyncExternalStore(E,I,oe)},le.useTransition=function(){return Me.current.useTransition()},le.version="18.3.1",le}var jf;function tu(){return jf||(jf=1,cl.exports=Hy()),cl.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 Nf;function $y(){if(Nf)return hi;Nf=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,v){var y,x={},S=null,C=null;v!==void 0&&(S=""+v),g.key!==void 0&&(S=""+g.key),g.ref!==void 0&&(C=g.ref);for(y in g)a.call(g,y)&&!f.hasOwnProperty(y)&&(x[y]=g[y]);if(h&&h.defaultProps)for(y in g=h.defaultProps,g)x[y]===void 0&&(x[y]=g[y]);return{$$typeof:r,type:h,key:S,ref:C,props:x,_owner:u.current}}return hi.Fragment=s,hi.jsx=d,hi.jsxs=d,hi}var Mf;function Gy(){return Mf||(Mf=1,ul.exports=$y()),ul.exports}var m=Gy(),z=tu();const Ky=np(z);var zs={},dl={exports:{}},dt={},fl={exports:{}},hl={};/**
|
||
* @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 Df;function Yy(){return Df||(Df=1,(function(n){function r(B,X){var H=B.length;B.push(X);e:for(;0<H;){var E=H-1>>>1,I=B[E];if(0<u(I,X))B[E]=X,B[H]=I,H=E;else break e}}function s(B){return B.length===0?null:B[0]}function a(B){if(B.length===0)return null;var X=B[0],H=B.pop();if(H!==X){B[0]=H;e:for(var E=0,I=B.length,oe=I>>>1;E<oe;){var ue=2*(E+1)-1,pe=B[ue],me=ue+1,Se=B[me];if(0>u(pe,H))me<I&&0>u(Se,pe)?(B[E]=Se,B[me]=H,E=me):(B[E]=pe,B[ue]=H,E=ue);else if(me<I&&0>u(Se,H))B[E]=Se,B[me]=H,E=me;else break e}}return X}function u(B,X){var H=B.sortIndex-X.sortIndex;return H!==0?H:B.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=[],v=[],y=1,x=null,S=3,C=!1,D=!1,L=!1,N=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function P(B){for(var X=s(v);X!==null;){if(X.callback===null)a(v);else if(X.startTime<=B)a(v),X.sortIndex=X.expirationTime,r(g,X);else break;X=s(v)}}function R(B){if(L=!1,P(B),!D)if(s(g)!==null)D=!0,Te(W);else{var X=s(v);X!==null&&Me(R,X.startTime-B)}}function W(B,X){D=!1,L&&(L=!1,b(J),J=-1),C=!0;var H=S;try{for(P(X),x=s(g);x!==null&&(!(x.expirationTime>X)||B&&!he());){var E=x.callback;if(typeof E=="function"){x.callback=null,S=x.priorityLevel;var I=E(x.expirationTime<=X);X=n.unstable_now(),typeof I=="function"?x.callback=I:x===s(g)&&a(g),P(X)}else a(g);x=s(g)}if(x!==null)var oe=!0;else{var ue=s(v);ue!==null&&Me(R,ue.startTime-X),oe=!1}return oe}finally{x=null,S=H,C=!1}}var ee=!1,se=null,J=-1,ie=5,q=-1;function he(){return!(n.unstable_now()-q<ie)}function xe(){if(se!==null){var B=n.unstable_now();q=B;var X=!0;try{X=se(!0,B)}finally{X?Ne():(ee=!1,se=null)}}else ee=!1}var Ne;if(typeof F=="function")Ne=function(){F(xe)};else if(typeof MessageChannel<"u"){var Le=new MessageChannel,_e=Le.port2;Le.port1.onmessage=xe,Ne=function(){_e.postMessage(null)}}else Ne=function(){N(xe,0)};function Te(B){se=B,ee||(ee=!0,Ne())}function Me(B,X){J=N(function(){B(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(B){B.callback=null},n.unstable_continueExecution=function(){D||C||(D=!0,Te(W))},n.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ie=0<B?Math.floor(1e3/B):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_getFirstCallbackNode=function(){return s(g)},n.unstable_next=function(B){switch(S){case 1:case 2:case 3:var X=3;break;default:X=S}var H=S;S=X;try{return B()}finally{S=H}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(B,X){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var H=S;S=B;try{return X()}finally{S=H}},n.unstable_scheduleCallback=function(B,X,H){var E=n.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?E+H:E):H=E,B){case 1:var I=-1;break;case 2:I=250;break;case 5:I=1073741823;break;case 4:I=1e4;break;default:I=5e3}return I=H+I,B={id:y++,callback:X,priorityLevel:B,startTime:H,expirationTime:I,sortIndex:-1},H>E?(B.sortIndex=H,r(v,B),s(g)===null&&B===s(v)&&(L?(b(J),J=-1):L=!0,Me(R,H-E))):(B.sortIndex=I,r(g,B),D||C||(D=!0,Te(W))),B},n.unstable_shouldYield=he,n.unstable_wrapCallback=function(B){var X=S;return function(){var H=S;S=X;try{return B.apply(this,arguments)}finally{S=H}}}})(hl)),hl}var Ff;function Xy(){return Ff||(Ff=1,fl.exports=Yy()),fl.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 Qy(){if(Lf)return dt;Lf=1;var n=tu(),r=Xy();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,v=/^[: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={},x={};function S(e){return g.call(x,e)?!0:g.call(y,e)?!1:v.test(e)?x[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 D(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 L(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 N={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){N[e]=new L(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];N[t]=new L(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){N[e]=new L(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){N[e]=new L(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){N[e]=new L(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){N[e]=new L(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){N[e]=new L(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){N[e]=new L(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){N[e]=new L(e,5,!1,e.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function F(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(b,F);N[t]=new L(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(b,F);N[t]=new L(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(b,F);N[t]=new L(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){N[e]=new L(e,1,!1,e.toLowerCase(),null,!1,!1)}),N.xlinkHref=new L("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){N[e]=new L(e,1,!1,e.toLowerCase(),null,!0,!0)});function P(e,t,i,o){var l=N.hasOwnProperty(t)?N[t]:null;(l!==null?l.type!==0:o||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(D(t,i,l,o)&&(i=null),o||l===null?S(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 R=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,W=Symbol.for("react.element"),ee=Symbol.for("react.portal"),se=Symbol.for("react.fragment"),J=Symbol.for("react.strict_mode"),ie=Symbol.for("react.profiler"),q=Symbol.for("react.provider"),he=Symbol.for("react.context"),xe=Symbol.for("react.forward_ref"),Ne=Symbol.for("react.suspense"),Le=Symbol.for("react.suspense_list"),_e=Symbol.for("react.memo"),Te=Symbol.for("react.lazy"),Me=Symbol.for("react.offscreen"),B=Symbol.iterator;function X(e){return e===null||typeof e!="object"?null:(e=B&&e[B]||e["@@iterator"],typeof e=="function"?e:null)}var H=Object.assign,E;function I(e){if(E===void 0)try{throw Error()}catch(i){var t=i.stack.trim().match(/\n( *(at )?)/);E=t&&t[1]||""}return`
|
||
`+E+e}var oe=!1;function ue(e,t){if(!e||oe)return"";oe=!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(M){var o=M}Reflect.construct(e,[],t)}else{try{t.call()}catch(M){o=M}e.call(t.prototype)}else{try{throw Error()}catch(M){o=M}e()}}catch(M){if(M&&o&&typeof M.stack=="string"){for(var l=M.stack.split(`
|
||
`),c=o.stack.split(`
|
||
`),p=l.length-1,w=c.length-1;1<=p&&0<=w&&l[p]!==c[w];)w--;for(;1<=p&&0<=w;p--,w--)if(l[p]!==c[w]){if(p!==1||w!==1)do if(p--,w--,0>w||l[p]!==c[w]){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<=w);break}}}finally{oe=!1,Error.prepareStackTrace=i}return(e=e?e.displayName||e.name:"")?I(e):""}function pe(e){switch(e.tag){case 5:return I(e.type);case 16:return I("Lazy");case 13:return I("Suspense");case 19:return I("SuspenseList");case 0:case 2:case 15:return e=ue(e.type,!1),e;case 11:return e=ue(e.type.render,!1),e;case 1:return e=ue(e.type,!0),e;default:return""}}function me(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 se:return"Fragment";case ee:return"Portal";case ie:return"Profiler";case J:return"StrictMode";case Ne:return"Suspense";case Le:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case he:return(e.displayName||"Context")+".Consumer";case q:return(e._context.displayName||"Context")+".Provider";case xe: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:me(e.type)||"Memo";case Te:t=e._payload,e=e._init;try{return me(e(t))}catch{}}return null}function Se(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 me(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 ye(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ae(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ft(e){var t=Ae(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=ft(e))}function Fu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var i=t.getValue(),o="";return e&&(o=Ae(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 go(e,t){var i=t.checked;return H({},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=ye(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&&P(e,"checked",t,!1)}function yo(e,t){Ru(e,t);var i=ye(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")?vo(e,t.type,i):t.hasOwnProperty("defaultValue")&&vo(e,t.type,ye(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Iu(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 vo(e,t,i){(t!=="number"||Mi(e.ownerDocument)!==e)&&(i==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+i&&(e.defaultValue=""+i))}var jr=Array.isArray;function Yn(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=""+ye(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 xo(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(s(91));return H({},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(jr(i)){if(1<i.length)throw Error(s(93));i=i[0]}t=i}t==null&&(t=""),i=t}e._wrapperState={initialValue:ye(i)}}function bu(e,t){var i=ye(t.value),o=ye(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 wo(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 Nr(e,t){if(t){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=t;return}}e.textContent=t}var Mr={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},Ym=["Webkit","ms","Moz","O"];Object.keys(Mr).forEach(function(e){Ym.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Mr[t]=Mr[e]})});function Bu(e,t,i){return t==null||typeof t=="boolean"||t===""?"":i||typeof t!="number"||t===0||Mr.hasOwnProperty(e)&&Mr[e]?(""+t).trim():t+"px"}function Uu(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 Xm=H({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 So(e,t){if(t){if(Xm[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 ko(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 To=null;function Co(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Eo=null,Xn=null,Qn=null;function Wu(e){if(e=Zr(e)){if(typeof Eo!="function")throw Error(s(280));var t=e.stateNode;t&&(t=es(t),Eo(e.stateNode,e.type,t))}}function Hu(e){Xn?Qn?Qn.push(e):Qn=[e]:Xn=e}function $u(){if(Xn){var e=Xn,t=Qn;if(Qn=Xn=null,Wu(e),t)for(e=0;e<t.length;e++)Wu(t[e])}}function Gu(e,t){return e(t)}function Ku(){}var Po=!1;function Yu(e,t,i){if(Po)return e(t,i);Po=!0;try{return Gu(e,t,i)}finally{Po=!1,(Xn!==null||Qn!==null)&&(Ku(),$u())}}function Dr(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 Fr={};Object.defineProperty(Fr,"passive",{get:function(){Ao=!0}}),window.addEventListener("test",Fr,Fr),window.removeEventListener("test",Fr,Fr)}catch{Ao=!1}function Qm(e,t,i,o,l,c,p,w,k){var M=Array.prototype.slice.call(arguments,3);try{t.apply(i,M)}catch(_){this.onError(_)}}var Lr=!1,Fi=null,Li=!1,jo=null,qm={onError:function(e){Lr=!0,Fi=e}};function Zm(e,t,i,o,l,c,p,w,k){Lr=!1,Fi=null,Qm.apply(qm,arguments)}function Jm(e,t,i,o,l,c,p,w,k){if(Zm.apply(this,arguments),Lr){if(Lr){var M=Fi;Lr=!1,Fi=null}else throw Error(s(198));Li||(Li=!0,jo=M)}}function jn(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 Xu(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Qu(e){if(jn(e)!==e)throw Error(s(188))}function eg(e){var t=e.alternate;if(!t){if(t=jn(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 Qu(l),e;if(c===o)return Qu(l),t;c=c.sibling}throw Error(s(188))}if(i.return!==o.return)i=l,o=c;else{for(var p=!1,w=l.child;w;){if(w===i){p=!0,i=l,o=c;break}if(w===o){p=!0,o=l,i=c;break}w=w.sibling}if(!p){for(w=c.child;w;){if(w===i){p=!0,i=c,o=l;break}if(w===o){p=!0,o=c,i=l;break}w=w.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=eg(e),e!==null?Zu(e):null}function Zu(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Zu(e);if(t!==null)return t;e=e.sibling}return null}var Ju=r.unstable_scheduleCallback,ec=r.unstable_cancelCallback,tg=r.unstable_shouldYield,ng=r.unstable_requestPaint,Ve=r.unstable_now,rg=r.unstable_getCurrentPriorityLevel,No=r.unstable_ImmediatePriority,tc=r.unstable_UserBlockingPriority,Ri=r.unstable_NormalPriority,ig=r.unstable_LowPriority,nc=r.unstable_IdlePriority,Ii=null,bt=null;function sg(e){if(bt&&typeof bt.onCommitFiberRoot=="function")try{bt.onCommitFiberRoot(Ii,e,void 0,(e.current.flags&128)===128)}catch{}}var Pt=Math.clz32?Math.clz32:lg,og=Math.log,ag=Math.LN2;function lg(e){return e>>>=0,e===0?32:31-(og(e)/ag|0)|0}var Vi=64,bi=4194304;function Rr(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 _i(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 w=p&~l;w!==0?o=Rr(w):(c&=p,c!==0&&(o=Rr(c)))}else p=i&~l,p!==0?o=Rr(p):c!==0&&(o=Rr(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 ug(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 cg(e,t){for(var i=e.suspendedLanes,o=e.pingedLanes,l=e.expirationTimes,c=e.pendingLanes;0<c;){var p=31-Pt(c),w=1<<p,k=l[p];k===-1?((w&i)===0||(w&o)!==0)&&(l[p]=ug(w,t)):k<=t&&(e.expiredLanes|=w),c&=~w}}function Mo(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function rc(){var e=Vi;return Vi<<=1,(Vi&4194240)===0&&(Vi=64),e}function Do(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 dg(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 Fo(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 ve=0;function ic(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var sc,Lo,oc,ac,lc,Ro=!1,zi=[],tn=null,nn=null,rn=null,Vr=new Map,br=new Map,sn=[],fg="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 uc(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":Vr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":br.delete(t.pointerId)}}function _r(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=Zr(t),t!==null&&Lo(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function hg(e,t,i,o,l){switch(t){case"focusin":return tn=_r(tn,e,t,i,o,l),!0;case"dragenter":return nn=_r(nn,e,t,i,o,l),!0;case"mouseover":return rn=_r(rn,e,t,i,o,l),!0;case"pointerover":var c=l.pointerId;return Vr.set(c,_r(Vr.get(c)||null,e,t,i,o,l)),!0;case"gotpointercapture":return c=l.pointerId,br.set(c,_r(br.get(c)||null,e,t,i,o,l)),!0}return!1}function cc(e){var t=Nn(e.target);if(t!==null){var i=jn(t);if(i!==null){if(t=i.tag,t===13){if(t=Xu(i),t!==null){e.blockedOn=t,lc(e.priority,function(){oc(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 Oi(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);To=o,i.target.dispatchEvent(o),To=null}else return t=Zr(i),t!==null&&Lo(t),e.blockedOn=i,!1;t.shift()}return!0}function dc(e,t,i){Oi(e)&&i.delete(t)}function pg(){Ro=!1,tn!==null&&Oi(tn)&&(tn=null),nn!==null&&Oi(nn)&&(nn=null),rn!==null&&Oi(rn)&&(rn=null),Vr.forEach(dc),br.forEach(dc)}function zr(e,t){e.blockedOn===t&&(e.blockedOn=null,Ro||(Ro=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,pg)))}function Or(e){function t(l){return zr(l,e)}if(0<zi.length){zr(zi[0],e);for(var i=1;i<zi.length;i++){var o=zi[i];o.blockedOn===e&&(o.blockedOn=null)}}for(tn!==null&&zr(tn,e),nn!==null&&zr(nn,e),rn!==null&&zr(rn,e),Vr.forEach(t),br.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);)cc(i),i.blockedOn===null&&sn.shift()}var qn=R.ReactCurrentBatchConfig,Bi=!0;function mg(e,t,i,o){var l=ve,c=qn.transition;qn.transition=null;try{ve=1,Io(e,t,i,o)}finally{ve=l,qn.transition=c}}function gg(e,t,i,o){var l=ve,c=qn.transition;qn.transition=null;try{ve=4,Io(e,t,i,o)}finally{ve=l,qn.transition=c}}function Io(e,t,i,o){if(Bi){var l=Vo(e,t,i,o);if(l===null)Jo(e,t,o,Ui,i),uc(e,o);else if(hg(l,e,t,i,o))o.stopPropagation();else if(uc(e,o),t&4&&-1<fg.indexOf(e)){for(;l!==null;){var c=Zr(l);if(c!==null&&sc(c),c=Vo(e,t,i,o),c===null&&Jo(e,t,o,Ui,i),c===l)break;l=c}l!==null&&o.stopPropagation()}else Jo(e,t,o,null,i)}}var Ui=null;function Vo(e,t,i,o){if(Ui=null,e=Co(o),e=Nn(e),e!==null)if(t=jn(e),t===null)e=null;else if(i=t.tag,i===13){if(e=Xu(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 fc(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(rg()){case No:return 1;case tc:return 4;case Ri:case ig:return 16;case nc:return 536870912;default:return 16}default:return 16}}var on=null,bo=null,Wi=null;function hc(){if(Wi)return Wi;var e,t=bo,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 $i(){return!0}function pc(){return!1}function ht(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 w in e)e.hasOwnProperty(w)&&(i=e[w],this[w]=i?i(c):c[w]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?$i:pc,this.isPropagationStopped=pc,this}return H(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=$i)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=$i)},persist:function(){},isPersistent:$i}),t}var Zn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_o=ht(Zn),Br=H({},Zn,{view:0,detail:0}),yg=ht(Br),zo,Oo,Ur,Gi=H({},Br,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Uo,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!==Ur&&(Ur&&e.type==="mousemove"?(zo=e.screenX-Ur.screenX,Oo=e.screenY-Ur.screenY):Oo=zo=0,Ur=e),zo)},movementY:function(e){return"movementY"in e?e.movementY:Oo}}),mc=ht(Gi),vg=H({},Gi,{dataTransfer:0}),xg=ht(vg),wg=H({},Br,{relatedTarget:0}),Bo=ht(wg),Sg=H({},Zn,{animationName:0,elapsedTime:0,pseudoElement:0}),kg=ht(Sg),Tg=H({},Zn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Cg=ht(Tg),Eg=H({},Zn,{data:0}),gc=ht(Eg),Pg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ag={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},jg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ng(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=jg[e])?!!t[e]:!1}function Uo(){return Ng}var Mg=H({},Br,{key:function(e){if(e.key){var t=Pg[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"?Ag[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Uo,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}}),Dg=ht(Mg),Fg=H({},Gi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yc=ht(Fg),Lg=H({},Br,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Uo}),Rg=ht(Lg),Ig=H({},Zn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Vg=ht(Ig),bg=H({},Gi,{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}),_g=ht(bg),zg=[9,13,27,32],Wo=h&&"CompositionEvent"in window,Wr=null;h&&"documentMode"in document&&(Wr=document.documentMode);var Og=h&&"TextEvent"in window&&!Wr,vc=h&&(!Wo||Wr&&8<Wr&&11>=Wr),xc=" ",wc=!1;function Sc(e,t){switch(e){case"keyup":return zg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Jn=!1;function Bg(e,t){switch(e){case"compositionend":return kc(t);case"keypress":return t.which!==32?null:(wc=!0,xc);case"textInput":return e=t.data,e===xc&&wc?null:e;default:return null}}function Ug(e,t){if(Jn)return e==="compositionend"||!Wo&&Sc(e,t)?(e=hc(),Wi=bo=on=null,Jn=!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 vc&&t.locale!=="ko"?null:t.data;default:return null}}var Wg={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Tc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Wg[e.type]:t==="textarea"}function Cc(e,t,i,o){Hu(o),t=qi(t,"onChange"),0<t.length&&(i=new _o("onChange","change",null,i,o),e.push({event:i,listeners:t}))}var Hr=null,$r=null;function Hg(e){Uc(e,0)}function Ki(e){var t=ir(e);if(Fu(t))return e}function $g(e,t){if(e==="change")return t}var Ec=!1;if(h){var Ho;if(h){var $o="oninput"in document;if(!$o){var Pc=document.createElement("div");Pc.setAttribute("oninput","return;"),$o=typeof Pc.oninput=="function"}Ho=$o}else Ho=!1;Ec=Ho&&(!document.documentMode||9<document.documentMode)}function Ac(){Hr&&(Hr.detachEvent("onpropertychange",jc),$r=Hr=null)}function jc(e){if(e.propertyName==="value"&&Ki($r)){var t=[];Cc(t,$r,e,Co(e)),Yu(Hg,t)}}function Gg(e,t,i){e==="focusin"?(Ac(),Hr=t,$r=i,Hr.attachEvent("onpropertychange",jc)):e==="focusout"&&Ac()}function Kg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ki($r)}function Yg(e,t){if(e==="click")return Ki(t)}function Xg(e,t){if(e==="input"||e==="change")return Ki(t)}function Qg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var At=typeof Object.is=="function"?Object.is:Qg;function Gr(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 Nc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Mc(e,t){var i=Nc(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=Nc(i)}}function Dc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Dc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Fc(){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 qg(e){var t=Fc(),i=e.focusedElem,o=e.selectionRange;if(t!==i&&i&&i.ownerDocument&&Dc(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=Mc(i,c);var p=Mc(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 Zg=h&&"documentMode"in document&&11>=document.documentMode,er=null,Ko=null,Kr=null,Yo=!1;function Lc(e,t,i){var o=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Yo||er==null||er!==Mi(o)||(o=er,"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}),Kr&&Gr(Kr,o)||(Kr=o,o=qi(Ko,"onSelect"),0<o.length&&(t=new _o("onSelect","select",null,t,i),e.push({event:t,listeners:o}),t.target=er)))}function Yi(e,t){var i={};return i[e.toLowerCase()]=t.toLowerCase(),i["Webkit"+e]="webkit"+t,i["Moz"+e]="moz"+t,i}var tr={animationend:Yi("Animation","AnimationEnd"),animationiteration:Yi("Animation","AnimationIteration"),animationstart:Yi("Animation","AnimationStart"),transitionend:Yi("Transition","TransitionEnd")},Xo={},Rc={};h&&(Rc=document.createElement("div").style,"AnimationEvent"in window||(delete tr.animationend.animation,delete tr.animationiteration.animation,delete tr.animationstart.animation),"TransitionEvent"in window||delete tr.transitionend.transition);function Xi(e){if(Xo[e])return Xo[e];if(!tr[e])return e;var t=tr[e],i;for(i in t)if(t.hasOwnProperty(i)&&i in Rc)return Xo[e]=t[i];return e}var Ic=Xi("animationend"),Vc=Xi("animationiteration"),bc=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 Qo=0;Qo<Oc.length;Qo++){var qo=Oc[Qo],Jg=qo.toLowerCase(),ey=qo[0].toUpperCase()+qo.slice(1);an(Jg,"on"+ey)}an(Ic,"onAnimationEnd"),an(Vc,"onAnimationIteration"),an(bc,"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 Yr="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(" "),ty=new Set("cancel close invalid load scroll toggle".split(" ").concat(Yr));function Bc(e,t,i){var o=e.type||"unknown-event";e.currentTarget=i,Jm(o,t,void 0,e),e.currentTarget=null}function Uc(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 w=o[p],k=w.instance,M=w.currentTarget;if(w=w.listener,k!==c&&l.isPropagationStopped())break e;Bc(l,w,M),c=k}else for(p=0;p<o.length;p++){if(w=o[p],k=w.instance,M=w.currentTarget,w=w.listener,k!==c&&l.isPropagationStopped())break e;Bc(l,w,M),c=k}}}if(Li)throw e=jo,Li=!1,jo=null,e}function Ce(e,t){var i=t[sa];i===void 0&&(i=t[sa]=new Set);var o=e+"__bubble";i.has(o)||(Wc(t,e,2,!1),i.add(o))}function Zo(e,t,i){var o=0;t&&(o|=4),Wc(i,e,o,t)}var Qi="_reactListening"+Math.random().toString(36).slice(2);function Xr(e){if(!e[Qi]){e[Qi]=!0,a.forEach(function(i){i!=="selectionchange"&&(ty.has(i)||Zo(i,!1,e),Zo(i,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Qi]||(t[Qi]=!0,Zo("selectionchange",!1,t))}}function Wc(e,t,i,o){switch(fc(t)){case 1:var l=mg;break;case 4:l=gg;break;default:l=Io}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 Jo(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 w=o.stateNode.containerInfo;if(w===l||w.nodeType===8&&w.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(;w!==null;){if(p=Nn(w),p===null)return;if(k=p.tag,k===5||k===6){o=c=p;continue e}w=w.parentNode}}o=o.return}Yu(function(){var M=c,_=Co(i),O=[];e:{var V=zc.get(e);if(V!==void 0){var $=_o,K=e;switch(e){case"keypress":if(Hi(i)===0)break e;case"keydown":case"keyup":$=Dg;break;case"focusin":K="focus",$=Bo;break;case"focusout":K="blur",$=Bo;break;case"beforeblur":case"afterblur":$=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":$=mc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":$=xg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":$=Rg;break;case Ic:case Vc:case bc:$=kg;break;case _c:$=Vg;break;case"scroll":$=yg;break;case"wheel":$=_g;break;case"copy":case"cut":case"paste":$=Cg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":$=yc}var Q=(t&4)!==0,be=!Q&&e==="scroll",A=Q?V!==null?V+"Capture":null:V;Q=[];for(var T=M,j;T!==null;){j=T;var U=j.stateNode;if(j.tag===5&&U!==null&&(j=U,A!==null&&(U=Dr(T,A),U!=null&&Q.push(Qr(T,U,j)))),be)break;T=T.return}0<Q.length&&(V=new $(V,K,null,i,_),O.push({event:V,listeners:Q}))}}if((t&7)===0){e:{if(V=e==="mouseover"||e==="pointerover",$=e==="mouseout"||e==="pointerout",V&&i!==To&&(K=i.relatedTarget||i.fromElement)&&(Nn(K)||K[Kt]))break e;if(($||V)&&(V=_.window===_?_:(V=_.ownerDocument)?V.defaultView||V.parentWindow:window,$?(K=i.relatedTarget||i.toElement,$=M,K=K?Nn(K):null,K!==null&&(be=jn(K),K!==be||K.tag!==5&&K.tag!==6)&&(K=null)):($=null,K=M),$!==K)){if(Q=mc,U="onMouseLeave",A="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(Q=yc,U="onPointerLeave",A="onPointerEnter",T="pointer"),be=$==null?V:ir($),j=K==null?V:ir(K),V=new Q(U,T+"leave",$,i,_),V.target=be,V.relatedTarget=j,U=null,Nn(_)===M&&(Q=new Q(A,T+"enter",K,i,_),Q.target=j,Q.relatedTarget=be,U=Q),be=U,$&&K)t:{for(Q=$,A=K,T=0,j=Q;j;j=nr(j))T++;for(j=0,U=A;U;U=nr(U))j++;for(;0<T-j;)Q=nr(Q),T--;for(;0<j-T;)A=nr(A),j--;for(;T--;){if(Q===A||A!==null&&Q===A.alternate)break t;Q=nr(Q),A=nr(A)}Q=null}else Q=null;$!==null&&Hc(O,V,$,Q,!1),K!==null&&be!==null&&Hc(O,be,K,Q,!0)}}e:{if(V=M?ir(M):window,$=V.nodeName&&V.nodeName.toLowerCase(),$==="select"||$==="input"&&V.type==="file")var Z=$g;else if(Tc(V))if(Ec)Z=Xg;else{Z=Kg;var te=Gg}else($=V.nodeName)&&$.toLowerCase()==="input"&&(V.type==="checkbox"||V.type==="radio")&&(Z=Yg);if(Z&&(Z=Z(e,M))){Cc(O,Z,i,_);break e}te&&te(e,V,M),e==="focusout"&&(te=V._wrapperState)&&te.controlled&&V.type==="number"&&vo(V,"number",V.value)}switch(te=M?ir(M):window,e){case"focusin":(Tc(te)||te.contentEditable==="true")&&(er=te,Ko=M,Kr=null);break;case"focusout":Kr=Ko=er=null;break;case"mousedown":Yo=!0;break;case"contextmenu":case"mouseup":case"dragend":Yo=!1,Lc(O,i,_);break;case"selectionchange":if(Zg)break;case"keydown":case"keyup":Lc(O,i,_)}var ne;if(Wo)e:{switch(e){case"compositionstart":var re="onCompositionStart";break e;case"compositionend":re="onCompositionEnd";break e;case"compositionupdate":re="onCompositionUpdate";break e}re=void 0}else Jn?Sc(e,i)&&(re="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(re="onCompositionStart");re&&(vc&&i.locale!=="ko"&&(Jn||re!=="onCompositionStart"?re==="onCompositionEnd"&&Jn&&(ne=hc()):(on=_,bo="value"in on?on.value:on.textContent,Jn=!0)),te=qi(M,re),0<te.length&&(re=new gc(re,e,null,i,_),O.push({event:re,listeners:te}),ne?re.data=ne:(ne=kc(i),ne!==null&&(re.data=ne)))),(ne=Og?Bg(e,i):Ug(e,i))&&(M=qi(M,"onBeforeInput"),0<M.length&&(_=new gc("onBeforeInput","beforeinput",null,i,_),O.push({event:_,listeners:M}),_.data=ne))}Uc(O,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=Dr(e,i),c!=null&&o.unshift(Qr(e,c,l)),c=Dr(e,t),c!=null&&o.push(Qr(e,c,l))),e=e.return}return o}function nr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Hc(e,t,i,o,l){for(var c=t._reactName,p=[];i!==null&&i!==o;){var w=i,k=w.alternate,M=w.stateNode;if(k!==null&&k===o)break;w.tag===5&&M!==null&&(w=M,l?(k=Dr(i,c),k!=null&&p.unshift(Qr(i,k,w))):l||(k=Dr(i,c),k!=null&&p.push(Qr(i,k,w)))),i=i.return}p.length!==0&&e.push({event:t,listeners:p})}var ny=/\r\n?/g,ry=/\u0000|\uFFFD/g;function $c(e){return(typeof e=="string"?e:""+e).replace(ny,`
|
||
`).replace(ry,"")}function Zi(e,t,i){if(t=$c(t),$c(e)!==t&&i)throw Error(s(425))}function Ji(){}var ea=null,ta=null;function na(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 ra=typeof setTimeout=="function"?setTimeout:void 0,iy=typeof clearTimeout=="function"?clearTimeout:void 0,Gc=typeof Promise=="function"?Promise:void 0,sy=typeof queueMicrotask=="function"?queueMicrotask:typeof Gc<"u"?function(e){return Gc.resolve(null).then(e).catch(oy)}:ra;function oy(e){setTimeout(function(){throw e})}function ia(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),Or(t);return}o--}else i!=="$"&&i!=="$?"&&i!=="$!"||o++;i=l}while(i);Or(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 rr=Math.random().toString(36).slice(2),_t="__reactFiber$"+rr,qr="__reactProps$"+rr,Kt="__reactContainer$"+rr,sa="__reactEvents$"+rr,ay="__reactListeners$"+rr,ly="__reactHandles$"+rr;function Nn(e){var t=e[_t];if(t)return t;for(var i=e.parentNode;i;){if(t=i[Kt]||i[_t]){if(i=t.alternate,t.child!==null||i!==null&&i.child!==null)for(e=Kc(e);e!==null;){if(i=e[_t])return i;e=Kc(e)}return t}e=i,i=e.parentNode}return null}function Zr(e){return e=e[_t]||e[Kt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ir(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(s(33))}function es(e){return e[qr]||null}var oa=[],sr=-1;function un(e){return{current:e}}function Ee(e){0>sr||(e.current=oa[sr],oa[sr]=null,sr--)}function ke(e,t){sr++,oa[sr]=e.current,e.current=t}var cn={},Ze=un(cn),ot=un(!1),Mn=cn;function or(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 at(e){return e=e.childContextTypes,e!=null}function ts(){Ee(ot),Ee(Ze)}function Yc(e,t,i){if(Ze.current!==cn)throw Error(s(168));ke(Ze,t),ke(ot,i)}function Xc(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,Se(e)||"Unknown",l));return H({},i,o)}function ns(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||cn,Mn=Ze.current,ke(Ze,e),ke(ot,ot.current),!0}function Qc(e,t,i){var o=e.stateNode;if(!o)throw Error(s(169));i?(e=Xc(e,t,Mn),o.__reactInternalMemoizedMergedChildContext=e,Ee(ot),Ee(Ze),ke(Ze,e)):Ee(ot),ke(ot,i)}var Yt=null,rs=!1,aa=!1;function qc(e){Yt===null?Yt=[e]:Yt.push(e)}function uy(e){rs=!0,qc(e)}function dn(){if(!aa&&Yt!==null){aa=!0;var e=0,t=ve;try{var i=Yt;for(ve=1;e<i.length;e++){var o=i[e];do o=o(!0);while(o!==null)}Yt=null,rs=!1}catch(l){throw Yt!==null&&(Yt=Yt.slice(e+1)),Ju(No,dn),l}finally{ve=t,aa=!1}}return null}var ar=[],lr=0,is=null,ss=0,vt=[],xt=0,Dn=null,Xt=1,Qt="";function Fn(e,t){ar[lr++]=ss,ar[lr++]=is,is=e,ss=t}function Zc(e,t,i){vt[xt++]=Xt,vt[xt++]=Qt,vt[xt++]=Dn,Dn=e;var o=Xt;e=Qt;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,Xt=1<<32-Pt(t)+l|i<<l|o,Qt=c+e}else Xt=1<<c|i<<l|o,Qt=e}function la(e){e.return!==null&&(Fn(e,1),Zc(e,1,0))}function ua(e){for(;e===is;)is=ar[--lr],ar[lr]=null,ss=ar[--lr],ar[lr]=null;for(;e===Dn;)Dn=vt[--xt],vt[xt]=null,Qt=vt[--xt],vt[xt]=null,Xt=vt[--xt],vt[xt]=null}var pt=null,mt=null,je=!1,jt=null;function Jc(e,t){var i=Tt(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 ed(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,pt=e,mt=ln(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,pt=e,mt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(i=Dn!==null?{id:Xt,overflow:Qt}:null,e.memoizedState={dehydrated:t,treeContext:i,retryLane:1073741824},i=Tt(18,null,null,0),i.stateNode=t,i.return=e,e.child=i,pt=e,mt=null,!0):!1;default:return!1}}function ca(e){return(e.mode&1)!==0&&(e.flags&128)===0}function da(e){if(je){var t=mt;if(t){var i=t;if(!ed(e,t)){if(ca(e))throw Error(s(418));t=ln(i.nextSibling);var o=pt;t&&ed(e,t)?Jc(o,i):(e.flags=e.flags&-4097|2,je=!1,pt=e)}}else{if(ca(e))throw Error(s(418));e.flags=e.flags&-4097|2,je=!1,pt=e}}}function td(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;pt=e}function os(e){if(e!==pt)return!1;if(!je)return td(e),je=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!na(e.type,e.memoizedProps)),t&&(t=mt)){if(ca(e))throw nd(),Error(s(418));for(;t;)Jc(e,t),t=ln(t.nextSibling)}if(td(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){mt=ln(e.nextSibling);break e}t--}else i!=="$"&&i!=="$!"&&i!=="$?"||t++}e=e.nextSibling}mt=null}}else mt=pt?ln(e.stateNode.nextSibling):null;return!0}function nd(){for(var e=mt;e;)e=ln(e.nextSibling)}function ur(){mt=pt=null,je=!1}function fa(e){jt===null?jt=[e]:jt.push(e)}var cy=R.ReactCurrentBatchConfig;function Jr(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 w=l.refs;p===null?delete w[c]:w[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 rd(e){var t=e._init;return t(e._payload)}function id(e){function t(A,T){if(e){var j=A.deletions;j===null?(A.deletions=[T],A.flags|=16):j.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,j){return A.index=j,e?(j=A.alternate,j!==null?(j=j.index,j<T?(A.flags|=2,T):j):(A.flags|=2,T)):(A.flags|=1048576,T)}function p(A){return e&&A.alternate===null&&(A.flags|=2),A}function w(A,T,j,U){return T===null||T.tag!==6?(T=rl(j,A.mode,U),T.return=A,T):(T=l(T,j),T.return=A,T)}function k(A,T,j,U){var Z=j.type;return Z===se?_(A,T,j.props.children,U,j.key):T!==null&&(T.elementType===Z||typeof Z=="object"&&Z!==null&&Z.$$typeof===Te&&rd(Z)===T.type)?(U=l(T,j.props),U.ref=Jr(A,T,j),U.return=A,U):(U=Ds(j.type,j.key,j.props,null,A.mode,U),U.ref=Jr(A,T,j),U.return=A,U)}function M(A,T,j,U){return T===null||T.tag!==4||T.stateNode.containerInfo!==j.containerInfo||T.stateNode.implementation!==j.implementation?(T=il(j,A.mode,U),T.return=A,T):(T=l(T,j.children||[]),T.return=A,T)}function _(A,T,j,U,Z){return T===null||T.tag!==7?(T=On(j,A.mode,U,Z),T.return=A,T):(T=l(T,j),T.return=A,T)}function O(A,T,j){if(typeof T=="string"&&T!==""||typeof T=="number")return T=rl(""+T,A.mode,j),T.return=A,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case W:return j=Ds(T.type,T.key,T.props,null,A.mode,j),j.ref=Jr(A,null,T),j.return=A,j;case ee:return T=il(T,A.mode,j),T.return=A,T;case Te:var U=T._init;return O(A,U(T._payload),j)}if(jr(T)||X(T))return T=On(T,A.mode,j,null),T.return=A,T;as(A,T)}return null}function V(A,T,j,U){var Z=T!==null?T.key:null;if(typeof j=="string"&&j!==""||typeof j=="number")return Z!==null?null:w(A,T,""+j,U);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case W:return j.key===Z?k(A,T,j,U):null;case ee:return j.key===Z?M(A,T,j,U):null;case Te:return Z=j._init,V(A,T,Z(j._payload),U)}if(jr(j)||X(j))return Z!==null?null:_(A,T,j,U,null);as(A,j)}return null}function $(A,T,j,U,Z){if(typeof U=="string"&&U!==""||typeof U=="number")return A=A.get(j)||null,w(T,A,""+U,Z);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case W:return A=A.get(U.key===null?j:U.key)||null,k(T,A,U,Z);case ee:return A=A.get(U.key===null?j:U.key)||null,M(T,A,U,Z);case Te:var te=U._init;return $(A,T,j,te(U._payload),Z)}if(jr(U)||X(U))return A=A.get(j)||null,_(T,A,U,Z,null);as(T,U)}return null}function K(A,T,j,U){for(var Z=null,te=null,ne=T,re=T=0,Ke=null;ne!==null&&re<j.length;re++){ne.index>re?(Ke=ne,ne=null):Ke=ne.sibling;var ge=V(A,ne,j[re],U);if(ge===null){ne===null&&(ne=Ke);break}e&&ne&&ge.alternate===null&&t(A,ne),T=c(ge,T,re),te===null?Z=ge:te.sibling=ge,te=ge,ne=Ke}if(re===j.length)return i(A,ne),je&&Fn(A,re),Z;if(ne===null){for(;re<j.length;re++)ne=O(A,j[re],U),ne!==null&&(T=c(ne,T,re),te===null?Z=ne:te.sibling=ne,te=ne);return je&&Fn(A,re),Z}for(ne=o(A,ne);re<j.length;re++)Ke=$(ne,A,re,j[re],U),Ke!==null&&(e&&Ke.alternate!==null&&ne.delete(Ke.key===null?re:Ke.key),T=c(Ke,T,re),te===null?Z=Ke:te.sibling=Ke,te=Ke);return e&&ne.forEach(function(wn){return t(A,wn)}),je&&Fn(A,re),Z}function Q(A,T,j,U){var Z=X(j);if(typeof Z!="function")throw Error(s(150));if(j=Z.call(j),j==null)throw Error(s(151));for(var te=Z=null,ne=T,re=T=0,Ke=null,ge=j.next();ne!==null&&!ge.done;re++,ge=j.next()){ne.index>re?(Ke=ne,ne=null):Ke=ne.sibling;var wn=V(A,ne,ge.value,U);if(wn===null){ne===null&&(ne=Ke);break}e&&ne&&wn.alternate===null&&t(A,ne),T=c(wn,T,re),te===null?Z=wn:te.sibling=wn,te=wn,ne=Ke}if(ge.done)return i(A,ne),je&&Fn(A,re),Z;if(ne===null){for(;!ge.done;re++,ge=j.next())ge=O(A,ge.value,U),ge!==null&&(T=c(ge,T,re),te===null?Z=ge:te.sibling=ge,te=ge);return je&&Fn(A,re),Z}for(ne=o(A,ne);!ge.done;re++,ge=j.next())ge=$(ne,A,re,ge.value,U),ge!==null&&(e&&ge.alternate!==null&&ne.delete(ge.key===null?re:ge.key),T=c(ge,T,re),te===null?Z=ge:te.sibling=ge,te=ge);return e&&ne.forEach(function(Wy){return t(A,Wy)}),je&&Fn(A,re),Z}function be(A,T,j,U){if(typeof j=="object"&&j!==null&&j.type===se&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case W:e:{for(var Z=j.key,te=T;te!==null;){if(te.key===Z){if(Z=j.type,Z===se){if(te.tag===7){i(A,te.sibling),T=l(te,j.props.children),T.return=A,A=T;break e}}else if(te.elementType===Z||typeof Z=="object"&&Z!==null&&Z.$$typeof===Te&&rd(Z)===te.type){i(A,te.sibling),T=l(te,j.props),T.ref=Jr(A,te,j),T.return=A,A=T;break e}i(A,te);break}else t(A,te);te=te.sibling}j.type===se?(T=On(j.props.children,A.mode,U,j.key),T.return=A,A=T):(U=Ds(j.type,j.key,j.props,null,A.mode,U),U.ref=Jr(A,T,j),U.return=A,A=U)}return p(A);case ee:e:{for(te=j.key;T!==null;){if(T.key===te)if(T.tag===4&&T.stateNode.containerInfo===j.containerInfo&&T.stateNode.implementation===j.implementation){i(A,T.sibling),T=l(T,j.children||[]),T.return=A,A=T;break e}else{i(A,T);break}else t(A,T);T=T.sibling}T=il(j,A.mode,U),T.return=A,A=T}return p(A);case Te:return te=j._init,be(A,T,te(j._payload),U)}if(jr(j))return K(A,T,j,U);if(X(j))return Q(A,T,j,U);as(A,j)}return typeof j=="string"&&j!==""||typeof j=="number"?(j=""+j,T!==null&&T.tag===6?(i(A,T.sibling),T=l(T,j),T.return=A,A=T):(i(A,T),T=rl(j,A.mode,U),T.return=A,A=T),p(A)):i(A,T)}return be}var cr=id(!0),sd=id(!1),ls=un(null),us=null,dr=null,ha=null;function pa(){ha=dr=us=null}function ma(e){var t=ls.current;Ee(ls),e._currentValue=t}function ga(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 fr(e,t){us=e,ha=dr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(lt=!0),e.firstContext=null)}function wt(e){var t=e._currentValue;if(ha!==e)if(e={context:e,memoizedValue:t,next:null},dr===null){if(us===null)throw Error(s(308));dr=e,us.dependencies={lanes:0,firstContext:e}}else dr=dr.next=e;return t}var Ln=null;function ya(e){Ln===null?Ln=[e]:Ln.push(e)}function od(e,t,i,o){var l=t.interleaved;return l===null?(i.next=i,ya(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 va(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ad(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 Zt(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,(de&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,ya(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,Fo(e,i)}}function ld(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,w=l.shared.pending;if(w!==null){l.shared.pending=null;var k=w,M=k.next;k.next=null,p===null?c=M:p.next=M,p=k;var _=e.alternate;_!==null&&(_=_.updateQueue,w=_.lastBaseUpdate,w!==p&&(w===null?_.firstBaseUpdate=M:w.next=M,_.lastBaseUpdate=k))}if(c!==null){var O=l.baseState;p=0,_=M=k=null,w=c;do{var V=w.lane,$=w.eventTime;if((o&V)===V){_!==null&&(_=_.next={eventTime:$,lane:0,tag:w.tag,payload:w.payload,callback:w.callback,next:null});e:{var K=e,Q=w;switch(V=t,$=i,Q.tag){case 1:if(K=Q.payload,typeof K=="function"){O=K.call($,O,V);break e}O=K;break e;case 3:K.flags=K.flags&-65537|128;case 0:if(K=Q.payload,V=typeof K=="function"?K.call($,O,V):K,V==null)break e;O=H({},O,V);break e;case 2:fn=!0}}w.callback!==null&&w.lane!==0&&(e.flags|=64,V=l.effects,V===null?l.effects=[w]:V.push(w))}else $={eventTime:$,lane:V,tag:w.tag,payload:w.payload,callback:w.callback,next:null},_===null?(M=_=$,k=O):_=_.next=$,p|=V;if(w=w.next,w===null){if(w=l.shared.pending,w===null)break;V=w,w=V.next,V.next=null,l.lastBaseUpdate=V,l.shared.pending=null}}while(!0);if(_===null&&(k=O),l.baseState=k,l.firstBaseUpdate=M,l.lastBaseUpdate=_,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=O}}function ud(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 ei={},zt=un(ei),ti=un(ei),ni=un(ei);function Rn(e){if(e===ei)throw Error(s(174));return e}function xa(e,t){switch(ke(ni,t),ke(ti,e),ke(zt,ei),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:wo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=wo(t,e)}Ee(zt),ke(zt,t)}function hr(){Ee(zt),Ee(ti),Ee(ni)}function cd(e){Rn(ni.current);var t=Rn(zt.current),i=wo(t,e.type);t!==i&&(ke(ti,e),ke(zt,i))}function wa(e){ti.current===e&&(Ee(zt),Ee(ti))}var De=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 Sa=[];function ka(){for(var e=0;e<Sa.length;e++)Sa[e]._workInProgressVersionPrimary=null;Sa.length=0}var hs=R.ReactCurrentDispatcher,Ta=R.ReactCurrentBatchConfig,In=0,Fe=null,Be=null,$e=null,ps=!1,ri=!1,ii=0,dy=0;function Je(){throw Error(s(321))}function Ca(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 Ea(e,t,i,o,l,c){if(In=c,Fe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,hs.current=e===null||e.memoizedState===null?my:gy,e=i(o,l),ri){c=0;do{if(ri=!1,ii=0,25<=c)throw Error(s(301));c+=1,$e=Be=null,t.updateQueue=null,hs.current=yy,e=i(o,l)}while(ri)}if(hs.current=ys,t=Be!==null&&Be.next!==null,In=0,$e=Be=Fe=null,ps=!1,t)throw Error(s(300));return e}function Pa(){var e=ii!==0;return ii=0,e}function Ot(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $e===null?Fe.memoizedState=$e=e:$e=$e.next=e,$e}function St(){if(Be===null){var e=Fe.alternate;e=e!==null?e.memoizedState:null}else e=Be.next;var t=$e===null?Fe.memoizedState:$e.next;if(t!==null)$e=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},$e===null?Fe.memoizedState=$e=e:$e=$e.next=e}return $e}function si(e,t){return typeof t=="function"?t(e):t}function Aa(e){var t=St(),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 w=p=null,k=null,M=c;do{var _=M.lane;if((In&_)===_)k!==null&&(k=k.next={lane:0,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),o=M.hasEagerState?M.eagerState:e(o,M.action);else{var O={lane:_,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null};k===null?(w=k=O,p=o):k=k.next=O,Fe.lanes|=_,Vn|=_}M=M.next}while(M!==null&&M!==c);k===null?p=o:k.next=w,At(o,t.memoizedState)||(lt=!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,Fe.lanes|=c,Vn|=c,l=l.next;while(l!==e)}else l===null&&(i.lanes=0);return[t.memoizedState,i.dispatch]}function ja(e){var t=St(),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)||(lt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),i.lastRenderedState=c}return[c,o]}function dd(){}function fd(e,t){var i=Fe,o=St(),l=t(),c=!At(o.memoizedState,l);if(c&&(o.memoizedState=l,lt=!0),o=o.queue,Na(md.bind(null,i,o,e),[e]),o.getSnapshot!==t||c||$e!==null&&$e.memoizedState.tag&1){if(i.flags|=2048,oi(9,pd.bind(null,i,o,l,t),void 0,null),Ge===null)throw Error(s(349));(In&30)!==0||hd(i,t,l)}return l}function hd(e,t,i){e.flags|=16384,e={getSnapshot:t,value:i},t=Fe.updateQueue,t===null?(t={lastEffect:null,stores:null},Fe.updateQueue=t,t.stores=[e]):(i=t.stores,i===null?t.stores=[e]:i.push(e))}function pd(e,t,i,o){t.value=i,t.getSnapshot=o,gd(t)&&yd(e)}function md(e,t,i){return i(function(){gd(t)&&yd(e)})}function gd(e){var t=e.getSnapshot;e=e.value;try{var i=t();return!At(e,i)}catch{return!0}}function yd(e){var t=qt(e,1);t!==null&&Ft(t,e,1,-1)}function vd(e){var t=Ot();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:si,lastRenderedState:e},t.queue=e,e=e.dispatch=py.bind(null,Fe,e),[t.memoizedState,e]}function oi(e,t,i,o){return e={tag:e,create:t,destroy:i,deps:o,next:null},t=Fe.updateQueue,t===null?(t={lastEffect:null,stores:null},Fe.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 xd(){return St().memoizedState}function ms(e,t,i,o){var l=Ot();Fe.flags|=e,l.memoizedState=oi(1|t,i,void 0,o===void 0?null:o)}function gs(e,t,i,o){var l=St();o=o===void 0?null:o;var c=void 0;if(Be!==null){var p=Be.memoizedState;if(c=p.destroy,o!==null&&Ca(o,p.deps)){l.memoizedState=oi(t,i,c,o);return}}Fe.flags|=e,l.memoizedState=oi(1|t,i,c,o)}function wd(e,t){return ms(8390656,8,e,t)}function Na(e,t){return gs(2048,8,e,t)}function Sd(e,t){return gs(4,2,e,t)}function kd(e,t){return gs(4,4,e,t)}function Td(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 Cd(e,t,i){return i=i!=null?i.concat([e]):null,gs(4,4,Td.bind(null,t,e),i)}function Ma(){}function Ed(e,t){var i=St();t=t===void 0?null:t;var o=i.memoizedState;return o!==null&&t!==null&&Ca(t,o[1])?o[0]:(i.memoizedState=[e,t],e)}function Pd(e,t){var i=St();t=t===void 0?null:t;var o=i.memoizedState;return o!==null&&t!==null&&Ca(t,o[1])?o[0]:(e=e(),i.memoizedState=[e,t],e)}function Ad(e,t,i){return(In&21)===0?(e.baseState&&(e.baseState=!1,lt=!0),e.memoizedState=i):(At(i,t)||(i=rc(),Fe.lanes|=i,Vn|=i,e.baseState=!0),t)}function fy(e,t){var i=ve;ve=i!==0&&4>i?i:4,e(!0);var o=Ta.transition;Ta.transition={};try{e(!1),t()}finally{ve=i,Ta.transition=o}}function jd(){return St().memoizedState}function hy(e,t,i){var o=yn(e);if(i={lane:o,action:i,hasEagerState:!1,eagerState:null,next:null},Nd(e))Md(t,i);else if(i=od(e,t,i,o),i!==null){var l=rt();Ft(i,e,o,l),Dd(i,t,o)}}function py(e,t,i){var o=yn(e),l={lane:o,action:i,hasEagerState:!1,eagerState:null,next:null};if(Nd(e))Md(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,w=c(p,i);if(l.hasEagerState=!0,l.eagerState=w,At(w,p)){var k=t.interleaved;k===null?(l.next=l,ya(t)):(l.next=k.next,k.next=l),t.interleaved=l;return}}catch{}finally{}i=od(e,t,l,o),i!==null&&(l=rt(),Ft(i,e,o,l),Dd(i,t,o))}}function Nd(e){var t=e.alternate;return e===Fe||t!==null&&t===Fe}function Md(e,t){ri=ps=!0;var i=e.pending;i===null?t.next=t:(t.next=i.next,i.next=t),e.pending=t}function Dd(e,t,i){if((i&4194240)!==0){var o=t.lanes;o&=e.pendingLanes,i|=o,t.lanes=i,Fo(e,i)}}var ys={readContext:wt,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useInsertionEffect:Je,useLayoutEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useMutableSource:Je,useSyncExternalStore:Je,useId:Je,unstable_isNewReconciler:!1},my={readContext:wt,useCallback:function(e,t){return Ot().memoizedState=[e,t===void 0?null:t],e},useContext:wt,useEffect:wd,useImperativeHandle:function(e,t,i){return i=i!=null?i.concat([e]):null,ms(4194308,4,Td.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=Ot();return t=t===void 0?null:t,e=e(),i.memoizedState=[e,t],e},useReducer:function(e,t,i){var o=Ot();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=hy.bind(null,Fe,e),[o.memoizedState,e]},useRef:function(e){var t=Ot();return e={current:e},t.memoizedState=e},useState:vd,useDebugValue:Ma,useDeferredValue:function(e){return Ot().memoizedState=e},useTransition:function(){var e=vd(!1),t=e[0];return e=fy.bind(null,e[1]),Ot().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,i){var o=Fe,l=Ot();if(je){if(i===void 0)throw Error(s(407));i=i()}else{if(i=t(),Ge===null)throw Error(s(349));(In&30)!==0||hd(o,t,i)}l.memoizedState=i;var c={value:i,getSnapshot:t};return l.queue=c,wd(md.bind(null,o,c,e),[e]),o.flags|=2048,oi(9,pd.bind(null,o,c,i,t),void 0,null),i},useId:function(){var e=Ot(),t=Ge.identifierPrefix;if(je){var i=Qt,o=Xt;i=(o&~(1<<32-Pt(o)-1)).toString(32)+i,t=":"+t+"R"+i,i=ii++,0<i&&(t+="H"+i.toString(32)),t+=":"}else i=dy++,t=":"+t+"r"+i.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},gy={readContext:wt,useCallback:Ed,useContext:wt,useEffect:Na,useImperativeHandle:Cd,useInsertionEffect:Sd,useLayoutEffect:kd,useMemo:Pd,useReducer:Aa,useRef:xd,useState:function(){return Aa(si)},useDebugValue:Ma,useDeferredValue:function(e){var t=St();return Ad(t,Be.memoizedState,e)},useTransition:function(){var e=Aa(si)[0],t=St().memoizedState;return[e,t]},useMutableSource:dd,useSyncExternalStore:fd,useId:jd,unstable_isNewReconciler:!1},yy={readContext:wt,useCallback:Ed,useContext:wt,useEffect:Na,useImperativeHandle:Cd,useInsertionEffect:Sd,useLayoutEffect:kd,useMemo:Pd,useReducer:ja,useRef:xd,useState:function(){return ja(si)},useDebugValue:Ma,useDeferredValue:function(e){var t=St();return Be===null?t.memoizedState=e:Ad(t,Be.memoizedState,e)},useTransition:function(){var e=ja(si)[0],t=St().memoizedState;return[e,t]},useMutableSource:dd,useSyncExternalStore:fd,useId:jd,unstable_isNewReconciler:!1};function Nt(e,t){if(e&&e.defaultProps){t=H({},t),e=e.defaultProps;for(var i in e)t[i]===void 0&&(t[i]=e[i]);return t}return t}function Da(e,t,i,o){t=e.memoizedState,i=i(o,t),i=i==null?t:H({},t,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var vs={isMounted:function(e){return(e=e._reactInternals)?jn(e)===e:!1},enqueueSetState:function(e,t,i){e=e._reactInternals;var o=rt(),l=yn(e),c=Zt(o,l);c.payload=t,i!=null&&(c.callback=i),t=hn(e,c,l),t!==null&&(Ft(t,e,l,o),cs(t,e,l))},enqueueReplaceState:function(e,t,i){e=e._reactInternals;var o=rt(),l=yn(e),c=Zt(o,l);c.tag=1,c.payload=t,i!=null&&(c.callback=i),t=hn(e,c,l),t!==null&&(Ft(t,e,l,o),cs(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var i=rt(),o=yn(e),l=Zt(i,o);l.tag=2,t!=null&&(l.callback=t),t=hn(e,l,o),t!==null&&(Ft(t,e,o,i),cs(t,e,o))}};function Fd(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?!Gr(i,o)||!Gr(l,c):!0}function Ld(e,t,i){var o=!1,l=cn,c=t.contextType;return typeof c=="object"&&c!==null?c=wt(c):(l=at(t)?Mn:Ze.current,o=t.contextTypes,c=(o=o!=null)?or(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 Fa(e,t,i,o){var l=e.stateNode;l.props=i,l.state=e.memoizedState,l.refs={},va(e);var c=t.contextType;typeof c=="object"&&c!==null?l.context=wt(c):(c=at(t)?Mn:Ze.current,l.context=or(e,c)),l.state=e.memoizedState,c=t.getDerivedStateFromProps,typeof c=="function"&&(Da(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 pr(e,t){try{var i="",o=t;do i+=pe(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 vy=typeof WeakMap=="function"?WeakMap:Map;function Id(e,t,i){i=Zt(-1,i),i.tag=3,i.payload={element:null};var o=t.value;return i.callback=function(){Es||(Es=!0,Xa=o),Ra(e,t)},i}function Vd(e,t,i){i=Zt(-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 bd(e,t,i){var o=e.pingCache;if(o===null){o=e.pingCache=new vy;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=Fy.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=Zt(-1,1),t.tag=2,hn(i,t,1))),i.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var xy=R.ReactCurrentOwner,lt=!1;function nt(e,t,i,o){t.child=e===null?sd(t,null,i,o):cr(t,e.child,i,o)}function Od(e,t,i,o,l){i=i.render;var c=t.ref;return fr(t,l),o=Ea(e,t,i,o,c,l),i=Pa(),e!==null&&!lt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Jt(e,t,l)):(je&&i&&la(t),t.flags|=1,nt(e,t,o,l),t.child)}function Bd(e,t,i,o,l){if(e===null){var c=i.type;return typeof c=="function"&&!nl(c)&&c.defaultProps===void 0&&i.compare===null&&i.defaultProps===void 0?(t.tag=15,t.type=c,Ud(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:Gr,i(p,o)&&e.ref===t.ref)return Jt(e,t,l)}return t.flags|=1,e=xn(c,o),e.ref=t.ref,e.return=t,t.child=e}function Ud(e,t,i,o,l){if(e!==null){var c=e.memoizedProps;if(Gr(c,o)&&e.ref===t.ref)if(lt=!1,t.pendingProps=o=c,(e.lanes&l)!==0)(e.flags&131072)!==0&&(lt=!0);else return t.lanes=e.lanes,Jt(e,t,l)}return Ia(e,t,i,o,l)}function Wd(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},ke(gr,gt),gt|=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,ke(gr,gt),gt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=c!==null?c.baseLanes:i,ke(gr,gt),gt|=o}else c!==null?(o=c.baseLanes|i,t.memoizedState=null):o=i,ke(gr,gt),gt|=o;return nt(e,t,l,i),t.child}function Hd(e,t){var i=t.ref;(e===null&&i!==null||e!==null&&e.ref!==i)&&(t.flags|=512,t.flags|=2097152)}function Ia(e,t,i,o,l){var c=at(i)?Mn:Ze.current;return c=or(t,c),fr(t,l),i=Ea(e,t,i,o,c,l),o=Pa(),e!==null&&!lt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Jt(e,t,l)):(je&&o&&la(t),t.flags|=1,nt(e,t,i,l),t.child)}function $d(e,t,i,o,l){if(at(i)){var c=!0;ns(t)}else c=!1;if(fr(t,l),t.stateNode===null)ws(e,t),Ld(t,i,o),Fa(t,i,o,l),o=!0;else if(e===null){var p=t.stateNode,w=t.memoizedProps;p.props=w;var k=p.context,M=i.contextType;typeof M=="object"&&M!==null?M=wt(M):(M=at(i)?Mn:Ze.current,M=or(t,M));var _=i.getDerivedStateFromProps,O=typeof _=="function"||typeof p.getSnapshotBeforeUpdate=="function";O||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(w!==o||k!==M)&&Rd(t,p,o,M),fn=!1;var V=t.memoizedState;p.state=V,ds(t,o,p,l),k=t.memoizedState,w!==o||V!==k||ot.current||fn?(typeof _=="function"&&(Da(t,i,_,o),k=t.memoizedState),(w=fn||Fd(t,i,w,o,V,k,M))?(O||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=M,o=w):(typeof p.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{p=t.stateNode,ad(e,t),w=t.memoizedProps,M=t.type===t.elementType?w:Nt(t.type,w),p.props=M,O=t.pendingProps,V=p.context,k=i.contextType,typeof k=="object"&&k!==null?k=wt(k):(k=at(i)?Mn:Ze.current,k=or(t,k));var $=i.getDerivedStateFromProps;(_=typeof $=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(w!==O||V!==k)&&Rd(t,p,o,k),fn=!1,V=t.memoizedState,p.state=V,ds(t,o,p,l);var K=t.memoizedState;w!==O||V!==K||ot.current||fn?(typeof $=="function"&&(Da(t,i,$,o),K=t.memoizedState),(M=fn||Fd(t,i,M,o,V,K,k)||!1)?(_||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(o,K,k),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(o,K,k)),typeof p.componentDidUpdate=="function"&&(t.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof p.componentDidUpdate!="function"||w===e.memoizedProps&&V===e.memoizedState||(t.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||w===e.memoizedProps&&V===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=K),p.props=o,p.state=K,p.context=k,o=M):(typeof p.componentDidUpdate!="function"||w===e.memoizedProps&&V===e.memoizedState||(t.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||w===e.memoizedProps&&V===e.memoizedState||(t.flags|=1024),o=!1)}return Va(e,t,i,o,c,l)}function Va(e,t,i,o,l,c){Hd(e,t);var p=(t.flags&128)!==0;if(!o&&!p)return l&&Qc(t,i,!1),Jt(e,t,c);o=t.stateNode,xy.current=t;var w=p&&typeof i.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&p?(t.child=cr(t,e.child,null,c),t.child=cr(t,null,w,c)):nt(e,t,w,c),t.memoizedState=o.state,l&&Qc(t,i,!0),t.child}function Gd(e){var t=e.stateNode;t.pendingContext?Yc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Yc(e,t.context,!1),xa(e,t.containerInfo)}function Kd(e,t,i,o,l){return ur(),fa(l),t.flags|=256,nt(e,t,i,o),t.child}var ba={dehydrated:null,treeContext:null,retryLane:0};function _a(e){return{baseLanes:e,cachePool:null,transitions:null}}function Yd(e,t,i){var o=t.pendingProps,l=De.current,c=!1,p=(t.flags&128)!==0,w;if((w=p)||(w=e!==null&&e.memoizedState===null?!1:(l&2)!==0),w?(c=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),ke(De,l&1),e===null)return da(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=Fs(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=ba,e):za(t,p));if(l=e.memoizedState,l!==null&&(w=l.dehydrated,w!==null))return wy(e,t,p,o,w,l,i);if(c){c=o.fallback,p=t.mode,l=e.child,w=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),w!==null?c=xn(w,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=ba,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=Fs({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function xs(e,t,i,o){return o!==null&&fa(o),cr(t,e.child,null,i),e=za(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function wy(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=Fs({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&&cr(t,e.child,null,p),t.child.memoizedState=_a(p),t.memoizedState=ba,c);if((t.mode&1)===0)return xs(e,t,p,null);if(l.data==="$!"){if(o=l.nextSibling&&l.nextSibling.dataset,o)var w=o.dgst;return o=w,c=Error(s(419)),o=La(c,o,void 0),xs(e,t,p,o)}if(w=(p&e.childLanes)!==0,lt||w){if(o=Ge,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),Ft(o,e,l,-1))}return tl(),o=La(Error(s(421))),xs(e,t,p,o)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=Ly.bind(null,e),l._reactRetry=t,null):(e=c.treeContext,mt=ln(l.nextSibling),pt=t,je=!0,jt=null,e!==null&&(vt[xt++]=Xt,vt[xt++]=Qt,vt[xt++]=Dn,Xt=e.id,Qt=e.overflow,Dn=t),t=za(t,o.children),t.flags|=4096,t)}function Xd(e,t,i){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),ga(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 Qd(e,t,i){var o=t.pendingProps,l=o.revealOrder,c=o.tail;if(nt(e,t,o.children,i),o=De.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&&Xd(e,i,t);else if(e.tag===19)Xd(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(ke(De,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 Jt(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 Sy(e,t,i){switch(t.tag){case 3:Gd(t),ur();break;case 5:cd(t);break;case 1:at(t.type)&&ns(t);break;case 4:xa(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,l=t.memoizedProps.value;ke(ls,o._currentValue),o._currentValue=l;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?(ke(De,De.current&1),t.flags|=128,null):(i&t.child.childLanes)!==0?Yd(e,t,i):(ke(De,De.current&1),e=Jt(e,t,i),e!==null?e.sibling:null);ke(De,De.current&1);break;case 19:if(o=(i&t.childLanes)!==0,(e.flags&128)!==0){if(o)return Qd(e,t,i);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),ke(De,De.current),o)break;return null;case 22:case 23:return t.lanes=0,Wd(e,t,i)}return Jt(e,t,i)}var qd,Ba,Zd,Jd;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(){},Zd=function(e,t,i,o){var l=e.memoizedProps;if(l!==o){e=t.stateNode,Rn(zt.current);var c=null;switch(i){case"input":l=go(e,l),o=go(e,o),c=[];break;case"select":l=H({},l,{value:void 0}),o=H({},o,{value:void 0}),c=[];break;case"textarea":l=xo(e,l),o=xo(e,o),c=[];break;default:typeof l.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=Ji)}So(i,o);var p;i=null;for(M in l)if(!o.hasOwnProperty(M)&&l.hasOwnProperty(M)&&l[M]!=null)if(M==="style"){var w=l[M];for(p in w)w.hasOwnProperty(p)&&(i||(i={}),i[p]="")}else M!=="dangerouslySetInnerHTML"&&M!=="children"&&M!=="suppressContentEditableWarning"&&M!=="suppressHydrationWarning"&&M!=="autoFocus"&&(u.hasOwnProperty(M)?c||(c=[]):(c=c||[]).push(M,null));for(M in o){var k=o[M];if(w=l!=null?l[M]:void 0,o.hasOwnProperty(M)&&k!==w&&(k!=null||w!=null))if(M==="style")if(w){for(p in w)!w.hasOwnProperty(p)||k&&k.hasOwnProperty(p)||(i||(i={}),i[p]="");for(p in k)k.hasOwnProperty(p)&&w[p]!==k[p]&&(i||(i={}),i[p]=k[p])}else i||(c||(c=[]),c.push(M,i)),i=k;else M==="dangerouslySetInnerHTML"?(k=k?k.__html:void 0,w=w?w.__html:void 0,k!=null&&w!==k&&(c=c||[]).push(M,k)):M==="children"?typeof k!="string"&&typeof k!="number"||(c=c||[]).push(M,""+k):M!=="suppressContentEditableWarning"&&M!=="suppressHydrationWarning"&&(u.hasOwnProperty(M)?(k!=null&&M==="onScroll"&&Ce("scroll",e),c||w===k||(c=[])):(c=c||[]).push(M,k))}i&&(c=c||[]).push("style",i);var M=c;(t.updateQueue=M)&&(t.flags|=4)}},Jd=function(e,t,i,o){i!==o&&(t.flags|=4)};function ai(e,t){if(!je)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 et(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 ky(e,t,i){var o=t.pendingProps;switch(ua(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return et(t),null;case 1:return at(t.type)&&ts(),et(t),null;case 3:return o=t.stateNode,hr(),Ee(ot),Ee(Ze),ka(),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,jt!==null&&(Za(jt),jt=null))),Ba(e,t),et(t),null;case 5:wa(t);var l=Rn(ni.current);if(i=t.type,e!==null&&t.stateNode!=null)Zd(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 et(t),null}if(e=Rn(zt.current),os(t)){o=t.stateNode,i=t.type;var c=t.memoizedProps;switch(o[_t]=t,o[qr]=c,e=(t.mode&1)!==0,i){case"dialog":Ce("cancel",o),Ce("close",o);break;case"iframe":case"object":case"embed":Ce("load",o);break;case"video":case"audio":for(l=0;l<Yr.length;l++)Ce(Yr[l],o);break;case"source":Ce("error",o);break;case"img":case"image":case"link":Ce("error",o),Ce("load",o);break;case"details":Ce("toggle",o);break;case"input":Lu(o,c),Ce("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!c.multiple},Ce("invalid",o);break;case"textarea":Vu(o,c),Ce("invalid",o)}So(i,c),l=null;for(var p in c)if(c.hasOwnProperty(p)){var w=c[p];p==="children"?typeof w=="string"?o.textContent!==w&&(c.suppressHydrationWarning!==!0&&Zi(o.textContent,w,e),l=["children",w]):typeof w=="number"&&o.textContent!==""+w&&(c.suppressHydrationWarning!==!0&&Zi(o.textContent,w,e),l=["children",""+w]):u.hasOwnProperty(p)&&w!=null&&p==="onScroll"&&Ce("scroll",o)}switch(i){case"input":Ni(o),Iu(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[_t]=t,e[qr]=o,qd(e,t,!1,!1),t.stateNode=e;e:{switch(p=ko(i,o),i){case"dialog":Ce("cancel",e),Ce("close",e),l=o;break;case"iframe":case"object":case"embed":Ce("load",e),l=o;break;case"video":case"audio":for(l=0;l<Yr.length;l++)Ce(Yr[l],e);l=o;break;case"source":Ce("error",e),l=o;break;case"img":case"image":case"link":Ce("error",e),Ce("load",e),l=o;break;case"details":Ce("toggle",e),l=o;break;case"input":Lu(e,o),l=go(e,o),Ce("invalid",e);break;case"option":l=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},l=H({},o,{value:void 0}),Ce("invalid",e);break;case"textarea":Vu(e,o),l=xo(e,o),Ce("invalid",e);break;default:l=o}So(i,l),w=l;for(c in w)if(w.hasOwnProperty(c)){var k=w[c];c==="style"?Uu(e,k):c==="dangerouslySetInnerHTML"?(k=k?k.__html:void 0,k!=null&&Ou(e,k)):c==="children"?typeof k=="string"?(i!=="textarea"||k!=="")&&Nr(e,k):typeof k=="number"&&Nr(e,""+k):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(u.hasOwnProperty(c)?k!=null&&c==="onScroll"&&Ce("scroll",e):k!=null&&P(e,c,k,p))}switch(i){case"input":Ni(e),Iu(e,o,!1);break;case"textarea":Ni(e),_u(e);break;case"option":o.value!=null&&e.setAttribute("value",""+ye(o.value));break;case"select":e.multiple=!!o.multiple,c=o.value,c!=null?Yn(e,!!o.multiple,c,!1):o.defaultValue!=null&&Yn(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 et(t),null;case 6:if(e&&t.stateNode!=null)Jd(e,t,e.memoizedProps,o);else{if(typeof o!="string"&&t.stateNode===null)throw Error(s(166));if(i=Rn(ni.current),Rn(zt.current),os(t)){if(o=t.stateNode,i=t.memoizedProps,o[_t]=t,(c=o.nodeValue!==i)&&(e=pt,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[_t]=t,t.stateNode=o}return et(t),null;case 13:if(Ee(De),o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(je&&mt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)nd(),ur(),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[_t]=t}else ur(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;et(t),c=!1}else jt!==null&&(Za(jt),jt=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||(De.current&1)!==0?Ue===0&&(Ue=3):tl())),t.updateQueue!==null&&(t.flags|=4),et(t),null);case 4:return hr(),Ba(e,t),e===null&&Xr(t.stateNode.containerInfo),et(t),null;case 10:return ma(t.type._context),et(t),null;case 17:return at(t.type)&&ts(),et(t),null;case 19:if(Ee(De),c=t.memoizedState,c===null)return et(t),null;if(o=(t.flags&128)!==0,p=c.rendering,p===null)if(o)ai(c,!1);else{if(Ue!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(p=fs(e),p!==null){for(t.flags|=128,ai(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 ke(De,De.current&1|2),t.child}e=e.sibling}c.tail!==null&&Ve()>yr&&(t.flags|=128,o=!0,ai(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),ai(c,!0),c.tail===null&&c.tailMode==="hidden"&&!p.alternate&&!je)return et(t),null}else 2*Ve()-c.renderingStartTime>yr&&i!==1073741824&&(t.flags|=128,o=!0,ai(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=De.current,ke(De,o?i&1|2:i&1),t):(et(t),null);case 22:case 23:return el(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&(t.mode&1)!==0?(gt&1073741824)!==0&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),null;case 24:return null;case 25:return null}throw Error(s(156,t.tag))}function Ty(e,t){switch(ua(t),t.tag){case 1:return at(t.type)&&ts(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return hr(),Ee(ot),Ee(Ze),ka(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return wa(t),null;case 13:if(Ee(De),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));ur()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ee(De),null;case 4:return hr(),null;case 10:return ma(t.type._context),null;case 22:case 23:return el(),null;case 24:return null;default:return null}}var Ss=!1,tt=!1,Cy=typeof WeakSet=="function"?WeakSet:Set,G=null;function mr(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 Ua(e,t,i){try{i()}catch(o){Re(e,t,o)}}var ef=!1;function Ey(e,t){if(ea=Bi,e=Fc(),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,w=-1,k=-1,M=0,_=0,O=e,V=null;t:for(;;){for(var $;O!==i||l!==0&&O.nodeType!==3||(w=p+l),O!==c||o!==0&&O.nodeType!==3||(k=p+o),O.nodeType===3&&(p+=O.nodeValue.length),($=O.firstChild)!==null;)V=O,O=$;for(;;){if(O===e)break t;if(V===i&&++M===l&&(w=p),V===c&&++_===o&&(k=p),($=O.nextSibling)!==null)break;O=V,V=O.parentNode}O=$}i=w===-1||k===-1?null:{start:w,end:k}}else i=null}i=i||{start:0,end:0}}else i=null;for(ta={focusedElem:e,selectionRange:i},Bi=!1,G=t;G!==null;)if(t=G,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;try{var K=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(K!==null){var Q=K.memoizedProps,be=K.memoizedState,A=t.stateNode,T=A.getSnapshotBeforeUpdate(t.elementType===t.type?Q:Nt(t.type,Q),be);A.__reactInternalSnapshotBeforeUpdate=T}break;case 3:var j=t.stateNode.containerInfo;j.nodeType===1?j.textContent="":j.nodeType===9&&j.documentElement&&j.removeChild(j.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch(U){Re(t,t.return,U)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return K=ef,ef=!1,K}function li(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&&Ua(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 Wa(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 tf(e){var t=e.alternate;t!==null&&(e.alternate=null,tf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[_t],delete t[qr],delete t[sa],delete t[ay],delete t[ly])),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 nf(e){return e.tag===5||e.tag===3||e.tag===4}function rf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||nf(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 Ha(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(Ha(e,t,i),e=e.sibling;e!==null;)Ha(e,t,i),e=e.sibling}function $a(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($a(e,t,i),e=e.sibling;e!==null;)$a(e,t,i),e=e.sibling}var Ye=null,Mt=!1;function pn(e,t,i){for(i=i.child;i!==null;)sf(e,t,i),i=i.sibling}function sf(e,t,i){if(bt&&typeof bt.onCommitFiberUnmount=="function")try{bt.onCommitFiberUnmount(Ii,i)}catch{}switch(i.tag){case 5:tt||mr(i,t);case 6:var o=Ye,l=Mt;Ye=null,pn(e,t,i),Ye=o,Mt=l,Ye!==null&&(Mt?(e=Ye,i=i.stateNode,e.nodeType===8?e.parentNode.removeChild(i):e.removeChild(i)):Ye.removeChild(i.stateNode));break;case 18:Ye!==null&&(Mt?(e=Ye,i=i.stateNode,e.nodeType===8?ia(e.parentNode,i):e.nodeType===1&&ia(e,i),Or(e)):ia(Ye,i.stateNode));break;case 4:o=Ye,l=Mt,Ye=i.stateNode.containerInfo,Mt=!0,pn(e,t,i),Ye=o,Mt=l;break;case 0:case 11:case 14:case 15:if(!tt&&(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)&&Ua(i,t,p),l=l.next}while(l!==o)}pn(e,t,i);break;case 1:if(!tt&&(mr(i,t),o=i.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=i.memoizedProps,o.state=i.memoizedState,o.componentWillUnmount()}catch(w){Re(i,t,w)}pn(e,t,i);break;case 21:pn(e,t,i);break;case 22:i.mode&1?(tt=(o=tt)||i.memoizedState!==null,pn(e,t,i),tt=o):pn(e,t,i);break;default:pn(e,t,i)}}function of(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var i=e.stateNode;i===null&&(i=e.stateNode=new Cy),t.forEach(function(o){var l=Ry.bind(null,e,o);i.has(o)||(i.add(o),o.then(l,l))})}}function Dt(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,w=p;e:for(;w!==null;){switch(w.tag){case 5:Ye=w.stateNode,Mt=!1;break e;case 3:Ye=w.stateNode.containerInfo,Mt=!0;break e;case 4:Ye=w.stateNode.containerInfo,Mt=!0;break e}w=w.return}if(Ye===null)throw Error(s(160));sf(c,p,l),Ye=null,Mt=!1;var k=l.alternate;k!==null&&(k.return=null),l.return=null}catch(M){Re(l,t,M)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)af(t,e),t=t.sibling}function af(e,t){var i=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Dt(t,e),Bt(e),o&4){try{li(3,e,e.return),ks(3,e)}catch(Q){Re(e,e.return,Q)}try{li(5,e,e.return)}catch(Q){Re(e,e.return,Q)}}break;case 1:Dt(t,e),Bt(e),o&512&&i!==null&&mr(i,i.return);break;case 5:if(Dt(t,e),Bt(e),o&512&&i!==null&&mr(i,i.return),e.flags&32){var l=e.stateNode;try{Nr(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,w=e.type,k=e.updateQueue;if(e.updateQueue=null,k!==null)try{w==="input"&&c.type==="radio"&&c.name!=null&&Ru(l,c),ko(w,p);var M=ko(w,c);for(p=0;p<k.length;p+=2){var _=k[p],O=k[p+1];_==="style"?Uu(l,O):_==="dangerouslySetInnerHTML"?Ou(l,O):_==="children"?Nr(l,O):P(l,_,O,M)}switch(w){case"input":yo(l,c);break;case"textarea":bu(l,c);break;case"select":var V=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!c.multiple;var $=c.value;$!=null?Yn(l,!!c.multiple,$,!1):V!==!!c.multiple&&(c.defaultValue!=null?Yn(l,!!c.multiple,c.defaultValue,!0):Yn(l,!!c.multiple,c.multiple?[]:"",!1))}l[qr]=c}catch(Q){Re(e,e.return,Q)}}break;case 6:if(Dt(t,e),Bt(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(Dt(t,e),Bt(e),o&4&&i!==null&&i.memoizedState.isDehydrated)try{Or(t.containerInfo)}catch(Q){Re(e,e.return,Q)}break;case 4:Dt(t,e),Bt(e);break;case 13:Dt(t,e),Bt(e),l=e.child,l.flags&8192&&(c=l.memoizedState!==null,l.stateNode.isHidden=c,!c||l.alternate!==null&&l.alternate.memoizedState!==null||(Ya=Ve())),o&4&&of(e);break;case 22:if(_=i!==null&&i.memoizedState!==null,e.mode&1?(tt=(M=tt)||_,Dt(t,e),tt=M):Dt(t,e),Bt(e),o&8192){if(M=e.memoizedState!==null,(e.stateNode.isHidden=M)&&!_&&(e.mode&1)!==0)for(G=e,_=e.child;_!==null;){for(O=G=_;G!==null;){switch(V=G,$=V.child,V.tag){case 0:case 11:case 14:case 15:li(4,V,V.return);break;case 1:mr(V,V.return);var K=V.stateNode;if(typeof K.componentWillUnmount=="function"){o=V,i=V.return;try{t=o,K.props=t.memoizedProps,K.state=t.memoizedState,K.componentWillUnmount()}catch(Q){Re(o,i,Q)}}break;case 5:mr(V,V.return);break;case 22:if(V.memoizedState!==null){cf(O);continue}}$!==null?($.return=V,G=$):cf(O)}_=_.sibling}e:for(_=null,O=e;;){if(O.tag===5){if(_===null){_=O;try{l=O.stateNode,M?(c=l.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none"):(w=O.stateNode,k=O.memoizedProps.style,p=k!=null&&k.hasOwnProperty("display")?k.display:null,w.style.display=Bu("display",p))}catch(Q){Re(e,e.return,Q)}}}else if(O.tag===6){if(_===null)try{O.stateNode.nodeValue=M?"":O.memoizedProps}catch(Q){Re(e,e.return,Q)}}else if((O.tag!==22&&O.tag!==23||O.memoizedState===null||O===e)&&O.child!==null){O.child.return=O,O=O.child;continue}if(O===e)break e;for(;O.sibling===null;){if(O.return===null||O.return===e)break e;_===O&&(_=null),O=O.return}_===O&&(_=null),O.sibling.return=O.return,O=O.sibling}}break;case 19:Dt(t,e),Bt(e),o&4&&of(e);break;case 21:break;default:Dt(t,e),Bt(e)}}function Bt(e){var t=e.flags;if(t&2){try{e:{for(var i=e.return;i!==null;){if(nf(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&&(Nr(l,""),o.flags&=-33);var c=rf(e);$a(e,c,l);break;case 3:case 4:var p=o.stateNode.containerInfo,w=rf(e);Ha(e,w,p);break;default:throw Error(s(161))}}catch(k){Re(e,e.return,k)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Py(e,t,i){G=e,lf(e)}function lf(e,t,i){for(var o=(e.mode&1)!==0;G!==null;){var l=G,c=l.child;if(l.tag===22&&o){var p=l.memoizedState!==null||Ss;if(!p){var w=l.alternate,k=w!==null&&w.memoizedState!==null||tt;w=Ss;var M=tt;if(Ss=p,(tt=k)&&!M)for(G=l;G!==null;)p=G,k=p.child,p.tag===22&&p.memoizedState!==null?df(l):k!==null?(k.return=p,G=k):df(l);for(;c!==null;)G=c,lf(c),c=c.sibling;G=l,Ss=w,tt=M}uf(e)}else(l.subtreeFlags&8772)!==0&&c!==null?(c.return=l,G=c):uf(e)}}function uf(e){for(;G!==null;){var t=G;if((t.flags&8772)!==0){var i=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:tt||ks(5,t);break;case 1:var o=t.stateNode;if(t.flags&4&&!tt)if(i===null)o.componentDidMount();else{var l=t.elementType===t.type?i.memoizedProps:Nt(t.type,i.memoizedProps);o.componentDidUpdate(l,i.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var c=t.updateQueue;c!==null&&ud(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}ud(t,p,i)}break;case 5:var w=t.stateNode;if(i===null&&t.flags&4){i=w;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 M=t.alternate;if(M!==null){var _=M.memoizedState;if(_!==null){var O=_.dehydrated;O!==null&&Or(O)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(s(163))}tt||t.flags&512&&Wa(t)}catch(V){Re(t,t.return,V)}}if(t===e){G=null;break}if(i=t.sibling,i!==null){i.return=t.return,G=i;break}G=t.return}}function cf(e){for(;G!==null;){var t=G;if(t===e){G=null;break}var i=t.sibling;if(i!==null){i.return=t.return,G=i;break}G=t.return}}function df(e){for(;G!==null;){var t=G;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{Wa(t)}catch(k){Re(t,c,k)}break;case 5:var p=t.return;try{Wa(t)}catch(k){Re(t,p,k)}}}catch(k){Re(t,t.return,k)}if(t===e){G=null;break}var w=t.sibling;if(w!==null){w.return=t.return,G=w;break}G=t.return}}var Ay=Math.ceil,Ts=R.ReactCurrentDispatcher,Ga=R.ReactCurrentOwner,kt=R.ReactCurrentBatchConfig,de=0,Ge=null,ze=null,Xe=0,gt=0,gr=un(0),Ue=0,ui=null,Vn=0,Cs=0,Ka=0,ci=null,ut=null,Ya=0,yr=1/0,en=null,Es=!1,Xa=null,mn=null,Ps=!1,gn=null,As=0,di=0,Qa=null,js=-1,Ns=0;function rt(){return(de&6)!==0?Ve():js!==-1?js:js=Ve()}function yn(e){return(e.mode&1)===0?1:(de&2)!==0&&Xe!==0?Xe&-Xe:cy.transition!==null?(Ns===0&&(Ns=rc()),Ns):(e=ve,e!==0||(e=window.event,e=e===void 0?16:fc(e.type)),e)}function Ft(e,t,i,o){if(50<di)throw di=0,Qa=null,Error(s(185));Ir(e,i,o),((de&2)===0||e!==Ge)&&(e===Ge&&((de&2)===0&&(Cs|=i),Ue===4&&vn(e,Xe)),ct(e,o),i===1&&de===0&&(t.mode&1)===0&&(yr=Ve()+500,rs&&dn()))}function ct(e,t){var i=e.callbackNode;cg(e,t);var o=_i(e,e===Ge?Xe:0);if(o===0)i!==null&&ec(i),e.callbackNode=null,e.callbackPriority=0;else if(t=o&-o,e.callbackPriority!==t){if(i!=null&&ec(i),t===1)e.tag===0?uy(hf.bind(null,e)):qc(hf.bind(null,e)),sy(function(){(de&6)===0&&dn()}),i=null;else{switch(ic(o)){case 1:i=No;break;case 4:i=tc;break;case 16:i=Ri;break;case 536870912:i=nc;break;default:i=Ri}i=Sf(i,ff.bind(null,e))}e.callbackPriority=t,e.callbackNode=i}}function ff(e,t){if(js=-1,Ns=0,(de&6)!==0)throw Error(s(327));var i=e.callbackNode;if(vr()&&e.callbackNode!==i)return null;var o=_i(e,e===Ge?Xe:0);if(o===0)return null;if((o&30)!==0||(o&e.expiredLanes)!==0||t)t=Ms(e,o);else{t=o;var l=de;de|=2;var c=mf();(Ge!==e||Xe!==t)&&(en=null,yr=Ve()+500,_n(e,t));do try{My();break}catch(w){pf(e,w)}while(!0);pa(),Ts.current=c,de=l,ze!==null?t=0:(Ge=null,Xe=0,t=Ue)}if(t!==0){if(t===2&&(l=Mo(e),l!==0&&(o=l,t=qa(e,l))),t===1)throw i=ui,_n(e,0),vn(e,o),ct(e,Ve()),i;if(t===6)vn(e,o);else{if(l=e.current.alternate,(o&30)===0&&!jy(l)&&(t=Ms(e,o),t===2&&(c=Mo(e),c!==0&&(o=c,t=qa(e,c))),t===1))throw i=ui,_n(e,0),vn(e,o),ct(e,Ve()),i;switch(e.finishedWork=l,e.finishedLanes=o,t){case 0:case 1:throw Error(s(345));case 2:zn(e,ut,en);break;case 3:if(vn(e,o),(o&130023424)===o&&(t=Ya+500-Ve(),10<t)){if(_i(e,0)!==0)break;if(l=e.suspendedLanes,(l&o)!==o){rt(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=ra(zn.bind(null,e,ut,en),t);break}zn(e,ut,en);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*Ay(o/1960))-o,10<o){e.timeoutHandle=ra(zn.bind(null,e,ut,en),o);break}zn(e,ut,en);break;case 5:zn(e,ut,en);break;default:throw Error(s(329))}}}return ct(e,Ve()),e.callbackNode===i?ff.bind(null,e):null}function qa(e,t){var i=ci;return e.current.memoizedState.isDehydrated&&(_n(e,t).flags|=256),e=Ms(e,t),e!==2&&(t=ut,ut=i,t!==null&&Za(t)),e}function Za(e){ut===null?ut=e:ut.push.apply(ut,e)}function jy(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 hf(e){if((de&6)!==0)throw Error(s(327));vr();var t=_i(e,0);if((t&1)===0)return ct(e,Ve()),null;var i=Ms(e,t);if(e.tag!==0&&i===2){var o=Mo(e);o!==0&&(t=o,i=qa(e,o))}if(i===1)throw i=ui,_n(e,0),vn(e,t),ct(e,Ve()),i;if(i===6)throw Error(s(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,zn(e,ut,en),ct(e,Ve()),null}function Ja(e,t){var i=de;de|=1;try{return e(t)}finally{de=i,de===0&&(yr=Ve()+500,rs&&dn())}}function bn(e){gn!==null&&gn.tag===0&&(de&6)===0&&vr();var t=de;de|=1;var i=kt.transition,o=ve;try{if(kt.transition=null,ve=1,e)return e()}finally{ve=o,kt.transition=i,de=t,(de&6)===0&&dn()}}function el(){gt=gr.current,Ee(gr)}function _n(e,t){e.finishedWork=null,e.finishedLanes=0;var i=e.timeoutHandle;if(i!==-1&&(e.timeoutHandle=-1,iy(i)),ze!==null)for(i=ze.return;i!==null;){var o=i;switch(ua(o),o.tag){case 1:o=o.type.childContextTypes,o!=null&&ts();break;case 3:hr(),Ee(ot),Ee(Ze),ka();break;case 5:wa(o);break;case 4:hr();break;case 13:Ee(De);break;case 19:Ee(De);break;case 10:ma(o.type._context);break;case 22:case 23:el()}i=i.return}if(Ge=e,ze=e=xn(e.current,null),Xe=gt=t,Ue=0,ui=null,Ka=Cs=Vn=0,ut=ci=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 pf(e,t){do{var i=ze;try{if(pa(),hs.current=ys,ps){for(var o=Fe.memoizedState;o!==null;){var l=o.queue;l!==null&&(l.pending=null),o=o.next}ps=!1}if(In=0,$e=Be=Fe=null,ri=!1,ii=0,Ga.current=null,i===null||i.return===null){Ue=1,ui=t,ze=null;break}e:{var c=e,p=i.return,w=i,k=t;if(t=Xe,w.flags|=32768,k!==null&&typeof k=="object"&&typeof k.then=="function"){var M=k,_=w,O=_.tag;if((_.mode&1)===0&&(O===0||O===11||O===15)){var V=_.alternate;V?(_.updateQueue=V.updateQueue,_.memoizedState=V.memoizedState,_.lanes=V.lanes):(_.updateQueue=null,_.memoizedState=null)}var $=_d(p);if($!==null){$.flags&=-257,zd($,p,w,c,t),$.mode&1&&bd(c,M,t),t=$,k=M;var K=t.updateQueue;if(K===null){var Q=new Set;Q.add(k),t.updateQueue=Q}else K.add(k);break e}else{if((t&1)===0){bd(c,M,t),tl();break e}k=Error(s(426))}}else if(je&&w.mode&1){var be=_d(p);if(be!==null){(be.flags&65536)===0&&(be.flags|=256),zd(be,p,w,c,t),fa(pr(k,w));break e}}c=k=pr(k,w),Ue!==4&&(Ue=2),ci===null?ci=[c]:ci.push(c),c=p;do{switch(c.tag){case 3:c.flags|=65536,t&=-t,c.lanes|=t;var A=Id(c,k,t);ld(c,A);break e;case 1:w=k;var T=c.type,j=c.stateNode;if((c.flags&128)===0&&(typeof T.getDerivedStateFromError=="function"||j!==null&&typeof j.componentDidCatch=="function"&&(mn===null||!mn.has(j)))){c.flags|=65536,t&=-t,c.lanes|=t;var U=Vd(c,w,t);ld(c,U);break e}}c=c.return}while(c!==null)}yf(i)}catch(Z){t=Z,ze===i&&i!==null&&(ze=i=i.return);continue}break}while(!0)}function mf(){var e=Ts.current;return Ts.current=ys,e===null?ys:e}function tl(){(Ue===0||Ue===3||Ue===2)&&(Ue=4),Ge===null||(Vn&268435455)===0&&(Cs&268435455)===0||vn(Ge,Xe)}function Ms(e,t){var i=de;de|=2;var o=mf();(Ge!==e||Xe!==t)&&(en=null,_n(e,t));do try{Ny();break}catch(l){pf(e,l)}while(!0);if(pa(),de=i,Ts.current=o,ze!==null)throw Error(s(261));return Ge=null,Xe=0,Ue}function Ny(){for(;ze!==null;)gf(ze)}function My(){for(;ze!==null&&!tg();)gf(ze)}function gf(e){var t=wf(e.alternate,e,gt);e.memoizedProps=e.pendingProps,t===null?yf(e):ze=t,Ga.current=null}function yf(e){var t=e;do{var i=t.alternate;if(e=t.return,(t.flags&32768)===0){if(i=ky(i,t,gt),i!==null){ze=i;return}}else{if(i=Ty(i,t),i!==null){i.flags&=32767,ze=i;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ue=6,ze=null;return}}if(t=t.sibling,t!==null){ze=t;return}ze=t=e}while(t!==null);Ue===0&&(Ue=5)}function zn(e,t,i){var o=ve,l=kt.transition;try{kt.transition=null,ve=1,Dy(e,t,i,o)}finally{kt.transition=l,ve=o}return null}function Dy(e,t,i,o){do vr();while(gn!==null);if((de&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(dg(e,c),e===Ge&&(ze=Ge=null,Xe=0),(i.subtreeFlags&2064)===0&&(i.flags&2064)===0||Ps||(Ps=!0,Sf(Ri,function(){return vr(),null})),c=(i.flags&15990)!==0,(i.subtreeFlags&15990)!==0||c){c=kt.transition,kt.transition=null;var p=ve;ve=1;var w=de;de|=4,Ga.current=null,Ey(e,i),af(i,e),qg(ta),Bi=!!ea,ta=ea=null,e.current=i,Py(i),ng(),de=w,ve=p,kt.transition=c}else e.current=i;if(Ps&&(Ps=!1,gn=e,As=l),c=e.pendingLanes,c===0&&(mn=null),sg(i.stateNode),ct(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(Es)throw Es=!1,e=Xa,Xa=null,e;return(As&1)!==0&&e.tag!==0&&vr(),c=e.pendingLanes,(c&1)!==0?e===Qa?di++:(di=0,Qa=e):di=0,dn(),null}function vr(){if(gn!==null){var e=ic(As),t=kt.transition,i=ve;try{if(kt.transition=null,ve=16>e?16:e,gn===null)var o=!1;else{if(e=gn,gn=null,As=0,(de&6)!==0)throw Error(s(331));var l=de;for(de|=4,G=e.current;G!==null;){var c=G,p=c.child;if((G.flags&16)!==0){var w=c.deletions;if(w!==null){for(var k=0;k<w.length;k++){var M=w[k];for(G=M;G!==null;){var _=G;switch(_.tag){case 0:case 11:case 15:li(8,_,c)}var O=_.child;if(O!==null)O.return=_,G=O;else for(;G!==null;){_=G;var V=_.sibling,$=_.return;if(tf(_),_===M){G=null;break}if(V!==null){V.return=$,G=V;break}G=$}}}var K=c.alternate;if(K!==null){var Q=K.child;if(Q!==null){K.child=null;do{var be=Q.sibling;Q.sibling=null,Q=be}while(Q!==null)}}G=c}}if((c.subtreeFlags&2064)!==0&&p!==null)p.return=c,G=p;else e:for(;G!==null;){if(c=G,(c.flags&2048)!==0)switch(c.tag){case 0:case 11:case 15:li(9,c,c.return)}var A=c.sibling;if(A!==null){A.return=c.return,G=A;break e}G=c.return}}var T=e.current;for(G=T;G!==null;){p=G;var j=p.child;if((p.subtreeFlags&2064)!==0&&j!==null)j.return=p,G=j;else e:for(p=T;G!==null;){if(w=G,(w.flags&2048)!==0)try{switch(w.tag){case 0:case 11:case 15:ks(9,w)}}catch(Z){Re(w,w.return,Z)}if(w===p){G=null;break e}var U=w.sibling;if(U!==null){U.return=w.return,G=U;break e}G=w.return}}if(de=l,dn(),bt&&typeof bt.onPostCommitFiberRoot=="function")try{bt.onPostCommitFiberRoot(Ii,e)}catch{}o=!0}return o}finally{ve=i,kt.transition=t}}return!1}function vf(e,t,i){t=pr(i,t),t=Id(e,t,1),e=hn(e,t,1),t=rt(),e!==null&&(Ir(e,1,t),ct(e,t))}function Re(e,t,i){if(e.tag===3)vf(e,e,i);else for(;t!==null;){if(t.tag===3){vf(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=pr(i,e),e=Vd(t,e,1),t=hn(t,e,1),e=rt(),t!==null&&(Ir(t,1,e),ct(t,e));break}}t=t.return}}function Fy(e,t,i){var o=e.pingCache;o!==null&&o.delete(t),t=rt(),e.pingedLanes|=e.suspendedLanes&i,Ge===e&&(Xe&i)===i&&(Ue===4||Ue===3&&(Xe&130023424)===Xe&&500>Ve()-Ya?_n(e,0):Ka|=i),ct(e,t)}function xf(e,t){t===0&&((e.mode&1)===0?t=1:(t=bi,bi<<=1,(bi&130023424)===0&&(bi=4194304)));var i=rt();e=qt(e,t),e!==null&&(Ir(e,t,i),ct(e,i))}function Ly(e){var t=e.memoizedState,i=0;t!==null&&(i=t.retryLane),xf(e,i)}function Ry(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),xf(e,i)}var wf;wf=function(e,t,i){if(e!==null)if(e.memoizedProps!==t.pendingProps||ot.current)lt=!0;else{if((e.lanes&i)===0&&(t.flags&128)===0)return lt=!1,Sy(e,t,i);lt=(e.flags&131072)!==0}else lt=!1,je&&(t.flags&1048576)!==0&&Zc(t,ss,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;ws(e,t),e=t.pendingProps;var l=or(t,Ze.current);fr(t,i),l=Ea(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,at(o)?(c=!0,ns(t)):c=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,va(t),l.updater=vs,t.stateNode=l,l._reactInternals=t,Fa(t,o,e,i),t=Va(null,t,o,!0,c,i)):(t.tag=0,je&&c&&la(t),nt(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=Vy(o),e=Nt(o,e),l){case 0:t=Ia(null,t,o,e,i);break e;case 1:t=$d(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,Nt(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:Nt(o,l),Ia(e,t,o,l,i);case 1:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:Nt(o,l),$d(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,ad(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=pr(Error(s(423)),t),t=Kd(e,t,o,i,l);break e}else if(o!==l){l=pr(Error(s(424)),t),t=Kd(e,t,o,i,l);break e}else for(mt=ln(t.stateNode.containerInfo.firstChild),pt=t,je=!0,jt=null,i=sd(t,null,o,i),t.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(ur(),o===l){t=Jt(e,t,i);break e}nt(e,t,o,i)}t=t.child}return t;case 5:return cd(t),e===null&&da(t),o=t.type,l=t.pendingProps,c=e!==null?e.memoizedProps:null,p=l.children,na(o,l)?p=null:c!==null&&na(o,c)&&(t.flags|=32),Hd(e,t),nt(e,t,p,i),t.child;case 6:return e===null&&da(t),null;case 13:return Yd(e,t,i);case 4:return xa(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=cr(t,null,o,i):nt(e,t,o,i),t.child;case 11:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:Nt(o,l),Od(e,t,o,l,i);case 7:return nt(e,t,t.pendingProps,i),t.child;case 8:return nt(e,t,t.pendingProps.children,i),t.child;case 12:return nt(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,ke(ls,o._currentValue),o._currentValue=p,c!==null)if(At(c.value,p)){if(c.children===l.children&&!ot.current){t=Jt(e,t,i);break e}}else for(c=t.child,c!==null&&(c.return=t);c!==null;){var w=c.dependencies;if(w!==null){p=c.child;for(var k=w.firstContext;k!==null;){if(k.context===o){if(c.tag===1){k=Zt(-1,i&-i),k.tag=2;var M=c.updateQueue;if(M!==null){M=M.shared;var _=M.pending;_===null?k.next=k:(k.next=_.next,_.next=k),M.pending=k}}c.lanes|=i,k=c.alternate,k!==null&&(k.lanes|=i),ga(c.return,i,t),w.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,w=p.alternate,w!==null&&(w.lanes|=i),ga(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}nt(e,t,l.children,i),t=t.child}return t;case 9:return l=t.type,o=t.pendingProps.children,fr(t,i),l=wt(l),o=o(l),t.flags|=1,nt(e,t,o,i),t.child;case 14:return o=t.type,l=Nt(o,t.pendingProps),l=Nt(o.type,l),Bd(e,t,o,l,i);case 15:return Ud(e,t,t.type,t.pendingProps,i);case 17:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:Nt(o,l),ws(e,t),t.tag=1,at(o)?(e=!0,ns(t)):e=!1,fr(t,i),Ld(t,o,l),Fa(t,o,l,i),Va(null,t,o,!0,e,i);case 19:return Qd(e,t,i);case 22:return Wd(e,t,i)}throw Error(s(156,t.tag))};function Sf(e,t){return Ju(e,t)}function Iy(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 Tt(e,t,i,o){return new Iy(e,t,i,o)}function nl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Vy(e){if(typeof e=="function")return nl(e)?1:0;if(e!=null){if(e=e.$$typeof,e===xe)return 11;if(e===_e)return 14}return 2}function xn(e,t){var i=e.alternate;return i===null?(i=Tt(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")nl(e)&&(p=1);else if(typeof e=="string")p=5;else e:switch(e){case se:return On(i.children,l,c,t);case J:p=8,l|=8;break;case ie:return e=Tt(12,i,t,l|2),e.elementType=ie,e.lanes=c,e;case Ne:return e=Tt(13,i,t,l),e.elementType=Ne,e.lanes=c,e;case Le:return e=Tt(19,i,t,l),e.elementType=Le,e.lanes=c,e;case Me:return Fs(i,l,c,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case q:p=10;break e;case he:p=9;break e;case xe:p=11;break e;case _e:p=14;break e;case Te:p=16,o=null;break e}throw Error(s(130,e==null?e:typeof e,""))}return t=Tt(p,i,t,l),t.elementType=e,t.type=o,t.lanes=c,t}function On(e,t,i,o){return e=Tt(7,e,o,t),e.lanes=i,e}function Fs(e,t,i,o){return e=Tt(22,e,o,t),e.elementType=Me,e.lanes=i,e.stateNode={isHidden:!1},e}function rl(e,t,i){return e=Tt(6,e,null,t),e.lanes=i,e}function il(e,t,i){return t=Tt(4,e.children!==null?e.children:[],e.key,t),t.lanes=i,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function by(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=Do(0),this.expirationTimes=Do(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Do(0),this.identifierPrefix=o,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function sl(e,t,i,o,l,c,p,w,k){return e=new by(e,t,i,w,k),t===1?(t=1,c===!0&&(t|=8)):t=0,c=Tt(3,null,null,t),e.current=c,c.stateNode=e,c.memoizedState={element:o,isDehydrated:i,cache:null,transitions:null,pendingSuspenseBoundaries:null},va(c),e}function _y(e,t,i){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ee,key:o==null?null:""+o,children:e,containerInfo:t,implementation:i}}function kf(e){if(!e)return cn;e=e._reactInternals;e:{if(jn(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(at(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(at(i))return Xc(e,i,t)}return t}function Tf(e,t,i,o,l,c,p,w,k){return e=sl(i,o,!0,e,l,c,p,w,k),e.context=kf(null),i=e.current,o=rt(),l=yn(i),c=Zt(o,l),c.callback=t??null,hn(i,c,l),e.current.lanes=l,Ir(e,l,o),ct(e,o),e}function Ls(e,t,i,o){var l=t.current,c=rt(),p=yn(l);return i=kf(i),t.context===null?t.context=i:t.pendingContext=i,t=Zt(c,p),t.payload={element:e},o=o===void 0?null:o,o!==null&&(t.callback=o),e=hn(l,t,p),e!==null&&(Ft(e,l,p,c),cs(e,l,p)),p}function Rs(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 Cf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<t?i:t}}function ol(e,t){Cf(e,t),(e=e.alternate)&&Cf(e,t)}function zy(){return null}var Ef=typeof reportError=="function"?reportError:function(e){console.error(e)};function al(e){this._internalRoot=e}Is.prototype.render=al.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));Ls(e,t,null,null)},Is.prototype.unmount=al.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;bn(function(){Ls(null,e,null,null)}),t[Kt]=null}};function Is(e){this._internalRoot=e}Is.prototype.unstable_scheduleHydration=function(e){if(e){var t=ac();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&&cc(e)}};function ll(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Vs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Pf(){}function Oy(e,t,i,o,l){if(l){if(typeof o=="function"){var c=o;o=function(){var M=Rs(p);c.call(M)}}var p=Tf(t,o,e,0,null,!1,!1,"",Pf);return e._reactRootContainer=p,e[Kt]=p.current,Xr(e.nodeType===8?e.parentNode:e),bn(),p}for(;l=e.lastChild;)e.removeChild(l);if(typeof o=="function"){var w=o;o=function(){var M=Rs(k);w.call(M)}}var k=sl(e,0,!1,null,null,!1,!1,"",Pf);return e._reactRootContainer=k,e[Kt]=k.current,Xr(e.nodeType===8?e.parentNode:e),bn(function(){Ls(t,k,i,o)}),k}function bs(e,t,i,o,l){var c=i._reactRootContainer;if(c){var p=c;if(typeof l=="function"){var w=l;l=function(){var k=Rs(p);w.call(k)}}Ls(t,p,e,l)}else p=Oy(i,t,e,l,o);return Rs(p)}sc=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var i=Rr(t.pendingLanes);i!==0&&(Fo(t,i|1),ct(t,Ve()),(de&6)===0&&(yr=Ve()+500,dn()))}break;case 13:bn(function(){var o=qt(e,1);if(o!==null){var l=rt();Ft(o,e,1,l)}}),ol(e,1)}},Lo=function(e){if(e.tag===13){var t=qt(e,134217728);if(t!==null){var i=rt();Ft(t,e,134217728,i)}ol(e,134217728)}},oc=function(e){if(e.tag===13){var t=yn(e),i=qt(e,t);if(i!==null){var o=rt();Ft(i,e,t,o)}ol(e,t)}},ac=function(){return ve},lc=function(e,t){var i=ve;try{return ve=e,t()}finally{ve=i}},Eo=function(e,t,i){switch(t){case"input":if(yo(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));Fu(o),yo(o,l)}}}break;case"textarea":bu(e,i);break;case"select":t=i.value,t!=null&&Yn(e,!!i.multiple,t,!1)}},Gu=Ja,Ku=bn;var By={usingClientEntryPoint:!1,Events:[Zr,ir,es,Hu,$u,Ja]},fi={findFiberByHostInstance:Nn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Uy={bundleType:fi.bundleType,version:fi.version,rendererPackageName:fi.rendererPackageName,rendererConfig:fi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:R.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=qu(e),e===null?null:e.stateNode},findFiberByHostInstance:fi.findFiberByHostInstance||zy,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 _s=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!_s.isDisabled&&_s.supportsFiber)try{Ii=_s.inject(Uy),bt=_s}catch{}}return dt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=By,dt.createPortal=function(e,t){var i=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ll(t))throw Error(s(200));return _y(e,t,null,i)},dt.createRoot=function(e,t){if(!ll(e))throw Error(s(299));var i=!1,o="",l=Ef;return t!=null&&(t.unstable_strictMode===!0&&(i=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=sl(e,1,!1,null,null,i,!1,o,l),e[Kt]=t.current,Xr(e.nodeType===8?e.parentNode:e),new al(t)},dt.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},dt.flushSync=function(e){return bn(e)},dt.hydrate=function(e,t,i){if(!Vs(t))throw Error(s(200));return bs(null,e,t,!0,i)},dt.hydrateRoot=function(e,t,i){if(!ll(e))throw Error(s(405));var o=i!=null&&i.hydratedSources||null,l=!1,c="",p=Ef;if(i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onRecoverableError!==void 0&&(p=i.onRecoverableError)),t=Tf(t,null,e,1,i??null,l,!1,c,p),e[Kt]=t.current,Xr(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 Is(t)},dt.render=function(e,t,i){if(!Vs(t))throw Error(s(200));return bs(null,e,t,!1,i)},dt.unmountComponentAtNode=function(e){if(!Vs(e))throw Error(s(40));return e._reactRootContainer?(bn(function(){bs(null,null,e,!1,function(){e._reactRootContainer=null,e[Kt]=null})}),!0):!1},dt.unstable_batchedUpdates=Ja,dt.unstable_renderSubtreeIntoContainer=function(e,t,i,o){if(!Vs(i))throw Error(s(200));if(e==null||e._reactInternals===void 0)throw Error(s(38));return bs(e,t,i,!1,o)},dt.version="18.3.1-next-f1338f8080-20240426",dt}var Rf;function qy(){if(Rf)return dl.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(),dl.exports=Qy(),dl.exports}var If;function Zy(){if(If)return zs;If=1;var n=qy();return zs.createRoot=n.createRoot,zs.hydrateRoot=n.hydrateRoot,zs}var Jy=Zy();const e0=np(Jy),nu=z.createContext({});function ru(n){const r=z.useRef(null);return r.current===null&&(r.current=n()),r.current}const t0=typeof window<"u",rp=t0?z.useLayoutEffect:z.useEffect,co=z.createContext(null);function iu(n,r){n.indexOf(r)===-1&&n.push(r)}function to(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 En={},ip=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n);function sp(n){return typeof n=="object"&&n!==null}const op=n=>/^0[^.\s]+$/u.test(n);function ap(n){let r;return()=>(r===void 0&&(r=n()),r)}const Et=n=>n,n0=(n,r)=>s=>r(n(s)),Ei=(...n)=>n.reduce(n0),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),()=>to(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 yt=n=>n*1e3,Ct=n=>n/1e3;function lp(n,r){return r?n*(1e3/r):0}const up=(n,r,s)=>(((1-3*s+3*r)*n+(3*s-6*r))*n+3*r)*n,r0=1e-7,i0=12;function s0(n,r,s,a,u){let f,d,h=0;do d=r+(s-r)/2,f=up(d,a,u)-n,f>0?s=d:r=d;while(Math.abs(f)>r0&&++h<i0);return d}function Pi(n,r,s,a){if(n===r&&s===a)return Et;const u=f=>s0(f,0,1,n,s);return f=>f===0||f===1?f:up(u(f),r,a)}const cp=n=>r=>r<=.5?n(2*r)/2:(2-n(2*(1-r)))/2,dp=n=>r=>1-n(1-r),fp=Pi(.33,1.53,.69,.99),au=dp(fp),hp=cp(au),pp=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)),mp=dp(lu),gp=cp(lu),o0=Pi(.42,0,1,1),a0=Pi(0,0,.58,1),yp=Pi(.42,0,.58,1),l0=n=>Array.isArray(n)&&typeof n[0]!="number",vp=n=>Array.isArray(n)&&typeof n[0]=="number",u0={linear:Et,easeIn:o0,easeInOut:yp,easeOut:a0,circIn:lu,circInOut:gp,circOut:mp,backIn:au,backInOut:hp,backOut:fp,anticipate:pp},c0=n=>typeof n=="string",Vf=n=>{if(vp(n)){su(n.length===4);const[r,s,a,u]=n;return Pi(r,s,a,u)}else if(c0(n))return u0[n];return n},Os=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function d0(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)&&(v.schedule(y),n()),y(h)}const v={schedule:(y,x=!1,S=!1)=>{const D=S&&u?s:a;return x&&d.add(y),D.add(y),y},cancel:y=>{a.delete(y),d.delete(y)},process:y=>{if(h=y,u){f=!0;return}u=!0;const x=s;s=a,a=x,s.forEach(g),s.clear(),u=!1,f&&(f=!1,v.process(y))}};return v}const f0=40;function xp(n,r){let s=!1,a=!0;const u={delta:0,timestamp:0,isProcessing:!1},f=()=>s=!0,d=Os.reduce((P,R)=>(P[R]=d0(f),P),{}),{setup:h,read:g,resolveKeyframes:v,preUpdate:y,update:x,preRender:S,render:C,postRender:D}=d,L=()=>{const P=En.useManualTiming,R=P?u.timestamp:performance.now();s=!1,P||(u.delta=a?1e3/60:Math.max(Math.min(R-u.timestamp,f0),1)),u.timestamp=R,u.isProcessing=!0,h.process(u),g.process(u),v.process(u),y.process(u),x.process(u),S.process(u),C.process(u),D.process(u),u.isProcessing=!1,s&&r&&(a=!1,n(L))},N=()=>{s=!0,a=!0,u.isProcessing||n(L)};return{schedule:Os.reduce((P,R)=>{const W=d[R];return P[R]=(ee,se=!1,J=!1)=>(s||N(),W.schedule(ee,se,J)),P},{}),cancel:P=>{for(let R=0;R<Os.length;R++)d[Os[R]].cancel(P)},state:u,steps:d}}const{schedule:we,cancel:Pn,state:Qe,steps:pl}=xp(typeof requestAnimationFrame<"u"?requestAnimationFrame:Et,!0);let Ks;function h0(){Ks=void 0}const it={now:()=>(Ks===void 0&&it.set(Qe.isProcessing||En.useManualTiming?Qe.timestamp:performance.now()),Ks),set:n=>{Ks=n,queueMicrotask(h0)}},wp=n=>r=>typeof r=="string"&&r.startsWith(n),Sp=wp("--"),p0=wp("var(--"),uu=n=>p0(n)?m0.test(n.split("/*")[0].trim()):!1,m0=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function bf(n){return typeof n!="string"?!1:n.split("/*")[0].includes("var(--")}const Er={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},ki={...Er,transform:n=>Gt(0,1,n)},Bs={...Er,default:1},yi=n=>Math.round(n*1e5)/1e5,cu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function g0(n){return n==null}const y0=/^(?:#[\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"&&y0.test(s)&&s.startsWith(n)||r&&!g0(s)&&Object.prototype.hasOwnProperty.call(s,r)),kp=(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}},v0=n=>Gt(0,255,n),ml={...Er,transform:n=>Math.round(v0(n))},Hn={test:du("rgb","red"),parse:kp("red","green","blue"),transform:({red:n,green:r,blue:s,alpha:a=1})=>"rgba("+ml.transform(n)+", "+ml.transform(r)+", "+ml.transform(s)+", "+yi(ki.transform(a))+")"};function x0(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 Ml={test:du("#"),parse:x0,transform:Hn.transform},Ai=n=>({test:r=>typeof r=="string"&&r.endsWith(n)&&r.split(" ").length===1,parse:parseFloat,transform:r=>`${r}${n}`}),Sn=Ai("deg"),$t=Ai("%"),Y=Ai("px"),w0=Ai("vh"),S0=Ai("vw"),_f={...$t,parse:n=>$t.parse(n)/100,transform:n=>$t.transform(n*100)},wr={test:du("hsl","hue"),parse:kp("hue","saturation","lightness"),transform:({hue:n,saturation:r,lightness:s,alpha:a=1})=>"hsla("+Math.round(n)+", "+$t.transform(yi(r))+", "+$t.transform(yi(s))+", "+yi(ki.transform(a))+")"},Oe={test:n=>Hn.test(n)||Ml.test(n)||wr.test(n),parse:n=>Hn.test(n)?Hn.parse(n):wr.test(n)?wr.parse(n):Ml.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?Hn.transform(n):wr.transform(n),getAnimatableNone:n=>{const r=Oe.parse(n);return r.alpha=0,Oe.transform(r)}},k0=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function T0(n){var r,s;return isNaN(n)&&typeof n=="string"&&(((r=n.match(cu))==null?void 0:r.length)||0)+(((s=n.match(k0))==null?void 0:s.length)||0)>0}const Tp="number",Cp="color",C0="var",E0="var(",zf="${}",P0=/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 Tr(n){const r=n.toString(),s=[],a={color:[],number:[],var:[]},u=[];let f=0;const h=r.replace(P0,g=>(Oe.test(g)?(a.color.push(f),u.push(Cp),s.push(Oe.parse(g))):g.startsWith(E0)?(a.var.push(f),u.push(C0),s.push(g)):(a.number.push(f),u.push(Tp),s.push(parseFloat(g))),++f,zf)).split(zf);return{values:s,split:h,indexes:a,types:u}}function A0(n){return Tr(n).values}function Ep({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===Tp?u+=yi(a[f]):d===Cp?u+=Oe.transform(a[f]):u+=a[f]}return u}}function j0(n){return Ep(Tr(n))}const N0=n=>typeof n=="number"?0:Oe.test(n)?Oe.getAnimatableNone(n):n,M0=(n,r)=>typeof n=="number"?r!=null&&r.trim().endsWith("/")?n:0:N0(n);function D0(n){const r=Tr(n);return Ep(r)(r.values.map((a,u)=>M0(a,r.split[u])))}const Vt={test:T0,parse:A0,createTransformer:j0,getAnimatableNone:D0};function gl(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 F0({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=gl(g,h,n+1/3),f=gl(g,h,n),d=gl(g,h,n-1/3)}return{red:Math.round(u*255),green:Math.round(f*255),blue:Math.round(d*255),alpha:a}}function no(n,r){return s=>s>0?r:n}const Pe=(n,r,s)=>n+(r-n)*s,yl=(n,r,s)=>{const a=n*n,u=s*(r*r-a)+a;return u<0?0:Math.sqrt(u)},L0=[Ml,Hn,wr],R0=n=>L0.find(r=>r.test(n));function Of(n){const r=R0(n);if(!r)return!1;let s=r.parse(n);return r===wr&&(s=F0(s)),s}const Bf=(n,r)=>{const s=Of(n),a=Of(r);if(!s||!a)return no(n,r);const u={...s};return f=>(u.red=yl(s.red,a.red,f),u.green=yl(s.green,a.green,f),u.blue=yl(s.blue,a.blue,f),u.alpha=Pe(s.alpha,a.alpha,f),Hn.transform(u))},Dl=new Set(["none","hidden"]);function I0(n,r){return Dl.has(n)?s=>s<=0?n:r:s=>s>=1?r:n}function V0(n,r){return s=>Pe(n,r,s)}function fu(n){return typeof n=="number"?V0:typeof n=="string"?uu(n)?no:Oe.test(n)?Bf:z0:Array.isArray(n)?Pp:typeof n=="object"?Oe.test(n)?Bf:b0:no}function Pp(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 b0(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 _0(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 z0=(n,r)=>{const s=Vt.createTransformer(r),a=Tr(n),u=Tr(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?Dl.has(n)&&!u.values.length||Dl.has(r)&&!a.values.length?I0(n,r):Ei(Pp(_0(a,u),u.values),s):no(n,r)};function Ap(n,r,s){return typeof n=="number"&&typeof r=="number"&&typeof s=="number"?Pe(n,r,s):fu(n)(n,r)}const O0=n=>{const r=({timestamp:s})=>n(s);return{start:(s=!0)=>we.update(r,s),stop:()=>Pn(r),now:()=>Qe.isProcessing?Qe.timestamp:it.now()}},jp=(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)})`},ro=2e4;function hu(n){let r=0;const s=50;let a=n.next(r);for(;!a.done&&r<ro;)r+=s,a=n.next(r);return r>=ro?1/0:r}function B0(n,r=100,s){const a=s({...n,keyframes:[0,r]}),u=Math.min(hu(a),ro);return{type:"keyframes",ease:f=>a.next(u*f).value/r,duration:Ct(u)}}const Ie={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 Fl(n,r){return n*Math.sqrt(1-r*r)}const U0=12;function W0(n,r,s){let a=s;for(let u=1;u<U0;u++)a=a-n(a)/r(a);return a}const vl=.001;function H0({duration:n=Ie.duration,bounce:r=Ie.bounce,velocity:s=Ie.velocity,mass:a=Ie.mass}){let u,f,d=1-r;d=Gt(Ie.minDamping,Ie.maxDamping,d),n=Gt(Ie.minDuration,Ie.maxDuration,Ct(n)),d<1?(u=v=>{const y=v*d,x=y*n,S=y-s,C=Fl(v,d),D=Math.exp(-x);return vl-S/C*D},f=v=>{const x=v*d*n,S=x*s+s,C=Math.pow(d,2)*Math.pow(v,2)*n,D=Math.exp(-x),L=Fl(Math.pow(v,2),d);return(-u(v)+vl>0?-1:1)*((S-C)*D)/L}):(u=v=>{const y=Math.exp(-v*n),x=(v-s)*n+1;return-vl+y*x},f=v=>{const y=Math.exp(-v*n),x=(s-v)*(n*n);return y*x});const h=5/n,g=W0(u,f,h);if(n=yt(n),isNaN(g))return{stiffness:Ie.stiffness,damping:Ie.damping,duration:n};{const v=Math.pow(g,2)*a;return{stiffness:v,damping:d*2*Math.sqrt(a*v),duration:n}}}const $0=["duration","bounce"],G0=["stiffness","damping","mass"];function Uf(n,r){return r.some(s=>n[s]!==void 0)}function K0(n){let r={velocity:Ie.velocity,stiffness:Ie.stiffness,damping:Ie.damping,mass:Ie.mass,isResolvedFromDuration:!1,...n};if(!Uf(n,G0)&&Uf(n,$0))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:Ie.mass,stiffness:u,damping:f}}else{const s=H0({...n,velocity:0});r={...r,...s,mass:Ie.mass},r.isResolvedFromDuration=!0}return r}function io(n=Ie.visualDuration,r=Ie.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:v,mass:y,duration:x,velocity:S,isResolvedFromDuration:C}=K0({...s,velocity:-Ct(s.velocity||0)}),D=S||0,L=v/(2*Math.sqrt(g*y)),N=d-f,b=Ct(Math.sqrt(g/y)),F=Math.abs(N)<5;a||(a=F?Ie.restSpeed.granular:Ie.restSpeed.default),u||(u=F?Ie.restDelta.granular:Ie.restDelta.default);let P,R,W,ee,se,J;if(L<1)W=Fl(b,L),ee=(D+L*b*N)/W,P=q=>{const he=Math.exp(-L*b*q);return d-he*(ee*Math.sin(W*q)+N*Math.cos(W*q))},se=L*b*ee+N*W,J=L*b*N-ee*W,R=q=>Math.exp(-L*b*q)*(se*Math.sin(W*q)+J*Math.cos(W*q));else if(L===1){P=he=>d-Math.exp(-b*he)*(N+(D+b*N)*he);const q=D+b*N;R=he=>Math.exp(-b*he)*(b*q*he-D)}else{const q=b*Math.sqrt(L*L-1);P=Le=>{const _e=Math.exp(-L*b*Le),Te=Math.min(q*Le,300);return d-_e*((D+L*b*N)*Math.sinh(Te)+q*N*Math.cosh(Te))/q};const he=(D+L*b*N)/q,xe=L*b*he-N*q,Ne=L*b*N-he*q;R=Le=>{const _e=Math.exp(-L*b*Le),Te=Math.min(q*Le,300);return _e*(xe*Math.sinh(Te)+Ne*Math.cosh(Te))}}const ie={calculatedDuration:C&&x||null,velocity:q=>yt(R(q)),next:q=>{if(!C&&L<1){const xe=Math.exp(-L*b*q),Ne=Math.sin(W*q),Le=Math.cos(W*q),_e=d-xe*(ee*Ne+N*Le),Te=yt(xe*(se*Ne+J*Le));return h.done=Math.abs(Te)<=a&&Math.abs(d-_e)<=u,h.value=h.done?d:_e,h}const he=P(q);if(C)h.done=q>=x;else{const xe=yt(R(q));h.done=Math.abs(xe)<=a&&Math.abs(d-he)<=u}return h.value=h.done?d:he,h},toString:()=>{const q=Math.min(hu(ie),ro),he=jp(xe=>ie.next(q*xe).value,q,30);return q+"ms "+he},toTransition:()=>{}};return ie}io.applyToOptions=n=>{const r=B0(n,100,io);return n.ease=r.ease,n.duration=yt(r.duration),n.type="keyframes",n};const Y0=5;function Np(n,r,s){const a=Math.max(r-Y0,0);return lp(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:v=.5,restSpeed:y}){const x=n[0],S={done:!1,value:x},C=J=>h!==void 0&&J<h||g!==void 0&&J>g,D=J=>h===void 0?g:g===void 0||Math.abs(h-J)<Math.abs(g-J)?h:g;let L=s*r;const N=x+L,b=d===void 0?N:d(N);b!==N&&(L=b-x);const F=J=>-L*Math.exp(-J/a),P=J=>b+F(J),R=J=>{const ie=F(J),q=P(J);S.done=Math.abs(ie)<=v,S.value=S.done?b:q};let W,ee;const se=J=>{C(S.value)&&(W=J,ee=io({keyframes:[S.value,D(S.value)],velocity:Np(P,J,S.value),damping:u,stiffness:f,restDelta:v,restSpeed:y}))};return se(0),{calculatedDuration:null,next:J=>{let ie=!1;return!ee&&W===void 0&&(ie=!0,R(J),se(J)),W!==void 0&&J>=W?ee.next(J-W):(!ie&&R(J),S)}}}function X0(n,r,s){const a=[],u=s||En.mix||Ap,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]||Et:r;h=Ei(g,h)}a.push(h)}return a}function Q0(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=X0(r,a,u),g=h.length,v=y=>{if(d&&y<n[0])return r[0];let x=0;if(g>1)for(;x<n.length-2&&!(y<n[x+1]);x++);const S=Si(n[x],n[x+1],y);return h[x](S)};return s?y=>v(Gt(n[0],n[f-1],y)):v}function q0(n,r){const s=n[n.length-1];for(let a=1;a<=r;a++){const u=Si(0,r,a);n.push(Pe(s,1,u))}}function Z0(n){const r=[0];return q0(r,n.length-1),r}function J0(n,r){return n.map(s=>s*r)}function ev(n,r){return n.map(()=>r||yp).splice(0,n.length-1)}function vi({duration:n=300,keyframes:r,times:s,ease:a="easeInOut"}){const u=l0(a)?a.map(Vf):Vf(a),f={done:!1,value:r[0]},d=J0(s&&s.length===r.length?s:Z0(r),n),h=Q0(d,r,{ease:Array.isArray(u)?u:ev(r,u)});return{calculatedDuration:n,next:g=>(f.value=h(g),f.done=g>=n,f)}}const tv=n=>n!==null;function fo(n,{repeat:r,repeatType:s="loop"},a,u=1){const f=n.filter(tv),h=u<0||r&&s!=="loop"&&r%2===1?0:f.length-1;return!h||a===void 0?f[h]:a}const nv={decay:Ll,inertia:Ll,tween:vi,keyframes:vi,spring:io};function Mp(n){typeof n.type=="string"&&(n.type=nv[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 rv=n=>n/100;class so 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!==it.now()&&this.tick(it.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;Mp(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=Ei(rv,Ap(h[0],h[1])),h=[0,100]);const v=g({...r,keyframes:h});f==="mirror"&&(this.mirroredGenerator=g({...r,keyframes:[...h].reverse(),velocity:-d})),v.calculatedDuration===null&&(v.calculatedDuration=hu(v));const{calculatedDuration:y}=v;this.calculatedDuration=y,this.resolvedDuration=y+u,this.totalDuration=this.resolvedDuration*(a+1)-u,this.generator=v}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:v=0,keyframes:y,repeat:x,repeatType:S,repeatDelay:C,type:D,onUpdate:L,finalKeyframe:N}=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 b=this.currentTime-v*(this.playbackSpeed>=0?1:-1),F=this.playbackSpeed>=0?b<0:b>u;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let P=this.currentTime,R=a;if(x){const J=Math.min(this.currentTime,u)/h;let ie=Math.floor(J),q=J%1;!q&&J>=1&&(q=1),q===1&&ie--,ie=Math.min(ie,x+1),!!(ie%2)&&(S==="reverse"?(q=1-q,C&&(q-=C/h)):S==="mirror"&&(R=d)),P=Gt(0,1,q)*h}let W;F?(this.delayState.value=y[0],W=this.delayState):W=R.next(P),f&&!F&&(W.value=f(W.value));let{done:ee}=W;!F&&g!==null&&(ee=this.playbackSpeed>=0?this.currentTime>=u:this.currentTime<=0);const se=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&ee);return se&&D!==Ll&&(W.value=fo(y,this.options,N,this.speed)),L&&L(W.value),se&&this.finish(),W}then(r,s){return this.finished.then(r,s)}get duration(){return Ct(this.calculatedDuration)}get iterationDuration(){const{delay:r=0}=this.options||{};return this.duration+Ct(r)}get time(){return Ct(this.currentTime)}set time(r){r=yt(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 Np(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(it.now()),this.playbackSpeed=r,s&&this.driver&&(this.time=Ct(this.currentTime))}play(){var u,f;if(this.isStopped)return;const{driver:r=O0,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(it.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 iv(n){for(let r=1;r<n.length;r++)n[r]??(n[r]=n[r-1])}const $n=n=>n*180/Math.PI,Rl=n=>{const r=$n(Math.atan2(n[1],n[0]));return Il(r)},sv={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=>$n(Math.atan(n[1])),skewY:n=>$n(Math.atan(n[2])),skew:n=>(Math.abs(n[1])+Math.abs(n[2]))/2},Il=n=>(n=n%360,n<0&&(n+=360),n),Wf=Rl,Hf=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),$f=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),ov={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Hf,scaleY:$f,scale:n=>(Hf(n)+$f(n))/2,rotateX:n=>Il($n(Math.atan2(n[6],n[5]))),rotateY:n=>Il($n(Math.atan2(-n[2],n[0]))),rotateZ:Wf,rotate:Wf,skewX:n=>$n(Math.atan(n[4])),skewY:n=>$n(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 bl(n,r){if(!n||n==="none")return Vl(r);const s=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let a,u;if(s)a=ov,u=s;else{const h=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);a=sv,u=h}if(!u)return Vl(r);const f=a[r],d=u[1].split(",").map(lv);return typeof f=="function"?f(d):d[f]}const av=(n,r)=>{const{transform:s="none"}=getComputedStyle(n);return bl(s,r)};function lv(n){return parseFloat(n.trim())}const Pr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ar=new Set(Pr),Gf=n=>n===Er||n===Y,uv=new Set(["x","y","z"]),cv=Pr.filter(n=>!uv.has(n));function dv(n){const r=[];return cv.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})=>bl(r,"x"),y:(n,{transform:r})=>bl(r,"y")};Tn.translateX=Tn.x;Tn.translateY=Tn.y;const Gn=new Set;let _l=!1,zl=!1,Ol=!1;function Dp(){if(zl){const n=Array.from(Gn).filter(a=>a.needsMeasurement),r=new Set(n.map(a=>a.element)),s=new Map;r.forEach(a=>{const u=dv(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,Gn.forEach(n=>n.complete(Ol)),Gn.clear()}function Fp(){Gn.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(zl=!0)})}function fv(){Ol=!0,Fp(),Dp(),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?(Gn.add(this),_l||(_l=!0,we.read(Fp),we.resolveKeyframes(Dp))):(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])}iv(r)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(r=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,r),Gn.delete(this)}cancel(){this.state==="scheduled"&&(Gn.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const hv=n=>n.startsWith("--");function Lp(n,r,s){hv(r)?n.style.setProperty(r,s):n.style[r]=s}const pv={};function Rp(n,r){const s=ap(n);return()=>pv[r]??s()}const mv=Rp(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Ip=Rp(()=>{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 Vp(n,r){if(n)return typeof n=="function"?Ip()?jp(n,r):"ease-out":vp(n)?gi(n):Array.isArray(n)?n.map(s=>Vp(s,r)||Kf.easeOut):Kf[n]}function gv(n,r,s,{delay:a=0,duration:u=300,repeat:f=0,repeatType:d="loop",ease:h="easeOut",times:g}={},v=void 0){const y={[r]:s};g&&(y.offset=g);const x=Vp(h,u);Array.isArray(x)&&(y.easing=x);const S={delay:a,duration:u,easing:Array.isArray(x)?"linear":x,fill:"both",iterations:f+1,direction:d==="reverse"?"alternate":"normal"};return v&&(S.pseudoElement=v),n.animate(y,S)}function bp(n){return typeof n=="function"&&"applyToOptions"in n}function yv({type:n,...r}){return bp(n)&&Ip()?n.applyToOptions(r):(r.duration??(r.duration=300),r.ease??(r.ease="easeOut"),r)}class _p 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 v=yv(r);this.animation=gv(s,a,u,v,f),v.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!f){const y=fo(u,this.options,h,this.speed);this.updateMotionValue&&this.updateMotionValue(y),Lp(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 Ct(Number(r))}get iterationDuration(){const{delay:r=0}=this.options||{};return this.duration+Ct(r)}get time(){return Ct(Number(this.animation.currentTime)||0)}set time(r){const s=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=yt(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&&mv()?(this.animation.timeline=r,s&&(this.animation.rangeStart=s),a&&(this.animation.rangeEnd=a),Et):u(this)}}const zp={anticipate:pp,backInOut:hp,circInOut:gp};function vv(n){return n in zp}function xv(n){typeof n.ease=="string"&&vv(n.ease)&&(n.ease=zp[n.ease])}const xl=10;class wv extends _p{constructor(r){xv(r),Mp(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 so({...d,autoplay:!1}),g=Math.max(xl,it.now()-this.startTime),v=Gt(0,xl,g-xl),y=h.sample(g).value,{name:x}=this.options;f&&x&&Lp(f,x,y),s.setWithVelocity(h.sample(Math.max(0,g-v)).value,y,v),h.stop()}}const Yf=(n,r)=>r==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(Vt.test(n)||n==="0")&&!n.startsWith("url("));function Sv(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 kv(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=Yf(u,r),h=Yf(f,r);return!d||!h?!1:Sv(n)||(s==="spring"||bp(s))&&a}function Bl(n){n.duration=0,n.type="keyframes"}const Op=new Set(["opacity","clipPath","filter","transform"]),Tv=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Cv(n){for(let r=0;r<n.length;r++)if(typeof n[r]=="string"&&Tv.test(n[r]))return!0;return!1}const Ev=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Pv=ap(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Av(n){var x;const{motionValue:r,name:s,repeatDelay:a,repeatType:u,damping:f,type:d,keyframes:h}=n;if(!(((x=r==null?void 0:r.owner)==null?void 0:x.current)instanceof HTMLElement))return!1;const{onUpdate:v,transformTemplate:y}=r.owner.getProps();return Pv()&&s&&(Op.has(s)||Ev.has(s)&&Cv(h))&&(s!=="transform"||!y)&&!v&&!a&&u!=="mirror"&&f!==0&&d!=="inertia"}const jv=40;class Nv 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:v,element:y,...x}){var D;super(),this.stop=()=>{var L,N;this._animation&&(this._animation.stop(),(L=this.stopTimeline)==null||L.call(this)),(N=this.keyframeResolver)==null||N.cancel()},this.createdAt=it.now();const S={autoplay:r,delay:s,type:a,repeat:u,repeatDelay:f,repeatType:d,name:g,motionValue:v,element:y,...x},C=(y==null?void 0:y.KeyframeResolver)||mu;this.keyframeResolver=new C(h,(L,N,b)=>this.onKeyframesResolved(L,N,S,!b),g,v,y),(D=this.keyframeResolver)==null||D.scheduleResolve()}onKeyframesResolved(r,s,a,u){var b,F;this.keyframeResolver=void 0;const{name:f,type:d,velocity:h,delay:g,isHandoff:v,onUpdate:y}=a;this.resolvedAt=it.now();let x=!0;kv(r,f,d,h)||(x=!1,(En.instantAnimations||!g)&&(y==null||y(fo(r,a,s))),r[0]=r[r.length-1],Bl(a),a.repeat=0);const C={startTime:u?this.resolvedAt?this.resolvedAt-this.createdAt>jv?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...a,keyframes:r},D=x&&!v&&Av(C),L=(F=(b=C.motionValue)==null?void 0:b.owner)==null?void 0:F.current;let N;if(D)try{N=new wv({...C,element:L})}catch{N=new so(C)}else N=new so(C);N.finished.then(()=>{this.notifyFinished()}).catch(Et),this.pendingTimeline&&(this.stopTimeline=N.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=N}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(),fv()),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 Bp(n,r,s,a=0,u=1){const f=Array.from(n).sort((v,y)=>v.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 Mv=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Dv(n){const r=Mv.exec(n);if(!r)return[,];const[,s,a,u]=r;return[`--${s??a}`,u]}function Up(n,r,s=1){const[a,u]=Dv(n);if(!a)return;const f=window.getComputedStyle(r).getPropertyValue(a);if(f){const d=f.trim();return ip(d)?parseFloat(d):d}return uu(u)?Up(u,r,s+1):u}const Fv={type:"spring",stiffness:500,damping:25,restSpeed:10},Lv=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),Rv={type:"keyframes",duration:.8},Iv={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Vv=(n,{keyframes:r})=>r.length>2?Rv:Ar.has(n)?n.startsWith("scale")?Lv(r[1]):Fv:Iv;function Wp(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?Wp(s,n):s}const bv=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function _v(n){for(const r in n)if(!bv.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:v=0}=a;v=v-yt(g);const y={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:r.getVelocity(),...h,delay:-v,onUpdate:S=>{r.set(S),h.onUpdate&&h.onUpdate(S)},onComplete:()=>{d(),h.onComplete&&h.onComplete()},name:n,motionValue:r,element:f?void 0:u};_v(h)||Object.assign(y,Vv(n,y)),y.duration&&(y.duration=yt(y.duration)),y.repeatDelay&&(y.repeatDelay=yt(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let x=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(Bl(y),y.delay===0&&(x=!0)),(En.instantAnimations||En.skipAnimations||u!=null&&u.shouldSkipAnimations)&&(x=!0,Bl(y),y.delay=0),y.allowFlatten=!h.type&&!h.ease,x&&!f&&r.get()!==void 0){const S=fo(y.keyframes,h);if(S!==void 0){we.update(()=>{y.onUpdate(S),y.onComplete()});return}}return h.isSync?new so(y):new Nv(y)};function Xf(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]=Xf(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]=Xf(a);r=r(s!==void 0?s:n.custom,u,f)}return r}function Kn(n,r,s){const a=n.getProps();return vu(a,r,s!==void 0?s:a.custom,n)}const Hp=new Set(["width","height","top","left","right","bottom",...Pr]),Qf=30,zv=n=>!isNaN(parseFloat(n));class Ov{constructor(r,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=a=>{var f;const u=it.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=it.now(),this.canTrackVelocity===null&&r!==void 0&&(this.canTrackVelocity=zv(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(),we.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=it.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||r-this.updatedAt>Qf)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,Qf);return lp(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 Cr(n,r){return new Ov(n,r)}const Ul=n=>Array.isArray(n);function Bv(n,r,s){n.hasValue(r)?n.getValue(r).set(s):n.addValue(r,Cr(s))}function Uv(n){return Ul(n)?n[n.length-1]||0:n}function Wv(n,r){const s=Kn(n,r);let{transitionEnd:a={},transition:u={},...f}=s||{};f={...f,...a};for(const d in f){const h=Uv(f[d]);Bv(n,d,h)}}const qe=n=>!!(n&&n.getVelocity);function Hv(n){return!!(qe(n)&&n.add)}function Wl(n,r){const s=n.getValue("willChange");if(Hv(s))return s.add(r);if(!s&&En.WillChange){const a=new En.WillChange("auto");n.addValue("willChange",a),a.add(r)}}function xu(n){return n.replace(/([A-Z])/g,r=>`-${r.toLowerCase()}`)}const $v="framerAppearId",$p="data-"+xu($v);function Gp(n){return n.props[$p]}function Gv({protectedKeys:n,needsAnimating:r},s){const a=n.hasOwnProperty(s)&&r[s]!==!0;return r[s]=!1,a}function Kp(n,r,{delay:s=0,transitionOverride:a,type:u}={}){let{transition:f,transitionEnd:d,...h}=r;const g=n.getDefaultTransition();f=f?Wp(f,g):g;const v=f==null?void 0:f.reduceMotion;a&&(f=a);const y=[],x=u&&n.animationState&&n.animationState.getState()[u];for(const S in h){const C=n.getValue(S,n.latestValues[S]??null),D=h[S];if(D===void 0||x&&Gv(x,S))continue;const L={delay:s,...gu(f||{},S)},N=C.get();if(N!==void 0&&!C.isAnimating()&&!Array.isArray(D)&&D===N&&!L.velocity){we.update(()=>C.set(D));continue}let b=!1;if(window.MotionHandoffAnimation){const R=Gp(n);if(R){const W=window.MotionHandoffAnimation(R,S,we);W!==null&&(L.startTime=W,b=!0)}}Wl(n,S);const F=v??n.shouldReduceMotion;C.start(yu(S,C,D,F&&Hp.has(S)?{type:!1}:L,n,b));const P=C.animation;P&&y.push(P)}if(d){const S=()=>we.update(()=>{d&&Wv(n,d)});y.length?Promise.all(y).then(S):S()}return y}function Hl(n,r,s={}){var g;const a=Kn(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(Kp(n,a,s)):()=>Promise.resolve(),d=n.variantChildren&&n.variantChildren.size?(v=0)=>{const{delayChildren:y=0,staggerChildren:x,staggerDirection:S}=u;return Kv(n,r,v,y,x,S,s)}:()=>Promise.resolve(),{when:h}=u;if(h){const[v,y]=h==="beforeChildren"?[f,d]:[d,f];return v().then(()=>y())}else return Promise.all([f(),d(s.delay)])}function Kv(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(Hl(g,r,{...d,delay:s+(typeof a=="function"?0:a)+Bp(n.variantChildren,g,a,u,f)}).then(()=>g.notify("AnimationComplete",r)));return Promise.all(h)}function Yv(n,r,s={}){n.notify("AnimationStart",r);let a;if(Array.isArray(r)){const u=r.map(f=>Hl(n,f,s));a=Promise.all(u)}else if(typeof r=="string")a=Hl(n,r,s);else{const u=typeof r=="function"?Kn(n,r,s.custom):r;a=Promise.all(Kp(n,u,s))}return a.then(()=>{n.notify("AnimationComplete",r)})}const Xv={test:n=>n==="auto",parse:n=>n},Yp=n=>r=>r.test(n),Xp=[Er,Y,$t,Sn,S0,w0,Xv],qf=n=>Xp.find(Yp(n));function Qv(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||op(n):!0}const qv=new Set(["brightness","contrast","saturate","opacity"]);function Zv(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=qv.has(r)?1:0;return a!==s&&(f*=100),r+"("+f+u+")"}const Jv=/\b([a-z-]*)\(.*?\)/gu,$l={...Vt,getAnimatableNone:n=>{const r=n.match(Jv);return r?r.map(Zv).join(" "):n}},Gl={...Vt,getAnimatableNone:n=>{const r=Vt.parse(n);return Vt.createTransformer(n)(r.map(a=>typeof a=="number"?0:typeof a=="object"?{...a,alpha:1}:a))}},Zf={...Er,transform:Math.round},ex={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,...ex,zIndex:Zf,fillOpacity:ki,strokeOpacity:ki,numOctaves:Zf},tx={...wu,color:Oe,backgroundColor:Oe,outlineColor:Oe,fill:Oe,stroke:Oe,borderColor:Oe,borderTopColor:Oe,borderRightColor:Oe,borderBottomColor:Oe,borderLeftColor:Oe,filter:$l,WebkitFilter:$l,mask:Gl,WebkitMask:Gl},Qp=n=>tx[n],nx=new Set([$l,Gl]);function qp(n,r){let s=Qp(n);return nx.has(s)||(s=Vt),s.getAnimatableNone?s.getAnimatableNone(r):void 0}const rx=new Set(["auto","none","0"]);function ix(n,r,s){let a=0,u;for(;a<n.length&&!u;){const f=n[a];typeof f=="string"&&!rx.has(f)&&Tr(f).values.length&&(u=n[a]),a++}if(u&&s)for(const f of r)n[f]=qp(s,u)}class sx 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 x=r[y];if(typeof x=="string"&&(x=x.trim(),uu(x))){const S=Up(x,s.current);S!==void 0&&(r[y]=S),y===r.length-1&&(this.finalKeyframe=x)}}if(this.resolveNoneKeyframes(),!Hp.has(a)||r.length!==2)return;const[u,f]=r,d=qf(u),h=qf(f),g=bf(u),v=bf(f);if(g!==v&&Tn[a]){this.needsMeasurement=!0;return}if(d!==h)if(Gf(d)&&Gf(h))for(let y=0;y<r.length;y++){const x=r[y];typeof x=="string"&&(r[y]=parseFloat(x))}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||Qv(r[u]))&&a.push(u);a.length&&ix(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,v])=>{r.getValue(g).set(v)}),this.resolveNoneKeyframes()}}function Zp(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 Jp=(n,r)=>r&&typeof n=="number"?r.transform(n):n;function Ys(n){return sp(n)&&"offsetHeight"in n&&!("ownerSVGElement"in n)}const{schedule:Su}=xp(queueMicrotask,!1),It={x:!1,y:!1};function em(){return It.x||It.y}function ox(n){return n==="x"||n==="y"?It[n]?null:(It[n]=!0,()=>{It[n]=!1}):It.x||It.y?null:(It.x=It.y=!0,()=>{It.x=It.y=!1})}function tm(n,r){const s=Zp(n),a=new AbortController,u={passive:!0,...r,signal:a.signal};return[s,u,()=>a.abort()]}function ax(n){return!(n.pointerType==="touch"||em())}function lx(n,r,s={}){const[a,u,f]=tm(n,s);return a.forEach(d=>{let h=!1,g=!1,v;const y=()=>{d.removeEventListener("pointerleave",D)},x=N=>{v&&(v(N),v=void 0),y()},S=N=>{h=!1,window.removeEventListener("pointerup",S),window.removeEventListener("pointercancel",S),g&&(g=!1,x(N))},C=()=>{h=!0,window.addEventListener("pointerup",S,u),window.addEventListener("pointercancel",S,u)},D=N=>{if(N.pointerType!=="touch"){if(h){g=!0;return}x(N)}},L=N=>{if(!ax(N))return;g=!1;const b=r(d,N);typeof b=="function"&&(v=b,d.addEventListener("pointerleave",D,u))};d.addEventListener("pointerenter",L,u),d.addEventListener("pointerdown",C,u)}),f}const nm=(n,r)=>r?n===r?!0:nm(n,r.parentElement):!1,ku=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,ux=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function cx(n){return ux.has(n.tagName)||n.isContentEditable===!0}const dx=new Set(["INPUT","SELECT","TEXTAREA"]);function fx(n){return dx.has(n.tagName)||n.isContentEditable===!0}const Xs=new WeakSet;function Jf(n){return r=>{r.key==="Enter"&&n(r)}}function wl(n,r){n.dispatchEvent(new PointerEvent("pointer"+r,{isPrimary:!0,bubbles:!0}))}const hx=(n,r)=>{const s=n.currentTarget;if(!s)return;const a=Jf(()=>{if(Xs.has(s))return;wl(s,"down");const u=Jf(()=>{wl(s,"up")}),f=()=>wl(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 eh(n){return ku(n)&&!em()}const th=new WeakSet;function px(n,r,s={}){const[a,u,f]=tm(n,s),d=h=>{const g=h.currentTarget;if(!eh(h)||th.has(h))return;Xs.add(g),s.stopPropagation&&th.add(h);const v=r(g,h),y=(C,D)=>{window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",S),Xs.has(g)&&Xs.delete(g),eh(C)&&typeof v=="function"&&v(C,{success:D})},x=C=>{y(C,g===window||g===document||s.useGlobalTarget||nm(g,C.target))},S=C=>{y(C,!1)};window.addEventListener("pointerup",x,u),window.addEventListener("pointercancel",S,u)};return a.forEach(h=>{(s.useGlobalTarget?window:h).addEventListener("pointerdown",d,u),Ys(h)&&(h.addEventListener("focus",v=>hx(v,u)),!cx(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),f}function Tu(n){return sp(n)&&"ownerSVGElement"in n}const Qs=new WeakMap;let kn;const rm=(n,r,s)=>(a,u)=>u&&u[0]?u[0][n+"Size"]:Tu(a)&&"getBBox"in a?a.getBBox()[r]:a[s],mx=rm("inline","width","offsetWidth"),gx=rm("block","height","offsetHeight");function yx({target:n,borderBoxSize:r}){var s;(s=Qs.get(n))==null||s.forEach(a=>{a(n,{get width(){return mx(n,r)},get height(){return gx(n,r)}})})}function vx(n){n.forEach(yx)}function xx(){typeof ResizeObserver>"u"||(kn=new ResizeObserver(vx))}function wx(n,r){kn||xx();const s=Zp(n);return s.forEach(a=>{let u=Qs.get(a);u||(u=new Set,Qs.set(a,u)),u.add(r),kn==null||kn.observe(a)}),()=>{s.forEach(a=>{const u=Qs.get(a);u==null||u.delete(r),u!=null&&u.size||kn==null||kn.unobserve(a)})}}const qs=new Set;let Sr;function Sx(){Sr=()=>{const n={get width(){return window.innerWidth},get height(){return window.innerHeight}};qs.forEach(r=>r(n))},window.addEventListener("resize",Sr)}function kx(n){return qs.add(n),Sr||Sx(),()=>{qs.delete(n),!qs.size&&typeof Sr=="function"&&(window.removeEventListener("resize",Sr),Sr=void 0)}}function nh(n,r){return typeof n=="function"?kx(n):wx(n,r)}function Tx(n){return Tu(n)&&n.tagName==="svg"}const Cx=[...Xp,Oe,Vt],Ex=n=>Cx.find(Yp(n)),rh=()=>({translate:0,scale:1,origin:0,originPoint:0}),kr=()=>({x:rh(),y:rh()}),ih=()=>({min:0,max:0}),We=()=>({x:ih(),y:ih()}),Px=new WeakMap;function ho(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"],Eu=["initial",...Cu];function po(n){return ho(n.animate)||Eu.some(r=>Ti(n[r]))}function im(n){return!!(po(n)||n.variants)}function Ax(n,r,s){for(const a in r){const u=r[a],f=s[a];if(qe(u))n.addValue(a,u);else if(qe(f))n.addValue(a,Cr(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,Cr(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},sm={current:!1},jx=typeof window<"u";function Nx(){if(sm.current=!0,!!jx)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 sh=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let oo={};function om(n){oo=n}function Mx(){return oo}class Dx{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=it.now();this.renderScheduledAt<C&&(this.renderScheduledAt=C,we.render(this.render,!1,!0))};const{latestValues:v,renderState:y}=h;this.latestValues=v,this.baseTarget={...v},this.initialValues=s.initial?{...v}:{},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=po(s),this.isVariantNode=im(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(r&&r.current);const{willChange:x,...S}=this.scrapeMotionValuesFromProps(s,{},this);for(const C in S){const D=S[C];v[C]!==void 0&&qe(D)&&D.set(v[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,Px.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:(sm.current||Nx(),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&&Op.has(r)&&this.current instanceof HTMLElement){const{factory:d,keyframes:h,times:g,ease:v,duration:y}=s.accelerate,x=new _p({element:this.current,name:r,keyframes:h,times:g,ease:v,duration:yt(y)}),S=d(x);this.valueSubscriptions.set(r,()=>{S(),x.cancel()});return}const a=Ar.has(r);a&&this.onBindTransform&&this.onBindTransform();const u=s.on("change",d=>{this.latestValues[r]=d,this.props.onUpdate&&we.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 oo){const s=oo[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):We()}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<sh.length;a++){const u=sh[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=Ax(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=Cr(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"&&(ip(a)||op(a))?a=parseFloat(a):!Ex(a)&&Vt.test(s)&&(a=qp(r,s)),this.setBaseTarget(r,qe(a)?a.get():a)),qe(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&&!qe(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 am extends Dx{constructor(){super(...arguments),this.KeyframeResolver=sx}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;qe(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 lm({top:n,left:r,right:s,bottom:a}){return{x:{min:r,max:s},y:{min:n,max:a}}}function Fx({x:n,y:r}){return{top:r.min,right:n.max,bottom:r.max,left:n.min}}function Lx(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 Sl(n){return n===void 0||n===1}function Yl({scale:n,scaleX:r,scaleY:s}){return!Sl(n)||!Sl(r)||!Sl(s)}function Wn(n){return Yl(n)||um(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function um(n){return oh(n.x)||oh(n.y)}function oh(n){return n&&n!=="0%"}function ao(n,r,s){const a=n-s,u=r*a;return s+u}function ah(n,r,s,a,u){return u!==void 0&&(n=ao(n,u,a)),ao(n,s,a)+r}function Xl(n,r=0,s=1,a,u){n.min=ah(n.min,r,s,a,u),n.max=ah(n.max,r,s,a,u)}function cm(n,{x:r,y:s}){Xl(n.x,r.translate,r.scale,r.originPoint),Xl(n.y,s.translate,s.scale,s.originPoint)}const lh=.999999999999,uh=1.0000000000001;function Rx(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:v}=f.options;v&&v.props.style&&v.props.style.display==="contents"||(a&&f.options.layoutScroll&&f.scroll&&f!==f.root&&(Ht(n.x,-f.scroll.offset.x),Ht(n.y,-f.scroll.offset.y)),d&&(r.x*=d.x.scale,r.y*=d.y.scale,cm(n,d)),a&&Wn(f.latestValues)&&Zs(n,f.latestValues,(h=f.layout)==null?void 0:h.layoutBox))}r.x<uh&&r.x>lh&&(r.x=1),r.y<uh&&r.y>lh&&(r.y=1)}function Ht(n,r){n.min+=r,n.max+=r}function ch(n,r,s,a,u=.5){const f=Pe(n.min,n.max,u);Xl(n,r,s,f,a)}function dh(n,r){return typeof n=="string"?parseFloat(n)/100*(r.max-r.min):n}function Zs(n,r,s){const a=s??n;ch(n.x,dh(r.x,a.x),r.scaleX,r.scale,r.originX),ch(n.y,dh(r.y,a.y),r.scaleY,r.scale,r.originY)}function dm(n,r){return lm(Lx(n.getBoundingClientRect(),r))}function Ix(n,r,s){const a=dm(n,s),{scroll:u}=r;return u&&(Ht(a.x,u.offset.x),Ht(a.y,u.offset.y)),a}const Vx={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},bx=Pr.length;function _x(n,r,s){let a="",u=!0;for(let f=0;f<bx;f++){const d=Pr[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 v=parseFloat(h);g=d.startsWith("scale")?v===1:v===0}if(!g||s){const v=Jp(h,wu[d]);if(!g){u=!1;const y=Vx[d]||d;a+=`${y}(${v}) `}s&&(r[d]=v)}}return a=a.trim(),s?a=s(r,u?"":a):u&&(a="none"),a}function Pu(n,r,s){const{style:a,vars:u,transformOrigin:f}=n;let d=!1,h=!1;for(const g in r){const v=r[g];if(Ar.has(g)){d=!0;continue}else if(Sp(g)){u[g]=v;continue}else{const y=Jp(v,wu[g]);g.startsWith("origin")?(h=!0,f[g]=y):a[g]=y}}if(r.transform||(d||s?a.transform=_x(r,n.transform,s):a.transform&&(a.transform="none")),h){const{originX:g="50%",originY:v="50%",originZ:y=0}=f;a.transformOrigin=`${g} ${v} ${y}`}}function fm(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 fh(n,r){return r.max===r.min?0:n/(r.max-r.min)*100}const pi={correct:(n,r)=>{if(!r.target)return n;if(typeof n=="string")if(Y.test(n))n=parseFloat(n);else return n;const s=fh(n,r.target.x),a=fh(n,r.target.y);return`${s}% ${a}%`}},zx={correct:(n,{treeScale:r,projectionDelta:s})=>{const a=n,u=Vt.parse(n);if(u.length>5)return a;const f=Vt.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 v=Pe(h,g,.5);return typeof u[2+d]=="number"&&(u[2+d]/=v),typeof u[3+d]=="number"&&(u[3+d]/=v),f(u)}},Ql={borderRadius:{...pi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:pi,borderTopRightRadius:pi,borderBottomLeftRadius:pi,borderBottomRightRadius:pi,boxShadow:zx};function hm(n,{layout:r,layoutId:s}){return Ar.has(n)||n.startsWith("origin")||(r||s!==void 0)&&(!!Ql[n]||n==="opacity")}function Au(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)(qe(a[h])||u&&qe(u[h])||hm(h,n)||((d=s==null?void 0:s.getValue(h))==null?void 0:d.liveStyle)!==void 0)&&(f[h]=a[h]);return f}function Ox(n){return window.getComputedStyle(n)}class Bx extends am{constructor(){super(...arguments),this.type="html",this.renderInstance=fm}readValueFromInstance(r,s){var a;if(Ar.has(s))return(a=this.projection)!=null&&a.isProjecting?Vl(s):av(r,s);{const u=Ox(r),f=(Sp(s)?u.getPropertyValue(s):u[s])||0;return typeof f=="string"?f.trim():f}}measureInstanceViewportBox(r,{transformPagePoint:s}){return dm(r,s)}build(r,s,a){Pu(r,s,a.transformTemplate)}scrapeMotionValuesFromProps(r,s,a){return Au(r,s,a)}}const Ux={offset:"stroke-dashoffset",array:"stroke-dasharray"},Wx={offset:"strokeDashoffset",array:"strokeDasharray"};function Hx(n,r,s=1,a=0,u=!0){n.pathLength=1;const f=u?Ux:Wx;n[f.offset]=`${-a}`,n[f.array]=`${r} ${s}`}const $x=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function pm(n,{attrX:r,attrY:s,attrScale:a,pathLength:u,pathSpacing:f=1,pathOffset:d=0,...h},g,v,y){if(Pu(n,h,v),g){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:x,style:S}=n;x.transform&&(S.transform=x.transform,delete x.transform),(S.transform||x.transformOrigin)&&(S.transformOrigin=x.transformOrigin??"50% 50%",delete x.transformOrigin),S.transform&&(S.transformBox=(y==null?void 0:y.transformBox)??"fill-box",delete x.transformBox);for(const C of $x)x[C]!==void 0&&(S[C]=x[C],delete x[C]);r!==void 0&&(x.x=r),s!==void 0&&(x.y=s),a!==void 0&&(x.scale=a),u!==void 0&&Hx(x,u,f,d,!1)}const mm=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"]),gm=n=>typeof n=="string"&&n.toLowerCase()==="svg";function Gx(n,r,s,a){fm(n,r,void 0,a);for(const u in r.attrs)n.setAttribute(mm.has(u)?u:xu(u),r.attrs[u])}function ym(n,r,s){const a=Au(n,r,s);for(const u in n)if(qe(n[u])||qe(r[u])){const f=Pr.indexOf(u)!==-1?"attr"+u.charAt(0).toUpperCase()+u.substring(1):u;a[f]=n[u]}return a}class Kx extends am{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=We}getBaseTargetFromProps(r,s){return r[s]}readValueFromInstance(r,s){if(Ar.has(s)){const a=Qp(s);return a&&a.default||0}return s=mm.has(s)?s:xu(s),r.getAttribute(s)}scrapeMotionValuesFromProps(r,s,a){return ym(r,s,a)}build(r,s,a){pm(r,s,this.isSVGTag,a.transformTemplate,a.style)}renderInstance(r,s,a,u){Gx(r,s,a,u)}mount(r){this.isSVGTag=gm(r.tagName),super.mount(r)}}const Yx=Eu.length;function vm(n){if(!n)return;if(!n.isControllingVariants){const s=n.parent?vm(n.parent)||{}:{};return n.props.initial!==void 0&&(s.initial=n.props.initial),s}const r={};for(let s=0;s<Yx;s++){const a=Eu[s],u=n.props[a];(Ti(u)||u===!1)&&(r[a]=u)}return r}function xm(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 Xx=[...Cu].reverse(),Qx=Cu.length;function qx(n){return r=>Promise.all(r.map(({animation:s,options:a})=>Yv(n,s,a)))}function Zx(n){let r=qx(n),s=hh(),a=!0,u=!1;const f=v=>(y,x)=>{var C;const S=Kn(n,x,v==="exit"?(C=n.presenceContext)==null?void 0:C.custom:void 0);if(S){const{transition:D,transitionEnd:L,...N}=S;y={...y,...N,...L}}return y};function d(v){r=v(n)}function h(v){const{props:y}=n,x=vm(n.parent)||{},S=[],C=new Set;let D={},L=1/0;for(let b=0;b<Qx;b++){const F=Xx[b],P=s[F],R=y[F]!==void 0?y[F]:x[F],W=Ti(R),ee=F===v?P.isActive:null;ee===!1&&(L=b);let se=R===x[F]&&R!==y[F]&&W;if(se&&(a||u)&&n.manuallyAnimateOnMount&&(se=!1),P.protectedKeys={...D},!P.isActive&&ee===null||!R&&!P.prevProp||ho(R)||typeof R=="boolean")continue;if(F==="exit"&&P.isActive&&ee!==!0){P.prevResolvedValues&&(D={...D,...P.prevResolvedValues});continue}const J=Jx(P.prevProp,R);let ie=J||F===v&&P.isActive&&!se&&W||b>L&&W,q=!1;const he=Array.isArray(R)?R:[R];let xe=he.reduce(f(F),{});ee===!1&&(xe={});const{prevResolvedValues:Ne={}}=P,Le={...Ne,...xe},_e=B=>{ie=!0,C.has(B)&&(q=!0,C.delete(B)),P.needsAnimating[B]=!0;const X=n.getValue(B);X&&(X.liveStyle=!1)};for(const B in Le){const X=xe[B],H=Ne[B];if(D.hasOwnProperty(B))continue;let E=!1;Ul(X)&&Ul(H)?E=!xm(X,H):E=X!==H,E?X!=null?_e(B):C.add(B):X!==void 0&&C.has(B)?_e(B):P.protectedKeys[B]=!0}P.prevProp=R,P.prevResolvedValues=xe,P.isActive&&(D={...D,...xe}),(a||u)&&n.blockInitialAnimation&&(ie=!1);const Te=se&&J;ie&&(!Te||q)&&S.push(...he.map(B=>{const X={type:F};if(typeof B=="string"&&(a||u)&&!Te&&n.manuallyAnimateOnMount&&n.parent){const{parent:H}=n,E=Kn(H,B);if(H.enteringChildren&&E){const{delayChildren:I}=E.transition||{};X.delay=Bp(H.enteringChildren,n,I)}}return{animation:B,options:X}}))}if(C.size){const b={};if(typeof y.initial!="boolean"){const F=Kn(n,Array.isArray(y.initial)?y.initial[0]:y.initial);F&&F.transition&&(b.transition=F.transition)}C.forEach(F=>{const P=n.getBaseTarget(F),R=n.getValue(F);R&&(R.liveStyle=!0),b[F]=P??null}),S.push({animation:b})}let N=!!S.length;return a&&(y.initial===!1||y.initial===y.animate)&&!n.manuallyAnimateOnMount&&(N=!1),a=!1,u=!1,N?r(S):Promise.resolve()}function g(v,y){var S;if(s[v].isActive===y)return Promise.resolve();(S=n.variantChildren)==null||S.forEach(C=>{var D;return(D=C.animationState)==null?void 0:D.setActive(v,y)}),s[v].isActive=y;const x=h(v);for(const C in s)s[C].protectedKeys={};return x}return{animateChanges:h,setActive:g,setAnimateFunction:d,getState:()=>s,reset:()=>{s=hh(),u=!0}}}function Jx(n,r){return typeof r=="string"?r!==n:Array.isArray(r)?!xm(r,n):!1}function Bn(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function hh(){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 ph(n,r){n.translate=r.translate,n.scale=r.scale,n.originPoint=r.originPoint,n.origin=r.origin}const wm=1e-4,e1=1-wm,t1=1+wm,Sm=.01,n1=0-Sm,r1=0+Sm;function st(n){return n.max-n.min}function i1(n,r,s){return Math.abs(n-r)<=s}function mh(n,r,s,a=.5){n.origin=a,n.originPoint=Pe(r.min,r.max,n.origin),n.scale=st(s)/st(r),n.translate=Pe(s.min,s.max,n.origin)-n.originPoint,(n.scale>=e1&&n.scale<=t1||isNaN(n.scale))&&(n.scale=1),(n.translate>=n1&&n.translate<=r1||isNaN(n.translate))&&(n.translate=0)}function xi(n,r,s,a){mh(n.x,r.x,s.x,a?a.originX:void 0),mh(n.y,r.y,s.y,a?a.originY:void 0)}function gh(n,r,s,a=0){const u=a?Pe(s.min,s.max,a):s.min;n.min=u+r.min,n.max=n.min+st(r)}function s1(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=0){const u=a?Pe(s.min,s.max,a):s.min;n.min=r.min-u,n.max=n.min+st(r)}function lo(n,r,s,a){yh(n.x,r.x,s.x,a==null?void 0:a.x),yh(n.y,r.y,s.y,a==null?void 0:a.y)}function vh(n,r,s,a,u){return n-=r,n=ao(n,1/s,a),u!==void 0&&(n=ao(n,1/u,a)),n}function o1(n,r=0,s=1,a=.5,u,f=n,d=n){if($t.test(r)&&(r=parseFloat(r),r=Pe(d.min,d.max,r/100)-d.min),typeof r!="number")return;let h=Pe(f.min,f.max,a);n===f&&(h-=r),n.min=vh(n.min,r,s,h,u),n.max=vh(n.max,r,s,h,u)}function xh(n,r,[s,a,u],f,d){o1(n,r[s],r[a],r[u],r.scale,f,d)}const a1=["x","scaleX","originX"],l1=["y","scaleY","originY"];function wh(n,r,s,a){xh(n.x,r,a1,s?s.x:void 0,a?a.x:void 0),xh(n.y,r,l1,s?s.y:void 0,a?a.y:void 0)}function Sh(n){return n.translate===0&&n.scale===1}function km(n){return Sh(n.x)&&Sh(n.y)}function kh(n,r){return n.min===r.min&&n.max===r.max}function u1(n,r){return kh(n.x,r.x)&&kh(n.y,r.y)}function Th(n,r){return Math.round(n.min)===Math.round(r.min)&&Math.round(n.max)===Math.round(r.max)}function Tm(n,r){return Th(n.x,r.x)&&Th(n.y,r.y)}function Ch(n){return st(n.x)/st(n.y)}function Eh(n,r){return n.translate===r.translate&&n.scale===r.scale&&n.originPoint===r.originPoint}function Wt(n){return[n("x"),n("y")]}function c1(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:v,rotate:y,rotateX:x,rotateY:S,skewX:C,skewY:D}=s;v&&(a=`perspective(${v}px) ${a}`),y&&(a+=`rotate(${y}deg) `),x&&(a+=`rotateX(${x}deg) `),S&&(a+=`rotateY(${S}deg) `),C&&(a+=`skewX(${C}deg) `),D&&(a+=`skewY(${D}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 Cm=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],d1=Cm.length,Ph=n=>typeof n=="string"?parseFloat(n):n,Ah=n=>typeof n=="number"||Y.test(n);function f1(n,r,s,a,u,f){u?(n.opacity=Pe(0,s.opacity??1,h1(a)),n.opacityExit=Pe(r.opacity??1,0,p1(a))):f&&(n.opacity=Pe(r.opacity??1,s.opacity??1,a));for(let d=0;d<d1;d++){const h=Cm[d];let g=jh(r,h),v=jh(s,h);if(g===void 0&&v===void 0)continue;g||(g=0),v||(v=0),g===0||v===0||Ah(g)===Ah(v)?(n[h]=Math.max(Pe(Ph(g),Ph(v),a),0),($t.test(v)||$t.test(g))&&(n[h]+="%")):n[h]=v}(r.rotate||s.rotate)&&(n.rotate=Pe(r.rotate||0,s.rotate||0,a))}function jh(n,r){return n[r]!==void 0?n[r]:n.borderRadius}const h1=Em(0,.5,mp),p1=Em(.5,.95,Et);function Em(n,r,s){return a=>a<n?0:a>r?1:s(Si(n,r,a))}function m1(n,r,s){const a=qe(n)?n:Cr(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 g1=(n,r)=>n.depth-r.depth;class y1{constructor(){this.children=[],this.isDirty=!1}add(r){iu(this.children,r),this.isDirty=!0}remove(r){to(this.children,r),this.isDirty=!0}forEach(r){this.isDirty&&this.children.sort(g1),this.isDirty=!1,this.children.forEach(r)}}function v1(n,r){const s=it.now(),a=({timestamp:u})=>{const f=u-s;f>=r&&(Pn(a),n(f-r))};return we.setup(a,!0),()=>Pn(a)}function Js(n){return qe(n)?n.get():n}class x1{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&&(to(this.members,a),a.unmount())}r.scheduleRender()}remove(r){if(to(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 eo={hasAnimatedSinceResize:!0,hasEverUpdated:!1},kl=["","X","Y","Z"],w1=1e3;let S1=0;function Tl(n,r,s,a){const{latestValues:u}=r;u[n]&&(s[n]=u[n],r.setStaticValue(n,0),a&&(a[n]=0))}function Pm(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:r}=n.options;if(!r)return;const s=Gp(r);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:u,layoutId:f}=n.options;window.MotionCancelOptimisedAnimation(s,"transform",we,!(u||f))}const{parent:a}=n;a&&!a.hasCheckedOptimisedAppear&&Pm(a)}function Am({attachResizeListener:n,defaultParent:r,measureScroll:s,checkIsScrollRoot:a,resetTransform:u}){return class{constructor(d={},h=r==null?void 0:r()){this.id=S1++,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(C1),this.nodes.forEach(M1),this.nodes.forEach(D1),this.nodes.forEach(E1)},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 y1)}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)&&!Tx(d),this.instance=d;const{layoutId:h,layout:g,visualElement:v}=this.options;if(v&&!v.current&&v.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,x=0;const S=()=>this.root.updateBlockedByResize=!1;we.read(()=>{x=window.innerWidth}),n(d,()=>{const C=window.innerWidth;C!==x&&(x=C,this.root.updateBlockedByResize=!0,y&&y(),y=v1(S,250),eo.hasAnimatedSinceResize&&(eo.hasAnimatedSinceResize=!1,this.nodes.forEach(Dh)))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&v&&(h||g)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:x,hasRelativeLayoutChanged:S,layout:C})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const D=this.options.transition||v.getDefaultTransition()||V1,{onLayoutAnimationStart:L,onLayoutAnimationComplete:N}=v.getProps(),b=!this.targetLayout||!Tm(this.targetLayout,C),F=!x&&S;if(this.options.layoutRoot||this.resumeFrom||F||x&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const P={...gu(D,"layout"),onPlay:L,onComplete:N};(v.shouldReduceMotion||this.options.layoutRoot)&&(P.delay=0,P.type=!1),this.startAnimation(P),this.setAnimationOrigin(y,F)}else x||Dh(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(F1),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&&Pm(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const x=this.path[y];x.shouldResetTransform=!0,(typeof x.latestValues.x=="string"||typeof x.latestValues.y=="string")&&(x.isLayoutDirty=!0),x.updateScroll("snapshot"),x.options.layoutRoot&&x.willUpdate(!1)}const{layoutId:h,layout:g}=this.options;if(h===void 0&&!g)return;const v=this.getTransformTemplate();this.prevTransformTemplateValue=v?v(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(A1),this.nodes.forEach(Nh);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Mh);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(j1),this.nodes.forEach(N1),this.nodes.forEach(k1),this.nodes.forEach(T1)):this.nodes.forEach(Mh),this.clearAllSnapshots();const h=it.now();Qe.delta=Gt(0,1e3/60,h-Qe.timestamp),Qe.timestamp=h,Qe.isProcessing=!0,pl.update.process(Qe),pl.preRender.process(Qe),pl.render.process(Qe),Qe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Su.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(P1),this.sharedNodes.forEach(L1)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,we.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){we.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!st(this.snapshot.measuredBox.x)&&!st(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=We()),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&&!km(this.projectionDelta),g=this.getTransformTemplate(),v=g?g(this.latestValues,""):void 0,y=v!==this.prevTransformTemplateValue;d&&this.instance&&(h||Wn(this.latestValues)||y)&&(u(this.instance,v),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const h=this.measurePageBox();let g=this.removeElementScroll(h);return d&&(g=this.removeTransform(g)),b1(g),{animationId:this.root.animationId,measuredBox:h,layoutBox:g,latestValues:{},source:this.id}}measurePageBox(){var v;const{visualElement:d}=this.options;if(!d)return We();const h=d.measureViewportBox();if(!(((v=this.scroll)==null?void 0:v.wasRoot)||this.path.some(_1))){const{scroll:y}=this.root;y&&(Ht(h.x,y.offset.x),Ht(h.y,y.offset.y))}return h}removeElementScroll(d){var g;const h=We();if(Lt(h,d),(g=this.scroll)!=null&&g.wasRoot)return h;for(let v=0;v<this.path.length;v++){const y=this.path[v],{scroll:x,options:S}=y;y!==this.root&&x&&S.layoutScroll&&(x.wasRoot&&Lt(h,d),Ht(h.x,x.offset.x),Ht(h.y,x.offset.y))}return h}applyTransform(d,h=!1,g){var y,x;const v=g||We();Lt(v,d);for(let S=0;S<this.path.length;S++){const C=this.path[S];!h&&C.options.layoutScroll&&C.scroll&&C!==C.root&&(Ht(v.x,-C.scroll.offset.x),Ht(v.y,-C.scroll.offset.y)),Wn(C.latestValues)&&Zs(v,C.latestValues,(y=C.layout)==null?void 0:y.layoutBox)}return Wn(this.latestValues)&&Zs(v,this.latestValues,(x=this.layout)==null?void 0:x.layoutBox),v}removeTransform(d){var g;const h=We();Lt(h,d);for(let v=0;v<this.path.length;v++){const y=this.path[v];if(!Wn(y.latestValues))continue;let x;y.instance&&(Yl(y.latestValues)&&y.updateSnapshot(),x=We(),Lt(x,y.measurePageBox())),wh(h,y.latestValues,(g=y.snapshot)==null?void 0:g.layoutBox,x)}return Wn(this.latestValues)&&wh(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!==Qe.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:x}=this.options;if(!this.layout||!(y||x))return;this.resolvedRelativeTargetAt=Qe.timestamp;const S=this.getClosestProjectingParent();S&&this.linkedParentVersion!==S.layoutVersion&&!S.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&S&&S.layout?this.createRelativeTarget(S,this.layout.layoutBox,S.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=We(),this.targetWithTransforms=We()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),s1(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),cm(this.target,this.targetDelta)):Lt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&S&&!!S.resumingFrom==!!this.resumingFrom&&!S.options.layoutScroll&&S.target&&this.animationProgress!==1?this.createRelativeTarget(S,this.target,S.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Yl(this.parent.latestValues)||um(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=We(),this.relativeTargetOrigin=We(),lo(this.relativeTargetOrigin,h,g,this.options.layoutAnchor||void 0),Lt(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var D;const d=this.getLead(),h=!!this.resumingFrom||this!==d;let g=!0;if((this.isProjectionDirty||(D=this.parent)!=null&&D.isProjectionDirty)&&(g=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(g=!1),this.resolvedRelativeTargetAt===Qe.timestamp&&(g=!1),g)return;const{layout:v,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||!(v||y))return;Lt(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,S=this.treeScale.y;Rx(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=We());const{target:C}=d;if(!C){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ph(this.prevProjectionDelta.x,this.projectionDelta.x),ph(this.prevProjectionDelta.y,this.projectionDelta.y)),xi(this.projectionDelta,this.layoutCorrected,C,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==S||!Eh(this.projectionDelta.x,this.prevProjectionDelta.x)||!Eh(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=kr(),this.projectionDelta=kr(),this.projectionDeltaWithTransform=kr()}setAnimationOrigin(d,h=!1){const g=this.snapshot,v=g?g.latestValues:{},y={...this.latestValues},x=kr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const S=We(),C=g?g.source:void 0,D=this.layout?this.layout.source:void 0,L=C!==D,N=this.getStack(),b=!N||N.members.length<=1,F=!!(L&&!b&&this.options.crossfade===!0&&!this.path.some(I1));this.animationProgress=0;let P;this.mixTargetDelta=R=>{const W=R/1e3;Fh(x.x,d.x,W),Fh(x.y,d.y,W),this.setTargetDelta(x),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(lo(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),R1(this.relativeTarget,this.relativeTargetOrigin,S,W),P&&u1(this.relativeTarget,P)&&(this.isProjectionDirty=!1),P||(P=We()),Lt(P,this.relativeTarget)),L&&(this.animationValues=y,f1(y,v,this.latestValues,W,F,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=W},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){var h,g,v;this.notifyListeners("animationStart"),(h=this.currentAnimation)==null||h.stop(),(v=(g=this.resumingFrom)==null?void 0:g.currentAnimation)==null||v.stop(),this.pendingAnimation&&(Pn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=we.update(()=>{eo.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Cr(0)),this.motionValue.jump(0,!1),this.currentAnimation=m1(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(w1),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:h,target:g,layout:v,latestValues:y}=d;if(!(!h||!g||!v)){if(this!==d&&this.layout&&v&&jm(this.options.animationType,this.layout.layoutBox,v.layoutBox)){g=this.target||We();const x=st(this.layout.layoutBox.x);g.x.min=d.target.x.min,g.x.max=g.x.min+x;const S=st(this.layout.layoutBox.y);g.y.min=d.target.y.min,g.y.max=g.y.min+S}Lt(h,g),Zs(h,y),xi(this.projectionDeltaWithTransform,this.layoutCorrected,h,y)}}registerSharedNode(d,h){this.sharedNodes.has(d)||this.sharedNodes.set(d,new x1),this.sharedNodes.get(d).add(h);const v=h.options.initialPromotionConfig;h.promote({transition:v?v.transition:void 0,preserveFollowOpacity:v&&v.shouldPreserveFollowOpacity?v.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 v=this.getStack();v&&v.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 v={};g.z&&Tl("z",d,v,this.animationValues);for(let y=0;y<kl.length;y++)Tl(`rotate${kl[y]}`,d,v,this.animationValues),Tl(`skew${kl[y]}`,d,v,this.animationValues);d.render();for(const y in v)d.setStaticValue(y,v[y]),this.animationValues&&(this.animationValues[y]=v[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=Js(h==null?void 0:h.pointerEvents)||"",d.transform=g?g(this.latestValues,""):"none";return}const v=this.getLead();if(!this.projectionDelta||!this.layout||!v.target){this.options.layoutId&&(d.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,d.pointerEvents=Js(h==null?void 0:h.pointerEvents)||""),this.hasProjected&&!Wn(this.latestValues)&&(d.transform=g?g({},""):"none",this.hasProjected=!1);return}d.visibility="";const y=v.animationValues||v.latestValues;this.applyTransformsToTarget();let x=c1(this.projectionDeltaWithTransform,this.treeScale,y);g&&(x=g(y,x)),d.transform=x;const{x:S,y:C}=this.projectionDelta;d.transformOrigin=`${S.origin*100}% ${C.origin*100}% 0`,v.animationValues?d.opacity=v===this?y.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:y.opacityExit:d.opacity=v===this?y.opacity!==void 0?y.opacity:"":y.opacityExit!==void 0?y.opacityExit:0;for(const D in Ql){if(y[D]===void 0)continue;const{correct:L,applyTo:N,isCSSVariable:b}=Ql[D],F=x==="none"?y[D]:L(y[D],v);if(N){const P=N.length;for(let R=0;R<P;R++)d[N[R]]=F}else b?this.options.visualElement.renderState.vars[D]=F:d[D]=F}this.options.layoutId&&(d.pointerEvents=v===this?Js(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(Nh),this.root.sharedNodes.clear()}}}function k1(n){n.updateLayout()}function T1(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")Wt(x=>{const S=d?r.measuredBox[x]:r.layoutBox[x],C=st(S);S.min=a[x].min,S.max=S.min+C});else if(f==="x"||f==="y"){const x=f==="x"?"y":"x";ql(d?r.measuredBox[x]:r.layoutBox[x],a[x])}else jm(f,r.layoutBox,a)&&Wt(x=>{const S=d?r.measuredBox[x]:r.layoutBox[x],C=st(a[x]);S.max=S.min+C,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[x].max=n.relativeTarget[x].min+C)});const h=kr();xi(h,a,r.layoutBox);const g=kr();d?xi(g,n.applyTransform(u,!0),r.measuredBox):xi(g,a,r.layoutBox);const v=!km(h);let y=!1;if(!n.resumeFrom){const x=n.getClosestProjectingParent();if(x&&!x.resumeFrom){const{snapshot:S,layout:C}=x;if(S&&C){const D=n.options.layoutAnchor||void 0,L=We();lo(L,r.layoutBox,S.layoutBox,D);const N=We();lo(N,a,C.layoutBox,D),Tm(L,N)||(y=!0),x.options.layoutRoot&&(n.relativeTarget=N,n.relativeTargetOrigin=L,n.relativeParent=x)}}}n.notifyListeners("didUpdate",{layout:a,snapshot:r,delta:g,layoutDelta:h,hasLayoutChanged:v,hasRelativeLayoutChanged:y})}else if(n.isLead()){const{onExitComplete:a}=n.options;a&&a()}n.options.transition=void 0}function C1(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 E1(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function P1(n){n.clearSnapshot()}function Nh(n){n.clearMeasurements()}function A1(n){n.isLayoutDirty=!0,n.updateLayout()}function Mh(n){n.isLayoutDirty=!1}function j1(n){n.isAnimationBlocked&&n.layout&&!n.isLayoutDirty&&(n.snapshot=n.layout,n.isLayoutDirty=!0)}function N1(n){const{visualElement:r}=n.options;r&&r.getProps().onBeforeLayoutMeasure&&r.notify("BeforeLayoutMeasure"),n.resetTransform()}function Dh(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function M1(n){n.resolveTargetDelta()}function D1(n){n.calcProjection()}function F1(n){n.resetSkewAndRotation()}function L1(n){n.removeLeadSnapshot()}function Fh(n,r,s){n.translate=Pe(r.translate,0,s),n.scale=Pe(r.scale,1,s),n.origin=r.origin,n.originPoint=r.originPoint}function Lh(n,r,s,a){n.min=Pe(r.min,s.min,a),n.max=Pe(r.max,s.max,a)}function R1(n,r,s,a){Lh(n.x,r.x,s.x,a),Lh(n.y,r.y,s.y,a)}function I1(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const V1={duration:.45,ease:[.4,0,.1,1]},Rh=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),Ih=Rh("applewebkit/")&&!Rh("chrome/")?Math.round:Et;function Vh(n){n.min=Ih(n.min),n.max=Ih(n.max)}function b1(n){Vh(n.x),Vh(n.y)}function jm(n,r,s){return n==="position"||n==="preserve-aspect"&&!i1(Ch(r),Ch(s),.2)}function _1(n){var r;return n!==n.root&&((r=n.scroll)==null?void 0:r.wasRoot)}const z1=Am({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}),Cl={current:void 0},Nm=Am({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!Cl.current){const n=new z1({});n.mount(window),n.setOptions({layoutScroll:!0}),Cl.current=n}return Cl.current},resetTransform:(n,r)=>{n.style.transform=r!==void 0?r:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),ju=z.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});function bh(n,r){if(typeof n=="function")return n(r);n!=null&&(n.current=r)}function O1(...n){return r=>{let s=!1;const a=n.map(u=>{const f=bh(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():bh(n[u],null)}}}}function B1(...n){return z.useCallback(O1(...n),n)}class U1 extends z.Component{getSnapshotBeforeUpdate(r){const s=this.props.childRef.current;if(Ys(s)&&r.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const a=s.offsetParent,u=Ys(a)&&a.offsetWidth||0,f=Ys(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 W1({children:n,isPresent:r,anchorX:s,anchorY:a,root:u,pop:f}){var S;const d=z.useId(),h=z.useRef(null),g=z.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:v}=z.useContext(ju),y=((S=n.props)==null?void 0:S.ref)??(n==null?void 0:n.ref),x=B1(h,y);return z.useInsertionEffect(()=>{const{width:C,height:D,top:L,left:N,right:b,bottom:F}=g.current;if(r||f===!1||!h.current||!C||!D)return;const P=s==="left"?`left: ${N}`:`right: ${b}`,R=a==="bottom"?`bottom: ${F}`:`top: ${L}`;h.current.dataset.motionPopId=d;const W=document.createElement("style");v&&(W.nonce=v);const ee=u??document.head;return ee.appendChild(W),W.sheet&&W.sheet.insertRule(`
|
||
[data-motion-pop-id="${d}"] {
|
||
position: absolute !important;
|
||
width: ${C}px !important;
|
||
height: ${D}px !important;
|
||
${P}px !important;
|
||
${R}px !important;
|
||
}
|
||
`),()=>{var se;(se=h.current)==null||se.removeAttribute("data-motion-pop-id"),ee.contains(W)&&ee.removeChild(W)}},[r]),m.jsx(U1,{isPresent:r,childRef:h,sizeRef:g,pop:f,children:f===!1?n:z.cloneElement(n,{ref:x})})}const H1=({children:n,initial:r,isPresent:s,onExitComplete:a,custom:u,presenceAffectsLayout:f,mode:d,anchorX:h,anchorY:g,root:v})=>{const y=ru($1),x=z.useId();let S=!0,C=z.useMemo(()=>(S=!1,{id:x,initial:r,isPresent:s,custom:u,onExitComplete:D=>{y.set(D,!0);for(const L of y.values())if(!L)return;a&&a()},register:D=>(y.set(D,!1),()=>y.delete(D))}),[s,y,a]);return f&&S&&(C={...C}),z.useMemo(()=>{y.forEach((D,L)=>y.set(L,!1))},[s]),z.useEffect(()=>{!s&&!y.size&&a&&a()},[s]),n=m.jsx(W1,{pop:d==="popLayout",isPresent:s,anchorX:h,anchorY:g,root:v,children:n}),m.jsx(co.Provider,{value:C,children:n})};function $1(){return new Map}function Mm(n=!0){const r=z.useContext(co);if(r===null)return[!0,null];const{isPresent:s,onExitComplete:a,register:u}=r,f=z.useId();z.useEffect(()=>{if(n)return u(f)},[n]);const d=z.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 z.Children.forEach(n,s=>{z.isValidElement(s)&&r.push(s)}),r}const Cn=({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:v})=>{const[y,x]=Mm(d),S=z.useMemo(()=>_h(n),[n]),C=d&&!y?[]:S.map(Us),D=z.useRef(!0),L=z.useRef(S),N=ru(()=>new Map),b=z.useRef(new Set),[F,P]=z.useState(S),[R,W]=z.useState(S);rp(()=>{D.current=!1,L.current=S;for(let J=0;J<R.length;J++){const ie=Us(R[J]);C.includes(ie)?(N.delete(ie),b.current.delete(ie)):N.get(ie)!==!0&&N.set(ie,!1)}},[R,C.length,C.join("-")]);const ee=[];if(S!==F){let J=[...S];for(let ie=0;ie<R.length;ie++){const q=R[ie],he=Us(q);C.includes(he)||(J.splice(ie,0,q),ee.push(q))}return f==="wait"&&ee.length&&(J=ee),W(_h(J)),P(S),null}const{forceRender:se}=z.useContext(nu);return m.jsx(m.Fragment,{children:R.map(J=>{const ie=Us(J),q=d&&!y?!1:S===R||C.includes(ie),he=()=>{if(b.current.has(ie))return;if(N.has(ie))b.current.add(ie),N.set(ie,!0);else return;let xe=!0;N.forEach(Ne=>{Ne||(xe=!1)}),xe&&(se==null||se(),W(L.current),d&&(x==null||x()),a&&a())};return m.jsx(H1,{isPresent:q,initial:!D.current||s?void 0:!1,custom:r,presenceAffectsLayout:u,mode:f,root:v,onExitComplete:q?void 0:he,anchorX:h,anchorY:g,children:J},ie)})})},Dm=z.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 G1(){if(Oh)return;const n={};for(const r in zh)n[r]={isEnabled:s=>zh[r].some(a=>!!s[a])};om(n),Oh=!0}function Fm(){return G1(),Mx()}function K1(n){const r=Fm();for(const s in n)r[s]={...r[s],...n[s]};om(r)}const Y1=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 uo(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||Y1.has(n)}let Lm=n=>!uo(n);function X1(n){typeof n=="function"&&(Lm=r=>r.startsWith("on")?!uo(r):n(r))}try{X1(require("@emotion/is-prop-valid").default)}catch{}function Q1(n,r,s){const a={};for(const u in n)u==="values"&&typeof n.values=="object"||qe(n[u])||(Lm(u)||s===!0&&uo(u)||!r&&!uo(u)||n.draggable&&u.startsWith("onDrag"))&&(a[u]=n[u]);return a}const mo=z.createContext({});function q1(n,r){if(po(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 Z1(n){const{initial:r,animate:s}=q1(n,z.useContext(mo));return z.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 Rm(n,r,s){for(const a in r)!qe(r[a])&&!hm(a,s)&&(n[a]=r[a])}function J1({transformTemplate:n},r){return z.useMemo(()=>{const s=Nu();return Pu(s,r,n),Object.assign({},s.vars,s.style)},[r])}function ew(n,r){const s=n.style||{},a={};return Rm(a,s,n),Object.assign(a,J1(n,r)),a}function tw(n,r){const s={},a=ew(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 Im=()=>({...Nu(),attrs:{}});function nw(n,r,s,a){const u=z.useMemo(()=>{const f=Im();return pm(f,r,gm(a),n.transformTemplate,n.style),{...f.attrs,style:{...f.style}}},[r]);if(n.style){const f={};Rm(f,n.style,n),u.style={...f,...u.style}}return u}const rw=["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:!!(rw.indexOf(n)>-1||/[A-Z]/u.test(n))}function iw(n,r,s,{latestValues:a},u,f=!1,d){const g=(d??Mu(n)?nw:tw)(r,a,u,n),v=Q1(r,typeof n=="string",f),y=n!==z.Fragment?{...v,...g,ref:s}:{},{children:x}=r,S=z.useMemo(()=>qe(x)?x.get():x,[x]);return z.createElement(n,{...y,children:S})}function sw({scrapeMotionValuesFromProps:n,createRenderState:r},s,a,u){return{latestValues:ow(s,a,u,n),renderState:r()}}function ow(n,r,s,a){const u={},f=a(n,{});for(const S in f)u[S]=Js(f[S]);let{initial:d,animate:h}=n;const g=po(n),v=im(n);r&&v&&!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 x=y?h:d;if(x&&typeof x!="boolean"&&!ho(x)){const S=Array.isArray(x)?x:[x];for(let C=0;C<S.length;C++){const D=vu(n,S[C]);if(D){const{transitionEnd:L,transition:N,...b}=D;for(const F in b){let P=b[F];if(Array.isArray(P)){const R=y?P.length-1:0;P=P[R]}P!==null&&(u[F]=P)}for(const F in L)u[F]=L[F]}}}return u}const Vm=n=>(r,s)=>{const a=z.useContext(mo),u=z.useContext(co),f=()=>sw(n,r,a,u);return s?f():ru(f)},aw=Vm({scrapeMotionValuesFromProps:Au,createRenderState:Nu}),lw=Vm({scrapeMotionValuesFromProps:ym,createRenderState:Im}),uw=Symbol.for("motionComponentSymbol");function cw(n,r,s){const a=z.useRef(s);z.useInsertionEffect(()=>{a.current=s});const u=z.useRef(null);return z.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 bm=z.createContext({});function xr(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function dw(n,r,s,a,u,f){var P,R;const{visualElement:d}=z.useContext(mo),h=z.useContext(Dm),g=z.useContext(co),v=z.useContext(ju),y=v.reducedMotion,x=v.skipAnimations,S=z.useRef(null),C=z.useRef(!1);a=a||h.renderer,!S.current&&a&&(S.current=a(n,{visualState:r,parent:d,props:s,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:y,skipAnimations:x,isSVG:f}),C.current&&S.current&&(S.current.manuallyAnimateOnMount=!0));const D=S.current,L=z.useContext(bm);D&&!D.projection&&u&&(D.type==="html"||D.type==="svg")&&fw(S.current,s,u,L);const N=z.useRef(!1);z.useInsertionEffect(()=>{D&&N.current&&D.update(s,g)});const b=s[$p],F=z.useRef(!!b&&typeof window<"u"&&!((P=window.MotionHandoffIsComplete)!=null&&P.call(window,b))&&((R=window.MotionHasOptimisedAnimation)==null?void 0:R.call(window,b)));return rp(()=>{C.current=!0,D&&(N.current=!0,window.MotionIsMounted=!0,D.updateFeatures(),D.scheduleRenderMicrotask(),F.current&&D.animationState&&D.animationState.animateChanges())}),z.useEffect(()=>{D&&(!F.current&&D.animationState&&D.animationState.animateChanges(),F.current&&(queueMicrotask(()=>{var W;(W=window.MotionHandoffMarkAsComplete)==null||W.call(window,b)}),F.current=!1),D.enteringChildren=void 0)}),D}function fw(n,r,s,a){const{layoutId:u,layout:f,drag:d,dragConstraints:h,layoutScroll:g,layoutRoot:v,layoutAnchor:y,layoutCrossfade:x}=r;n.projection=new s(n.latestValues,r["data-framer-portal-id"]?void 0:_m(n.parent)),n.projection.setOptions({layoutId:u,layout:f,alwaysMeasureLayout:!!d||h&&xr(h),visualElement:n,animationType:typeof f=="string"?f:"both",initialPromotionConfig:a,crossfade:x,layoutScroll:g,layoutRoot:v,layoutAnchor:y})}function _m(n){if(n)return n.options.allowProjection!==!1?n.projection:_m(n.parent)}function El(n,{forwardMotionProps:r=!1,type:s}={},a,u){a&&K1(a);const f=s?s==="svg":Mu(n),d=f?lw:aw;function h(v,y){let x;const S={...z.useContext(ju),...v,layoutId:hw(v)},{isStatic:C}=S,D=Z1(v),L=d(v,C);if(!C&&typeof window<"u"){pw();const N=mw(S);x=N.MeasureLayout,D.visualElement=dw(n,L,S,u,N.ProjectionNode,f)}return m.jsxs(mo.Provider,{value:D,children:[x&&D.visualElement?m.jsx(x,{visualElement:D.visualElement,...S}):null,iw(n,v,cw(L,D.visualElement,y),L,C,r,f)]})}h.displayName=`motion.${typeof n=="string"?n:`create(${n.displayName??n.name??""})`}`;const g=z.forwardRef(h);return g[uw]=n,g}function hw({layoutId:n}){const r=z.useContext(nu).id;return r&&n!==void 0?r+"-"+n:n}function pw(n,r){z.useContext(Dm).strict}function mw(n){const r=Fm(),{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 gw(n,r){if(typeof Proxy>"u")return El;const s=new Map,a=(f,d)=>El(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,El(d,void 0,n,r)),s.get(d))})}const yw=(n,r)=>r.isSVG??Mu(n)?new Kx(r):new Bx(r,{allowProjection:n!==z.Fragment});class vw extends An{constructor(r){super(r),r.animationState||(r.animationState=Zx(r))}updateAnimationControlsSubscription(){const{animate:r}=this.node.getProps();ho(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 xw=0;class ww extends An{constructor(){super(...arguments),this.id=xw++,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=Kn(this.node,d,h);if(g){const{transition:v,transitionEnd:y,...x}=g;for(const S in x)(f=this.node.getValue(S))==null||f.jump(x[S])}}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 Sw={animation:{Feature:vw},exit:{Feature:ww}};function ji(n){return{point:{x:n.pageX,y:n.pageY}}}const kw=n=>r=>ku(r)&&n(r,ji(r));function wi(n,r,s,a){return Ci(n,r,kw(s),a)}const zm=({current:n})=>n?n.ownerDocument.defaultView:null,Uh=(n,r)=>Math.abs(n-r);function Tw(n,r){const s=Uh(n.x,r.x),a=Uh(n.y,r.y);return Math.sqrt(s**2+a**2)}const Wh=new Set(["auto","scroll"]);class Om{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),D=this.startEvent!==null,L=Tw(C.offset,{x:0,y:0})>=this.distanceThreshold;if(!D&&!L)return;const{point:N}=C,{timestamp:b}=Qe;this.history.push({...N,timestamp:b});const{onStart:F,onMove:P}=this.handlers;D||(F&&F(this.lastMoveEvent,C),this.startEvent=this.lastMoveEvent),P&&P(this.lastMoveEvent,C)},this.handlePointerMove=(C,D)=>{this.lastMoveEvent=C,this.lastRawMoveEventInfo=D,this.lastMoveEventInfo=Ws(D,this.transformPagePoint),we.update(this.updatePoint,!0)},this.handlePointerUp=(C,D)=>{this.end();const{onEnd:L,onSessionEnd:N,resumeAnimation:b}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const F=Pl(C.type==="pointercancel"?this.lastMoveEventInfo:Ws(D,this.transformPagePoint),this.history);this.startEvent&&L&&L(C,F),N&&N(C,F)},!ku(r))return;this.dragSnapToOrigin=f,this.handlers=s,this.transformPagePoint=a,this.distanceThreshold=d,this.contextWindow=u||window;const g=ji(r),v=Ws(g,this.transformPagePoint),{point:y}=v,{timestamp:x}=Qe;this.history=[{...y,timestamp:x}];const{onSessionStart:S}=s;S&&S(r,Pl(v,this.history)),this.removeListeners=Ei(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);(Wh.has(a.overflowX)||Wh.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),we.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 Hh(n,r){return{x:n.x-r.x,y:n.y-r.y}}function Pl({point:n},r){return{point:n,delta:Hh(n,Bm(r)),offset:Hh(n,Cw(r)),velocity:Ew(r,.1)}}function Cw(n){return n[0]}function Bm(n){return n[n.length-1]}function Ew(n,r){if(n.length<2)return{x:0,y:0};let s=n.length-1,a=null;const u=Bm(n);for(;s>=0&&(a=n[s],!(u.timestamp-a.timestamp>yt(r)));)s--;if(!a)return{x:0,y:0};a===n[0]&&n.length>2&&u.timestamp-a.timestamp>yt(r)*2&&(a=n[1]);const f=Ct(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 Pw(n,{min:r,max:s},a){return r!==void 0&&n<r?n=a?Pe(r,n,a.min):Math.max(n,r):s!==void 0&&n>s&&(n=a?Pe(s,n,a.max):Math.min(n,s)),n}function $h(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 Aw(n,{top:r,left:s,bottom:a,right:u}){return{x:$h(n.x,s,u),y:$h(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 jw(n,r){return{x:Gh(n.x,r.x),y:Gh(n.y,r.y)}}function Nw(n,r){let s=.5;const a=st(n),u=st(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 Mw(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 Zl=.35;function Dw(n=Zl){return n===!1?n=0:n===!0&&(n=Zl),{x:Kh(n,"left","right"),y:Kh(n,"top","bottom")}}function Kh(n,r,s){return{min:Yh(n,r),max:Yh(n,s)}}function Yh(n,r){return typeof n=="number"?n:n[r]||0}const Fw=new WeakMap;class Lw{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=We(),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=x=>{s&&this.snapToCursor(ji(x).point),this.stopAnimation()},d=(x,S)=>{const{drag:C,dragPropagation:D,onDragStart:L}=this.getProps();if(C&&!D&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ox(C),!this.openDragLock))return;this.latestPointerEvent=x,this.latestPanInfo=S,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Wt(b=>{let F=this.getAxisMotionValue(b).get()||0;if($t.test(F)){const{projection:P}=this.visualElement;if(P&&P.layout){const R=P.layout.layoutBox[b];R&&(F=st(R)*(parseFloat(F)/100))}}this.originPoint[b]=F}),L&&we.update(()=>L(x,S),!1,!0),Wl(this.visualElement,"transform");const{animationState:N}=this.visualElement;N&&N.setActive("whileDrag",!0)},h=(x,S)=>{this.latestPointerEvent=x,this.latestPanInfo=S;const{dragPropagation:C,dragDirectionLock:D,onDirectionLock:L,onDrag:N}=this.getProps();if(!C&&!this.openDragLock)return;const{offset:b}=S;if(D&&this.currentDirection===null){this.currentDirection=Iw(b),this.currentDirection!==null&&L&&L(this.currentDirection);return}this.updateAxis("x",S.point,b),this.updateAxis("y",S.point,b),this.visualElement.render(),N&&we.update(()=>N(x,S),!1,!0)},g=(x,S)=>{this.latestPointerEvent=x,this.latestPanInfo=S,this.stop(x,S),this.latestPointerEvent=null,this.latestPanInfo=null},v=()=>{const{dragSnapToOrigin:x}=this.getProps();(x||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:y}=this.getProps();this.panSession=new Om(r,{onSessionStart:f,onStart:d,onMove:h,onSessionEnd:g,resumeAnimation:v},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,distanceThreshold:a,contextWindow:zm(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&&we.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=Pw(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&&xr(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&a?this.constraints=Aw(a.layoutBox,r):this.constraints=!1,this.elastic=Dw(s),u!==this.constraints&&!xr(r)&&a&&this.constraints&&!this.hasMutatedConstraints&&Wt(d=>{this.constraints!==!1&&this.getAxisMotionValue(d)&&(this.constraints[d]=Mw(a.layoutBox[d],this.constraints[d]))})}resolveRefConstraints(){const{dragConstraints:r,onMeasureDragConstraints:s}=this.getProps();if(!r||!xr(r))return!1;const a=r.current,{projection:u}=this.visualElement;if(!u||!u.layout)return!1;const f=Ix(a,u.root,this.visualElement.getTransformPagePoint());let d=jw(u.layout.layoutBox,f);if(s){const h=s(Fx(d));this.hasMutatedConstraints=!!h,h&&(d=lm(h))}return d}startAnimation(r){const{drag:s,dragMomentum:a,dragElastic:u,dragTransition:f,dragSnapToOrigin:d,onDragTransitionEnd:h}=this.getProps(),g=this.constraints||{},v=Wt(y=>{if(!Hs(y,s,this.currentDirection))return;let x=g&&g[y]||{};(d===!0||d===y)&&(x={min:0,max:0});const S=u?200:1e6,C=u?40:1e7,D={type:"inertia",velocity:a?r[y]:0,bounceStiffness:S,bounceDamping:C,timeConstant:750,restDelta:1,restSpeed:10,...f,...x};return this.startAxisValueAnimation(y,D)});return Promise.all(v).then(h)}startAxisValueAnimation(r,s){const a=this.getAxisMotionValue(r);return Wl(this.visualElement,r),a.start(yu(r,a,0,s,this.visualElement,!1))}stopAnimation(){Wt(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){Wt(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]-Pe(d,h,.5)+g)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:r,dragConstraints:s}=this.getProps(),{projection:a}=this.visualElement;if(!xr(s)||!a||!this.constraints)return;this.stopAnimation();const u={x:0,y:0};Wt(d=>{const h=this.getAxisMotionValue(d);if(h&&this.constraints!==!1){const g=h.get();u[d]=Nw({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(),Wt(d=>{if(!Hs(d,r,null))return;const h=this.getAxisMotionValue(d),{min:g,max:v}=this.constraints[d];h.set(Pe(g,v,u[d]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Fw.set(this.visualElement,this);const r=this.visualElement.current,s=wi(r,"pointerdown",v=>{const{drag:y,dragListener:x=!0}=this.getProps(),S=v.target,C=S!==r&&fx(S);y&&x&&!C&&this.start(v)});let a;const u=()=>{const{dragConstraints:v}=this.getProps();xr(v)&&v.current&&(this.constraints=this.resolveRefConstraints(),a||(a=Rw(r,v.current,()=>this.scalePositionWithinConstraints())))},{projection:f}=this.visualElement,d=f.addEventListener("measure",u);f&&!f.layout&&(f.root&&f.root.updateScroll(),f.updateLayout()),we.read(u);const h=Ci(window,"resize",()=>this.scalePositionWithinConstraints()),g=f.addEventListener("didUpdate",(({delta:v,hasLayoutChanged:y})=>{this.isDragging&&y&&(Wt(x=>{const S=this.getAxisMotionValue(x);S&&(this.originPoint[x]+=v[x].translate,S.set(S.get()+v[x].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=Zl,dragMomentum:h=!0}=r;return{...r,drag:s,dragDirectionLock:a,dragPropagation:u,dragConstraints:f,dragElastic:d,dragMomentum:h}}}function Xh(n){let r=!0;return()=>{if(r){r=!1;return}n()}}function Rw(n,r,s){const a=nh(n,Xh(s)),u=nh(r,Xh(s));return()=>{a(),u()}}function Hs(n,r,s){return(r===!0||r===n)&&(s===null||s===n)}function Iw(n,r=10){let s=null;return Math.abs(n.y)>r?s="y":Math.abs(n.x)>r&&(s="x"),s}class Vw extends An{constructor(r){super(r),this.removeGroupControls=Et,this.removeListeners=Et,this.controls=new Lw(r)}mount(){const{dragControls:r}=this.node.getProps();r&&(this.removeGroupControls=r.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Et}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&&we.update(()=>n(r,s),!1,!0)};class bw extends An{constructor(){super(...arguments),this.removePointerDownListener=Et}onPointerDown(r){this.session=new Om(r,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:zm(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&&we.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 jl=!1;class _w extends z.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),jl&&f.root.didUpdate(),f.addEventListener("animationComplete",()=>{this.safeToRemove()}),f.setOptions({...f.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),eo.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}),jl=!0,u||r.layoutDependency!==s||s===void 0||r.isPresent!==f?d.willUpdate():this.safeToRemove(),r.isPresent!==f&&(f?d.promote():d.relegate()||we.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;jl=!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 Um(n){const[r,s]=Mm(),a=z.useContext(nu);return m.jsx(_w,{...n,layoutGroup:a,switchLayoutGroup:z.useContext(bm),isPresent:r,safeToRemove:s})}const zw={pan:{Feature:bw},drag:{Feature:Vw,ProjectionNode:Nm,MeasureLayout:Um}};function Qh(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&&we.postRender(()=>f(r,ji(r)))}class Ow extends An{mount(){const{current:r}=this.node;r&&(this.unmount=lx(r,(s,a)=>(Qh(this.node,a,"Start"),u=>Qh(this.node,u,"End"))))}unmount(){}}class Bw 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=Ei(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&&we.postRender(()=>f(r,ji(r)))}class Uw extends An{mount(){const{current:r}=this.node;if(!r)return;const{globalTapTarget:s,propagate:a}=this.node.props;this.unmount=px(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 Jl=new WeakMap,Nl=new WeakMap,Ww=n=>{const r=Jl.get(n.target);r&&r(n)},Hw=n=>{n.forEach(Ww)};function $w({root:n,...r}){const s=n||document;Nl.has(s)||Nl.set(s,{});const a=Nl.get(s),u=JSON.stringify(r);return a[u]||(a[u]=new IntersectionObserver(Hw,{root:n,...r})),a[u]}function Gw(n,r,s){const a=$w(r);return Jl.set(n,s),a.observe(n),()=>{Jl.delete(n),a.unobserve(n)}}const Kw={some:0,all:1};class Yw 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:Kw[u]},h=v=>{const{isIntersecting:y}=v;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:x,onViewportLeave:S}=this.node.getProps(),C=y?x:S;C&&C(v)};this.stopObserver=Gw(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(Xw(r,s))&&this.startObserver()}unmount(){var r;(r=this.stopObserver)==null||r.call(this),this.hasEnteredView=!1,this.isInView=!1}}function Xw({viewport:n={}},{viewport:r={}}={}){return s=>n[s]!==r[s]}const Qw={inView:{Feature:Yw},tap:{Feature:Uw},focus:{Feature:Bw},hover:{Feature:Ow}},qw={layout:{ProjectionNode:Nm,MeasureLayout:Um}},Zw={...Sw,...Qw,...zw,...qw},fe=gw(Zw,yw);/**
|
||
* @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=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Wm=(...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 eS={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 tS=z.forwardRef(({color:n="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:a,className:u="",children:f,iconNode:d,...h},g)=>z.createElement("svg",{ref:g,...eS,width:r,height:r,stroke:n,strokeWidth:a?Number(s)*24/Number(r):s,className:Wm("lucide",u),...h},[...d.map(([v,y])=>z.createElement(v,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 He=(n,r)=>{const s=z.forwardRef(({className:a,...u},f)=>z.createElement(tS,{ref:f,iconNode:r,className:Wm(`lucide-${Jw(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 eu=He("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 Hm=He("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 $m=He("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 nS=He("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/**
|
||
* @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 rS=He("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
|
||
* @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 Gm=He("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 Zh=He("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
|
||
* @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 iS=He("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 Jh=He("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 sS=He("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 oS=He("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 ep=He("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 aS=He("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
||
* @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 lS=He("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 uS=He("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 cS=He("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
||
* @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 Km=He("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
|
||
* @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 dS=He("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
|
||
* @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 fS=He("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Rt={name:"Khoa.vo",title:"CREATIVE MANAGER & AI INNOVATION LEAD",location:"Ho Chi Minh City, Vietnam",phone:"0398300340",email:"vonguyendangkhoa@gmail.com",linkedin:"linkedin.com/in/khoavo",portfolio:"khoavo.myds.me",summaryHeadline:"Visionary Creative Leader merging Brand Strategy with Generative AI.",summaryBody:`With 9+ years of expertise at global firms like P&G and Phibious, I bridge the gap between artistic direction and high-performance automation. I specialize in designing scalable AI video production workflows and agentic systems that serve Fortune 500 brands while driving measurable growth and operational excellence.
|
||
|
||
Beyond traditional creative direction, my recent evolution into an AI-Powered Developer enables me to architect custom web applications and full-stack deployment pipelines (React, Go, Docker). By unifying deep brand-building experience with hands-on coding and machine learning integration, I transform creative conceptualization into quantifiable, automated, and highly scalable digital realities.`},$s=[{period:"2012 - 2016",school:"RMIT University",degree:"Bachelor of Multimedia Design",details:"Graduated with Excellence."}],hS=["Creative Direction","Brand Strategy","Team Mentorship","GenAI Workflows","ComfyUI & FLUX","AI Video Systems","Adobe Creative Suite","Motion Graphics","3D Visualization","Full-Stack Dev","Agentic AI","Automation SOPs"],pS=[{role:"AI Creative Lead",company:"Phibious Vietnam",period:"Jun 2025 - Present",highlights:["Spearheaded the transformation of video production workflows via AI and automation, achieving a 60% measurable gain in output volume.","Acted as a creative multiplier, leading regional stakeholders and cross-functional teams to automate end-to-end content lifecycles.","Standardized end-to-end AI video production SOPs—ranging from AI-led scripting to automated localization—ensuring brand compliance across Southeast Asian markets.","Drove Regional Enablement by mentoring 20+ producers on prompt engineering, AI ethics, and workflow standardization."]},{role:"eCOM Design Lead",company:"Procter & Gamble",period:"Sep 2023 - Jun 2025",highlights:["Directed visual strategies for P&G's Hair Care portfolio across SEA, impacting millions of consumers effectively.","Managed end-to-end design lifecycles, ensuring strict brand compliance and high-volume output across regional markets.","Collaborated with global brand teams to localize and scale omnichannel retail experiences."]},{role:"Associate Brand Manager (Design)",company:"P&G Vietnam",period:"Nov 2020 - Sep 2023",highlights:["Developed core visual concepts for major product launches, including packaging and digital touchpoints for regional SEA markets.","Optimized internal design processes, reducing asset turnaround time for regional marketing teams by 30%.","Mastered corporate identity systems, ensuring consistent brand expression across all platforms and physical retail environments."]},{role:"Production Creative Lead",company:"Inn Saigon",period:"Dec 2019 - Nov 2020",highlights:["Directed a multi-disciplinary team of photographers and retouchers for high-profile hospitality clients.","Managed production budgets and resource allocation for 30+ simultaneous client accounts.","Implemented quality control frameworks that reduced post-production errors by 40%."]}],mS=[{name:"KV-Tube",tech:"Go, Next.js, Docker",desc:"Enterprise-grade HLS video streaming platform with custom NAS deployment architecture."},{name:"APIx GenAI",tech:"TypeScript, LLM APIs",desc:"A custom AI image generation portal integrating multiple LLM and Diffusion providers."}],tp=({size:n=100,vnColor:r="#000000",dkColor:s="#333333"})=>m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",width:n,height:n,fill:"none",strokeWidth:"6",strokeLinecap:"round",strokeLinejoin:"round",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"})]}),ce={accent:"#222222",black:"#000000",white:"#FFFFFF",grey:"#444444",muted:"#666666",border:"#DDDDDD"},ae={container:{width:"100%",maxWidth:"210mm",background:ce.white,fontFamily:"'Inter', sans-serif",color:ce.black,margin:"0 auto",boxSizing:"border-box",display:"flex",flexDirection:"column",position:"relative",zIndex:1},documentContainer:{padding:"0",backgroundColor:ce.white,display:"flex",flexDirection:"column"},headerWrapper:{backgroundColor:ce.white,padding:"16mm 18mm 12mm 18mm",width:"100%",boxSizing:"border-box",borderTop:`6mm solid ${ce.black}`,borderBottom:`1px solid ${ce.border}`,marginBottom:"10mm"},topHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"10mm"},logoSlot:{border:`2px solid ${ce.black}`,padding:"2mm",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:ce.white},nameTitle:{display:"flex",flexDirection:"column",flex:1,marginLeft:"12mm"},name:{fontSize:"28pt",fontWeight:800,letterSpacing:"-0.02em",color:ce.black,marginBottom:"1mm"},title:{fontSize:"12pt",fontWeight:700,color:ce.muted,letterSpacing:"0.08em",textTransform:"uppercase"},contactInfo:{textAlign:"right",fontSize:"9pt",fontWeight:600,color:ce.black,lineHeight:"1.8"},headerLine:{width:"100%",height:"1.5px",backgroundColor:ce.black,margin:"8mm 0 4mm 0",position:"relative"},headerLineAccent:{position:"absolute",right:"0",top:"0",width:"30%",height:"1.5px",backgroundColor:ce.accent},summaryHeadline:{fontSize:"22pt",fontWeight:800,lineHeight:"1.2",marginBottom:"8mm",color:ce.black,maxWidth:"90%"},summaryParagraph:{fontSize:"11pt",color:ce.grey,marginBottom:"12mm",textAlign:"justify",lineHeight:"1.7",whiteSpace:"pre-wrap"},skillsGrid:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"3mm 10mm"},skillItem:{fontSize:"10pt",display:"flex",alignItems:"center",gap:"4mm",fontWeight:600},skillIcon:{width:"6mm",height:"1.5px",backgroundColor:ce.accent},mainBody:{padding:"0 18mm",flex:1},sectionHeading:{fontSize:"11pt",fontWeight:900,textTransform:"uppercase",letterSpacing:"0.2em",marginBottom:"10mm",color:ce.black,borderLeft:`5mm solid ${ce.accent}`,paddingLeft:"5mm",pageBreakAfter:"avoid",breakAfter:"avoid"},experienceRow:{display:"grid",gridTemplateColumns:"1.3fr 2fr",gap:"12mm",marginBottom:"12mm"},experienceMeta:{display:"flex",flexDirection:"column"},expRole:{fontSize:"13pt",fontWeight:800,marginBottom:"2mm"},expCompany:{fontSize:"10.5pt",fontWeight:600,color:ce.muted},expPeriod:{fontSize:"9.5pt",color:ce.muted,marginTop:"3mm",fontFamily:"monospace",fontWeight:"bold"},expHighlights:{margin:0,paddingLeft:"6mm",listStyleType:"none"},highlightItem:{marginBottom:"4mm",textAlign:"justify",fontSize:"10.5pt",position:"relative",lineHeight:"1.6",pageBreakInside:"avoid",breakInside:"avoid"},highlightBullet:{position:"absolute",left:"-6mm",top:"2.5mm",width:"3.5mm",height:"1px",backgroundColor:ce.accent},techMeta:{fontFamily:"monospace",fontSize:"10pt",color:ce.black,backgroundColor:ce.white,padding:"1.5mm 3mm",borderLeft:`2px solid ${ce.accent}`,border:`1px solid ${ce.border}`,marginTop:"3mm"},footer:{marginTop:"10mm",padding:"10mm 18mm",textAlign:"center",fontSize:"9pt",color:ce.muted,borderTop:`1px solid ${ce.border}`,display:"flex",justifyContent:"space-between",alignItems:"center",pageBreakInside:"avoid",breakInside:"avoid"}};function gS(){return Rt?m.jsx("div",{style:ae.container,className:"print-portfolio-content",children:m.jsxs("div",{style:ae.documentContainer,children:[m.jsxs("div",{style:ae.headerWrapper,children:[m.jsxs("div",{style:ae.topHeader,children:[m.jsx("div",{style:ae.logoSlot,children:m.jsx(tp,{size:64})}),m.jsxs("div",{style:ae.nameTitle,children:[m.jsx("h1",{style:ae.name,children:Rt.name}),m.jsx("div",{style:ae.title,children:Rt.title})]}),m.jsxs("div",{style:ae.contactInfo,children:[m.jsx("div",{children:Rt.email}),m.jsx("div",{children:Rt.phone}),m.jsx("div",{style:{color:ce.muted,textDecoration:"underline"},children:Rt.portfolio})]})]}),m.jsx("div",{style:ae.headerLine,children:m.jsx("div",{style:ae.headerLineAccent})}),m.jsx("div",{style:{...ae.expPeriod,marginBottom:"10mm",textAlign:"right"},children:Rt.location}),m.jsx("h2",{style:ae.summaryHeadline,children:Rt.summaryHeadline}),m.jsx("p",{style:ae.summaryParagraph,children:Rt.summaryBody}),m.jsx("div",{style:{marginBottom:"8mm",fontSize:"10.5pt",fontWeight:900,textTransform:"uppercase",color:ce.black,letterSpacing:"0.15em"},children:"Branded Expertise"}),m.jsx("div",{style:ae.skillsGrid,children:hS.map((n,r)=>m.jsxs("div",{style:ae.skillItem,children:[m.jsx("div",{style:ae.skillIcon}),n]},r))})]}),m.jsxs("div",{style:ae.mainBody,children:[m.jsx("div",{style:ae.sectionHeading,children:"Experience Journey"}),pS.map((n,r)=>m.jsxs("div",{style:ae.experienceRow,children:[m.jsxs("div",{style:ae.experienceMeta,children:[m.jsx("div",{style:ae.expRole,children:n.role}),m.jsx("div",{style:ae.expCompany,children:n.company}),m.jsx("div",{style:ae.expPeriod,children:n.period})]}),m.jsx("ul",{style:ae.expHighlights,children:n.highlights&&n.highlights.map((s,a)=>m.jsxs("li",{style:ae.highlightItem,children:[m.jsx("div",{style:ae.highlightBullet}),s]},a))})]},r)),m.jsx("div",{style:{...ae.sectionHeading,marginTop:"8mm"},children:"Branded Systems & Tech"}),mS.map((n,r)=>m.jsxs("div",{style:ae.experienceRow,children:[m.jsxs("div",{style:ae.experienceMeta,children:[m.jsx("div",{style:{...ae.expRole,fontSize:"12pt"},children:n.name}),m.jsx("div",{style:ae.techMeta,children:n.tech})]}),m.jsx("div",{style:{fontSize:"11pt",color:ce.grey,lineHeight:"1.7"},children:n.desc})]},r)),m.jsx("div",{style:{...ae.sectionHeading,marginTop:"8mm"},children:"Foundation & Recognition"}),m.jsxs("div",{style:ae.experienceRow,children:[m.jsxs("div",{style:ae.experienceMeta,children:[m.jsx("div",{style:ae.expRole,children:$s[0].school}),m.jsx("div",{style:ae.expPeriod,children:$s[0].period})]}),m.jsxs("div",{style:{fontSize:"11pt",color:ce.grey},children:[m.jsx("strong",{style:{color:ce.black},children:$s[0].degree})," (",$s[0].details,")",m.jsx("br",{}),m.jsx("div",{style:{marginTop:"6mm",borderTop:`1px solid ${ce.border}`,paddingTop:"4mm"},children:m.jsx("div",{style:{display:"grid",gridTemplateColumns:"1fr",gap:"3mm"},children:m.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"3mm"},children:[m.jsx("div",{style:{...ae.skillIcon,width:"4mm"}}),m.jsx("span",{children:"P&G SEA Digital Awards (Best Digital Campaign, 2024)"})]})})})]})]})]}),m.jsxs("div",{style:ae.footer,children:[m.jsxs("div",{style:{display:"flex",gap:"6mm"},children:[m.jsx("span",{children:Rt.linkedin}),m.jsx("span",{children:Rt.portfolio})]}),m.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4mm"},children:[m.jsx(tp,{size:24}),m.jsx("span",{style:{fontWeight:900,color:ce.black},children:"VNDK // CV"})]})]})]})}):null}const Un={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/"},Ut={title:"Creative Manager & AI Innovation Lead",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:"FASHION Pipeline: Ideas 2 Execution",category:"AI Video Creation",image:"https://portfolio.khoavo.myds.me/wp-content/uploads/2026/04/Gemini_Generated_Image_vmk4e2vmk4e2vmk4-1-scaled.png",description:"End-to-end AI fashion workflow from concept to video. Ideas -> System prompt instructions -> Scale up structures for repeatable production. Building a complete creative pipeline.",link:"https://portfolio.khoavo.myds.me/2026/04/25/fashion-pipeline-ideas-2-execution/",year:"2026"},{id:2,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. Capturing the feeling of looking through glass — that quiet distance between the outside world and the person inside.",link:"https://portfolio.khoavo.myds.me/2025/08/28/the-language-of-poetry-and-literature/",year:"2025"},{id:3,title:"Evolving My AI Art Workflow: Better Control",category:"AI Generated Art",image:"https://portfolio.khoavo.myds.me/wp-content/uploads/2025/08/537657171_24322581567428756_3673426611845520713_n.jpg",description:"Iterating on AI image generation process with new combinations for precise control over final output, particularly when training LoRA models for consistent character generation.",link:"https://portfolio.khoavo.myds.me/2025/08/27/evolving-my-ai-art-workflow-tweaking-for-better-control/",year:"2025"},{id:4,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 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:5,title:"Behind the Prompt – AI Video Creation",category:"AI Video Creation",image:"https://portfolio.khoavo.myds.me/wp-content/uploads/2025/07/94afe9e65b1ceeee.jpg",description:"Creating Apple-style AI advert entirely from text prompt. Journey into AI video creation - ever wondered how a skincare commercial can be made entirely from a single structured prompt?",link:"https://portfolio.khoavo.myds.me/2025/07/31/%f0%9f%8c%b8%e2%9c%a8-behind-the-prompt-my-journey-into-ai-video-creation-%e2%9c%a8%f0%9f%8c%b8/",year:"2025"},{id:6,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:7,title:"A Photo with Feeling is Hard",category:"AI Generated Art",image:"https://portfolio.khoavo.myds.me/wp-content/uploads/2025/07/img_0327-1.png",description:"When people see your work, they don't ask what prompt you used. They ask: Why does this FEEL different? Exploring the emotional depth in AI-generated imagery.",link:"https://portfolio.khoavo.myds.me/2025/07/27/%e2%9c%a8-a-beautiful-photo-is-easy-a-photo-with-feeling-is-hard/",year:"2025"},{id:8,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.",link:"https://portfolio.khoavo.myds.me/2020/10/20/navigator/",year:"2020"},{id:9,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 under tight deadlines.",link:"https://portfolio.khoavo.myds.me/2019/02/17/skyxx-poster-animation/",year:"2019"},{id:10,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.",link:"https://portfolio.khoavo.myds.me/2017/04/10/petrovietnam-pct/",year:"2017"}],experience:[{role:"AI CREATIVE LEAD",company:"Phibious Vietnam",period:"2025 - Present",location:"Ho Chi Minh City, Vietnam",highlights:["Spearheaded the transformation of video production workflows via AI and automation, achieving a 60% measurable gain in output volume across all regional campaigns.","Acted as a creative multiplier, leading regional stakeholders and cross-functional teams (marketing, digital, and creative) to automate end-to-end content lifecycles from concept to delivery.","Designed and deployed Agentic AI systems and custom frameworks for rapid concept-to-video prototyping, serving global Fortune 500 brands including premium beauty, fashion, and consumer goods sectors.","Standardized end-to-end AI video production SOPs—ranging from AI-led scripting and storyboarding to automated localization—ensuring brand compliance across Southeast Asian markets.","Drove Regional Enablement by establishing SOPs and mentoring 20+ producers on prompt engineering, AI ethics, and workflow standardization.","Pioneered the integration of ComfyUI, FLUX, and Stable Diffusion into traditional creative workflows, reducing concept-to-execution time by 70%.","Collaborated with international creative directors to translate brand visions into AI-augmented visual narratives that maintain emotional authenticity while achieving production scale."]},{role:"ECOMMERCE DESIGN LEAD",company:"Procter & Gamble (P&G)",period:"2020 - 2025",location:"Ho Chi Minh City, Vietnam",highlights:["Led visual strategy for eCommerce platforms across Hair Care category (Head & Shoulders, Pantene, Clear), directly impacting millions of consumers in Southeast Asia through digital shelf optimization.","Managed end-to-end design projects from concept to execution, aligning with global marketing strategies while adapting for local market nuances across 6 SEA markets.","Spearheaded the digital transformation of brand assets for omnichannel retail experiences, bridging the gap between physical retail and D2C eCommerce touchpoints.","Collaborated with global brand teams to localize and scale omnichannel retail experiences for P&G's premium beauty portfolio.","Mentored junior designers and established design standards adopted across the regional team, creating a unified visual language for SEA markets.","Led the development of modular design systems enabling 3x faster content adaptation for new product launches across markets.","Pioneered data-informed creative approaches, using consumer insights to drive visual decisions that increased conversion rates by measurable percentages."]},{role:"PRODUCTION CREATIVE LEAD",company:"INN SaiGon",period:"Dec 2019 - Nov 2020",location:"Ho Chi Minh City, Vietnam",highlights:["Directed photography production for food, product, and event projects with 30+ client accounts across hospitality, F&B, and luxury retail sectors.","Established comprehensive brand guidelines and visual standards ensuring consistency across all client deliverables.","Optimized post-production workflows using advanced retouching techniques and batch processing, reducing turnaround time by 40%.","Built and managed a multi-disciplinary team of photographers, stylists, and retouchers for high-profile shoots.","Implemented quality control frameworks that reduced post-production errors by 40%, improving client satisfaction scores.","Developed innovative lighting and styling approaches that became signature INN aesthetics for premium hospitality campaigns."]},{role:"REGIONAL HEAD OF DESIGN",company:"ASIAMARINE",period:"2018 - 2019",location:"Ho Chi Minh City, Vietnam",highlights:["Led design team creating digital marketing assets, web graphics, and editorial content for Vietnam's premier luxury yacht brand.","Delegated projects to junior designers while maintaining quality control and brand consistency across all touchpoints.","Collaborated with international teams to localize content for Asian markets, adapting luxury messaging for cultural resonance.","Created multi-channel visual campaigns spanning print, digital, and event activations that elevated ASIAMARINE's regional presence.","Developed the visual identity system that defined ASIAMARINE's premium positioning in the for regional marine lifestyle sector."]},{role:"SENIOR GRAPHIC DESIGNER",company:"EMG - Element Management Group",period:"2017 - 2018",location:"Ho Chi Minh City, Vietnam",highlights:["Created impactful designs for print and digital campaigns for global luxury and lifestyle brands including hospitality, automotive, and premium retail.","Expert in photo sourcing, advanced image retouching, and brand identity development for both regional and international clients.","Delivered corporate identity packages for multinational clients seekingVietnam market entry.","Collaborated with international creative directors to adapt global campaigns for local market sensibilities.","Developed production-ready artwork for offset and digital print, ensuring color accuracy across media."]}]},mi={summary:"14-month intensive coding journey from zero to production. Built 10+ deployed applications including video streaming platforms, AI tools, and media 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 apix 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:"MAR '25",title:"Netflix Clone",description:"Built kv-netflix Android TV + Web app with Kotlin Multiplatform."},{month:"PRESENT",title:"Vibe Ascended",description:"Building complex apps through high-level prompting and intuition."}],skills:{languages:["TypeScript","JavaScript","Go","Rust","Python","Kotlin","HTML/CSS","SQL"],frontend:["React","Next.js","Vite","Tailwind CSS","Shadcn","Framer Motion","Zustand","PWA","Jetpack Compose"],backend:["Node.js","Go (Gin)","Rust (Axum)","Express","REST APIs","WebSocket","Ktor"],ai:["LLM Integration","Cursor AI","v0","Replit AI","Ollama","Prompt Engineering","Multi-Provider AI APIs","ComfyUI"],devops:["Docker","Docker Compose","GitHub Actions","Forgejo CI/CD","Synology NAS","Nginx","SQLite","Git"],tools:["Git","VS Code","Figma","Postman","MongoDB","Prisma","ffmpeg","Android Studio"]},projects:[{name:"kv-netflix",description:"StreamFlow Netflix - Android TV + Web App built with Kotlin Multiplatform. Movie streaming with trailer preview, custom playlists, and offline download support.",tech:["Kotlin","Compose Multiplatform","Android TV","Web","PWA"],github:"https://git.khoavo.myds.me/vndangkhoa/kv-netflix"},{name:"kv-tube",description:"YouTube-like video streaming platform with HLS support, subscriptions, watch history, comments, 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:"neko",description:"Go-based media server with streaming capabilities and user management. Deployed on NAS.",tech:["Go","SQLite","Docker","HLS"],github:"https://git.khoavo.myds.me/vndangkhoa/neko"},{name:"kv-download",description:"Universal video downloader API supporting multiple platforms with batch processing.",tech:["Go","yt-dlp","Docker"],github:"https://git.khoavo.myds.me/vndangkhoa/kv-download"},{name:"kv-tiktok-download",description:"Douyin/TikTok video download API with batch processing, watermarks removal, and metadata extraction.",tech:["Python","FastAPI","yt-dlp"],github:"https://git.khoavo.myds.me/vndangkhoa/kv-tiktok-download"},{name:"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:"kv-cv",description:"This terminal-style interactive resume with retro desktop UI and draggable windows.",tech:["React","Vite","Tailwind","Framer Motion","TypeScript"],github:"https://git.khoavo.myds.me/vndangkhoa/kv-cv"}],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","Deploy AI apps on enterprise infrastructure"]},{role:"Freelance Developer",company:"Self-Employed",period:"2024 - Present",highlights:["Built 10+ 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"]}]},Du=({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"})]}),yS=({onSelect:n,darkMode:r,toggleTheme:s})=>{const[a,u]=z.useState(!1);return z.useEffect(()=>{const f=()=>u(window.innerWidth<768);return f(),window.addEventListener("resize",f),()=>window.removeEventListener("resize",f)},[]),m.jsxs(fe.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 overflow-hidden bg-[var(--bg-primary)] text-[var(--text-primary)]",children:[m.jsx("button",{onClick:s,className:"absolute top-6 right-6 md:top-8 md:right-8 z-[100] p-2.5 md:p-3 rounded-full border border-[var(--border)] opacity-40 hover:opacity-100 transition-all hover:scale-110",title:r?"Light mode":"Dark mode",children:r?m.jsx(cS,{size:16}):m.jsx(aS,{size:16})}),m.jsxs("div",{className:"absolute inset-0 pointer-events-none",children:[m.jsx("div",{className:"absolute top-[20%] left-0 right-0 h-[1px] bg-[var(--grid-color)]"}),m.jsx("div",{className:"absolute top-[80%] left-0 right-0 h-[1px] bg-[var(--grid-color)]"}),m.jsx("div",{className:"absolute left-[25%] md:left-[25%] top-0 bottom-0 w-[1px] bg-[var(--grid-color)]"}),!a&&m.jsx("div",{className:"absolute left-[50%] top-0 bottom-0 w-[1px] bg-[var(--grid-color)]"}),m.jsx("div",{className:"absolute left-[75%] md:left-[75%] top-0 bottom-0 w-[1px] bg-[var(--grid-color)]"}),[20,80].map(f=>(a?[25,75]:[25,50,75]).map(d=>m.jsx("div",{className:"absolute w-1 h-1 bg-[var(--text-muted)] opacity-20 rounded-full -translate-x-1/2 -translate-y-1/2",style:{left:`${d}%`,top:`${f}%`}},`${d}-${f}`)))]}),m.jsx("div",{className:"relative z-10 w-full h-full flex flex-col items-center justify-center px-6",children:m.jsxs(fe.div,{initial:{y:20,opacity:0},animate:{y:0,opacity:1},transition:{duration:1.2,ease:[.16,1,.3,1]},className:"max-w-4xl w-full text-center",children:[m.jsx(fe.div,{className:"mb-8 md:mb-12 flex justify-center",whileHover:{scale:1.02},transition:{type:"spring",stiffness:400,damping:10},children:m.jsx(Du,{size:a?100:140,vnColor:r?"#FFFFFF":"#1A1A1A",dkColor:"#00FF94",className:"drop-shadow-sm"})}),m.jsx(fe.p,{initial:{opacity:0},animate:{opacity:.6},transition:{duration:1,delay:.5},className:"text-[10px] md:text-sm font-creative-sans tracking-[0.3em] md:tracking-[0.4em] uppercase mb-12 md:mb-16 px-4",children:"where design meets intelligence"}),m.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-center gap-8 md:gap-24",children:[m.jsxs(fe.button,{onClick:()=>n("creative"),initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.8},className:"group relative",children:[m.jsx("span",{className:"text-xs md:text-sm font-display font-bold tracking-[0.2em] uppercase transition-colors group-hover:text-[var(--text-muted)]",children:"Creative Portfolio"}),m.jsx(fe.div,{className:"absolute -bottom-2 left-0 right-0 h-[2px] bg-[var(--text-primary)] origin-left",initial:{scaleX:0},whileHover:{scaleX:1},transition:{duration:.4}})]}),m.jsxs(fe.button,{onClick:()=>n("it"),initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{delay:1},className:"group relative",children:[m.jsx("span",{className:"text-xs md:text-sm font-display font-bold tracking-[0.2em] uppercase transition-colors group-hover:text-[var(--accent-it)]",children:"IT Portfolio"}),m.jsx(fe.div,{className:"absolute -bottom-2 left-0 right-0 h-[2px] bg-[var(--accent-it)] origin-left",initial:{scaleX:0},whileHover:{scaleX:1},transition:{duration:.4}})]})]})]})}),m.jsxs("div",{className:"absolute bottom-6 md:bottom-8 left-6 right-6 md:left-8 md:right-8 flex justify-between items-end",children:[m.jsxs("div",{className:"text-[8px] md:text-[10px] font-creative-sans tracking-widest opacity-30 uppercase text-left leading-relaxed",children:["Art Direction",m.jsx("br",{}),"AI Engineering",m.jsx("br",{}),"Full Stack Dev"]}),m.jsxs("div",{className:"text-[8px] md:text-[10px] font-creative-sans tracking-widest opacity-30 uppercase text-right leading-relaxed",children:["Based in HCMC",m.jsx("br",{}),"Vietnam",m.jsx("br",{}),"© 2026"]})]})]})},vS=({onComplete:n})=>{const r=z.useRef(null);return z.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 x=0;x<f;x++){for(let S=0;S<u;S++){const C=Math.sin(S*.05+d)+Math.cos(x*.05+d*.8)+Math.sin((S+x)*.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),v=setTimeout(()=>{clearInterval(g),n()},5e3);return()=>{clearInterval(g),clearTimeout(v)}},[n]),m.jsxs(fe.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-[var(--bg-primary)] flex items-center justify-center overflow-hidden",children:[m.jsx("pre",{ref:r,className:"text-[var(--text-primary)] font-creative-sans 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-[var(--text-primary)] opacity-50 hover:opacity-100 transition-opacity bg-[var(--bg-secondary)] px-4 py-2 backdrop-blur-sm rounded",children:["Click to Skip ",m.jsx("span",{className:"opacity-50",children:"→"})]})]})},xS=({onComplete:n})=>{const[r,s]=z.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 z.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(fe.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:"> ▋"})]})})},wS=({onBack:n,onSwitch:r,darkMode:s,toggleTheme:a})=>{const[u,f]=z.useState(!0),[d,h]=z.useState(!1),[g,v]=z.useState(null),[y,x]=z.useState([]),[S,C]=z.useState("grid"),D="bg-[var(--bg-primary)]",L="text-[var(--text-primary)]",N="text-[var(--text-secondary)]",b="border-[var(--border)]";z.useEffect(()=>{const P=()=>{h(window.scrollY>400)};return window.addEventListener("scroll",P),()=>window.removeEventListener("scroll",P)},[]),z.useEffect(()=>{if(!g)return;const P=Ut.projects,R=P.findIndex(ee=>ee.id===g.id),W=ee=>{if(ee.key==="Escape"&&v(null),ee.key==="ArrowRight"||ee.key==="ArrowDown"){const se=(R+1)%P.length;v(P[se])}if(ee.key==="ArrowLeft"||ee.key==="ArrowUp"){const se=(R-1+P.length)%P.length;v(P[se])}};return window.addEventListener("keydown",W),()=>window.removeEventListener("keydown",W)},[g]);const F=()=>{window.scrollTo({top:0,behavior:"smooth"})};return z.useEffect(()=>{if(u)return;const P=setTimeout(()=>{x(Ut.projects.map(R=>R.id))},500);return()=>clearTimeout(P)},[u]),m.jsxs(m.Fragment,{children:[m.jsx(Cn,{children:u&&m.jsx(vS,{onComplete:()=>f(!1)})}),m.jsxs(fe.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:`min-h-screen ${D} ${L}`,children:[m.jsx("nav",{className:`fixed top-0 left-0 right-0 z-50 ${D}/90 backdrop-blur-sm border-b ${b}`,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 ${N} hover:${L} transition-colors`,children:[m.jsx(eu,{size:18})," ",m.jsx("span",{className:"hidden md:inline",children:"Back"})]}),m.jsx("div",{className:"flex items-center justify-center",children:m.jsx(Du,{size:36,vnColor:s?"#FFFFFF":"#1A1A1A",dkColor:"#00FF94"})}),m.jsxs("div",{className:"flex items-center gap-2 md:gap-3",children:[m.jsxs("button",{onClick:()=>window.print(),className:"px-4 py-2 text-[10px] md:text-xs font-bold uppercase tracking-widest bg-[#00FF94] text-black border border-[#00FF94] rounded-full hover:opacity-80 transition-opacity flex items-center gap-2 font-medium",children:[m.jsx(rS,{size:14}),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 rounded-full transition-colors flex items-center gap-2 ${s?"bg-white text-black hover:bg-white/80":"bg-[#1A1A1A] text-white hover:bg-black"}`,children:[m.jsx(Km,{size:14})," ",m.jsx("span",{className:"hidden md:inline",children:"IT View"}),m.jsx("span",{className:"md:hidden",children:"IT"})]})]})]})}),m.jsx(Cn,{children:d&&m.jsx(fe.button,{initial:{opacity:0,scale:.8,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.8,y:20},onClick:F,className:`fixed bottom-8 right-6 z-50 p-4 rounded-full shadow-2xl md:hidden ${s?"bg-[#00FF94] text-black":"bg-[#1A1A1A] text-white"}`,children:m.jsx($m,{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(fe.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8},children:[m.jsx("p",{className:`text-xs tracking-[0.3em] uppercase mb-4 ${N}`,children:Ut.title}),m.jsx("h1",{className:"text-5xl md:text-7xl font-serif font-bold leading-tight mb-4",children:Ut.tagline}),m.jsx("p",{className:`text-2xl md:text-3xl font-serif mb-8 ${N}`,children:Un.name}),m.jsx("p",{className:`text-lg max-w-2xl leading-relaxed ${N}`,children:Ut.summary}),m.jsxs("div",{className:`flex flex-wrap gap-4 mt-8 text-sm ${N}`,children:[m.jsxs("span",{className:"flex items-center gap-1",children:[m.jsx(Jh,{size:14})," ",Un.location]}),m.jsxs("span",{className:"flex items-center gap-1",children:[m.jsx(ep,{size:14})," ",Un.email]}),m.jsxs("span",{className:"flex items-center gap-1",children:[m.jsx(lS,{size:14})," ",Un.phone]})]})]})}),m.jsxs("section",{className:"max-w-7xl mx-auto px-6 py-16",children:[m.jsxs(fe.div,{initial:{opacity:0},whileInView:{opacity:1},viewport:{once:!0},className:"flex items-center justify-between mb-8",children:[m.jsxs("div",{className:"flex items-center gap-4",children:[m.jsx(sS,{size:20,className:s?"text-[#00FF94]":""}),m.jsx("h2",{className:"text-2xl font-display font-bold",children:"Selected Works"})]}),m.jsx("div",{className:`flex items-center gap-1 rounded-full p-1 ${s?"bg-white/10":"bg-[#1A1A1A]/10"}`,children:["grid","list","minimal"].map(P=>m.jsx("button",{onClick:()=>C(P),className:`px-3 py-1.5 text-[10px] font-medium uppercase tracking-wider rounded-full transition-colors ${S===P?s?"bg-[#00FF94] text-black":"bg-[#1A1A1A] text-white":N}`,children:P},P))})]}),S==="grid"&&m.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:Ut.projects.map((P,R)=>m.jsxs(fe.div,{initial:{opacity:0,y:30},animate:{opacity:y.includes(P.id)?1:0,y:y.includes(P.id)?0:30},transition:{duration:.6,delay:R*.1},className:"group cursor-pointer",onClick:()=>v(P),children:[m.jsxs("div",{className:"relative aspect-[4/3] overflow-hidden bg-slate-200 mb-4 grayscale-blur",children:[m.jsx("img",{src:P.image,alt:P.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 text-black",children:P.year})]}),m.jsx("p",{className:`text-xs tracking-widest uppercase mb-1 ${N}`,children:P.category}),m.jsx("h3",{className:`text-lg font-serif font-semibold transition-colors ${s?"group-hover:text-[#00FF94]":"group-hover:text-[#666]"}`,children:P.title})]},P.id))}),S==="list"&&m.jsx("div",{className:"space-y-4",children:Ut.projects.map((P,R)=>m.jsxs(fe.div,{initial:{opacity:0,x:-20},animate:{opacity:y.includes(P.id)?1:0,x:y.includes(P.id)?0:-20},transition:{duration:.4,delay:R*.05},className:`flex gap-6 p-4 border cursor-pointer group transition-colors ${s?"bg-white/5 border-white/10 hover:border-white/30":"bg-white border-[#1A1A1A]/10 hover:border-[#1A1A1A]/30"}`,onClick:()=>v(P),children:[m.jsx("div",{className:"w-32 h-24 shrink-0 overflow-hidden bg-slate-200 grayscale-blur",children:m.jsx("img",{src:P.image,alt:P.title,className:"w-full h-full object-cover"})}),m.jsxs("div",{className:"flex-1",children:[m.jsx("p",{className:`text-xs tracking-widest uppercase mb-1 ${N}`,children:P.category}),m.jsx("h3",{className:`text-lg font-serif font-semibold transition-colors ${s?"group-hover:text-[#00FF94]":"group-hover:text-[#666]"}`,children:P.title}),m.jsx("p",{className:`text-sm mt-1 line-clamp-2 ${N}`,children:P.description})]}),m.jsx("span",{className:`text-xs self-start ${N}`,children:P.year})]},P.id))}),S==="minimal"&&m.jsx("div",{className:"space-y-0",children:Ut.projects.map((P,R)=>m.jsxs(fe.div,{initial:{opacity:0},animate:{opacity:y.includes(P.id)?1:0},transition:{duration:.3,delay:R*.03},className:`flex items-center justify-between py-3 border-b cursor-pointer group transition-colors ${b} ${s?"hover:bg-white/5":"hover:bg-[#F5F5F5]"}`,onClick:()=>v(P),children:[m.jsxs("div",{className:"flex items-center gap-4",children:[m.jsx("span",{className:`text-xs w-8 ${N}`,children:String(R+1).padStart(2,"0")}),m.jsx("h3",{className:`text-base font-medium transition-colors ${s?"group-hover:text-[#00FF94]":"group-hover:text-[#666]"}`,children:P.title})]}),m.jsxs("div",{className:"flex items-center gap-4",children:[m.jsx("span",{className:`text-xs ${N}`,children:P.category}),m.jsx("span",{className:`text-xs ${N}`,children:P.year})]})]},P.id))})]}),m.jsxs("section",{className:`max-w-7xl mx-auto px-6 py-16 ${s?"bg-white/5":"bg-[#F5F5F5]"}`,children:[m.jsxs(fe.div,{initial:{opacity:0},whileInView:{opacity:1},viewport:{once:!0},className:"flex items-center gap-4 mb-12",children:[m.jsx(uS,{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:Ut.skills.map((P,R)=>m.jsxs(fe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:R*.1},children:[m.jsx("h3",{className:`text-sm font-bold mb-4 pb-2 border-b ${L} ${b}`,children:P.category}),m.jsx("div",{className:"flex flex-wrap gap-2",children:P.items.map(W=>m.jsx("span",{className:`text-xs px-3 py-1 border transition-colors ${s?"bg-white/5 border-white/10 text-white/70":"bg-white border-[#1A1A1A]/10 text-[#666]"}`,children:W},W))})]},P.category))})]}),m.jsxs("section",{className:"max-w-5xl mx-auto px-6 py-16",children:[m.jsxs(fe.div,{initial:{opacity:0},whileInView:{opacity:1},viewport:{once:!0},className:"flex items-center gap-4 mb-12",children:[m.jsx(Hm,{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 ${s?"bg-white/10":"bg-[#1A1A1A]/10"}`}),m.jsx("div",{className:"space-y-10",children:Ut.experience.map((P,R)=>m.jsxs(fe.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:R*.1},className:"relative pl-8",children:[m.jsx("div",{className:`absolute left-[-3px] top-2 w-2 h-2 rounded-full ${s?"bg-[#00FF94]":"bg-[#1A1A1A]"}`}),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 shrink-0 ${N}`,children:P.period}),m.jsxs("div",{children:[m.jsx("h3",{className:`text-xl font-bold ${L}`,children:P.role}),m.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[m.jsx("span",{className:`font-medium ${N}`,children:P.company}),P.location&&m.jsxs(m.Fragment,{children:[m.jsx("span",{className:"text-[#999]",children:"•"}),m.jsx("span",{className:`text-sm ${N}`,children:P.location})]})]})]})]}),m.jsx("ul",{className:"space-y-2 mt-3",children:P.highlights.map((W,ee)=>m.jsxs("li",{className:`leading-relaxed flex items-start gap-2 ${N}`,children:[m.jsx("span",{className:`w-1.5 h-1.5 rounded-full mt-2 shrink-0 ${s?"bg-white/20":"bg-[#1A1A1A]/30"}`}),m.jsx("span",{children:W})]},ee))})]},R))})]})]}),m.jsxs("footer",{className:`max-w-7xl mx-auto px-6 py-16 border-t ${b}`,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:N,children:"Open for creative collaborations and opportunities"})]}),m.jsxs("div",{className:"flex gap-4",children:[m.jsx("a",{href:Un.linkedin,target:"_blank",rel:"noreferrer",className:`p-3 border transition-colors ${s?"border-white/20 hover:bg-white hover:text-black":"border-[#1A1A1A]/20 hover:bg-[#1A1A1A] hover:text-white"}`,children:m.jsx(oS,{size:20})}),m.jsx("a",{href:`mailto:${Un.email}`,className:`p-3 border transition-colors ${s?"border-white/20 hover:bg-white hover:text-black":"border-[#1A1A1A]/20 hover:bg-[#1A1A1A] hover:text-white"}`,children:m.jsx(ep,{size:20})}),m.jsx("a",{href:Un.portfolio,target:"_blank",rel:"noreferrer",className:`p-3 border transition-colors ${s?"border-white/20 hover:bg-white hover:text-black":"border-[#1A1A1A]/20 hover:bg-[#1A1A1A] hover:text-white"}`,children:m.jsx(Jh,{size:20})})]})]}),m.jsxs("p",{className:`text-center text-xs mt-12 ${N}`,children:["© ",new Date().getFullYear()," Vo Nguyen Dang Khoa. All rights reserved."]})]})]}),m.jsx(Cn,{children:g&&m.jsx(fe.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:()=>v(null),children:m.jsxs(fe.div,{initial:{scale:.9,y:20},animate:{scale:1,y:0},exit:{scale:.9,y:20},className:`max-w-4xl w-full rounded-lg overflow-hidden ${s?"bg-[#111] border border-white/10 text-white":"bg-[#FAFAFA] text-[#1A1A1A]"}`,onClick:P=>P.stopPropagation(),children:[m.jsx("img",{src:g.image,alt:g.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 uppercase mb-2 ${N}`,children:g.category}),m.jsx("h3",{className:"text-2xl font-serif font-bold mb-4",children:g.title}),m.jsx("p",{className:`mb-6 ${N}`,children:g.description}),m.jsxs("a",{href:g.link,target:"_blank",rel:"noreferrer",className:`inline-flex items-center gap-2 text-sm font-medium border-b pb-1 hover:opacity-60 ${s?"border-white text-white":"border-[#1A1A1A] text-[#1A1A1A]"}`,children:["View Project ",m.jsx(Gm,{size:14})]})]})]})})})]})]})},Gs=({children:n,title:r,onClose:s,initialPosition:a={x:20,y:20}})=>{const[u,f]=z.useState(!1);return z.useEffect(()=>{const d=()=>f(window.innerWidth<768);return d(),window.addEventListener("resize",d),()=>window.removeEventListener("resize",d)},[]),m.jsxs(fe.div,{drag:!u,dragMomentum:!1,dragElastic:.1,initial:{x:u?0:a.x,y:u?0:a.y,opacity:0,scale:.9},animate:{x:u?0:a.x,y:u?0:a.y,opacity:1,scale:1},exit:{opacity:0,scale:.9},className:`absolute ${u?"fixed inset-4 z-50":"rounded-lg"} bg-[#0a0a0a] border border-[#00FF94]/30 overflow-hidden shadow-2xl shadow-[#00FF94]/10 flex flex-col`,style:{width:u?"calc(100% - 2rem)":"auto",minWidth:u?"none":320,maxWidth:u?"none":500,height:u?"calc(100% - 8rem)":"auto",zIndex:100},children:[m.jsxs("div",{className:`flex items-center justify-between px-3 py-2 bg-[#111] border-b border-[#00FF94]/20 ${u?"":"cursor-grab active:cursor-grabbing"}`,children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-red-500/50"}),m.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-yellow-500/50"}),m.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-green-500/50"}),m.jsx("span",{className:"ml-2 text-[10px] md:text-xs text-[#00FF94] font-mono uppercase tracking-widest",children:r})]}),m.jsx("button",{onClick:s,className:"p-1 text-[#00FF94]/50 hover:text-red-400 transition-colors",children:m.jsx(fS,{size:16})})]}),m.jsx("div",{className:"p-4 md:p-6 overflow-y-auto flex-1 custom-scrollbar",children:n})]})},SS=({onBack:n,onSwitch:r})=>{const[s,a]=z.useState(!0),[u,f]=z.useState(["about"]),[d,h]=z.useState(""),[g,v]=z.useState(!1),[y,x]=z.useState(null),[S,C]=z.useState(!1),D=`> whoami
|
||
|
||
Vo Nguyen Dang Khoa
|
||
AI-Powered Developer
|
||
14-month coding journey from zero to production`,L=F=>{u.includes(F)?f(u.filter(P=>P!==F)):f([...u,F])},N=F=>{f(u.filter(P=>P!==F))};z.useEffect(()=>{const F=()=>{v(window.scrollY>400)};return window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F)},[]),z.useEffect(()=>{if(s)return;let F;const P=()=>{C(!1),clearTimeout(F),F=setTimeout(()=>C(!0),1e4)};return window.addEventListener("mousemove",P),window.addEventListener("keydown",P),window.addEventListener("click",P),window.addEventListener("touchstart",P),window.addEventListener("scroll",P),P(),()=>{clearTimeout(F),window.removeEventListener("mousemove",P),window.removeEventListener("keydown",P),window.removeEventListener("click",P),window.removeEventListener("touchstart",P),window.removeEventListener("scroll",P)}},[s]);const b=()=>{window.scrollTo({top:0,behavior:"smooth"})};return z.useEffect(()=>{if(s)return;let F=0;const P=setInterval(()=>{F<D.length?(h(D.slice(0,F+1)),F++):clearInterval(P)},30);return()=>clearInterval(P)},[s]),m.jsxs(m.Fragment,{children:[m.jsx(Cn,{children:s&&m.jsx(xS,{onComplete:()=>a(!1)})}),m.jsxs(fe.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"min-h-screen bg-[#0a0a0a] text-[#00FF94] font-mono crt-screen crt-scanline",children:[m.jsx(Cn,{children:S&&m.jsx(fe.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-[150] bg-[#0a0a0a] flex items-center justify-center cursor-none backdrop-blur-sm",onClick:()=>C(!1),children:m.jsxs("div",{className:"text-2xl md:text-4xl text-[#00FF94]/30 font-mono text-center p-6",children:[m.jsx("div",{className:"mb-6 animate-float",children:m.jsx("span",{className:"animate-blink text-[#00FF94]",children:"KHOA.VO"})}),m.jsx("div",{className:"text-lg md:text-xl mb-4 font-bold text-[#00FF94]/50",children:"KHOA.VO PORTFOLIO"}),m.jsx("div",{className:"text-sm md:text-base mb-2",children:"[ IT SIDE ] - AI-powered developer"}),m.jsx("div",{className:"text-sm md:text-base mb-6",children:"[ CREATIVE ] - studio lead"}),m.jsxs("div",{className:"text-[10px] md:text-xs mb-8 text-[#00D9FF] opacity-40 uppercase tracking-widest leading-loose",children:["vndangkhoa | khoavo.myds.me | phibious ",m.jsx("br",{className:"md:hidden"})," Ho Chi Minh City, Vietnam"]}),m.jsx("div",{className:"text-sm md:text-base",children:m.jsx("span",{className:"animate-pulse",children:"IDLE... INTERACT TO RESUME"})})]})})}),m.jsx(Cn,{children:g&&m.jsx(fe.button,{initial:{opacity:0,scale:.8,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.8,y:20},onClick:b,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($m,{size:20,className:"-rotate-90"})})}),m.jsx("nav",{className:"fixed top-0 left-0 right-0 z-[110] bg-[#0a0a0a]/90 backdrop-blur-md border-b border-[#00FF94]/20",children:m.jsxs("div",{className:"max-w-7xl 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-2 text-xs text-[#00FF94] hover:opacity-70 transition-opacity uppercase font-mono font-bold",children:[m.jsx(eu,{size:16})," Exit"]}),m.jsxs("div",{className:"flex items-center gap-6",children:[m.jsxs("div",{className:"hidden md:flex items-center gap-2 font-mono text-[#00FF94]/60 text-[10px] tracking-wider",children:[m.jsx("span",{className:"opacity-40",children:"SYSTEM://"}),m.jsx("span",{children:"khoa@portfolio:~$"}),m.jsx("span",{className:"w-2 h-4 bg-[#00FF94] animate-blink"})]}),m.jsx("div",{className:"flex items-center justify-center opacity-90 drop-shadow-[0_0_8px_rgba(0,255,148,0.3)]",children:m.jsx(Du,{size:32,vnColor:"#FFFFFF",dkColor:"#00FF94"})})]}),m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx("button",{onClick:()=>window.print(),className:"px-3 py-1.5 text-[10px] md:text-xs text-[#00FF94] border border-[#00FF94]/30 rounded-sm hover:bg-[#00FF94] hover:text-[#0a0a0a] transition-all font-bold uppercase font-mono",children:"CV"}),m.jsx("button",{onClick:r,className:"px-3 py-1.5 text-[10px] md:text-xs text-[#0a0a0a] bg-[#00FF94] border border-[#00FF94] rounded-sm hover:bg-transparent hover:text-[#00FF94] transition-all uppercase font-bold font-mono",children:"Design"})]})]})}),m.jsxs("main",{className:"relative min-h-screen overflow-hidden pt-14",children:[m.jsx("div",{className:"fixed bottom-0 left-0 right-0 h-16 md:h-auto md:left-0 md:top-14 md:bottom-0 md:w-20 bg-[#0a0a0a]/90 md:bg-[#0a0a0a]/80 backdrop-blur-md border-t md:border-t-0 md:border-r border-[#00FF94]/20 flex md:flex-col items-center justify-around md:justify-start py-2 md:py-8 gap-2 md:gap-8 z-[100]",children:[{id:"about",icon:dS,label:"About"},{id:"skills",icon:nS,label:"Skills"},{id:"projects",icon:Zh,label:"Projects"},{id:"experience",icon:Hm,label:"Experience"}].map(F=>m.jsxs("button",{onClick:()=>L(F.id),className:`flex flex-col items-center gap-1 p-2 rounded transition-all group ${u.includes(F.id)?"bg-[#00FF94]/20":"hover:bg-[#00FF94]/10"}`,children:[m.jsx(F.icon,{size:22,className:`${u.includes(F.id)?"text-[#00FF94]":"text-[#00FF94]/60"} group-hover:text-[#00FF94] transition-colors`}),m.jsx("span",{className:"text-[8px] text-[#00FF94]/40 group-hover:text-[#00FF94] uppercase tracking-tighter",children:F.label})]},F.id))}),m.jsxs("div",{className:"md:ml-20 p-4 md:p-8 pb-20 md:pb-8 relative min-h-[calc(100vh-3.5rem)]",children:[u.includes("about")&&m.jsx(Gs,{title:"about.txt",onClose:()=>N("about"),initialPosition:{x:120,y:40},children:m.jsxs(fe.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:mi.journey.map((F,P)=>m.jsxs("div",{className:"flex gap-4",children:[m.jsx("span",{className:"text-[#00D9FF] text-xs shrink-0",children:F.month}),m.jsxs("div",{children:[m.jsx("span",{className:"text-white",children:F.title}),m.jsxs("span",{className:"text-[#00FF94]/50",children:[" — ",F.description]})]})]},P))})]}),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:mi.summary})]})]})}),u.includes("skills")&&m.jsx(Gs,{title:"skills.json",onClose:()=>N("skills"),initialPosition:{x:160,y:100},children:m.jsx(fe.div,{initial:{opacity:0},animate:{opacity:1},children:Object.entries(mi.skills).map(([F,P])=>m.jsxs("div",{className:"mb-4",children:[m.jsx("div",{className:"text-xs text-[#00D9FF] mb-2 uppercase tracking-wider",children:F}),m.jsx("div",{className:"flex flex-wrap gap-2",children:P.map((R,W)=>m.jsx("span",{className:"text-sm border border-[#00FF94]/30 px-3 py-1 bg-[#00FF94]/5",children:R},W))})]},F))})}),u.includes("projects")&&m.jsx(Gs,{title:"projects/",onClose:()=>N("projects"),initialPosition:{x:200,y:160},children:m.jsx(fe.div,{initial:{opacity:0},animate:{opacity:1},children:m.jsx("div",{className:"grid grid-cols-1 gap-3",children:mi.projects.map((F,P)=>m.jsxs("div",{onClick:()=>x(F),className:"border border-[#00FF94]/20 p-3 hover:border-[#00FF94]/40 hover:bg-[#00FF94]/5 cursor-pointer transition-all group",children:[m.jsxs("div",{className:"flex items-center justify-between mb-1",children:[m.jsx("span",{className:"text-white font-bold group-hover:text-[#00FF94] transition-colors",children:F.name}),m.jsx(Zh,{size:14,className:"text-[#00FF94]/40"})]}),m.jsx("p",{className:"text-xs text-slate-400 mb-2",children:F.description}),m.jsx("div",{className:"flex flex-wrap gap-1",children:F.tech.slice(0,6).map((R,W)=>m.jsx("span",{className:"text-[10px] bg-[#00FF94]/10 px-2 py-0.5 text-[#00FF94]",children:R},W))})]},P))})})}),u.includes("experience")&&m.jsx(Gs,{title:"experience.log",onClose:()=>N("experience"),initialPosition:{x:240,y:220},children:m.jsx(fe.div,{initial:{opacity:0},animate:{opacity:1},children:m.jsx("div",{className:"space-y-4",children:mi.experience.map((F,P)=>m.jsxs("div",{className:"border-l-2 border-[#00FF94] pl-3",children:[m.jsxs("div",{className:"flex justify-between items-start mb-1",children:[m.jsx("span",{className:"text-white font-bold",children:F.role}),m.jsx("span",{className:"text-xs text-[#00FF94]/50",children:F.period})]}),m.jsx("div",{className:"text-xs text-[#00D9FF] mb-1",children:F.company}),m.jsx("ul",{className:"text-xs text-slate-400 space-y-0.5",children:F.highlights.map((R,W)=>m.jsxs("li",{children:["• ",R]},W))})]},P))})})}),u.length===0&&m.jsx("div",{className:"flex items-center justify-center h-full opacity-30",children:m.jsxs("div",{className:"text-center",children:[m.jsx(Km,{size:48,className:"mx-auto mb-4 text-[#00FF94]/30"}),m.jsx("p",{className:"text-sm text-[#00FF94]/50",children:"Click icons to open windows"})]})})]}),m.jsxs("div",{className:"fixed bottom-0 left-0 right-0 h-10 bg-[#0a0a0a]/90 backdrop-blur-sm border-t border-[#00FF94]/20 flex items-center px-4 z-40",children:[m.jsx("div",{className:"flex items-center gap-2",children:m.jsxs("button",{onClick:n,className:"px-3 py-1 text-xs text-[#00FF94] hover:bg-[#00FF94]/10 rounded transition-colors flex items-center gap-2",children:[m.jsx(eu,{size:12})," Exit"]})}),m.jsx("div",{className:"flex-1"}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsxs("span",{className:"text-[10px] text-[#00FF94]/50",children:["khoa@portfolio:~$"," "]}),m.jsx("span",{className:"animate-pulse text-[#00FF94]",children:"▋"})]}),m.jsxs("div",{className:"flex items-center gap-2 ml-4",children:[m.jsx("button",{onClick:()=>window.print(),className:"px-2 py-1 text-[10px] text-[#00FF94] border border-[#00FF94]/30 rounded hover:bg-[#00FF94]/10 transition-colors",children:"CV"}),m.jsx("button",{onClick:r,className:"px-2 py-1 text-[10px] text-[#0a0a0a] bg-[#00FF94] rounded hover:opacity-80 transition-colors",children:"Design"})]})]})]}),m.jsx(Cn,{children:y&&m.jsx(fe.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-[100] flex items-center justify-center bg-black/90 backdrop-blur-sm p-4",onClick:()=>x(null),children:m.jsxs(fe.div,{initial:{scale:.9,y:20},animate:{scale:1,y:0},exit:{scale:.9,y:20},className:"bg-[#0a0a0a] border border-[#00FF94]/30 max-w-2xl w-full rounded-lg overflow-hidden",onClick:F=>F.stopPropagation(),children:[m.jsxs("div",{className:"flex items-center gap-2 px-4 py-3 bg-[#111] border-b border-[#00FF94]/20",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]",children:y.name})]}),m.jsxs("div",{className:"p-6",children:[m.jsx("div",{className:"text-xs text-[#00D9FF] mb-2 uppercase tracking-wider",children:"Project Details"}),m.jsx("h3",{className:"text-xl text-white font-bold mb-3",children:y.name}),m.jsx("p",{className:"text-sm text-slate-300 mb-4",children:y.description}),m.jsx("div",{className:"flex flex-wrap gap-2 mb-4",children:y.tech.map((F,P)=>m.jsx("span",{className:"text-xs bg-[#00FF94]/10 px-3 py-1.5 text-[#00FF94] border border-[#00FF94]/20",children:F},P))}),m.jsxs("div",{className:"flex gap-4 pt-4 border-t border-[#00FF94]/20",children:[y.demo&&m.jsxs("a",{href:y.demo,target:"_blank",rel:"noreferrer",className:"flex items-center gap-2 text-sm text-[#00D9FF] hover:text-[#00FF94]",children:[m.jsx(Gm,{size:14})," Live Demo"]}),m.jsxs("a",{href:y.github,target:"_blank",rel:"noreferrer",className:"flex items-center gap-2 text-sm text-[#00FF94] hover:text-[#00D9FF]",children:[m.jsx(iS,{size:14})," Source Code"]})]})]})]})})})]})]})};function kS(){const[n,r]=z.useState("landing"),[s,a]=z.useState(!1),[u,f]=z.useState(!1);z.useEffect(()=>{document.documentElement.setAttribute("data-theme","light")},[]);const d=v=>{r(v)},h=()=>{r("landing")},g=()=>{const v=!u;f(v),document.documentElement.setAttribute("data-theme",v?"dark":"light")};return m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"noise-overlay"}),m.jsxs(Cn,{mode:"wait",children:[n==="landing"&&m.jsx(yS,{onSelect:d,darkMode:u,toggleTheme:g},"landing"),n==="creative"&&m.jsx(wS,{onBack:h,onSwitch:()=>r("it"),darkMode:u,toggleTheme:g},"creative"),n==="it"&&m.jsx(SS,{onBack:h,onSwitch:()=>r("creative")},"it")]}),m.jsx("div",{className:"print-portfolio",children:m.jsx(gS,{})})]})}e0.createRoot(document.getElementById("root")).render(m.jsx(Ky.StrictMode,{children:m.jsx(kS,{})}));
|