function sy(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Yf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xf={exports:{}},ss={},Zf={exports:{}},O={};/** * @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 Eo=Symbol.for("react.element"),ay=Symbol.for("react.portal"),ly=Symbol.for("react.fragment"),uy=Symbol.for("react.strict_mode"),cy=Symbol.for("react.profiler"),dy=Symbol.for("react.provider"),fy=Symbol.for("react.context"),py=Symbol.for("react.forward_ref"),hy=Symbol.for("react.suspense"),my=Symbol.for("react.memo"),gy=Symbol.for("react.lazy"),mc=Symbol.iterator;function vy(e){return e===null||typeof e!="object"?null:(e=mc&&e[mc]||e["@@iterator"],typeof e=="function"?e:null)}var qf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Jf=Object.assign,ep={};function Sr(e,t,n){this.props=e,this.context=t,this.refs=ep,this.updater=n||qf}Sr.prototype.isReactComponent={};Sr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Sr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function tp(){}tp.prototype=Sr.prototype;function Ul(e,t,n){this.props=e,this.context=t,this.refs=ep,this.updater=n||qf}var $l=Ul.prototype=new tp;$l.constructor=Ul;Jf($l,Sr.prototype);$l.isPureReactComponent=!0;var gc=Array.isArray,np=Object.prototype.hasOwnProperty,Wl={current:null},rp={key:!0,ref:!0,__self:!0,__source:!0};function op(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)np.call(t,r)&&!rp.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,B=b[L];if(0>>1;Lo(_n,_))Beo(dn,_n)?(b[L]=dn,b[Be]=_,L=Be):(b[L]=_n,b[ze]=_,L=ze);else if(Beo(dn,_))b[L]=dn,b[Be]=_,L=Be;else break e}}return D}function o(b,D){var _=b.sortIndex-D.sortIndex;return _!==0?_:b.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],d=1,c=null,f=3,v=!1,w=!1,g=!1,C=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(b){for(var D=n(u);D!==null;){if(D.callback===null)r(u);else if(D.startTime<=b)r(u),D.sortIndex=D.expirationTime,t(l,D);else break;D=n(u)}}function S(b){if(g=!1,h(b),!w)if(n(l)!==null)w=!0,z(E);else{var D=n(u);D!==null&&ae(S,D.startTime-b)}}function E(b,D){w=!1,g&&(g=!1,m(k),k=-1),v=!0;var _=f;try{for(h(D),c=n(l);c!==null&&(!(c.expirationTime>D)||b&&!$());){var L=c.callback;if(typeof L=="function"){c.callback=null,f=c.priorityLevel;var B=L(c.expirationTime<=D);D=e.unstable_now(),typeof B=="function"?c.callback=B:c===n(l)&&r(l),h(D)}else r(l);c=n(l)}if(c!==null)var H=!0;else{var ze=n(u);ze!==null&&ae(S,ze.startTime-D),H=!1}return H}finally{c=null,f=_,v=!1}}var T=!1,P=null,k=-1,A=5,j=-1;function $(){return!(e.unstable_now()-jb||125L?(b.sortIndex=_,t(u,b),n(l)===null&&b===n(u)&&(g?(m(k),k=-1):g=!0,ae(S,_-L))):(b.sortIndex=B,t(l,b),w||v||(w=!0,z(E))),b},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(b){var D=f;return function(){var _=f;f=D;try{return b.apply(this,arguments)}finally{f=_}}}})(cp);up.exports=cp;var by=up.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 Ry=x,He=by;function N(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ra=Object.prototype.hasOwnProperty,Ay=/^[: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]*$/,yc={},xc={};function My(e){return Ra.call(xc,e)?!0:Ra.call(yc,e)?!1:Ay.test(e)?xc[e]=!0:(yc[e]=!0,!1)}function Dy(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function jy(e,t,n,r){if(t===null||typeof t>"u"||Dy(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function je(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var we={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){we[e]=new je(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];we[t]=new je(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){we[e]=new je(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){we[e]=new je(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){we[e]=new je(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){we[e]=new je(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){we[e]=new je(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){we[e]=new je(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){we[e]=new je(e,5,!1,e.toLowerCase(),null,!1,!1)});var Gl=/[\-:]([a-z])/g;function Kl(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(Gl,Kl);we[t]=new je(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(Gl,Kl);we[t]=new je(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(Gl,Kl);we[t]=new je(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){we[e]=new je(e,1,!1,e.toLowerCase(),null,!1,!1)});we.xlinkHref=new je("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){we[e]=new je(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ql(e,t,n,r){var o=we.hasOwnProperty(t)?we[t]:null;(o!==null?o.type!==0:r||!(2a||o[s]!==i[a]){var l=` `+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Is=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ir(e):""}function Ly(e){switch(e.tag){case 5:return Ir(e.type);case 16:return Ir("Lazy");case 13:return Ir("Suspense");case 19:return Ir("SuspenseList");case 0:case 2:case 15:return e=_s(e.type,!1),e;case 11:return e=_s(e.type.render,!1),e;case 1:return e=_s(e.type,!0),e;default:return""}}function ja(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 $n:return"Fragment";case Un:return"Portal";case Aa:return"Profiler";case Yl:return"StrictMode";case Ma:return"Suspense";case Da:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case pp:return(e.displayName||"Context")+".Consumer";case fp:return(e._context.displayName||"Context")+".Provider";case Xl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Zl:return t=e.displayName||null,t!==null?t:ja(e.type)||"Memo";case Ft:t=e._payload,e=e._init;try{return ja(e(t))}catch{}}return null}function Vy(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 ja(t);case 8:return t===Yl?"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 nn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function mp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Iy(e){var t=mp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function _o(e){e._valueTracker||(e._valueTracker=Iy(e))}function gp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=mp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ni(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 La(e,t){var n=t.checked;return oe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Sc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=nn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function vp(e,t){t=t.checked,t!=null&&Ql(e,"checked",t,!1)}function Va(e,t){vp(e,t);var n=nn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ia(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ia(e,t.type,nn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Cc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ia(e,t,n){(t!=="number"||Ni(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var _r=Array.isArray;function or(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Oo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function no(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ur={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},_y=["Webkit","ms","Moz","O"];Object.keys(Ur).forEach(function(e){_y.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ur[t]=Ur[e]})});function Sp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ur.hasOwnProperty(e)&&Ur[e]?(""+t).trim():t+"px"}function Cp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Sp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Oy=oe({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 Fa(e,t){if(t){if(Oy[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function za(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 Ba=null;function ql(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ua=null,ir=null,sr=null;function Tc(e){if(e=ko(e)){if(typeof Ua!="function")throw Error(N(280));var t=e.stateNode;t&&(t=ds(t),Ua(e.stateNode,e.type,t))}}function Ep(e){ir?sr?sr.push(e):sr=[e]:ir=e}function Pp(){if(ir){var e=ir,t=sr;if(sr=ir=null,Tc(e),t)for(e=0;e>>=0,e===0?32:31-(Yy(e)/Xy|0)|0}var Fo=64,zo=4194304;function Or(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 Mi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=Or(a):(i&=s,i!==0&&(r=Or(i)))}else s=n&~o,s!==0?r=Or(s):i!==0&&(r=Or(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Po(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-lt(t),e[t]=n}function e0(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Wr),Lc=String.fromCharCode(32),Vc=!1;function Wp(e,t){switch(e){case"keyup":return b0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wn=!1;function A0(e,t){switch(e){case"compositionend":return Hp(t);case"keypress":return t.which!==32?null:(Vc=!0,Lc);case"textInput":return e=t.data,e===Lc&&Vc?null:e;default:return null}}function M0(e,t){if(Wn)return e==="compositionend"||!su&&Wp(e,t)?(e=Up(),fi=ru=Wt=null,Wn=!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)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Fc(n)}}function Yp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Yp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xp(){for(var e=window,t=Ni();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ni(e.document)}return t}function au(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 z0(e){var t=Xp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Yp(n.ownerDocument.documentElement,n)){if(r!==null&&au(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=zc(n,i);var s=zc(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Hn=null,Qa=null,Gr=null,Ya=!1;function Bc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ya||Hn==null||Hn!==Ni(r)||(r=Hn,"selectionStart"in r&&au(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Gr&&lo(Gr,r)||(Gr=r,r=Li(Qa,"onSelect"),0Qn||(e.current=tl[Qn],tl[Qn]=null,Qn--)}function G(e,t){Qn++,tl[Qn]=e.current,e.current=t}var rn={},ke=ln(rn),Ie=ln(!1),kn=rn;function fr(e,t){var n=e.type.contextTypes;if(!n)return rn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function _e(e){return e=e.childContextTypes,e!=null}function Ii(){X(Ie),X(ke)}function Qc(e,t,n){if(ke.current!==rn)throw Error(N(168));G(ke,t),G(Ie,n)}function ih(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(N(108,Vy(e)||"Unknown",o));return oe({},n,r)}function _i(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||rn,kn=ke.current,G(ke,e),G(Ie,Ie.current),!0}function Yc(e,t,n){var r=e.stateNode;if(!r)throw Error(N(169));n?(e=ih(e,t,kn),r.__reactInternalMemoizedMergedChildContext=e,X(Ie),X(ke),G(ke,e)):X(Ie),G(Ie,n)}var St=null,fs=!1,Zs=!1;function sh(e){St===null?St=[e]:St.push(e)}function q0(e){fs=!0,sh(e)}function un(){if(!Zs&&St!==null){Zs=!0;var e=0,t=W;try{var n=St;for(W=1;e>=s,o-=s,Ct=1<<32-lt(t)+o|n<k?(A=P,P=null):A=P.sibling;var j=f(m,P,h[k],S);if(j===null){P===null&&(P=A);break}e&&P&&j.alternate===null&&t(m,P),p=i(j,p,k),T===null?E=j:T.sibling=j,T=j,P=A}if(k===h.length)return n(m,P),J&&hn(m,k),E;if(P===null){for(;kk?(A=P,P=null):A=P.sibling;var $=f(m,P,j.value,S);if($===null){P===null&&(P=A);break}e&&P&&$.alternate===null&&t(m,P),p=i($,p,k),T===null?E=$:T.sibling=$,T=$,P=A}if(j.done)return n(m,P),J&&hn(m,k),E;if(P===null){for(;!j.done;k++,j=h.next())j=c(m,j.value,S),j!==null&&(p=i(j,p,k),T===null?E=j:T.sibling=j,T=j);return J&&hn(m,k),E}for(P=r(m,P);!j.done;k++,j=h.next())j=v(P,m,k,j.value,S),j!==null&&(e&&j.alternate!==null&&P.delete(j.key===null?k:j.key),p=i(j,p,k),T===null?E=j:T.sibling=j,T=j);return e&&P.forEach(function(V){return t(m,V)}),J&&hn(m,k),E}function C(m,p,h,S){if(typeof h=="object"&&h!==null&&h.type===$n&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case Io:e:{for(var E=h.key,T=p;T!==null;){if(T.key===E){if(E=h.type,E===$n){if(T.tag===7){n(m,T.sibling),p=o(T,h.props.children),p.return=m,m=p;break e}}else if(T.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Ft&&qc(E)===T.type){n(m,T.sibling),p=o(T,h.props),p.ref=Rr(m,T,h),p.return=m,m=p;break e}n(m,T);break}else t(m,T);T=T.sibling}h.type===$n?(p=Pn(h.props.children,m.mode,S,h.key),p.return=m,m=p):(S=wi(h.type,h.key,h.props,null,m.mode,S),S.ref=Rr(m,p,h),S.return=m,m=S)}return s(m);case Un:e:{for(T=h.key;p!==null;){if(p.key===T)if(p.tag===4&&p.stateNode.containerInfo===h.containerInfo&&p.stateNode.implementation===h.implementation){n(m,p.sibling),p=o(p,h.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=ia(h,m.mode,S),p.return=m,m=p}return s(m);case Ft:return T=h._init,C(m,p,T(h._payload),S)}if(_r(h))return w(m,p,h,S);if(Pr(h))return g(m,p,h,S);Ko(m,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,p!==null&&p.tag===6?(n(m,p.sibling),p=o(p,h),p.return=m,m=p):(n(m,p),p=oa(h,m.mode,S),p.return=m,m=p),s(m)):n(m,p)}return C}var hr=ch(!0),dh=ch(!1),zi=ln(null),Bi=null,Zn=null,du=null;function fu(){du=Zn=Bi=null}function pu(e){var t=zi.current;X(zi),e._currentValue=t}function ol(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function lr(e,t){Bi=e,du=Zn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ve=!0),e.firstContext=null)}function tt(e){var t=e._currentValue;if(du!==e)if(e={context:e,memoizedValue:t,next:null},Zn===null){if(Bi===null)throw Error(N(308));Zn=e,Bi.dependencies={lanes:0,firstContext:e}}else Zn=Zn.next=e;return t}var xn=null;function hu(e){xn===null?xn=[e]:xn.push(e)}function fh(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,hu(t)):(n.next=o.next,o.next=n),t.interleaved=n,At(e,r)}function At(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var zt=!1;function mu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ph(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 Tt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Xt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,U&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,At(e,n)}return o=r.interleaved,o===null?(t.next=t,hu(r)):(t.next=o.next,o.next=t),r.interleaved=t,At(e,n)}function hi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,eu(e,n)}}function Jc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ui(e,t,n,r){var o=e.updateQueue;zt=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==s&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=l))}if(i!==null){var c=o.baseState;s=0,d=u=l=null,a=i;do{var f=a.lane,v=a.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,g=a;switch(f=t,v=n,g.tag){case 1:if(w=g.payload,typeof w=="function"){c=w.call(v,c,f);break e}c=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=g.payload,f=typeof w=="function"?w.call(v,c,f):w,f==null)break e;c=oe({},c,f);break e;case 2:zt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else v={eventTime:v,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=v,l=c):d=d.next=v,s|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(1);if(d===null&&(l=c),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Rn|=s,e.lanes=s,e.memoizedState=c}}function ed(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Js.transition;Js.transition={};try{e(!1),t()}finally{W=n,Js.transition=r}}function Ah(){return nt().memoizedState}function nx(e,t,n){var r=qt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Mh(e))Dh(t,n);else if(n=fh(e,t,n,r),n!==null){var o=Me();ut(n,e,r,o),jh(n,t,r)}}function rx(e,t,n){var r=qt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Mh(e))Dh(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,ct(a,s)){var l=t.interleaved;l===null?(o.next=o,hu(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=fh(e,t,o,r),n!==null&&(o=Me(),ut(n,e,r,o),jh(n,t,r))}}function Mh(e){var t=e.alternate;return e===re||t!==null&&t===re}function Dh(e,t){Kr=Wi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function jh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,eu(e,n)}}var Hi={readContext:tt,useCallback:Ce,useContext:Ce,useEffect:Ce,useImperativeHandle:Ce,useInsertionEffect:Ce,useLayoutEffect:Ce,useMemo:Ce,useReducer:Ce,useRef:Ce,useState:Ce,useDebugValue:Ce,useDeferredValue:Ce,useTransition:Ce,useMutableSource:Ce,useSyncExternalStore:Ce,useId:Ce,unstable_isNewReconciler:!1},ox={readContext:tt,useCallback:function(e,t){return ht().memoizedState=[e,t===void 0?null:t],e},useContext:tt,useEffect:nd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,gi(4194308,4,Th.bind(null,t,e),n)},useLayoutEffect:function(e,t){return gi(4194308,4,e,t)},useInsertionEffect:function(e,t){return gi(4,2,e,t)},useMemo:function(e,t){var n=ht();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ht();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=nx.bind(null,re,e),[r.memoizedState,e]},useRef:function(e){var t=ht();return e={current:e},t.memoizedState=e},useState:td,useDebugValue:Eu,useDeferredValue:function(e){return ht().memoizedState=e},useTransition:function(){var e=td(!1),t=e[0];return e=tx.bind(null,e[1]),ht().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=re,o=ht();if(J){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),ve===null)throw Error(N(349));bn&30||vh(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,nd(xh.bind(null,r,i,e),[e]),r.flags|=2048,vo(9,yh.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=ht(),t=ve.identifierPrefix;if(J){var n=Et,r=Ct;n=(r&~(1<<32-lt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=mo++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[mt]=t,e[fo]=r,$h(e,t,!1,!1),t.stateNode=e;e:{switch(s=za(n,r),n){case"dialog":Q("cancel",e),Q("close",e),o=r;break;case"iframe":case"object":case"embed":Q("load",e),o=r;break;case"video":case"audio":for(o=0;ovr&&(t.flags|=128,r=!0,Ar(i,!1),t.lanes=4194304)}else{if(!r)if(e=$i(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ar(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!J)return Ee(t),null}else 2*le()-i.renderingStartTime>vr&&n!==1073741824&&(t.flags|=128,r=!0,Ar(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=le(),t.sibling=null,n=te.current,G(te,r?n&1|2:n&1),t):(Ee(t),null);case 22:case 23:return Ru(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ue&1073741824&&(Ee(t),t.subtreeFlags&6&&(t.flags|=8192)):Ee(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function fx(e,t){switch(uu(t),t.tag){case 1:return _e(t.type)&&Ii(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return mr(),X(Ie),X(ke),yu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return vu(t),null;case 13:if(X(te),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));pr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return X(te),null;case 4:return mr(),null;case 10:return pu(t.type._context),null;case 22:case 23:return Ru(),null;case 24:return null;default:return null}}var Yo=!1,Te=!1,px=typeof WeakSet=="function"?WeakSet:Set,R=null;function qn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ie(e,t,r)}else n.current=null}function pl(e,t,n){try{n()}catch(r){ie(e,t,r)}}var pd=!1;function hx(e,t){if(Xa=Di,e=Xp(),au(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,d=0,c=e,f=null;t:for(;;){for(var v;c!==n||o!==0&&c.nodeType!==3||(a=s+o),c!==i||r!==0&&c.nodeType!==3||(l=s+r),c.nodeType===3&&(s+=c.nodeValue.length),(v=c.firstChild)!==null;)f=c,c=v;for(;;){if(c===e)break t;if(f===n&&++u===o&&(a=s),f===i&&++d===r&&(l=s),(v=c.nextSibling)!==null)break;c=f,f=c.parentNode}c=v}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Za={focusedElem:e,selectionRange:n},Di=!1,R=t;R!==null;)if(t=R,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,R=e;else for(;R!==null;){t=R;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var g=w.memoizedProps,C=w.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?g:it(t.type,g),C);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(S){ie(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,R=e;break}R=t.return}return w=pd,pd=!1,w}function Qr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&pl(t,n,i)}o=o.next}while(o!==r)}}function ms(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function hl(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Gh(e){var t=e.alternate;t!==null&&(e.alternate=null,Gh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[mt],delete t[fo],delete t[el],delete t[X0],delete t[Z0])),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 Kh(e){return e.tag===5||e.tag===3||e.tag===4}function hd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Kh(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 ml(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Vi));else if(r!==4&&(e=e.child,e!==null))for(ml(e,t,n),e=e.sibling;e!==null;)ml(e,t,n),e=e.sibling}function gl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(gl(e,t,n),e=e.sibling;e!==null;)gl(e,t,n),e=e.sibling}var ye=null,st=!1;function Vt(e,t,n){for(n=n.child;n!==null;)Qh(e,t,n),n=n.sibling}function Qh(e,t,n){if(vt&&typeof vt.onCommitFiberUnmount=="function")try{vt.onCommitFiberUnmount(as,n)}catch{}switch(n.tag){case 5:Te||qn(n,t);case 6:var r=ye,o=st;ye=null,Vt(e,t,n),ye=r,st=o,ye!==null&&(st?(e=ye,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ye.removeChild(n.stateNode));break;case 18:ye!==null&&(st?(e=ye,n=n.stateNode,e.nodeType===8?Xs(e.parentNode,n):e.nodeType===1&&Xs(e,n),so(e)):Xs(ye,n.stateNode));break;case 4:r=ye,o=st,ye=n.stateNode.containerInfo,st=!0,Vt(e,t,n),ye=r,st=o;break;case 0:case 11:case 14:case 15:if(!Te&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&pl(n,t,s),o=o.next}while(o!==r)}Vt(e,t,n);break;case 1:if(!Te&&(qn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ie(n,t,a)}Vt(e,t,n);break;case 21:Vt(e,t,n);break;case 22:n.mode&1?(Te=(r=Te)||n.memoizedState!==null,Vt(e,t,n),Te=r):Vt(e,t,n);break;default:Vt(e,t,n)}}function md(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new px),t.forEach(function(r){var o=Ex.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function rt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=le()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*gx(r/1960))-r,10e?16:e,Ht===null)var r=!1;else{if(e=Ht,Ht=null,Qi=0,U&6)throw Error(N(331));var o=U;for(U|=4,R=e.current;R!==null;){var i=R,s=i.child;if(R.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lle()-Nu?En(e,0):ku|=n),Oe(e,t)}function nm(e,t){t===0&&(e.mode&1?(t=zo,zo<<=1,!(zo&130023424)&&(zo=4194304)):t=1);var n=Me();e=At(e,t),e!==null&&(Po(e,t,n),Oe(e,n))}function Cx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),nm(e,n)}function Ex(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(N(314))}r!==null&&r.delete(t),nm(e,n)}var rm;rm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ie.current)Ve=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ve=!1,cx(e,t,n);Ve=!!(e.flags&131072)}else Ve=!1,J&&t.flags&1048576&&ah(t,Fi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;vi(e,t),e=t.pendingProps;var o=fr(t,ke.current);lr(t,n),o=wu(null,t,r,e,o,n);var i=Su();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,_e(r)?(i=!0,_i(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,mu(t),o.updater=hs,t.stateNode=o,o._reactInternals=t,sl(t,r,e,n),t=ul(null,t,r,!0,i,n)):(t.tag=0,J&&i&&lu(t),Ae(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(vi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Tx(r),e=it(r,e),o){case 0:t=ll(null,t,r,e,n);break e;case 1:t=cd(null,t,r,e,n);break e;case 11:t=ld(null,t,r,e,n);break e;case 14:t=ud(null,t,r,it(r.type,e),n);break e}throw Error(N(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:it(r,o),ll(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:it(r,o),cd(e,t,r,o,n);case 3:e:{if(zh(t),e===null)throw Error(N(387));r=t.pendingProps,i=t.memoizedState,o=i.element,ph(e,t),Ui(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=gr(Error(N(423)),t),t=dd(e,t,r,n,o);break e}else if(r!==o){o=gr(Error(N(424)),t),t=dd(e,t,r,n,o);break e}else for($e=Yt(t.stateNode.containerInfo.firstChild),We=t,J=!0,at=null,n=dh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(pr(),r===o){t=Mt(e,t,n);break e}Ae(e,t,r,n)}t=t.child}return t;case 5:return hh(t),e===null&&rl(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,qa(r,o)?s=null:i!==null&&qa(r,i)&&(t.flags|=32),Fh(e,t),Ae(e,t,s,n),t.child;case 6:return e===null&&rl(t),null;case 13:return Bh(e,t,n);case 4:return gu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=hr(t,null,r,n):Ae(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:it(r,o),ld(e,t,r,o,n);case 7:return Ae(e,t,t.pendingProps,n),t.child;case 8:return Ae(e,t,t.pendingProps.children,n),t.child;case 12:return Ae(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,G(zi,r._currentValue),r._currentValue=s,i!==null)if(ct(i.value,s)){if(i.children===o.children&&!Ie.current){t=Mt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Tt(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),ol(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(N(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),ol(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Ae(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,lr(t,n),o=tt(o),r=r(o),t.flags|=1,Ae(e,t,r,n),t.child;case 14:return r=t.type,o=it(r,t.pendingProps),o=it(r.type,o),ud(e,t,r,o,n);case 15:return _h(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:it(r,o),vi(e,t),t.tag=1,_e(r)?(e=!0,_i(t)):e=!1,lr(t,n),Lh(t,r,o),sl(t,r,o,n),ul(null,t,r,!0,e,n);case 19:return Uh(e,t,n);case 22:return Oh(e,t,n)}throw Error(N(156,t.tag))};function om(e,t){return Mp(e,t)}function Px(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Je(e,t,n,r){return new Px(e,t,n,r)}function Mu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Tx(e){if(typeof e=="function")return Mu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Xl)return 11;if(e===Zl)return 14}return 2}function Jt(e,t){var n=e.alternate;return n===null?(n=Je(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function wi(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Mu(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case $n:return Pn(n.children,o,i,t);case Yl:s=8,o|=8;break;case Aa:return e=Je(12,n,t,o|2),e.elementType=Aa,e.lanes=i,e;case Ma:return e=Je(13,n,t,o),e.elementType=Ma,e.lanes=i,e;case Da:return e=Je(19,n,t,o),e.elementType=Da,e.lanes=i,e;case hp:return vs(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case fp:s=10;break e;case pp:s=9;break e;case Xl:s=11;break e;case Zl:s=14;break e;case Ft:s=16,r=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=Je(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Pn(e,t,n,r){return e=Je(7,e,r,t),e.lanes=n,e}function vs(e,t,n,r){return e=Je(22,e,r,t),e.elementType=hp,e.lanes=n,e.stateNode={isHidden:!1},e}function oa(e,t,n){return e=Je(6,e,null,t),e.lanes=n,e}function ia(e,t,n){return t=Je(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function kx(e,t,n,r,o){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=Fs(0),this.expirationTimes=Fs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fs(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Du(e,t,n,r,o,i,s,a,l){return e=new kx(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Je(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},mu(i),e}function Nx(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(lm)}catch(e){console.error(e)}}lm(),lp.exports=Ke;var Cs=lp.exports;const Dx=Yf(Cs);var Ed=Cs;ba.createRoot=Ed.createRoot,ba.hydrateRoot=Ed.hydrateRoot;function um(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;te&&(t=0,r=n,n=new Map)}return{get:function(s){var a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return o(s,a),a},set:function(s,a){n.has(s)?n.set(s,a):o(s,a)}}}var pm="!";function zx(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(s){for(var a=[],l=0,u=0,d,c=0;cu?d-u:void 0;return{modifiers:a,hasImportantModifier:w,baseClassName:g,maybePostfixModifierPosition:C}}}function Bx(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function Ux(e){return{cache:Fx(e.cacheSize),splitModifiers:zx(e),...Lx(e)}}var $x=/\s+/;function Wx(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,i=new Set;return e.trim().split($x).map(function(s){var a=n(s),l=a.modifiers,u=a.hasImportantModifier,d=a.baseClassName,c=a.maybePostfixModifierPosition,f=r(c?d.substring(0,c):d),v=!!c;if(!f){if(!c)return{isTailwindClass:!1,originalClassName:s};if(f=r(d),!f)return{isTailwindClass:!1,originalClassName:s};v=!1}var w=Bx(l).join(":"),g=u?w+pm:w;return{isTailwindClass:!0,modifierId:g,classGroupId:f,originalClassName:s,hasPostfixModifier:v}}).reverse().filter(function(s){if(!s.isTailwindClass)return!0;var a=s.modifierId,l=s.classGroupId,u=s.hasPostfixModifier,d=a+l;return i.has(d)?!1:(i.add(d),o(l,u).forEach(function(c){return i.add(a+c)}),!0)}).reverse().map(function(s){return s.originalClassName}).join(" ")}function Hx(){for(var e=arguments.length,t=new Array(e),n=0;n{let n=!1;const r=e.map(o=>{const i=Nd(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o{const{children:s,...a}=i,l=x.useMemo(()=>a,Object.values(a));return y.jsx(n.Provider,{value:l,children:s})};r.displayName=e+"Provider";function o(i){const s=x.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function _u(e,t=[]){let n=[];function r(i,s){const a=x.createContext(s),l=n.length;n=[...n,s];const u=c=>{var m;const{scope:f,children:v,...w}=c,g=((m=f==null?void 0:f[e])==null?void 0:m[l])||a,C=x.useMemo(()=>w,Object.values(w));return y.jsx(g.Provider,{value:C,children:v})};u.displayName=i+"Provider";function d(c,f){var g;const v=((g=f==null?void 0:f[e])==null?void 0:g[l])||a,w=x.useContext(v);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${c}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(s=>x.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return x.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,l1(o,...t)]}function l1(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:l,scopeName:u})=>{const c=l(i)[`__scope${u}`];return{...a,...c}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function xo(e){const t=c1(e),n=x.forwardRef((r,o)=>{const{children:i,...s}=r,a=x.Children.toArray(i),l=a.find(f1);if(l){const u=l.props.children,d=a.map(c=>c===l?x.Children.count(u)>1?x.Children.only(null):x.isValidElement(u)?u.props.children:null:c);return y.jsx(t,{...s,ref:o,children:x.isValidElement(u)?x.cloneElement(u,void 0,d):null})}return y.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var u1=xo("Slot");function c1(e){const t=x.forwardRef((n,r)=>{const{children:o,...i}=n;if(x.isValidElement(o)){const s=h1(o),a=p1(i,o.props);return o.type!==x.Fragment&&(a.ref=r?gm(r,s):s),x.cloneElement(o,a)}return x.Children.count(o)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var d1=Symbol("radix.slottable");function f1(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===d1}function p1(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const l=i(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function h1(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function m1(e){const t=e+"CollectionProvider",[n,r]=_u(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=g=>{const{scope:C,children:m}=g,p=Y.useRef(null),h=Y.useRef(new Map).current;return y.jsx(o,{scope:C,itemMap:h,collectionRef:p,children:m})};s.displayName=t;const a=e+"CollectionSlot",l=xo(a),u=Y.forwardRef((g,C)=>{const{scope:m,children:p}=g,h=i(a,m),S=dt(C,h.collectionRef);return y.jsx(l,{ref:S,children:p})});u.displayName=a;const d=e+"CollectionItemSlot",c="data-radix-collection-item",f=xo(d),v=Y.forwardRef((g,C)=>{const{scope:m,children:p,...h}=g,S=Y.useRef(null),E=dt(C,S),T=i(d,m);return Y.useEffect(()=>(T.itemMap.set(S,{ref:S,...h}),()=>void T.itemMap.delete(S))),y.jsx(f,{[c]:"",ref:E,children:p})});v.displayName=d;function w(g){const C=i(e+"CollectionConsumer",g);return Y.useCallback(()=>{const p=C.collectionRef.current;if(!p)return[];const h=Array.from(p.querySelectorAll(`[${c}]`));return Array.from(C.itemMap.values()).sort((T,P)=>h.indexOf(T.ref.current)-h.indexOf(P.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:s,Slot:u,ItemSlot:v},w,r]}var g1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Se=g1.reduce((e,t)=>{const n=xo(`Primitive.${t}`),r=x.forwardRef((o,i)=>{const{asChild:s,...a}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(l,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function vm(e,t){e&&Cs.flushSync(()=>e.dispatchEvent(t))}function Dt(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function v1(e,t=globalThis==null?void 0:globalThis.document){const n=Dt(e);x.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var y1="DismissableLayer",El="dismissableLayer.update",x1="dismissableLayer.pointerDownOutside",w1="dismissableLayer.focusOutside",bd,ym=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ou=x.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...l}=e,u=x.useContext(ym),[d,c]=x.useState(null),f=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=x.useState({}),w=dt(t,P=>c(P)),g=Array.from(u.layers),[C]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=g.indexOf(C),p=d?g.indexOf(d):-1,h=u.layersWithOutsidePointerEventsDisabled.size>0,S=p>=m,E=C1(P=>{const k=P.target,A=[...u.branches].some(j=>j.contains(k));!S||A||(o==null||o(P),s==null||s(P),P.defaultPrevented||a==null||a())},f),T=E1(P=>{const k=P.target;[...u.branches].some(j=>j.contains(k))||(i==null||i(P),s==null||s(P),P.defaultPrevented||a==null||a())},f);return v1(P=>{p===u.layers.size-1&&(r==null||r(P),!P.defaultPrevented&&a&&(P.preventDefault(),a()))},f),x.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(bd=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Rd(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=bd)}},[d,f,n,u]),x.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Rd())},[d,u]),x.useEffect(()=>{const P=()=>v({});return document.addEventListener(El,P),()=>document.removeEventListener(El,P)},[]),y.jsx(Se.div,{...l,ref:w,style:{pointerEvents:h?S?"auto":"none":void 0,...e.style},onFocusCapture:ge(e.onFocusCapture,T.onFocusCapture),onBlurCapture:ge(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:ge(e.onPointerDownCapture,E.onPointerDownCapture)})});Ou.displayName=y1;var S1="DismissableLayerBranch",xm=x.forwardRef((e,t)=>{const n=x.useContext(ym),r=x.useRef(null),o=dt(t,r);return x.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),y.jsx(Se.div,{...e,ref:o})});xm.displayName=S1;function C1(e,t=globalThis==null?void 0:globalThis.document){const n=Dt(e),r=x.useRef(!1),o=x.useRef(()=>{});return x.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){wm(x1,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function E1(e,t=globalThis==null?void 0:globalThis.document){const n=Dt(e),r=x.useRef(!1);return x.useEffect(()=>{const o=i=>{i.target&&!r.current&&wm(w1,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Rd(){const e=new CustomEvent(El);document.dispatchEvent(e)}function wm(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?vm(o,i):o.dispatchEvent(i)}var P1=Ou,T1=xm,yr=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},k1="Portal",Fu=x.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=x.useState(!1);yr(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?Dx.createPortal(y.jsx(Se.div,{...r,ref:t}),s):null});Fu.displayName=k1;function N1(e,t){return x.useReducer((n,r)=>t[n][r]??n,e)}var bo=e=>{const{present:t,children:n}=e,r=b1(t),o=typeof n=="function"?n({present:r.isPresent}):x.Children.only(n),i=dt(r.ref,R1(o));return typeof n=="function"||r.isPresent?x.cloneElement(o,{ref:i}):null};bo.displayName="Presence";function b1(e){const[t,n]=x.useState(),r=x.useRef(null),o=x.useRef(e),i=x.useRef("none"),s=e?"mounted":"unmounted",[a,l]=N1(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const u=Jo(r.current);i.current=a==="mounted"?u:"none"},[a]),yr(()=>{const u=r.current,d=o.current;if(d!==e){const f=i.current,v=Jo(u);e?l("MOUNT"):v==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&f!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),yr(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,c=v=>{const g=Jo(r.current).includes(v.animationName);if(v.target===t&&g&&(l("ANIMATION_END"),!o.current)){const C=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=C)})}},f=v=>{v.target===t&&(i.current=Jo(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:x.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Jo(e){return(e==null?void 0:e.animationName)||"none"}function R1(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var A1=sp[" useInsertionEffect ".trim().toString()]||yr;function Sm({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=M1({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:o;{const d=x.useRef(e!==void 0);x.useEffect(()=>{const c=d.current;c!==a&&console.warn(`${r} is changing from ${c?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const u=x.useCallback(d=>{var c;if(a){const f=D1(d)?d(e):d;f!==e&&((c=s.current)==null||c.call(s,f))}else i(d)},[a,e,i,s]);return[l,u]}function M1({defaultProp:e,onChange:t}){const[n,r]=x.useState(e),o=x.useRef(n),i=x.useRef(t);return A1(()=>{i.current=t},[t]),x.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function D1(e){return typeof e=="function"}var j1=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),L1="VisuallyHidden",zu=x.forwardRef((e,t)=>y.jsx(Se.span,{...e,ref:t,style:{...j1,...e.style}}));zu.displayName=L1;var Bu="ToastProvider",[Uu,V1,I1]=m1("Toast"),[Cm,ik]=_u("Toast",[I1]),[_1,Es]=Cm(Bu),Em=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[a,l]=x.useState(null),[u,d]=x.useState(0),c=x.useRef(!1),f=x.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Bu}\`. Expected non-empty \`string\`.`),y.jsx(Uu.Provider,{scope:t,children:y.jsx(_1,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:x.useCallback(()=>d(v=>v+1),[]),onToastRemove:x.useCallback(()=>d(v=>v-1),[]),isFocusedToastEscapeKeyDownRef:c,isClosePausedRef:f,children:s})})};Em.displayName=Bu;var Pm="ToastViewport",O1=["F8"],Pl="toast.viewportPause",Tl="toast.viewportResume",Tm=x.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=O1,label:o="Notifications ({hotkey})",...i}=e,s=Es(Pm,n),a=V1(n),l=x.useRef(null),u=x.useRef(null),d=x.useRef(null),c=x.useRef(null),f=dt(t,c,s.onViewportChange),v=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=s.toastCount>0;x.useEffect(()=>{const C=m=>{var h;r.length!==0&&r.every(S=>m[S]||m.code===S)&&((h=c.current)==null||h.focus())};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},[r]),x.useEffect(()=>{const C=l.current,m=c.current;if(w&&C&&m){const p=()=>{if(!s.isClosePausedRef.current){const T=new CustomEvent(Pl);m.dispatchEvent(T),s.isClosePausedRef.current=!0}},h=()=>{if(s.isClosePausedRef.current){const T=new CustomEvent(Tl);m.dispatchEvent(T),s.isClosePausedRef.current=!1}},S=T=>{!C.contains(T.relatedTarget)&&h()},E=()=>{C.contains(document.activeElement)||h()};return C.addEventListener("focusin",p),C.addEventListener("focusout",S),C.addEventListener("pointermove",p),C.addEventListener("pointerleave",E),window.addEventListener("blur",p),window.addEventListener("focus",h),()=>{C.removeEventListener("focusin",p),C.removeEventListener("focusout",S),C.removeEventListener("pointermove",p),C.removeEventListener("pointerleave",E),window.removeEventListener("blur",p),window.removeEventListener("focus",h)}}},[w,s.isClosePausedRef]);const g=x.useCallback(({tabbingDirection:C})=>{const p=a().map(h=>{const S=h.ref.current,E=[S,...Z1(S)];return C==="forwards"?E:E.reverse()});return(C==="forwards"?p.reverse():p).flat()},[a]);return x.useEffect(()=>{const C=c.current;if(C){const m=p=>{var E,T,P;const h=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!h){const k=document.activeElement,A=p.shiftKey;if(p.target===C&&A){(E=u.current)==null||E.focus();return}const V=g({tabbingDirection:A?"backwards":"forwards"}),ee=V.findIndex(M=>M===k);sa(V.slice(ee+1))?p.preventDefault():A?(T=u.current)==null||T.focus():(P=d.current)==null||P.focus()}};return C.addEventListener("keydown",m),()=>C.removeEventListener("keydown",m)}},[a,g]),y.jsxs(T1,{ref:l,role:"region","aria-label":o.replace("{hotkey}",v),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&y.jsx(kl,{ref:u,onFocusFromOutsideViewport:()=>{const C=g({tabbingDirection:"forwards"});sa(C)}}),y.jsx(Uu.Slot,{scope:n,children:y.jsx(Se.ol,{tabIndex:-1,...i,ref:f})}),w&&y.jsx(kl,{ref:d,onFocusFromOutsideViewport:()=>{const C=g({tabbingDirection:"backwards"});sa(C)}})]})});Tm.displayName=Pm;var km="ToastFocusProxy",kl=x.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=Es(km,n);return y.jsx(zu,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var u;const a=s.relatedTarget;!((u=i.viewport)!=null&&u.contains(a))&&r()}})});kl.displayName=km;var Ro="Toast",F1="toast.swipeStart",z1="toast.swipeMove",B1="toast.swipeCancel",U1="toast.swipeEnd",Nm=x.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[a,l]=Sm({prop:r,defaultProp:o??!0,onChange:i,caller:Ro});return y.jsx(bo,{present:n||a,children:y.jsx(H1,{open:a,...s,ref:t,onClose:()=>l(!1),onPause:Dt(e.onPause),onResume:Dt(e.onResume),onSwipeStart:ge(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ge(e.onSwipeMove,u=>{const{x:d,y:c}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${c}px`)}),onSwipeCancel:ge(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ge(e.onSwipeEnd,u=>{const{x:d,y:c}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${c}px`),l(!1)})})})});Nm.displayName=Ro;var[$1,W1]=Cm(Ro,{onClose(){}}),H1=x.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:d,onSwipeMove:c,onSwipeCancel:f,onSwipeEnd:v,...w}=e,g=Es(Ro,n),[C,m]=x.useState(null),p=dt(t,M=>m(M)),h=x.useRef(null),S=x.useRef(null),E=o||g.duration,T=x.useRef(0),P=x.useRef(E),k=x.useRef(0),{onToastAdd:A,onToastRemove:j}=g,$=Dt(()=>{var q;(C==null?void 0:C.contains(document.activeElement))&&((q=g.viewport)==null||q.focus()),s()}),V=x.useCallback(M=>{!M||M===1/0||(window.clearTimeout(k.current),T.current=new Date().getTime(),k.current=window.setTimeout($,M))},[$]);x.useEffect(()=>{const M=g.viewport;if(M){const q=()=>{V(P.current),u==null||u()},z=()=>{const ae=new Date().getTime()-T.current;P.current=P.current-ae,window.clearTimeout(k.current),l==null||l()};return M.addEventListener(Pl,z),M.addEventListener(Tl,q),()=>{M.removeEventListener(Pl,z),M.removeEventListener(Tl,q)}}},[g.viewport,E,l,u,V]),x.useEffect(()=>{i&&!g.isClosePausedRef.current&&V(E)},[i,E,g.isClosePausedRef,V]),x.useEffect(()=>(A(),()=>j()),[A,j]);const ee=x.useMemo(()=>C?Lm(C):null,[C]);return g.viewport?y.jsxs(y.Fragment,{children:[ee&&y.jsx(G1,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:ee}),y.jsx($1,{scope:n,onClose:$,children:Cs.createPortal(y.jsx(Uu.ItemSlot,{scope:n,children:y.jsx(P1,{asChild:!0,onEscapeKeyDown:ge(a,()=>{g.isFocusedToastEscapeKeyDownRef.current||$(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:y.jsx(Se.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":g.swipeDirection,...w,ref:p,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ge(e.onKeyDown,M=>{M.key==="Escape"&&(a==null||a(M.nativeEvent),M.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,$()))}),onPointerDown:ge(e.onPointerDown,M=>{M.button===0&&(h.current={x:M.clientX,y:M.clientY})}),onPointerMove:ge(e.onPointerMove,M=>{if(!h.current)return;const q=M.clientX-h.current.x,z=M.clientY-h.current.y,ae=!!S.current,b=["left","right"].includes(g.swipeDirection),D=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,_=b?D(0,q):0,L=b?0:D(0,z),B=M.pointerType==="touch"?10:2,H={x:_,y:L},ze={originalEvent:M,delta:H};ae?(S.current=H,ei(z1,c,ze,{discrete:!1})):Ad(H,g.swipeDirection,B)?(S.current=H,ei(F1,d,ze,{discrete:!1}),M.target.setPointerCapture(M.pointerId)):(Math.abs(q)>B||Math.abs(z)>B)&&(h.current=null)}),onPointerUp:ge(e.onPointerUp,M=>{const q=S.current,z=M.target;if(z.hasPointerCapture(M.pointerId)&&z.releasePointerCapture(M.pointerId),S.current=null,h.current=null,q){const ae=M.currentTarget,b={originalEvent:M,delta:q};Ad(q,g.swipeDirection,g.swipeThreshold)?ei(U1,v,b,{discrete:!0}):ei(B1,f,b,{discrete:!0}),ae.addEventListener("click",D=>D.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),G1=e=>{const{__scopeToast:t,children:n,...r}=e,o=Es(Ro,t),[i,s]=x.useState(!1),[a,l]=x.useState(!1);return Y1(()=>s(!0)),x.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:y.jsx(Fu,{asChild:!0,children:y.jsx(zu,{...r,children:i&&y.jsxs(y.Fragment,{children:[o.label," ",n]})})})},K1="ToastTitle",bm=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return y.jsx(Se.div,{...r,ref:t})});bm.displayName=K1;var Q1="ToastDescription",Rm=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return y.jsx(Se.div,{...r,ref:t})});Rm.displayName=Q1;var Am="ToastAction",Mm=x.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?y.jsx(jm,{altText:n,asChild:!0,children:y.jsx($u,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Am}\`. Expected non-empty \`string\`.`),null)});Mm.displayName=Am;var Dm="ToastClose",$u=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=W1(Dm,n);return y.jsx(jm,{asChild:!0,children:y.jsx(Se.button,{type:"button",...r,ref:t,onClick:ge(e.onClick,o.onClose)})})});$u.displayName=Dm;var jm=x.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return y.jsx(Se.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function Lm(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),X1(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...Lm(r))}}),t}function ei(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?vm(o,i):o.dispatchEvent(i)}var Ad=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function Y1(e=()=>{}){const t=Dt(e);yr(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function X1(e){return e.nodeType===e.ELEMENT_NODE}function Z1(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function sa(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var q1=Em,Vm=Tm,Im=Nm,_m=bm,Om=Rm,Fm=Mm,zm=$u;const Md=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Dd=cm,Wu=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Dd(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(u=>{const d=n==null?void 0:n[u],c=i==null?void 0:i[u];if(d===null)return null;const f=Md(d)||Md(c);return o[u][f]}),a=n&&Object.entries(n).reduce((u,d)=>{let[c,f]=d;return f===void 0||(u[c]=f),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:c,className:f,...v}=d;return Object.entries(v).every(w=>{let[g,C]=w;return Array.isArray(C)?C.includes({...i,...a}[g]):{...i,...a}[g]===C})?[...u,c,f]:u},[]);return Dd(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)};var J1={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"};const ew=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),fe=(e,t)=>{const n=x.forwardRef(({color:r="currentColor",size:o=24,strokeWidth:i=2,absoluteStrokeWidth:s,children:a,...l},u)=>x.createElement("svg",{ref:u,...J1,width:o,height:o,stroke:r,strokeWidth:s?Number(i)*24/Number(o):i,className:`lucide lucide-${ew(e)}`,...l},[...t.map(([d,c])=>x.createElement(d,c)),...(Array.isArray(a)?a:[a])||[]]));return n.displayName=`${e}`,n},tw=fe("Award",[["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}],["path",{d:"M15.477 12.89 17 22l-5-3-5 3 1.523-9.11",key:"em7aur"}]]),Si=fe("Briefcase",[["rect",{width:"20",height:"14",x:"2",y:"7",rx:"2",ry:"2",key:"eto64e"}],["path",{d:"M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"zwj3tp"}]]),nw=fe("CalendarDays",[["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",ry:"2",key:"eu3xkr"}],["line",{x1:"16",x2:"16",y1:"2",y2:"6",key:"m3sa8f"}],["line",{x1:"8",x2:"8",y1:"2",y2:"6",key:"18kwsl"}],["line",{x1:"3",x2:"21",y1:"10",y2:"10",key:"xt86sb"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]),Bm=fe("Code2",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]),rw=fe("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]),ow=fe("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"}]]),iw=fe("ExternalLink",[["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}],["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["line",{x1:"10",x2:"21",y1:"14",y2:"3",key:"18c3s4"}]]),sw=fe("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]),aw=fe("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"}]]),lw=fe("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]),Um=fe("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"}]]),$m=fe("MapPin",[["path",{d:"M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z",key:"2oe9fu"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]),uw=fe("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"}]]),cw=fe("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]),dw=fe("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]]),fw=fe("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]),pw=fe("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]),Wm=fe("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]),Hm=fe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),hw=fe("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]),mw=q1,Gm=Y.forwardRef(({className:e,...t},n)=>y.jsx(Vm,{ref:n,className:Ne("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));Gm.displayName=Vm.displayName;const gw=Wu("data-[swipe=move]:transition-none group relative pointer-events-auto flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full data-[state=closed]:slide-out-to-right-full",{variants:{variant:{default:"bg-background border",destructive:"group destructive border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Km=Y.forwardRef(({className:e,variant:t,...n},r)=>y.jsx(Im,{ref:r,className:Ne(gw({variant:t}),e),...n}));Km.displayName=Im.displayName;const vw=Y.forwardRef(({className:e,...t},n)=>y.jsx(Fm,{ref:n,className:Ne("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-destructive/30 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));vw.displayName=Fm.displayName;const Qm=Y.forwardRef(({className:e,...t},n)=>y.jsx(zm,{ref:n,className:Ne("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:y.jsx(Hm,{className:"h-4 w-4"})}));Qm.displayName=zm.displayName;const Ym=Y.forwardRef(({className:e,...t},n)=>y.jsx(_m,{ref:n,className:Ne("text-sm font-semibold",e),...t}));Ym.displayName=_m.displayName;const Xm=Y.forwardRef(({className:e,...t},n)=>y.jsx(Om,{ref:n,className:Ne("text-sm opacity-90",e),...t}));Xm.displayName=Om.displayName;const yw=1;let aa=0;function xw(){return aa=(aa+1)%Number.MAX_VALUE,aa.toString()}const be={state:{toasts:[]},listeners:[],getState:()=>be.state,setState:e=>{typeof e=="function"?be.state=e(be.state):be.state={...be.state,...e},be.listeners.forEach(t=>t(be.state))},subscribe:e=>(be.listeners.push(e),()=>{be.listeners=be.listeners.filter(t=>t!==e)})},Nl=({...e})=>{const t=xw(),n=o=>be.setState(i=>({...i,toasts:i.toasts.map(s=>s.id===t?{...s,...o}:s)})),r=()=>be.setState(o=>({...o,toasts:o.toasts.filter(i=>i.id!==t)}));return be.setState(o=>({...o,toasts:[{...e,id:t,dismiss:r},...o.toasts].slice(0,yw)})),{id:t,dismiss:r,update:n}};function ww(){const[e,t]=x.useState(be.getState());return x.useEffect(()=>be.subscribe(r=>{t(r)}),[]),x.useEffect(()=>{const n=[];return e.toasts.forEach(r=>{if(r.duration===1/0)return;const o=setTimeout(()=>{r.dismiss()},r.duration||5e3);n.push(o)}),()=>{n.forEach(r=>clearTimeout(r))}},[e.toasts]),{toast:Nl,toasts:e.toasts}}function Sw(){const{toasts:e}=ww();return y.jsxs(mw,{children:[e.map(({id:t,title:n,description:r,action:o,...i})=>y.jsxs(Km,{...i,children:[y.jsxs("div",{className:"grid gap-1",children:[n&&y.jsx(Ym,{children:n}),r&&y.jsx(Xm,{children:r})]}),o,y.jsx(Qm,{})]},t)),y.jsx(Gm,{})]})}const Zm=x.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Ps=x.createContext({}),Hu=x.createContext(null),Ts=typeof document<"u",Cw=Ts?x.useLayoutEffect:x.useEffect,qm=x.createContext({strict:!1}),Gu=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Ew="framerAppearId",Jm="data-"+Gu(Ew);function Pw(e,t,n,r){const{visualElement:o}=x.useContext(Ps),i=x.useContext(qm),s=x.useContext(Hu),a=x.useContext(Zm).reducedMotion,l=x.useRef();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;x.useInsertionEffect(()=>{u&&u.update(n,s)});const d=x.useRef(!!(n[Jm]&&!window.HandoffComplete));return Cw(()=>{u&&(u.render(),d.current&&u.animationState&&u.animationState.animateChanges())}),x.useEffect(()=>{u&&(u.updateFeatures(),!d.current&&u.animationState&&u.animationState.animateChanges(),d.current&&(d.current=!1,window.HandoffComplete=!0))}),u}function er(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Tw(e,t,n){return x.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):er(n)&&(n.current=r))},[t])}function wo(e){return typeof e=="string"||Array.isArray(e)}function ks(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Ku=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Qu=["initial",...Ku];function Ns(e){return ks(e.animate)||Qu.some(t=>wo(e[t]))}function eg(e){return!!(Ns(e)||e.variants)}function kw(e,t){if(Ns(e)){const{initial:n,animate:r}=e;return{initial:n===!1||wo(n)?n:void 0,animate:wo(r)?r:void 0}}return e.inherit!==!1?t:{}}function Nw(e){const{initial:t,animate:n}=kw(e,x.useContext(Ps));return x.useMemo(()=>({initial:t,animate:n}),[jd(t),jd(n)])}function jd(e){return Array.isArray(e)?e.join(" "):e}const Ld={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"]},So={};for(const e in Ld)So[e]={isEnabled:t=>Ld[e].some(n=>!!t[n])};function bw(e){for(const t in e)So[t]={...So[t],...e[t]}}const tg=x.createContext({}),ng=x.createContext({}),Rw=Symbol.for("motionComponentSymbol");function Aw({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&bw(e);function i(a,l){let u;const d={...x.useContext(Zm),...a,layoutId:Mw(a)},{isStatic:c}=d,f=Nw(a),v=r(a,c);if(!c&&Ts){f.visualElement=Pw(o,v,d,t);const w=x.useContext(ng),g=x.useContext(qm).strict;f.visualElement&&(u=f.visualElement.loadFeatures(d,g,e,w))}return x.createElement(Ps.Provider,{value:f},u&&f.visualElement?x.createElement(u,{visualElement:f.visualElement,...d}):null,n(o,a,Tw(v,f.visualElement,l),v,c,f.visualElement))}const s=x.forwardRef(i);return s[Rw]=o,s}function Mw({layoutId:e}){const t=x.useContext(tg).id;return t&&e!==void 0?t+"-"+e:e}function Dw(e){function t(r,o={}){return Aw(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const jw=["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 Yu(e){return typeof e!="string"||e.includes("-")?!1:!!(jw.indexOf(e)>-1||/[A-Z]/.test(e))}const Zi={};function Lw(e){Object.assign(Zi,e)}const Ao=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Vn=new Set(Ao);function rg(e,{layout:t,layoutId:n}){return Vn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Zi[e]||e==="opacity")}const Fe=e=>!!(e&&e.getVelocity),Vw={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Iw=Ao.length;function _w(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let s=0;st=>typeof t=="string"&&t.startsWith(e),ig=og("--"),bl=og("var(--"),Ow=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,Fw=(e,t)=>t&&typeof e=="number"?t.transform(e):e,on=(e,t,n)=>Math.min(Math.max(n,e),t),In={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Zr={...In,transform:e=>on(0,1,e)},ti={...In,default:1},qr=e=>Math.round(e*1e5)/1e5,bs=/(-)?([\d]*\.?[\d])+/g,sg=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,zw=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Mo(e){return typeof e=="string"}const Do=e=>({test:t=>Mo(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),_t=Do("deg"),xt=Do("%"),I=Do("px"),Bw=Do("vh"),Uw=Do("vw"),Vd={...xt,parse:e=>xt.parse(e)/100,transform:e=>xt.transform(e*100)},Id={...In,transform:Math.round},ag={borderWidth:I,borderTopWidth:I,borderRightWidth:I,borderBottomWidth:I,borderLeftWidth:I,borderRadius:I,radius:I,borderTopLeftRadius:I,borderTopRightRadius:I,borderBottomRightRadius:I,borderBottomLeftRadius:I,width:I,maxWidth:I,height:I,maxHeight:I,size:I,top:I,right:I,bottom:I,left:I,padding:I,paddingTop:I,paddingRight:I,paddingBottom:I,paddingLeft:I,margin:I,marginTop:I,marginRight:I,marginBottom:I,marginLeft:I,rotate:_t,rotateX:_t,rotateY:_t,rotateZ:_t,scale:ti,scaleX:ti,scaleY:ti,scaleZ:ti,skew:_t,skewX:_t,skewY:_t,distance:I,translateX:I,translateY:I,translateZ:I,x:I,y:I,z:I,perspective:I,transformPerspective:I,opacity:Zr,originX:Vd,originY:Vd,originZ:I,zIndex:Id,fillOpacity:Zr,strokeOpacity:Zr,numOctaves:Id};function Xu(e,t,n,r){const{style:o,vars:i,transform:s,transformOrigin:a}=e;let l=!1,u=!1,d=!0;for(const c in t){const f=t[c];if(ig(c)){i[c]=f;continue}const v=ag[c],w=Fw(f,v);if(Vn.has(c)){if(l=!0,s[c]=w,!d)continue;f!==(v.default||0)&&(d=!1)}else c.startsWith("origin")?(u=!0,a[c]=w):o[c]=w}if(t.transform||(l||r?o.transform=_w(e.transform,n,d,r):o.transform&&(o.transform="none")),u){const{originX:c="50%",originY:f="50%",originZ:v=0}=a;o.transformOrigin=`${c} ${f} ${v}`}}const Zu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function lg(e,t,n){for(const r in t)!Fe(t[r])&&!rg(r,n)&&(e[r]=t[r])}function $w({transformTemplate:e},t,n){return x.useMemo(()=>{const r=Zu();return Xu(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function Ww(e,t,n){const r=e.style||{},o={};return lg(o,r,e),Object.assign(o,$w(e,t,n)),e.transformValues?e.transformValues(o):o}function Hw(e,t,n){const r={},o=Ww(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const Gw=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function qi(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Gw.has(e)}let ug=e=>!qi(e);function Kw(e){e&&(ug=t=>t.startsWith("on")?!qi(t):e(t))}try{Kw(require("@emotion/is-prop-valid").default)}catch{}function Qw(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(ug(o)||n===!0&&qi(o)||!t&&!qi(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function _d(e,t,n){return typeof e=="string"?e:I.transform(t+n*e)}function Yw(e,t,n){const r=_d(t,e.x,e.width),o=_d(n,e.y,e.height);return`${r} ${o}`}const Xw={offset:"stroke-dashoffset",array:"stroke-dasharray"},Zw={offset:"strokeDashoffset",array:"strokeDasharray"};function qw(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Xw:Zw;e[i.offset]=I.transform(-r);const s=I.transform(t),a=I.transform(n);e[i.array]=`${s} ${a}`}function qu(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},d,c,f){if(Xu(e,u,d,f),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:v,style:w,dimensions:g}=e;v.transform&&(g&&(w.transform=v.transform),delete v.transform),g&&(o!==void 0||i!==void 0||w.transform)&&(w.transformOrigin=Yw(g,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(v.x=t),n!==void 0&&(v.y=n),r!==void 0&&(v.scale=r),s!==void 0&&qw(v,s,a,l,!1)}const cg=()=>({...Zu(),attrs:{}}),Ju=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Jw(e,t,n,r){const o=x.useMemo(()=>{const i=cg();return qu(i,t,{enableHardwareAcceleration:!1},Ju(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};lg(i,e.style,e),o.style={...i,...o.style}}return o}function eS(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(Yu(n)?Jw:Hw)(r,i,s,n),d={...Qw(r,typeof n=="string",e),...l,ref:o},{children:c}=r,f=x.useMemo(()=>Fe(c)?c.get():c,[c]);return x.createElement(n,{...d,children:f})}}function dg(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const fg=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function pg(e,t,n,r){dg(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(fg.has(o)?o:Gu(o),t.attrs[o])}function ec(e,t){const{style:n}=e,r={};for(const o in n)(Fe(n[o])||t.style&&Fe(t.style[o])||rg(o,e))&&(r[o]=n[o]);return r}function hg(e,t){const n=ec(e,t);for(const r in e)if(Fe(e[r])||Fe(t[r])){const o=Ao.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[o]=e[r]}return n}function tc(e,t,n,r={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),t}function tS(e){const t=x.useRef(null);return t.current===null&&(t.current=e()),t.current}const Ji=e=>Array.isArray(e),nS=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),rS=e=>Ji(e)?e[e.length-1]||0:e;function Ci(e){const t=Fe(e)?e.get():e;return nS(t)?t.toValue():t}function oS({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:iS(r,o,i,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const mg=e=>(t,n)=>{const r=x.useContext(Ps),o=x.useContext(Hu),i=()=>oS(e,t,r,o);return n?i():tS(i)};function iS(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=Ci(i[f]);let{initial:s,animate:a}=e;const l=Ns(e),u=eg(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||s===!1;const c=d?a:s;return c&&typeof c!="boolean"&&!ks(c)&&(Array.isArray(c)?c:[c]).forEach(v=>{const w=tc(e,v);if(!w)return;const{transitionEnd:g,transition:C,...m}=w;for(const p in m){let h=m[p];if(Array.isArray(h)){const S=d?h.length-1:0;h=h[S]}h!==null&&(o[p]=h)}for(const p in g)o[p]=g[p]}),o}const se=e=>e;class Od{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function sS(e){let t=new Od,n=new Od,r=0,o=!1,i=!1;const s=new WeakSet,a={schedule:(l,u=!1,d=!1)=>{const c=d&&o,f=c?t:n;return u&&s.add(l),f.add(l)&&c&&o&&(r=t.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u(c[f]=sS(()=>n=!0),c),{}),s=c=>i[c].process(o),a=()=>{const c=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(c-o.timestamp,aS),1),o.timestamp=c,o.isProcessing=!0,ni.forEach(s),o.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,o.isProcessing||e(a)};return{schedule:ni.reduce((c,f)=>{const v=i[f];return c[f]=(w,g=!1,C=!1)=>(n||l(),v.schedule(w,g,C)),c},{}),cancel:c=>ni.forEach(f=>i[f].cancel(c)),state:o,steps:i}}const{schedule:Z,cancel:jt,state:Pe,steps:la}=lS(typeof requestAnimationFrame<"u"?requestAnimationFrame:se,!0),uS={useVisualState:mg({scrapeMotionValuesFromProps:hg,createRenderState:cg,onMount:(e,t,{renderState:n,latestValues:r})=>{Z.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Z.render(()=>{qu(n,r,{enableHardwareAcceleration:!1},Ju(t.tagName),e.transformTemplate),pg(t,n)})}})},cS={useVisualState:mg({scrapeMotionValuesFromProps:ec,createRenderState:Zu})};function dS(e,{forwardMotionProps:t=!1},n,r){return{...Yu(e)?uS:cS,preloadedFeatures:n,useRender:eS(t),createVisualElement:r,Component:e}}function Pt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const gg=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Rs(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const fS=e=>t=>gg(t)&&e(t,Rs(t));function kt(e,t,n,r){return Pt(e,t,fS(n),r)}const pS=(e,t)=>n=>t(e(n)),en=(...e)=>e.reduce(pS);function vg(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Fd=vg("dragHorizontal"),zd=vg("dragVertical");function yg(e){let t=!1;if(e==="y")t=zd();else if(e==="x")t=Fd();else{const n=Fd(),r=zd();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function xg(){const e=yg(!0);return e?(e(),!1):!0}class cn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Bd(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),o=(i,s)=>{if(i.pointerType==="touch"||xg())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[r]&&Z.update(()=>a[r](i,s))};return kt(e.current,n,o,{passive:!e.getProps()[r]})}class hS extends cn{mount(){this.unmount=en(Bd(this.node,!0),Bd(this.node,!1))}unmount(){}}class mS extends cn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=en(Pt(this.node.current,"focus",()=>this.onFocus()),Pt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const wg=(e,t)=>t?e===t?!0:wg(e,t.parentElement):!1;function ua(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Rs(n))}class gS extends cn{constructor(){super(...arguments),this.removeStartListeners=se,this.removeEndListeners=se,this.removeAccessibleListeners=se,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=kt(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:d,globalTapTarget:c}=this.node.getProps();Z.update(()=>{!c&&!wg(this.node.current,a.target)?d&&d(a,l):u&&u(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=kt(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=en(i,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||ua("up",(l,u)=>{const{onTap:d}=this.node.getProps();d&&Z.update(()=>d(l,u))})};this.removeEndListeners(),this.removeEndListeners=Pt(this.node.current,"keyup",s),ua("down",(a,l)=>{this.startPress(a,l)})},n=Pt(this.node.current,"keydown",t),r=()=>{this.isPressing&&ua("cancel",(i,s)=>this.cancelPress(i,s))},o=Pt(this.node.current,"blur",r);this.removeAccessibleListeners=en(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Z.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!xg()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Z.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=kt(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Pt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=en(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Rl=new WeakMap,ca=new WeakMap,vS=e=>{const t=Rl.get(e.target);t&&t(e)},yS=e=>{e.forEach(vS)};function xS({root:e,...t}){const n=e||document;ca.has(n)||ca.set(n,{});const r=ca.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(yS,{root:e,...t})),r[o]}function wS(e,t,n){const r=xS(t);return Rl.set(e,n),r.observe(e),()=>{Rl.delete(e),r.unobserve(e)}}const SS={some:0,all:1};class CS extends cn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:SS[o]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:c}=this.node.getProps(),f=u?d:c;f&&f(l)};return wS(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(ES(t,n))&&this.startObserver()}unmount(){}}function ES({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const PS={inView:{Feature:CS},tap:{Feature:gS},focus:{Feature:mS},hover:{Feature:hS}};function Sg(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rt[r]=n.get()),t}function kS(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function As(e,t,n){const r=e.getProps();return tc(r,t,n!==void 0?n:r.custom,TS(e),kS(e))}let NS=se,nc=se;const tn=e=>e*1e3,Nt=e=>e/1e3,bS={current:!1},Cg=e=>Array.isArray(e)&&typeof e[0]=="number";function Eg(e){return!!(!e||typeof e=="string"&&Pg[e]||Cg(e)||Array.isArray(e)&&e.every(Eg))}const zr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Pg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:zr([0,.65,.55,1]),circOut:zr([.55,0,1,.45]),backIn:zr([.31,.01,.66,-.59]),backOut:zr([.33,1.53,.69,.99])};function Tg(e){if(e)return Cg(e)?zr(e):Array.isArray(e)?e.map(Tg):Pg[e]}function RS(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const d=Tg(a);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}function AS(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const kg=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,MS=1e-7,DS=12;function jS(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=kg(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>MS&&++ajS(i,0,1,e,n);return i=>i===0||i===1?i:kg(o(i),t,r)}const LS=jo(.42,0,1,1),VS=jo(0,0,.58,1),Ng=jo(.42,0,.58,1),IS=e=>Array.isArray(e)&&typeof e[0]!="number",bg=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Rg=e=>t=>1-e(1-t),rc=e=>1-Math.sin(Math.acos(e)),Ag=Rg(rc),_S=bg(rc),Mg=jo(.33,1.53,.69,.99),oc=Rg(Mg),OS=bg(oc),FS=e=>(e*=2)<1?.5*oc(e):.5*(2-Math.pow(2,-10*(e-1))),zS={linear:se,easeIn:LS,easeInOut:Ng,easeOut:VS,circIn:rc,circInOut:_S,circOut:Ag,backIn:oc,backInOut:OS,backOut:Mg,anticipate:FS},Ud=e=>{if(Array.isArray(e)){nc(e.length===4);const[t,n,r,o]=e;return jo(t,n,r,o)}else if(typeof e=="string")return zS[e];return e},ic=(e,t)=>n=>!!(Mo(n)&&zw.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Dg=(e,t,n)=>r=>{if(!Mo(r))return r;const[o,i,s,a]=r.match(bs);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},BS=e=>on(0,255,e),da={...In,transform:e=>Math.round(BS(e))},Cn={test:ic("rgb","red"),parse:Dg("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+da.transform(e)+", "+da.transform(t)+", "+da.transform(n)+", "+qr(Zr.transform(r))+")"};function US(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Al={test:ic("#"),parse:US,transform:Cn.transform},tr={test:ic("hsl","hue"),parse:Dg("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+xt.transform(qr(t))+", "+xt.transform(qr(n))+", "+qr(Zr.transform(r))+")"},Re={test:e=>Cn.test(e)||Al.test(e)||tr.test(e),parse:e=>Cn.test(e)?Cn.parse(e):tr.test(e)?tr.parse(e):Al.parse(e),transform:e=>Mo(e)?e:e.hasOwnProperty("red")?Cn.transform(e):tr.transform(e)},ne=(e,t,n)=>-n*e+n*t+e;function fa(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function $S({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=fa(l,a,e+1/3),i=fa(l,a,e),s=fa(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}const pa=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},WS=[Al,Cn,tr],HS=e=>WS.find(t=>t.test(e));function $d(e){const t=HS(e);let n=t.parse(e);return t===tr&&(n=$S(n)),n}const jg=(e,t)=>{const n=$d(e),r=$d(t),o={...n};return i=>(o.red=pa(n.red,r.red,i),o.green=pa(n.green,r.green,i),o.blue=pa(n.blue,r.blue,i),o.alpha=ne(n.alpha,r.alpha,i),Cn.transform(o))};function GS(e){var t,n;return isNaN(e)&&Mo(e)&&(((t=e.match(bs))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(sg))===null||n===void 0?void 0:n.length)||0)>0}const Lg={regex:Ow,countKey:"Vars",token:"${v}",parse:se},Vg={regex:sg,countKey:"Colors",token:"${c}",parse:Re.parse},Ig={regex:bs,countKey:"Numbers",token:"${n}",parse:In.parse};function ha(e,{regex:t,countKey:n,token:r,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+n]=i.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...i.map(o)))}function es(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&ha(n,Lg),ha(n,Vg),ha(n,Ig),n}function _g(e){return es(e).values}function Og(e){const{values:t,numColors:n,numVars:r,tokenised:o}=es(e),i=t.length;return s=>{let a=o;for(let l=0;ltypeof e=="number"?0:e;function QS(e){const t=_g(e);return Og(e)(t.map(KS))}const sn={test:GS,parse:_g,createTransformer:Og,getAnimatableNone:QS},Fg=(e,t)=>n=>`${n>0?t:e}`;function zg(e,t){return typeof e=="number"?n=>ne(e,t,n):Re.test(e)?jg(e,t):e.startsWith("var(")?Fg(e,t):Ug(e,t)}const Bg=(e,t)=>{const n=[...e],r=n.length,o=e.map((i,s)=>zg(i,t[s]));return i=>{for(let s=0;s{const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=zg(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}},Ug=(e,t)=>{const n=sn.createTransformer(t),r=es(e),o=es(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?en(Bg(r.values,o.values),n):Fg(e,t)},Co=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Wd=(e,t)=>n=>ne(e,t,n);function XS(e){return typeof e=="number"?Wd:typeof e=="string"?Re.test(e)?jg:Ug:Array.isArray(e)?Bg:typeof e=="object"?YS:Wd}function ZS(e,t,n){const r=[],o=n||XS(e[0]),i=e.length-1;for(let s=0;st[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=ZS(t,r,o),a=s.length,l=u=>{let d=0;if(a>1)for(;dl(on(e[0],e[i-1],u)):l}function qS(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Co(0,t,r);e.push(ne(n,1,o))}}function JS(e){const t=[0];return qS(t,e.length-1),t}function eC(e,t){return e.map(n=>n*t)}function tC(e,t){return e.map(()=>t||Ng).splice(0,e.length-1)}function ts({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=IS(r)?r.map(Ud):Ud(r),i={done:!1,value:t[0]},s=eC(n&&n.length===t.length?n:JS(t),e),a=$g(s,t,{ease:Array.isArray(o)?o:tC(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}function Wg(e,t){return t?e*(1e3/t):0}const nC=5;function Hg(e,t,n){const r=Math.max(t-nC,0);return Wg(n-e(r),t-r)}const ma=.001,rC=.01,Hd=10,oC=.05,iC=1;function sC({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;NS(e<=tn(Hd));let s=1-t;s=on(oC,iC,s),e=on(rC,Hd,Nt(e)),s<1?(o=u=>{const d=u*s,c=d*e,f=d-n,v=Ml(u,s),w=Math.exp(-c);return ma-f/v*w},i=u=>{const c=u*s*e,f=c*n+n,v=Math.pow(s,2)*Math.pow(u,2)*e,w=Math.exp(-c),g=Ml(Math.pow(u,2),s);return(-o(u)+ma>0?-1:1)*((f-v)*w)/g}):(o=u=>{const d=Math.exp(-u*e),c=(u-n)*e+1;return-ma+d*c},i=u=>{const d=Math.exp(-u*e),c=(n-u)*(e*e);return d*c});const a=5/e,l=lC(o,i,a);if(e=tn(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const aC=12;function lC(e,t,n){let r=n;for(let o=1;oe[n]!==void 0)}function dC(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Gd(e,cC)&&Gd(e,uC)){const n=sC(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Gg({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:l,mass:u,duration:d,velocity:c,isResolvedFromDuration:f}=dC({...r,velocity:-Nt(r.velocity||0)}),v=c||0,w=l/(2*Math.sqrt(a*u)),g=i-o,C=Nt(Math.sqrt(a/u)),m=Math.abs(g)<5;n||(n=m?.01:2),t||(t=m?.005:.5);let p;if(w<1){const h=Ml(C,w);p=S=>{const E=Math.exp(-w*C*S);return i-E*((v+w*C*g)/h*Math.sin(h*S)+g*Math.cos(h*S))}}else if(w===1)p=h=>i-Math.exp(-C*h)*(g+(v+C*g)*h);else{const h=C*Math.sqrt(w*w-1);p=S=>{const E=Math.exp(-w*C*S),T=Math.min(h*S,300);return i-E*((v+w*C*g)*Math.sinh(T)+h*g*Math.cosh(T))/h}}return{calculatedDuration:f&&d||null,next:h=>{const S=p(h);if(f)s.done=h>=d;else{let E=v;h!==0&&(w<1?E=Hg(p,h,S):E=0);const T=Math.abs(E)<=n,P=Math.abs(i-S)<=t;s.done=T&&P}return s.value=s.done?i:S,s}}}function Kd({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:d}){const c=e[0],f={done:!1,value:c},v=k=>a!==void 0&&kl,w=k=>a===void 0?l:l===void 0||Math.abs(a-k)-g*Math.exp(-k/r),h=k=>m+p(k),S=k=>{const A=p(k),j=h(k);f.done=Math.abs(A)<=u,f.value=f.done?m:j};let E,T;const P=k=>{v(f.value)&&(E=k,T=Gg({keyframes:[f.value,w(f.value)],velocity:Hg(h,k,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:d}))};return P(0),{calculatedDuration:null,next:k=>{let A=!1;return!T&&E===void 0&&(A=!0,S(k),P(k)),E!==void 0&&k>E?T.next(k-E):(!A&&S(k),f)}}}const fC=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Z.update(t,!0),stop:()=>jt(t),now:()=>Pe.isProcessing?Pe.timestamp:performance.now()}},Qd=2e4;function Yd(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=Qd?1/0:t}const pC={decay:Kd,inertia:Kd,tween:ts,keyframes:ts,spring:Gg};function ns({autoplay:e=!0,delay:t=0,driver:n=fC,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:d,onUpdate:c,...f}){let v=1,w=!1,g,C;const m=()=>{C=new Promise(L=>{g=L})};m();let p;const h=pC[o]||ts;let S;h!==ts&&typeof r[0]!="number"&&(S=$g([0,100],r,{clamp:!1}),r=[0,100]);const E=h({...f,keyframes:r});let T;a==="mirror"&&(T=h({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let P="idle",k=null,A=null,j=null;E.calculatedDuration===null&&i&&(E.calculatedDuration=Yd(E));const{calculatedDuration:$}=E;let V=1/0,ee=1/0;$!==null&&(V=$+s,ee=V*(i+1)-s);let M=0;const q=L=>{if(A===null)return;v>0&&(A=Math.min(A,L)),v<0&&(A=Math.min(L-ee/v,A)),k!==null?M=k:M=Math.round(L-A)*v;const B=M-t*(v>=0?1:-1),H=v>=0?B<0:B>ee;M=Math.max(B,0),P==="finished"&&k===null&&(M=ee);let ze=M,_n=E;if(i){const js=Math.min(M,ee)/V;let Lo=Math.floor(js),fn=js%1;!fn&&js>=1&&(fn=1),fn===1&&Lo--,Lo=Math.min(Lo,i+1),!!(Lo%2)&&(a==="reverse"?(fn=1-fn,s&&(fn-=s/V)):a==="mirror"&&(_n=T)),ze=on(0,1,fn)*V}const Be=H?{done:!1,value:r[0]}:_n.next(ze);S&&(Be.value=S(Be.value));let{done:dn}=Be;!H&&$!==null&&(dn=v>=0?M>=ee:M<=0);const iy=k===null&&(P==="finished"||P==="running"&&dn);return c&&c(Be.value),iy&&b(),Be},z=()=>{p&&p.stop(),p=void 0},ae=()=>{P="idle",z(),g(),m(),A=j=null},b=()=>{P="finished",d&&d(),z(),g()},D=()=>{if(w)return;p||(p=n(q));const L=p.now();l&&l(),k!==null?A=L-k:(!A||P==="finished")&&(A=L),P==="finished"&&m(),j=A,k=null,P="running",p.start()};e&&D();const _={then(L,B){return C.then(L,B)},get time(){return Nt(M)},set time(L){L=tn(L),M=L,k!==null||!p||v===0?k=L:A=p.now()-L/v},get duration(){const L=E.calculatedDuration===null?Yd(E):E.calculatedDuration;return Nt(L)},get speed(){return v},set speed(L){L===v||!p||(v=L,_.time=Nt(M))},get state(){return P},play:D,pause:()=>{P="paused",k=M},stop:()=>{w=!0,P!=="idle"&&(P="idle",u&&u(),ae())},cancel:()=>{j!==null&&q(j),ae()},complete:()=>{P="finished"},sample:L=>(A=0,q(L))};return _}function hC(e){let t;return()=>(t===void 0&&(t=e()),t)}const mC=hC(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),gC=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),ri=10,vC=2e4,yC=(e,t)=>t.type==="spring"||e==="backgroundColor"||!Eg(t.ease);function xC(e,t,{onUpdate:n,onComplete:r,...o}){if(!(mC()&&gC.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let s=!1,a,l,u=!1;const d=()=>{l=new Promise(h=>{a=h})};d();let{keyframes:c,duration:f=300,ease:v,times:w}=o;if(yC(t,o)){const h=ns({...o,repeat:0,delay:0});let S={done:!1,value:c[0]};const E=[];let T=0;for(;!S.done&&T{u=!1,g.cancel()},m=()=>{u=!0,Z.update(C),a(),d()};return g.onfinish=()=>{u||(e.set(AS(c,o)),r&&r(),m())},{then(h,S){return l.then(h,S)},attachTimeline(h){return g.timeline=h,g.onfinish=null,se},get time(){return Nt(g.currentTime||0)},set time(h){g.currentTime=tn(h)},get speed(){return g.playbackRate},set speed(h){g.playbackRate=h},get duration(){return Nt(f)},play:()=>{s||(g.play(),jt(C))},pause:()=>g.pause(),stop:()=>{if(s=!0,g.playState==="idle")return;const{currentTime:h}=g;if(h){const S=ns({...o,autoplay:!1});e.setWithVelocity(S.sample(h-ri).value,S.sample(h).value,ri)}m()},complete:()=>{u||g.finish()},cancel:m}}function wC({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:se,pause:se,stop:se,then:i=>(i(),Promise.resolve()),cancel:se,complete:se});return t?ns({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const SC={type:"spring",stiffness:500,damping:25,restSpeed:10},CC=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),EC={type:"keyframes",duration:.8},PC={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},TC=(e,{keyframes:t})=>t.length>2?EC:Vn.has(e)?e.startsWith("scale")?CC(t[1]):SC:PC,Dl=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(sn.test(t)||t==="0")&&!t.startsWith("url(")),kC=new Set(["brightness","contrast","saturate","opacity"]);function NC(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(bs)||[];if(!r)return e;const o=n.replace(r,"");let i=kC.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const bC=/([a-z-]*)\(.*?\)/g,jl={...sn,getAnimatableNone:e=>{const t=e.match(bC);return t?t.map(NC).join(" "):e}},RC={...ag,color:Re,backgroundColor:Re,outlineColor:Re,fill:Re,stroke:Re,borderColor:Re,borderTopColor:Re,borderRightColor:Re,borderBottomColor:Re,borderLeftColor:Re,filter:jl,WebkitFilter:jl},sc=e=>RC[e];function Kg(e,t){let n=sc(e);return n!==jl&&(n=sn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Qg=e=>/^0[^.\s]+$/.test(e);function AC(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Qg(e)}function MC(e,t,n,r){const o=Dl(t,n);let i;Array.isArray(n)?i=[...n]:i=[null,n];const s=r.from!==void 0?r.from:e.get();let a;const l=[];for(let u=0;uo=>{const i=ac(r,e)||{},s=i.delay||r.delay||0;let{elapsed:a=0}=r;a=a-tn(s);const l=MC(t,e,n,i),u=l[0],d=l[l.length-1],c=Dl(e,u),f=Dl(e,d);let v={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-a,onUpdate:w=>{t.set(w),i.onUpdate&&i.onUpdate(w)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(DC(i)||(v={...v,...TC(e,v)}),v.duration&&(v.duration=tn(v.duration)),v.repeatDelay&&(v.repeatDelay=tn(v.repeatDelay)),!c||!f||bS.current||i.type===!1||jC.skipAnimations)return wC(v);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const w=xC(t,e,v);if(w)return w}return ns(v)};function rs(e){return!!(Fe(e)&&e.add)}const Yg=e=>/^\-?\d*\.?\d+$/.test(e);function uc(e,t){e.indexOf(t)===-1&&e.push(t)}function cc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class dc{constructor(){this.subscriptions=[]}add(t){return uc(this.subscriptions,t),()=>cc(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class VC{constructor(t,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,o=!0)=>{this.prev=this.current,this.current=r;const{delta:i,timestamp:s}=Pe;this.lastUpdated!==s&&(this.timeDelta=i,this.lastUpdated=s,Z.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Z.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=LC(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new dc);const r=this.events[t].add(n);return t==="change"?()=>{r(),Z.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Wg(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function xr(e,t){return new VC(e,t)}const Xg=e=>t=>t.test(e),IC={test:e=>e==="auto",parse:e=>e},Zg=[In,I,xt,_t,Uw,Bw,IC],Lr=e=>Zg.find(Xg(e)),_C=[...Zg,Re,sn],OC=e=>_C.find(Xg(e));function FC(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,xr(n))}function zC(e,t){const n=As(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const s in i){const a=rS(i[s]);FC(e,s,a)}}function BC(e,t,n){var r,o;const i=Object.keys(t).filter(a=>!e.hasValue(a)),s=i.length;if(s)for(let a=0;al.remove(c))),u.push(C)}return s&&Promise.all(u).then(()=>{s&&zC(e,s)}),u}function Ll(e,t,n={}){const r=As(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(qg(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:c}=o;return GC(e,t,u+l,d,c,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,u]=a==="beforeChildren"?[i,s]:[s,i];return l().then(()=>u())}else return Promise.all([i(),s(n.delay)])}function GC(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=o===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(KC).forEach((u,d)=>{u.notify("AnimationStart",t),s.push(Ll(u,t,{...i,delay:n+l(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function KC(e,t){return e.sortNodePosition(t)}function QC(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Ll(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Ll(e,t,n);else{const o=typeof t=="function"?As(e,t,n.custom):t;r=Promise.all(qg(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}const YC=[...Ku].reverse(),XC=Ku.length;function ZC(e){return t=>Promise.all(t.map(({animation:n,options:r})=>QC(e,n,r)))}function qC(e){let t=ZC(e);const n=eE();let r=!0;const o=(l,u)=>{const d=As(e,u);if(d){const{transition:c,transitionEnd:f,...v}=d;l={...l,...v,...f}}return l};function i(l){t=l(e)}function s(l,u){const d=e.getProps(),c=e.getVariantContext(!0)||{},f=[],v=new Set;let w={},g=1/0;for(let m=0;mg&&E,j=!1;const $=Array.isArray(S)?S:[S];let V=$.reduce(o,{});T===!1&&(V={});const{prevResolvedValues:ee={}}=h,M={...ee,...V},q=z=>{A=!0,v.has(z)&&(j=!0,v.delete(z)),h.needsAnimating[z]=!0};for(const z in M){const ae=V[z],b=ee[z];if(w.hasOwnProperty(z))continue;let D=!1;Ji(ae)&&Ji(b)?D=!Sg(ae,b):D=ae!==b,D?ae!==void 0?q(z):v.add(z):ae!==void 0&&v.has(z)?q(z):h.protectedKeys[z]=!0}h.prevProp=S,h.prevResolvedValues=V,h.isActive&&(w={...w,...V}),r&&e.blockInitialAnimation&&(A=!1),A&&(!P||j)&&f.push(...$.map(z=>({animation:z,options:{type:p,...l}})))}if(v.size){const m={};v.forEach(p=>{const h=e.getBaseTarget(p);h!==void 0&&(m[p]=h)}),f.push({animation:m})}let C=!!f.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(C=!1),r=!1,C?t(f):Promise.resolve()}function a(l,u,d){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(v=>{var w;return(w=v.animationState)===null||w===void 0?void 0:w.setActive(l,u)}),n[l].isActive=u;const f=s(d,l);for(const v in n)n[v].protectedKeys={};return f}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n}}function JC(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Sg(t,e):!1}function pn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function eE(){return{animate:pn(!0),whileInView:pn(),whileHover:pn(),whileTap:pn(),whileDrag:pn(),whileFocus:pn(),exit:pn()}}class tE extends cn{constructor(t){super(t),t.animationState||(t.animationState=qC(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),ks(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let nE=0;class rE extends cn{constructor(){super(...arguments),this.id=nE++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const i=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const oE={animation:{Feature:tE},exit:{Feature:rE}},Xd=(e,t)=>Math.abs(e-t);function iE(e,t){const n=Xd(e.x,t.x),r=Xd(e.y,t.y);return Math.sqrt(n**2+r**2)}class Jg{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const c=va(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,v=iE(c.offset,{x:0,y:0})>=3;if(!f&&!v)return;const{point:w}=c,{timestamp:g}=Pe;this.history.push({...w,timestamp:g});const{onStart:C,onMove:m}=this.handlers;f||(C&&C(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,c)},this.handlePointerMove=(c,f)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=ga(f,this.transformPagePoint),Z.update(this.updatePoint,!0)},this.handlePointerUp=(c,f)=>{this.end();const{onEnd:v,onSessionEnd:w,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=va(c.type==="pointercancel"?this.lastMoveEventInfo:ga(f,this.transformPagePoint),this.history);this.startEvent&&v&&v(c,C),w&&w(c,C)},!gg(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const s=Rs(t),a=ga(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=Pe;this.history=[{...l,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,va(a,this.history)),this.removeListeners=en(kt(this.contextWindow,"pointermove",this.handlePointerMove),kt(this.contextWindow,"pointerup",this.handlePointerUp),kt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),jt(this.updatePoint)}}function ga(e,t){return t?{point:t(e.point)}:e}function Zd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function va({point:e},t){return{point:e,delta:Zd(e,ev(t)),offset:Zd(e,sE(t)),velocity:aE(t,.1)}}function sE(e){return e[0]}function ev(e){return e[e.length-1]}function aE(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=ev(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>tn(t)));)n--;if(!r)return{x:0,y:0};const i=Nt(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Ge(e){return e.max-e.min}function Vl(e,t=0,n=.01){return Math.abs(e-t)<=n}function qd(e,t,n,r=.5){e.origin=r,e.originPoint=ne(t.min,t.max,e.origin),e.scale=Ge(n)/Ge(t),(Vl(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=ne(n.min,n.max,e.origin)-e.originPoint,(Vl(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Jr(e,t,n,r){qd(e.x,t.x,n.x,r?r.originX:void 0),qd(e.y,t.y,n.y,r?r.originY:void 0)}function Jd(e,t,n){e.min=n.min+t.min,e.max=e.min+Ge(t)}function lE(e,t,n){Jd(e.x,t.x,n.x),Jd(e.y,t.y,n.y)}function ef(e,t,n){e.min=t.min-n.min,e.max=e.min+Ge(t)}function eo(e,t,n){ef(e.x,t.x,n.x),ef(e.y,t.y,n.y)}function uE(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?ne(n,e,r.max):Math.min(e,n)),e}function tf(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function cE(e,{top:t,left:n,bottom:r,right:o}){return{x:tf(e.x,n,o),y:tf(e.y,t,r)}}function nf(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Co(t.min,t.max-r,e.min):r>o&&(n=Co(e.min,e.max-o,t.min)),on(0,1,n)}function pE(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Il=.35;function hE(e=Il){return e===!1?e=0:e===!0&&(e=Il),{x:rf(e,"left","right"),y:rf(e,"top","bottom")}}function rf(e,t,n){return{min:of(e,t),max:of(e,n)}}function of(e,t){return typeof e=="number"?e:e[t]||0}const sf=()=>({translate:0,scale:1,origin:0,originPoint:0}),nr=()=>({x:sf(),y:sf()}),af=()=>({min:0,max:0}),ce=()=>({x:af(),y:af()});function Xe(e){return[e("x"),e("y")]}function tv({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function mE({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function gE(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function ya(e){return e===void 0||e===1}function _l({scale:e,scaleX:t,scaleY:n}){return!ya(e)||!ya(t)||!ya(n)}function gn(e){return _l(e)||nv(e)||e.z||e.rotate||e.rotateX||e.rotateY}function nv(e){return lf(e.x)||lf(e.y)}function lf(e){return e&&e!=="0%"}function os(e,t,n){const r=e-n,o=t*r;return n+o}function uf(e,t,n,r,o){return o!==void 0&&(e=os(e,o,r)),os(e,n,r)+t}function Ol(e,t=0,n=1,r,o){e.min=uf(e.min,t,n,r,o),e.max=uf(e.max,t,n,r,o)}function rv(e,{x:t,y:n}){Ol(e.x,t.translate,t.scale,t.originPoint),Ol(e.y,n.translate,n.scale,n.originPoint)}function vE(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a1.0000000000001||e<.999999999999?e:1}function Bt(e,t){e.min=e.min+t,e.max=e.max+t}function df(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,s=ne(e.min,e.max,i);Ol(e,t[n],t[r],s,t.scale)}const yE=["x","scaleX","originX"],xE=["y","scaleY","originY"];function rr(e,t){df(e.x,t,yE),df(e.y,t,xE)}function ov(e,t){return tv(gE(e.getBoundingClientRect(),t))}function wE(e,t,n){const r=ov(e,n),{scroll:o}=t;return o&&(Bt(r.x,o.offset.x),Bt(r.y,o.offset.y)),r}const iv=({current:e})=>e?e.ownerDocument.defaultView:null,SE=new WeakMap;class CE{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ce(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=d=>{const{dragSnapToOrigin:c}=this.getProps();c?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Rs(d,"page").point)},i=(d,c)=>{const{drag:f,dragPropagation:v,onDragStart:w}=this.getProps();if(f&&!v&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=yg(f),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Xe(C=>{let m=this.getAxisMotionValue(C).get()||0;if(xt.test(m)){const{projection:p}=this.visualElement;if(p&&p.layout){const h=p.layout.layoutBox[C];h&&(m=Ge(h)*(parseFloat(m)/100))}}this.originPoint[C]=m}),w&&Z.update(()=>w(d,c),!1,!0);const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},s=(d,c)=>{const{dragPropagation:f,dragDirectionLock:v,onDirectionLock:w,onDrag:g}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:C}=c;if(v&&this.currentDirection===null){this.currentDirection=EE(C),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",c.point,C),this.updateAxis("y",c.point,C),this.visualElement.render(),g&&g(d,c)},a=(d,c)=>this.stop(d,c),l=()=>Xe(d=>{var c;return this.getAnimationState(d)==="paused"&&((c=this.getAxisMotionValue(d).animation)===null||c===void 0?void 0:c.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Jg(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:iv(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&Z.update(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!oi(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=uE(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&er(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=cE(o.layoutBox,n):this.constraints=!1,this.elastic=hE(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Xe(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=pE(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!er(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=wE(r,o.root,this.visualElement.getTransformPagePoint());let s=dE(o.layout.layoutBox,i);if(n){const a=n(mE(s));this.hasMutatedConstraints=!!a,a&&(s=tv(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Xe(d=>{if(!oi(d,n,this.currentDirection))return;let c=l&&l[d]||{};s&&(c={min:0,max:0});const f=o?200:1e6,v=o?40:1e7,w={type:"inertia",velocity:r?t[d]:0,bounceStiffness:f,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(d,w)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(lc(t,r,0,n))}stopAnimation(){Xe(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Xe(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Xe(n=>{const{drag:r}=this.getProps();if(!oi(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-ne(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!er(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Xe(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();o[s]=fE({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Xe(s=>{if(!oi(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(ne(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;SE.set(this.visualElement,this);const t=this.visualElement.current,n=kt(t,"pointerdown",l=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();er(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),r();const s=Pt(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Xe(d=>{const c=this.getAxisMotionValue(d);c&&(this.originPoint[d]+=l[d].translate,c.set(c.get()+l[d].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=Il,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function oi(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function EE(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class PE extends cn{constructor(t){super(t),this.removeGroupControls=se,this.removeListeners=se,this.controls=new CE(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||se}unmount(){this.removeGroupControls(),this.removeListeners()}}const ff=e=>(t,n)=>{e&&Z.update(()=>e(t,n))};class TE extends cn{constructor(){super(...arguments),this.removePointerDownListener=se}onPointerDown(t){this.session=new Jg(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:iv(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:ff(t),onStart:ff(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&Z.update(()=>o(i,s))}}}mount(){this.removePointerDownListener=kt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function kE(){const e=x.useContext(Hu);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=x.useId();return x.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}const Ei={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Vr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(I.test(e))e=parseFloat(e);else return e;const n=pf(e,t.target.x),r=pf(e,t.target.y);return`${n}% ${r}%`}},NE={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=sn.parse(e);if(o.length>5)return r;const i=sn.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const u=ne(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),i(o)}};class bE extends Y.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;Lw(RE),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Ei.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||Z.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function sv(e){const[t,n]=kE(),r=x.useContext(tg);return Y.createElement(bE,{...e,layoutGroup:r,switchLayoutGroup:x.useContext(ng),isPresent:t,safeToRemove:n})}const RE={borderRadius:{...Vr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Vr,borderTopRightRadius:Vr,borderBottomLeftRadius:Vr,borderBottomRightRadius:Vr,boxShadow:NE},av=["TopLeft","TopRight","BottomLeft","BottomRight"],AE=av.length,hf=e=>typeof e=="string"?parseFloat(e):e,mf=e=>typeof e=="number"||I.test(e);function ME(e,t,n,r,o,i){o?(e.opacity=ne(0,n.opacity!==void 0?n.opacity:1,DE(r)),e.opacityExit=ne(t.opacity!==void 0?t.opacity:1,0,jE(r))):i&&(e.opacity=ne(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(Co(e,t,r))}function vf(e,t){e.min=t.min,e.max=t.max}function Ye(e,t){vf(e.x,t.x),vf(e.y,t.y)}function yf(e,t,n,r,o){return e-=t,e=os(e,1/n,r),o!==void 0&&(e=os(e,1/o,r)),e}function LE(e,t=0,n=1,r=.5,o,i=e,s=e){if(xt.test(t)&&(t=parseFloat(t),t=ne(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=ne(i.min,i.max,r);e===i&&(a-=t),e.min=yf(e.min,t,n,a,o),e.max=yf(e.max,t,n,a,o)}function xf(e,t,[n,r,o],i,s){LE(e,t[n],t[r],t[o],t.scale,i,s)}const VE=["x","scaleX","originX"],IE=["y","scaleY","originY"];function wf(e,t,n,r){xf(e.x,t,VE,n?n.x:void 0,r?r.x:void 0),xf(e.y,t,IE,n?n.y:void 0,r?r.y:void 0)}function Sf(e){return e.translate===0&&e.scale===1}function uv(e){return Sf(e.x)&&Sf(e.y)}function _E(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function cv(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Cf(e){return Ge(e.x)/Ge(e.y)}class OE{constructor(){this.members=[]}add(t){uc(this.members,t),t.scheduleRender()}remove(t){if(cc(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Ef(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:u,rotateY:d}=n;l&&(r+=`rotate(${l}deg) `),u&&(r+=`rotateX(${u}deg) `),d&&(r+=`rotateY(${d}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(r+=`scale(${s}, ${a})`),r||"none"}const FE=(e,t)=>e.depth-t.depth;class zE{constructor(){this.children=[],this.isDirty=!1}add(t){uc(this.children,t),this.isDirty=!0}remove(t){cc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(FE),this.isDirty=!1,this.children.forEach(t)}}function BE(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(jt(r),e(i-t))};return Z.read(r,!0),()=>jt(r)}function UE(e){window.MotionDebug&&window.MotionDebug.record(e)}function $E(e){return e instanceof SVGElement&&e.tagName!=="svg"}function WE(e,t,n){const r=Fe(e)?e:xr(e);return r.start(lc("",r,t,n)),r.animation}const Pf=["","X","Y","Z"],HE={visibility:"hidden"},Tf=1e3;let GE=0;const vn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function dv({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=GE++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,vn.totalNodes=vn.resolvedTargetDeltas=vn.recalculatedProjection=0,this.nodes.forEach(YE),this.nodes.forEach(eP),this.nodes.forEach(tP),this.nodes.forEach(XE),UE(vn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,c&&c(),c=BE(f,250),Ei.hasAnimatedSinceResize&&(Ei.hasAnimatedSinceResize=!1,this.nodes.forEach(Nf))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||u)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:f,hasRelativeTargetChanged:v,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||d.getDefaultTransition()||sP,{onLayoutAnimationStart:C,onLayoutAnimationComplete:m}=d.getProps(),p=!this.targetLayout||!cv(this.targetLayout,w)||v,h=!f&&v;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||h||f&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(c,h);const S={...ac(g,"layout"),onPlay:C,onComplete:m};(d.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else f||Nf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=w})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,jt(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(nP),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;dthis.update()))}clearAllSnapshots(){this.nodes.forEach(ZE),this.sharedNodes.forEach(rP)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Z.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Z.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const E=S/1e3;bf(c.x,s.x,E),bf(c.y,s.y,E),this.setTargetDelta(c),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(eo(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),oP(this.relativeTarget,this.relativeTargetOrigin,f,E),h&&_E(this.relativeTarget,h)&&(this.isProjectionDirty=!1),h||(h=ce()),Ye(h,this.relativeTarget)),g&&(this.animationValues=d,ME(d,u,this.latestValues,E,p,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(jt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Z.update(()=>{Ei.hasAnimatedSinceResize=!0,this.currentAnimation=WE(0,Tf,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Tf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:d}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&fv(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||ce();const c=Ge(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+c;const f=Ge(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Ye(a,l),rr(a,d),Jr(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new OE),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const u={};for(let d=0;d{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(kf),this.root.sharedNodes.clear()}}}function KE(e){e.updateLayout()}function QE(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;i==="size"?Xe(c=>{const f=s?n.measuredBox[c]:n.layoutBox[c],v=Ge(f);f.min=r[c].min,f.max=f.min+v}):fv(i,n.layoutBox,r)&&Xe(c=>{const f=s?n.measuredBox[c]:n.layoutBox[c],v=Ge(r[c]);f.max=f.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+v)});const a=nr();Jr(a,r,n.layoutBox);const l=nr();s?Jr(l,e.applyTransform(o,!0),n.measuredBox):Jr(l,r,n.layoutBox);const u=!uv(a);let d=!1;if(!e.resumeFrom){const c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:f,layout:v}=c;if(f&&v){const w=ce();eo(w,n.layoutBox,f.layoutBox);const g=ce();eo(g,r,v.layoutBox),cv(w,g)||(d=!0),c.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=w,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function YE(e){vn.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function XE(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ZE(e){e.clearSnapshot()}function kf(e){e.clearMeasurements()}function qE(e){e.isLayoutDirty=!1}function JE(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Nf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function eP(e){e.resolveTargetDelta()}function tP(e){e.calcProjection()}function nP(e){e.resetRotation()}function rP(e){e.removeLeadSnapshot()}function bf(e,t,n){e.translate=ne(t.translate,0,n),e.scale=ne(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Rf(e,t,n,r){e.min=ne(t.min,n.min,r),e.max=ne(t.max,n.max,r)}function oP(e,t,n,r){Rf(e.x,t.x,n.x,r),Rf(e.y,t.y,n.y,r)}function iP(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const sP={duration:.45,ease:[.4,0,.1,1]},Af=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),Mf=Af("applewebkit/")&&!Af("chrome/")?Math.round:se;function Df(e){e.min=Mf(e.min),e.max=Mf(e.max)}function aP(e){Df(e.x),Df(e.y)}function fv(e,t,n){return e==="position"||e==="preserve-aspect"&&!Vl(Cf(t),Cf(n),.2)}const lP=dv({attachResizeListener:(e,t)=>Pt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),xa={current:void 0},pv=dv({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!xa.current){const e=new lP({});e.mount(window),e.setOptions({layoutScroll:!0}),xa.current=e}return xa.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),uP={pan:{Feature:TE},drag:{Feature:PE,ProjectionNode:pv,MeasureLayout:sv}},cP=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function dP(e){const t=cP.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function Fl(e,t,n=1){const[r,o]=dP(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return Yg(s)?parseFloat(s):s}else return bl(o)?Fl(o,t,n+1):o}function fP(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(o=>{const i=o.get();if(!bl(i))return;const s=Fl(i,r);s&&o.set(s)});for(const o in t){const i=t[o];if(!bl(i))continue;const s=Fl(i,r);s&&(t[o]=s,n||(n={}),n[o]===void 0&&(n[o]=i))}return{target:t,transitionEnd:n}}const pP=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),hv=e=>pP.has(e),hP=e=>Object.keys(e).some(hv),jf=e=>e===In||e===I,Lf=(e,t)=>parseFloat(e.split(", ")[t]),Vf=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Lf(o[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?Lf(i[1],e):0}},mP=new Set(["x","y","z"]),gP=Ao.filter(e=>!mP.has(e));function vP(e){const t=[];return gP.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const wr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Vf(4,13),y:Vf(5,14)};wr.translateX=wr.x;wr.translateY=wr.y;const yP=(e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:s}=i,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{a[u]=wr[u](r,i)}),t.render();const l=t.measureViewportBox();return n.forEach(u=>{const d=t.getValue(u);d&&d.jump(a[u]),e[u]=wr[u](l,i)}),e},xP=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(hv);let i=[],s=!1;const a=[];if(o.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let d=n[l],c=Lr(d);const f=t[l];let v;if(Ji(f)){const w=f.length,g=f[0]===null?1:0;d=f[g],c=Lr(d);for(let C=g;C=0?window.pageYOffset:null,u=yP(t,e,a);return i.length&&i.forEach(([d,c])=>{e.getValue(d).set(c)}),e.render(),Ts&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function wP(e,t,n,r){return hP(t)?xP(e,t,n,r):{target:t,transitionEnd:r}}const SP=(e,t,n,r)=>{const o=fP(e,t,r);return t=o.target,r=o.transitionEnd,wP(e,t,n,r)},zl={current:null},mv={current:!1};function CP(){if(mv.current=!0,!!Ts)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>zl.current=e.matches;e.addListener(t),t()}else zl.current=!1}function EP(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],s=n[o];if(Fe(i))e.addValue(o,i),rs(r)&&r.add(o);else if(Fe(s))e.addValue(o,xr(i,{owner:e})),rs(r)&&r.remove(o);else if(s!==i)if(e.hasValue(o)){const a=e.getValue(o);!a.hasAnimated&&a.set(i)}else{const a=e.getStaticValue(o);e.addValue(o,xr(a!==void 0?a:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const If=new WeakMap,gv=Object.keys(So),PP=gv.length,_f=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],TP=Qu.length;class kP{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,visualState:i},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Z.render(this.render,!1,!0);const{latestValues:a,renderState:l}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.isControllingVariants=Ns(n),this.isVariantNode=eg(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(n,{});for(const c in d){const f=d[c];a[c]!==void 0&&Fe(f)&&(f.set(a[c],!1),rs(u)&&u.add(c))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,If.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),mv.current||CP(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:zl.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){If.delete(this.current),this.projection&&this.projection.unmount(),jt(this.notifyUpdate),jt(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Vn.has(t),o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Z.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,o,i){let s,a;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,layoutScroll:f,layoutRoot:v})}return a}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ce()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<_f.length;r++){const o=_f[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i=t["on"+o];i&&(this.propEventSubscriptions[o]=this.on(o,i))}this.prevMotionValues=EP(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=xr(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,o=typeof r=="string"||typeof r=="object"?(n=tc(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Fe(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new dc),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class vv extends kP{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:o},i){let s=$C(r,t||{},this);if(o&&(n&&(n=o(n)),r&&(r=o(r)),s&&(s=o(s))),i){BC(this,r,s);const a=SP(this,r,s,n);n=a.transitionEnd,r=a.target}return{transition:t,transitionEnd:n,...r}}}function NP(e){return window.getComputedStyle(e)}class bP extends vv{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Vn.has(n)){const r=sc(n);return r&&r.default||0}else{const r=NP(t),o=(ig(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ov(t,n)}build(t,n,r,o){Xu(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n){return ec(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Fe(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){dg(t,n,r,o)}}class RP extends vv{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Vn.has(n)){const r=sc(n);return r&&r.default||0}return n=fg.has(n)?n:Gu(n),t.getAttribute(n)}measureInstanceViewportBox(){return ce()}scrapeMotionValuesFromProps(t,n){return hg(t,n)}build(t,n,r,o){qu(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){pg(t,n,r,o)}mount(t){this.isSVGTag=Ju(t.tagName),super.mount(t)}}const AP=(e,t)=>Yu(e)?new RP(t,{enableHardwareAcceleration:!1}):new bP(t,{enableHardwareAcceleration:!0}),MP={layout:{ProjectionNode:pv,MeasureLayout:sv}},DP={...oE,...PS,...uP,...MP},ue=Dw((e,t)=>dS(e,t,DP,AP)),jP=Wu("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Tn=Y.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const s=r?u1:"button";return y.jsx(s,{className:Ne(jP({variant:t,size:n,className:e})),ref:i,...o})});Tn.displayName="Button";const LP=({handleContactClick:e})=>y.jsxs("section",{className:"relative min-h-screen flex items-center justify-center tech-grid",children:[y.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-emerald-500/10 via-blue-500/10 to-purple-500/10"}),y.jsxs(ue.div,{initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:1},className:"relative z-10 text-center px-6 max-w-6xl mx-auto",children:[y.jsx(ue.div,{className:"floating-animation mb-8",children:y.jsx("div",{className:"w-32 h-32 mx-auto rounded-full glass-effect pulse-glow flex items-center justify-center mb-8",children:y.jsx(Bm,{className:"w-16 h-16 text-emerald-400"})})}),y.jsx(ue.h1,{initial:{opacity:0,scale:.5},animate:{opacity:1,scale:1},transition:{delay:.2,duration:.8},className:"text-6xl md:text-8xl font-bold mb-6",children:y.jsx("span",{className:"gradient-text",children:"Thắng Nguyễn"})}),y.jsx(ue.p,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.4,duration:.8},className:"text-2xl md:text-3xl text-gray-300 mb-8 font-light",children:"Full-Stack Developer & Tech Enthusiast"}),y.jsx(ue.p,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.6,duration:.8},className:"text-lg md:text-xl text-gray-400 mb-12 max-w-3xl mx-auto leading-relaxed",children:"Chuyên gia phát triển ứng dụng web hiện đại với 15+ năm kinh nghiệm. Đam mê tạo ra những sản phẩm công nghệ có tác động tích cực đến cộng đồng."}),y.jsxs(ue.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.8,duration:.8},className:"flex flex-col sm:flex-row gap-4 justify-center",children:[y.jsxs(Tn,{size:"lg",className:"bg-gradient-to-r from-emerald-500 to-blue-500 hover:from-emerald-600 hover:to-blue-600 text-white px-8 py-4 text-lg font-semibold rounded-full shadow-2xl transform hover:scale-105 transition-all duration-300",onClick:e,children:[y.jsx(Um,{className:"mr-2 h-5 w-5"}),"Liên hệ ngay"]}),y.jsxs(Tn,{variant:"outline",size:"lg",className:"border-2 border-emerald-400 text-emerald-400 hover:bg-emerald-400 hover:text-black px-8 py-4 text-lg font-semibold rounded-full transition-all duration-300",children:[y.jsx(ow,{className:"mr-2 h-5 w-5"}),"Tải CV"]})]})]}),y.jsx("div",{className:"absolute top-20 left-10 w-20 h-20 bg-gradient-to-r from-emerald-400 to-blue-400 rounded-full opacity-20 floating-animation"}),y.jsx("div",{className:"absolute bottom-20 right-10 w-16 h-16 bg-gradient-to-r from-purple-400 to-pink-400 rounded-full opacity-20 floating-animation",style:{animationDelay:"2s"}}),y.jsx("div",{className:"absolute top-1/2 left-20 w-12 h-12 bg-gradient-to-r from-yellow-400 to-orange-400 rounded-full opacity-20 floating-animation",style:{animationDelay:"4s"}})]}),VP=()=>y.jsx("section",{className:"py-20 px-6",children:y.jsxs("div",{className:"max-w-6xl mx-auto",children:[y.jsxs(ue.div,{initial:{opacity:0,y:50},whileInView:{opacity:1,y:0},transition:{duration:.8},viewport:{once:!0},className:"text-center mb-16",children:[y.jsx("h2",{className:"text-5xl font-bold mb-6 gradient-text",children:"Về tôi"}),y.jsx("p",{className:"text-xl text-gray-300 max-w-3xl mx-auto leading-relaxed",children:"Tôi là một developer đam mê công nghệ, luôn tìm kiếm những thách thức mới và cơ hội để học hỏi. Với kinh nghiệm phong phú trong phát triển web, tôi cam kết mang đến những giải pháp tối ưu và sáng tạo."})]}),y.jsxs("div",{className:"grid md:grid-cols-3 gap-8",children:[y.jsxs(ue.div,{initial:{opacity:0,x:-50},whileInView:{opacity:1,x:0},transition:{duration:.8},viewport:{once:!0},className:"glass-effect rounded-2xl p-8 text-center hover:scale-105 transition-transform duration-300",children:[y.jsx(tw,{className:"w-12 h-12 text-emerald-400 mx-auto mb-4"}),y.jsx("h3",{className:"text-2xl font-bold mb-4",children:"15+ Năm Kinh Nghiệm"}),y.jsx("p",{className:"text-gray-300",children:"Phát triển và duy trì hàng trăm dự án web thành công"})]}),y.jsxs(ue.div,{initial:{opacity:0,y:50},whileInView:{opacity:1,y:0},transition:{duration:.8,delay:.2},viewport:{once:!0},className:"glass-effect rounded-2xl p-8 text-center hover:scale-105 transition-transform duration-300",children:[y.jsx(Wm,{className:"w-12 h-12 text-blue-400 mx-auto mb-4"}),y.jsx("h3",{className:"text-2xl font-bold mb-4",children:"50+ Khách Hàng"}),y.jsx("p",{className:"text-gray-300",children:"Từ startup đến doanh nghiệp lớn, tôi đã hỗ trợ đa dạng khách hàng"})]}),y.jsxs(ue.div,{initial:{opacity:0,x:50},whileInView:{opacity:1,x:0},transition:{duration:.8,delay:.4},viewport:{once:!0},className:"glass-effect rounded-2xl p-8 text-center hover:scale-105 transition-transform duration-300",children:[y.jsx(cw,{className:"w-12 h-12 text-purple-400 mx-auto mb-4"}),y.jsx("h3",{className:"text-2xl font-bold mb-4",children:"100+ Dự Án"}),y.jsx("p",{className:"text-gray-300",children:"Từ website đơn giản đến ứng dụng phức tạp quy mô lớn"})]})]})]})}),IP=()=>{const e=[{name:"React/Next.js",level:95,icon:Bm,color:"from-blue-500 to-cyan-500"},{name:"Node.js/Express",level:90,icon:fw,color:"from-green-500 to-emerald-500"},{name:"Database Design",level:88,icon:rw,color:"from-purple-500 to-pink-500"},{name:"Mobile Development",level:85,icon:pw,color:"from-orange-500 to-red-500"},{name:"DevOps/Cloud",level:82,icon:aw,color:"from-indigo-500 to-blue-500"},{name:"Git/Version Control",level:92,icon:sw,color:"from-yellow-500 to-orange-500"}];return y.jsx("section",{className:"py-20 px-6 bg-gradient-to-r from-slate-800/50 to-purple-800/50",children:y.jsxs("div",{className:"max-w-6xl mx-auto",children:[y.jsxs(ue.div,{initial:{opacity:0,y:50},whileInView:{opacity:1,y:0},transition:{duration:.8},viewport:{once:!0},className:"text-center mb-16",children:[y.jsx("h2",{className:"text-5xl font-bold mb-6 gradient-text",children:"Kỹ Năng Chuyên Môn"}),y.jsx("p",{className:"text-xl text-gray-300 max-w-3xl mx-auto",children:"Thành thạo các công nghệ hiện đại và luôn cập nhật xu hướng mới nhất"})]}),y.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:e.map((t,n)=>y.jsxs(ue.div,{initial:{opacity:0,y:50},whileInView:{opacity:1,y:0},transition:{duration:.8,delay:n*.1},viewport:{once:!0},className:"glass-effect rounded-2xl p-6 hover:scale-105 transition-all duration-300",children:[y.jsxs("div",{className:"flex items-center mb-4",children:[y.jsx("div",{className:`w-12 h-12 rounded-lg bg-gradient-to-r ${t.color} flex items-center justify-center mr-4`,children:y.jsx(t.icon,{className:"w-6 h-6 text-white"})}),y.jsxs("div",{children:[y.jsx("h3",{className:"text-lg font-bold",children:t.name}),y.jsxs("p",{className:"text-sm text-gray-400",children:[t.level,"% thành thạo"]})]})]}),y.jsx("div",{className:"w-full bg-gray-700 rounded-full h-3",children:y.jsx(ue.div,{initial:{width:0},whileInView:{width:`${t.level}%`},transition:{duration:1.5,delay:n*.1},viewport:{once:!0},className:`h-3 rounded-full bg-gradient-to-r ${t.color}`})})]},t.name))})]})})},_P=()=>{const e=[{title:"E-Commerce Platform",description:"Nền tảng thương mại điện tử hoàn chỉnh với React, Node.js và MongoDB",tech:["React","Node.js","MongoDB","Stripe"],image:"Modern e-commerce website with shopping cart and payment integration",status:"Hoàn thành"},{title:"Task Management App",description:"Ứng dụng quản lý công việc với real-time collaboration",tech:["Next.js","Socket.io","PostgreSQL","Redis"],image:"Clean task management interface with kanban boards",status:"Đang phát triển"},{title:"AI Chat Assistant",description:"Chatbot thông minh sử dụng OpenAI API và machine learning",tech:["Python","FastAPI","OpenAI","React"],image:"AI chatbot interface with modern conversation design",status:"Beta"}];return y.jsx("section",{className:"py-20 px-6",children:y.jsxs("div",{className:"max-w-6xl mx-auto",children:[y.jsxs(ue.div,{initial:{opacity:0,y:50},whileInView:{opacity:1,y:0},transition:{duration:.8},viewport:{once:!0},className:"text-center mb-16",children:[y.jsx("h2",{className:"text-5xl font-bold mb-6 gradient-text",children:"Dự Án Nổi Bật"}),y.jsx("p",{className:"text-xl text-gray-300 max-w-3xl mx-auto",children:"Một số dự án tiêu biểu mà tôi đã thực hiện và đóng góp"})]}),y.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:e.map((t,n)=>y.jsxs(ue.div,{initial:{opacity:0,y:50},whileInView:{opacity:1,y:0},transition:{duration:.8,delay:n*.2},viewport:{once:!0},className:"glass-effect rounded-2xl overflow-hidden hover:scale-105 transition-all duration-300 group",children:[y.jsxs("div",{className:"h-48 bg-gradient-to-br from-emerald-500/20 to-blue-500/20 flex items-center justify-center relative overflow-hidden",children:[y.jsx("img",{className:"w-full h-full object-cover group-hover:scale-110 transition-transform duration-300",alt:`${t.title} preview`,src:"https://images.unsplash.com/photo-1572177812156-58036aae439c"}),y.jsx("div",{className:"absolute top-4 right-4",children:y.jsx("span",{className:`px-3 py-1 rounded-full text-xs font-semibold ${t.status==="Hoàn thành"?"bg-emerald-500":t.status==="Beta"?"bg-yellow-500":"bg-blue-500"} text-white`,children:t.status})})]}),y.jsxs("div",{className:"p-6",children:[y.jsx("h3",{className:"text-xl font-bold mb-3",children:t.title}),y.jsx("p",{className:"text-gray-300 mb-4 text-sm leading-relaxed",children:t.description}),y.jsx("div",{className:"flex flex-wrap gap-2 mb-4",children:t.tech.map(r=>y.jsx("span",{className:"px-2 py-1 bg-emerald-500/20 text-emerald-400 rounded-md text-xs font-medium",children:r},r))}),y.jsxs(Tn,{variant:"outline",size:"sm",className:"w-full border-emerald-400 text-emerald-400 hover:bg-emerald-400 hover:text-black",children:[y.jsx(iw,{className:"mr-2 h-4 w-4"}),"Xem chi tiết"]})]})]},t.title))})]})})},OP=[{role:"Senior Full-Stack Developer",company:"Viet Solution",duration:"2008 - 2019",location:"Nha Trang, Việt Nam",description:["Phát triển và duy trì các ứng dụng web phức tạp sử dụng React, Node.js, và PostgreSQL.","Dẫn dắt một nhóm gồm 5 nhà phát triển trong các dự án quan trọng, đảm bảo giao hàng đúng hạn và chất lượng cao.","Thiết kế và triển khai các API RESTful mạnh mẽ và có khả năng mở rộng.","Tối ưu hóa hiệu suất ứng dụng, giảm thời gian tải trang xuống 30%."],icon:y.jsx(Si,{className:"w-8 h-8 text-emerald-400"})},{role:"Software Engineer",company:"Tech Innovators Inc.",duration:"2019 - 2021",location:"Đà Nẵng, Việt Nam",description:["Đóng góp vào việc phát triển các tính năng mới cho một nền tảng SaaS hàng đầu.","Hợp tác với các nhóm đa chức năng để xác định yêu cầu và cung cấp giải pháp.","Viết mã sạch, có thể bảo trì và được kiểm thử kỹ lưỡng."],icon:y.jsx(Si,{className:"w-8 h-8 text-teal-400"})},{role:"Junior Developer",company:"CodeCrafters Co.",duration:"2021 - Hiện tại",location:"TP. Hồ Chí Minh, Việt Nam",description:["Hỗ trợ các nhà phát triển cấp cao trong các giai đoạn khác nhau của vòng đời phát triển phần mềm.","Học hỏi và áp dụng các công nghệ và phương pháp hay nhất mới.","Tham gia vào đánh giá mã và các buổi chia sẻ kiến thức."],icon:y.jsx(Si,{className:"w-8 h-8 text-cyan-400"})}],FP=()=>{const e={hidden:{opacity:0,y:50,scale:.9},visible:t=>({opacity:1,y:0,scale:1,transition:{delay:t*.2,duration:.6,ease:"easeOut"}})};return y.jsx("section",{id:"experience",className:"py-20 md:py-32 px-6 bg-gradient-to-b from-slate-900 to-purple-950",children:y.jsxs("div",{className:"max-w-6xl mx-auto",children:[y.jsx(ue.h2,{initial:{opacity:0,y:-30},whileInView:{opacity:1,y:0},transition:{duration:.7,ease:"circOut"},viewport:{once:!0},className:"text-4xl md:text-5xl font-bold text-center mb-4 gradient-text",children:"Kinh Nghiệm Làm Việc"}),y.jsx(ue.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.7,delay:.2,ease:"circOut"},viewport:{once:!0},className:"text-xl text-gray-300 text-center mb-16 max-w-3xl mx-auto leading-relaxed",children:"Hành trình chuyên nghiệp của tôi qua các vai trò và công ty khác nhau, nơi tôi đã đóng góp và phát triển."}),y.jsx("div",{className:"space-y-12",children:OP.map((t,n)=>y.jsxs(ue.div,{custom:n,variants:e,initial:"hidden",whileInView:"visible",viewport:{once:!0,amount:.3},className:"relative pl-16 group",children:[y.jsx("div",{className:"absolute left-0 top-1 w-12 h-12 bg-gradient-to-br from-emerald-500 to-green-600 rounded-full flex items-center justify-center shadow-lg transform group-hover:scale-110 transition-transform duration-300",children:t.icon}),y.jsx("div",{className:"absolute left-[23px] top-14 bottom-0 w-0.5 bg-gray-700 group-hover:bg-emerald-500 transition-colors duration-300"}),y.jsxs("div",{className:"bg-slate-800/50 backdrop-blur-md p-6 rounded-xl shadow-2xl border border-slate-700/50 hover:border-emerald-500/70 transition-all duration-300 transform hover:scale-[1.02] hover:shadow-emerald-500/20",children:[y.jsx("h3",{className:"text-2xl font-semibold text-emerald-400 mb-2",children:t.role}),y.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center text-gray-400 mb-3 space-y-1 sm:space-y-0 sm:space-x-4",children:[y.jsxs("div",{className:"flex items-center",children:[y.jsx(Si,{size:18,className:"mr-2 text-purple-400"}),y.jsx("span",{children:t.company})]}),y.jsxs("div",{className:"flex items-center",children:[y.jsx(nw,{size:18,className:"mr-2 text-purple-400"}),y.jsx("span",{children:t.duration})]}),y.jsxs("div",{className:"flex items-center",children:[y.jsx($m,{size:18,className:"mr-2 text-purple-400"}),y.jsx("span",{children:t.location})]})]}),y.jsx("ul",{className:"list-disc list-inside space-y-2 text-gray-300",children:t.description.map((r,o)=>y.jsx("li",{children:r},o))})]})]},n))})]})})},Pi=Y.forwardRef(({className:e,type:t,...n},r)=>y.jsx("input",{type:t,className:Ne("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}));Pi.displayName="Input";var zP="Label",yv=x.forwardRef((e,t)=>y.jsx(Se.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));yv.displayName=zP;var xv=yv;const BP=Wu("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Br=Y.forwardRef(({className:e,...t},n)=>y.jsx(xv,{ref:n,className:Ne(BP(),e),...t}));Br.displayName=xv.displayName;const wv=Y.forwardRef(({className:e,...t},n)=>y.jsx("textarea",{className:Ne("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));wv.displayName="Textarea";var UP=sp[" useId ".trim().toString()]||(()=>{}),$P=0;function wa(e){const[t,n]=x.useState(UP());return yr(()=>{e||n(r=>r??String($P++))},[e]),e||(t?`radix-${t}`:"")}var Sa="focusScope.autoFocusOnMount",Ca="focusScope.autoFocusOnUnmount",Of={bubbles:!1,cancelable:!0},WP="FocusScope",Sv=x.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,l]=x.useState(null),u=Dt(o),d=Dt(i),c=x.useRef(null),f=dt(t,g=>l(g)),v=x.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;x.useEffect(()=>{if(r){let g=function(h){if(v.paused||!a)return;const S=h.target;a.contains(S)?c.current=S:Ot(c.current,{select:!0})},C=function(h){if(v.paused||!a)return;const S=h.relatedTarget;S!==null&&(a.contains(S)||Ot(c.current,{select:!0}))},m=function(h){if(document.activeElement===document.body)for(const E of h)E.removedNodes.length>0&&Ot(a)};document.addEventListener("focusin",g),document.addEventListener("focusout",C);const p=new MutationObserver(m);return a&&p.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",C),p.disconnect()}}},[r,a,v.paused]),x.useEffect(()=>{if(a){zf.add(v);const g=document.activeElement;if(!a.contains(g)){const m=new CustomEvent(Sa,Of);a.addEventListener(Sa,u),a.dispatchEvent(m),m.defaultPrevented||(HP(XP(Cv(a)),{select:!0}),document.activeElement===g&&Ot(a))}return()=>{a.removeEventListener(Sa,u),setTimeout(()=>{const m=new CustomEvent(Ca,Of);a.addEventListener(Ca,d),a.dispatchEvent(m),m.defaultPrevented||Ot(g??document.body,{select:!0}),a.removeEventListener(Ca,d),zf.remove(v)},0)}}},[a,u,d,v]);const w=x.useCallback(g=>{if(!n&&!r||v.paused)return;const C=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,m=document.activeElement;if(C&&m){const p=g.currentTarget,[h,S]=GP(p);h&&S?!g.shiftKey&&m===S?(g.preventDefault(),n&&Ot(h,{select:!0})):g.shiftKey&&m===h&&(g.preventDefault(),n&&Ot(S,{select:!0})):m===p&&g.preventDefault()}},[n,r,v.paused]);return y.jsx(Se.div,{tabIndex:-1,...s,ref:f,onKeyDown:w})});Sv.displayName=WP;function HP(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ot(r,{select:t}),document.activeElement!==n)return}function GP(e){const t=Cv(e),n=Ff(t,e),r=Ff(t.reverse(),e);return[n,r]}function Cv(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ff(e,t){for(const n of e)if(!KP(n,{upTo:t}))return n}function KP(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function QP(e){return e instanceof HTMLInputElement&&"select"in e}function Ot(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&QP(e)&&t&&e.select()}}var zf=YP();function YP(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Bf(e,t),e.unshift(t)},remove(t){var n;e=Bf(e,t),(n=e[0])==null||n.resume()}}}function Bf(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function XP(e){return e.filter(t=>t.tagName!=="A")}var Ea=0;function ZP(){x.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Uf()),document.body.insertAdjacentElement("beforeend",e[1]??Uf()),Ea++,()=>{Ea===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ea--}},[])}function Uf(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var gt=function(){return gt=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return hT;var t=mT(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},vT=kv(),cr="data-scroll-locked",yT=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),` .`.concat(JP,` { overflow: hidden `).concat(r,`; padding-right: `).concat(a,"px ").concat(r,`; } body[`).concat(cr,`] { overflow: hidden `).concat(r,`; overscroll-behavior: contain; `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` padding-left: `.concat(o,`px; padding-top: `).concat(i,`px; padding-right: `).concat(s,`px; margin-left:0; margin-top:0; margin-right: `).concat(a,"px ").concat(r,`; `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),` } .`).concat(Ti,` { right: `).concat(a,"px ").concat(r,`; } .`).concat(ki,` { margin-right: `).concat(a,"px ").concat(r,`; } .`).concat(Ti," .").concat(Ti,` { right: 0 `).concat(r,`; } .`).concat(ki," .").concat(ki,` { margin-right: 0 `).concat(r,`; } body[`).concat(cr,`] { `).concat(eT,": ").concat(a,`px; } `)},Hf=function(){var e=parseInt(document.body.getAttribute(cr)||"0",10);return isFinite(e)?e:0},xT=function(){x.useEffect(function(){return document.body.setAttribute(cr,(Hf()+1).toString()),function(){var e=Hf()-1;e<=0?document.body.removeAttribute(cr):document.body.setAttribute(cr,e.toString())}},[])},wT=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;xT();var i=x.useMemo(function(){return gT(o)},[o]);return x.createElement(vT,{styles:yT(i,!t,o,n?"":"!important")})},Bl=!1;if(typeof window<"u")try{var ii=Object.defineProperty({},"passive",{get:function(){return Bl=!0,!0}});window.addEventListener("test",ii,ii),window.removeEventListener("test",ii,ii)}catch{Bl=!1}var Fn=Bl?{passive:!1}:!1,ST=function(e){return e.tagName==="TEXTAREA"},Nv=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!ST(e)&&n[t]==="visible")},CT=function(e){return Nv(e,"overflowY")},ET=function(e){return Nv(e,"overflowX")},Gf=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=bv(e,r);if(o){var i=Rv(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},PT=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},TT=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},bv=function(e,t){return e==="v"?CT(t):ET(t)},Rv=function(e,t){return e==="v"?PT(t):TT(t)},kT=function(e,t){return e==="h"&&t==="rtl"?-1:1},NT=function(e,t,n,r,o){var i=kT(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,l=t.contains(a),u=!1,d=s>0,c=0,f=0;do{if(!a)break;var v=Rv(e,a),w=v[0],g=v[1],C=v[2],m=g-C-i*w;(w||m)&&bv(e,a)&&(c+=m,f+=w);var p=a.parentNode;a=p&&p.nodeType===Node.DOCUMENT_FRAGMENT_NODE?p.host:p}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(d&&(o&&Math.abs(c)<1||!o&&s>c)||!d&&(o&&Math.abs(f)<1||!o&&-s>f))&&(u=!0),u},si=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Kf=function(e){return[e.deltaX,e.deltaY]},Qf=function(e){return e&&"current"in e?e.current:e},bT=function(e,t){return e[0]===t[0]&&e[1]===t[1]},RT=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} `)},AT=0,zn=[];function MT(e){var t=x.useRef([]),n=x.useRef([0,0]),r=x.useRef(),o=x.useState(AT++)[0],i=x.useState(kv)[0],s=x.useRef(e);x.useEffect(function(){s.current=e},[e]),x.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=qP([e.lockRef.current],(e.shards||[]).map(Qf),!0).filter(Boolean);return g.forEach(function(C){return C.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=x.useCallback(function(g,C){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!s.current.allowPinchZoom;var m=si(g),p=n.current,h="deltaX"in g?g.deltaX:p[0]-m[0],S="deltaY"in g?g.deltaY:p[1]-m[1],E,T=g.target,P=Math.abs(h)>Math.abs(S)?"h":"v";if("touches"in g&&P==="h"&&T.type==="range")return!1;var k=Gf(P,T);if(!k)return!0;if(k?E=P:(E=P==="v"?"h":"v",k=Gf(P,T)),!k)return!1;if(!r.current&&"changedTouches"in g&&(h||S)&&(r.current=E),!E)return!0;var A=r.current||E;return NT(A,C,g,A==="h"?h:S,!0)},[]),l=x.useCallback(function(g){var C=g;if(!(!zn.length||zn[zn.length-1]!==i)){var m="deltaY"in C?Kf(C):si(C),p=t.current.filter(function(E){return E.name===C.type&&(E.target===C.target||C.target===E.shadowParent)&&bT(E.delta,m)})[0];if(p&&p.should){C.cancelable&&C.preventDefault();return}if(!p){var h=(s.current.shards||[]).map(Qf).filter(Boolean).filter(function(E){return E.contains(C.target)}),S=h.length>0?a(C,h[0]):!s.current.noIsolation;S&&C.cancelable&&C.preventDefault()}}},[]),u=x.useCallback(function(g,C,m,p){var h={name:g,delta:C,target:m,should:p,shadowParent:DT(m)};t.current.push(h),setTimeout(function(){t.current=t.current.filter(function(S){return S!==h})},1)},[]),d=x.useCallback(function(g){n.current=si(g),r.current=void 0},[]),c=x.useCallback(function(g){u(g.type,Kf(g),g.target,a(g,e.lockRef.current))},[]),f=x.useCallback(function(g){u(g.type,si(g),g.target,a(g,e.lockRef.current))},[]);x.useEffect(function(){return zn.push(i),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Fn),document.addEventListener("touchmove",l,Fn),document.addEventListener("touchstart",d,Fn),function(){zn=zn.filter(function(g){return g!==i}),document.removeEventListener("wheel",l,Fn),document.removeEventListener("touchmove",l,Fn),document.removeEventListener("touchstart",d,Fn)}},[]);var v=e.removeScrollBar,w=e.inert;return x.createElement(x.Fragment,null,w?x.createElement(i,{styles:RT(o)}):null,v?x.createElement(wT,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function DT(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const jT=aT(Tv,MT);var Av=x.forwardRef(function(e,t){return x.createElement(Ms,gt({},e,{ref:t,sideCar:jT}))});Av.classNames=Ms.classNames;const LT=Av;var VT=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Bn=new WeakMap,ai=new WeakMap,li={},Na=0,Mv=function(e){return e&&(e.host||Mv(e.parentNode))},IT=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Mv(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},_T=function(e,t,n,r){var o=IT(t,Array.isArray(e)?e:[e]);li[n]||(li[n]=new WeakMap);var i=li[n],s=[],a=new Set,l=new Set(o),u=function(c){!c||a.has(c)||(a.add(c),u(c.parentNode))};o.forEach(u);var d=function(c){!c||l.has(c)||Array.prototype.forEach.call(c.children,function(f){if(a.has(f))d(f);else try{var v=f.getAttribute(r),w=v!==null&&v!=="false",g=(Bn.get(f)||0)+1,C=(i.get(f)||0)+1;Bn.set(f,g),i.set(f,C),s.push(f),g===1&&w&&ai.set(f,!0),C===1&&f.setAttribute(n,"true"),w||f.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",f,m)}})};return d(t),a.clear(),Na++,function(){s.forEach(function(c){var f=Bn.get(c)-1,v=i.get(c)-1;Bn.set(c,f),i.set(c,v),f||(ai.has(c)||c.removeAttribute(r),ai.delete(c)),v||c.removeAttribute(n)}),Na--,Na||(Bn=new WeakMap,Bn=new WeakMap,ai=new WeakMap,li={})}},OT=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||VT(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),_T(r,o,n,"aria-hidden")):function(){return null}},Ds="Dialog",[Dv,ak]=_u(Ds),[FT,ft]=Dv(Ds),jv=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=x.useRef(null),l=x.useRef(null),[u,d]=Sm({prop:r,defaultProp:o??!1,onChange:i,caller:Ds});return y.jsx(FT,{scope:t,triggerRef:a,contentRef:l,contentId:wa(),titleId:wa(),descriptionId:wa(),open:u,onOpenChange:d,onOpenToggle:x.useCallback(()=>d(c=>!c),[d]),modal:s,children:n})};jv.displayName=Ds;var Lv="DialogTrigger",Vv=x.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ft(Lv,n),i=dt(t,o.triggerRef);return y.jsx(Se.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":hc(o.open),...r,ref:i,onClick:ge(e.onClick,o.onOpenToggle)})});Vv.displayName=Lv;var fc="DialogPortal",[zT,Iv]=Dv(fc,{forceMount:void 0}),_v=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=ft(fc,t);return y.jsx(zT,{scope:t,forceMount:n,children:x.Children.map(r,s=>y.jsx(bo,{present:n||i.open,children:y.jsx(Fu,{asChild:!0,container:o,children:s})}))})};_v.displayName=fc;var is="DialogOverlay",Ov=x.forwardRef((e,t)=>{const n=Iv(is,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=ft(is,e.__scopeDialog);return i.modal?y.jsx(bo,{present:r||i.open,children:y.jsx(UT,{...o,ref:t})}):null});Ov.displayName=is;var BT=xo("DialogOverlay.RemoveScroll"),UT=x.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ft(is,n);return y.jsx(LT,{as:BT,allowPinchZoom:!0,shards:[o.contentRef],children:y.jsx(Se.div,{"data-state":hc(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Mn="DialogContent",Fv=x.forwardRef((e,t)=>{const n=Iv(Mn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=ft(Mn,e.__scopeDialog);return y.jsx(bo,{present:r||i.open,children:i.modal?y.jsx($T,{...o,ref:t}):y.jsx(WT,{...o,ref:t})})});Fv.displayName=Mn;var $T=x.forwardRef((e,t)=>{const n=ft(Mn,e.__scopeDialog),r=x.useRef(null),o=dt(t,n.contentRef,r);return x.useEffect(()=>{const i=r.current;if(i)return OT(i)},[]),y.jsx(zv,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ge(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:ge(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:ge(e.onFocusOutside,i=>i.preventDefault())})}),WT=x.forwardRef((e,t)=>{const n=ft(Mn,e.__scopeDialog),r=x.useRef(!1),o=x.useRef(!1);return y.jsx(zv,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),zv=x.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,a=ft(Mn,n),l=x.useRef(null),u=dt(t,l);return ZP(),y.jsxs(y.Fragment,{children:[y.jsx(Sv,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:y.jsx(Ou,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":hc(a.open),...s,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),y.jsxs(y.Fragment,{children:[y.jsx(HT,{titleId:a.titleId}),y.jsx(KT,{contentRef:l,descriptionId:a.descriptionId})]})]})}),pc="DialogTitle",Bv=x.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ft(pc,n);return y.jsx(Se.h2,{id:o.titleId,...r,ref:t})});Bv.displayName=pc;var Uv="DialogDescription",$v=x.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ft(Uv,n);return y.jsx(Se.p,{id:o.descriptionId,...r,ref:t})});$v.displayName=Uv;var Wv="DialogClose",Hv=x.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ft(Wv,n);return y.jsx(Se.button,{type:"button",...r,ref:t,onClick:ge(e.onClick,()=>o.onOpenChange(!1))})});Hv.displayName=Wv;function hc(e){return e?"open":"closed"}var Gv="DialogTitleWarning",[lk,Kv]=a1(Gv,{contentName:Mn,titleName:pc,docsSlug:"dialog"}),HT=({titleId:e})=>{const t=Kv(Gv),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return x.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},GT="DialogDescriptionWarning",KT=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Kv(GT).contentName}}.`;return x.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},QT=jv,YT=Vv,XT=_v,Qv=Ov,Yv=Fv,Xv=Bv,Zv=$v,qv=Hv;const ZT=QT,qT=YT,JT=XT,ek=qv,Jv=Y.forwardRef(({className:e,...t},n)=>y.jsx(Qv,{ref:n,className:Ne("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Jv.displayName=Qv.displayName;const ey=Y.forwardRef(({className:e,children:t,...n},r)=>y.jsxs(JT,{children:[y.jsx(Jv,{}),y.jsxs(Yv,{ref:r,className:Ne("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,y.jsxs(qv,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[y.jsx(Hm,{className:"h-4 w-4"}),y.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));ey.displayName=Yv.displayName;const ty=({className:e,...t})=>y.jsx("div",{className:Ne("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});ty.displayName="DialogHeader";const ny=({className:e,...t})=>y.jsx("div",{className:Ne("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ny.displayName="DialogFooter";const ry=Y.forwardRef(({className:e,...t},n)=>y.jsx(Xv,{ref:n,className:Ne("text-lg font-semibold leading-none tracking-tight",e),...t}));ry.displayName=Xv.displayName;const oy=Y.forwardRef(({className:e,...t},n)=>y.jsx(Zv,{ref:n,className:Ne("text-sm text-muted-foreground",e),...t}));oy.displayName=Zv.displayName;const tk=()=>{const[e,t]=x.useState(""),[n,r]=x.useState(""),[o,i]=x.useState(""),[s,a]=x.useState(""),[l,u]=x.useState(!1),d=c=>{if(c.preventDefault(),!e||!n||!s){Nl({variant:"destructive",title:"Lỗi!",description:"Vui lòng điền đầy đủ các trường bắt buộc (Họ tên, Email, Nội dung)."});return}console.log("Dữ liệu Form Liên Hệ:",{name:e,email:n,phone:o,message:s}),Nl({title:"Gửi thành công!",description:"Cảm ơn bạn đã liên hệ. Tôi sẽ phản hồi sớm nhất có thể!"}),t(""),r(""),i(""),a(""),u(!1)};return y.jsx("section",{className:"py-20 px-6",children:y.jsxs("div",{className:"max-w-4xl mx-auto",children:[y.jsxs(ue.div,{initial:{opacity:0,y:50},whileInView:{opacity:1,y:0},transition:{duration:.8},viewport:{once:!0},className:"text-center mb-16",children:[y.jsx("h2",{className:"text-5xl font-bold mb-6 gradient-text",children:"Liên Hệ"}),y.jsx("p",{className:"text-xl text-gray-300 max-w-2xl mx-auto",children:"Sẵn sàng hợp tác trong dự án tiếp theo? Hãy kết nối với tôi!"})]}),y.jsxs(ue.div,{initial:{opacity:0,y:50},whileInView:{opacity:1,y:0},transition:{duration:.8,delay:.2},viewport:{once:!0},className:"glass-effect rounded-2xl p-8",children:[y.jsxs("div",{className:"grid md:grid-cols-3 gap-8 mb-8",children:[y.jsxs("div",{className:"text-center",children:[y.jsx("div",{className:"w-16 h-16 bg-gradient-to-r from-emerald-500 to-blue-500 rounded-full flex items-center justify-center mx-auto mb-4",children:y.jsx(Um,{className:"w-8 h-8 text-white"})}),y.jsx("h3",{className:"font-bold mb-2",children:"Email"}),y.jsx("p",{className:"text-gray-300",children:"ndt4you@gmail.com"})]}),y.jsxs("div",{className:"text-center",children:[y.jsx("div",{className:"w-16 h-16 bg-gradient-to-r from-purple-500 to-pink-500 rounded-full flex items-center justify-center mx-auto mb-4",children:y.jsx(uw,{className:"w-8 h-8 text-white"})}),y.jsx("h3",{className:"font-bold mb-2",children:"Điện thoại"}),y.jsx("p",{className:"text-gray-300",children:"+84 777231079"})]}),y.jsxs("div",{className:"text-center",children:[y.jsx("div",{className:"w-16 h-16 bg-gradient-to-r from-orange-500 to-red-500 rounded-full flex items-center justify-center mx-auto mb-4",children:y.jsx($m,{className:"w-8 h-8 text-white"})}),y.jsx("h3",{className:"font-bold mb-2",children:"Địa chỉ"}),y.jsx("p",{className:"text-gray-300",children:"Khánh Hoà, Việt Nam"})]})]}),y.jsx("div",{className:"text-center",children:y.jsxs(ZT,{open:l,onOpenChange:u,children:[y.jsx(qT,{asChild:!0,children:y.jsxs(Tn,{size:"lg",className:"bg-gradient-to-r from-emerald-500 to-blue-500 hover:from-emerald-600 hover:to-blue-600 text-white px-12 py-4 text-lg font-semibold rounded-full shadow-2xl transform hover:scale-105 transition-all duration-300",children:[y.jsx(lw,{className:"mr-2 h-5 w-5"}),"Bắt đầu hợp tác"]})}),y.jsxs(ey,{className:"sm:max-w-[425px] bg-slate-800 border-slate-700 text-white",children:[y.jsxs(ty,{children:[y.jsx(ry,{className:"text-emerald-400",children:"Liên Hệ Ngay"}),y.jsx(oy,{className:"text-gray-400",children:"Điền thông tin của bạn vào form dưới đây. Tôi sẽ liên hệ lại sớm nhất."})]}),y.jsxs("form",{onSubmit:d,children:[y.jsxs("div",{className:"grid gap-4 py-4",children:[y.jsxs("div",{className:"grid grid-cols-4 items-center gap-4",children:[y.jsx(Br,{htmlFor:"name",className:"text-right text-gray-300",children:"Họ tên *"}),y.jsx(Pi,{id:"name",value:e,onChange:c=>t(c.target.value),className:"col-span-3 bg-slate-700 border-slate-600 text-white placeholder-gray-500",placeholder:"Nguyễn Văn A",required:!0})]}),y.jsxs("div",{className:"grid grid-cols-4 items-center gap-4",children:[y.jsx(Br,{htmlFor:"email",className:"text-right text-gray-300",children:"Email *"}),y.jsx(Pi,{id:"email",type:"email",value:n,onChange:c=>r(c.target.value),className:"col-span-3 bg-slate-700 border-slate-600 text-white placeholder-gray-500",placeholder:"email@example.com",required:!0})]}),y.jsxs("div",{className:"grid grid-cols-4 items-center gap-4",children:[y.jsx(Br,{htmlFor:"phone",className:"text-right text-gray-300",children:"Điện thoại"}),y.jsx(Pi,{id:"phone",value:o,onChange:c=>i(c.target.value),className:"col-span-3 bg-slate-700 border-slate-600 text-white placeholder-gray-500",placeholder:"090xxxxxxx"})]}),y.jsxs("div",{className:"grid grid-cols-4 items-center gap-4",children:[y.jsx(Br,{htmlFor:"message",className:"text-right text-gray-300",children:"Nội dung *"}),y.jsx(wv,{id:"message",value:s,onChange:c=>a(c.target.value),className:"col-span-3 bg-slate-700 border-slate-600 text-white placeholder-gray-500",placeholder:"Nội dung bạn muốn trao đổi...",required:!0})]})]}),y.jsxs(ny,{children:[y.jsx(ek,{asChild:!0,children:y.jsx(Tn,{type:"button",variant:"outline",className:"text-gray-300 border-gray-500 hover:bg-slate-700 hover:text-white",children:"Hủy"})}),y.jsxs(Tn,{type:"submit",className:"bg-emerald-500 hover:bg-emerald-600 text-white",children:[y.jsx(dw,{className:"mr-2 h-4 w-4"})," Gửi"]})]})]})]})]})})]})]})})},nk=()=>{const[e,t]=x.useState(0);return x.useEffect(()=>{let n=localStorage.getItem("visitorCount");n===null?n=1:n=parseInt(n)+1,localStorage.setItem("visitorCount",n),t(n)},[]),y.jsx("footer",{className:"py-12 px-6 bg-gradient-to-r from-slate-900 to-purple-900 border-t border-gray-800",children:y.jsx("div",{className:"max-w-6xl mx-auto text-center",children:y.jsxs(ue.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.8},viewport:{once:!0},children:[y.jsxs("div",{className:"flex items-center justify-center mb-6",children:[y.jsx(hw,{className:"w-8 h-8 text-emerald-400 mr-3"}),y.jsx("span",{className:"text-2xl font-bold gradient-text",children:"Thắng Nguyễn"})]}),y.jsx("p",{className:"text-gray-400 mb-4",children:"© 2024 Thắng Nguyễn. Tất cả quyền được bảo lưu."}),y.jsxs("p",{className:"text-sm text-gray-500 mb-6",children:["Được xây dựng với ",y.jsx("span",{className:"text-red-400",children:"❤️"})," và Tâm huyết"]}),y.jsxs("div",{className:"flex items-center justify-center text-gray-400",children:[y.jsx(Wm,{size:18,className:"mr-2 text-teal-400"}),y.jsxs("span",{children:["Lượt truy cập: ",e]})]})]})})})},rk=()=>y.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-slate-900 via-purple-900 to-slate-900 text-white overflow-x-hidden",children:[y.jsx(LP,{}),y.jsx(VP,{}),y.jsx(IP,{}),y.jsx(_P,{}),y.jsx(FP,{}),y.jsx(tk,{}),y.jsx(nk,{}),y.jsx(Sw,{})]});ba.createRoot(document.getElementById("root")).render(y.jsx(Y.StrictMode,{children:y.jsx(rk,{})}));