function f1(e,n){for(var i=0;i<n.length;i++){const o=n[i];if(typeof o!="string"&&!Array.isArray(o)){for(const a in o)if(a!=="default"&&!(a in e)){const u=Object.getOwnPropertyDescriptor(o,a);u&&Object.defineProperty(e,a,u.get?u:{enumerable:!0,get:()=>o[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))o(a);new MutationObserver(a=>{for(const u of a)if(u.type==="childList")for(const c of u.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&o(c)}).observe(document,{childList:!0,subtree:!0});function i(a){const u={};return a.integrity&&(u.integrity=a.integrity),a.referrerPolicy&&(u.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?u.credentials="include":a.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function o(a){if(a.ep)return;a.ep=!0;const u=i(a);fetch(a.href,u)}})();var jo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ev(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ou={exports:{}},Gi={},Mu={exports:{}},Se={};var Mh;function p1(){if(Mh)return Se;Mh=1;var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.iterator;function x(_){return _===null||typeof _!="object"?null:(_=y&&_[y]||_["@@iterator"],typeof _=="function"?_:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,P={};function k(_,W,le){this.props=_,this.context=W,this.refs=P,this.updater=le||S}k.prototype.isReactComponent={},k.prototype.setState=function(_,W){if(typeof _!="object"&&typeof _!="function"&&_!=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,_,W,"setState")},k.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function E(){}E.prototype=k.prototype;function j(_,W,le){this.props=_,this.context=W,this.refs=P,this.updater=le||S}var N=j.prototype=new E;N.constructor=j,b(N,k.prototype),N.isPureReactComponent=!0;var O=Array.isArray,M=Object.prototype.hasOwnProperty,V={current:null},F={key:!0,ref:!0,__self:!0,__source:!0};function H(_,W,le){var he,xe={},ye=null,ge=null;if(W!=null)for(he in W.ref!==void 0&&(ge=W.ref),W.key!==void 0&&(ye=""+W.key),W)M.call(W,he)&&!F.hasOwnProperty(he)&&(xe[he]=W[he]);var ue=arguments.length-2;if(ue===1)xe.children=le;else if(1<ue){for(var we=Array(ue),Oe=0;Oe<ue;Oe++)we[Oe]=arguments[Oe+2];xe.children=we}if(_&&_.defaultProps)for(he in ue=_.defaultProps,ue)xe[he]===void 0&&(xe[he]=ue[he]);return{$$typeof:e,type:_,key:ye,ref:ge,props:xe,_owner:V.current}}function Y(_,W){return{$$typeof:e,type:_.type,key:W,ref:_.ref,props:_.props,_owner:_._owner}}function q(_){return typeof _=="object"&&_!==null&&_.$$typeof===e}function $(_){var W={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(le){return W[le]})}var D=/\/+/g;function X(_,W){return typeof _=="object"&&_!==null&&_.key!=null?$(""+_.key):W.toString(36)}function B(_,W,le,he,xe){var ye=typeof _;(ye==="undefined"||ye==="boolean")&&(_=null);var ge=!1;if(_===null)ge=!0;else switch(ye){case"string":case"number":ge=!0;break;case"object":switch(_.$$typeof){case e:case n:ge=!0}}if(ge)return ge=_,xe=xe(ge),_=he===""?"."+X(ge,0):he,O(xe)?(le="",_!=null&&(le=_.replace(D,"$&/")+"/"),B(xe,W,le,"",function(Oe){return Oe})):xe!=null&&(q(xe)&&(xe=Y(xe,le+(!xe.key||ge&&ge.key===xe.key?"":(""+xe.key).replace(D,"$&/")+"/")+_)),W.push(xe)),1;if(ge=0,he=he===""?".":he+":",O(_))for(var ue=0;ue<_.length;ue++){ye=_[ue];var we=he+X(ye,ue);ge+=B(ye,W,le,we,xe)}else if(we=x(_),typeof we=="function")for(_=we.call(_),ue=0;!(ye=_.next()).done;)ye=ye.value,we=he+X(ye,ue++),ge+=B(ye,W,le,we,xe);else if(ye==="object")throw W=String(_),Error("Objects are not valid as a React child (found: "+(W==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":W)+"). If you meant to render a collection of children, use an array instead.");return ge}function ce(_,W,le){if(_==null)return _;var he=[],xe=0;return B(_,he,"","",function(ye){return W.call(le,ye,xe++)}),he}function se(_){if(_._status===-1){var W=_._result;W=W(),W.then(function(le){(_._status===0||_._status===-1)&&(_._status=1,_._result=le)},function(le){(_._status===0||_._status===-1)&&(_._status=2,_._result=le)}),_._status===-1&&(_._status=0,_._result=W)}if(_._status===1)return _._result.default;throw _._result}var te={current:null},U={transition:null},ee={ReactCurrentDispatcher:te,ReactCurrentBatchConfig:U,ReactCurrentOwner:V};function Z(){throw Error("act(...) is not supported in production builds of React.")}return Se.Children={map:ce,forEach:function(_,W,le){ce(_,function(){W.apply(this,arguments)},le)},count:function(_){var W=0;return ce(_,function(){W++}),W},toArray:function(_){return ce(_,function(W){return W})||[]},only:function(_){if(!q(_))throw Error("React.Children.only expected to receive a single React element child.");return _}},Se.Component=k,Se.Fragment=i,Se.Profiler=a,Se.PureComponent=j,Se.StrictMode=o,Se.Suspense=p,Se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ee,Se.act=Z,Se.cloneElement=function(_,W,le){if(_==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+_+".");var he=b({},_.props),xe=_.key,ye=_.ref,ge=_._owner;if(W!=null){if(W.ref!==void 0&&(ye=W.ref,ge=V.current),W.key!==void 0&&(xe=""+W.key),_.type&&_.type.defaultProps)var ue=_.type.defaultProps;for(we in W)M.call(W,we)&&!F.hasOwnProperty(we)&&(he[we]=W[we]===void 0&&ue!==void 0?ue[we]:W[we])}var we=arguments.length-2;if(we===1)he.children=le;else if(1<we){ue=Array(we);for(var Oe=0;Oe<we;Oe++)ue[Oe]=arguments[Oe+2];he.children=ue}return{$$typeof:e,type:_.type,key:xe,ref:ye,props:he,_owner:ge}},Se.createContext=function(_){return _={$$typeof:c,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},_.Provider={$$typeof:u,_context:_},_.Consumer=_},Se.createElement=H,Se.createFactory=function(_){var W=H.bind(null,_);return W.type=_,W},Se.createRef=function(){return{current:null}},Se.forwardRef=function(_){return{$$typeof:f,render:_}},Se.isValidElement=q,Se.lazy=function(_){return{$$typeof:g,_payload:{_status:-1,_result:_},_init:se}},Se.memo=function(_,W){return{$$typeof:h,type:_,compare:W===void 0?null:W}},Se.startTransition=function(_){var W=U.transition;U.transition={};try{_()}finally{U.transition=W}},Se.unstable_act=Z,Se.useCallback=function(_,W){return te.current.useCallback(_,W)},Se.useContext=function(_){return te.current.useContext(_)},Se.useDebugValue=function(){},Se.useDeferredValue=function(_){return te.current.useDeferredValue(_)},Se.useEffect=function(_,W){return te.current.useEffect(_,W)},Se.useId=function(){return te.current.useId()},Se.useImperativeHandle=function(_,W,le){return te.current.useImperativeHandle(_,W,le)},Se.useInsertionEffect=function(_,W){return te.current.useInsertionEffect(_,W)},Se.useLayoutEffect=function(_,W){return te.current.useLayoutEffect(_,W)},Se.useMemo=function(_,W){return te.current.useMemo(_,W)},Se.useReducer=function(_,W,le){return te.current.useReducer(_,W,le)},Se.useRef=function(_){return te.current.useRef(_)},Se.useState=function(_){return te.current.useState(_)},Se.useSyncExternalStore=function(_,W,le){return te.current.useSyncExternalStore(_,W,le)},Se.useTransition=function(){return te.current.useTransition()},Se.version="18.3.1",Se}var Dh;function tn(){return Dh||(Dh=1,Mu.exports=p1()),Mu.exports}var Lh;function h1(){if(Lh)return Gi;Lh=1;var e=tn(),n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function c(f,p,h){var g,y={},x=null,S=null;h!==void 0&&(x=""+h),p.key!==void 0&&(x=""+p.key),p.ref!==void 0&&(S=p.ref);for(g in p)o.call(p,g)&&!u.hasOwnProperty(g)&&(y[g]=p[g]);if(f&&f.defaultProps)for(g in p=f.defaultProps,p)y[g]===void 0&&(y[g]=p[g]);return{$$typeof:n,type:f,key:x,ref:S,props:y,_owner:a.current}}return Gi.Fragment=i,Gi.jsx=c,Gi.jsxs=c,Gi}var Ih;function m1(){return Ih||(Ih=1,Ou.exports=h1()),Ou.exports}var v=m1(),No={},Du={exports:{}},ht={},Lu={exports:{}},Iu={};var Fh;function g1(){return Fh||(Fh=1,(function(e){function n(U,ee){var Z=U.length;U.push(ee);e:for(;0<Z;){var _=Z-1>>>1,W=U[_];if(0<a(W,ee))U[_]=ee,U[Z]=W,Z=_;else break e}}function i(U){return U.length===0?null:U[0]}function o(U){if(U.length===0)return null;var ee=U[0],Z=U.pop();if(Z!==ee){U[0]=Z;e:for(var _=0,W=U.length,le=W>>>1;_<le;){var he=2*(_+1)-1,xe=U[he],ye=he+1,ge=U[ye];if(0>a(xe,Z))ye<W&&0>a(ge,xe)?(U[_]=ge,U[ye]=Z,_=ye):(U[_]=xe,U[he]=Z,_=he);else if(ye<W&&0>a(ge,Z))U[_]=ge,U[ye]=Z,_=ye;else break e}}return ee}function a(U,ee){var Z=U.sortIndex-ee.sortIndex;return Z!==0?Z:U.id-ee.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var p=[],h=[],g=1,y=null,x=3,S=!1,b=!1,P=!1,k=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function N(U){for(var ee=i(h);ee!==null;){if(ee.callback===null)o(h);else if(ee.startTime<=U)o(h),ee.sortIndex=ee.expirationTime,n(p,ee);else break;ee=i(h)}}function O(U){if(P=!1,N(U),!b)if(i(p)!==null)b=!0,se(M);else{var ee=i(h);ee!==null&&te(O,ee.startTime-U)}}function M(U,ee){b=!1,P&&(P=!1,E(H),H=-1),S=!0;var Z=x;try{for(N(ee),y=i(p);y!==null&&(!(y.expirationTime>ee)||U&&!$());){var _=y.callback;if(typeof _=="function"){y.callback=null,x=y.priorityLevel;var W=_(y.expirationTime<=ee);ee=e.unstable_now(),typeof W=="function"?y.callback=W:y===i(p)&&o(p),N(ee)}else o(p);y=i(p)}if(y!==null)var le=!0;else{var he=i(h);he!==null&&te(O,he.startTime-ee),le=!1}return le}finally{y=null,x=Z,S=!1}}var V=!1,F=null,H=-1,Y=5,q=-1;function $(){return!(e.unstable_now()-q<Y)}function D(){if(F!==null){var U=e.unstable_now();q=U;var ee=!0;try{ee=F(!0,U)}finally{ee?X():(V=!1,F=null)}}else V=!1}var X;if(typeof j=="function")X=function(){j(D)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,ce=B.port2;B.port1.onmessage=D,X=function(){ce.postMessage(null)}}else X=function(){k(D,0)};function se(U){F=U,V||(V=!0,X())}function te(U,ee){H=k(function(){U(e.unstable_now())},ee)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(U){U.callback=null},e.unstable_continueExecution=function(){b||S||(b=!0,se(M))},e.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Y=0<U?Math.floor(1e3/U):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_getFirstCallbackNode=function(){return i(p)},e.unstable_next=function(U){switch(x){case 1:case 2:case 3:var ee=3;break;default:ee=x}var Z=x;x=ee;try{return U()}finally{x=Z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(U,ee){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var Z=x;x=U;try{return ee()}finally{x=Z}},e.unstable_scheduleCallback=function(U,ee,Z){var _=e.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?_+Z:_):Z=_,U){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=Z+W,U={id:g++,callback:ee,priorityLevel:U,startTime:Z,expirationTime:W,sortIndex:-1},Z>_?(U.sortIndex=Z,n(h,U),i(p)===null&&U===i(h)&&(P?(E(H),H=-1):P=!0,te(O,Z-_))):(U.sortIndex=W,n(p,U),b||S||(b=!0,se(M))),U},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(U){var ee=x;return function(){var Z=x;x=ee;try{return U.apply(this,arguments)}finally{x=Z}}}})(Iu)),Iu}var Vh;function v1(){return Vh||(Vh=1,Lu.exports=g1()),Lu.exports}var zh;function y1(){if(zh)return ht;zh=1;var e=tn(),n=v1();function i(t){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+t,s=1;s<arguments.length;s++)r+="&args[]="+encodeURIComponent(arguments[s]);return"Minified React error #"+t+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,a={};function u(t,r){c(t,r),c(t+"Capture",r)}function c(t,r){for(a[t]=r,t=0;t<r.length;t++)o.add(r[t])}var f=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,h=/^[: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]*$/,g={},y={};function x(t){return p.call(y,t)?!0:p.call(g,t)?!1:h.test(t)?y[t]=!0:(g[t]=!0,!1)}function S(t,r,s,l){if(s!==null&&s.type===0)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":return l?!1:s!==null?!s.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function b(t,r,s,l){if(r===null||typeof r>"u"||S(t,r,s,l))return!0;if(l)return!1;if(s!==null)switch(s.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function P(t,r,s,l,d,m,w){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=l,this.attributeNamespace=d,this.mustUseProperty=s,this.propertyName=t,this.type=r,this.sanitizeURL=m,this.removeEmptyString=w}var k={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){k[t]=new P(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var r=t[0];k[r]=new P(r,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){k[t]=new P(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){k[t]=new P(t,2,!1,t,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(t){k[t]=new P(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){k[t]=new P(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){k[t]=new P(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){k[t]=new P(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){k[t]=new P(t,5,!1,t.toLowerCase(),null,!1,!1)});var E=/[\-:]([a-z])/g;function j(t){return t[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(t){var r=t.replace(E,j);k[r]=new P(r,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var r=t.replace(E,j);k[r]=new P(r,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var r=t.replace(E,j);k[r]=new P(r,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){k[t]=new P(t,1,!1,t.toLowerCase(),null,!1,!1)}),k.xlinkHref=new P("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){k[t]=new P(t,1,!1,t.toLowerCase(),null,!0,!0)});function N(t,r,s,l){var d=k.hasOwnProperty(r)?k[r]:null;(d!==null?d.type!==0:l||!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(b(r,s,d,l)&&(s=null),l||d===null?x(r)&&(s===null?t.removeAttribute(r):t.setAttribute(r,""+s)):d.mustUseProperty?t[d.propertyName]=s===null?d.type===3?!1:"":s:(r=d.attributeName,l=d.attributeNamespace,s===null?t.removeAttribute(r):(d=d.type,s=d===3||d===4&&s===!0?"":""+s,l?t.setAttributeNS(l,r,s):t.setAttribute(r,s))))}var O=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,M=Symbol.for("react.element"),V=Symbol.for("react.portal"),F=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),q=Symbol.for("react.provider"),$=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),ce=Symbol.for("react.memo"),se=Symbol.for("react.lazy"),te=Symbol.for("react.offscreen"),U=Symbol.iterator;function ee(t){return t===null||typeof t!="object"?null:(t=U&&t[U]||t["@@iterator"],typeof t=="function"?t:null)}var Z=Object.assign,_;function W(t){if(_===void 0)try{throw Error()}catch(s){var r=s.stack.trim().match(/\n( *(at )?)/);_=r&&r[1]||""}return`
`+_+t}var le=!1;function he(t,r){if(!t||le)return"";le=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(r)if(r=function(){throw Error()},Object.defineProperty(r.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(r,[])}catch(z){var l=z}Reflect.construct(t,[],r)}else{try{r.call()}catch(z){l=z}t.call(r.prototype)}else{try{throw Error()}catch(z){l=z}t()}}catch(z){if(z&&l&&typeof z.stack=="string"){for(var d=z.stack.split(`
`),m=l.stack.split(`
`),w=d.length-1,T=m.length-1;1<=w&&0<=T&&d[w]!==m[T];)T--;for(;1<=w&&0<=T;w--,T--)if(d[w]!==m[T]){if(w!==1||T!==1)do if(w--,T--,0>T||d[w]!==m[T]){var A=`
`+d[w].replace(" at new "," at ");return t.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",t.displayName)),A}while(1<=w&&0<=T);break}}}finally{le=!1,Error.prepareStackTrace=s}return(t=t?t.displayName||t.name:"")?W(t):""}function xe(t){switch(t.tag){case 5:return W(t.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return t=he(t.type,!1),t;case 11:return t=he(t.type.render,!1),t;case 1:return t=he(t.type,!0),t;default:return""}}function ye(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case F:return"Fragment";case V:return"Portal";case Y:return"Profiler";case H:return"StrictMode";case X:return"Suspense";case B:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case $:return(t.displayName||"Context")+".Consumer";case q:return(t._context.displayName||"Context")+".Provider";case D:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case ce:return r=t.displayName||null,r!==null?r:ye(t.type)||"Memo";case se:r=t._payload,t=t._init;try{return ye(t(r))}catch{}}return null}function ge(t){var r=t.type;switch(t.tag){case 24:return"Cache";case 9:return(r.displayName||"Context")+".Consumer";case 10:return(r._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=r.render,t=t.displayName||t.name||"",r.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return r;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ye(r);case 8:return r===H?"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 r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r}return null}function ue(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function we(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function Oe(t){var r=we(t)?"checked":"value",s=Object.getOwnPropertyDescriptor(t.constructor.prototype,r),l=""+t[r];if(!t.hasOwnProperty(r)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var d=s.get,m=s.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return d.call(this)},set:function(w){l=""+w,m.call(this,w)}}),Object.defineProperty(t,r,{enumerable:s.enumerable}),{getValue:function(){return l},setValue:function(w){l=""+w},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function kt(t){t._valueTracker||(t._valueTracker=Oe(t))}function Sr(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var s=r.getValue(),l="";return t&&(l=we(t)?t.checked?"true":"false":t.value),t=l,t!==s?(r.setValue(t),!0):!1}function rn(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function za(t,r){var s=r.checked;return Z({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??t._wrapperState.initialChecked})}function zd(t,r){var s=r.defaultValue==null?"":r.defaultValue,l=r.checked!=null?r.checked:r.defaultChecked;s=ue(r.value!=null?r.value:s),t._wrapperState={initialChecked:l,initialValue:s,controlled:r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null}}function Bd(t,r){r=r.checked,r!=null&&N(t,"checked",r,!1)}function Ba(t,r){Bd(t,r);var s=ue(r.value),l=r.type;if(s!=null)l==="number"?(s===0&&t.value===""||t.value!=s)&&(t.value=""+s):t.value!==""+s&&(t.value=""+s);else if(l==="submit"||l==="reset"){t.removeAttribute("value");return}r.hasOwnProperty("value")?Ua(t,r.type,s):r.hasOwnProperty("defaultValue")&&Ua(t,r.type,ue(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(t.defaultChecked=!!r.defaultChecked)}function Ud(t,r,s){if(r.hasOwnProperty("value")||r.hasOwnProperty("defaultValue")){var l=r.type;if(!(l!=="submit"&&l!=="reset"||r.value!==void 0&&r.value!==null))return;r=""+t._wrapperState.initialValue,s||r===t.value||(t.value=r),t.defaultValue=r}s=t.name,s!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,s!==""&&(t.name=s)}function Ua(t,r,s){(r!=="number"||rn(t.ownerDocument)!==t)&&(s==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+s&&(t.defaultValue=""+s))}var ci=Array.isArray;function Pr(t,r,s,l){if(t=t.options,r){r={};for(var d=0;d<s.length;d++)r["$"+s[d]]=!0;for(s=0;s<t.length;s++)d=r.hasOwnProperty("$"+t[s].value),t[s].selected!==d&&(t[s].selected=d),d&&l&&(t[s].defaultSelected=!0)}else{for(s=""+ue(s),r=null,d=0;d<t.length;d++){if(t[d].value===s){t[d].selected=!0,l&&(t[d].defaultSelected=!0);return}r!==null||t[d].disabled||(r=t[d])}r!==null&&(r.selected=!0)}}function Ha(t,r){if(r.dangerouslySetInnerHTML!=null)throw Error(i(91));return Z({},r,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Hd(t,r){var s=r.value;if(s==null){if(s=r.children,r=r.defaultValue,s!=null){if(r!=null)throw Error(i(92));if(ci(s)){if(1<s.length)throw Error(i(93));s=s[0]}r=s}r==null&&(r=""),s=r}t._wrapperState={initialValue:ue(s)}}function Wd(t,r){var s=ue(r.value),l=ue(r.defaultValue);s!=null&&(s=""+s,s!==t.value&&(t.value=s),r.defaultValue==null&&t.defaultValue!==s&&(t.defaultValue=s)),l!=null&&(t.defaultValue=""+l)}function $d(t){var r=t.textContent;r===t._wrapperState.initialValue&&r!==""&&r!==null&&(t.value=r)}function qd(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Wa(t,r){return t==null||t==="http://www.w3.org/1999/xhtml"?qd(r):t==="http://www.w3.org/2000/svg"&&r==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var xs,Kd=(function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(r,s,l,d){MSApp.execUnsafeLocalFunction(function(){return t(r,s,l,d)})}:t})(function(t,r){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=r;else{for(xs=xs||document.createElement("div"),xs.innerHTML="<svg>"+r.valueOf().toString()+"</svg>",r=xs.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;r.firstChild;)t.appendChild(r.firstChild)}});function di(t,r){if(r){var s=t.firstChild;if(s&&s===t.lastChild&&s.nodeType===3){s.nodeValue=r;return}}t.textContent=r}var fi={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},gx=["Webkit","ms","Moz","O"];Object.keys(fi).forEach(function(t){gx.forEach(function(r){r=r+t.charAt(0).toUpperCase()+t.substring(1),fi[r]=fi[t]})});function Qd(t,r,s){return r==null||typeof r=="boolean"||r===""?"":s||typeof r!="number"||r===0||fi.hasOwnProperty(t)&&fi[t]?(""+r).trim():r+"px"}function Gd(t,r){t=t.style;for(var s in r)if(r.hasOwnProperty(s)){var l=s.indexOf("--")===0,d=Qd(s,r[s],l);s==="float"&&(s="cssFloat"),l?t.setProperty(s,d):t[s]=d}}var vx=Z({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function $a(t,r){if(r){if(vx[t]&&(r.children!=null||r.dangerouslySetInnerHTML!=null))throw Error(i(137,t));if(r.dangerouslySetInnerHTML!=null){if(r.children!=null)throw Error(i(60));if(typeof r.dangerouslySetInnerHTML!="object"||!("__html"in r.dangerouslySetInnerHTML))throw Error(i(61))}if(r.style!=null&&typeof r.style!="object")throw Error(i(62))}}function qa(t,r){if(t.indexOf("-")===-1)return typeof r.is=="string";switch(t){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 Ka=null;function Qa(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ga=null,br=null,kr=null;function Yd(t){if(t=Mi(t)){if(typeof Ga!="function")throw Error(i(280));var r=t.stateNode;r&&(r=Us(r),Ga(t.stateNode,t.type,r))}}function Xd(t){br?kr?kr.push(t):kr=[t]:br=t}function Zd(){if(br){var t=br,r=kr;if(kr=br=null,Yd(t),r)for(t=0;t<r.length;t++)Yd(r[t])}}function Jd(t,r){return t(r)}function ef(){}var Ya=!1;function tf(t,r,s){if(Ya)return t(r,s);Ya=!0;try{return Jd(t,r,s)}finally{Ya=!1,(br!==null||kr!==null)&&(ef(),Zd())}}function pi(t,r){var s=t.stateNode;if(s===null)return null;var l=Us(s);if(l===null)return null;s=l[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break e;default:t=!1}if(t)return null;if(s&&typeof s!="function")throw Error(i(231,r,typeof s));return s}var Xa=!1;if(f)try{var hi={};Object.defineProperty(hi,"passive",{get:function(){Xa=!0}}),window.addEventListener("test",hi,hi),window.removeEventListener("test",hi,hi)}catch{Xa=!1}function yx(t,r,s,l,d,m,w,T,A){var z=Array.prototype.slice.call(arguments,3);try{r.apply(s,z)}catch(Q){this.onError(Q)}}var mi=!1,ws=null,Ss=!1,Za=null,xx={onError:function(t){mi=!0,ws=t}};function wx(t,r,s,l,d,m,w,T,A){mi=!1,ws=null,yx.apply(xx,arguments)}function Sx(t,r,s,l,d,m,w,T,A){if(wx.apply(this,arguments),mi){if(mi){var z=ws;mi=!1,ws=null}else throw Error(i(198));Ss||(Ss=!0,Za=z)}}function er(t){var r=t,s=t;if(t.alternate)for(;r.return;)r=r.return;else{t=r;do r=t,(r.flags&4098)!==0&&(s=r.return),t=r.return;while(t)}return r.tag===3?s:null}function nf(t){if(t.tag===13){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function rf(t){if(er(t)!==t)throw Error(i(188))}function Px(t){var r=t.alternate;if(!r){if(r=er(t),r===null)throw Error(i(188));return r!==t?null:t}for(var s=t,l=r;;){var d=s.return;if(d===null)break;var m=d.alternate;if(m===null){if(l=d.return,l!==null){s=l;continue}break}if(d.child===m.child){for(m=d.child;m;){if(m===s)return rf(d),t;if(m===l)return rf(d),r;m=m.sibling}throw Error(i(188))}if(s.return!==l.return)s=d,l=m;else{for(var w=!1,T=d.child;T;){if(T===s){w=!0,s=d,l=m;break}if(T===l){w=!0,l=d,s=m;break}T=T.sibling}if(!w){for(T=m.child;T;){if(T===s){w=!0,s=m,l=d;break}if(T===l){w=!0,l=m,s=d;break}T=T.sibling}if(!w)throw Error(i(189))}}if(s.alternate!==l)throw Error(i(190))}if(s.tag!==3)throw Error(i(188));return s.stateNode.current===s?t:r}function sf(t){return t=Px(t),t!==null?of(t):null}function of(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var r=of(t);if(r!==null)return r;t=t.sibling}return null}var af=n.unstable_scheduleCallback,lf=n.unstable_cancelCallback,bx=n.unstable_shouldYield,kx=n.unstable_requestPaint,ze=n.unstable_now,Ex=n.unstable_getCurrentPriorityLevel,Ja=n.unstable_ImmediatePriority,uf=n.unstable_UserBlockingPriority,Ps=n.unstable_NormalPriority,Tx=n.unstable_LowPriority,cf=n.unstable_IdlePriority,bs=null,$t=null;function Cx(t){if($t&&typeof $t.onCommitFiberRoot=="function")try{$t.onCommitFiberRoot(bs,t,void 0,(t.current.flags&128)===128)}catch{}}var Ot=Math.clz32?Math.clz32:Ax,jx=Math.log,Nx=Math.LN2;function Ax(t){return t>>>=0,t===0?32:31-(jx(t)/Nx|0)|0}var ks=64,Es=4194304;function gi(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Ts(t,r){var s=t.pendingLanes;if(s===0)return 0;var l=0,d=t.suspendedLanes,m=t.pingedLanes,w=s&268435455;if(w!==0){var T=w&~d;T!==0?l=gi(T):(m&=w,m!==0&&(l=gi(m)))}else w=s&~d,w!==0?l=gi(w):m!==0&&(l=gi(m));if(l===0)return 0;if(r!==0&&r!==l&&(r&d)===0&&(d=l&-l,m=r&-r,d>=m||d===16&&(m&4194240)!==0))return r;if((l&4)!==0&&(l|=s&16),r=t.entangledLanes,r!==0)for(t=t.entanglements,r&=l;0<r;)s=31-Ot(r),d=1<<s,l|=t[s],r&=~d;return l}function Rx(t,r){switch(t){case 1:case 2:case 4:return r+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function _x(t,r){for(var s=t.suspendedLanes,l=t.pingedLanes,d=t.expirationTimes,m=t.pendingLanes;0<m;){var w=31-Ot(m),T=1<<w,A=d[w];A===-1?((T&s)===0||(T&l)!==0)&&(d[w]=Rx(T,r)):A<=r&&(t.expiredLanes|=T),m&=~T}}function el(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function df(){var t=ks;return ks<<=1,(ks&4194240)===0&&(ks=64),t}function tl(t){for(var r=[],s=0;31>s;s++)r.push(t);return r}function vi(t,r,s){t.pendingLanes|=r,r!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,r=31-Ot(r),t[r]=s}function Ox(t,r){var s=t.pendingLanes&~r;t.pendingLanes=r,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=r,t.mutableReadLanes&=r,t.entangledLanes&=r,r=t.entanglements;var l=t.eventTimes;for(t=t.expirationTimes;0<s;){var d=31-Ot(s),m=1<<d;r[d]=0,l[d]=-1,t[d]=-1,s&=~m}}function nl(t,r){var s=t.entangledLanes|=r;for(t=t.entanglements;s;){var l=31-Ot(s),d=1<<l;d&r|t[l]&r&&(t[l]|=r),s&=~d}}var Ee=0;function ff(t){return t&=-t,1<t?4<t?(t&268435455)!==0?16:536870912:4:1}var pf,rl,hf,mf,gf,il=!1,Cs=[],bn=null,kn=null,En=null,yi=new Map,xi=new Map,Tn=[],Mx="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function vf(t,r){switch(t){case"focusin":case"focusout":bn=null;break;case"dragenter":case"dragleave":kn=null;break;case"mouseover":case"mouseout":En=null;break;case"pointerover":case"pointerout":yi.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":xi.delete(r.pointerId)}}function wi(t,r,s,l,d,m){return t===null||t.nativeEvent!==m?(t={blockedOn:r,domEventName:s,eventSystemFlags:l,nativeEvent:m,targetContainers:[d]},r!==null&&(r=Mi(r),r!==null&&rl(r)),t):(t.eventSystemFlags|=l,r=t.targetContainers,d!==null&&r.indexOf(d)===-1&&r.push(d),t)}function Dx(t,r,s,l,d){switch(r){case"focusin":return bn=wi(bn,t,r,s,l,d),!0;case"dragenter":return kn=wi(kn,t,r,s,l,d),!0;case"mouseover":return En=wi(En,t,r,s,l,d),!0;case"pointerover":var m=d.pointerId;return yi.set(m,wi(yi.get(m)||null,t,r,s,l,d)),!0;case"gotpointercapture":return m=d.pointerId,xi.set(m,wi(xi.get(m)||null,t,r,s,l,d)),!0}return!1}function yf(t){var r=tr(t.target);if(r!==null){var s=er(r);if(s!==null){if(r=s.tag,r===13){if(r=nf(s),r!==null){t.blockedOn=r,gf(t.priority,function(){hf(s)});return}}else if(r===3&&s.stateNode.current.memoizedState.isDehydrated){t.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}t.blockedOn=null}function js(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var s=ol(t.domEventName,t.eventSystemFlags,r[0],t.nativeEvent);if(s===null){s=t.nativeEvent;var l=new s.constructor(s.type,s);Ka=l,s.target.dispatchEvent(l),Ka=null}else return r=Mi(s),r!==null&&rl(r),t.blockedOn=s,!1;r.shift()}return!0}function xf(t,r,s){js(t)&&s.delete(r)}function Lx(){il=!1,bn!==null&&js(bn)&&(bn=null),kn!==null&&js(kn)&&(kn=null),En!==null&&js(En)&&(En=null),yi.forEach(xf),xi.forEach(xf)}function Si(t,r){t.blockedOn===r&&(t.blockedOn=null,il||(il=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Lx)))}function Pi(t){function r(d){return Si(d,t)}if(0<Cs.length){Si(Cs[0],t);for(var s=1;s<Cs.length;s++){var l=Cs[s];l.blockedOn===t&&(l.blockedOn=null)}}for(bn!==null&&Si(bn,t),kn!==null&&Si(kn,t),En!==null&&Si(En,t),yi.forEach(r),xi.forEach(r),s=0;s<Tn.length;s++)l=Tn[s],l.blockedOn===t&&(l.blockedOn=null);for(;0<Tn.length&&(s=Tn[0],s.blockedOn===null);)yf(s),s.blockedOn===null&&Tn.shift()}var Er=O.ReactCurrentBatchConfig,Ns=!0;function Ix(t,r,s,l){var d=Ee,m=Er.transition;Er.transition=null;try{Ee=1,sl(t,r,s,l)}finally{Ee=d,Er.transition=m}}function Fx(t,r,s,l){var d=Ee,m=Er.transition;Er.transition=null;try{Ee=4,sl(t,r,s,l)}finally{Ee=d,Er.transition=m}}function sl(t,r,s,l){if(Ns){var d=ol(t,r,s,l);if(d===null)bl(t,r,l,As,s),vf(t,l);else if(Dx(d,t,r,s,l))l.stopPropagation();else if(vf(t,l),r&4&&-1<Mx.indexOf(t)){for(;d!==null;){var m=Mi(d);if(m!==null&&pf(m),m=ol(t,r,s,l),m===null&&bl(t,r,l,As,s),m===d)break;d=m}d!==null&&l.stopPropagation()}else bl(t,r,l,null,s)}}var As=null;function ol(t,r,s,l){if(As=null,t=Qa(l),t=tr(t),t!==null)if(r=er(t),r===null)t=null;else if(s=r.tag,s===13){if(t=nf(r),t!==null)return t;t=null}else if(s===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;t=null}else r!==t&&(t=null);return As=t,null}function wf(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ex()){case Ja:return 1;case uf:return 4;case Ps:case Tx:return 16;case cf:return 536870912;default:return 16}default:return 16}}var Cn=null,al=null,Rs=null;function Sf(){if(Rs)return Rs;var t,r=al,s=r.length,l,d="value"in Cn?Cn.value:Cn.textContent,m=d.length;for(t=0;t<s&&r[t]===d[t];t++);var w=s-t;for(l=1;l<=w&&r[s-l]===d[m-l];l++);return Rs=d.slice(t,1<l?1-l:void 0)}function _s(t){var r=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&r===13&&(t=13)):t=r,t===10&&(t=13),32<=t||t===13?t:0}function Os(){return!0}function Pf(){return!1}function vt(t){function r(s,l,d,m,w){this._reactName=s,this._targetInst=d,this.type=l,this.nativeEvent=m,this.target=w,this.currentTarget=null;for(var T in t)t.hasOwnProperty(T)&&(s=t[T],this[T]=s?s(m):m[T]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?Os:Pf,this.isPropagationStopped=Pf,this}return Z(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Os)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Os)},persist:function(){},isPersistent:Os}),r}var Tr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ll=vt(Tr),bi=Z({},Tr,{view:0,detail:0}),Vx=vt(bi),ul,cl,ki,Ms=Z({},bi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fl,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==ki&&(ki&&t.type==="mousemove"?(ul=t.screenX-ki.screenX,cl=t.screenY-ki.screenY):cl=ul=0,ki=t),ul)},movementY:function(t){return"movementY"in t?t.movementY:cl}}),bf=vt(Ms),zx=Z({},Ms,{dataTransfer:0}),Bx=vt(zx),Ux=Z({},bi,{relatedTarget:0}),dl=vt(Ux),Hx=Z({},Tr,{animationName:0,elapsedTime:0,pseudoElement:0}),Wx=vt(Hx),$x=Z({},Tr,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),qx=vt($x),Kx=Z({},Tr,{data:0}),kf=vt(Kx),Qx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Gx={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Yx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Xx(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=Yx[t])?!!r[t]:!1}function fl(){return Xx}var Zx=Z({},bi,{key:function(t){if(t.key){var r=Qx[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=_s(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Gx[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fl,charCode:function(t){return t.type==="keypress"?_s(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?_s(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Jx=vt(Zx),ew=Z({},Ms,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ef=vt(ew),tw=Z({},bi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fl}),nw=vt(tw),rw=Z({},Tr,{propertyName:0,elapsedTime:0,pseudoElement:0}),iw=vt(rw),sw=Z({},Ms,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),ow=vt(sw),aw=[9,13,27,32],pl=f&&"CompositionEvent"in window,Ei=null;f&&"documentMode"in document&&(Ei=document.documentMode);var lw=f&&"TextEvent"in window&&!Ei,Tf=f&&(!pl||Ei&&8<Ei&&11>=Ei),Cf=" ",jf=!1;function Nf(t,r){switch(t){case"keyup":return aw.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Af(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Cr=!1;function uw(t,r){switch(t){case"compositionend":return Af(r);case"keypress":return r.which!==32?null:(jf=!0,Cf);case"textInput":return t=r.data,t===Cf&&jf?null:t;default:return null}}function cw(t,r){if(Cr)return t==="compositionend"||!pl&&Nf(t,r)?(t=Sf(),Rs=al=Cn=null,Cr=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return Tf&&r.locale!=="ko"?null:r.data;default:return null}}var dw={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Rf(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!dw[t.type]:r==="textarea"}function _f(t,r,s,l){Xd(l),r=Vs(r,"onChange"),0<r.length&&(s=new ll("onChange","change",null,s,l),t.push({event:s,listeners:r}))}var Ti=null,Ci=null;function fw(t){Yf(t,0)}function Ds(t){var r=_r(t);if(Sr(r))return t}function pw(t,r){if(t==="change")return r}var Of=!1;if(f){var hl;if(f){var ml="oninput"in document;if(!ml){var Mf=document.createElement("div");Mf.setAttribute("oninput","return;"),ml=typeof Mf.oninput=="function"}hl=ml}else hl=!1;Of=hl&&(!document.documentMode||9<document.documentMode)}function Df(){Ti&&(Ti.detachEvent("onpropertychange",Lf),Ci=Ti=null)}function Lf(t){if(t.propertyName==="value"&&Ds(Ci)){var r=[];_f(r,Ci,t,Qa(t)),tf(fw,r)}}function hw(t,r,s){t==="focusin"?(Df(),Ti=r,Ci=s,Ti.attachEvent("onpropertychange",Lf)):t==="focusout"&&Df()}function mw(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ds(Ci)}function gw(t,r){if(t==="click")return Ds(r)}function vw(t,r){if(t==="input"||t==="change")return Ds(r)}function yw(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var Mt=typeof Object.is=="function"?Object.is:yw;function ji(t,r){if(Mt(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;var s=Object.keys(t),l=Object.keys(r);if(s.length!==l.length)return!1;for(l=0;l<s.length;l++){var d=s[l];if(!p.call(r,d)||!Mt(t[d],r[d]))return!1}return!0}function If(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Ff(t,r){var s=If(t);t=0;for(var l;s;){if(s.nodeType===3){if(l=t+s.textContent.length,t<=r&&l>=r)return{node:s,offset:r-t};t=l}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=If(s)}}function Vf(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?Vf(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function zf(){for(var t=window,r=rn();r instanceof t.HTMLIFrameElement;){try{var s=typeof r.contentWindow.location.href=="string"}catch{s=!1}if(s)t=r.contentWindow;else break;r=rn(t.document)}return r}function gl(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}function xw(t){var r=zf(),s=t.focusedElem,l=t.selectionRange;if(r!==s&&s&&s.ownerDocument&&Vf(s.ownerDocument.documentElement,s)){if(l!==null&&gl(s)){if(r=l.start,t=l.end,t===void 0&&(t=r),"selectionStart"in s)s.selectionStart=r,s.selectionEnd=Math.min(t,s.value.length);else if(t=(r=s.ownerDocument||document)&&r.defaultView||window,t.getSelection){t=t.getSelection();var d=s.textContent.length,m=Math.min(l.start,d);l=l.end===void 0?m:Math.min(l.end,d),!t.extend&&m>l&&(d=l,l=m,m=d),d=Ff(s,m);var w=Ff(s,l);d&&w&&(t.rangeCount!==1||t.anchorNode!==d.node||t.anchorOffset!==d.offset||t.focusNode!==w.node||t.focusOffset!==w.offset)&&(r=r.createRange(),r.setStart(d.node,d.offset),t.removeAllRanges(),m>l?(t.addRange(r),t.extend(w.node,w.offset)):(r.setEnd(w.node,w.offset),t.addRange(r)))}}for(r=[],t=s;t=t.parentNode;)t.nodeType===1&&r.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<r.length;s++)t=r[s],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var ww=f&&"documentMode"in document&&11>=document.documentMode,jr=null,vl=null,Ni=null,yl=!1;function Bf(t,r,s){var l=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;yl||jr==null||jr!==rn(l)||(l=jr,"selectionStart"in l&&gl(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Ni&&ji(Ni,l)||(Ni=l,l=Vs(vl,"onSelect"),0<l.length&&(r=new ll("onSelect","select",null,r,s),t.push({event:r,listeners:l}),r.target=jr)))}function Ls(t,r){var s={};return s[t.toLowerCase()]=r.toLowerCase(),s["Webkit"+t]="webkit"+r,s["Moz"+t]="moz"+r,s}var Nr={animationend:Ls("Animation","AnimationEnd"),animationiteration:Ls("Animation","AnimationIteration"),animationstart:Ls("Animation","AnimationStart"),transitionend:Ls("Transition","TransitionEnd")},xl={},Uf={};f&&(Uf=document.createElement("div").style,"AnimationEvent"in window||(delete Nr.animationend.animation,delete Nr.animationiteration.animation,delete Nr.animationstart.animation),"TransitionEvent"in window||delete Nr.transitionend.transition);function Is(t){if(xl[t])return xl[t];if(!Nr[t])return t;var r=Nr[t],s;for(s in r)if(r.hasOwnProperty(s)&&s in Uf)return xl[t]=r[s];return t}var Hf=Is("animationend"),Wf=Is("animationiteration"),$f=Is("animationstart"),qf=Is("transitionend"),Kf=new Map,Qf="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function jn(t,r){Kf.set(t,r),u(r,[t])}for(var wl=0;wl<Qf.length;wl++){var Sl=Qf[wl],Sw=Sl.toLowerCase(),Pw=Sl[0].toUpperCase()+Sl.slice(1);jn(Sw,"on"+Pw)}jn(Hf,"onAnimationEnd"),jn(Wf,"onAnimationIteration"),jn($f,"onAnimationStart"),jn("dblclick","onDoubleClick"),jn("focusin","onFocus"),jn("focusout","onBlur"),jn(qf,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ai="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),bw=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ai));function Gf(t,r,s){var l=t.type||"unknown-event";t.currentTarget=s,Sx(l,r,void 0,t),t.currentTarget=null}function Yf(t,r){r=(r&4)!==0;for(var s=0;s<t.length;s++){var l=t[s],d=l.event;l=l.listeners;e:{var m=void 0;if(r)for(var w=l.length-1;0<=w;w--){var T=l[w],A=T.instance,z=T.currentTarget;if(T=T.listener,A!==m&&d.isPropagationStopped())break e;Gf(d,T,z),m=A}else for(w=0;w<l.length;w++){if(T=l[w],A=T.instance,z=T.currentTarget,T=T.listener,A!==m&&d.isPropagationStopped())break e;Gf(d,T,z),m=A}}}if(Ss)throw t=Za,Ss=!1,Za=null,t}function je(t,r){var s=r[Nl];s===void 0&&(s=r[Nl]=new Set);var l=t+"__bubble";s.has(l)||(Xf(r,t,2,!1),s.add(l))}function Pl(t,r,s){var l=0;r&&(l|=4),Xf(s,t,l,r)}var Fs="_reactListening"+Math.random().toString(36).slice(2);function Ri(t){if(!t[Fs]){t[Fs]=!0,o.forEach(function(s){s!=="selectionchange"&&(bw.has(s)||Pl(s,!1,t),Pl(s,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[Fs]||(r[Fs]=!0,Pl("selectionchange",!1,r))}}function Xf(t,r,s,l){switch(wf(r)){case 1:var d=Ix;break;case 4:d=Fx;break;default:d=sl}s=d.bind(null,r,s,t),d=void 0,!Xa||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(d=!0),l?d!==void 0?t.addEventListener(r,s,{capture:!0,passive:d}):t.addEventListener(r,s,!0):d!==void 0?t.addEventListener(r,s,{passive:d}):t.addEventListener(r,s,!1)}function bl(t,r,s,l,d){var m=l;if((r&1)===0&&(r&2)===0&&l!==null)e:for(;;){if(l===null)return;var w=l.tag;if(w===3||w===4){var T=l.stateNode.containerInfo;if(T===d||T.nodeType===8&&T.parentNode===d)break;if(w===4)for(w=l.return;w!==null;){var A=w.tag;if((A===3||A===4)&&(A=w.stateNode.containerInfo,A===d||A.nodeType===8&&A.parentNode===d))return;w=w.return}for(;T!==null;){if(w=tr(T),w===null)return;if(A=w.tag,A===5||A===6){l=m=w;continue e}T=T.parentNode}}l=l.return}tf(function(){var z=m,Q=Qa(s),G=[];e:{var K=Kf.get(t);if(K!==void 0){var ne=ll,ie=t;switch(t){case"keypress":if(_s(s)===0)break e;case"keydown":case"keyup":ne=Jx;break;case"focusin":ie="focus",ne=dl;break;case"focusout":ie="blur",ne=dl;break;case"beforeblur":case"afterblur":ne=dl;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ne=bf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ne=Bx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ne=nw;break;case Hf:case Wf:case $f:ne=Wx;break;case qf:ne=iw;break;case"scroll":ne=Vx;break;case"wheel":ne=ow;break;case"copy":case"cut":case"paste":ne=qx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ne=Ef}var oe=(r&4)!==0,Be=!oe&&t==="scroll",L=oe?K!==null?K+"Capture":null:K;oe=[];for(var R=z,I;R!==null;){I=R;var J=I.stateNode;if(I.tag===5&&J!==null&&(I=J,L!==null&&(J=pi(R,L),J!=null&&oe.push(_i(R,J,I)))),Be)break;R=R.return}0<oe.length&&(K=new ne(K,ie,null,s,Q),G.push({event:K,listeners:oe}))}}if((r&7)===0){e:{if(K=t==="mouseover"||t==="pointerover",ne=t==="mouseout"||t==="pointerout",K&&s!==Ka&&(ie=s.relatedTarget||s.fromElement)&&(tr(ie)||ie[sn]))break e;if((ne||K)&&(K=Q.window===Q?Q:(K=Q.ownerDocument)?K.defaultView||K.parentWindow:window,ne?(ie=s.relatedTarget||s.toElement,ne=z,ie=ie?tr(ie):null,ie!==null&&(Be=er(ie),ie!==Be||ie.tag!==5&&ie.tag!==6)&&(ie=null)):(ne=null,ie=z),ne!==ie)){if(oe=bf,J="onMouseLeave",L="onMouseEnter",R="mouse",(t==="pointerout"||t==="pointerover")&&(oe=Ef,J="onPointerLeave",L="onPointerEnter",R="pointer"),Be=ne==null?K:_r(ne),I=ie==null?K:_r(ie),K=new oe(J,R+"leave",ne,s,Q),K.target=Be,K.relatedTarget=I,J=null,tr(Q)===z&&(oe=new oe(L,R+"enter",ie,s,Q),oe.target=I,oe.relatedTarget=Be,J=oe),Be=J,ne&&ie)t:{for(oe=ne,L=ie,R=0,I=oe;I;I=Ar(I))R++;for(I=0,J=L;J;J=Ar(J))I++;for(;0<R-I;)oe=Ar(oe),R--;for(;0<I-R;)L=Ar(L),I--;for(;R--;){if(oe===L||L!==null&&oe===L.alternate)break t;oe=Ar(oe),L=Ar(L)}oe=null}else oe=null;ne!==null&&Zf(G,K,ne,oe,!1),ie!==null&&Be!==null&&Zf(G,Be,ie,oe,!0)}}e:{if(K=z?_r(z):window,ne=K.nodeName&&K.nodeName.toLowerCase(),ne==="select"||ne==="input"&&K.type==="file")var ae=pw;else if(Rf(K))if(Of)ae=vw;else{ae=mw;var de=hw}else(ne=K.nodeName)&&ne.toLowerCase()==="input"&&(K.type==="checkbox"||K.type==="radio")&&(ae=gw);if(ae&&(ae=ae(t,z))){_f(G,ae,s,Q);break e}de&&de(t,K,z),t==="focusout"&&(de=K._wrapperState)&&de.controlled&&K.type==="number"&&Ua(K,"number",K.value)}switch(de=z?_r(z):window,t){case"focusin":(Rf(de)||de.contentEditable==="true")&&(jr=de,vl=z,Ni=null);break;case"focusout":Ni=vl=jr=null;break;case"mousedown":yl=!0;break;case"contextmenu":case"mouseup":case"dragend":yl=!1,Bf(G,s,Q);break;case"selectionchange":if(ww)break;case"keydown":case"keyup":Bf(G,s,Q)}var fe;if(pl)e:{switch(t){case"compositionstart":var me="onCompositionStart";break e;case"compositionend":me="onCompositionEnd";break e;case"compositionupdate":me="onCompositionUpdate";break e}me=void 0}else Cr?Nf(t,s)&&(me="onCompositionEnd"):t==="keydown"&&s.keyCode===229&&(me="onCompositionStart");me&&(Tf&&s.locale!=="ko"&&(Cr||me!=="onCompositionStart"?me==="onCompositionEnd"&&Cr&&(fe=Sf()):(Cn=Q,al="value"in Cn?Cn.value:Cn.textContent,Cr=!0)),de=Vs(z,me),0<de.length&&(me=new kf(me,t,null,s,Q),G.push({event:me,listeners:de}),fe?me.data=fe:(fe=Af(s),fe!==null&&(me.data=fe)))),(fe=lw?uw(t,s):cw(t,s))&&(z=Vs(z,"onBeforeInput"),0<z.length&&(Q=new kf("onBeforeInput","beforeinput",null,s,Q),G.push({event:Q,listeners:z}),Q.data=fe))}Yf(G,r)})}function _i(t,r,s){return{instance:t,listener:r,currentTarget:s}}function Vs(t,r){for(var s=r+"Capture",l=[];t!==null;){var d=t,m=d.stateNode;d.tag===5&&m!==null&&(d=m,m=pi(t,s),m!=null&&l.unshift(_i(t,m,d)),m=pi(t,r),m!=null&&l.push(_i(t,m,d))),t=t.return}return l}function Ar(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Zf(t,r,s,l,d){for(var m=r._reactName,w=[];s!==null&&s!==l;){var T=s,A=T.alternate,z=T.stateNode;if(A!==null&&A===l)break;T.tag===5&&z!==null&&(T=z,d?(A=pi(s,m),A!=null&&w.unshift(_i(s,A,T))):d||(A=pi(s,m),A!=null&&w.push(_i(s,A,T)))),s=s.return}w.length!==0&&t.push({event:r,listeners:w})}var kw=/\r\n?/g,Ew=/\u0000|\uFFFD/g;function Jf(t){return(typeof t=="string"?t:""+t).replace(kw,`
`).replace(Ew,"")}function zs(t,r,s){if(r=Jf(r),Jf(t)!==r&&s)throw Error(i(425))}function Bs(){}var kl=null,El=null;function Tl(t,r){return t==="textarea"||t==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var Cl=typeof setTimeout=="function"?setTimeout:void 0,Tw=typeof clearTimeout=="function"?clearTimeout:void 0,ep=typeof Promise=="function"?Promise:void 0,Cw=typeof queueMicrotask=="function"?queueMicrotask:typeof ep<"u"?function(t){return ep.resolve(null).then(t).catch(jw)}:Cl;function jw(t){setTimeout(function(){throw t})}function jl(t,r){var s=r,l=0;do{var d=s.nextSibling;if(t.removeChild(s),d&&d.nodeType===8)if(s=d.data,s==="/$"){if(l===0){t.removeChild(d),Pi(r);return}l--}else s!=="$"&&s!=="$?"&&s!=="$!"||l++;s=d}while(s);Pi(r)}function Nn(t){for(;t!=null;t=t.nextSibling){var r=t.nodeType;if(r===1||r===3)break;if(r===8){if(r=t.data,r==="$"||r==="$!"||r==="$?")break;if(r==="/$")return null}}return t}function tp(t){t=t.previousSibling;for(var r=0;t;){if(t.nodeType===8){var s=t.data;if(s==="$"||s==="$!"||s==="$?"){if(r===0)return t;r--}else s==="/$"&&r++}t=t.previousSibling}return null}var Rr=Math.random().toString(36).slice(2),qt="__reactFiber$"+Rr,Oi="__reactProps$"+Rr,sn="__reactContainer$"+Rr,Nl="__reactEvents$"+Rr,Nw="__reactListeners$"+Rr,Aw="__reactHandles$"+Rr;function tr(t){var r=t[qt];if(r)return r;for(var s=t.parentNode;s;){if(r=s[sn]||s[qt]){if(s=r.alternate,r.child!==null||s!==null&&s.child!==null)for(t=tp(t);t!==null;){if(s=t[qt])return s;t=tp(t)}return r}t=s,s=t.parentNode}return null}function Mi(t){return t=t[qt]||t[sn],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function _r(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(i(33))}function Us(t){return t[Oi]||null}var Al=[],Or=-1;function An(t){return{current:t}}function Ne(t){0>Or||(t.current=Al[Or],Al[Or]=null,Or--)}function Ce(t,r){Or++,Al[Or]=t.current,t.current=r}var Rn={},Je=An(Rn),ut=An(!1),nr=Rn;function Mr(t,r){var s=t.type.contextTypes;if(!s)return Rn;var l=t.stateNode;if(l&&l.__reactInternalMemoizedUnmaskedChildContext===r)return l.__reactInternalMemoizedMaskedChildContext;var d={},m;for(m in s)d[m]=r[m];return l&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=r,t.__reactInternalMemoizedMaskedChildContext=d),d}function ct(t){return t=t.childContextTypes,t!=null}function Hs(){Ne(ut),Ne(Je)}function np(t,r,s){if(Je.current!==Rn)throw Error(i(168));Ce(Je,r),Ce(ut,s)}function rp(t,r,s){var l=t.stateNode;if(r=r.childContextTypes,typeof l.getChildContext!="function")return s;l=l.getChildContext();for(var d in l)if(!(d in r))throw Error(i(108,ge(t)||"Unknown",d));return Z({},s,l)}function Ws(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Rn,nr=Je.current,Ce(Je,t),Ce(ut,ut.current),!0}function ip(t,r,s){var l=t.stateNode;if(!l)throw Error(i(169));s?(t=rp(t,r,nr),l.__reactInternalMemoizedMergedChildContext=t,Ne(ut),Ne(Je),Ce(Je,t)):Ne(ut),Ce(ut,s)}var on=null,$s=!1,Rl=!1;function sp(t){on===null?on=[t]:on.push(t)}function Rw(t){$s=!0,sp(t)}function _n(){if(!Rl&&on!==null){Rl=!0;var t=0,r=Ee;try{var s=on;for(Ee=1;t<s.length;t++){var l=s[t];do l=l(!0);while(l!==null)}on=null,$s=!1}catch(d){throw on!==null&&(on=on.slice(t+1)),af(Ja,_n),d}finally{Ee=r,Rl=!1}}return null}var Dr=[],Lr=0,qs=null,Ks=0,Et=[],Tt=0,rr=null,an=1,ln="";function ir(t,r){Dr[Lr++]=Ks,Dr[Lr++]=qs,qs=t,Ks=r}function op(t,r,s){Et[Tt++]=an,Et[Tt++]=ln,Et[Tt++]=rr,rr=t;var l=an;t=ln;var d=32-Ot(l)-1;l&=~(1<<d),s+=1;var m=32-Ot(r)+d;if(30<m){var w=d-d%5;m=(l&(1<<w)-1).toString(32),l>>=w,d-=w,an=1<<32-Ot(r)+d|s<<d|l,ln=m+t}else an=1<<m|s<<d|l,ln=t}function _l(t){t.return!==null&&(ir(t,1),op(t,1,0))}function Ol(t){for(;t===qs;)qs=Dr[--Lr],Dr[Lr]=null,Ks=Dr[--Lr],Dr[Lr]=null;for(;t===rr;)rr=Et[--Tt],Et[Tt]=null,ln=Et[--Tt],Et[Tt]=null,an=Et[--Tt],Et[Tt]=null}var yt=null,xt=null,Re=!1,Dt=null;function ap(t,r){var s=At(5,null,null,0);s.elementType="DELETED",s.stateNode=r,s.return=t,r=t.deletions,r===null?(t.deletions=[s],t.flags|=16):r.push(s)}function lp(t,r){switch(t.tag){case 5:var s=t.type;return r=r.nodeType!==1||s.toLowerCase()!==r.nodeName.toLowerCase()?null:r,r!==null?(t.stateNode=r,yt=t,xt=Nn(r.firstChild),!0):!1;case 6:return r=t.pendingProps===""||r.nodeType!==3?null:r,r!==null?(t.stateNode=r,yt=t,xt=null,!0):!1;case 13:return r=r.nodeType!==8?null:r,r!==null?(s=rr!==null?{id:an,overflow:ln}:null,t.memoizedState={dehydrated:r,treeContext:s,retryLane:1073741824},s=At(18,null,null,0),s.stateNode=r,s.return=t,t.child=s,yt=t,xt=null,!0):!1;default:return!1}}function Ml(t){return(t.mode&1)!==0&&(t.flags&128)===0}function Dl(t){if(Re){var r=xt;if(r){var s=r;if(!lp(t,r)){if(Ml(t))throw Error(i(418));r=Nn(s.nextSibling);var l=yt;r&&lp(t,r)?ap(l,s):(t.flags=t.flags&-4097|2,Re=!1,yt=t)}}else{if(Ml(t))throw Error(i(418));t.flags=t.flags&-4097|2,Re=!1,yt=t}}}function up(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;yt=t}function Qs(t){if(t!==yt)return!1;if(!Re)return up(t),Re=!0,!1;var r;if((r=t.tag!==3)&&!(r=t.tag!==5)&&(r=t.type,r=r!=="head"&&r!=="body"&&!Tl(t.type,t.memoizedProps)),r&&(r=xt)){if(Ml(t))throw cp(),Error(i(418));for(;r;)ap(t,r),r=Nn(r.nextSibling)}if(up(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));e:{for(t=t.nextSibling,r=0;t;){if(t.nodeType===8){var s=t.data;if(s==="/$"){if(r===0){xt=Nn(t.nextSibling);break e}r--}else s!=="$"&&s!=="$!"&&s!=="$?"||r++}t=t.nextSibling}xt=null}}else xt=yt?Nn(t.stateNode.nextSibling):null;return!0}function cp(){for(var t=xt;t;)t=Nn(t.nextSibling)}function Ir(){xt=yt=null,Re=!1}function Ll(t){Dt===null?Dt=[t]:Dt.push(t)}var _w=O.ReactCurrentBatchConfig;function Di(t,r,s){if(t=s.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(s._owner){if(s=s._owner,s){if(s.tag!==1)throw Error(i(309));var l=s.stateNode}if(!l)throw Error(i(147,t));var d=l,m=""+t;return r!==null&&r.ref!==null&&typeof r.ref=="function"&&r.ref._stringRef===m?r.ref:(r=function(w){var T=d.refs;w===null?delete T[m]:T[m]=w},r._stringRef=m,r)}if(typeof t!="string")throw Error(i(284));if(!s._owner)throw Error(i(290,t))}return t}function Gs(t,r){throw t=Object.prototype.toString.call(r),Error(i(31,t==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":t))}function dp(t){var r=t._init;return r(t._payload)}function fp(t){function r(L,R){if(t){var I=L.deletions;I===null?(L.deletions=[R],L.flags|=16):I.push(R)}}function s(L,R){if(!t)return null;for(;R!==null;)r(L,R),R=R.sibling;return null}function l(L,R){for(L=new Map;R!==null;)R.key!==null?L.set(R.key,R):L.set(R.index,R),R=R.sibling;return L}function d(L,R){return L=zn(L,R),L.index=0,L.sibling=null,L}function m(L,R,I){return L.index=I,t?(I=L.alternate,I!==null?(I=I.index,I<R?(L.flags|=2,R):I):(L.flags|=2,R)):(L.flags|=1048576,R)}function w(L){return t&&L.alternate===null&&(L.flags|=2),L}function T(L,R,I,J){return R===null||R.tag!==6?(R=Cu(I,L.mode,J),R.return=L,R):(R=d(R,I),R.return=L,R)}function A(L,R,I,J){var ae=I.type;return ae===F?Q(L,R,I.props.children,J,I.key):R!==null&&(R.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===se&&dp(ae)===R.type)?(J=d(R,I.props),J.ref=Di(L,R,I),J.return=L,J):(J=wo(I.type,I.key,I.props,null,L.mode,J),J.ref=Di(L,R,I),J.return=L,J)}function z(L,R,I,J){return R===null||R.tag!==4||R.stateNode.containerInfo!==I.containerInfo||R.stateNode.implementation!==I.implementation?(R=ju(I,L.mode,J),R.return=L,R):(R=d(R,I.children||[]),R.return=L,R)}function Q(L,R,I,J,ae){return R===null||R.tag!==7?(R=fr(I,L.mode,J,ae),R.return=L,R):(R=d(R,I),R.return=L,R)}function G(L,R,I){if(typeof R=="string"&&R!==""||typeof R=="number")return R=Cu(""+R,L.mode,I),R.return=L,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case M:return I=wo(R.type,R.key,R.props,null,L.mode,I),I.ref=Di(L,null,R),I.return=L,I;case V:return R=ju(R,L.mode,I),R.return=L,R;case se:var J=R._init;return G(L,J(R._payload),I)}if(ci(R)||ee(R))return R=fr(R,L.mode,I,null),R.return=L,R;Gs(L,R)}return null}function K(L,R,I,J){var ae=R!==null?R.key:null;if(typeof I=="string"&&I!==""||typeof I=="number")return ae!==null?null:T(L,R,""+I,J);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case M:return I.key===ae?A(L,R,I,J):null;case V:return I.key===ae?z(L,R,I,J):null;case se:return ae=I._init,K(L,R,ae(I._payload),J)}if(ci(I)||ee(I))return ae!==null?null:Q(L,R,I,J,null);Gs(L,I)}return null}function ne(L,R,I,J,ae){if(typeof J=="string"&&J!==""||typeof J=="number")return L=L.get(I)||null,T(R,L,""+J,ae);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case M:return L=L.get(J.key===null?I:J.key)||null,A(R,L,J,ae);case V:return L=L.get(J.key===null?I:J.key)||null,z(R,L,J,ae);case se:var de=J._init;return ne(L,R,I,de(J._payload),ae)}if(ci(J)||ee(J))return L=L.get(I)||null,Q(R,L,J,ae,null);Gs(R,J)}return null}function ie(L,R,I,J){for(var ae=null,de=null,fe=R,me=R=0,Ge=null;fe!==null&&me<I.length;me++){fe.index>me?(Ge=fe,fe=null):Ge=fe.sibling;var ke=K(L,fe,I[me],J);if(ke===null){fe===null&&(fe=Ge);break}t&&fe&&ke.alternate===null&&r(L,fe),R=m(ke,R,me),de===null?ae=ke:de.sibling=ke,de=ke,fe=Ge}if(me===I.length)return s(L,fe),Re&&ir(L,me),ae;if(fe===null){for(;me<I.length;me++)fe=G(L,I[me],J),fe!==null&&(R=m(fe,R,me),de===null?ae=fe:de.sibling=fe,de=fe);return Re&&ir(L,me),ae}for(fe=l(L,fe);me<I.length;me++)Ge=ne(fe,L,me,I[me],J),Ge!==null&&(t&&Ge.alternate!==null&&fe.delete(Ge.key===null?me:Ge.key),R=m(Ge,R,me),de===null?ae=Ge:de.sibling=Ge,de=Ge);return t&&fe.forEach(function(Bn){return r(L,Bn)}),Re&&ir(L,me),ae}function oe(L,R,I,J){var ae=ee(I);if(typeof ae!="function")throw Error(i(150));if(I=ae.call(I),I==null)throw Error(i(151));for(var de=ae=null,fe=R,me=R=0,Ge=null,ke=I.next();fe!==null&&!ke.done;me++,ke=I.next()){fe.index>me?(Ge=fe,fe=null):Ge=fe.sibling;var Bn=K(L,fe,ke.value,J);if(Bn===null){fe===null&&(fe=Ge);break}t&&fe&&Bn.alternate===null&&r(L,fe),R=m(Bn,R,me),de===null?ae=Bn:de.sibling=Bn,de=Bn,fe=Ge}if(ke.done)return s(L,fe),Re&&ir(L,me),ae;if(fe===null){for(;!ke.done;me++,ke=I.next())ke=G(L,ke.value,J),ke!==null&&(R=m(ke,R,me),de===null?ae=ke:de.sibling=ke,de=ke);return Re&&ir(L,me),ae}for(fe=l(L,fe);!ke.done;me++,ke=I.next())ke=ne(fe,L,me,ke.value,J),ke!==null&&(t&&ke.alternate!==null&&fe.delete(ke.key===null?me:ke.key),R=m(ke,R,me),de===null?ae=ke:de.sibling=ke,de=ke);return t&&fe.forEach(function(d1){return r(L,d1)}),Re&&ir(L,me),ae}function Be(L,R,I,J){if(typeof I=="object"&&I!==null&&I.type===F&&I.key===null&&(I=I.props.children),typeof I=="object"&&I!==null){switch(I.$$typeof){case M:e:{for(var ae=I.key,de=R;de!==null;){if(de.key===ae){if(ae=I.type,ae===F){if(de.tag===7){s(L,de.sibling),R=d(de,I.props.children),R.return=L,L=R;break e}}else if(de.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===se&&dp(ae)===de.type){s(L,de.sibling),R=d(de,I.props),R.ref=Di(L,de,I),R.return=L,L=R;break e}s(L,de);break}else r(L,de);de=de.sibling}I.type===F?(R=fr(I.props.children,L.mode,J,I.key),R.return=L,L=R):(J=wo(I.type,I.key,I.props,null,L.mode,J),J.ref=Di(L,R,I),J.return=L,L=J)}return w(L);case V:e:{for(de=I.key;R!==null;){if(R.key===de)if(R.tag===4&&R.stateNode.containerInfo===I.containerInfo&&R.stateNode.implementation===I.implementation){s(L,R.sibling),R=d(R,I.children||[]),R.return=L,L=R;break e}else{s(L,R);break}else r(L,R);R=R.sibling}R=ju(I,L.mode,J),R.return=L,L=R}return w(L);case se:return de=I._init,Be(L,R,de(I._payload),J)}if(ci(I))return ie(L,R,I,J);if(ee(I))return oe(L,R,I,J);Gs(L,I)}return typeof I=="string"&&I!==""||typeof I=="number"?(I=""+I,R!==null&&R.tag===6?(s(L,R.sibling),R=d(R,I),R.return=L,L=R):(s(L,R),R=Cu(I,L.mode,J),R.return=L,L=R),w(L)):s(L,R)}return Be}var Fr=fp(!0),pp=fp(!1),Ys=An(null),Xs=null,Vr=null,Il=null;function Fl(){Il=Vr=Xs=null}function Vl(t){var r=Ys.current;Ne(Ys),t._currentValue=r}function zl(t,r,s){for(;t!==null;){var l=t.alternate;if((t.childLanes&r)!==r?(t.childLanes|=r,l!==null&&(l.childLanes|=r)):l!==null&&(l.childLanes&r)!==r&&(l.childLanes|=r),t===s)break;t=t.return}}function zr(t,r){Xs=t,Il=Vr=null,t=t.dependencies,t!==null&&t.firstContext!==null&&((t.lanes&r)!==0&&(dt=!0),t.firstContext=null)}function Ct(t){var r=t._currentValue;if(Il!==t)if(t={context:t,memoizedValue:r,next:null},Vr===null){if(Xs===null)throw Error(i(308));Vr=t,Xs.dependencies={lanes:0,firstContext:t}}else Vr=Vr.next=t;return r}var sr=null;function Bl(t){sr===null?sr=[t]:sr.push(t)}function hp(t,r,s,l){var d=r.interleaved;return d===null?(s.next=s,Bl(r)):(s.next=d.next,d.next=s),r.interleaved=s,un(t,l)}function un(t,r){t.lanes|=r;var s=t.alternate;for(s!==null&&(s.lanes|=r),s=t,t=t.return;t!==null;)t.childLanes|=r,s=t.alternate,s!==null&&(s.childLanes|=r),s=t,t=t.return;return s.tag===3?s.stateNode:null}var On=!1;function Ul(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function mp(t,r){t=t.updateQueue,r.updateQueue===t&&(r.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function cn(t,r){return{eventTime:t,lane:r,tag:0,payload:null,callback:null,next:null}}function Mn(t,r,s){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Pe&2)!==0){var d=l.pending;return d===null?r.next=r:(r.next=d.next,d.next=r),l.pending=r,un(t,s)}return d=l.interleaved,d===null?(r.next=r,Bl(l)):(r.next=d.next,d.next=r),l.interleaved=r,un(t,s)}function Zs(t,r,s){if(r=r.updateQueue,r!==null&&(r=r.shared,(s&4194240)!==0)){var l=r.lanes;l&=t.pendingLanes,s|=l,r.lanes=s,nl(t,s)}}function gp(t,r){var s=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,s===l)){var d=null,m=null;if(s=s.firstBaseUpdate,s!==null){do{var w={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};m===null?d=m=w:m=m.next=w,s=s.next}while(s!==null);m===null?d=m=r:m=m.next=r}else d=m=r;s={baseState:l.baseState,firstBaseUpdate:d,lastBaseUpdate:m,shared:l.shared,effects:l.effects},t.updateQueue=s;return}t=s.lastBaseUpdate,t===null?s.firstBaseUpdate=r:t.next=r,s.lastBaseUpdate=r}function Js(t,r,s,l){var d=t.updateQueue;On=!1;var m=d.firstBaseUpdate,w=d.lastBaseUpdate,T=d.shared.pending;if(T!==null){d.shared.pending=null;var A=T,z=A.next;A.next=null,w===null?m=z:w.next=z,w=A;var Q=t.alternate;Q!==null&&(Q=Q.updateQueue,T=Q.lastBaseUpdate,T!==w&&(T===null?Q.firstBaseUpdate=z:T.next=z,Q.lastBaseUpdate=A))}if(m!==null){var G=d.baseState;w=0,Q=z=A=null,T=m;do{var K=T.lane,ne=T.eventTime;if((l&K)===K){Q!==null&&(Q=Q.next={eventTime:ne,lane:0,tag:T.tag,payload:T.payload,callback:T.callback,next:null});e:{var ie=t,oe=T;switch(K=r,ne=s,oe.tag){case 1:if(ie=oe.payload,typeof ie=="function"){G=ie.call(ne,G,K);break e}G=ie;break e;case 3:ie.flags=ie.flags&-65537|128;case 0:if(ie=oe.payload,K=typeof ie=="function"?ie.call(ne,G,K):ie,K==null)break e;G=Z({},G,K);break e;case 2:On=!0}}T.callback!==null&&T.lane!==0&&(t.flags|=64,K=d.effects,K===null?d.effects=[T]:K.push(T))}else ne={eventTime:ne,lane:K,tag:T.tag,payload:T.payload,callback:T.callback,next:null},Q===null?(z=Q=ne,A=G):Q=Q.next=ne,w|=K;if(T=T.next,T===null){if(T=d.shared.pending,T===null)break;K=T,T=K.next,K.next=null,d.lastBaseUpdate=K,d.shared.pending=null}}while(!0);if(Q===null&&(A=G),d.baseState=A,d.firstBaseUpdate=z,d.lastBaseUpdate=Q,r=d.shared.interleaved,r!==null){d=r;do w|=d.lane,d=d.next;while(d!==r)}else m===null&&(d.shared.lanes=0);lr|=w,t.lanes=w,t.memoizedState=G}}function vp(t,r,s){if(t=r.effects,r.effects=null,t!==null)for(r=0;r<t.length;r++){var l=t[r],d=l.callback;if(d!==null){if(l.callback=null,l=s,typeof d!="function")throw Error(i(191,d));d.call(l)}}}var Li={},Kt=An(Li),Ii=An(Li),Fi=An(Li);function or(t){if(t===Li)throw Error(i(174));return t}function Hl(t,r){switch(Ce(Fi,r),Ce(Ii,t),Ce(Kt,Li),t=r.nodeType,t){case 9:case 11:r=(r=r.documentElement)?r.namespaceURI:Wa(null,"");break;default:t=t===8?r.parentNode:r,r=t.namespaceURI||null,t=t.tagName,r=Wa(r,t)}Ne(Kt),Ce(Kt,r)}function Br(){Ne(Kt),Ne(Ii),Ne(Fi)}function yp(t){or(Fi.current);var r=or(Kt.current),s=Wa(r,t.type);r!==s&&(Ce(Ii,t),Ce(Kt,s))}function Wl(t){Ii.current===t&&(Ne(Kt),Ne(Ii))}var Me=An(0);function eo(t){for(var r=t;r!==null;){if(r.tag===13){var s=r.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||s.data==="$!"))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var $l=[];function ql(){for(var t=0;t<$l.length;t++)$l[t]._workInProgressVersionPrimary=null;$l.length=0}var to=O.ReactCurrentDispatcher,Kl=O.ReactCurrentBatchConfig,ar=0,De=null,We=null,Ke=null,no=!1,Vi=!1,zi=0,Ow=0;function et(){throw Error(i(321))}function Ql(t,r){if(r===null)return!1;for(var s=0;s<r.length&&s<t.length;s++)if(!Mt(t[s],r[s]))return!1;return!0}function Gl(t,r,s,l,d,m){if(ar=m,De=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,to.current=t===null||t.memoizedState===null?Iw:Fw,t=s(l,d),Vi){m=0;do{if(Vi=!1,zi=0,25<=m)throw Error(i(301));m+=1,Ke=We=null,r.updateQueue=null,to.current=Vw,t=s(l,d)}while(Vi)}if(to.current=so,r=We!==null&&We.next!==null,ar=0,Ke=We=De=null,no=!1,r)throw Error(i(300));return t}function Yl(){var t=zi!==0;return zi=0,t}function Qt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ke===null?De.memoizedState=Ke=t:Ke=Ke.next=t,Ke}function jt(){if(We===null){var t=De.alternate;t=t!==null?t.memoizedState:null}else t=We.next;var r=Ke===null?De.memoizedState:Ke.next;if(r!==null)Ke=r,We=t;else{if(t===null)throw Error(i(310));We=t,t={memoizedState:We.memoizedState,baseState:We.baseState,baseQueue:We.baseQueue,queue:We.queue,next:null},Ke===null?De.memoizedState=Ke=t:Ke=Ke.next=t}return Ke}function Bi(t,r){return typeof r=="function"?r(t):r}function Xl(t){var r=jt(),s=r.queue;if(s===null)throw Error(i(311));s.lastRenderedReducer=t;var l=We,d=l.baseQueue,m=s.pending;if(m!==null){if(d!==null){var w=d.next;d.next=m.next,m.next=w}l.baseQueue=d=m,s.pending=null}if(d!==null){m=d.next,l=l.baseState;var T=w=null,A=null,z=m;do{var Q=z.lane;if((ar&Q)===Q)A!==null&&(A=A.next={lane:0,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),l=z.hasEagerState?z.eagerState:t(l,z.action);else{var G={lane:Q,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null};A===null?(T=A=G,w=l):A=A.next=G,De.lanes|=Q,lr|=Q}z=z.next}while(z!==null&&z!==m);A===null?w=l:A.next=T,Mt(l,r.memoizedState)||(dt=!0),r.memoizedState=l,r.baseState=w,r.baseQueue=A,s.lastRenderedState=l}if(t=s.interleaved,t!==null){d=t;do m=d.lane,De.lanes|=m,lr|=m,d=d.next;while(d!==t)}else d===null&&(s.lanes=0);return[r.memoizedState,s.dispatch]}function Zl(t){var r=jt(),s=r.queue;if(s===null)throw Error(i(311));s.lastRenderedReducer=t;var l=s.dispatch,d=s.pending,m=r.memoizedState;if(d!==null){s.pending=null;var w=d=d.next;do m=t(m,w.action),w=w.next;while(w!==d);Mt(m,r.memoizedState)||(dt=!0),r.memoizedState=m,r.baseQueue===null&&(r.baseState=m),s.lastRenderedState=m}return[m,l]}function xp(){}function wp(t,r){var s=De,l=jt(),d=r(),m=!Mt(l.memoizedState,d);if(m&&(l.memoizedState=d,dt=!0),l=l.queue,Jl(bp.bind(null,s,l,t),[t]),l.getSnapshot!==r||m||Ke!==null&&Ke.memoizedState.tag&1){if(s.flags|=2048,Ui(9,Pp.bind(null,s,l,d,r),void 0,null),Qe===null)throw Error(i(349));(ar&30)!==0||Sp(s,r,d)}return d}function Sp(t,r,s){t.flags|=16384,t={getSnapshot:r,value:s},r=De.updateQueue,r===null?(r={lastEffect:null,stores:null},De.updateQueue=r,r.stores=[t]):(s=r.stores,s===null?r.stores=[t]:s.push(t))}function Pp(t,r,s,l){r.value=s,r.getSnapshot=l,kp(r)&&Ep(t)}function bp(t,r,s){return s(function(){kp(r)&&Ep(t)})}function kp(t){var r=t.getSnapshot;t=t.value;try{var s=r();return!Mt(t,s)}catch{return!0}}function Ep(t){var r=un(t,1);r!==null&&Vt(r,t,1,-1)}function Tp(t){var r=Qt();return typeof t=="function"&&(t=t()),r.memoizedState=r.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Bi,lastRenderedState:t},r.queue=t,t=t.dispatch=Lw.bind(null,De,t),[r.memoizedState,t]}function Ui(t,r,s,l){return t={tag:t,create:r,destroy:s,deps:l,next:null},r=De.updateQueue,r===null?(r={lastEffect:null,stores:null},De.updateQueue=r,r.lastEffect=t.next=t):(s=r.lastEffect,s===null?r.lastEffect=t.next=t:(l=s.next,s.next=t,t.next=l,r.lastEffect=t)),t}function Cp(){return jt().memoizedState}function ro(t,r,s,l){var d=Qt();De.flags|=t,d.memoizedState=Ui(1|r,s,void 0,l===void 0?null:l)}function io(t,r,s,l){var d=jt();l=l===void 0?null:l;var m=void 0;if(We!==null){var w=We.memoizedState;if(m=w.destroy,l!==null&&Ql(l,w.deps)){d.memoizedState=Ui(r,s,m,l);return}}De.flags|=t,d.memoizedState=Ui(1|r,s,m,l)}function jp(t,r){return ro(8390656,8,t,r)}function Jl(t,r){return io(2048,8,t,r)}function Np(t,r){return io(4,2,t,r)}function Ap(t,r){return io(4,4,t,r)}function Rp(t,r){if(typeof r=="function")return t=t(),r(t),function(){r(null)};if(r!=null)return t=t(),r.current=t,function(){r.current=null}}function _p(t,r,s){return s=s!=null?s.concat([t]):null,io(4,4,Rp.bind(null,r,t),s)}function eu(){}function Op(t,r){var s=jt();r=r===void 0?null:r;var l=s.memoizedState;return l!==null&&r!==null&&Ql(r,l[1])?l[0]:(s.memoizedState=[t,r],t)}function Mp(t,r){var s=jt();r=r===void 0?null:r;var l=s.memoizedState;return l!==null&&r!==null&&Ql(r,l[1])?l[0]:(t=t(),s.memoizedState=[t,r],t)}function Dp(t,r,s){return(ar&21)===0?(t.baseState&&(t.baseState=!1,dt=!0),t.memoizedState=s):(Mt(s,r)||(s=df(),De.lanes|=s,lr|=s,t.baseState=!0),r)}function Mw(t,r){var s=Ee;Ee=s!==0&&4>s?s:4,t(!0);var l=Kl.transition;Kl.transition={};try{t(!1),r()}finally{Ee=s,Kl.transition=l}}function Lp(){return jt().memoizedState}function Dw(t,r,s){var l=Fn(t);if(s={lane:l,action:s,hasEagerState:!1,eagerState:null,next:null},Ip(t))Fp(r,s);else if(s=hp(t,r,s,l),s!==null){var d=at();Vt(s,t,l,d),Vp(s,r,l)}}function Lw(t,r,s){var l=Fn(t),d={lane:l,action:s,hasEagerState:!1,eagerState:null,next:null};if(Ip(t))Fp(r,d);else{var m=t.alternate;if(t.lanes===0&&(m===null||m.lanes===0)&&(m=r.lastRenderedReducer,m!==null))try{var w=r.lastRenderedState,T=m(w,s);if(d.hasEagerState=!0,d.eagerState=T,Mt(T,w)){var A=r.interleaved;A===null?(d.next=d,Bl(r)):(d.next=A.next,A.next=d),r.interleaved=d;return}}catch{}s=hp(t,r,d,l),s!==null&&(d=at(),Vt(s,t,l,d),Vp(s,r,l))}}function Ip(t){var r=t.alternate;return t===De||r!==null&&r===De}function Fp(t,r){Vi=no=!0;var s=t.pending;s===null?r.next=r:(r.next=s.next,s.next=r),t.pending=r}function Vp(t,r,s){if((s&4194240)!==0){var l=r.lanes;l&=t.pendingLanes,s|=l,r.lanes=s,nl(t,s)}}var so={readContext:Ct,useCallback:et,useContext:et,useEffect:et,useImperativeHandle:et,useInsertionEffect:et,useLayoutEffect:et,useMemo:et,useReducer:et,useRef:et,useState:et,useDebugValue:et,useDeferredValue:et,useTransition:et,useMutableSource:et,useSyncExternalStore:et,useId:et,unstable_isNewReconciler:!1},Iw={readContext:Ct,useCallback:function(t,r){return Qt().memoizedState=[t,r===void 0?null:r],t},useContext:Ct,useEffect:jp,useImperativeHandle:function(t,r,s){return s=s!=null?s.concat([t]):null,ro(4194308,4,Rp.bind(null,r,t),s)},useLayoutEffect:function(t,r){return ro(4194308,4,t,r)},useInsertionEffect:function(t,r){return ro(4,2,t,r)},useMemo:function(t,r){var s=Qt();return r=r===void 0?null:r,t=t(),s.memoizedState=[t,r],t},useReducer:function(t,r,s){var l=Qt();return r=s!==void 0?s(r):r,l.memoizedState=l.baseState=r,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:r},l.queue=t,t=t.dispatch=Dw.bind(null,De,t),[l.memoizedState,t]},useRef:function(t){var r=Qt();return t={current:t},r.memoizedState=t},useState:Tp,useDebugValue:eu,useDeferredValue:function(t){return Qt().memoizedState=t},useTransition:function(){var t=Tp(!1),r=t[0];return t=Mw.bind(null,t[1]),Qt().memoizedState=t,[r,t]},useMutableSource:function(){},useSyncExternalStore:function(t,r,s){var l=De,d=Qt();if(Re){if(s===void 0)throw Error(i(407));s=s()}else{if(s=r(),Qe===null)throw Error(i(349));(ar&30)!==0||Sp(l,r,s)}d.memoizedState=s;var m={value:s,getSnapshot:r};return d.queue=m,jp(bp.bind(null,l,m,t),[t]),l.flags|=2048,Ui(9,Pp.bind(null,l,m,s,r),void 0,null),s},useId:function(){var t=Qt(),r=Qe.identifierPrefix;if(Re){var s=ln,l=an;s=(l&~(1<<32-Ot(l)-1)).toString(32)+s,r=":"+r+"R"+s,s=zi++,0<s&&(r+="H"+s.toString(32)),r+=":"}else s=Ow++,r=":"+r+"r"+s.toString(32)+":";return t.memoizedState=r},unstable_isNewReconciler:!1},Fw={readContext:Ct,useCallback:Op,useContext:Ct,useEffect:Jl,useImperativeHandle:_p,useInsertionEffect:Np,useLayoutEffect:Ap,useMemo:Mp,useReducer:Xl,useRef:Cp,useState:function(){return Xl(Bi)},useDebugValue:eu,useDeferredValue:function(t){var r=jt();return Dp(r,We.memoizedState,t)},useTransition:function(){var t=Xl(Bi)[0],r=jt().memoizedState;return[t,r]},useMutableSource:xp,useSyncExternalStore:wp,useId:Lp,unstable_isNewReconciler:!1},Vw={readContext:Ct,useCallback:Op,useContext:Ct,useEffect:Jl,useImperativeHandle:_p,useInsertionEffect:Np,useLayoutEffect:Ap,useMemo:Mp,useReducer:Zl,useRef:Cp,useState:function(){return Zl(Bi)},useDebugValue:eu,useDeferredValue:function(t){var r=jt();return We===null?r.memoizedState=t:Dp(r,We.memoizedState,t)},useTransition:function(){var t=Zl(Bi)[0],r=jt().memoizedState;return[t,r]},useMutableSource:xp,useSyncExternalStore:wp,useId:Lp,unstable_isNewReconciler:!1};function Lt(t,r){if(t&&t.defaultProps){r=Z({},r),t=t.defaultProps;for(var s in t)r[s]===void 0&&(r[s]=t[s]);return r}return r}function tu(t,r,s,l){r=t.memoizedState,s=s(l,r),s=s==null?r:Z({},r,s),t.memoizedState=s,t.lanes===0&&(t.updateQueue.baseState=s)}var oo={isMounted:function(t){return(t=t._reactInternals)?er(t)===t:!1},enqueueSetState:function(t,r,s){t=t._reactInternals;var l=at(),d=Fn(t),m=cn(l,d);m.payload=r,s!=null&&(m.callback=s),r=Mn(t,m,d),r!==null&&(Vt(r,t,d,l),Zs(r,t,d))},enqueueReplaceState:function(t,r,s){t=t._reactInternals;var l=at(),d=Fn(t),m=cn(l,d);m.tag=1,m.payload=r,s!=null&&(m.callback=s),r=Mn(t,m,d),r!==null&&(Vt(r,t,d,l),Zs(r,t,d))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var s=at(),l=Fn(t),d=cn(s,l);d.tag=2,r!=null&&(d.callback=r),r=Mn(t,d,l),r!==null&&(Vt(r,t,l,s),Zs(r,t,l))}};function zp(t,r,s,l,d,m,w){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,m,w):r.prototype&&r.prototype.isPureReactComponent?!ji(s,l)||!ji(d,m):!0}function Bp(t,r,s){var l=!1,d=Rn,m=r.contextType;return typeof m=="object"&&m!==null?m=Ct(m):(d=ct(r)?nr:Je.current,l=r.contextTypes,m=(l=l!=null)?Mr(t,d):Rn),r=new r(s,m),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=oo,t.stateNode=r,r._reactInternals=t,l&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=d,t.__reactInternalMemoizedMaskedChildContext=m),r}function Up(t,r,s,l){t=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(s,l),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(s,l),r.state!==t&&oo.enqueueReplaceState(r,r.state,null)}function nu(t,r,s,l){var d=t.stateNode;d.props=s,d.state=t.memoizedState,d.refs={},Ul(t);var m=r.contextType;typeof m=="object"&&m!==null?d.context=Ct(m):(m=ct(r)?nr:Je.current,d.context=Mr(t,m)),d.state=t.memoizedState,m=r.getDerivedStateFromProps,typeof m=="function"&&(tu(t,r,m,s),d.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(r=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),r!==d.state&&oo.enqueueReplaceState(d,d.state,null),Js(t,s,d,l),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308)}function Ur(t,r){try{var s="",l=r;do s+=xe(l),l=l.return;while(l);var d=s}catch(m){d=`
Error generating stack: `+m.message+`
`+m.stack}return{value:t,source:r,stack:d,digest:null}}function ru(t,r,s){return{value:t,source:null,stack:s??null,digest:r??null}}function iu(t,r){try{console.error(r.value)}catch(s){setTimeout(function(){throw s})}}var zw=typeof WeakMap=="function"?WeakMap:Map;function Hp(t,r,s){s=cn(-1,s),s.tag=3,s.payload={element:null};var l=r.value;return s.callback=function(){ho||(ho=!0,xu=l),iu(t,r)},s}function Wp(t,r,s){s=cn(-1,s),s.tag=3;var l=t.type.getDerivedStateFromError;if(typeof l=="function"){var d=r.value;s.payload=function(){return l(d)},s.callback=function(){iu(t,r)}}var m=t.stateNode;return m!==null&&typeof m.componentDidCatch=="function"&&(s.callback=function(){iu(t,r),typeof l!="function"&&(Ln===null?Ln=new Set([this]):Ln.add(this));var w=r.stack;this.componentDidCatch(r.value,{componentStack:w!==null?w:""})}),s}function $p(t,r,s){var l=t.pingCache;if(l===null){l=t.pingCache=new zw;var d=new Set;l.set(r,d)}else d=l.get(r),d===void 0&&(d=new Set,l.set(r,d));d.has(s)||(d.add(s),t=e1.bind(null,t,r,s),r.then(t,t))}function qp(t){do{var r;if((r=t.tag===13)&&(r=t.memoizedState,r=r!==null?r.dehydrated!==null:!0),r)return t;t=t.return}while(t!==null);return null}function Kp(t,r,s,l,d){return(t.mode&1)===0?(t===r?t.flags|=65536:(t.flags|=128,s.flags|=131072,s.flags&=-52805,s.tag===1&&(s.alternate===null?s.tag=17:(r=cn(-1,1),r.tag=2,Mn(s,r,1))),s.lanes|=1),t):(t.flags|=65536,t.lanes=d,t)}var Bw=O.ReactCurrentOwner,dt=!1;function ot(t,r,s,l){r.child=t===null?pp(r,null,s,l):Fr(r,t.child,s,l)}function Qp(t,r,s,l,d){s=s.render;var m=r.ref;return zr(r,d),l=Gl(t,r,s,l,m,d),s=Yl(),t!==null&&!dt?(r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~d,dn(t,r,d)):(Re&&s&&_l(r),r.flags|=1,ot(t,r,l,d),r.child)}function Gp(t,r,s,l,d){if(t===null){var m=s.type;return typeof m=="function"&&!Tu(m)&&m.defaultProps===void 0&&s.compare===null&&s.defaultProps===void 0?(r.tag=15,r.type=m,Yp(t,r,m,l,d)):(t=wo(s.type,null,l,r,r.mode,d),t.ref=r.ref,t.return=r,r.child=t)}if(m=t.child,(t.lanes&d)===0){var w=m.memoizedProps;if(s=s.compare,s=s!==null?s:ji,s(w,l)&&t.ref===r.ref)return dn(t,r,d)}return r.flags|=1,t=zn(m,l),t.ref=r.ref,t.return=r,r.child=t}function Yp(t,r,s,l,d){if(t!==null){var m=t.memoizedProps;if(ji(m,l)&&t.ref===r.ref)if(dt=!1,r.pendingProps=l=m,(t.lanes&d)!==0)(t.flags&131072)!==0&&(dt=!0);else return r.lanes=t.lanes,dn(t,r,d)}return su(t,r,s,l,d)}function Xp(t,r,s){var l=r.pendingProps,d=l.children,m=t!==null?t.memoizedState:null;if(l.mode==="hidden")if((r.mode&1)===0)r.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ce(Wr,wt),wt|=s;else{if((s&1073741824)===0)return t=m!==null?m.baseLanes|s:s,r.lanes=r.childLanes=1073741824,r.memoizedState={baseLanes:t,cachePool:null,transitions:null},r.updateQueue=null,Ce(Wr,wt),wt|=t,null;r.memoizedState={baseLanes:0,cachePool:null,transitions:null},l=m!==null?m.baseLanes:s,Ce(Wr,wt),wt|=l}else m!==null?(l=m.baseLanes|s,r.memoizedState=null):l=s,Ce(Wr,wt),wt|=l;return ot(t,r,d,s),r.child}function Zp(t,r){var s=r.ref;(t===null&&s!==null||t!==null&&t.ref!==s)&&(r.flags|=512,r.flags|=2097152)}function su(t,r,s,l,d){var m=ct(s)?nr:Je.current;return m=Mr(r,m),zr(r,d),s=Gl(t,r,s,l,m,d),l=Yl(),t!==null&&!dt?(r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~d,dn(t,r,d)):(Re&&l&&_l(r),r.flags|=1,ot(t,r,s,d),r.child)}function Jp(t,r,s,l,d){if(ct(s)){var m=!0;Ws(r)}else m=!1;if(zr(r,d),r.stateNode===null)lo(t,r),Bp(r,s,l),nu(r,s,l,d),l=!0;else if(t===null){var w=r.stateNode,T=r.memoizedProps;w.props=T;var A=w.context,z=s.contextType;typeof z=="object"&&z!==null?z=Ct(z):(z=ct(s)?nr:Je.current,z=Mr(r,z));var Q=s.getDerivedStateFromProps,G=typeof Q=="function"||typeof w.getSnapshotBeforeUpdate=="function";G||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(T!==l||A!==z)&&Up(r,w,l,z),On=!1;var K=r.memoizedState;w.state=K,Js(r,l,w,d),A=r.memoizedState,T!==l||K!==A||ut.current||On?(typeof Q=="function"&&(tu(r,s,Q,l),A=r.memoizedState),(T=On||zp(r,s,T,l,K,A,z))?(G||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount()),typeof w.componentDidMount=="function"&&(r.flags|=4194308)):(typeof w.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=l,r.memoizedState=A),w.props=l,w.state=A,w.context=z,l=T):(typeof w.componentDidMount=="function"&&(r.flags|=4194308),l=!1)}else{w=r.stateNode,mp(t,r),T=r.memoizedProps,z=r.type===r.elementType?T:Lt(r.type,T),w.props=z,G=r.pendingProps,K=w.context,A=s.contextType,typeof A=="object"&&A!==null?A=Ct(A):(A=ct(s)?nr:Je.current,A=Mr(r,A));var ne=s.getDerivedStateFromProps;(Q=typeof ne=="function"||typeof w.getSnapshotBeforeUpdate=="function")||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(T!==G||K!==A)&&Up(r,w,l,A),On=!1,K=r.memoizedState,w.state=K,Js(r,l,w,d);var ie=r.memoizedState;T!==G||K!==ie||ut.current||On?(typeof ne=="function"&&(tu(r,s,ne,l),ie=r.memoizedState),(z=On||zp(r,s,z,l,K,ie,A)||!1)?(Q||typeof w.UNSAFE_componentWillUpdate!="function"&&typeof w.componentWillUpdate!="function"||(typeof w.componentWillUpdate=="function"&&w.componentWillUpdate(l,ie,A),typeof w.UNSAFE_componentWillUpdate=="function"&&w.UNSAFE_componentWillUpdate(l,ie,A)),typeof w.componentDidUpdate=="function"&&(r.flags|=4),typeof w.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof w.componentDidUpdate!="function"||T===t.memoizedProps&&K===t.memoizedState||(r.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||T===t.memoizedProps&&K===t.memoizedState||(r.flags|=1024),r.memoizedProps=l,r.memoizedState=ie),w.props=l,w.state=ie,w.context=A,l=z):(typeof w.componentDidUpdate!="function"||T===t.memoizedProps&&K===t.memoizedState||(r.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||T===t.memoizedProps&&K===t.memoizedState||(r.flags|=1024),l=!1)}return ou(t,r,s,l,m,d)}function ou(t,r,s,l,d,m){Zp(t,r);var w=(r.flags&128)!==0;if(!l&&!w)return d&&ip(r,s,!1),dn(t,r,m);l=r.stateNode,Bw.current=r;var T=w&&typeof s.getDerivedStateFromError!="function"?null:l.render();return r.flags|=1,t!==null&&w?(r.child=Fr(r,t.child,null,m),r.child=Fr(r,null,T,m)):ot(t,r,T,m),r.memoizedState=l.state,d&&ip(r,s,!0),r.child}function eh(t){var r=t.stateNode;r.pendingContext?np(t,r.pendingContext,r.pendingContext!==r.context):r.context&&np(t,r.context,!1),Hl(t,r.containerInfo)}function th(t,r,s,l,d){return Ir(),Ll(d),r.flags|=256,ot(t,r,s,l),r.child}var au={dehydrated:null,treeContext:null,retryLane:0};function lu(t){return{baseLanes:t,cachePool:null,transitions:null}}function nh(t,r,s){var l=r.pendingProps,d=Me.current,m=!1,w=(r.flags&128)!==0,T;if((T=w)||(T=t!==null&&t.memoizedState===null?!1:(d&2)!==0),T?(m=!0,r.flags&=-129):(t===null||t.memoizedState!==null)&&(d|=1),Ce(Me,d&1),t===null)return Dl(r),t=r.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?((r.mode&1)===0?r.lanes=1:t.data==="$!"?r.lanes=8:r.lanes=1073741824,null):(w=l.children,t=l.fallback,m?(l=r.mode,m=r.child,w={mode:"hidden",children:w},(l&1)===0&&m!==null?(m.childLanes=0,m.pendingProps=w):m=So(w,l,0,null),t=fr(t,l,s,null),m.return=r,t.return=r,m.sibling=t,r.child=m,r.child.memoizedState=lu(s),r.memoizedState=au,t):uu(r,w));if(d=t.memoizedState,d!==null&&(T=d.dehydrated,T!==null))return Uw(t,r,w,l,T,d,s);if(m){m=l.fallback,w=r.mode,d=t.child,T=d.sibling;var A={mode:"hidden",children:l.children};return(w&1)===0&&r.child!==d?(l=r.child,l.childLanes=0,l.pendingProps=A,r.deletions=null):(l=zn(d,A),l.subtreeFlags=d.subtreeFlags&14680064),T!==null?m=zn(T,m):(m=fr(m,w,s,null),m.flags|=2),m.return=r,l.return=r,l.sibling=m,r.child=l,l=m,m=r.child,w=t.child.memoizedState,w=w===null?lu(s):{baseLanes:w.baseLanes|s,cachePool:null,transitions:w.transitions},m.memoizedState=w,m.childLanes=t.childLanes&~s,r.memoizedState=au,l}return m=t.child,t=m.sibling,l=zn(m,{mode:"visible",children:l.children}),(r.mode&1)===0&&(l.lanes=s),l.return=r,l.sibling=null,t!==null&&(s=r.deletions,s===null?(r.deletions=[t],r.flags|=16):s.push(t)),r.child=l,r.memoizedState=null,l}function uu(t,r){return r=So({mode:"visible",children:r},t.mode,0,null),r.return=t,t.child=r}function ao(t,r,s,l){return l!==null&&Ll(l),Fr(r,t.child,null,s),t=uu(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function Uw(t,r,s,l,d,m,w){if(s)return r.flags&256?(r.flags&=-257,l=ru(Error(i(422))),ao(t,r,w,l)):r.memoizedState!==null?(r.child=t.child,r.flags|=128,null):(m=l.fallback,d=r.mode,l=So({mode:"visible",children:l.children},d,0,null),m=fr(m,d,w,null),m.flags|=2,l.return=r,m.return=r,l.sibling=m,r.child=l,(r.mode&1)!==0&&Fr(r,t.child,null,w),r.child.memoizedState=lu(w),r.memoizedState=au,m);if((r.mode&1)===0)return ao(t,r,w,null);if(d.data==="$!"){if(l=d.nextSibling&&d.nextSibling.dataset,l)var T=l.dgst;return l=T,m=Error(i(419)),l=ru(m,l,void 0),ao(t,r,w,l)}if(T=(w&t.childLanes)!==0,dt||T){if(l=Qe,l!==null){switch(w&-w){case 4:d=2;break;case 16:d=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:d=32;break;case 536870912:d=268435456;break;default:d=0}d=(d&(l.suspendedLanes|w))!==0?0:d,d!==0&&d!==m.retryLane&&(m.retryLane=d,un(t,d),Vt(l,t,d,-1))}return Eu(),l=ru(Error(i(421))),ao(t,r,w,l)}return d.data==="$?"?(r.flags|=128,r.child=t.child,r=t1.bind(null,t),d._reactRetry=r,null):(t=m.treeContext,xt=Nn(d.nextSibling),yt=r,Re=!0,Dt=null,t!==null&&(Et[Tt++]=an,Et[Tt++]=ln,Et[Tt++]=rr,an=t.id,ln=t.overflow,rr=r),r=uu(r,l.children),r.flags|=4096,r)}function rh(t,r,s){t.lanes|=r;var l=t.alternate;l!==null&&(l.lanes|=r),zl(t.return,r,s)}function cu(t,r,s,l,d){var m=t.memoizedState;m===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:l,tail:s,tailMode:d}:(m.isBackwards=r,m.rendering=null,m.renderingStartTime=0,m.last=l,m.tail=s,m.tailMode=d)}function ih(t,r,s){var l=r.pendingProps,d=l.revealOrder,m=l.tail;if(ot(t,r,l.children,s),l=Me.current,(l&2)!==0)l=l&1|2,r.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&rh(t,s,r);else if(t.tag===19)rh(t,s,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break e;for(;t.sibling===null;){if(t.return===null||t.return===r)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}l&=1}if(Ce(Me,l),(r.mode&1)===0)r.memoizedState=null;else switch(d){case"forwards":for(s=r.child,d=null;s!==null;)t=s.alternate,t!==null&&eo(t)===null&&(d=s),s=s.sibling;s=d,s===null?(d=r.child,r.child=null):(d=s.sibling,s.sibling=null),cu(r,!1,d,s,m);break;case"backwards":for(s=null,d=r.child,r.child=null;d!==null;){if(t=d.alternate,t!==null&&eo(t)===null){r.child=d;break}t=d.sibling,d.sibling=s,s=d,d=t}cu(r,!0,s,null,m);break;case"together":cu(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function lo(t,r){(r.mode&1)===0&&t!==null&&(t.alternate=null,r.alternate=null,r.flags|=2)}function dn(t,r,s){if(t!==null&&(r.dependencies=t.dependencies),lr|=r.lanes,(s&r.childLanes)===0)return null;if(t!==null&&r.child!==t.child)throw Error(i(153));if(r.child!==null){for(t=r.child,s=zn(t,t.pendingProps),r.child=s,s.return=r;t.sibling!==null;)t=t.sibling,s=s.sibling=zn(t,t.pendingProps),s.return=r;s.sibling=null}return r.child}function Hw(t,r,s){switch(r.tag){case 3:eh(r),Ir();break;case 5:yp(r);break;case 1:ct(r.type)&&Ws(r);break;case 4:Hl(r,r.stateNode.containerInfo);break;case 10:var l=r.type._context,d=r.memoizedProps.value;Ce(Ys,l._currentValue),l._currentValue=d;break;case 13:if(l=r.memoizedState,l!==null)return l.dehydrated!==null?(Ce(Me,Me.current&1),r.flags|=128,null):(s&r.child.childLanes)!==0?nh(t,r,s):(Ce(Me,Me.current&1),t=dn(t,r,s),t!==null?t.sibling:null);Ce(Me,Me.current&1);break;case 19:if(l=(s&r.childLanes)!==0,(t.flags&128)!==0){if(l)return ih(t,r,s);r.flags|=128}if(d=r.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),Ce(Me,Me.current),l)break;return null;case 22:case 23:return r.lanes=0,Xp(t,r,s)}return dn(t,r,s)}var sh,du,oh,ah;sh=function(t,r){for(var s=r.child;s!==null;){if(s.tag===5||s.tag===6)t.appendChild(s.stateNode);else if(s.tag!==4&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return;s=s.return}s.sibling.return=s.return,s=s.sibling}},du=function(){},oh=function(t,r,s,l){var d=t.memoizedProps;if(d!==l){t=r.stateNode,or(Kt.current);var m=null;switch(s){case"input":d=za(t,d),l=za(t,l),m=[];break;case"select":d=Z({},d,{value:void 0}),l=Z({},l,{value:void 0}),m=[];break;case"textarea":d=Ha(t,d),l=Ha(t,l),m=[];break;default:typeof d.onClick!="function"&&typeof l.onClick=="function"&&(t.onclick=Bs)}$a(s,l);var w;s=null;for(z in d)if(!l.hasOwnProperty(z)&&d.hasOwnProperty(z)&&d[z]!=null)if(z==="style"){var T=d[z];for(w in T)T.hasOwnProperty(w)&&(s||(s={}),s[w]="")}else z!=="dangerouslySetInnerHTML"&&z!=="children"&&z!=="suppressContentEditableWarning"&&z!=="suppressHydrationWarning"&&z!=="autoFocus"&&(a.hasOwnProperty(z)?m||(m=[]):(m=m||[]).push(z,null));for(z in l){var A=l[z];if(T=d?.[z],l.hasOwnProperty(z)&&A!==T&&(A!=null||T!=null))if(z==="style")if(T){for(w in T)!T.hasOwnProperty(w)||A&&A.hasOwnProperty(w)||(s||(s={}),s[w]="");for(w in A)A.hasOwnProperty(w)&&T[w]!==A[w]&&(s||(s={}),s[w]=A[w])}else s||(m||(m=[]),m.push(z,s)),s=A;else z==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,T=T?T.__html:void 0,A!=null&&T!==A&&(m=m||[]).push(z,A)):z==="children"?typeof A!="string"&&typeof A!="number"||(m=m||[]).push(z,""+A):z!=="suppressContentEditableWarning"&&z!=="suppressHydrationWarning"&&(a.hasOwnProperty(z)?(A!=null&&z==="onScroll"&&je("scroll",t),m||T===A||(m=[])):(m=m||[]).push(z,A))}s&&(m=m||[]).push("style",s);var z=m;(r.updateQueue=z)&&(r.flags|=4)}},ah=function(t,r,s,l){s!==l&&(r.flags|=4)};function Hi(t,r){if(!Re)switch(t.tailMode){case"hidden":r=t.tail;for(var s=null;r!==null;)r.alternate!==null&&(s=r),r=r.sibling;s===null?t.tail=null:s.sibling=null;break;case"collapsed":s=t.tail;for(var l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?r||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function tt(t){var r=t.alternate!==null&&t.alternate.child===t.child,s=0,l=0;if(r)for(var d=t.child;d!==null;)s|=d.lanes|d.childLanes,l|=d.subtreeFlags&14680064,l|=d.flags&14680064,d.return=t,d=d.sibling;else for(d=t.child;d!==null;)s|=d.lanes|d.childLanes,l|=d.subtreeFlags,l|=d.flags,d.return=t,d=d.sibling;return t.subtreeFlags|=l,t.childLanes=s,r}function Ww(t,r,s){var l=r.pendingProps;switch(Ol(r),r.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return tt(r),null;case 1:return ct(r.type)&&Hs(),tt(r),null;case 3:return l=r.stateNode,Br(),Ne(ut),Ne(Je),ql(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(Qs(r)?r.flags|=4:t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,Dt!==null&&(Pu(Dt),Dt=null))),du(t,r),tt(r),null;case 5:Wl(r);var d=or(Fi.current);if(s=r.type,t!==null&&r.stateNode!=null)oh(t,r,s,l,d),t.ref!==r.ref&&(r.flags|=512,r.flags|=2097152);else{if(!l){if(r.stateNode===null)throw Error(i(166));return tt(r),null}if(t=or(Kt.current),Qs(r)){l=r.stateNode,s=r.type;var m=r.memoizedProps;switch(l[qt]=r,l[Oi]=m,t=(r.mode&1)!==0,s){case"dialog":je("cancel",l),je("close",l);break;case"iframe":case"object":case"embed":je("load",l);break;case"video":case"audio":for(d=0;d<Ai.length;d++)je(Ai[d],l);break;case"source":je("error",l);break;case"img":case"image":case"link":je("error",l),je("load",l);break;case"details":je("toggle",l);break;case"input":zd(l,m),je("invalid",l);break;case"select":l._wrapperState={wasMultiple:!!m.multiple},je("invalid",l);break;case"textarea":Hd(l,m),je("invalid",l)}$a(s,m),d=null;for(var w in m)if(m.hasOwnProperty(w)){var T=m[w];w==="children"?typeof T=="string"?l.textContent!==T&&(m.suppressHydrationWarning!==!0&&zs(l.textContent,T,t),d=["children",T]):typeof T=="number"&&l.textContent!==""+T&&(m.suppressHydrationWarning!==!0&&zs(l.textContent,T,t),d=["children",""+T]):a.hasOwnProperty(w)&&T!=null&&w==="onScroll"&&je("scroll",l)}switch(s){case"input":kt(l),Ud(l,m,!0);break;case"textarea":kt(l),$d(l);break;case"select":case"option":break;default:typeof m.onClick=="function"&&(l.onclick=Bs)}l=d,r.updateQueue=l,l!==null&&(r.flags|=4)}else{w=d.nodeType===9?d:d.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=qd(s)),t==="http://www.w3.org/1999/xhtml"?s==="script"?(t=w.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof l.is=="string"?t=w.createElement(s,{is:l.is}):(t=w.createElement(s),s==="select"&&(w=t,l.multiple?w.multiple=!0:l.size&&(w.size=l.size))):t=w.createElementNS(t,s),t[qt]=r,t[Oi]=l,sh(t,r,!1,!1),r.stateNode=t;e:{switch(w=qa(s,l),s){case"dialog":je("cancel",t),je("close",t),d=l;break;case"iframe":case"object":case"embed":je("load",t),d=l;break;case"video":case"audio":for(d=0;d<Ai.length;d++)je(Ai[d],t);d=l;break;case"source":je("error",t),d=l;break;case"img":case"image":case"link":je("error",t),je("load",t),d=l;break;case"details":je("toggle",t),d=l;break;case"input":zd(t,l),d=za(t,l),je("invalid",t);break;case"option":d=l;break;case"select":t._wrapperState={wasMultiple:!!l.multiple},d=Z({},l,{value:void 0}),je("invalid",t);break;case"textarea":Hd(t,l),d=Ha(t,l),je("invalid",t);break;default:d=l}$a(s,d),T=d;for(m in T)if(T.hasOwnProperty(m)){var A=T[m];m==="style"?Gd(t,A):m==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,A!=null&&Kd(t,A)):m==="children"?typeof A=="string"?(s!=="textarea"||A!=="")&&di(t,A):typeof A=="number"&&di(t,""+A):m!=="suppressContentEditableWarning"&&m!=="suppressHydrationWarning"&&m!=="autoFocus"&&(a.hasOwnProperty(m)?A!=null&&m==="onScroll"&&je("scroll",t):A!=null&&N(t,m,A,w))}switch(s){case"input":kt(t),Ud(t,l,!1);break;case"textarea":kt(t),$d(t);break;case"option":l.value!=null&&t.setAttribute("value",""+ue(l.value));break;case"select":t.multiple=!!l.multiple,m=l.value,m!=null?Pr(t,!!l.multiple,m,!1):l.defaultValue!=null&&Pr(t,!!l.multiple,l.defaultValue,!0);break;default:typeof d.onClick=="function"&&(t.onclick=Bs)}switch(s){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}}l&&(r.flags|=4)}r.ref!==null&&(r.flags|=512,r.flags|=2097152)}return tt(r),null;case 6:if(t&&r.stateNode!=null)ah(t,r,t.memoizedProps,l);else{if(typeof l!="string"&&r.stateNode===null)throw Error(i(166));if(s=or(Fi.current),or(Kt.current),Qs(r)){if(l=r.stateNode,s=r.memoizedProps,l[qt]=r,(m=l.nodeValue!==s)&&(t=yt,t!==null))switch(t.tag){case 3:zs(l.nodeValue,s,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&zs(l.nodeValue,s,(t.mode&1)!==0)}m&&(r.flags|=4)}else l=(s.nodeType===9?s:s.ownerDocument).createTextNode(l),l[qt]=r,r.stateNode=l}return tt(r),null;case 13:if(Ne(Me),l=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Re&&xt!==null&&(r.mode&1)!==0&&(r.flags&128)===0)cp(),Ir(),r.flags|=98560,m=!1;else if(m=Qs(r),l!==null&&l.dehydrated!==null){if(t===null){if(!m)throw Error(i(318));if(m=r.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(i(317));m[qt]=r}else Ir(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;tt(r),m=!1}else Dt!==null&&(Pu(Dt),Dt=null),m=!0;if(!m)return r.flags&65536?r:null}return(r.flags&128)!==0?(r.lanes=s,r):(l=l!==null,l!==(t!==null&&t.memoizedState!==null)&&l&&(r.child.flags|=8192,(r.mode&1)!==0&&(t===null||(Me.current&1)!==0?$e===0&&($e=3):Eu())),r.updateQueue!==null&&(r.flags|=4),tt(r),null);case 4:return Br(),du(t,r),t===null&&Ri(r.stateNode.containerInfo),tt(r),null;case 10:return Vl(r.type._context),tt(r),null;case 17:return ct(r.type)&&Hs(),tt(r),null;case 19:if(Ne(Me),m=r.memoizedState,m===null)return tt(r),null;if(l=(r.flags&128)!==0,w=m.rendering,w===null)if(l)Hi(m,!1);else{if($e!==0||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(w=eo(t),w!==null){for(r.flags|=128,Hi(m,!1),l=w.updateQueue,l!==null&&(r.updateQueue=l,r.flags|=4),r.subtreeFlags=0,l=s,s=r.child;s!==null;)m=s,t=l,m.flags&=14680066,w=m.alternate,w===null?(m.childLanes=0,m.lanes=t,m.child=null,m.subtreeFlags=0,m.memoizedProps=null,m.memoizedState=null,m.updateQueue=null,m.dependencies=null,m.stateNode=null):(m.childLanes=w.childLanes,m.lanes=w.lanes,m.child=w.child,m.subtreeFlags=0,m.deletions=null,m.memoizedProps=w.memoizedProps,m.memoizedState=w.memoizedState,m.updateQueue=w.updateQueue,m.type=w.type,t=w.dependencies,m.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),s=s.sibling;return Ce(Me,Me.current&1|2),r.child}t=t.sibling}m.tail!==null&&ze()>$r&&(r.flags|=128,l=!0,Hi(m,!1),r.lanes=4194304)}else{if(!l)if(t=eo(w),t!==null){if(r.flags|=128,l=!0,s=t.updateQueue,s!==null&&(r.updateQueue=s,r.flags|=4),Hi(m,!0),m.tail===null&&m.tailMode==="hidden"&&!w.alternate&&!Re)return tt(r),null}else 2*ze()-m.renderingStartTime>$r&&s!==1073741824&&(r.flags|=128,l=!0,Hi(m,!1),r.lanes=4194304);m.isBackwards?(w.sibling=r.child,r.child=w):(s=m.last,s!==null?s.sibling=w:r.child=w,m.last=w)}return m.tail!==null?(r=m.tail,m.rendering=r,m.tail=r.sibling,m.renderingStartTime=ze(),r.sibling=null,s=Me.current,Ce(Me,l?s&1|2:s&1),r):(tt(r),null);case 22:case 23:return ku(),l=r.memoizedState!==null,t!==null&&t.memoizedState!==null!==l&&(r.flags|=8192),l&&(r.mode&1)!==0?(wt&1073741824)!==0&&(tt(r),r.subtreeFlags&6&&(r.flags|=8192)):tt(r),null;case 24:return null;case 25:return null}throw Error(i(156,r.tag))}function $w(t,r){switch(Ol(r),r.tag){case 1:return ct(r.type)&&Hs(),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return Br(),Ne(ut),Ne(Je),ql(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 5:return Wl(r),null;case 13:if(Ne(Me),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(i(340));Ir()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return Ne(Me),null;case 4:return Br(),null;case 10:return Vl(r.type._context),null;case 22:case 23:return ku(),null;case 24:return null;default:return null}}var uo=!1,nt=!1,qw=typeof WeakSet=="function"?WeakSet:Set,re=null;function Hr(t,r){var s=t.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(l){Fe(t,r,l)}else s.current=null}function fu(t,r,s){try{s()}catch(l){Fe(t,r,l)}}var lh=!1;function Kw(t,r){if(kl=Ns,t=zf(),gl(t)){if("selectionStart"in t)var s={start:t.selectionStart,end:t.selectionEnd};else e:{s=(s=t.ownerDocument)&&s.defaultView||window;var l=s.getSelection&&s.getSelection();if(l&&l.rangeCount!==0){s=l.anchorNode;var d=l.anchorOffset,m=l.focusNode;l=l.focusOffset;try{s.nodeType,m.nodeType}catch{s=null;break e}var w=0,T=-1,A=-1,z=0,Q=0,G=t,K=null;t:for(;;){for(var ne;G!==s||d!==0&&G.nodeType!==3||(T=w+d),G!==m||l!==0&&G.nodeType!==3||(A=w+l),G.nodeType===3&&(w+=G.nodeValue.length),(ne=G.firstChild)!==null;)K=G,G=ne;for(;;){if(G===t)break t;if(K===s&&++z===d&&(T=w),K===m&&++Q===l&&(A=w),(ne=G.nextSibling)!==null)break;G=K,K=G.parentNode}G=ne}s=T===-1||A===-1?null:{start:T,end:A}}else s=null}s=s||{start:0,end:0}}else s=null;for(El={focusedElem:t,selectionRange:s},Ns=!1,re=r;re!==null;)if(r=re,t=r.child,(r.subtreeFlags&1028)!==0&&t!==null)t.return=r,re=t;else for(;re!==null;){r=re;try{var ie=r.alternate;if((r.flags&1024)!==0)switch(r.tag){case 0:case 11:case 15:break;case 1:if(ie!==null){var oe=ie.memoizedProps,Be=ie.memoizedState,L=r.stateNode,R=L.getSnapshotBeforeUpdate(r.elementType===r.type?oe:Lt(r.type,oe),Be);L.__reactInternalSnapshotBeforeUpdate=R}break;case 3:var I=r.stateNode.containerInfo;I.nodeType===1?I.textContent="":I.nodeType===9&&I.documentElement&&I.removeChild(I.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(J){Fe(r,r.return,J)}if(t=r.sibling,t!==null){t.return=r.return,re=t;break}re=r.return}return ie=lh,lh=!1,ie}function Wi(t,r,s){var l=r.updateQueue;if(l=l!==null?l.lastEffect:null,l!==null){var d=l=l.next;do{if((d.tag&t)===t){var m=d.destroy;d.destroy=void 0,m!==void 0&&fu(r,s,m)}d=d.next}while(d!==l)}}function co(t,r){if(r=r.updateQueue,r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&t)===t){var l=s.create;s.destroy=l()}s=s.next}while(s!==r)}}function pu(t){var r=t.ref;if(r!==null){var s=t.stateNode;t.tag,t=s,typeof r=="function"?r(t):r.current=t}}function uh(t){var r=t.alternate;r!==null&&(t.alternate=null,uh(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&(delete r[qt],delete r[Oi],delete r[Nl],delete r[Nw],delete r[Aw])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function ch(t){return t.tag===5||t.tag===3||t.tag===4}function dh(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||ch(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function hu(t,r,s){var l=t.tag;if(l===5||l===6)t=t.stateNode,r?s.nodeType===8?s.parentNode.insertBefore(t,r):s.insertBefore(t,r):(s.nodeType===8?(r=s.parentNode,r.insertBefore(t,s)):(r=s,r.appendChild(t)),s=s._reactRootContainer,s!=null||r.onclick!==null||(r.onclick=Bs));else if(l!==4&&(t=t.child,t!==null))for(hu(t,r,s),t=t.sibling;t!==null;)hu(t,r,s),t=t.sibling}function mu(t,r,s){var l=t.tag;if(l===5||l===6)t=t.stateNode,r?s.insertBefore(t,r):s.appendChild(t);else if(l!==4&&(t=t.child,t!==null))for(mu(t,r,s),t=t.sibling;t!==null;)mu(t,r,s),t=t.sibling}var Ye=null,It=!1;function Dn(t,r,s){for(s=s.child;s!==null;)fh(t,r,s),s=s.sibling}function fh(t,r,s){if($t&&typeof $t.onCommitFiberUnmount=="function")try{$t.onCommitFiberUnmount(bs,s)}catch{}switch(s.tag){case 5:nt||Hr(s,r);case 6:var l=Ye,d=It;Ye=null,Dn(t,r,s),Ye=l,It=d,Ye!==null&&(It?(t=Ye,s=s.stateNode,t.nodeType===8?t.parentNode.removeChild(s):t.removeChild(s)):Ye.removeChild(s.stateNode));break;case 18:Ye!==null&&(It?(t=Ye,s=s.stateNode,t.nodeType===8?jl(t.parentNode,s):t.nodeType===1&&jl(t,s),Pi(t)):jl(Ye,s.stateNode));break;case 4:l=Ye,d=It,Ye=s.stateNode.containerInfo,It=!0,Dn(t,r,s),Ye=l,It=d;break;case 0:case 11:case 14:case 15:if(!nt&&(l=s.updateQueue,l!==null&&(l=l.lastEffect,l!==null))){d=l=l.next;do{var m=d,w=m.destroy;m=m.tag,w!==void 0&&((m&2)!==0||(m&4)!==0)&&fu(s,r,w),d=d.next}while(d!==l)}Dn(t,r,s);break;case 1:if(!nt&&(Hr(s,r),l=s.stateNode,typeof l.componentWillUnmount=="function"))try{l.props=s.memoizedProps,l.state=s.memoizedState,l.componentWillUnmount()}catch(T){Fe(s,r,T)}Dn(t,r,s);break;case 21:Dn(t,r,s);break;case 22:s.mode&1?(nt=(l=nt)||s.memoizedState!==null,Dn(t,r,s),nt=l):Dn(t,r,s);break;default:Dn(t,r,s)}}function ph(t){var r=t.updateQueue;if(r!==null){t.updateQueue=null;var s=t.stateNode;s===null&&(s=t.stateNode=new qw),r.forEach(function(l){var d=n1.bind(null,t,l);s.has(l)||(s.add(l),l.then(d,d))})}}function Ft(t,r){var s=r.deletions;if(s!==null)for(var l=0;l<s.length;l++){var d=s[l];try{var m=t,w=r,T=w;e:for(;T!==null;){switch(T.tag){case 5:Ye=T.stateNode,It=!1;break e;case 3:Ye=T.stateNode.containerInfo,It=!0;break e;case 4:Ye=T.stateNode.containerInfo,It=!0;break e}T=T.return}if(Ye===null)throw Error(i(160));fh(m,w,d),Ye=null,It=!1;var A=d.alternate;A!==null&&(A.return=null),d.return=null}catch(z){Fe(d,r,z)}}if(r.subtreeFlags&12854)for(r=r.child;r!==null;)hh(r,t),r=r.sibling}function hh(t,r){var s=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Ft(r,t),Gt(t),l&4){try{Wi(3,t,t.return),co(3,t)}catch(oe){Fe(t,t.return,oe)}try{Wi(5,t,t.return)}catch(oe){Fe(t,t.return,oe)}}break;case 1:Ft(r,t),Gt(t),l&512&&s!==null&&Hr(s,s.return);break;case 5:if(Ft(r,t),Gt(t),l&512&&s!==null&&Hr(s,s.return),t.flags&32){var d=t.stateNode;try{di(d,"")}catch(oe){Fe(t,t.return,oe)}}if(l&4&&(d=t.stateNode,d!=null)){var m=t.memoizedProps,w=s!==null?s.memoizedProps:m,T=t.type,A=t.updateQueue;if(t.updateQueue=null,A!==null)try{T==="input"&&m.type==="radio"&&m.name!=null&&Bd(d,m),qa(T,w);var z=qa(T,m);for(w=0;w<A.length;w+=2){var Q=A[w],G=A[w+1];Q==="style"?Gd(d,G):Q==="dangerouslySetInnerHTML"?Kd(d,G):Q==="children"?di(d,G):N(d,Q,G,z)}switch(T){case"input":Ba(d,m);break;case"textarea":Wd(d,m);break;case"select":var K=d._wrapperState.wasMultiple;d._wrapperState.wasMultiple=!!m.multiple;var ne=m.value;ne!=null?Pr(d,!!m.multiple,ne,!1):K!==!!m.multiple&&(m.defaultValue!=null?Pr(d,!!m.multiple,m.defaultValue,!0):Pr(d,!!m.multiple,m.multiple?[]:"",!1))}d[Oi]=m}catch(oe){Fe(t,t.return,oe)}}break;case 6:if(Ft(r,t),Gt(t),l&4){if(t.stateNode===null)throw Error(i(162));d=t.stateNode,m=t.memoizedProps;try{d.nodeValue=m}catch(oe){Fe(t,t.return,oe)}}break;case 3:if(Ft(r,t),Gt(t),l&4&&s!==null&&s.memoizedState.isDehydrated)try{Pi(r.containerInfo)}catch(oe){Fe(t,t.return,oe)}break;case 4:Ft(r,t),Gt(t);break;case 13:Ft(r,t),Gt(t),d=t.child,d.flags&8192&&(m=d.memoizedState!==null,d.stateNode.isHidden=m,!m||d.alternate!==null&&d.alternate.memoizedState!==null||(yu=ze())),l&4&&ph(t);break;case 22:if(Q=s!==null&&s.memoizedState!==null,t.mode&1?(nt=(z=nt)||Q,Ft(r,t),nt=z):Ft(r,t),Gt(t),l&8192){if(z=t.memoizedState!==null,(t.stateNode.isHidden=z)&&!Q&&(t.mode&1)!==0)for(re=t,Q=t.child;Q!==null;){for(G=re=Q;re!==null;){switch(K=re,ne=K.child,K.tag){case 0:case 11:case 14:case 15:Wi(4,K,K.return);break;case 1:Hr(K,K.return);var ie=K.stateNode;if(typeof ie.componentWillUnmount=="function"){l=K,s=K.return;try{r=l,ie.props=r.memoizedProps,ie.state=r.memoizedState,ie.componentWillUnmount()}catch(oe){Fe(l,s,oe)}}break;case 5:Hr(K,K.return);break;case 22:if(K.memoizedState!==null){vh(G);continue}}ne!==null?(ne.return=K,re=ne):vh(G)}Q=Q.sibling}e:for(Q=null,G=t;;){if(G.tag===5){if(Q===null){Q=G;try{d=G.stateNode,z?(m=d.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none"):(T=G.stateNode,A=G.memoizedProps.style,w=A!=null&&A.hasOwnProperty("display")?A.display:null,T.style.display=Qd("display",w))}catch(oe){Fe(t,t.return,oe)}}}else if(G.tag===6){if(Q===null)try{G.stateNode.nodeValue=z?"":G.memoizedProps}catch(oe){Fe(t,t.return,oe)}}else if((G.tag!==22&&G.tag!==23||G.memoizedState===null||G===t)&&G.child!==null){G.child.return=G,G=G.child;continue}if(G===t)break e;for(;G.sibling===null;){if(G.return===null||G.return===t)break e;Q===G&&(Q=null),G=G.return}Q===G&&(Q=null),G.sibling.return=G.return,G=G.sibling}}break;case 19:Ft(r,t),Gt(t),l&4&&ph(t);break;case 21:break;default:Ft(r,t),Gt(t)}}function Gt(t){var r=t.flags;if(r&2){try{e:{for(var s=t.return;s!==null;){if(ch(s)){var l=s;break e}s=s.return}throw Error(i(160))}switch(l.tag){case 5:var d=l.stateNode;l.flags&32&&(di(d,""),l.flags&=-33);var m=dh(t);mu(t,m,d);break;case 3:case 4:var w=l.stateNode.containerInfo,T=dh(t);hu(t,T,w);break;default:throw Error(i(161))}}catch(A){Fe(t,t.return,A)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function Qw(t,r,s){re=t,mh(t)}function mh(t,r,s){for(var l=(t.mode&1)!==0;re!==null;){var d=re,m=d.child;if(d.tag===22&&l){var w=d.memoizedState!==null||uo;if(!w){var T=d.alternate,A=T!==null&&T.memoizedState!==null||nt;T=uo;var z=nt;if(uo=w,(nt=A)&&!z)for(re=d;re!==null;)w=re,A=w.child,w.tag===22&&w.memoizedState!==null?yh(d):A!==null?(A.return=w,re=A):yh(d);for(;m!==null;)re=m,mh(m),m=m.sibling;re=d,uo=T,nt=z}gh(t)}else(d.subtreeFlags&8772)!==0&&m!==null?(m.return=d,re=m):gh(t)}}function gh(t){for(;re!==null;){var r=re;if((r.flags&8772)!==0){var s=r.alternate;try{if((r.flags&8772)!==0)switch(r.tag){case 0:case 11:case 15:nt||co(5,r);break;case 1:var l=r.stateNode;if(r.flags&4&&!nt)if(s===null)l.componentDidMount();else{var d=r.elementType===r.type?s.memoizedProps:Lt(r.type,s.memoizedProps);l.componentDidUpdate(d,s.memoizedState,l.__reactInternalSnapshotBeforeUpdate)}var m=r.updateQueue;m!==null&&vp(r,m,l);break;case 3:var w=r.updateQueue;if(w!==null){if(s=null,r.child!==null)switch(r.child.tag){case 5:s=r.child.stateNode;break;case 1:s=r.child.stateNode}vp(r,w,s)}break;case 5:var T=r.stateNode;if(s===null&&r.flags&4){s=T;var A=r.memoizedProps;switch(r.type){case"button":case"input":case"select":case"textarea":A.autoFocus&&s.focus();break;case"img":A.src&&(s.src=A.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(r.memoizedState===null){var z=r.alternate;if(z!==null){var Q=z.memoizedState;if(Q!==null){var G=Q.dehydrated;G!==null&&Pi(G)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}nt||r.flags&512&&pu(r)}catch(K){Fe(r,r.return,K)}}if(r===t){re=null;break}if(s=r.sibling,s!==null){s.return=r.return,re=s;break}re=r.return}}function vh(t){for(;re!==null;){var r=re;if(r===t){re=null;break}var s=r.sibling;if(s!==null){s.return=r.return,re=s;break}re=r.return}}function yh(t){for(;re!==null;){var r=re;try{switch(r.tag){case 0:case 11:case 15:var s=r.return;try{co(4,r)}catch(A){Fe(r,s,A)}break;case 1:var l=r.stateNode;if(typeof l.componentDidMount=="function"){var d=r.return;try{l.componentDidMount()}catch(A){Fe(r,d,A)}}var m=r.return;try{pu(r)}catch(A){Fe(r,m,A)}break;case 5:var w=r.return;try{pu(r)}catch(A){Fe(r,w,A)}}}catch(A){Fe(r,r.return,A)}if(r===t){re=null;break}var T=r.sibling;if(T!==null){T.return=r.return,re=T;break}re=r.return}}var Gw=Math.ceil,fo=O.ReactCurrentDispatcher,gu=O.ReactCurrentOwner,Nt=O.ReactCurrentBatchConfig,Pe=0,Qe=null,He=null,Xe=0,wt=0,Wr=An(0),$e=0,$i=null,lr=0,po=0,vu=0,qi=null,ft=null,yu=0,$r=1/0,fn=null,ho=!1,xu=null,Ln=null,mo=!1,In=null,go=0,Ki=0,wu=null,vo=-1,yo=0;function at(){return(Pe&6)!==0?ze():vo!==-1?vo:vo=ze()}function Fn(t){return(t.mode&1)===0?1:(Pe&2)!==0&&Xe!==0?Xe&-Xe:_w.transition!==null?(yo===0&&(yo=df()),yo):(t=Ee,t!==0||(t=window.event,t=t===void 0?16:wf(t.type)),t)}function Vt(t,r,s,l){if(50<Ki)throw Ki=0,wu=null,Error(i(185));vi(t,s,l),((Pe&2)===0||t!==Qe)&&(t===Qe&&((Pe&2)===0&&(po|=s),$e===4&&Vn(t,Xe)),pt(t,l),s===1&&Pe===0&&(r.mode&1)===0&&($r=ze()+500,$s&&_n()))}function pt(t,r){var s=t.callbackNode;_x(t,r);var l=Ts(t,t===Qe?Xe:0);if(l===0)s!==null&&lf(s),t.callbackNode=null,t.callbackPriority=0;else if(r=l&-l,t.callbackPriority!==r){if(s!=null&&lf(s),r===1)t.tag===0?Rw(wh.bind(null,t)):sp(wh.bind(null,t)),Cw(function(){(Pe&6)===0&&_n()}),s=null;else{switch(ff(l)){case 1:s=Ja;break;case 4:s=uf;break;case 16:s=Ps;break;case 536870912:s=cf;break;default:s=Ps}s=jh(s,xh.bind(null,t))}t.callbackPriority=r,t.callbackNode=s}}function xh(t,r){if(vo=-1,yo=0,(Pe&6)!==0)throw Error(i(327));var s=t.callbackNode;if(qr()&&t.callbackNode!==s)return null;var l=Ts(t,t===Qe?Xe:0);if(l===0)return null;if((l&30)!==0||(l&t.expiredLanes)!==0||r)r=xo(t,l);else{r=l;var d=Pe;Pe|=2;var m=Ph();(Qe!==t||Xe!==r)&&(fn=null,$r=ze()+500,cr(t,r));do try{Zw();break}catch(T){Sh(t,T)}while(!0);Fl(),fo.current=m,Pe=d,He!==null?r=0:(Qe=null,Xe=0,r=$e)}if(r!==0){if(r===2&&(d=el(t),d!==0&&(l=d,r=Su(t,d))),r===1)throw s=$i,cr(t,0),Vn(t,l),pt(t,ze()),s;if(r===6)Vn(t,l);else{if(d=t.current.alternate,(l&30)===0&&!Yw(d)&&(r=xo(t,l),r===2&&(m=el(t),m!==0&&(l=m,r=Su(t,m))),r===1))throw s=$i,cr(t,0),Vn(t,l),pt(t,ze()),s;switch(t.finishedWork=d,t.finishedLanes=l,r){case 0:case 1:throw Error(i(345));case 2:dr(t,ft,fn);break;case 3:if(Vn(t,l),(l&130023424)===l&&(r=yu+500-ze(),10<r)){if(Ts(t,0)!==0)break;if(d=t.suspendedLanes,(d&l)!==l){at(),t.pingedLanes|=t.suspendedLanes&d;break}t.timeoutHandle=Cl(dr.bind(null,t,ft,fn),r);break}dr(t,ft,fn);break;case 4:if(Vn(t,l),(l&4194240)===l)break;for(r=t.eventTimes,d=-1;0<l;){var w=31-Ot(l);m=1<<w,w=r[w],w>d&&(d=w),l&=~m}if(l=d,l=ze()-l,l=(120>l?120:480>l?480:1080>l?1080:1920>l?1920:3e3>l?3e3:4320>l?4320:1960*Gw(l/1960))-l,10<l){t.timeoutHandle=Cl(dr.bind(null,t,ft,fn),l);break}dr(t,ft,fn);break;case 5:dr(t,ft,fn);break;default:throw Error(i(329))}}}return pt(t,ze()),t.callbackNode===s?xh.bind(null,t):null}function Su(t,r){var s=qi;return t.current.memoizedState.isDehydrated&&(cr(t,r).flags|=256),t=xo(t,r),t!==2&&(r=ft,ft=s,r!==null&&Pu(r)),t}function Pu(t){ft===null?ft=t:ft.push.apply(ft,t)}function Yw(t){for(var r=t;;){if(r.flags&16384){var s=r.updateQueue;if(s!==null&&(s=s.stores,s!==null))for(var l=0;l<s.length;l++){var d=s[l],m=d.getSnapshot;d=d.value;try{if(!Mt(m(),d))return!1}catch{return!1}}}if(s=r.child,r.subtreeFlags&16384&&s!==null)s.return=r,r=s;else{if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function Vn(t,r){for(r&=~vu,r&=~po,t.suspendedLanes|=r,t.pingedLanes&=~r,t=t.expirationTimes;0<r;){var s=31-Ot(r),l=1<<s;t[s]=-1,r&=~l}}function wh(t){if((Pe&6)!==0)throw Error(i(327));qr();var r=Ts(t,0);if((r&1)===0)return pt(t,ze()),null;var s=xo(t,r);if(t.tag!==0&&s===2){var l=el(t);l!==0&&(r=l,s=Su(t,l))}if(s===1)throw s=$i,cr(t,0),Vn(t,r),pt(t,ze()),s;if(s===6)throw Error(i(345));return t.finishedWork=t.current.alternate,t.finishedLanes=r,dr(t,ft,fn),pt(t,ze()),null}function bu(t,r){var s=Pe;Pe|=1;try{return t(r)}finally{Pe=s,Pe===0&&($r=ze()+500,$s&&_n())}}function ur(t){In!==null&&In.tag===0&&(Pe&6)===0&&qr();var r=Pe;Pe|=1;var s=Nt.transition,l=Ee;try{if(Nt.transition=null,Ee=1,t)return t()}finally{Ee=l,Nt.transition=s,Pe=r,(Pe&6)===0&&_n()}}function ku(){wt=Wr.current,Ne(Wr)}function cr(t,r){t.finishedWork=null,t.finishedLanes=0;var s=t.timeoutHandle;if(s!==-1&&(t.timeoutHandle=-1,Tw(s)),He!==null)for(s=He.return;s!==null;){var l=s;switch(Ol(l),l.tag){case 1:l=l.type.childContextTypes,l!=null&&Hs();break;case 3:Br(),Ne(ut),Ne(Je),ql();break;case 5:Wl(l);break;case 4:Br();break;case 13:Ne(Me);break;case 19:Ne(Me);break;case 10:Vl(l.type._context);break;case 22:case 23:ku()}s=s.return}if(Qe=t,He=t=zn(t.current,null),Xe=wt=r,$e=0,$i=null,vu=po=lr=0,ft=qi=null,sr!==null){for(r=0;r<sr.length;r++)if(s=sr[r],l=s.interleaved,l!==null){s.interleaved=null;var d=l.next,m=s.pending;if(m!==null){var w=m.next;m.next=d,l.next=w}s.pending=l}sr=null}return t}function Sh(t,r){do{var s=He;try{if(Fl(),to.current=so,no){for(var l=De.memoizedState;l!==null;){var d=l.queue;d!==null&&(d.pending=null),l=l.next}no=!1}if(ar=0,Ke=We=De=null,Vi=!1,zi=0,gu.current=null,s===null||s.return===null){$e=1,$i=r,He=null;break}e:{var m=t,w=s.return,T=s,A=r;if(r=Xe,T.flags|=32768,A!==null&&typeof A=="object"&&typeof A.then=="function"){var z=A,Q=T,G=Q.tag;if((Q.mode&1)===0&&(G===0||G===11||G===15)){var K=Q.alternate;K?(Q.updateQueue=K.updateQueue,Q.memoizedState=K.memoizedState,Q.lanes=K.lanes):(Q.updateQueue=null,Q.memoizedState=null)}var ne=qp(w);if(ne!==null){ne.flags&=-257,Kp(ne,w,T,m,r),ne.mode&1&&$p(m,z,r),r=ne,A=z;var ie=r.updateQueue;if(ie===null){var oe=new Set;oe.add(A),r.updateQueue=oe}else ie.add(A);break e}else{if((r&1)===0){$p(m,z,r),Eu();break e}A=Error(i(426))}}else if(Re&&T.mode&1){var Be=qp(w);if(Be!==null){(Be.flags&65536)===0&&(Be.flags|=256),Kp(Be,w,T,m,r),Ll(Ur(A,T));break e}}m=A=Ur(A,T),$e!==4&&($e=2),qi===null?qi=[m]:qi.push(m),m=w;do{switch(m.tag){case 3:m.flags|=65536,r&=-r,m.lanes|=r;var L=Hp(m,A,r);gp(m,L);break e;case 1:T=A;var R=m.type,I=m.stateNode;if((m.flags&128)===0&&(typeof R.getDerivedStateFromError=="function"||I!==null&&typeof I.componentDidCatch=="function"&&(Ln===null||!Ln.has(I)))){m.flags|=65536,r&=-r,m.lanes|=r;var J=Wp(m,T,r);gp(m,J);break e}}m=m.return}while(m!==null)}kh(s)}catch(ae){r=ae,He===s&&s!==null&&(He=s=s.return);continue}break}while(!0)}function Ph(){var t=fo.current;return fo.current=so,t===null?so:t}function Eu(){($e===0||$e===3||$e===2)&&($e=4),Qe===null||(lr&268435455)===0&&(po&268435455)===0||Vn(Qe,Xe)}function xo(t,r){var s=Pe;Pe|=2;var l=Ph();(Qe!==t||Xe!==r)&&(fn=null,cr(t,r));do try{Xw();break}catch(d){Sh(t,d)}while(!0);if(Fl(),Pe=s,fo.current=l,He!==null)throw Error(i(261));return Qe=null,Xe=0,$e}function Xw(){for(;He!==null;)bh(He)}function Zw(){for(;He!==null&&!bx();)bh(He)}function bh(t){var r=Ch(t.alternate,t,wt);t.memoizedProps=t.pendingProps,r===null?kh(t):He=r,gu.current=null}function kh(t){var r=t;do{var s=r.alternate;if(t=r.return,(r.flags&32768)===0){if(s=Ww(s,r,wt),s!==null){He=s;return}}else{if(s=$w(s,r),s!==null){s.flags&=32767,He=s;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{$e=6,He=null;return}}if(r=r.sibling,r!==null){He=r;return}He=r=t}while(r!==null);$e===0&&($e=5)}function dr(t,r,s){var l=Ee,d=Nt.transition;try{Nt.transition=null,Ee=1,Jw(t,r,s,l)}finally{Nt.transition=d,Ee=l}return null}function Jw(t,r,s,l){do qr();while(In!==null);if((Pe&6)!==0)throw Error(i(327));s=t.finishedWork;var d=t.finishedLanes;if(s===null)return null;if(t.finishedWork=null,t.finishedLanes=0,s===t.current)throw Error(i(177));t.callbackNode=null,t.callbackPriority=0;var m=s.lanes|s.childLanes;if(Ox(t,m),t===Qe&&(He=Qe=null,Xe=0),(s.subtreeFlags&2064)===0&&(s.flags&2064)===0||mo||(mo=!0,jh(Ps,function(){return qr(),null})),m=(s.flags&15990)!==0,(s.subtreeFlags&15990)!==0||m){m=Nt.transition,Nt.transition=null;var w=Ee;Ee=1;var T=Pe;Pe|=4,gu.current=null,Kw(t,s),hh(s,t),xw(El),Ns=!!kl,El=kl=null,t.current=s,Qw(s),kx(),Pe=T,Ee=w,Nt.transition=m}else t.current=s;if(mo&&(mo=!1,In=t,go=d),m=t.pendingLanes,m===0&&(Ln=null),Cx(s.stateNode),pt(t,ze()),r!==null)for(l=t.onRecoverableError,s=0;s<r.length;s++)d=r[s],l(d.value,{componentStack:d.stack,digest:d.digest});if(ho)throw ho=!1,t=xu,xu=null,t;return(go&1)!==0&&t.tag!==0&&qr(),m=t.pendingLanes,(m&1)!==0?t===wu?Ki++:(Ki=0,wu=t):Ki=0,_n(),null}function qr(){if(In!==null){var t=ff(go),r=Nt.transition,s=Ee;try{if(Nt.transition=null,Ee=16>t?16:t,In===null)var l=!1;else{if(t=In,In=null,go=0,(Pe&6)!==0)throw Error(i(331));var d=Pe;for(Pe|=4,re=t.current;re!==null;){var m=re,w=m.child;if((re.flags&16)!==0){var T=m.deletions;if(T!==null){for(var A=0;A<T.length;A++){var z=T[A];for(re=z;re!==null;){var Q=re;switch(Q.tag){case 0:case 11:case 15:Wi(8,Q,m)}var G=Q.child;if(G!==null)G.return=Q,re=G;else for(;re!==null;){Q=re;var K=Q.sibling,ne=Q.return;if(uh(Q),Q===z){re=null;break}if(K!==null){K.return=ne,re=K;break}re=ne}}}var ie=m.alternate;if(ie!==null){var oe=ie.child;if(oe!==null){ie.child=null;do{var Be=oe.sibling;oe.sibling=null,oe=Be}while(oe!==null)}}re=m}}if((m.subtreeFlags&2064)!==0&&w!==null)w.return=m,re=w;else e:for(;re!==null;){if(m=re,(m.flags&2048)!==0)switch(m.tag){case 0:case 11:case 15:Wi(9,m,m.return)}var L=m.sibling;if(L!==null){L.return=m.return,re=L;break e}re=m.return}}var R=t.current;for(re=R;re!==null;){w=re;var I=w.child;if((w.subtreeFlags&2064)!==0&&I!==null)I.return=w,re=I;else e:for(w=R;re!==null;){if(T=re,(T.flags&2048)!==0)try{switch(T.tag){case 0:case 11:case 15:co(9,T)}}catch(ae){Fe(T,T.return,ae)}if(T===w){re=null;break e}var J=T.sibling;if(J!==null){J.return=T.return,re=J;break e}re=T.return}}if(Pe=d,_n(),$t&&typeof $t.onPostCommitFiberRoot=="function")try{$t.onPostCommitFiberRoot(bs,t)}catch{}l=!0}return l}finally{Ee=s,Nt.transition=r}}return!1}function Eh(t,r,s){r=Ur(s,r),r=Hp(t,r,1),t=Mn(t,r,1),r=at(),t!==null&&(vi(t,1,r),pt(t,r))}function Fe(t,r,s){if(t.tag===3)Eh(t,t,s);else for(;r!==null;){if(r.tag===3){Eh(r,t,s);break}else if(r.tag===1){var l=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ln===null||!Ln.has(l))){t=Ur(s,t),t=Wp(r,t,1),r=Mn(r,t,1),t=at(),r!==null&&(vi(r,1,t),pt(r,t));break}}r=r.return}}function e1(t,r,s){var l=t.pingCache;l!==null&&l.delete(r),r=at(),t.pingedLanes|=t.suspendedLanes&s,Qe===t&&(Xe&s)===s&&($e===4||$e===3&&(Xe&130023424)===Xe&&500>ze()-yu?cr(t,0):vu|=s),pt(t,r)}function Th(t,r){r===0&&((t.mode&1)===0?r=1:(r=Es,Es<<=1,(Es&130023424)===0&&(Es=4194304)));var s=at();t=un(t,r),t!==null&&(vi(t,r,s),pt(t,s))}function t1(t){var r=t.memoizedState,s=0;r!==null&&(s=r.retryLane),Th(t,s)}function n1(t,r){var s=0;switch(t.tag){case 13:var l=t.stateNode,d=t.memoizedState;d!==null&&(s=d.retryLane);break;case 19:l=t.stateNode;break;default:throw Error(i(314))}l!==null&&l.delete(r),Th(t,s)}var Ch;Ch=function(t,r,s){if(t!==null)if(t.memoizedProps!==r.pendingProps||ut.current)dt=!0;else{if((t.lanes&s)===0&&(r.flags&128)===0)return dt=!1,Hw(t,r,s);dt=(t.flags&131072)!==0}else dt=!1,Re&&(r.flags&1048576)!==0&&op(r,Ks,r.index);switch(r.lanes=0,r.tag){case 2:var l=r.type;lo(t,r),t=r.pendingProps;var d=Mr(r,Je.current);zr(r,s),d=Gl(null,r,l,t,d,s);var m=Yl();return r.flags|=1,typeof d=="object"&&d!==null&&typeof d.render=="function"&&d.$$typeof===void 0?(r.tag=1,r.memoizedState=null,r.updateQueue=null,ct(l)?(m=!0,Ws(r)):m=!1,r.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,Ul(r),d.updater=oo,r.stateNode=d,d._reactInternals=r,nu(r,l,t,s),r=ou(null,r,l,!0,m,s)):(r.tag=0,Re&&m&&_l(r),ot(null,r,d,s),r=r.child),r;case 16:l=r.elementType;e:{switch(lo(t,r),t=r.pendingProps,d=l._init,l=d(l._payload),r.type=l,d=r.tag=i1(l),t=Lt(l,t),d){case 0:r=su(null,r,l,t,s);break e;case 1:r=Jp(null,r,l,t,s);break e;case 11:r=Qp(null,r,l,t,s);break e;case 14:r=Gp(null,r,l,Lt(l.type,t),s);break e}throw Error(i(306,l,""))}return r;case 0:return l=r.type,d=r.pendingProps,d=r.elementType===l?d:Lt(l,d),su(t,r,l,d,s);case 1:return l=r.type,d=r.pendingProps,d=r.elementType===l?d:Lt(l,d),Jp(t,r,l,d,s);case 3:e:{if(eh(r),t===null)throw Error(i(387));l=r.pendingProps,m=r.memoizedState,d=m.element,mp(t,r),Js(r,l,null,s);var w=r.memoizedState;if(l=w.element,m.isDehydrated)if(m={element:l,isDehydrated:!1,cache:w.cache,pendingSuspenseBoundaries:w.pendingSuspenseBoundaries,transitions:w.transitions},r.updateQueue.baseState=m,r.memoizedState=m,r.flags&256){d=Ur(Error(i(423)),r),r=th(t,r,l,s,d);break e}else if(l!==d){d=Ur(Error(i(424)),r),r=th(t,r,l,s,d);break e}else for(xt=Nn(r.stateNode.containerInfo.firstChild),yt=r,Re=!0,Dt=null,s=pp(r,null,l,s),r.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(Ir(),l===d){r=dn(t,r,s);break e}ot(t,r,l,s)}r=r.child}return r;case 5:return yp(r),t===null&&Dl(r),l=r.type,d=r.pendingProps,m=t!==null?t.memoizedProps:null,w=d.children,Tl(l,d)?w=null:m!==null&&Tl(l,m)&&(r.flags|=32),Zp(t,r),ot(t,r,w,s),r.child;case 6:return t===null&&Dl(r),null;case 13:return nh(t,r,s);case 4:return Hl(r,r.stateNode.containerInfo),l=r.pendingProps,t===null?r.child=Fr(r,null,l,s):ot(t,r,l,s),r.child;case 11:return l=r.type,d=r.pendingProps,d=r.elementType===l?d:Lt(l,d),Qp(t,r,l,d,s);case 7:return ot(t,r,r.pendingProps,s),r.child;case 8:return ot(t,r,r.pendingProps.children,s),r.child;case 12:return ot(t,r,r.pendingProps.children,s),r.child;case 10:e:{if(l=r.type._context,d=r.pendingProps,m=r.memoizedProps,w=d.value,Ce(Ys,l._currentValue),l._currentValue=w,m!==null)if(Mt(m.value,w)){if(m.children===d.children&&!ut.current){r=dn(t,r,s);break e}}else for(m=r.child,m!==null&&(m.return=r);m!==null;){var T=m.dependencies;if(T!==null){w=m.child;for(var A=T.firstContext;A!==null;){if(A.context===l){if(m.tag===1){A=cn(-1,s&-s),A.tag=2;var z=m.updateQueue;if(z!==null){z=z.shared;var Q=z.pending;Q===null?A.next=A:(A.next=Q.next,Q.next=A),z.pending=A}}m.lanes|=s,A=m.alternate,A!==null&&(A.lanes|=s),zl(m.return,s,r),T.lanes|=s;break}A=A.next}}else if(m.tag===10)w=m.type===r.type?null:m.child;else if(m.tag===18){if(w=m.return,w===null)throw Error(i(341));w.lanes|=s,T=w.alternate,T!==null&&(T.lanes|=s),zl(w,s,r),w=m.sibling}else w=m.child;if(w!==null)w.return=m;else for(w=m;w!==null;){if(w===r){w=null;break}if(m=w.sibling,m!==null){m.return=w.return,w=m;break}w=w.return}m=w}ot(t,r,d.children,s),r=r.child}return r;case 9:return d=r.type,l=r.pendingProps.children,zr(r,s),d=Ct(d),l=l(d),r.flags|=1,ot(t,r,l,s),r.child;case 14:return l=r.type,d=Lt(l,r.pendingProps),d=Lt(l.type,d),Gp(t,r,l,d,s);case 15:return Yp(t,r,r.type,r.pendingProps,s);case 17:return l=r.type,d=r.pendingProps,d=r.elementType===l?d:Lt(l,d),lo(t,r),r.tag=1,ct(l)?(t=!0,Ws(r)):t=!1,zr(r,s),Bp(r,l,d),nu(r,l,d,s),ou(null,r,l,!0,t,s);case 19:return ih(t,r,s);case 22:return Xp(t,r,s)}throw Error(i(156,r.tag))};function jh(t,r){return af(t,r)}function r1(t,r,s,l){this.tag=t,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function At(t,r,s,l){return new r1(t,r,s,l)}function Tu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function i1(t){if(typeof t=="function")return Tu(t)?1:0;if(t!=null){if(t=t.$$typeof,t===D)return 11;if(t===ce)return 14}return 2}function zn(t,r){var s=t.alternate;return s===null?(s=At(t.tag,r,t.key,t.mode),s.elementType=t.elementType,s.type=t.type,s.stateNode=t.stateNode,s.alternate=t,t.alternate=s):(s.pendingProps=r,s.type=t.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=t.flags&14680064,s.childLanes=t.childLanes,s.lanes=t.lanes,s.child=t.child,s.memoizedProps=t.memoizedProps,s.memoizedState=t.memoizedState,s.updateQueue=t.updateQueue,r=t.dependencies,s.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},s.sibling=t.sibling,s.index=t.index,s.ref=t.ref,s}function wo(t,r,s,l,d,m){var w=2;if(l=t,typeof t=="function")Tu(t)&&(w=1);else if(typeof t=="string")w=5;else e:switch(t){case F:return fr(s.children,d,m,r);case H:w=8,d|=8;break;case Y:return t=At(12,s,r,d|2),t.elementType=Y,t.lanes=m,t;case X:return t=At(13,s,r,d),t.elementType=X,t.lanes=m,t;case B:return t=At(19,s,r,d),t.elementType=B,t.lanes=m,t;case te:return So(s,d,m,r);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case q:w=10;break e;case $:w=9;break e;case D:w=11;break e;case ce:w=14;break e;case se:w=16,l=null;break e}throw Error(i(130,t==null?t:typeof t,""))}return r=At(w,s,r,d),r.elementType=t,r.type=l,r.lanes=m,r}function fr(t,r,s,l){return t=At(7,t,l,r),t.lanes=s,t}function So(t,r,s,l){return t=At(22,t,l,r),t.elementType=te,t.lanes=s,t.stateNode={isHidden:!1},t}function Cu(t,r,s){return t=At(6,t,null,r),t.lanes=s,t}function ju(t,r,s){return r=At(4,t.children!==null?t.children:[],t.key,r),r.lanes=s,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}function s1(t,r,s,l,d){this.tag=r,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=tl(0),this.expirationTimes=tl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tl(0),this.identifierPrefix=l,this.onRecoverableError=d,this.mutableSourceEagerHydrationData=null}function Nu(t,r,s,l,d,m,w,T,A){return t=new s1(t,r,s,T,A),r===1?(r=1,m===!0&&(r|=8)):r=0,m=At(3,null,null,r),t.current=m,m.stateNode=t,m.memoizedState={element:l,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ul(m),t}function o1(t,r,s){var l=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:V,key:l==null?null:""+l,children:t,containerInfo:r,implementation:s}}function Nh(t){if(!t)return Rn;t=t._reactInternals;e:{if(er(t)!==t||t.tag!==1)throw Error(i(170));var r=t;do{switch(r.tag){case 3:r=r.stateNode.context;break e;case 1:if(ct(r.type)){r=r.stateNode.__reactInternalMemoizedMergedChildContext;break e}}r=r.return}while(r!==null);throw Error(i(171))}if(t.tag===1){var s=t.type;if(ct(s))return rp(t,s,r)}return r}function Ah(t,r,s,l,d,m,w,T,A){return t=Nu(s,l,!0,t,d,m,w,T,A),t.context=Nh(null),s=t.current,l=at(),d=Fn(s),m=cn(l,d),m.callback=r??null,Mn(s,m,d),t.current.lanes=d,vi(t,d,l),pt(t,l),t}function Po(t,r,s,l){var d=r.current,m=at(),w=Fn(d);return s=Nh(s),r.context===null?r.context=s:r.pendingContext=s,r=cn(m,w),r.payload={element:t},l=l===void 0?null:l,l!==null&&(r.callback=l),t=Mn(d,r,w),t!==null&&(Vt(t,d,w,m),Zs(t,d,w)),w}function bo(t){return t=t.current,t.child?(t.child.tag===5,t.child.stateNode):null}function Rh(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var s=t.retryLane;t.retryLane=s!==0&&s<r?s:r}}function Au(t,r){Rh(t,r),(t=t.alternate)&&Rh(t,r)}function a1(){return null}var _h=typeof reportError=="function"?reportError:function(t){console.error(t)};function Ru(t){this._internalRoot=t}ko.prototype.render=Ru.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(i(409));Po(t,r,null,null)},ko.prototype.unmount=Ru.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;ur(function(){Po(null,t,null,null)}),r[sn]=null}};function ko(t){this._internalRoot=t}ko.prototype.unstable_scheduleHydration=function(t){if(t){var r=mf();t={blockedOn:null,target:t,priority:r};for(var s=0;s<Tn.length&&r!==0&&r<Tn[s].priority;s++);Tn.splice(s,0,t),s===0&&yf(t)}};function _u(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Eo(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function Oh(){}function l1(t,r,s,l,d){if(d){if(typeof l=="function"){var m=l;l=function(){var z=bo(w);m.call(z)}}var w=Ah(r,l,t,0,null,!1,!1,"",Oh);return t._reactRootContainer=w,t[sn]=w.current,Ri(t.nodeType===8?t.parentNode:t),ur(),w}for(;d=t.lastChild;)t.removeChild(d);if(typeof l=="function"){var T=l;l=function(){var z=bo(A);T.call(z)}}var A=Nu(t,0,!1,null,null,!1,!1,"",Oh);return t._reactRootContainer=A,t[sn]=A.current,Ri(t.nodeType===8?t.parentNode:t),ur(function(){Po(r,A,s,l)}),A}function To(t,r,s,l,d){var m=s._reactRootContainer;if(m){var w=m;if(typeof d=="function"){var T=d;d=function(){var A=bo(w);T.call(A)}}Po(r,w,t,d)}else w=l1(s,r,t,d,l);return bo(w)}pf=function(t){switch(t.tag){case 3:var r=t.stateNode;if(r.current.memoizedState.isDehydrated){var s=gi(r.pendingLanes);s!==0&&(nl(r,s|1),pt(r,ze()),(Pe&6)===0&&($r=ze()+500,_n()))}break;case 13:ur(function(){var l=un(t,1);if(l!==null){var d=at();Vt(l,t,1,d)}}),Au(t,1)}},rl=function(t){if(t.tag===13){var r=un(t,134217728);if(r!==null){var s=at();Vt(r,t,134217728,s)}Au(t,134217728)}},hf=function(t){if(t.tag===13){var r=Fn(t),s=un(t,r);if(s!==null){var l=at();Vt(s,t,r,l)}Au(t,r)}},mf=function(){return Ee},gf=function(t,r){var s=Ee;try{return Ee=t,r()}finally{Ee=s}},Ga=function(t,r,s){switch(r){case"input":if(Ba(t,s),r=s.name,s.type==="radio"&&r!=null){for(s=t;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),r=0;r<s.length;r++){var l=s[r];if(l!==t&&l.form===t.form){var d=Us(l);if(!d)throw Error(i(90));Sr(l),Ba(l,d)}}}break;case"textarea":Wd(t,s);break;case"select":r=s.value,r!=null&&Pr(t,!!s.multiple,r,!1)}},Jd=bu,ef=ur;var u1={usingClientEntryPoint:!1,Events:[Mi,_r,Us,Xd,Zd,bu]},Qi={findFiberByHostInstance:tr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},c1={bundleType:Qi.bundleType,version:Qi.version,rendererPackageName:Qi.rendererPackageName,rendererConfig:Qi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:O.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=sf(t),t===null?null:t.stateNode},findFiberByHostInstance:Qi.findFiberByHostInstance||a1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Co=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Co.isDisabled&&Co.supportsFiber)try{bs=Co.inject(c1),$t=Co}catch{}}return ht.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=u1,ht.createPortal=function(t,r){var s=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_u(r))throw Error(i(200));return o1(t,r,null,s)},ht.createRoot=function(t,r){if(!_u(t))throw Error(i(299));var s=!1,l="",d=_h;return r!=null&&(r.unstable_strictMode===!0&&(s=!0),r.identifierPrefix!==void 0&&(l=r.identifierPrefix),r.onRecoverableError!==void 0&&(d=r.onRecoverableError)),r=Nu(t,1,!1,null,null,s,!1,l,d),t[sn]=r.current,Ri(t.nodeType===8?t.parentNode:t),new Ru(r)},ht.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var r=t._reactInternals;if(r===void 0)throw typeof t.render=="function"?Error(i(188)):(t=Object.keys(t).join(","),Error(i(268,t)));return t=sf(r),t=t===null?null:t.stateNode,t},ht.flushSync=function(t){return ur(t)},ht.hydrate=function(t,r,s){if(!Eo(r))throw Error(i(200));return To(null,t,r,!0,s)},ht.hydrateRoot=function(t,r,s){if(!_u(t))throw Error(i(405));var l=s!=null&&s.hydratedSources||null,d=!1,m="",w=_h;if(s!=null&&(s.unstable_strictMode===!0&&(d=!0),s.identifierPrefix!==void 0&&(m=s.identifierPrefix),s.onRecoverableError!==void 0&&(w=s.onRecoverableError)),r=Ah(r,null,t,1,s??null,d,!1,m,w),t[sn]=r.current,Ri(t),l)for(t=0;t<l.length;t++)s=l[t],d=s._getVersion,d=d(s._source),r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[s,d]:r.mutableSourceEagerHydrationData.push(s,d);return new ko(r)},ht.render=function(t,r,s){if(!Eo(r))throw Error(i(200));return To(null,t,r,!1,s)},ht.unmountComponentAtNode=function(t){if(!Eo(t))throw Error(i(40));return t._reactRootContainer?(ur(function(){To(null,null,t,!1,function(){t._reactRootContainer=null,t[sn]=null})}),!0):!1},ht.unstable_batchedUpdates=bu,ht.unstable_renderSubtreeIntoContainer=function(t,r,s,l){if(!Eo(s))throw Error(i(200));if(t==null||t._reactInternals===void 0)throw Error(i(38));return To(t,r,s,!1,l)},ht.version="18.3.1-next-f1338f8080-20240426",ht}var Bh;function ya(){if(Bh)return Du.exports;Bh=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Du.exports=y1(),Du.exports}var Uh;function x1(){if(Uh)return No;Uh=1;var e=ya();return No.createRoot=e.createRoot,No.hydrateRoot=e.hydrateRoot,No}var w1=x1();function S1(e,n){if(e instanceof RegExp)return{keys:!1,pattern:e};var i,o,a,u,c=[],f="",p=e.split("/");for(p[0]||p.shift();a=p.shift();)i=a[0],i==="*"?(c.push(i),f+=a[1]==="?"?"(?:/(.*))?":"/(.*)"):i===":"?(o=a.indexOf("?",1),u=a.indexOf(".",1),c.push(a.substring(1,~o?o:~u?u:a.length)),f+=~o&&!~u?"(?:/([^/]+?))?":"/([^/]+?)",~u&&(f+=(~o?"?":"")+"\\"+a.substring(u))):f+="/"+a;return{keys:c,pattern:new RegExp("^"+f+(n?"(?=$|/)":"/?$"),"i")}}var C=tn();const Wn=ev(C),P1=f1({__proto__:null,default:Wn},[C]);var Fu={exports:{}},Vu={};var Hh;function b1(){if(Hh)return Vu;Hh=1;var e=tn();function n(y,x){return y===x&&(y!==0||1/y===1/x)||y!==y&&x!==x}var i=typeof Object.is=="function"?Object.is:n,o=e.useState,a=e.useEffect,u=e.useLayoutEffect,c=e.useDebugValue;function f(y,x){var S=x(),b=o({inst:{value:S,getSnapshot:x}}),P=b[0].inst,k=b[1];return u(function(){P.value=S,P.getSnapshot=x,p(P)&&k({inst:P})},[y,S,x]),a(function(){return p(P)&&k({inst:P}),y(function(){p(P)&&k({inst:P})})},[y]),c(S),S}function p(y){var x=y.getSnapshot;y=y.value;try{var S=x();return!i(y,S)}catch{return!0}}function h(y,x){return x()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:f;return Vu.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:g,Vu}var Wh;function k1(){return Wh||(Wh=1,Fu.exports=b1()),Fu.exports}var E1=k1();const T1=P1.useInsertionEffect,C1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",j1=C1?C.useLayoutEffect:C.useEffect,N1=T1||j1,tv=e=>{const n=C.useRef([e,(...i)=>n[0](...i)]).current;return N1(()=>{n[0]=e}),n[1]},A1="popstate",Fc="pushState",Vc="replaceState",R1="hashchange",$h=[A1,Fc,Vc,R1],_1=e=>{for(const n of $h)addEventListener(n,e);return()=>{for(const n of $h)removeEventListener(n,e)}},nv=(e,n)=>E1.useSyncExternalStore(_1,e,n),O1=()=>location.search,M1=({ssrSearch:e=""}={})=>nv(O1,()=>e),qh=()=>location.pathname,D1=({ssrPath:e}={})=>nv(qh,e?()=>e:qh),L1=(e,{replace:n=!1,state:i=null}={})=>history[n?Vc:Fc](i,"",e),I1=(e={})=>[D1(e),L1],Kh=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[Kh]>"u"){for(const e of[Fc,Vc]){const n=history[e];history[e]=function(){const i=n.apply(this,arguments),o=new Event(e);return o.arguments=arguments,dispatchEvent(o),i}}Object.defineProperty(window,Kh,{value:!0})}const F1=(e,n)=>n.toLowerCase().indexOf(e.toLowerCase())?"~"+n:n.slice(e.length)||"/",rv=(e="")=>e==="/"?"":e,V1=(e,n)=>e[0]==="~"?e.slice(1):rv(n)+e,z1=(e="",n)=>F1(Qh(rv(e)),Qh(n)),Qh=e=>{try{return decodeURI(e)}catch{return e}},iv={hook:I1,searchHook:M1,parser:S1,base:"",ssrPath:void 0,ssrSearch:void 0,hrefs:e=>e},sv=C.createContext(iv),xa=()=>C.useContext(sv),ov={},av=C.createContext(ov),B1=()=>C.useContext(av),zc=e=>{const[n,i]=e.hook(e);return[z1(e.base,n),tv((o,a)=>i(V1(o,e.base),a))]},lv=(e,n,i,o)=>{const{pattern:a,keys:u}=n instanceof RegExp?{keys:!1,pattern:n}:e(n||"*",o),c=a.exec(i)||[],[f,...p]=c;return f!==void 0?[!0,(()=>{const h=u!==!1?Object.fromEntries(u.map((y,x)=>[y,p[x]])):c.groups;let g={...p};return h&&Object.assign(g,h),g})(),...o?[f]:[]]:[!1,null]},U1=({children:e,...n})=>{const i=xa(),o=n.hook?iv:i;let a=o;const[u,c]=n.ssrPath?.split("?")??[];c&&(n.ssrSearch=c,n.ssrPath=u),n.hrefs=n.hrefs??n.hook?.hrefs;let f=C.useRef({}),p=f.current,h=p;for(let g in o){const y=g==="base"?o[g]+(n[g]||""):n[g]||o[g];p===h&&y!==h[g]&&(f.current=h={...h}),h[g]=y,y!==o[g]&&(a=h)}return C.createElement(sv.Provider,{value:a,children:e})},Gh=({children:e,component:n},i)=>n?C.createElement(n,{params:i}):typeof e=="function"?e(i):e,H1=e=>{let n=C.useRef(ov),i=n.current;for(const o in e)e[o]!==i[o]&&(i=e);return Object.keys(e).length===0&&(i=e),n.current=i},Yh=({path:e,nest:n,match:i,...o})=>{const a=xa(),[u]=zc(a),[c,f,p]=i??lv(a.parser,e,u,n),h=H1({...B1(),...f});if(!c)return null;const g=p?C.createElement(U1,{base:p},Gh(o,h)):Gh(o,h);return C.createElement(av.Provider,{value:h,children:g})};C.forwardRef((e,n)=>{const i=xa(),[o,a]=zc(i),{to:u="",href:c=u,onClick:f,asChild:p,children:h,className:g,replace:y,state:x,...S}=e,b=tv(k=>{k.ctrlKey||k.metaKey||k.altKey||k.shiftKey||k.button!==0||(f?.(k),k.defaultPrevented||(k.preventDefault(),a(c,e)))}),P=i.hrefs(c[0]==="~"?c.slice(1):i.base+c,i);return p&&C.isValidElement(h)?C.cloneElement(h,{onClick:b,href:P}):C.createElement("a",{...S,onClick:b,href:P,className:g?.call?g(o===c):g,children:h,ref:n})});const uv=e=>Array.isArray(e)?e.flatMap(n=>uv(n&&n.type===C.Fragment?n.props.children:n)):[e],W1=({children:e,location:n})=>{const i=xa(),[o]=zc(i);for(const a of uv(e)){let u=0;if(C.isValidElement(a)&&(u=lv(i.parser,a.props.path,n||o,a.props.nest))[0])return C.cloneElement(a,{match:u})}return null};var wa=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Sa=typeof window>"u"||"Deno"in globalThis;function Bt(){}function $1(e,n){return typeof e=="function"?e(n):e}function q1(e){return typeof e=="number"&&e>=0&&e!==1/0}function K1(e,n){return Math.max(e+(n||0)-Date.now(),0)}function Xh(e,n){return typeof e=="function"?e(n):e}function Q1(e,n){return typeof e=="function"?e(n):e}function Zh(e,n){const{type:i="all",exact:o,fetchStatus:a,predicate:u,queryKey:c,stale:f}=e;if(c){if(o){if(n.queryHash!==Bc(c,n.options))return!1}else if(!as(n.queryKey,c))return!1}if(i!=="all"){const p=n.isActive();if(i==="active"&&!p||i==="inactive"&&p)return!1}return!(typeof f=="boolean"&&n.isStale()!==f||a&&a!==n.state.fetchStatus||u&&!u(n))}function Jh(e,n){const{exact:i,status:o,predicate:a,mutationKey:u}=e;if(u){if(!n.options.mutationKey)return!1;if(i){if(os(n.options.mutationKey)!==os(u))return!1}else if(!as(n.options.mutationKey,u))return!1}return!(o&&n.state.status!==o||a&&!a(n))}function Bc(e,n){return(n?.queryKeyHashFn||os)(e)}function os(e){return JSON.stringify(e,(n,i)=>fc(i)?Object.keys(i).sort().reduce((o,a)=>(o[a]=i[a],o),{}):i)}function as(e,n){return e===n?!0:typeof e!=typeof n?!1:e&&n&&typeof e=="object"&&typeof n=="object"?!Object.keys(n).some(i=>!as(e[i],n[i])):!1}function cv(e,n){if(e===n)return e;const i=em(e)&&em(n);if(i||fc(e)&&fc(n)){const o=i?e:Object.keys(e),a=o.length,u=i?n:Object.keys(n),c=u.length,f=i?[]:{};let p=0;for(let h=0;h<c;h++){const g=i?h:u[h];(!i&&o.includes(g)||i)&&e[g]===void 0&&n[g]===void 0?(f[g]=void 0,p++):(f[g]=cv(e[g],n[g]),f[g]===e[g]&&e[g]!==void 0&&p++)}return a===c&&p===a?e:f}return n}function em(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function fc(e){if(!tm(e))return!1;const n=e.constructor;if(n===void 0)return!0;const i=n.prototype;return!(!tm(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function tm(e){return Object.prototype.toString.call(e)==="[object Object]"}function G1(e){return new Promise(n=>{setTimeout(n,e)})}function Y1(e,n,i){return typeof i.structuralSharing=="function"?i.structuralSharing(e,n):i.structuralSharing!==!1?cv(e,n):n}function X1(e,n,i=0){const o=[...e,n];return i&&o.length>i?o.slice(1):o}function Z1(e,n,i=0){const o=[n,...e];return i&&o.length>i?o.slice(0,-1):o}var Uc=Symbol();function dv(e,n){return!e.queryFn&&n?.initialPromise?()=>n.initialPromise:!e.queryFn||e.queryFn===Uc?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var J1=class extends wa{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!Sa&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},fv=new J1,eS=class extends wa{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!Sa&&window.addEventListener){const n=()=>e(!0),i=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",i)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(i=>{i(e)}))}isOnline(){return this.#e}},ia=new eS;function tS(){let e,n;const i=new Promise((a,u)=>{e=a,n=u});i.status="pending",i.catch(()=>{});function o(a){Object.assign(i,a),delete i.resolve,delete i.reject}return i.resolve=a=>{o({status:"fulfilled",value:a}),e(a)},i.reject=a=>{o({status:"rejected",reason:a}),n(a)},i}function nS(e){return Math.min(1e3*2**e,3e4)}function pv(e){return(e??"online")==="online"?ia.isOnline():!0}var hv=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function zu(e){return e instanceof hv}function mv(e){let n=!1,i=0,o=!1,a;const u=tS(),c=P=>{o||(x(new hv(P)),e.abort?.())},f=()=>{n=!0},p=()=>{n=!1},h=()=>fv.isFocused()&&(e.networkMode==="always"||ia.isOnline())&&e.canRun(),g=()=>pv(e.networkMode)&&e.canRun(),y=P=>{o||(o=!0,e.onSuccess?.(P),a?.(),u.resolve(P))},x=P=>{o||(o=!0,e.onError?.(P),a?.(),u.reject(P))},S=()=>new Promise(P=>{a=k=>{(o||h())&&P(k)},e.onPause?.()}).then(()=>{a=void 0,o||e.onContinue?.()}),b=()=>{if(o)return;let P;const k=i===0?e.initialPromise:void 0;try{P=k??e.fn()}catch(E){P=Promise.reject(E)}Promise.resolve(P).then(y).catch(E=>{if(o)return;const j=e.retry??(Sa?0:3),N=e.retryDelay??nS,O=typeof N=="function"?N(i,E):N,M=j===!0||typeof j=="number"&&i<j||typeof j=="function"&&j(i,E);if(n||!M){x(E);return}i++,e.onFail?.(i,E),G1(O).then(()=>h()?void 0:S()).then(()=>{n?x(E):b()})})};return{promise:u,cancel:c,continue:()=>(a?.(),u),cancelRetry:f,continueRetry:p,canStart:g,start:()=>(g()?b():S().then(b),u)}}function rS(){let e=[],n=0,i=f=>{f()},o=f=>{f()},a=f=>setTimeout(f,0);const u=f=>{n?e.push(f):a(()=>{i(f)})},c=()=>{const f=e;e=[],f.length&&a(()=>{o(()=>{f.forEach(p=>{i(p)})})})};return{batch:f=>{let p;n++;try{p=f()}finally{n--,n||c()}return p},batchCalls:f=>(...p)=>{u(()=>{f(...p)})},schedule:u,setNotifyFunction:f=>{i=f},setBatchNotifyFunction:f=>{o=f},setScheduler:f=>{a=f}}}var lt=rS(),gv=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),q1(this.gcTime)&&(this.#e=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Sa?1/0:300*1e3))}clearGcTimeout(){this.#e&&(clearTimeout(this.#e),this.#e=void 0)}},iS=class extends gv{#e;#t;#n;#r;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#n=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=oS(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){this.options={...this.#o,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,n){const i=Y1(this.state.data,e,this.options);return this.#i({data:i,type:"success",dataUpdatedAt:n?.updatedAt,manual:n?.manual}),i}setState(e,n){this.#i({type:"setState",state:e,setStateOptions:n})}cancel(e){const n=this.#r?.promise;return this.#r?.cancel(e),n?n.then(Bt).catch(Bt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>Q1(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Uc||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(e=0){return this.state.isInvalidated||this.state.data===void 0||!K1(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(n=>n.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(n=>n.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(this.#r&&(this.#s?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}fetch(e,n){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&n?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const i=new AbortController,o=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(this.#s=!0,i.signal)})},a=()=>{const f=dv(this.options,n),p={queryKey:this.queryKey,meta:this.meta};return o(p),this.#s=!1,this.options.persister?this.options.persister(f,p,this):f(p)},u={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};o(u),this.options.behavior?.onFetch(u,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==u.fetchOptions?.meta)&&this.#i({type:"fetch",meta:u.fetchOptions?.meta});const c=f=>{zu(f)&&f.silent||this.#i({type:"error",error:f}),zu(f)||(this.#n.config.onError?.(f,this),this.#n.config.onSettled?.(this.state.data,f,this)),this.scheduleGc()};return this.#r=mv({initialPromise:n?.initialPromise,fn:u.fetchFn,abort:i.abort.bind(i),onSuccess:f=>{if(f===void 0){c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(p){c(p);return}this.#n.config.onSuccess?.(f,this),this.#n.config.onSettled?.(f,this.state.error,this),this.scheduleGc()},onError:c,onFail:(f,p)=>{this.#i({type:"failed",failureCount:f,error:p})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0}),this.#r.start()}#i(e){const n=i=>{switch(e.type){case"failed":return{...i,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...sS(i.data,this.options),fetchMeta:e.meta??null};case"success":return{...i,data:e.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=e.error;return zu(o)&&o.revert&&this.#t?{...this.#t,fetchStatus:"idle"}:{...i,error:o,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...e.state}}};this.state=n(this.state),lt.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function sS(e,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:pv(n.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function oS(e){const n=typeof e.initialData=="function"?e.initialData():e.initialData,i=n!==void 0,o=i?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:n,dataUpdateCount:0,dataUpdatedAt:i?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var aS=class extends wa{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,n,i){const o=n.queryKey,a=n.queryHash??Bc(o,n);let u=this.get(a);return u||(u=new iS({cache:this,queryKey:o,queryHash:a,options:e.defaultQueryOptions(n),state:i,defaultOptions:e.getQueryDefaults(o)}),this.add(u)),u}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=this.#e.get(e.queryHash);n&&(e.destroy(),n===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){lt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const n={exact:!0,...e};return this.getAll().find(i=>Zh(n,i))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(i=>Zh(e,i)):n}notify(e){lt.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){lt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){lt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},lS=class extends gv{#e;#t;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#t=e.mutationCache,this.#e=[],this.state=e.state||uS(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(n=>n!==e),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){this.#n=mv({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(o,a)=>{this.#r({type:"failed",failureCount:o,error:a})},onPause:()=>{this.#r({type:"pause"})},onContinue:()=>{this.#r({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const n=this.state.status==="pending",i=!this.#n.canStart();try{if(!n){this.#r({type:"pending",variables:e,isPaused:i}),await this.#t.config.onMutate?.(e,this);const a=await this.options.onMutate?.(e);a!==this.state.context&&this.#r({type:"pending",context:a,variables:e,isPaused:i})}const o=await this.#n.start();return await this.#t.config.onSuccess?.(o,e,this.state.context,this),await this.options.onSuccess?.(o,e,this.state.context),await this.#t.config.onSettled?.(o,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(o,null,e,this.state.context),this.#r({type:"success",data:o}),o}catch(o){try{throw await this.#t.config.onError?.(o,e,this.state.context,this),await this.options.onError?.(o,e,this.state.context),await this.#t.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,o,e,this.state.context),o}finally{this.#r({type:"error",error:o})}}finally{this.#t.runNext(this)}}#r(e){const n=i=>{switch(e.type){case"failed":return{...i,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...i,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:e.error,failureCount:i.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),lt.batch(()=>{this.#e.forEach(i=>{i.onMutationUpdate(e)}),this.#t.notify({mutation:this,type:"updated",action:e})})}};function uS(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var cS=class extends wa{constructor(e={}){super(),this.config=e,this.#e=new Map,this.#t=Date.now()}#e;#t;build(e,n,i){const o=new lS({mutationCache:this,mutationId:++this.#t,options:e.defaultMutationOptions(n),state:i});return this.add(o),o}add(e){const n=Ao(e),i=this.#e.get(n)??[];i.push(e),this.#e.set(n,i),this.notify({type:"added",mutation:e})}remove(e){const n=Ao(e);if(this.#e.has(n)){const i=this.#e.get(n)?.filter(o=>o!==e);i&&(i.length===0?this.#e.delete(n):this.#e.set(n,i))}this.notify({type:"removed",mutation:e})}canRun(e){const n=this.#e.get(Ao(e))?.find(i=>i.state.status==="pending");return!n||n===e}runNext(e){return this.#e.get(Ao(e))?.find(i=>i!==e&&i.state.isPaused)?.continue()??Promise.resolve()}clear(){lt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...this.#e.values()].flat()}find(e){const n={exact:!0,...e};return this.getAll().find(i=>Jh(n,i))}findAll(e={}){return this.getAll().filter(n=>Jh(e,n))}notify(e){lt.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return lt.batch(()=>Promise.all(e.map(n=>n.continue().catch(Bt))))}};function Ao(e){return e.options.scope?.id??String(e.mutationId)}function nm(e){return{onFetch:(n,i)=>{const o=n.options,a=n.fetchOptions?.meta?.fetchMore?.direction,u=n.state.data?.pages||[],c=n.state.data?.pageParams||[];let f={pages:[],pageParams:[]},p=0;const h=async()=>{let g=!1;const y=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(n.signal.aborted?g=!0:n.signal.addEventListener("abort",()=>{g=!0}),n.signal)})},x=dv(n.options,n.fetchOptions),S=async(b,P,k)=>{if(g)return Promise.reject();if(P==null&&b.pages.length)return Promise.resolve(b);const E={queryKey:n.queryKey,pageParam:P,direction:k?"backward":"forward",meta:n.options.meta};y(E);const j=await x(E),{maxPages:N}=n.options,O=k?Z1:X1;return{pages:O(b.pages,j,N),pageParams:O(b.pageParams,P,N)}};if(a&&u.length){const b=a==="backward",P=b?dS:rm,k={pages:u,pageParams:c},E=P(o,k);f=await S(k,E,b)}else{const b=e??u.length;do{const P=p===0?c[0]??o.initialPageParam:rm(o,f);if(p>0&&P==null)break;f=await S(f,P),p++}while(p<b)}return f};n.options.persister?n.fetchFn=()=>n.options.persister?.(h,{queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},i):n.fetchFn=h}}}function rm(e,{pages:n,pageParams:i}){const o=n.length-1;return n.length>0?e.getNextPageParam(n[o],n,i[o],i):void 0}function dS(e,{pages:n,pageParams:i}){return n.length>0?e.getPreviousPageParam?.(n[0],n,i[0],i):void 0}var fS=class{#e;#t;#n;#r;#o;#s;#i;#a;constructor(e={}){this.#e=e.queryCache||new aS,this.#t=e.mutationCache||new cS,this.#n=e.defaultOptions||{},this.#r=new Map,this.#o=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#i=fv.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#a=ia.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#i?.(),this.#i=void 0,this.#a?.(),this.#a=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const n=this.defaultQueryOptions({queryKey:e});return this.#e.get(n.queryHash)?.state.data}ensureQueryData(e){const n=this.getQueryData(e.queryKey);if(n===void 0)return this.fetchQuery(e);{const i=this.defaultQueryOptions(e),o=this.#e.build(this,i);return e.revalidateIfStale&&o.isStaleByTime(Xh(i.staleTime,o))&&this.prefetchQuery(i),Promise.resolve(n)}}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:n,state:i})=>{const o=i.data;return[n,o]})}setQueryData(e,n,i){const o=this.defaultQueryOptions({queryKey:e}),u=this.#e.get(o.queryHash)?.state.data,c=$1(n,u);if(c!==void 0)return this.#e.build(this,o).setData(c,{...i,manual:!0})}setQueriesData(e,n,i){return lt.batch(()=>this.#e.findAll(e).map(({queryKey:o})=>[o,this.setQueryData(o,n,i)]))}getQueryState(e){const n=this.defaultQueryOptions({queryKey:e});return this.#e.get(n.queryHash)?.state}removeQueries(e){const n=this.#e;lt.batch(()=>{n.findAll(e).forEach(i=>{n.remove(i)})})}resetQueries(e,n){const i=this.#e,o={type:"active",...e};return lt.batch(()=>(i.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries(o,n)))}cancelQueries(e={},n={}){const i={revert:!0,...n},o=lt.batch(()=>this.#e.findAll(e).map(a=>a.cancel(i)));return Promise.all(o).then(Bt).catch(Bt)}invalidateQueries(e={},n={}){return lt.batch(()=>{if(this.#e.findAll(e).forEach(o=>{o.invalidate()}),e.refetchType==="none")return Promise.resolve();const i={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(i,n)})}refetchQueries(e={},n){const i={...n,cancelRefetch:n?.cancelRefetch??!0},o=lt.batch(()=>this.#e.findAll(e).filter(a=>!a.isDisabled()).map(a=>{let u=a.fetch(void 0,i);return i.throwOnError||(u=u.catch(Bt)),a.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(o).then(Bt)}fetchQuery(e){const n=this.defaultQueryOptions(e);n.retry===void 0&&(n.retry=!1);const i=this.#e.build(this,n);return i.isStaleByTime(Xh(n.staleTime,i))?i.fetch(n):Promise.resolve(i.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Bt).catch(Bt)}fetchInfiniteQuery(e){return e.behavior=nm(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Bt).catch(Bt)}ensureInfiniteQueryData(e){return e.behavior=nm(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ia.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,n){this.#r.set(os(e),{queryKey:e,defaultOptions:n})}getQueryDefaults(e){const n=[...this.#r.values()];let i={};return n.forEach(o=>{as(e,o.queryKey)&&(i={...i,...o.defaultOptions})}),i}setMutationDefaults(e,n){this.#o.set(os(e),{mutationKey:e,defaultOptions:n})}getMutationDefaults(e){const n=[...this.#o.values()];let i={};return n.forEach(o=>{as(e,o.mutationKey)&&(i={...i,...o.defaultOptions})}),i}defaultQueryOptions(e){if(e._defaulted)return e;const n={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return n.queryHash||(n.queryHash=Bc(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.enabled!==!0&&n.queryFn===Uc&&(n.enabled=!1),n}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},pS=C.createContext(void 0),hS=({client:e,children:n})=>(C.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),v.jsx(pS.Provider,{value:e,children:n}));async function mS(e){if(!e.ok){const n=await e.text()||e.statusText;throw new Error(`${e.status}: ${n}`)}}const gS=({on401:e})=>async({queryKey:n})=>{const i=await fetch(n.join("/"),{credentials:"include"});return await mS(i),await i.json()},vS=new fS({defaultOptions:{queries:{queryFn:gS({on401:"throw"}),refetchInterval:!1,refetchOnWindowFocus:!1,staleTime:1/0,retry:!1},mutations:{retry:!1}}}),yS=1,xS=1e6;let Bu=0;function wS(){return Bu=(Bu+1)%Number.MAX_SAFE_INTEGER,Bu.toString()}const Uu=new Map,im=e=>{if(Uu.has(e))return;const n=setTimeout(()=>{Uu.delete(e),ns({type:"REMOVE_TOAST",toastId:e})},xS);Uu.set(e,n)},SS=(e,n)=>{switch(n.type){case"ADD_TOAST":return{...e,toasts:[n.toast,...e.toasts].slice(0,yS)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(i=>i.id===n.toast.id?{...i,...n.toast}:i)};case"DISMISS_TOAST":{const{toastId:i}=n;return i?im(i):e.toasts.forEach(o=>{im(o.id)}),{...e,toasts:e.toasts.map(o=>o.id===i||i===void 0?{...o,open:!1}:o)}}case"REMOVE_TOAST":return n.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(i=>i.id!==n.toastId)}}},Xo=[];let Zo={toasts:[]};function ns(e){Zo=SS(Zo,e),Xo.forEach(n=>{n(Zo)})}function PS({...e}){const n=wS(),i=a=>ns({type:"UPDATE_TOAST",toast:{...a,id:n}}),o=()=>ns({type:"DISMISS_TOAST",toastId:n});return ns({type:"ADD_TOAST",toast:{...e,id:n,open:!0,onOpenChange:a=>{a||o()}}}),{id:n,dismiss:o,update:i}}function bS(){const[e,n]=C.useState(Zo);return C.useEffect(()=>(Xo.push(n),()=>{const i=Xo.indexOf(n);i>-1&&Xo.splice(i,1)}),[e]),{...e,toast:PS,dismiss:i=>ns({type:"DISMISS_TOAST",toastId:i})}}var Pa=ya();const kS=ev(Pa);function qe(e,n,{checkForDefaultPrevented:i=!0}={}){return function(a){if(e?.(a),i===!1||!a.defaultPrevented)return n?.(a)}}function sm(e,n){if(typeof e=="function")return e(n);e!=null&&(e.current=n)}function vv(...e){return n=>{let i=!1;const o=e.map(a=>{const u=sm(a,n);return!i&&typeof u=="function"&&(i=!0),u});if(i)return()=>{for(let a=0;a<o.length;a++){const u=o[a];typeof u=="function"?u():sm(e[a],null)}}}}function Ut(...e){return C.useCallback(vv(...e),e)}function ba(e,n=[]){let i=[];function o(u,c){const f=C.createContext(c),p=i.length;i=[...i,c];const h=y=>{const{scope:x,children:S,...b}=y,P=x?.[e]?.[p]||f,k=C.useMemo(()=>b,Object.values(b));return v.jsx(P.Provider,{value:k,children:S})};h.displayName=u+"Provider";function g(y,x){const S=x?.[e]?.[p]||f,b=C.useContext(S);if(b)return b;if(c!==void 0)return c;throw new Error(`\`${y}\` must be used within \`${u}\``)}return[h,g]}const a=()=>{const u=i.map(c=>C.createContext(c));return function(f){const p=f?.[e]||u;return C.useMemo(()=>({[`__scope${e}`]:{...f,[e]:p}}),[f,p])}};return a.scopeName=e,[o,ES(a,...n)]}function ES(...e){const n=e[0];if(e.length===1)return n;const i=()=>{const o=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(u){const c=o.reduce((f,{useScope:p,scopeName:h})=>{const y=p(u)[`__scope${h}`];return{...f,...y}},{});return C.useMemo(()=>({[`__scope${n.scopeName}`]:c}),[c])}};return i.scopeName=n.scopeName,i}function sa(e){const n=CS(e),i=C.forwardRef((o,a)=>{const{children:u,...c}=o,f=C.Children.toArray(u),p=f.find(NS);if(p){const h=p.props.children,g=f.map(y=>y===p?C.Children.count(h)>1?C.Children.only(null):C.isValidElement(h)?h.props.children:null:y);return v.jsx(n,{...c,ref:a,children:C.isValidElement(h)?C.cloneElement(h,void 0,g):null})}return v.jsx(n,{...c,ref:a,children:u})});return i.displayName=`${e}.Slot`,i}var TS=sa("Slot");function CS(e){const n=C.forwardRef((i,o)=>{const{children:a,...u}=i;if(C.isValidElement(a)){const c=RS(a),f=AS(u,a.props);return a.type!==C.Fragment&&(f.ref=o?vv(o,c):c),C.cloneElement(a,f)}return C.Children.count(a)>1?C.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var yv=Symbol("radix.slottable");function jS(e){const n=({children:i})=>v.jsx(v.Fragment,{children:i});return n.displayName=`${e}.Slottable`,n.__radixId=yv,n}function NS(e){return C.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===yv}function AS(e,n){const i={...n};for(const o in n){const a=e[o],u=n[o];/^on[A-Z]/.test(o)?a&&u?i[o]=(...f)=>{u(...f),a(...f)}:a&&(i[o]=a):o==="style"?i[o]={...a,...u}:o==="className"&&(i[o]=[a,u].filter(Boolean).join(" "))}return{...e,...i}}function RS(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,i=n&&"isReactWarning"in n&&n.isReactWarning;return i?e.ref:(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,i=n&&"isReactWarning"in n&&n.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}function _S(e){const n=e+"CollectionProvider",[i,o]=ba(n),[a,u]=i(n,{collectionRef:{current:null},itemMap:new Map}),c=P=>{const{scope:k,children:E}=P,j=Wn.useRef(null),N=Wn.useRef(new Map).current;return v.jsx(a,{scope:k,itemMap:N,collectionRef:j,children:E})};c.displayName=n;const f=e+"CollectionSlot",p=sa(f),h=Wn.forwardRef((P,k)=>{const{scope:E,children:j}=P,N=u(f,E),O=Ut(k,N.collectionRef);return v.jsx(p,{ref:O,children:j})});h.displayName=f;const g=e+"CollectionItemSlot",y="data-radix-collection-item",x=sa(g),S=Wn.forwardRef((P,k)=>{const{scope:E,children:j,...N}=P,O=Wn.useRef(null),M=Ut(k,O),V=u(g,E);return Wn.useEffect(()=>(V.itemMap.set(O,{ref:O,...N}),()=>{V.itemMap.delete(O)})),v.jsx(x,{[y]:"",ref:M,children:j})});S.displayName=g;function b(P){const k=u(e+"CollectionConsumer",P);return Wn.useCallback(()=>{const j=k.collectionRef.current;if(!j)return[];const N=Array.from(j.querySelectorAll(`[${y}]`));return Array.from(k.itemMap.values()).sort((V,F)=>N.indexOf(V.ref.current)-N.indexOf(F.ref.current))},[k.collectionRef,k.itemMap])}return[{Provider:c,Slot:h,ItemSlot:S},b,o]}var OS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],mt=OS.reduce((e,n)=>{const i=sa(`Primitive.${n}`),o=C.forwardRef((a,u)=>{const{asChild:c,...f}=a,p=c?i:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(p,{...f,ref:u})});return o.displayName=`Primitive.${n}`,{...e,[n]:o}},{});function xv(e,n){e&&Pa.flushSync(()=>e.dispatchEvent(n))}function Jt(e){const n=C.useRef(e);return C.useEffect(()=>{n.current=e}),C.useMemo(()=>(...i)=>n.current?.(...i),[])}function MS(e,n=globalThis?.document){const i=Jt(e);C.useEffect(()=>{const o=a=>{a.key==="Escape"&&i(a)};return n.addEventListener("keydown",o,{capture:!0}),()=>n.removeEventListener("keydown",o,{capture:!0})},[i,n])}var DS="DismissableLayer",pc="dismissableLayer.update",LS="dismissableLayer.pointerDownOutside",IS="dismissableLayer.focusOutside",om,wv=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Hc=C.forwardRef((e,n)=>{const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:u,onInteractOutside:c,onDismiss:f,...p}=e,h=C.useContext(wv),[g,y]=C.useState(null),x=g?.ownerDocument??globalThis?.document,[,S]=C.useState({}),b=Ut(n,F=>y(F)),P=Array.from(h.layers),[k]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),E=P.indexOf(k),j=g?P.indexOf(g):-1,N=h.layersWithOutsidePointerEventsDisabled.size>0,O=j>=E,M=VS(F=>{const H=F.target,Y=[...h.branches].some(q=>q.contains(H));!O||Y||(a?.(F),c?.(F),F.defaultPrevented||f?.())},x),V=zS(F=>{const H=F.target;[...h.branches].some(q=>q.contains(H))||(u?.(F),c?.(F),F.defaultPrevented||f?.())},x);return MS(F=>{j===h.layers.size-1&&(o?.(F),!F.defaultPrevented&&f&&(F.preventDefault(),f()))},x),C.useEffect(()=>{if(g)return i&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(om=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(g)),h.layers.add(g),am(),()=>{i&&h.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=om)}},[g,x,i,h]),C.useEffect(()=>()=>{g&&(h.layers.delete(g),h.layersWithOutsidePointerEventsDisabled.delete(g),am())},[g,h]),C.useEffect(()=>{const F=()=>S({});return document.addEventListener(pc,F),()=>document.removeEventListener(pc,F)},[]),v.jsx(mt.div,{...p,ref:b,style:{pointerEvents:N?O?"auto":"none":void 0,...e.style},onFocusCapture:qe(e.onFocusCapture,V.onFocusCapture),onBlurCapture:qe(e.onBlurCapture,V.onBlurCapture),onPointerDownCapture:qe(e.onPointerDownCapture,M.onPointerDownCapture)})});Hc.displayName=DS;var FS="DismissableLayerBranch",Sv=C.forwardRef((e,n)=>{const i=C.useContext(wv),o=C.useRef(null),a=Ut(n,o);return C.useEffect(()=>{const u=o.current;if(u)return i.branches.add(u),()=>{i.branches.delete(u)}},[i.branches]),v.jsx(mt.div,{...e,ref:a})});Sv.displayName=FS;function VS(e,n=globalThis?.document){const i=Jt(e),o=C.useRef(!1),a=C.useRef(()=>{});return C.useEffect(()=>{const u=f=>{if(f.target&&!o.current){let p=function(){Pv(LS,i,h,{discrete:!0})};const h={originalEvent:f};f.pointerType==="touch"?(n.removeEventListener("click",a.current),a.current=p,n.addEventListener("click",a.current,{once:!0})):p()}else n.removeEventListener("click",a.current);o.current=!1},c=window.setTimeout(()=>{n.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(c),n.removeEventListener("pointerdown",u),n.removeEventListener("click",a.current)}},[n,i]),{onPointerDownCapture:()=>o.current=!0}}function zS(e,n=globalThis?.document){const i=Jt(e),o=C.useRef(!1);return C.useEffect(()=>{const a=u=>{u.target&&!o.current&&Pv(IS,i,{originalEvent:u},{discrete:!1})};return n.addEventListener("focusin",a),()=>n.removeEventListener("focusin",a)},[n,i]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function am(){const e=new CustomEvent(pc);document.dispatchEvent(e)}function Pv(e,n,i,{discrete:o}){const a=i.originalEvent.target,u=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:i});n&&a.addEventListener(e,n,{once:!0}),o?xv(a,u):a.dispatchEvent(u)}var BS=Hc,US=Sv,yr=globalThis?.document?C.useLayoutEffect:()=>{},HS="Portal",bv=C.forwardRef((e,n)=>{const{container:i,...o}=e,[a,u]=C.useState(!1);yr(()=>u(!0),[]);const c=i||a&&globalThis?.document?.body;return c?kS.createPortal(v.jsx(mt.div,{...o,ref:n}),c):null});bv.displayName=HS;function WS(e,n){return C.useReducer((i,o)=>n[i][o]??i,e)}var Wc=e=>{const{present:n,children:i}=e,o=$S(n),a=typeof i=="function"?i({present:o.isPresent}):C.Children.only(i),u=Ut(o.ref,qS(a));return typeof i=="function"||o.isPresent?C.cloneElement(a,{ref:u}):null};Wc.displayName="Presence";function $S(e){const[n,i]=C.useState(),o=C.useRef({}),a=C.useRef(e),u=C.useRef("none"),c=e?"mounted":"unmounted",[f,p]=WS(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return C.useEffect(()=>{const h=Ro(o.current);u.current=f==="mounted"?h:"none"},[f]),yr(()=>{const h=o.current,g=a.current;if(g!==e){const x=u.current,S=Ro(h);e?p("MOUNT"):S==="none"||h?.display==="none"?p("UNMOUNT"):p(g&&x!==S?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,p]),yr(()=>{if(n){let h;const g=n.ownerDocument.defaultView??window,y=S=>{const P=Ro(o.current).includes(S.animationName);if(S.target===n&&P&&(p("ANIMATION_END"),!a.current)){const k=n.style.animationFillMode;n.style.animationFillMode="forwards",h=g.setTimeout(()=>{n.style.animationFillMode==="forwards"&&(n.style.animationFillMode=k)})}},x=S=>{S.target===n&&(u.current=Ro(o.current))};return n.addEventListener("animationstart",x),n.addEventListener("animationcancel",y),n.addEventListener("animationend",y),()=>{g.clearTimeout(h),n.removeEventListener("animationstart",x),n.removeEventListener("animationcancel",y),n.removeEventListener("animationend",y)}}else p("ANIMATION_END")},[n,p]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:C.useCallback(h=>{h&&(o.current=getComputedStyle(h)),i(h)},[])}}function Ro(e){return e?.animationName||"none"}function qS(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,i=n&&"isReactWarning"in n&&n.isReactWarning;return i?e.ref:(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,i=n&&"isReactWarning"in n&&n.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}function KS({prop:e,defaultProp:n,onChange:i=()=>{}}){const[o,a]=QS({defaultProp:n,onChange:i}),u=e!==void 0,c=u?e:o,f=Jt(i),p=C.useCallback(h=>{if(u){const y=typeof h=="function"?h(e):h;y!==e&&f(y)}else a(h)},[u,e,a,f]);return[c,p]}function QS({defaultProp:e,onChange:n}){const i=C.useState(e),[o]=i,a=C.useRef(o),u=Jt(n);return C.useEffect(()=>{a.current!==o&&(u(o),a.current=o)},[o,a,u]),i}var GS="VisuallyHidden",ka=C.forwardRef((e,n)=>v.jsx(mt.span,{...e,ref:n,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));ka.displayName=GS;var YS=ka,$c="ToastProvider",[qc,XS,ZS]=_S("Toast"),[kv]=ba("Toast",[ZS]),[JS,Ea]=kv($c),Ev=e=>{const{__scopeToast:n,label:i="Notification",duration:o=5e3,swipeDirection:a="right",swipeThreshold:u=50,children:c}=e,[f,p]=C.useState(null),[h,g]=C.useState(0),y=C.useRef(!1),x=C.useRef(!1);return i.trim()||console.error(`Invalid prop \`label\` supplied to \`${$c}\`. Expected non-empty \`string\`.`),v.jsx(qc.Provider,{scope:n,children:v.jsx(JS,{scope:n,label:i,duration:o,swipeDirection:a,swipeThreshold:u,toastCount:h,viewport:f,onViewportChange:p,onToastAdd:C.useCallback(()=>g(S=>S+1),[]),onToastRemove:C.useCallback(()=>g(S=>S-1),[]),isFocusedToastEscapeKeyDownRef:y,isClosePausedRef:x,children:c})})};Ev.displayName=$c;var Tv="ToastViewport",eP=["F8"],hc="toast.viewportPause",mc="toast.viewportResume",Cv=C.forwardRef((e,n)=>{const{__scopeToast:i,hotkey:o=eP,label:a="Notifications ({hotkey})",...u}=e,c=Ea(Tv,i),f=XS(i),p=C.useRef(null),h=C.useRef(null),g=C.useRef(null),y=C.useRef(null),x=Ut(n,y,c.onViewportChange),S=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=c.toastCount>0;C.useEffect(()=>{const k=E=>{o.length!==0&&o.every(N=>E[N]||E.code===N)&&y.current?.focus()};return document.addEventListener("keydown",k),()=>document.removeEventListener("keydown",k)},[o]),C.useEffect(()=>{const k=p.current,E=y.current;if(b&&k&&E){const j=()=>{if(!c.isClosePausedRef.current){const V=new CustomEvent(hc);E.dispatchEvent(V),c.isClosePausedRef.current=!0}},N=()=>{if(c.isClosePausedRef.current){const V=new CustomEvent(mc);E.dispatchEvent(V),c.isClosePausedRef.current=!1}},O=V=>{!k.contains(V.relatedTarget)&&N()},M=()=>{k.contains(document.activeElement)||N()};return k.addEventListener("focusin",j),k.addEventListener("focusout",O),k.addEventListener("pointermove",j),k.addEventListener("pointerleave",M),window.addEventListener("blur",j),window.addEventListener("focus",N),()=>{k.removeEventListener("focusin",j),k.removeEventListener("focusout",O),k.removeEventListener("pointermove",j),k.removeEventListener("pointerleave",M),window.removeEventListener("blur",j),window.removeEventListener("focus",N)}}},[b,c.isClosePausedRef]);const P=C.useCallback(({tabbingDirection:k})=>{const j=f().map(N=>{const O=N.ref.current,M=[O,...pP(O)];return k==="forwards"?M:M.reverse()});return(k==="forwards"?j.reverse():j).flat()},[f]);return C.useEffect(()=>{const k=y.current;if(k){const E=j=>{const N=j.altKey||j.ctrlKey||j.metaKey;if(j.key==="Tab"&&!N){const M=document.activeElement,V=j.shiftKey;if(j.target===k&&V){h.current?.focus();return}const Y=P({tabbingDirection:V?"backwards":"forwards"}),q=Y.findIndex($=>$===M);Hu(Y.slice(q+1))?j.preventDefault():V?h.current?.focus():g.current?.focus()}};return k.addEventListener("keydown",E),()=>k.removeEventListener("keydown",E)}},[f,P]),v.jsxs(US,{ref:p,role:"region","aria-label":a.replace("{hotkey}",S),tabIndex:-1,style:{pointerEvents:b?void 0:"none"},children:[b&&v.jsx(gc,{ref:h,onFocusFromOutsideViewport:()=>{const k=P({tabbingDirection:"forwards"});Hu(k)}}),v.jsx(qc.Slot,{scope:i,children:v.jsx(mt.ol,{tabIndex:-1,...u,ref:x})}),b&&v.jsx(gc,{ref:g,onFocusFromOutsideViewport:()=>{const k=P({tabbingDirection:"backwards"});Hu(k)}})]})});Cv.displayName=Tv;var jv="ToastFocusProxy",gc=C.forwardRef((e,n)=>{const{__scopeToast:i,onFocusFromOutsideViewport:o,...a}=e,u=Ea(jv,i);return v.jsx(ka,{"aria-hidden":!0,tabIndex:0,...a,ref:n,style:{position:"fixed"},onFocus:c=>{const f=c.relatedTarget;!u.viewport?.contains(f)&&o()}})});gc.displayName=jv;var Ta="Toast",tP="toast.swipeStart",nP="toast.swipeMove",rP="toast.swipeCancel",iP="toast.swipeEnd",Nv=C.forwardRef((e,n)=>{const{forceMount:i,open:o,defaultOpen:a,onOpenChange:u,...c}=e,[f=!0,p]=KS({prop:o,defaultProp:a,onChange:u});return v.jsx(Wc,{present:i||f,children:v.jsx(aP,{open:f,...c,ref:n,onClose:()=>p(!1),onPause:Jt(e.onPause),onResume:Jt(e.onResume),onSwipeStart:qe(e.onSwipeStart,h=>{h.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:qe(e.onSwipeMove,h=>{const{x:g,y}=h.detail.delta;h.currentTarget.setAttribute("data-swipe","move"),h.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${g}px`),h.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${y}px`)}),onSwipeCancel:qe(e.onSwipeCancel,h=>{h.currentTarget.setAttribute("data-swipe","cancel"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),h.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:qe(e.onSwipeEnd,h=>{const{x:g,y}=h.detail.delta;h.currentTarget.setAttribute("data-swipe","end"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),h.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${g}px`),h.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${y}px`),p(!1)})})})});Nv.displayName=Ta;var[sP,oP]=kv(Ta,{onClose(){}}),aP=C.forwardRef((e,n)=>{const{__scopeToast:i,type:o="foreground",duration:a,open:u,onClose:c,onEscapeKeyDown:f,onPause:p,onResume:h,onSwipeStart:g,onSwipeMove:y,onSwipeCancel:x,onSwipeEnd:S,...b}=e,P=Ea(Ta,i),[k,E]=C.useState(null),j=Ut(n,B=>E(B)),N=C.useRef(null),O=C.useRef(null),M=a||P.duration,V=C.useRef(0),F=C.useRef(M),H=C.useRef(0),{onToastAdd:Y,onToastRemove:q}=P,$=Jt(()=>{k?.contains(document.activeElement)&&P.viewport?.focus(),c()}),D=C.useCallback(B=>{!B||B===1/0||(window.clearTimeout(H.current),V.current=new Date().getTime(),H.current=window.setTimeout($,B))},[$]);C.useEffect(()=>{const B=P.viewport;if(B){const ce=()=>{D(F.current),h?.()},se=()=>{const te=new Date().getTime()-V.current;F.current=F.current-te,window.clearTimeout(H.current),p?.()};return B.addEventListener(hc,se),B.addEventListener(mc,ce),()=>{B.removeEventListener(hc,se),B.removeEventListener(mc,ce)}}},[P.viewport,M,p,h,D]),C.useEffect(()=>{u&&!P.isClosePausedRef.current&&D(M)},[u,M,P.isClosePausedRef,D]),C.useEffect(()=>(Y(),()=>q()),[Y,q]);const X=C.useMemo(()=>k?Lv(k):null,[k]);return P.viewport?v.jsxs(v.Fragment,{children:[X&&v.jsx(lP,{__scopeToast:i,role:"status","aria-live":o==="foreground"?"assertive":"polite","aria-atomic":!0,children:X}),v.jsx(sP,{scope:i,onClose:$,children:Pa.createPortal(v.jsx(qc.ItemSlot,{scope:i,children:v.jsx(BS,{asChild:!0,onEscapeKeyDown:qe(f,()=>{P.isFocusedToastEscapeKeyDownRef.current||$(),P.isFocusedToastEscapeKeyDownRef.current=!1}),children:v.jsx(mt.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":u?"open":"closed","data-swipe-direction":P.swipeDirection,...b,ref:j,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:qe(e.onKeyDown,B=>{B.key==="Escape"&&(f?.(B.nativeEvent),B.nativeEvent.defaultPrevented||(P.isFocusedToastEscapeKeyDownRef.current=!0,$()))}),onPointerDown:qe(e.onPointerDown,B=>{B.button===0&&(N.current={x:B.clientX,y:B.clientY})}),onPointerMove:qe(e.onPointerMove,B=>{if(!N.current)return;const ce=B.clientX-N.current.x,se=B.clientY-N.current.y,te=!!O.current,U=["left","right"].includes(P.swipeDirection),ee=["left","up"].includes(P.swipeDirection)?Math.min:Math.max,Z=U?ee(0,ce):0,_=U?0:ee(0,se),W=B.pointerType==="touch"?10:2,le={x:Z,y:_},he={originalEvent:B,delta:le};te?(O.current=le,_o(nP,y,he,{discrete:!1})):lm(le,P.swipeDirection,W)?(O.current=le,_o(tP,g,he,{discrete:!1}),B.target.setPointerCapture(B.pointerId)):(Math.abs(ce)>W||Math.abs(se)>W)&&(N.current=null)}),onPointerUp:qe(e.onPointerUp,B=>{const ce=O.current,se=B.target;if(se.hasPointerCapture(B.pointerId)&&se.releasePointerCapture(B.pointerId),O.current=null,N.current=null,ce){const te=B.currentTarget,U={originalEvent:B,delta:ce};lm(ce,P.swipeDirection,P.swipeThreshold)?_o(iP,S,U,{discrete:!0}):_o(rP,x,U,{discrete:!0}),te.addEventListener("click",ee=>ee.preventDefault(),{once:!0})}})})})}),P.viewport)})]}):null}),lP=e=>{const{__scopeToast:n,children:i,...o}=e,a=Ea(Ta,n),[u,c]=C.useState(!1),[f,p]=C.useState(!1);return dP(()=>c(!0)),C.useEffect(()=>{const h=window.setTimeout(()=>p(!0),1e3);return()=>window.clearTimeout(h)},[]),f?null:v.jsx(bv,{asChild:!0,children:v.jsx(ka,{...o,children:u&&v.jsxs(v.Fragment,{children:[a.label," ",i]})})})},uP="ToastTitle",Av=C.forwardRef((e,n)=>{const{__scopeToast:i,...o}=e;return v.jsx(mt.div,{...o,ref:n})});Av.displayName=uP;var cP="ToastDescription",Rv=C.forwardRef((e,n)=>{const{__scopeToast:i,...o}=e;return v.jsx(mt.div,{...o,ref:n})});Rv.displayName=cP;var _v="ToastAction",Ov=C.forwardRef((e,n)=>{const{altText:i,...o}=e;return i.trim()?v.jsx(Dv,{altText:i,asChild:!0,children:v.jsx(Kc,{...o,ref:n})}):(console.error(`Invalid prop \`altText\` supplied to \`${_v}\`. Expected non-empty \`string\`.`),null)});Ov.displayName=_v;var Mv="ToastClose",Kc=C.forwardRef((e,n)=>{const{__scopeToast:i,...o}=e,a=oP(Mv,i);return v.jsx(Dv,{asChild:!0,children:v.jsx(mt.button,{type:"button",...o,ref:n,onClick:qe(e.onClick,a.onClose)})})});Kc.displayName=Mv;var Dv=C.forwardRef((e,n)=>{const{__scopeToast:i,altText:o,...a}=e;return v.jsx(mt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0,...a,ref:n})});function Lv(e){const n=[];return Array.from(e.childNodes).forEach(o=>{if(o.nodeType===o.TEXT_NODE&&o.textContent&&n.push(o.textContent),fP(o)){const a=o.ariaHidden||o.hidden||o.style.display==="none",u=o.dataset.radixToastAnnounceExclude==="";if(!a)if(u){const c=o.dataset.radixToastAnnounceAlt;c&&n.push(c)}else n.push(...Lv(o))}}),n}function _o(e,n,i,{discrete:o}){const a=i.originalEvent.currentTarget,u=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:i});n&&a.addEventListener(e,n,{once:!0}),o?xv(a,u):a.dispatchEvent(u)}var lm=(e,n,i=0)=>{const o=Math.abs(e.x),a=Math.abs(e.y),u=o>a;return n==="left"||n==="right"?u&&o>i:!u&&a>i};function dP(e=()=>{}){const n=Jt(e);yr(()=>{let i=0,o=0;return i=window.requestAnimationFrame(()=>o=window.requestAnimationFrame(n)),()=>{window.cancelAnimationFrame(i),window.cancelAnimationFrame(o)}},[n])}function fP(e){return e.nodeType===e.ELEMENT_NODE}function pP(e){const n=[],i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const a=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||a?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)n.push(i.currentNode);return n}function Hu(e){const n=document.activeElement;return e.some(i=>i===n?!0:(i.focus(),document.activeElement!==n))}var hP=Ev,Iv=Cv,Fv=Nv,Vv=Av,zv=Rv,Bv=Ov,Uv=Kc;function Hv(e){var n,i,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(n=0;n<a;n++)e[n]&&(i=Hv(e[n]))&&(o&&(o+=" "),o+=i)}else for(i in e)e[i]&&(o&&(o+=" "),o+=i);return o}function Wv(){for(var e,n,i=0,o="",a=arguments.length;i<a;i++)(e=arguments[i])&&(n=Hv(e))&&(o&&(o+=" "),o+=n);return o}const um=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,cm=Wv,$v=(e,n)=>i=>{var o;if(n?.variants==null)return cm(e,i?.class,i?.className);const{variants:a,defaultVariants:u}=n,c=Object.keys(a).map(h=>{const g=i?.[h],y=u?.[h];if(g===null)return null;const x=um(g)||um(y);return a[h][x]}),f=i&&Object.entries(i).reduce((h,g)=>{let[y,x]=g;return x===void 0||(h[y]=x),h},{}),p=n==null||(o=n.compoundVariants)===null||o===void 0?void 0:o.reduce((h,g)=>{let{class:y,className:x,...S}=g;return Object.entries(S).every(b=>{let[P,k]=b;return Array.isArray(k)?k.includes({...u,...f}[P]):{...u,...f}[P]===k})?[...h,y,x]:h},[]);return cm(e,c,p,i?.class,i?.className)};const mP=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),qv=(...e)=>e.filter((n,i,o)=>!!n&&o.indexOf(n)===i).join(" ");var gP={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 vP=C.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:i=2,absoluteStrokeWidth:o,className:a="",children:u,iconNode:c,...f},p)=>C.createElement("svg",{ref:p,...gP,width:n,height:n,stroke:e,strokeWidth:o?Number(i)*24/Number(n):i,className:qv("lucide",a),...f},[...c.map(([h,g])=>C.createElement(h,g)),...Array.isArray(u)?u:[u]]));const Ie=(e,n)=>{const i=C.forwardRef(({className:o,...a},u)=>C.createElement(vP,{ref:u,iconNode:n,className:qv(`lucide-${mP(e)}`,o),...a}));return i.displayName=`${e}`,i};const yP=Ie("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);const xP=Ie("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);const wP=Ie("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);const Oo=Ie("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const SP=Ie("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const PP=Ie("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);const bP=Ie("Headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]);const Kv=Ie("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"}]]);const kP=Ie("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);const EP=Ie("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"}]]);const TP=Ie("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);const CP=Ie("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);const Jo=Ie("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);const jP=Ie("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);const NP=Ie("Quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);const Kr=Ie("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);const AP=Ie("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);const RP=Ie("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);const _P=Ie("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);const mn=Ie("Truck",[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]]);const OP=Ie("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"}]]);const Qv=Ie("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);const Qc=Ie("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),Gc="-",MP=e=>{const n=LP(e),{conflictingClassGroups:i,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:c=>{const f=c.split(Gc);return f[0]===""&&f.length!==1&&f.shift(),Gv(f,n)||DP(c)},getConflictingClassGroupIds:(c,f)=>{const p=i[c]||[];return f&&o[c]?[...p,...o[c]]:p}}},Gv=(e,n)=>{if(e.length===0)return n.classGroupId;const i=e[0],o=n.nextPart.get(i),a=o?Gv(e.slice(1),o):void 0;if(a)return a;if(n.validators.length===0)return;const u=e.join(Gc);return n.validators.find(({validator:c})=>c(u))?.classGroupId},dm=/^\[(.+)\]$/,DP=e=>{if(dm.test(e)){const n=dm.exec(e)[1],i=n?.substring(0,n.indexOf(":"));if(i)return"arbitrary.."+i}},LP=e=>{const{theme:n,prefix:i}=e,o={nextPart:new Map,validators:[]};return FP(Object.entries(e.classGroups),i).forEach(([u,c])=>{vc(c,o,u,n)}),o},vc=(e,n,i,o)=>{e.forEach(a=>{if(typeof a=="string"){const u=a===""?n:fm(n,a);u.classGroupId=i;return}if(typeof a=="function"){if(IP(a)){vc(a(o),n,i,o);return}n.validators.push({validator:a,classGroupId:i});return}Object.entries(a).forEach(([u,c])=>{vc(c,fm(n,u),i,o)})})},fm=(e,n)=>{let i=e;return n.split(Gc).forEach(o=>{i.nextPart.has(o)||i.nextPart.set(o,{nextPart:new Map,validators:[]}),i=i.nextPart.get(o)}),i},IP=e=>e.isThemeGetter,FP=(e,n)=>n?e.map(([i,o])=>{const a=o.map(u=>typeof u=="string"?n+u:typeof u=="object"?Object.fromEntries(Object.entries(u).map(([c,f])=>[n+c,f])):u);return[i,a]}):e,VP=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,i=new Map,o=new Map;const a=(u,c)=>{i.set(u,c),n++,n>e&&(n=0,o=i,i=new Map)};return{get(u){let c=i.get(u);if(c!==void 0)return c;if((c=o.get(u))!==void 0)return a(u,c),c},set(u,c){i.has(u)?i.set(u,c):a(u,c)}}},Yv="!",zP=e=>{const{separator:n,experimentalParseClassName:i}=e,o=n.length===1,a=n[0],u=n.length,c=f=>{const p=[];let h=0,g=0,y;for(let k=0;k<f.length;k++){let E=f[k];if(h===0){if(E===a&&(o||f.slice(k,k+u)===n)){p.push(f.slice(g,k)),g=k+u;continue}if(E==="/"){y=k;continue}}E==="["?h++:E==="]"&&h--}const x=p.length===0?f:f.substring(g),S=x.startsWith(Yv),b=S?x.substring(1):x,P=y&&y>g?y-g:void 0;return{modifiers:p,hasImportantModifier:S,baseClassName:b,maybePostfixModifierPosition:P}};return i?f=>i({className:f,parseClassName:c}):c},BP=e=>{if(e.length<=1)return e;const n=[];let i=[];return e.forEach(o=>{o[0]==="["?(n.push(...i.sort(),o),i=[]):i.push(o)}),n.push(...i.sort()),n},UP=e=>({cache:VP(e.cacheSize),parseClassName:zP(e),...MP(e)}),HP=/\s+/,WP=(e,n)=>{const{parseClassName:i,getClassGroupId:o,getConflictingClassGroupIds:a}=n,u=[],c=e.trim().split(HP);let f="";for(let p=c.length-1;p>=0;p-=1){const h=c[p],{modifiers:g,hasImportantModifier:y,baseClassName:x,maybePostfixModifierPosition:S}=i(h);let b=!!S,P=o(b?x.substring(0,S):x);if(!P){if(!b){f=h+(f.length>0?" "+f:f);continue}if(P=o(x),!P){f=h+(f.length>0?" "+f:f);continue}b=!1}const k=BP(g).join(":"),E=y?k+Yv:k,j=E+P;if(u.includes(j))continue;u.push(j);const N=a(P,b);for(let O=0;O<N.length;++O){const M=N[O];u.push(E+M)}f=h+(f.length>0?" "+f:f)}return f};function $P(){let e=0,n,i,o="";for(;e<arguments.length;)(n=arguments[e++])&&(i=Xv(n))&&(o&&(o+=" "),o+=i);return o}const Xv=e=>{if(typeof e=="string")return e;let n,i="";for(let o=0;o<e.length;o++)e[o]&&(n=Xv(e[o]))&&(i&&(i+=" "),i+=n);return i};function qP(e,...n){let i,o,a,u=c;function c(p){const h=n.reduce((g,y)=>y(g),e());return i=UP(h),o=i.cache.get,a=i.cache.set,u=f,f(p)}function f(p){const h=o(p);if(h)return h;const g=WP(p,i);return a(p,g),g}return function(){return u($P.apply(null,arguments))}}const Ae=e=>{const n=i=>i[e]||[];return n.isThemeGetter=!0,n},Zv=/^\[(?:([a-z-]+):)?(.+)\]$/i,KP=/^\d+\/\d+$/,QP=new Set(["px","full","screen"]),GP=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,YP=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,XP=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ZP=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,JP=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,pn=e=>Jr(e)||QP.has(e)||KP.test(e),Un=e=>oi(e,"length",ab),Jr=e=>!!e&&!Number.isNaN(Number(e)),Wu=e=>oi(e,"number",Jr),Yi=e=>!!e&&Number.isInteger(Number(e)),eb=e=>e.endsWith("%")&&Jr(e.slice(0,-1)),ve=e=>Zv.test(e),Hn=e=>GP.test(e),tb=new Set(["length","size","percentage"]),nb=e=>oi(e,tb,Jv),rb=e=>oi(e,"position",Jv),ib=new Set(["image","url"]),sb=e=>oi(e,ib,ub),ob=e=>oi(e,"",lb),Xi=()=>!0,oi=(e,n,i)=>{const o=Zv.exec(e);return o?o[1]?typeof n=="string"?o[1]===n:n.has(o[1]):i(o[2]):!1},ab=e=>YP.test(e)&&!XP.test(e),Jv=()=>!1,lb=e=>ZP.test(e),ub=e=>JP.test(e),cb=()=>{const e=Ae("colors"),n=Ae("spacing"),i=Ae("blur"),o=Ae("brightness"),a=Ae("borderColor"),u=Ae("borderRadius"),c=Ae("borderSpacing"),f=Ae("borderWidth"),p=Ae("contrast"),h=Ae("grayscale"),g=Ae("hueRotate"),y=Ae("invert"),x=Ae("gap"),S=Ae("gradientColorStops"),b=Ae("gradientColorStopPositions"),P=Ae("inset"),k=Ae("margin"),E=Ae("opacity"),j=Ae("padding"),N=Ae("saturate"),O=Ae("scale"),M=Ae("sepia"),V=Ae("skew"),F=Ae("space"),H=Ae("translate"),Y=()=>["auto","contain","none"],q=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto",ve,n],D=()=>[ve,n],X=()=>["",pn,Un],B=()=>["auto",Jr,ve],ce=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],se=()=>["solid","dashed","dotted","double","none"],te=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],U=()=>["start","end","center","between","around","evenly","stretch"],ee=()=>["","0",ve],Z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>[Jr,ve];return{cacheSize:500,separator:":",theme:{colors:[Xi],spacing:[pn,Un],blur:["none","",Hn,ve],brightness:_(),borderColor:[e],borderRadius:["none","","full",Hn,ve],borderSpacing:D(),borderWidth:X(),contrast:_(),grayscale:ee(),hueRotate:_(),invert:ee(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[eb,Un],inset:$(),margin:$(),opacity:_(),padding:D(),saturate:_(),scale:_(),sepia:ee(),skew:_(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",ve]}],container:["container"],columns:[{columns:[Hn]}],"break-after":[{"break-after":Z()}],"break-before":[{"break-before":Z()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ce(),ve]}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-y":[{"overflow-y":q()}],overscroll:[{overscroll:Y()}],"overscroll-x":[{"overscroll-x":Y()}],"overscroll-y":[{"overscroll-y":Y()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[P]}],"inset-x":[{"inset-x":[P]}],"inset-y":[{"inset-y":[P]}],start:[{start:[P]}],end:[{end:[P]}],top:[{top:[P]}],right:[{right:[P]}],bottom:[{bottom:[P]}],left:[{left:[P]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Yi,ve]}],basis:[{basis:$()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ve]}],grow:[{grow:ee()}],shrink:[{shrink:ee()}],order:[{order:["first","last","none",Yi,ve]}],"grid-cols":[{"grid-cols":[Xi]}],"col-start-end":[{col:["auto",{span:["full",Yi,ve]},ve]}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":[Xi]}],"row-start-end":[{row:["auto",{span:[Yi,ve]},ve]}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ve]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ve]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...U()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...U(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...U(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[j]}],px:[{px:[j]}],py:[{py:[j]}],ps:[{ps:[j]}],pe:[{pe:[j]}],pt:[{pt:[j]}],pr:[{pr:[j]}],pb:[{pb:[j]}],pl:[{pl:[j]}],m:[{m:[k]}],mx:[{mx:[k]}],my:[{my:[k]}],ms:[{ms:[k]}],me:[{me:[k]}],mt:[{mt:[k]}],mr:[{mr:[k]}],mb:[{mb:[k]}],ml:[{ml:[k]}],"space-x":[{"space-x":[F]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[F]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ve,n]}],"min-w":[{"min-w":[ve,n,"min","max","fit"]}],"max-w":[{"max-w":[ve,n,"none","full","min","max","fit","prose",{screen:[Hn]},Hn]}],h:[{h:[ve,n,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ve,n,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ve,n,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ve,n,"auto","min","max","fit"]}],"font-size":[{text:["base",Hn,Un]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Wu]}],"font-family":[{font:[Xi]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ve]}],"line-clamp":[{"line-clamp":["none",Jr,Wu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",pn,ve]}],"list-image":[{"list-image":["none",ve]}],"list-style-type":[{list:["none","disc","decimal",ve]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[E]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[E]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...se(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",pn,Un]}],"underline-offset":[{"underline-offset":["auto",pn,ve]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ve]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ve]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[E]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ce(),rb]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",nb]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},sb]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[S]}],"gradient-via":[{via:[S]}],"gradient-to":[{to:[S]}],rounded:[{rounded:[u]}],"rounded-s":[{"rounded-s":[u]}],"rounded-e":[{"rounded-e":[u]}],"rounded-t":[{"rounded-t":[u]}],"rounded-r":[{"rounded-r":[u]}],"rounded-b":[{"rounded-b":[u]}],"rounded-l":[{"rounded-l":[u]}],"rounded-ss":[{"rounded-ss":[u]}],"rounded-se":[{"rounded-se":[u]}],"rounded-ee":[{"rounded-ee":[u]}],"rounded-es":[{"rounded-es":[u]}],"rounded-tl":[{"rounded-tl":[u]}],"rounded-tr":[{"rounded-tr":[u]}],"rounded-br":[{"rounded-br":[u]}],"rounded-bl":[{"rounded-bl":[u]}],"border-w":[{border:[f]}],"border-w-x":[{"border-x":[f]}],"border-w-y":[{"border-y":[f]}],"border-w-s":[{"border-s":[f]}],"border-w-e":[{"border-e":[f]}],"border-w-t":[{"border-t":[f]}],"border-w-r":[{"border-r":[f]}],"border-w-b":[{"border-b":[f]}],"border-w-l":[{"border-l":[f]}],"border-opacity":[{"border-opacity":[E]}],"border-style":[{border:[...se(),"hidden"]}],"divide-x":[{"divide-x":[f]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[f]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[E]}],"divide-style":[{divide:se()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...se()]}],"outline-offset":[{"outline-offset":[pn,ve]}],"outline-w":[{outline:[pn,Un]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[E]}],"ring-offset-w":[{"ring-offset":[pn,Un]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Hn,ob]}],"shadow-color":[{shadow:[Xi]}],opacity:[{opacity:[E]}],"mix-blend":[{"mix-blend":[...te(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":te()}],filter:[{filter:["","none"]}],blur:[{blur:[i]}],brightness:[{brightness:[o]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",Hn,ve]}],grayscale:[{grayscale:[h]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[y]}],saturate:[{saturate:[N]}],sepia:[{sepia:[M]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[i]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[y]}],"backdrop-opacity":[{"backdrop-opacity":[E]}],"backdrop-saturate":[{"backdrop-saturate":[N]}],"backdrop-sepia":[{"backdrop-sepia":[M]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ve]}],duration:[{duration:_()}],ease:[{ease:["linear","in","out","in-out",ve]}],delay:[{delay:_()}],animate:[{animate:["none","spin","ping","pulse","bounce",ve]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[O]}],"scale-x":[{"scale-x":[O]}],"scale-y":[{"scale-y":[O]}],rotate:[{rotate:[Yi,ve]}],"translate-x":[{"translate-x":[H]}],"translate-y":[{"translate-y":[H]}],"skew-x":[{"skew-x":[V]}],"skew-y":[{"skew-y":[V]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ve]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ve]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ve]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[pn,Un,Wu]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},db=qP(cb);function gt(...e){return db(Wv(e))}const fb=hP,ey=C.forwardRef(({className:e,...n},i)=>v.jsx(Iv,{ref:i,className:gt("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),...n}));ey.displayName=Iv.displayName;const pb=$v("group pointer-events-auto relative 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=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),ty=C.forwardRef(({className:e,variant:n,...i},o)=>v.jsx(Fv,{ref:o,className:gt(pb({variant:n}),e),...i}));ty.displayName=Fv.displayName;const hb=C.forwardRef(({className:e,...n},i)=>v.jsx(Bv,{ref:i,className:gt("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-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...n}));hb.displayName=Bv.displayName;const ny=C.forwardRef(({className:e,...n},i)=>v.jsx(Uv,{ref:i,className:gt("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":"",...n,children:v.jsx(Qv,{className:"h-4 w-4"})}));ny.displayName=Uv.displayName;const ry=C.forwardRef(({className:e,...n},i)=>v.jsx(Vv,{ref:i,className:gt("text-sm font-semibold",e),...n}));ry.displayName=Vv.displayName;const iy=C.forwardRef(({className:e,...n},i)=>v.jsx(zv,{ref:i,className:gt("text-sm opacity-90",e),...n}));iy.displayName=zv.displayName;function mb(){const{toasts:e}=bS();return v.jsxs(fb,{children:[e.map(function({id:n,title:i,description:o,action:a,...u}){return v.jsxs(ty,{...u,children:[v.jsxs("div",{className:"grid gap-1",children:[i&&v.jsx(ry,{children:i}),o&&v.jsx(iy,{children:o})]}),a,v.jsx(ny,{})]},n)}),v.jsx(ey,{})]})}const gb=["top","right","bottom","left"],Qn=Math.min,St=Math.max,oa=Math.round,Mo=Math.floor,Yt=e=>({x:e,y:e}),vb={left:"right",right:"left",bottom:"top",top:"bottom"},yb={start:"end",end:"start"};function yc(e,n,i){return St(e,Qn(n,i))}function wn(e,n){return typeof e=="function"?e(n):e}function Sn(e){return e.split("-")[0]}function ai(e){return e.split("-")[1]}function Yc(e){return e==="x"?"y":"x"}function Xc(e){return e==="y"?"height":"width"}function Gn(e){return["top","bottom"].includes(Sn(e))?"y":"x"}function Zc(e){return Yc(Gn(e))}function xb(e,n,i){i===void 0&&(i=!1);const o=ai(e),a=Zc(e),u=Xc(a);let c=a==="x"?o===(i?"end":"start")?"right":"left":o==="start"?"bottom":"top";return n.reference[u]>n.floating[u]&&(c=aa(c)),[c,aa(c)]}function wb(e){const n=aa(e);return[xc(e),n,xc(n)]}function xc(e){return e.replace(/start|end/g,n=>yb[n])}function Sb(e,n,i){const o=["left","right"],a=["right","left"],u=["top","bottom"],c=["bottom","top"];switch(e){case"top":case"bottom":return i?n?a:o:n?o:a;case"left":case"right":return n?u:c;default:return[]}}function Pb(e,n,i,o){const a=ai(e);let u=Sb(Sn(e),i==="start",o);return a&&(u=u.map(c=>c+"-"+a),n&&(u=u.concat(u.map(xc)))),u}function aa(e){return e.replace(/left|right|bottom|top/g,n=>vb[n])}function bb(e){return{top:0,right:0,bottom:0,left:0,...e}}function sy(e){return typeof e!="number"?bb(e):{top:e,right:e,bottom:e,left:e}}function la(e){const{x:n,y:i,width:o,height:a}=e;return{width:o,height:a,top:i,left:n,right:n+o,bottom:i+a,x:n,y:i}}function pm(e,n,i){let{reference:o,floating:a}=e;const u=Gn(n),c=Zc(n),f=Xc(c),p=Sn(n),h=u==="y",g=o.x+o.width/2-a.width/2,y=o.y+o.height/2-a.height/2,x=o[f]/2-a[f]/2;let S;switch(p){case"top":S={x:g,y:o.y-a.height};break;case"bottom":S={x:g,y:o.y+o.height};break;case"right":S={x:o.x+o.width,y};break;case"left":S={x:o.x-a.width,y};break;default:S={x:o.x,y:o.y}}switch(ai(n)){case"start":S[c]-=x*(i&&h?-1:1);break;case"end":S[c]+=x*(i&&h?-1:1);break}return S}const kb=async(e,n,i)=>{const{placement:o="bottom",strategy:a="absolute",middleware:u=[],platform:c}=i,f=u.filter(Boolean),p=await(c.isRTL==null?void 0:c.isRTL(n));let h=await c.getElementRects({reference:e,floating:n,strategy:a}),{x:g,y}=pm(h,o,p),x=o,S={},b=0;for(let P=0;P<f.length;P++){const{name:k,fn:E}=f[P],{x:j,y:N,data:O,reset:M}=await E({x:g,y,initialPlacement:o,placement:x,strategy:a,middlewareData:S,rects:h,platform:c,elements:{reference:e,floating:n}});g=j??g,y=N??y,S={...S,[k]:{...S[k],...O}},M&&b<=50&&(b++,typeof M=="object"&&(M.placement&&(x=M.placement),M.rects&&(h=M.rects===!0?await c.getElementRects({reference:e,floating:n,strategy:a}):M.rects),{x:g,y}=pm(h,x,p)),P=-1)}return{x:g,y,placement:x,strategy:a,middlewareData:S}};async function ls(e,n){var i;n===void 0&&(n={});const{x:o,y:a,platform:u,rects:c,elements:f,strategy:p}=e,{boundary:h="clippingAncestors",rootBoundary:g="viewport",elementContext:y="floating",altBoundary:x=!1,padding:S=0}=wn(n,e),b=sy(S),k=f[x?y==="floating"?"reference":"floating":y],E=la(await u.getClippingRect({element:(i=await(u.isElement==null?void 0:u.isElement(k)))==null||i?k:k.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(f.floating)),boundary:h,rootBoundary:g,strategy:p})),j=y==="floating"?{x:o,y:a,width:c.floating.width,height:c.floating.height}:c.reference,N=await(u.getOffsetParent==null?void 0:u.getOffsetParent(f.floating)),O=await(u.isElement==null?void 0:u.isElement(N))?await(u.getScale==null?void 0:u.getScale(N))||{x:1,y:1}:{x:1,y:1},M=la(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:j,offsetParent:N,strategy:p}):j);return{top:(E.top-M.top+b.top)/O.y,bottom:(M.bottom-E.bottom+b.bottom)/O.y,left:(E.left-M.left+b.left)/O.x,right:(M.right-E.right+b.right)/O.x}}const Eb=e=>({name:"arrow",options:e,async fn(n){const{x:i,y:o,placement:a,rects:u,platform:c,elements:f,middlewareData:p}=n,{element:h,padding:g=0}=wn(e,n)||{};if(h==null)return{};const y=sy(g),x={x:i,y:o},S=Zc(a),b=Xc(S),P=await c.getDimensions(h),k=S==="y",E=k?"top":"left",j=k?"bottom":"right",N=k?"clientHeight":"clientWidth",O=u.reference[b]+u.reference[S]-x[S]-u.floating[b],M=x[S]-u.reference[S],V=await(c.getOffsetParent==null?void 0:c.getOffsetParent(h));let F=V?V[N]:0;(!F||!await(c.isElement==null?void 0:c.isElement(V)))&&(F=f.floating[N]||u.floating[b]);const H=O/2-M/2,Y=F/2-P[b]/2-1,q=Qn(y[E],Y),$=Qn(y[j],Y),D=q,X=F-P[b]-$,B=F/2-P[b]/2+H,ce=yc(D,B,X),se=!p.arrow&&ai(a)!=null&&B!==ce&&u.reference[b]/2-(B<D?q:$)-P[b]/2<0,te=se?B<D?B-D:B-X:0;return{[S]:x[S]+te,data:{[S]:ce,centerOffset:B-ce-te,...se&&{alignmentOffset:te}},reset:se}}}),Tb=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var i,o;const{placement:a,middlewareData:u,rects:c,initialPlacement:f,platform:p,elements:h}=n,{mainAxis:g=!0,crossAxis:y=!0,fallbackPlacements:x,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:P=!0,...k}=wn(e,n);if((i=u.arrow)!=null&&i.alignmentOffset)return{};const E=Sn(a),j=Gn(f),N=Sn(f)===f,O=await(p.isRTL==null?void 0:p.isRTL(h.floating)),M=x||(N||!P?[aa(f)]:wb(f)),V=b!=="none";!x&&V&&M.push(...Pb(f,P,b,O));const F=[f,...M],H=await ls(n,k),Y=[];let q=((o=u.flip)==null?void 0:o.overflows)||[];if(g&&Y.push(H[E]),y){const B=xb(a,c,O);Y.push(H[B[0]],H[B[1]])}if(q=[...q,{placement:a,overflows:Y}],!Y.every(B=>B<=0)){var $,D;const B=((($=u.flip)==null?void 0:$.index)||0)+1,ce=F[B];if(ce)return{data:{index:B,overflows:q},reset:{placement:ce}};let se=(D=q.filter(te=>te.overflows[0]<=0).sort((te,U)=>te.overflows[1]-U.overflows[1])[0])==null?void 0:D.placement;if(!se)switch(S){case"bestFit":{var X;const te=(X=q.filter(U=>{if(V){const ee=Gn(U.placement);return ee===j||ee==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(ee=>ee>0).reduce((ee,Z)=>ee+Z,0)]).sort((U,ee)=>U[1]-ee[1])[0])==null?void 0:X[0];te&&(se=te);break}case"initialPlacement":se=f;break}if(a!==se)return{reset:{placement:se}}}return{}}}};function hm(e,n){return{top:e.top-n.height,right:e.right-n.width,bottom:e.bottom-n.height,left:e.left-n.width}}function mm(e){return gb.some(n=>e[n]>=0)}const Cb=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(n){const{rects:i}=n,{strategy:o="referenceHidden",...a}=wn(e,n);switch(o){case"referenceHidden":{const u=await ls(n,{...a,elementContext:"reference"}),c=hm(u,i.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:mm(c)}}}case"escaped":{const u=await ls(n,{...a,altBoundary:!0}),c=hm(u,i.floating);return{data:{escapedOffsets:c,escaped:mm(c)}}}default:return{}}}}};async function jb(e,n){const{placement:i,platform:o,elements:a}=e,u=await(o.isRTL==null?void 0:o.isRTL(a.floating)),c=Sn(i),f=ai(i),p=Gn(i)==="y",h=["left","top"].includes(c)?-1:1,g=u&&p?-1:1,y=wn(n,e);let{mainAxis:x,crossAxis:S,alignmentAxis:b}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return f&&typeof b=="number"&&(S=f==="end"?b*-1:b),p?{x:S*g,y:x*h}:{x:x*h,y:S*g}}const Nb=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(n){var i,o;const{x:a,y:u,placement:c,middlewareData:f}=n,p=await jb(n,e);return c===((i=f.offset)==null?void 0:i.placement)&&(o=f.arrow)!=null&&o.alignmentOffset?{}:{x:a+p.x,y:u+p.y,data:{...p,placement:c}}}}},Ab=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(n){const{x:i,y:o,placement:a}=n,{mainAxis:u=!0,crossAxis:c=!1,limiter:f={fn:k=>{let{x:E,y:j}=k;return{x:E,y:j}}},...p}=wn(e,n),h={x:i,y:o},g=await ls(n,p),y=Gn(Sn(a)),x=Yc(y);let S=h[x],b=h[y];if(u){const k=x==="y"?"top":"left",E=x==="y"?"bottom":"right",j=S+g[k],N=S-g[E];S=yc(j,S,N)}if(c){const k=y==="y"?"top":"left",E=y==="y"?"bottom":"right",j=b+g[k],N=b-g[E];b=yc(j,b,N)}const P=f.fn({...n,[x]:S,[y]:b});return{...P,data:{x:P.x-i,y:P.y-o,enabled:{[x]:u,[y]:c}}}}}},Rb=function(e){return e===void 0&&(e={}),{options:e,fn(n){const{x:i,y:o,placement:a,rects:u,middlewareData:c}=n,{offset:f=0,mainAxis:p=!0,crossAxis:h=!0}=wn(e,n),g={x:i,y:o},y=Gn(a),x=Yc(y);let S=g[x],b=g[y];const P=wn(f,n),k=typeof P=="number"?{mainAxis:P,crossAxis:0}:{mainAxis:0,crossAxis:0,...P};if(p){const N=x==="y"?"height":"width",O=u.reference[x]-u.floating[N]+k.mainAxis,M=u.reference[x]+u.reference[N]-k.mainAxis;S<O?S=O:S>M&&(S=M)}if(h){var E,j;const N=x==="y"?"width":"height",O=["top","left"].includes(Sn(a)),M=u.reference[y]-u.floating[N]+(O&&((E=c.offset)==null?void 0:E[y])||0)+(O?0:k.crossAxis),V=u.reference[y]+u.reference[N]+(O?0:((j=c.offset)==null?void 0:j[y])||0)-(O?k.crossAxis:0);b<M?b=M:b>V&&(b=V)}return{[x]:S,[y]:b}}}},_b=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(n){var i,o;const{placement:a,rects:u,platform:c,elements:f}=n,{apply:p=()=>{},...h}=wn(e,n),g=await ls(n,h),y=Sn(a),x=ai(a),S=Gn(a)==="y",{width:b,height:P}=u.floating;let k,E;y==="top"||y==="bottom"?(k=y,E=x===(await(c.isRTL==null?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(E=y,k=x==="end"?"top":"bottom");const j=P-g.top-g.bottom,N=b-g.left-g.right,O=Qn(P-g[k],j),M=Qn(b-g[E],N),V=!n.middlewareData.shift;let F=O,H=M;if((i=n.middlewareData.shift)!=null&&i.enabled.x&&(H=N),(o=n.middlewareData.shift)!=null&&o.enabled.y&&(F=j),V&&!x){const q=St(g.left,0),$=St(g.right,0),D=St(g.top,0),X=St(g.bottom,0);S?H=b-2*(q!==0||$!==0?q+$:St(g.left,g.right)):F=P-2*(D!==0||X!==0?D+X:St(g.top,g.bottom))}await p({...n,availableWidth:H,availableHeight:F});const Y=await c.getDimensions(f.floating);return b!==Y.width||P!==Y.height?{reset:{rects:!0}}:{}}}};function Ca(){return typeof window<"u"}function li(e){return oy(e)?(e.nodeName||"").toLowerCase():"#document"}function Pt(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function nn(e){var n;return(n=(oy(e)?e.ownerDocument:e.document)||window.document)==null?void 0:n.documentElement}function oy(e){return Ca()?e instanceof Node||e instanceof Pt(e).Node:!1}function Ht(e){return Ca()?e instanceof Element||e instanceof Pt(e).Element:!1}function en(e){return Ca()?e instanceof HTMLElement||e instanceof Pt(e).HTMLElement:!1}function gm(e){return!Ca()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Pt(e).ShadowRoot}function hs(e){const{overflow:n,overflowX:i,overflowY:o,display:a}=Wt(e);return/auto|scroll|overlay|hidden|clip/.test(n+o+i)&&!["inline","contents"].includes(a)}function Ob(e){return["table","td","th"].includes(li(e))}function ja(e){return[":popover-open",":modal"].some(n=>{try{return e.matches(n)}catch{return!1}})}function Jc(e){const n=ed(),i=Ht(e)?Wt(e):e;return["transform","translate","scale","rotate","perspective"].some(o=>i[o]?i[o]!=="none":!1)||(i.containerType?i.containerType!=="normal":!1)||!n&&(i.backdropFilter?i.backdropFilter!=="none":!1)||!n&&(i.filter?i.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(o=>(i.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(i.contain||"").includes(o))}function Mb(e){let n=Yn(e);for(;en(n)&&!ti(n);){if(Jc(n))return n;if(ja(n))return null;n=Yn(n)}return null}function ed(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ti(e){return["html","body","#document"].includes(li(e))}function Wt(e){return Pt(e).getComputedStyle(e)}function Na(e){return Ht(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Yn(e){if(li(e)==="html")return e;const n=e.assignedSlot||e.parentNode||gm(e)&&e.host||nn(e);return gm(n)?n.host:n}function ay(e){const n=Yn(e);return ti(n)?e.ownerDocument?e.ownerDocument.body:e.body:en(n)&&hs(n)?n:ay(n)}function us(e,n,i){var o;n===void 0&&(n=[]),i===void 0&&(i=!0);const a=ay(e),u=a===((o=e.ownerDocument)==null?void 0:o.body),c=Pt(a);if(u){const f=wc(c);return n.concat(c,c.visualViewport||[],hs(a)?a:[],f&&i?us(f):[])}return n.concat(a,us(a,[],i))}function wc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ly(e){const n=Wt(e);let i=parseFloat(n.width)||0,o=parseFloat(n.height)||0;const a=en(e),u=a?e.offsetWidth:i,c=a?e.offsetHeight:o,f=oa(i)!==u||oa(o)!==c;return f&&(i=u,o=c),{width:i,height:o,$:f}}function td(e){return Ht(e)?e:e.contextElement}function ei(e){const n=td(e);if(!en(n))return Yt(1);const i=n.getBoundingClientRect(),{width:o,height:a,$:u}=ly(n);let c=(u?oa(i.width):i.width)/o,f=(u?oa(i.height):i.height)/a;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}const Db=Yt(0);function uy(e){const n=Pt(e);return!ed()||!n.visualViewport?Db:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function Lb(e,n,i){return n===void 0&&(n=!1),!i||n&&i!==Pt(e)?!1:n}function xr(e,n,i,o){n===void 0&&(n=!1),i===void 0&&(i=!1);const a=e.getBoundingClientRect(),u=td(e);let c=Yt(1);n&&(o?Ht(o)&&(c=ei(o)):c=ei(e));const f=Lb(u,i,o)?uy(u):Yt(0);let p=(a.left+f.x)/c.x,h=(a.top+f.y)/c.y,g=a.width/c.x,y=a.height/c.y;if(u){const x=Pt(u),S=o&&Ht(o)?Pt(o):o;let b=x,P=wc(b);for(;P&&o&&S!==b;){const k=ei(P),E=P.getBoundingClientRect(),j=Wt(P),N=E.left+(P.clientLeft+parseFloat(j.paddingLeft))*k.x,O=E.top+(P.clientTop+parseFloat(j.paddingTop))*k.y;p*=k.x,h*=k.y,g*=k.x,y*=k.y,p+=N,h+=O,b=Pt(P),P=wc(b)}}return la({width:g,height:y,x:p,y:h})}function nd(e,n){const i=Na(e).scrollLeft;return n?n.left+i:xr(nn(e)).left+i}function cy(e,n,i){i===void 0&&(i=!1);const o=e.getBoundingClientRect(),a=o.left+n.scrollLeft-(i?0:nd(e,o)),u=o.top+n.scrollTop;return{x:a,y:u}}function Ib(e){let{elements:n,rect:i,offsetParent:o,strategy:a}=e;const u=a==="fixed",c=nn(o),f=n?ja(n.floating):!1;if(o===c||f&&u)return i;let p={scrollLeft:0,scrollTop:0},h=Yt(1);const g=Yt(0),y=en(o);if((y||!y&&!u)&&((li(o)!=="body"||hs(c))&&(p=Na(o)),en(o))){const S=xr(o);h=ei(o),g.x=S.x+o.clientLeft,g.y=S.y+o.clientTop}const x=c&&!y&&!u?cy(c,p,!0):Yt(0);return{width:i.width*h.x,height:i.height*h.y,x:i.x*h.x-p.scrollLeft*h.x+g.x+x.x,y:i.y*h.y-p.scrollTop*h.y+g.y+x.y}}function Fb(e){return Array.from(e.getClientRects())}function Vb(e){const n=nn(e),i=Na(e),o=e.ownerDocument.body,a=St(n.scrollWidth,n.clientWidth,o.scrollWidth,o.clientWidth),u=St(n.scrollHeight,n.clientHeight,o.scrollHeight,o.clientHeight);let c=-i.scrollLeft+nd(e);const f=-i.scrollTop;return Wt(o).direction==="rtl"&&(c+=St(n.clientWidth,o.clientWidth)-a),{width:a,height:u,x:c,y:f}}function zb(e,n){const i=Pt(e),o=nn(e),a=i.visualViewport;let u=o.clientWidth,c=o.clientHeight,f=0,p=0;if(a){u=a.width,c=a.height;const h=ed();(!h||h&&n==="fixed")&&(f=a.offsetLeft,p=a.offsetTop)}return{width:u,height:c,x:f,y:p}}function Bb(e,n){const i=xr(e,!0,n==="fixed"),o=i.top+e.clientTop,a=i.left+e.clientLeft,u=en(e)?ei(e):Yt(1),c=e.clientWidth*u.x,f=e.clientHeight*u.y,p=a*u.x,h=o*u.y;return{width:c,height:f,x:p,y:h}}function vm(e,n,i){let o;if(n==="viewport")o=zb(e,i);else if(n==="document")o=Vb(nn(e));else if(Ht(n))o=Bb(n,i);else{const a=uy(e);o={x:n.x-a.x,y:n.y-a.y,width:n.width,height:n.height}}return la(o)}function dy(e,n){const i=Yn(e);return i===n||!Ht(i)||ti(i)?!1:Wt(i).position==="fixed"||dy(i,n)}function Ub(e,n){const i=n.get(e);if(i)return i;let o=us(e,[],!1).filter(f=>Ht(f)&&li(f)!=="body"),a=null;const u=Wt(e).position==="fixed";let c=u?Yn(e):e;for(;Ht(c)&&!ti(c);){const f=Wt(c),p=Jc(c);!p&&f.position==="fixed"&&(a=null),(u?!p&&!a:!p&&f.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||hs(c)&&!p&&dy(e,c))?o=o.filter(g=>g!==c):a=f,c=Yn(c)}return n.set(e,o),o}function Hb(e){let{element:n,boundary:i,rootBoundary:o,strategy:a}=e;const c=[...i==="clippingAncestors"?ja(n)?[]:Ub(n,this._c):[].concat(i),o],f=c[0],p=c.reduce((h,g)=>{const y=vm(n,g,a);return h.top=St(y.top,h.top),h.right=Qn(y.right,h.right),h.bottom=Qn(y.bottom,h.bottom),h.left=St(y.left,h.left),h},vm(n,f,a));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function Wb(e){const{width:n,height:i}=ly(e);return{width:n,height:i}}function $b(e,n,i){const o=en(n),a=nn(n),u=i==="fixed",c=xr(e,!0,u,n);let f={scrollLeft:0,scrollTop:0};const p=Yt(0);if(o||!o&&!u)if((li(n)!=="body"||hs(a))&&(f=Na(n)),o){const x=xr(n,!0,u,n);p.x=x.x+n.clientLeft,p.y=x.y+n.clientTop}else a&&(p.x=nd(a));const h=a&&!o&&!u?cy(a,f):Yt(0),g=c.left+f.scrollLeft-p.x-h.x,y=c.top+f.scrollTop-p.y-h.y;return{x:g,y,width:c.width,height:c.height}}function $u(e){return Wt(e).position==="static"}function ym(e,n){if(!en(e)||Wt(e).position==="fixed")return null;if(n)return n(e);let i=e.offsetParent;return nn(e)===i&&(i=i.ownerDocument.body),i}function fy(e,n){const i=Pt(e);if(ja(e))return i;if(!en(e)){let a=Yn(e);for(;a&&!ti(a);){if(Ht(a)&&!$u(a))return a;a=Yn(a)}return i}let o=ym(e,n);for(;o&&Ob(o)&&$u(o);)o=ym(o,n);return o&&ti(o)&&$u(o)&&!Jc(o)?i:o||Mb(e)||i}const qb=async function(e){const n=this.getOffsetParent||fy,i=this.getDimensions,o=await i(e.floating);return{reference:$b(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Kb(e){return Wt(e).direction==="rtl"}const Qb={convertOffsetParentRelativeRectToViewportRelativeRect:Ib,getDocumentElement:nn,getClippingRect:Hb,getOffsetParent:fy,getElementRects:qb,getClientRects:Fb,getDimensions:Wb,getScale:ei,isElement:Ht,isRTL:Kb};function py(e,n){return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height}function Gb(e,n){let i=null,o;const a=nn(e);function u(){var f;clearTimeout(o),(f=i)==null||f.disconnect(),i=null}function c(f,p){f===void 0&&(f=!1),p===void 0&&(p=1),u();const h=e.getBoundingClientRect(),{left:g,top:y,width:x,height:S}=h;if(f||n(),!x||!S)return;const b=Mo(y),P=Mo(a.clientWidth-(g+x)),k=Mo(a.clientHeight-(y+S)),E=Mo(g),N={rootMargin:-b+"px "+-P+"px "+-k+"px "+-E+"px",threshold:St(0,Qn(1,p))||1};let O=!0;function M(V){const F=V[0].intersectionRatio;if(F!==p){if(!O)return c();F?c(!1,F):o=setTimeout(()=>{c(!1,1e-7)},1e3)}F===1&&!py(h,e.getBoundingClientRect())&&c(),O=!1}try{i=new IntersectionObserver(M,{...N,root:a.ownerDocument})}catch{i=new IntersectionObserver(M,N)}i.observe(e)}return c(!0),u}function Yb(e,n,i,o){o===void 0&&(o={});const{ancestorScroll:a=!0,ancestorResize:u=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:p=!1}=o,h=td(e),g=a||u?[...h?us(h):[],...us(n)]:[];g.forEach(E=>{a&&E.addEventListener("scroll",i,{passive:!0}),u&&E.addEventListener("resize",i)});const y=h&&f?Gb(h,i):null;let x=-1,S=null;c&&(S=new ResizeObserver(E=>{let[j]=E;j&&j.target===h&&S&&(S.unobserve(n),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var N;(N=S)==null||N.observe(n)})),i()}),h&&!p&&S.observe(h),S.observe(n));let b,P=p?xr(e):null;p&&k();function k(){const E=xr(e);P&&!py(P,E)&&i(),P=E,b=requestAnimationFrame(k)}return i(),()=>{var E;g.forEach(j=>{a&&j.removeEventListener("scroll",i),u&&j.removeEventListener("resize",i)}),y?.(),(E=S)==null||E.disconnect(),S=null,p&&cancelAnimationFrame(b)}}const Xb=Nb,Zb=Ab,Jb=Tb,ek=_b,tk=Cb,xm=Eb,nk=Rb,rk=(e,n,i)=>{const o=new Map,a={platform:Qb,...i},u={...a.platform,_c:o};return kb(e,n,{...a,platform:u})};var ea=typeof document<"u"?C.useLayoutEffect:C.useEffect;function ua(e,n){if(e===n)return!0;if(typeof e!=typeof n)return!1;if(typeof e=="function"&&e.toString()===n.toString())return!0;let i,o,a;if(e&&n&&typeof e=="object"){if(Array.isArray(e)){if(i=e.length,i!==n.length)return!1;for(o=i;o--!==0;)if(!ua(e[o],n[o]))return!1;return!0}if(a=Object.keys(e),i=a.length,i!==Object.keys(n).length)return!1;for(o=i;o--!==0;)if(!{}.hasOwnProperty.call(n,a[o]))return!1;for(o=i;o--!==0;){const u=a[o];if(!(u==="_owner"&&e.$$typeof)&&!ua(e[u],n[u]))return!1}return!0}return e!==e&&n!==n}function hy(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function wm(e,n){const i=hy(e);return Math.round(n*i)/i}function qu(e){const n=C.useRef(e);return ea(()=>{n.current=e}),n}function ik(e){e===void 0&&(e={});const{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:a,elements:{reference:u,floating:c}={},transform:f=!0,whileElementsMounted:p,open:h}=e,[g,y]=C.useState({x:0,y:0,strategy:i,placement:n,middlewareData:{},isPositioned:!1}),[x,S]=C.useState(o);ua(x,o)||S(o);const[b,P]=C.useState(null),[k,E]=C.useState(null),j=C.useCallback(U=>{U!==V.current&&(V.current=U,P(U))},[]),N=C.useCallback(U=>{U!==F.current&&(F.current=U,E(U))},[]),O=u||b,M=c||k,V=C.useRef(null),F=C.useRef(null),H=C.useRef(g),Y=p!=null,q=qu(p),$=qu(a),D=qu(h),X=C.useCallback(()=>{if(!V.current||!F.current)return;const U={placement:n,strategy:i,middleware:x};$.current&&(U.platform=$.current),rk(V.current,F.current,U).then(ee=>{const Z={...ee,isPositioned:D.current!==!1};B.current&&!ua(H.current,Z)&&(H.current=Z,Pa.flushSync(()=>{y(Z)}))})},[x,n,i,$,D]);ea(()=>{h===!1&&H.current.isPositioned&&(H.current.isPositioned=!1,y(U=>({...U,isPositioned:!1})))},[h]);const B=C.useRef(!1);ea(()=>(B.current=!0,()=>{B.current=!1}),[]),ea(()=>{if(O&&(V.current=O),M&&(F.current=M),O&&M){if(q.current)return q.current(O,M,X);X()}},[O,M,X,q,Y]);const ce=C.useMemo(()=>({reference:V,floating:F,setReference:j,setFloating:N}),[j,N]),se=C.useMemo(()=>({reference:O,floating:M}),[O,M]),te=C.useMemo(()=>{const U={position:i,left:0,top:0};if(!se.floating)return U;const ee=wm(se.floating,g.x),Z=wm(se.floating,g.y);return f?{...U,transform:"translate("+ee+"px, "+Z+"px)",...hy(se.floating)>=1.5&&{willChange:"transform"}}:{position:i,left:ee,top:Z}},[i,f,se.floating,g.x,g.y]);return C.useMemo(()=>({...g,update:X,refs:ce,elements:se,floatingStyles:te}),[g,X,ce,se,te])}const sk=e=>{function n(i){return{}.hasOwnProperty.call(i,"current")}return{name:"arrow",options:e,fn(i){const{element:o,padding:a}=typeof e=="function"?e(i):e;return o&&n(o)?o.current!=null?xm({element:o.current,padding:a}).fn(i):{}:o?xm({element:o,padding:a}).fn(i):{}}}},ok=(e,n)=>({...Xb(e),options:[e,n]}),ak=(e,n)=>({...Zb(e),options:[e,n]}),lk=(e,n)=>({...nk(e),options:[e,n]}),uk=(e,n)=>({...Jb(e),options:[e,n]}),ck=(e,n)=>({...ek(e),options:[e,n]}),dk=(e,n)=>({...tk(e),options:[e,n]}),fk=(e,n)=>({...sk(e),options:[e,n]});var pk="Arrow",my=C.forwardRef((e,n)=>{const{children:i,width:o=10,height:a=5,...u}=e;return v.jsx(mt.svg,{...u,ref:n,width:o,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?i:v.jsx("polygon",{points:"0,0 30,0 15,10"})})});my.displayName=pk;var hk=my;function mk(e){const[n,i]=C.useState(void 0);return yr(()=>{if(e){i({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const u=a[0];let c,f;if("borderBoxSize"in u){const p=u.borderBoxSize,h=Array.isArray(p)?p[0]:p;c=h.inlineSize,f=h.blockSize}else c=e.offsetWidth,f=e.offsetHeight;i({width:c,height:f})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else i(void 0)},[e]),n}var gy="Popper",[vy,yy]=ba(gy),[Fj,xy]=vy(gy),wy="PopperAnchor",Sy=C.forwardRef((e,n)=>{const{__scopePopper:i,virtualRef:o,...a}=e,u=xy(wy,i),c=C.useRef(null),f=Ut(n,c);return C.useEffect(()=>{u.onAnchorChange(o?.current||c.current)}),o?null:v.jsx(mt.div,{...a,ref:f})});Sy.displayName=wy;var rd="PopperContent",[gk,vk]=vy(rd),Py=C.forwardRef((e,n)=>{const{__scopePopper:i,side:o="bottom",sideOffset:a=0,align:u="center",alignOffset:c=0,arrowPadding:f=0,avoidCollisions:p=!0,collisionBoundary:h=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:x=!1,updatePositionStrategy:S="optimized",onPlaced:b,...P}=e,k=xy(rd,i),[E,j]=C.useState(null),N=Ut(n,ge=>j(ge)),[O,M]=C.useState(null),V=mk(O),F=V?.width??0,H=V?.height??0,Y=o+(u!=="center"?"-"+u:""),q=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},$=Array.isArray(h)?h:[h],D=$.length>0,X={padding:q,boundary:$.filter(xk),altBoundary:D},{refs:B,floatingStyles:ce,placement:se,isPositioned:te,middlewareData:U}=ik({strategy:"fixed",placement:Y,whileElementsMounted:(...ge)=>Yb(...ge,{animationFrame:S==="always"}),elements:{reference:k.anchor},middleware:[ok({mainAxis:a+H,alignmentAxis:c}),p&&ak({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?lk():void 0,...X}),p&&uk({...X}),ck({...X,apply:({elements:ge,rects:ue,availableWidth:we,availableHeight:Oe})=>{const{width:kt,height:Sr}=ue.reference,rn=ge.floating.style;rn.setProperty("--radix-popper-available-width",`${we}px`),rn.setProperty("--radix-popper-available-height",`${Oe}px`),rn.setProperty("--radix-popper-anchor-width",`${kt}px`),rn.setProperty("--radix-popper-anchor-height",`${Sr}px`)}}),O&&fk({element:O,padding:f}),wk({arrowWidth:F,arrowHeight:H}),x&&dk({strategy:"referenceHidden",...X})]}),[ee,Z]=Ey(se),_=Jt(b);yr(()=>{te&&_?.()},[te,_]);const W=U.arrow?.x,le=U.arrow?.y,he=U.arrow?.centerOffset!==0,[xe,ye]=C.useState();return yr(()=>{E&&ye(window.getComputedStyle(E).zIndex)},[E]),v.jsx("div",{ref:B.setFloating,"data-radix-popper-content-wrapper":"",style:{...ce,transform:te?ce.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:xe,"--radix-popper-transform-origin":[U.transformOrigin?.x,U.transformOrigin?.y].join(" "),...U.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:v.jsx(gk,{scope:i,placedSide:ee,onArrowChange:M,arrowX:W,arrowY:le,shouldHideArrow:he,children:v.jsx(mt.div,{"data-side":ee,"data-align":Z,...P,ref:N,style:{...P.style,animation:te?void 0:"none"}})})})});Py.displayName=rd;var by="PopperArrow",yk={top:"bottom",right:"left",bottom:"top",left:"right"},ky=C.forwardRef(function(n,i){const{__scopePopper:o,...a}=n,u=vk(by,o),c=yk[u.placedSide];return v.jsx("span",{ref:u.onArrowChange,style:{position:"absolute",left:u.arrowX,top:u.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[u.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[u.placedSide],visibility:u.shouldHideArrow?"hidden":void 0},children:v.jsx(hk,{...a,ref:i,style:{...a.style,display:"block"}})})});ky.displayName=by;function xk(e){return e!==null}var wk=e=>({name:"transformOrigin",options:e,fn(n){const{placement:i,rects:o,middlewareData:a}=n,c=a.arrow?.centerOffset!==0,f=c?0:e.arrowWidth,p=c?0:e.arrowHeight,[h,g]=Ey(i),y={start:"0%",center:"50%",end:"100%"}[g],x=(a.arrow?.x??0)+f/2,S=(a.arrow?.y??0)+p/2;let b="",P="";return h==="bottom"?(b=c?y:`${x}px`,P=`${-p}px`):h==="top"?(b=c?y:`${x}px`,P=`${o.floating.height+p}px`):h==="right"?(b=`${-p}px`,P=c?y:`${S}px`):h==="left"&&(b=`${o.floating.width+p}px`,P=c?y:`${S}px`),{data:{x:b,y:P}}}});function Ey(e){const[n,i="center"]=e.split("-");return[n,i]}var Sk=Sy,Pk=Py,bk=ky,[Aa]=ba("Tooltip",[yy]),id=yy(),Ty="TooltipProvider",kk=700,Sm="tooltip.open",[Ek,Cy]=Aa(Ty),jy=e=>{const{__scopeTooltip:n,delayDuration:i=kk,skipDelayDuration:o=300,disableHoverableContent:a=!1,children:u}=e,c=C.useRef(!0),f=C.useRef(!1),p=C.useRef(0);return C.useEffect(()=>{const h=p.current;return()=>window.clearTimeout(h)},[]),v.jsx(Ek,{scope:n,isOpenDelayedRef:c,delayDuration:i,onOpen:C.useCallback(()=>{window.clearTimeout(p.current),c.current=!1},[]),onClose:C.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>c.current=!0,o)},[o]),isPointerInTransitRef:f,onPointerInTransitChange:C.useCallback(h=>{f.current=h},[]),disableHoverableContent:a,children:u})};jy.displayName=Ty;var Ny="Tooltip",[Vj,Ra]=Aa(Ny),Sc="TooltipTrigger",Tk=C.forwardRef((e,n)=>{const{__scopeTooltip:i,...o}=e,a=Ra(Sc,i),u=Cy(Sc,i),c=id(i),f=C.useRef(null),p=Ut(n,f,a.onTriggerChange),h=C.useRef(!1),g=C.useRef(!1),y=C.useCallback(()=>h.current=!1,[]);return C.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),v.jsx(Sk,{asChild:!0,...c,children:v.jsx(mt.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...o,ref:p,onPointerMove:qe(e.onPointerMove,x=>{x.pointerType!=="touch"&&!g.current&&!u.isPointerInTransitRef.current&&(a.onTriggerEnter(),g.current=!0)}),onPointerLeave:qe(e.onPointerLeave,()=>{a.onTriggerLeave(),g.current=!1}),onPointerDown:qe(e.onPointerDown,()=>{a.open&&a.onClose(),h.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:qe(e.onFocus,()=>{h.current||a.onOpen()}),onBlur:qe(e.onBlur,a.onClose),onClick:qe(e.onClick,a.onClose)})})});Tk.displayName=Sc;var Ck="TooltipPortal",[zj,jk]=Aa(Ck,{forceMount:void 0}),ni="TooltipContent",Ay=C.forwardRef((e,n)=>{const i=jk(ni,e.__scopeTooltip),{forceMount:o=i.forceMount,side:a="top",...u}=e,c=Ra(ni,e.__scopeTooltip);return v.jsx(Wc,{present:o||c.open,children:c.disableHoverableContent?v.jsx(Ry,{side:a,...u,ref:n}):v.jsx(Nk,{side:a,...u,ref:n})})}),Nk=C.forwardRef((e,n)=>{const i=Ra(ni,e.__scopeTooltip),o=Cy(ni,e.__scopeTooltip),a=C.useRef(null),u=Ut(n,a),[c,f]=C.useState(null),{trigger:p,onClose:h}=i,g=a.current,{onPointerInTransitChange:y}=o,x=C.useCallback(()=>{f(null),y(!1)},[y]),S=C.useCallback((b,P)=>{const k=b.currentTarget,E={x:b.clientX,y:b.clientY},j=Mk(E,k.getBoundingClientRect()),N=Dk(E,j),O=Lk(P.getBoundingClientRect()),M=Fk([...N,...O]);f(M),y(!0)},[y]);return C.useEffect(()=>()=>x(),[x]),C.useEffect(()=>{if(p&&g){const b=k=>S(k,g),P=k=>S(k,p);return p.addEventListener("pointerleave",b),g.addEventListener("pointerleave",P),()=>{p.removeEventListener("pointerleave",b),g.removeEventListener("pointerleave",P)}}},[p,g,S,x]),C.useEffect(()=>{if(c){const b=P=>{const k=P.target,E={x:P.clientX,y:P.clientY},j=p?.contains(k)||g?.contains(k),N=!Ik(E,c);j?x():N&&(x(),h())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[p,g,c,h,x]),v.jsx(Ry,{...e,ref:u})}),[Ak,Rk]=Aa(Ny,{isInside:!1}),_k=jS("TooltipContent"),Ry=C.forwardRef((e,n)=>{const{__scopeTooltip:i,children:o,"aria-label":a,onEscapeKeyDown:u,onPointerDownOutside:c,...f}=e,p=Ra(ni,i),h=id(i),{onClose:g}=p;return C.useEffect(()=>(document.addEventListener(Sm,g),()=>document.removeEventListener(Sm,g)),[g]),C.useEffect(()=>{if(p.trigger){const y=x=>{x.target?.contains(p.trigger)&&g()};return window.addEventListener("scroll",y,{capture:!0}),()=>window.removeEventListener("scroll",y,{capture:!0})}},[p.trigger,g]),v.jsx(Hc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:y=>y.preventDefault(),onDismiss:g,children:v.jsxs(Pk,{"data-state":p.stateAttribute,...h,...f,ref:n,style:{...f.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[v.jsx(_k,{children:o}),v.jsx(Ak,{scope:i,isInside:!0,children:v.jsx(YS,{id:p.contentId,role:"tooltip",children:a||o})})]})})});Ay.displayName=ni;var _y="TooltipArrow",Ok=C.forwardRef((e,n)=>{const{__scopeTooltip:i,...o}=e,a=id(i);return Rk(_y,i).isInside?null:v.jsx(bk,{...a,...o,ref:n})});Ok.displayName=_y;function Mk(e,n){const i=Math.abs(n.top-e.y),o=Math.abs(n.bottom-e.y),a=Math.abs(n.right-e.x),u=Math.abs(n.left-e.x);switch(Math.min(i,o,a,u)){case u:return"left";case a:return"right";case i:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function Dk(e,n,i=5){const o=[];switch(n){case"top":o.push({x:e.x-i,y:e.y+i},{x:e.x+i,y:e.y+i});break;case"bottom":o.push({x:e.x-i,y:e.y-i},{x:e.x+i,y:e.y-i});break;case"left":o.push({x:e.x+i,y:e.y-i},{x:e.x+i,y:e.y+i});break;case"right":o.push({x:e.x-i,y:e.y-i},{x:e.x-i,y:e.y+i});break}return o}function Lk(e){const{top:n,right:i,bottom:o,left:a}=e;return[{x:a,y:n},{x:i,y:n},{x:i,y:o},{x:a,y:o}]}function Ik(e,n){const{x:i,y:o}=e;let a=!1;for(let u=0,c=n.length-1;u<n.length;c=u++){const f=n[u].x,p=n[u].y,h=n[c].x,g=n[c].y;p>o!=g>o&&i<(h-f)*(o-p)/(g-p)+f&&(a=!a)}return a}function Fk(e){const n=e.slice();return n.sort((i,o)=>i.x<o.x?-1:i.x>o.x?1:i.y<o.y?-1:i.y>o.y?1:0),Vk(n)}function Vk(e){if(e.length<=1)return e.slice();const n=[];for(let o=0;o<e.length;o++){const a=e[o];for(;n.length>=2;){const u=n[n.length-1],c=n[n.length-2];if((u.x-c.x)*(a.y-c.y)>=(u.y-c.y)*(a.x-c.x))n.pop();else break}n.push(a)}n.pop();const i=[];for(let o=e.length-1;o>=0;o--){const a=e[o];for(;i.length>=2;){const u=i[i.length-1],c=i[i.length-2];if((u.x-c.x)*(a.y-c.y)>=(u.y-c.y)*(a.x-c.x))i.pop();else break}i.push(a)}return i.pop(),n.length===1&&i.length===1&&n[0].x===i[0].x&&n[0].y===i[0].y?n:n.concat(i)}var zk=jy,Oy=Ay;const Bk=zk,Uk=C.forwardRef(({className:e,sideOffset:n=4,...i},o)=>v.jsx(Oy,{ref:o,sideOffset:n,className:gt("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",e),...i}));Uk.displayName=Oy.displayName;const My=C.forwardRef(({className:e,...n},i)=>v.jsx("div",{ref:i,className:gt("shadcn-card rounded-xl border bg-card border-card-border text-card-foreground shadow-sm",e),...n}));My.displayName="Card";const Hk=C.forwardRef(({className:e,...n},i)=>v.jsx("div",{ref:i,className:gt("flex flex-col space-y-1.5 p-6",e),...n}));Hk.displayName="CardHeader";const Wk=C.forwardRef(({className:e,...n},i)=>v.jsx("div",{ref:i,className:gt("text-2xl font-semibold leading-none tracking-tight",e),...n}));Wk.displayName="CardTitle";const $k=C.forwardRef(({className:e,...n},i)=>v.jsx("div",{ref:i,className:gt("text-sm text-muted-foreground",e),...n}));$k.displayName="CardDescription";const Dy=C.forwardRef(({className:e,...n},i)=>v.jsx("div",{ref:i,className:gt("p-6 pt-0",e),...n}));Dy.displayName="CardContent";const qk=C.forwardRef(({className:e,...n},i)=>v.jsx("div",{ref:i,className:gt("flex items-center p-6 pt-0",e),...n}));qk.displayName="CardFooter";function Kk(){return v.jsx("div",{className:"min-h-screen w-full flex items-center justify-center bg-gray-50",children:v.jsx(My,{className:"w-full max-w-md mx-4",children:v.jsxs(Dy,{className:"pt-6",children:[v.jsxs("div",{className:"flex mb-4 gap-2",children:[v.jsx(PP,{className:"h-8 w-8 text-red-500"}),v.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"404 Page Not Found"})]}),v.jsx("p",{className:"mt-4 text-sm text-gray-600",children:"Did you forget to add the page to the router?"})]})})})}var _e={},Do={},Lo={},Io={},Ku,Pm;function Qk(){if(Pm)return Ku;Pm=1;var e="Expected a function",n=NaN,i="[object Symbol]",o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,f=parseInt,p=typeof jo=="object"&&jo&&jo.Object===Object&&jo,h=typeof self=="object"&&self&&self.Object===Object&&self,g=p||h||Function("return this")(),y=Object.prototype,x=y.toString,S=Math.max,b=Math.min,P=function(){return g.Date.now()};function k(V,F,H){var Y,q,$,D,X,B,ce=0,se=!1,te=!1,U=!0;if(typeof V!="function")throw new TypeError(e);F=M(F)||0,j(H)&&(se=!!H.leading,te="maxWait"in H,$=te?S(M(H.maxWait)||0,F):$,U="trailing"in H?!!H.trailing:U);function ee(ue){var we=Y,Oe=q;return Y=q=void 0,ce=ue,D=V.apply(Oe,we),D}function Z(ue){return ce=ue,X=setTimeout(le,F),se?ee(ue):D}function _(ue){var we=ue-B,Oe=ue-ce,kt=F-we;return te?b(kt,$-Oe):kt}function W(ue){var we=ue-B,Oe=ue-ce;return B===void 0||we>=F||we<0||te&&Oe>=$}function le(){var ue=P();if(W(ue))return he(ue);X=setTimeout(le,_(ue))}function he(ue){return X=void 0,U&&Y?ee(ue):(Y=q=void 0,D)}function xe(){X!==void 0&&clearTimeout(X),ce=0,Y=B=q=X=void 0}function ye(){return X===void 0?D:he(P())}function ge(){var ue=P(),we=W(ue);if(Y=arguments,q=this,B=ue,we){if(X===void 0)return Z(B);if(te)return X=setTimeout(le,F),ee(B)}return X===void 0&&(X=setTimeout(le,F)),D}return ge.cancel=xe,ge.flush=ye,ge}function E(V,F,H){var Y=!0,q=!0;if(typeof V!="function")throw new TypeError(e);return j(H)&&(Y="leading"in H?!!H.leading:Y,q="trailing"in H?!!H.trailing:q),k(V,F,{leading:Y,maxWait:F,trailing:q})}function j(V){var F=typeof V;return!!V&&(F=="object"||F=="function")}function N(V){return!!V&&typeof V=="object"}function O(V){return typeof V=="symbol"||N(V)&&x.call(V)==i}function M(V){if(typeof V=="number")return V;if(O(V))return n;if(j(V)){var F=typeof V.valueOf=="function"?V.valueOf():V;V=j(F)?F+"":F}if(typeof V!="string")return V===0?V:+V;V=V.replace(o,"");var H=u.test(V);return H||c.test(V)?f(V.slice(2),H?2:8):a.test(V)?n:+V}return Ku=E,Ku}var Zi={},bm;function sd(){if(bm)return Zi;bm=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.addPassiveEventListener=function(i,o,a){var u=a.name;u||(u=o,console.warn("Listener must be a named function.")),e.has(o)||e.set(o,new Set);var c=e.get(o);if(!c.has(u)){var f=(function(){var p=!1;try{var h=Object.defineProperty({},"passive",{get:function(){p=!0}});window.addEventListener("test",null,h)}catch{}return p})();i.addEventListener(o,a,f?{passive:!0}:!1),c.add(u)}},Zi.removePassiveEventListener=function(i,o,a){i.removeEventListener(o,a),e.get(o).delete(a.name||o)};var e=new Map;return Zi}var km;function od(){if(km)return Io;km=1,Object.defineProperty(Io,"__esModule",{value:!0});var e=Qk(),n=o(e),i=sd();function o(c){return c&&c.__esModule?c:{default:c}}var a=function(f){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:66;return(0,n.default)(f,p)},u={spyCallbacks:[],spySetState:[],scrollSpyContainers:[],mount:function(f,p){if(f){var h=a(function(g){u.scrollHandler(f)},p);return u.scrollSpyContainers.push(f),(0,i.addPassiveEventListener)(f,"scroll",h),function(){(0,i.removePassiveEventListener)(f,"scroll",h),u.scrollSpyContainers.splice(u.scrollSpyContainers.indexOf(f),1)}}return function(){}},isMounted:function(f){return u.scrollSpyContainers.indexOf(f)!==-1},currentPositionX:function(f){if(f===document){var p=window.scrollY!==void 0,h=(document.compatMode||"")==="CSS1Compat";return p?window.scrollX:h?document.documentElement.scrollLeft:document.body.scrollLeft}else return f.scrollLeft},currentPositionY:function(f){if(f===document){var p=window.scrollX!==void 0,h=(document.compatMode||"")==="CSS1Compat";return p?window.scrollY:h?document.documentElement.scrollTop:document.body.scrollTop}else return f.scrollTop},scrollHandler:function(f){var p=u.scrollSpyContainers[u.scrollSpyContainers.indexOf(f)].spyCallbacks||[];p.forEach(function(h){return h(u.currentPositionX(f),u.currentPositionY(f))})},addStateHandler:function(f){u.spySetState.push(f)},addSpyHandler:function(f,p){var h=u.scrollSpyContainers[u.scrollSpyContainers.indexOf(p)];h.spyCallbacks||(h.spyCallbacks=[]),h.spyCallbacks.push(f)},updateStates:function(){u.spySetState.forEach(function(f){return f()})},unmount:function(f,p){u.scrollSpyContainers.forEach(function(h){return h.spyCallbacks&&h.spyCallbacks.length&&h.spyCallbacks.indexOf(p)>-1&&h.spyCallbacks.splice(h.spyCallbacks.indexOf(p),1)}),u.spySetState&&u.spySetState.length&&u.spySetState.indexOf(f)>-1&&u.spySetState.splice(u.spySetState.indexOf(f),1),document.removeEventListener("scroll",u.scrollHandler)},update:function(){return u.scrollSpyContainers.forEach(function(f){return u.scrollHandler(f)})}};return Io.default=u,Io}var Fo={},Vo={},Em;function _a(){if(Em)return Vo;Em=1,Object.defineProperty(Vo,"__esModule",{value:!0});var e=function(f,p){var h=f.indexOf("#")===0?f.substring(1):f,g=h?"#"+h:"",y=window&&window.location,x=g?y.pathname+y.search+g:y.pathname+y.search;p?history.pushState(history.state,"",x):history.replaceState(history.state,"",x)},n=function(){return window.location.hash.replace(/^#/,"")},i=function(f){return function(p){return f.contains?f!=p&&f.contains(p):!!(f.compareDocumentPosition(p)&16)}},o=function(f){return getComputedStyle(f).position!=="static"},a=function(f,p){for(var h=f.offsetTop,g=f.offsetParent;g&&!p(g);)h+=g.offsetTop,g=g.offsetParent;return{offsetTop:h,offsetParent:g}},u=function(f,p,h){if(h)return f===document?p.getBoundingClientRect().left+(window.scrollX||window.pageXOffset):getComputedStyle(f).position!=="static"?p.offsetLeft:p.offsetLeft-f.offsetLeft;if(f===document)return p.getBoundingClientRect().top+(window.scrollY||window.pageYOffset);if(o(f)){if(p.offsetParent!==f){var g=function(k){return k===f||k===document},y=a(p,g),x=y.offsetTop,S=y.offsetParent;if(S!==f)throw new Error("Seems containerElement is not an ancestor of the Element");return x}return p.offsetTop}if(p.offsetParent===f.offsetParent)return p.offsetTop-f.offsetTop;var b=function(k){return k===document};return a(p,b).offsetTop-a(f,b).offsetTop};return Vo.default={updateHash:e,getHash:n,filterElementInContainer:i,scrollOffset:u},Vo}var zo={},Bo={},Tm;function Gk(){return Tm||(Tm=1,Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.default={defaultEasing:function(n){return n<.5?Math.pow(n*2,2)/2:1-Math.pow((1-n)*2,2)/2},linear:function(n){return n},easeInQuad:function(n){return n*n},easeOutQuad:function(n){return n*(2-n)},easeInOutQuad:function(n){return n<.5?2*n*n:-1+(4-2*n)*n},easeInCubic:function(n){return n*n*n},easeOutCubic:function(n){return--n*n*n+1},easeInOutCubic:function(n){return n<.5?4*n*n*n:(n-1)*(2*n-2)*(2*n-2)+1},easeInQuart:function(n){return n*n*n*n},easeOutQuart:function(n){return 1- --n*n*n*n},easeInOutQuart:function(n){return n<.5?8*n*n*n*n:1-8*--n*n*n*n},easeInQuint:function(n){return n*n*n*n*n},easeOutQuint:function(n){return 1+--n*n*n*n*n},easeInOutQuint:function(n){return n<.5?16*n*n*n*n*n:1+16*--n*n*n*n*n}}),Bo}var Uo={},Cm;function Yk(){if(Cm)return Uo;Cm=1,Object.defineProperty(Uo,"__esModule",{value:!0});var e=sd(),n=["mousedown","wheel","touchmove","keydown"];return Uo.default={subscribe:function(o){return typeof document<"u"&&n.forEach(function(a){return(0,e.addPassiveEventListener)(document,a,o)})}},Uo}var Ho={},jm;function ad(){if(jm)return Ho;jm=1,Object.defineProperty(Ho,"__esModule",{value:!0});var e={registered:{},scrollEvent:{register:function(i,o){e.registered[i]=o},remove:function(i){e.registered[i]=null}}};return Ho.default=e,Ho}var Nm;function Ly(){if(Nm)return zo;Nm=1,Object.defineProperty(zo,"__esModule",{value:!0});var e=Object.assign||function(q){for(var $=1;$<arguments.length;$++){var D=arguments[$];for(var X in D)Object.prototype.hasOwnProperty.call(D,X)&&(q[X]=D[X])}return q},n=_a();p(n);var i=Gk(),o=p(i),a=Yk(),u=p(a),c=ad(),f=p(c);function p(q){return q&&q.__esModule?q:{default:q}}var h=function($){return o.default[$.smooth]||o.default.defaultEasing},g=function($){return typeof $=="function"?$:function(){return $}},y=function(){if(typeof window<"u")return window.requestAnimationFrame||window.webkitRequestAnimationFrame},x=(function(){return y()||function(q,$,D){window.setTimeout(q,D||1e3/60,new Date().getTime())}})(),S=function(){return{currentPosition:0,startPosition:0,targetPosition:0,progress:0,duration:0,cancel:!1,target:null,containerElement:null,to:null,start:null,delta:null,percent:null,delayTimeout:null}},b=function($){var D=$.data.containerElement;if(D&&D!==document&&D!==document.body)return D.scrollLeft;var X=window.pageXOffset!==void 0,B=(document.compatMode||"")==="CSS1Compat";return X?window.pageXOffset:B?document.documentElement.scrollLeft:document.body.scrollLeft},P=function($){var D=$.data.containerElement;if(D&&D!==document&&D!==document.body)return D.scrollTop;var X=window.pageXOffset!==void 0,B=(document.compatMode||"")==="CSS1Compat";return X?window.pageYOffset:B?document.documentElement.scrollTop:document.body.scrollTop},k=function($){var D=$.data.containerElement;if(D&&D!==document&&D!==document.body)return D.scrollWidth-D.offsetWidth;var X=document.body,B=document.documentElement;return Math.max(X.scrollWidth,X.offsetWidth,B.clientWidth,B.scrollWidth,B.offsetWidth)},E=function($){var D=$.data.containerElement;if(D&&D!==document&&D!==document.body)return D.scrollHeight-D.offsetHeight;var X=document.body,B=document.documentElement;return Math.max(X.scrollHeight,X.offsetHeight,B.clientHeight,B.scrollHeight,B.offsetHeight)},j=function q($,D,X){var B=D.data;if(!D.ignoreCancelEvents&&B.cancel){f.default.registered.end&&f.default.registered.end(B.to,B.target,B.currentPositionY);return}if(B.delta=Math.round(B.targetPosition-B.startPosition),B.start===null&&(B.start=X),B.progress=X-B.start,B.percent=B.progress>=B.duration?1:$(B.progress/B.duration),B.currentPosition=B.startPosition+Math.ceil(B.delta*B.percent),B.containerElement&&B.containerElement!==document&&B.containerElement!==document.body?D.horizontal?B.containerElement.scrollLeft=B.currentPosition:B.containerElement.scrollTop=B.currentPosition:D.horizontal?window.scrollTo(B.currentPosition,0):window.scrollTo(0,B.currentPosition),B.percent<1){var ce=q.bind(null,$,D);x.call(window,ce);return}f.default.registered.end&&f.default.registered.end(B.to,B.target,B.currentPosition)},N=function($){$.data.containerElement=$?$.containerId?document.getElementById($.containerId):$.container&&$.container.nodeType?$.container:document:null},O=function($,D,X,B){D.data=D.data||S(),window.clearTimeout(D.data.delayTimeout);var ce=function(){D.data.cancel=!0};if(u.default.subscribe(ce),N(D),D.data.start=null,D.data.cancel=!1,D.data.startPosition=D.horizontal?b(D):P(D),D.data.targetPosition=D.absolute?$:$+D.data.startPosition,D.data.startPosition===D.data.targetPosition){f.default.registered.end&&f.default.registered.end(D.data.to,D.data.target,D.data.currentPosition);return}D.data.delta=Math.round(D.data.targetPosition-D.data.startPosition),D.data.duration=g(D.duration)(D.data.delta),D.data.duration=isNaN(parseFloat(D.data.duration))?1e3:parseFloat(D.data.duration),D.data.to=X,D.data.target=B;var se=h(D),te=j.bind(null,se,D);if(D&&D.delay>0){D.data.delayTimeout=window.setTimeout(function(){f.default.registered.begin&&f.default.registered.begin(D.data.to,D.data.target),x.call(window,te)},D.delay);return}f.default.registered.begin&&f.default.registered.begin(D.data.to,D.data.target),x.call(window,te)},M=function($){return $=e({},$),$.data=$.data||S(),$.absolute=!0,$},V=function($){O(0,M($))},F=function($,D){O($,M(D))},H=function($){$=M($),N($),O($.horizontal?k($):E($),$)},Y=function($,D){D=M(D),N(D);var X=D.horizontal?b(D):P(D);O($+X,D)};return zo.default={animateTopScroll:O,getAnimationType:h,scrollToTop:V,scrollToBottom:H,scrollTo:F,scrollMore:Y},zo}var Am;function Oa(){if(Am)return Fo;Am=1,Object.defineProperty(Fo,"__esModule",{value:!0});var e=Object.assign||function(g){for(var y=1;y<arguments.length;y++){var x=arguments[y];for(var S in x)Object.prototype.hasOwnProperty.call(x,S)&&(g[S]=x[S])}return g},n=_a(),i=f(n),o=Ly(),a=f(o),u=ad(),c=f(u);function f(g){return g&&g.__esModule?g:{default:g}}var p={},h=void 0;return Fo.default={unmount:function(){p={}},register:function(y,x){p[y]=x},unregister:function(y){delete p[y]},get:function(y){return p[y]||document.getElementById(y)||document.getElementsByName(y)[0]||document.getElementsByClassName(y)[0]},setActiveLink:function(y){return h=y},getActiveLink:function(){return h},scrollTo:function(y,x){var S=this.get(y);if(!S){console.warn("target Element not found");return}x=e({},x,{absolute:!1});var b=x.containerId,P=x.container,k=void 0;b?k=document.getElementById(b):P&&P.nodeType?k=P:k=document,x.absolute=!0;var E=x.horizontal,j=i.default.scrollOffset(k,S,E)+(x.offset||0);if(!x.smooth){c.default.registered.begin&&c.default.registered.begin(y,S),k===document?x.horizontal?window.scrollTo(j,0):window.scrollTo(0,j):k.scrollTop=j,c.default.registered.end&&c.default.registered.end(y,S);return}a.default.animateTopScroll(j,x,y,S)}},Fo}var Qu={exports:{}},Gu,Rm;function Xk(){if(Rm)return Gu;Rm=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Gu=e,Gu}var Yu,_m;function Zk(){if(_m)return Yu;_m=1;var e=Xk();function n(){}function i(){}return i.resetWarningCache=n,Yu=function(){function o(c,f,p,h,g,y){if(y!==e){var x=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw x.name="Invariant Violation",x}}o.isRequired=o;function a(){return o}var u={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:a,element:o,elementType:o,instanceOf:a,node:o,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:i,resetWarningCache:n};return u.PropTypes=u,u},Yu}var Om;function Ma(){return Om||(Om=1,Qu.exports=Zk()()),Qu.exports}var Wo={},Mm;function Iy(){if(Mm)return Wo;Mm=1,Object.defineProperty(Wo,"__esModule",{value:!0}),sd();var e=_a(),n=i(e);function i(a){return a&&a.__esModule?a:{default:a}}var o={mountFlag:!1,initialized:!1,scroller:null,containers:{},mount:function(u){this.scroller=u,this.handleHashChange=this.handleHashChange.bind(this),window.addEventListener("hashchange",this.handleHashChange),this.initStateFromHash(),this.mountFlag=!0},mapContainer:function(u,c){this.containers[u]=c},isMounted:function(){return this.mountFlag},isInitialized:function(){return this.initialized},initStateFromHash:function(){var u=this,c=this.getHash();c?window.setTimeout(function(){u.scrollTo(c,!0),u.initialized=!0},10):this.initialized=!0},scrollTo:function(u,c){var f=this.scroller,p=f.get(u);if(p&&(c||u!==f.getActiveLink())){var h=this.containers[u]||document;f.scrollTo(u,{container:h})}},getHash:function(){return n.default.getHash()},changeHash:function(u,c){this.isInitialized()&&n.default.getHash()!==u&&n.default.updateHash(u,c)},handleHashChange:function(){this.scrollTo(this.getHash())},unmount:function(){this.scroller=null,this.containers=null,window.removeEventListener("hashchange",this.handleHashChange)}};return Wo.default=o,Wo}var Dm;function ld(){if(Dm)return Lo;Dm=1,Object.defineProperty(Lo,"__esModule",{value:!0});var e=Object.assign||function(E){for(var j=1;j<arguments.length;j++){var N=arguments[j];for(var O in N)Object.prototype.hasOwnProperty.call(N,O)&&(E[O]=N[O])}return E},n=(function(){function E(j,N){for(var O=0;O<N.length;O++){var M=N[O];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(j,M.key,M)}}return function(j,N,O){return N&&E(j.prototype,N),O&&E(j,O),j}})(),i=tn(),o=x(i),a=od(),u=x(a),c=Oa(),f=x(c),p=Ma(),h=x(p),g=Iy(),y=x(g);function x(E){return E&&E.__esModule?E:{default:E}}function S(E,j){if(!(E instanceof j))throw new TypeError("Cannot call a class as a function")}function b(E,j){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j&&(typeof j=="object"||typeof j=="function")?j:E}function P(E,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);E.prototype=Object.create(j&&j.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(E,j):E.__proto__=j)}var k={to:h.default.string.isRequired,containerId:h.default.string,container:h.default.object,activeClass:h.default.string,activeStyle:h.default.object,spy:h.default.bool,horizontal:h.default.bool,smooth:h.default.oneOfType([h.default.bool,h.default.string]),offset:h.default.number,delay:h.default.number,isDynamic:h.default.bool,onClick:h.default.func,duration:h.default.oneOfType([h.default.number,h.default.func]),absolute:h.default.bool,onSetActive:h.default.func,onSetInactive:h.default.func,ignoreCancelEvents:h.default.bool,hashSpy:h.default.bool,saveHashHistory:h.default.bool,spyThrottle:h.default.number};return Lo.default=function(E,j){var N=j||f.default,O=(function(V){P(F,V);function F(H){S(this,F);var Y=b(this,(F.__proto__||Object.getPrototypeOf(F)).call(this,H));return M.call(Y),Y.state={active:!1},Y.beforeUnmountCallbacks=[],Y}return n(F,[{key:"getScrollSpyContainer",value:function(){var Y=this.props.containerId,q=this.props.container;return Y&&!q?document.getElementById(Y):q&&q.nodeType?q:document}},{key:"componentDidMount",value:function(){if(this.props.spy||this.props.hashSpy){var Y=this.getScrollSpyContainer();if(!u.default.isMounted(Y)){var q=u.default.mount(Y,this.props.spyThrottle);this.beforeUnmountCallbacks.push(q)}this.props.hashSpy&&(y.default.isMounted()||y.default.mount(N),y.default.mapContainer(this.props.to,Y)),u.default.addSpyHandler(this.spyHandler,Y),this.setState({container:Y})}}},{key:"componentWillUnmount",value:function(){u.default.unmount(this.stateHandler,this.spyHandler),this.beforeUnmountCallbacks.forEach(function(Y){return Y()})}},{key:"render",value:function(){var Y="";this.state&&this.state.active?Y=((this.props.className||"")+" "+(this.props.activeClass||"active")).trim():Y=this.props.className;var q={};this.state&&this.state.active?q=e({},this.props.style,this.props.activeStyle):q=e({},this.props.style);var $=e({},this.props);for(var D in k)$.hasOwnProperty(D)&&delete $[D];return $.className=Y,$.style=q,$.onClick=this.handleClick,o.default.createElement(E,$)}}]),F})(o.default.PureComponent),M=function(){var F=this;this.scrollTo=function(H,Y){N.scrollTo(H,e({},F.state,Y))},this.handleClick=function(H){F.props.onClick&&F.props.onClick(H),H.stopPropagation&&H.stopPropagation(),H.preventDefault&&H.preventDefault(),F.scrollTo(F.props.to,F.props)},this.spyHandler=function(H,Y){var q=F.getScrollSpyContainer();if(!(y.default.isMounted()&&!y.default.isInitialized())){var $=F.props.horizontal,D=F.props.to,X=null,B=void 0,ce=void 0;if($){var se=0,te=0,U=0;if(q.getBoundingClientRect){var ee=q.getBoundingClientRect();U=ee.left}if(!X||F.props.isDynamic){if(X=N.get(D),!X)return;var Z=X.getBoundingClientRect();se=Z.left-U+H,te=se+Z.width}var _=H-F.props.offset;B=_>=Math.floor(se)&&_<Math.floor(te),ce=_<Math.floor(se)||_>=Math.floor(te)}else{var W=0,le=0,he=0;if(q.getBoundingClientRect){var xe=q.getBoundingClientRect();he=xe.top}if(!X||F.props.isDynamic){if(X=N.get(D),!X)return;var ye=X.getBoundingClientRect();W=ye.top-he+Y,le=W+ye.height}var ge=Y-F.props.offset;B=ge>=Math.floor(W)&&ge<Math.floor(le),ce=ge<Math.floor(W)||ge>=Math.floor(le)}var ue=N.getActiveLink();if(ce){if(D===ue&&N.setActiveLink(void 0),F.props.hashSpy&&y.default.getHash()===D){var we=F.props.saveHashHistory,Oe=we===void 0?!1:we;y.default.changeHash("",Oe)}F.props.spy&&F.state.active&&(F.setState({active:!1}),F.props.onSetInactive&&F.props.onSetInactive(D,X))}if(B&&(ue!==D||F.state.active===!1)){N.setActiveLink(D);var kt=F.props.saveHashHistory,Sr=kt===void 0?!1:kt;F.props.hashSpy&&y.default.changeHash(D,Sr),F.props.spy&&(F.setState({active:!0}),F.props.onSetActive&&F.props.onSetActive(D,X))}}}};return O.propTypes=k,O.defaultProps={offset:0},O},Lo}var Lm;function Jk(){if(Lm)return Do;Lm=1,Object.defineProperty(Do,"__esModule",{value:!0});var e=tn(),n=a(e),i=ld(),o=a(i);function a(h){return h&&h.__esModule?h:{default:h}}function u(h,g){if(!(h instanceof g))throw new TypeError("Cannot call a class as a function")}function c(h,g){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:h}function f(h,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);h.prototype=Object.create(g&&g.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(h,g):h.__proto__=g)}var p=(function(h){f(g,h);function g(){var y,x,S,b;u(this,g);for(var P=arguments.length,k=Array(P),E=0;E<P;E++)k[E]=arguments[E];return b=(x=(S=c(this,(y=g.__proto__||Object.getPrototypeOf(g)).call.apply(y,[this].concat(k))),S),S.render=function(){return n.default.createElement("a",S.props,S.props.children)},x),c(S,b)}return g})(n.default.Component);return Do.default=(0,o.default)(p),Do}var $o={},Im;function eE(){if(Im)return $o;Im=1,Object.defineProperty($o,"__esModule",{value:!0});var e=(function(){function g(y,x){for(var S=0;S<x.length;S++){var b=x[S];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(y,b.key,b)}}return function(y,x,S){return x&&g(y.prototype,x),S&&g(y,S),y}})(),n=tn(),i=u(n),o=ld(),a=u(o);function u(g){return g&&g.__esModule?g:{default:g}}function c(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function f(g,y){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:g}function p(g,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);g.prototype=Object.create(y&&y.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(g,y):g.__proto__=y)}var h=(function(g){p(y,g);function y(){return c(this,y),f(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return e(y,[{key:"render",value:function(){return i.default.createElement("button",this.props,this.props.children)}}]),y})(i.default.Component);return $o.default=(0,a.default)(h),$o}var qo={},Ko={},Fm;function Fy(){if(Fm)return Ko;Fm=1,Object.defineProperty(Ko,"__esModule",{value:!0});var e=Object.assign||function(S){for(var b=1;b<arguments.length;b++){var P=arguments[b];for(var k in P)Object.prototype.hasOwnProperty.call(P,k)&&(S[k]=P[k])}return S},n=(function(){function S(b,P){for(var k=0;k<P.length;k++){var E=P[k];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(b,E.key,E)}}return function(b,P,k){return P&&S(b.prototype,P),k&&S(b,k),b}})(),i=tn(),o=h(i),a=ya();h(a);var u=Oa(),c=h(u),f=Ma(),p=h(f);function h(S){return S&&S.__esModule?S:{default:S}}function g(S,b){if(!(S instanceof b))throw new TypeError("Cannot call a class as a function")}function y(S,b){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:S}function x(S,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);S.prototype=Object.create(b&&b.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(S,b):S.__proto__=b)}return Ko.default=function(S){var b=(function(P){x(k,P);function k(E){g(this,k);var j=y(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,E));return j.childBindings={domNode:null},j}return n(k,[{key:"componentDidMount",value:function(){if(typeof window>"u")return!1;this.registerElems(this.props.name)}},{key:"componentDidUpdate",value:function(j){this.props.name!==j.name&&this.registerElems(this.props.name)}},{key:"componentWillUnmount",value:function(){if(typeof window>"u")return!1;c.default.unregister(this.props.name)}},{key:"registerElems",value:function(j){c.default.register(j,this.childBindings.domNode)}},{key:"render",value:function(){return o.default.createElement(S,e({},this.props,{parentBindings:this.childBindings}))}}]),k})(o.default.Component);return b.propTypes={name:p.default.string,id:p.default.string},b},Ko}var Vm;function tE(){if(Vm)return qo;Vm=1,Object.defineProperty(qo,"__esModule",{value:!0});var e=Object.assign||function(S){for(var b=1;b<arguments.length;b++){var P=arguments[b];for(var k in P)Object.prototype.hasOwnProperty.call(P,k)&&(S[k]=P[k])}return S},n=(function(){function S(b,P){for(var k=0;k<P.length;k++){var E=P[k];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(b,E.key,E)}}return function(b,P,k){return P&&S(b.prototype,P),k&&S(b,k),b}})(),i=tn(),o=p(i),a=Fy(),u=p(a),c=Ma(),f=p(c);function p(S){return S&&S.__esModule?S:{default:S}}function h(S,b){if(!(S instanceof b))throw new TypeError("Cannot call a class as a function")}function g(S,b){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:S}function y(S,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);S.prototype=Object.create(b&&b.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(S,b):S.__proto__=b)}var x=(function(S){y(b,S);function b(){return h(this,b),g(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return n(b,[{key:"render",value:function(){var k=this,E=e({},this.props);return delete E.name,E.parentBindings&&delete E.parentBindings,o.default.createElement("div",e({},E,{ref:function(N){k.props.parentBindings.domNode=N}}),this.props.children)}}]),b})(o.default.Component);return x.propTypes={name:f.default.string,id:f.default.string},qo.default=(0,u.default)(x),qo}var Xu,zm;function nE(){if(zm)return Xu;zm=1;var e=Object.assign||function(x){for(var S=1;S<arguments.length;S++){var b=arguments[S];for(var P in b)Object.prototype.hasOwnProperty.call(b,P)&&(x[P]=b[P])}return x},n=(function(){function x(S,b){for(var P=0;P<b.length;P++){var k=b[P];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(S,k.key,k)}}return function(S,b,P){return b&&x(S.prototype,b),P&&x(S,P),S}})();function i(x,S){if(!(x instanceof S))throw new TypeError("Cannot call a class as a function")}function o(x,S){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:x}function a(x,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);x.prototype=Object.create(S&&S.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(x,S):x.__proto__=S)}var u=tn();ya(),_a();var c=od(),f=Oa(),p=Ma(),h=Iy(),g={to:p.string.isRequired,containerId:p.string,container:p.object,activeClass:p.string,spy:p.bool,smooth:p.oneOfType([p.bool,p.string]),offset:p.number,delay:p.number,isDynamic:p.bool,onClick:p.func,duration:p.oneOfType([p.number,p.func]),absolute:p.bool,onSetActive:p.func,onSetInactive:p.func,ignoreCancelEvents:p.bool,hashSpy:p.bool,spyThrottle:p.number},y={Scroll:function(S,b){console.warn("Helpers.Scroll is deprecated since v1.7.0");var P=b||f,k=(function(j){a(N,j);function N(O){i(this,N);var M=o(this,(N.__proto__||Object.getPrototypeOf(N)).call(this,O));return E.call(M),M.state={active:!1},M}return n(N,[{key:"getScrollSpyContainer",value:function(){var M=this.props.containerId,V=this.props.container;return M?document.getElementById(M):V&&V.nodeType?V:document}},{key:"componentDidMount",value:function(){if(this.props.spy||this.props.hashSpy){var M=this.getScrollSpyContainer();c.isMounted(M)||c.mount(M,this.props.spyThrottle),this.props.hashSpy&&(h.isMounted()||h.mount(P),h.mapContainer(this.props.to,M)),this.props.spy&&c.addStateHandler(this.stateHandler),c.addSpyHandler(this.spyHandler,M),this.setState({container:M})}}},{key:"componentWillUnmount",value:function(){c.unmount(this.stateHandler,this.spyHandler)}},{key:"render",value:function(){var M="";this.state&&this.state.active?M=((this.props.className||"")+" "+(this.props.activeClass||"active")).trim():M=this.props.className;var V=e({},this.props);for(var F in g)V.hasOwnProperty(F)&&delete V[F];return V.className=M,V.onClick=this.handleClick,u.createElement(S,V)}}]),N})(u.Component),E=function(){var N=this;this.scrollTo=function(O,M){P.scrollTo(O,e({},N.state,M))},this.handleClick=function(O){N.props.onClick&&N.props.onClick(O),O.stopPropagation&&O.stopPropagation(),O.preventDefault&&O.preventDefault(),N.scrollTo(N.props.to,N.props)},this.stateHandler=function(){P.getActiveLink()!==N.props.to&&(N.state!==null&&N.state.active&&N.props.onSetInactive&&N.props.onSetInactive(),N.setState({active:!1}))},this.spyHandler=function(O){var M=N.getScrollSpyContainer();if(!(h.isMounted()&&!h.isInitialized())){var V=N.props.to,F=null,H=0,Y=0,q=0;if(M.getBoundingClientRect){var $=M.getBoundingClientRect();q=$.top}if(!F||N.props.isDynamic){if(F=P.get(V),!F)return;var D=F.getBoundingClientRect();H=D.top-q+O,Y=H+D.height}var X=O-N.props.offset,B=X>=Math.floor(H)&&X<Math.floor(Y),ce=X<Math.floor(H)||X>=Math.floor(Y),se=P.getActiveLink();if(ce)return V===se&&P.setActiveLink(void 0),N.props.hashSpy&&h.getHash()===V&&h.changeHash(),N.props.spy&&N.state.active&&(N.setState({active:!1}),N.props.onSetInactive&&N.props.onSetInactive()),c.updateStates();if(B&&se!==V)return P.setActiveLink(V),N.props.hashSpy&&h.changeHash(V),N.props.spy&&(N.setState({active:!0}),N.props.onSetActive&&N.props.onSetActive(V)),c.updateStates()}}};return k.propTypes=g,k.defaultProps={offset:0},k},Element:function(S){console.warn("Helpers.Element is deprecated since v1.7.0");var b=(function(P){a(k,P);function k(E){i(this,k);var j=o(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,E));return j.childBindings={domNode:null},j}return n(k,[{key:"componentDidMount",value:function(){if(typeof window>"u")return!1;this.registerElems(this.props.name)}},{key:"componentDidUpdate",value:function(j){this.props.name!==j.name&&this.registerElems(this.props.name)}},{key:"componentWillUnmount",value:function(){if(typeof window>"u")return!1;f.unregister(this.props.name)}},{key:"registerElems",value:function(j){f.register(j,this.childBindings.domNode)}},{key:"render",value:function(){return u.createElement(S,e({},this.props,{parentBindings:this.childBindings}))}}]),k})(u.Component);return b.propTypes={name:p.string,id:p.string},b}};return Xu=y,Xu}var Bm;function rE(){if(Bm)return _e;Bm=1,Object.defineProperty(_e,"__esModule",{value:!0}),_e.Helpers=_e.ScrollElement=_e.ScrollLink=_e.animateScroll=_e.scrollSpy=_e.Events=_e.scroller=_e.Element=_e.Button=_e.Link=void 0;var e=Jk(),n=O(e),i=eE(),o=O(i),a=tE(),u=O(a),c=Oa(),f=O(c),p=ad(),h=O(p),g=od(),y=O(g),x=Ly(),S=O(x),b=ld(),P=O(b),k=Fy(),E=O(k),j=nE(),N=O(j);function O(M){return M&&M.__esModule?M:{default:M}}return _e.Link=n.default,_e.Button=o.default,_e.Element=u.default,_e.scroller=f.default,_e.Events=h.default,_e.scrollSpy=y.default,_e.animateScroll=S.default,_e.ScrollLink=P.default,_e.ScrollElement=E.default,_e.Helpers=N.default,_e.default={Link:n.default,Button:o.default,Element:u.default,scroller:f.default,Events:h.default,scrollSpy:y.default,animateScroll:S.default,ScrollLink:P.default,ScrollElement:E.default,Helpers:N.default},_e}var ca=rE();function iE(e){if(typeof Proxy>"u")return e;const n=new Map,i=(...o)=>e(...o);return new Proxy(i,{get:(o,a)=>a==="create"?e:(n.has(a)||n.set(a,e(a)),n.get(a))})}function Da(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Pc=e=>Array.isArray(e);function Vy(e,n){if(!Array.isArray(n))return!1;const i=n.length;if(i!==e.length)return!1;for(let o=0;o<i;o++)if(n[o]!==e[o])return!1;return!0}function cs(e){return typeof e=="string"||Array.isArray(e)}function Um(e){const n=[{},{}];return e?.values.forEach((i,o)=>{n[0][o]=i.get(),n[1][o]=i.getVelocity()}),n}function ud(e,n,i,o){if(typeof n=="function"){const[a,u]=Um(o);n=n(i!==void 0?i:e.custom,a,u)}if(typeof n=="string"&&(n=e.variants&&e.variants[n]),typeof n=="function"){const[a,u]=Um(o);n=n(i!==void 0?i:e.custom,a,u)}return n}function La(e,n,i){const o=e.getProps();return ud(o,n,i!==void 0?i:o.custom,e)}const cd=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],dd=["initial",...cd],ms=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],wr=new Set(ms),vn=e=>e*1e3,yn=e=>e/1e3,sE={type:"spring",stiffness:500,damping:25,restSpeed:10},oE=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),aE={type:"keyframes",duration:.8},lE={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},uE=(e,{keyframes:n})=>n.length>2?aE:wr.has(e)?e.startsWith("scale")?oE(n[1]):sE:lE;function fd(e,n){return e?e[n]||e.default||e:void 0}const cE={useManualTiming:!1},dE=e=>e!==null;function Ia(e,{repeat:n,repeatType:i="loop"},o){const a=e.filter(dE),u=n&&i!=="loop"&&n%2===1?0:a.length-1;return!u||o===void 0?a[u]:o}const st=e=>e;let zy=st;function fE(e){let n=new Set,i=new Set,o=!1,a=!1;const u=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1};function f(h){u.has(h)&&(p.schedule(h),e()),h(c)}const p={schedule:(h,g=!1,y=!1)=>{const S=y&&o?n:i;return g&&u.add(h),S.has(h)||S.add(h),h},cancel:h=>{i.delete(h),u.delete(h)},process:h=>{if(c=h,o){a=!0;return}o=!0,[n,i]=[i,n],i.clear(),n.forEach(f),o=!1,a&&(a=!1,p.process(h))}};return p}const Qo=["read","resolveKeyframes","update","preRender","render","postRender"],pE=40;function By(e,n){let i=!1,o=!0;const a={delta:0,timestamp:0,isProcessing:!1},u=()=>i=!0,c=Qo.reduce((E,j)=>(E[j]=fE(u),E),{}),{read:f,resolveKeyframes:p,update:h,preRender:g,render:y,postRender:x}=c,S=()=>{const E=performance.now();i=!1,a.delta=o?1e3/60:Math.max(Math.min(E-a.timestamp,pE),1),a.timestamp=E,a.isProcessing=!0,f.process(a),p.process(a),h.process(a),g.process(a),y.process(a),x.process(a),a.isProcessing=!1,i&&n&&(o=!1,e(S))},b=()=>{i=!0,o=!0,a.isProcessing||e(S)};return{schedule:Qo.reduce((E,j)=>{const N=c[j];return E[j]=(O,M=!1,V=!1)=>(i||b(),N.schedule(O,M,V)),E},{}),cancel:E=>{for(let j=0;j<Qo.length;j++)c[Qo[j]].cancel(E)},state:a,steps:c}}const{schedule:Te,cancel:Xn,state:Ze,steps:Zu}=By(typeof requestAnimationFrame<"u"?requestAnimationFrame:st,!0),Uy=(e,n,i)=>(((1-3*i+3*n)*e+(3*i-6*n))*e+3*n)*e,hE=1e-7,mE=12;function gE(e,n,i,o,a){let u,c,f=0;do c=n+(i-n)/2,u=Uy(c,o,a)-e,u>0?i=c:n=c;while(Math.abs(u)>hE&&++f<mE);return c}function gs(e,n,i,o){if(e===n&&i===o)return st;const a=u=>gE(u,0,1,e,i);return u=>u===0||u===1?u:Uy(a(u),n,o)}const Hy=e=>n=>n<=.5?e(2*n)/2:(2-e(2*(1-n)))/2,Wy=e=>n=>1-e(1-n),$y=gs(.33,1.53,.69,.99),pd=Wy($y),qy=Hy(pd),Ky=e=>(e*=2)<1?.5*pd(e):.5*(2-Math.pow(2,-10*(e-1))),hd=e=>1-Math.sin(Math.acos(e)),Qy=Wy(hd),Gy=Hy(hd),Yy=e=>/^0[^.\s]+$/u.test(e);function vE(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Yy(e):!0}const Xy=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Zy=e=>n=>typeof n=="string"&&n.startsWith(e),Jy=Zy("--"),yE=Zy("var(--"),md=e=>yE(e)?xE.test(e.split("/*")[0].trim()):!1,xE=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,wE=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function SE(e){const n=wE.exec(e);if(!n)return[,];const[,i,o,a]=n;return[`--${i??o}`,a]}function e0(e,n,i=1){const[o,a]=SE(e);if(!o)return;const u=window.getComputedStyle(n).getPropertyValue(o);if(u){const c=u.trim();return Xy(c)?parseFloat(c):c}return md(a)?e0(a,n,i+1):a}const Pn=(e,n,i)=>i>n?n:i<e?e:i,ui={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ds={...ui,transform:e=>Pn(0,1,e)},Go={...ui,default:1},vs=e=>({test:n=>typeof n=="string"&&n.endsWith(e)&&n.split(" ").length===1,parse:parseFloat,transform:n=>`${n}${e}`}),$n=vs("deg"),Xt=vs("%"),pe=vs("px"),PE=vs("vh"),bE=vs("vw"),Hm={...Xt,parse:e=>Xt.parse(e)/100,transform:e=>Xt.transform(e*100)},kE=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Wm=e=>e===ui||e===pe,$m=(e,n)=>parseFloat(e.split(", ")[n]),qm=(e,n)=>(i,{transform:o})=>{if(o==="none"||!o)return 0;const a=o.match(/^matrix3d\((.+)\)$/u);if(a)return $m(a[1],n);{const u=o.match(/^matrix\((.+)\)$/u);return u?$m(u[1],e):0}},EE=new Set(["x","y","z"]),TE=ms.filter(e=>!EE.has(e));function CE(e){const n=[];return TE.forEach(i=>{const o=e.getValue(i);o!==void 0&&(n.push([i,o.get()]),o.set(i.startsWith("scale")?1:0))}),n}const ri={width:({x:e},{paddingLeft:n="0",paddingRight:i="0"})=>e.max-e.min-parseFloat(n)-parseFloat(i),height:({y:e},{paddingTop:n="0",paddingBottom:i="0"})=>e.max-e.min-parseFloat(n)-parseFloat(i),top:(e,{top:n})=>parseFloat(n),left:(e,{left:n})=>parseFloat(n),bottom:({y:e},{top:n})=>parseFloat(n)+(e.max-e.min),right:({x:e},{left:n})=>parseFloat(n)+(e.max-e.min),x:qm(4,13),y:qm(5,14)};ri.translateX=ri.x;ri.translateY=ri.y;const t0=e=>n=>n.test(e),jE={test:e=>e==="auto",parse:e=>e},n0=[ui,pe,Xt,$n,bE,PE,jE],Km=e=>n0.find(t0(e)),vr=new Set;let bc=!1,kc=!1;function r0(){if(kc){const e=Array.from(vr).filter(o=>o.needsMeasurement),n=new Set(e.map(o=>o.element)),i=new Map;n.forEach(o=>{const a=CE(o);a.length&&(i.set(o,a),o.render())}),e.forEach(o=>o.measureInitialState()),n.forEach(o=>{o.render();const a=i.get(o);a&&a.forEach(([u,c])=>{var f;(f=o.getValue(u))===null||f===void 0||f.set(c)})}),e.forEach(o=>o.measureEndState()),e.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}kc=!1,bc=!1,vr.forEach(e=>e.complete()),vr.clear()}function i0(){vr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(kc=!0)})}function NE(){i0(),r0()}class gd{constructor(n,i,o,a,u,c=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...n],this.onComplete=i,this.name=o,this.motionValue=a,this.element=u,this.isAsync=c}scheduleResolve(){this.isScheduled=!0,this.isAsync?(vr.add(this),bc||(bc=!0,Te.read(i0),Te.resolveKeyframes(r0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:n,name:i,element:o,motionValue:a}=this;for(let u=0;u<n.length;u++)if(n[u]===null)if(u===0){const c=a?.get(),f=n[n.length-1];if(c!==void 0)n[0]=c;else if(o&&i){const p=o.readValue(i,f);p!=null&&(n[0]=p)}n[0]===void 0&&(n[0]=f),a&&c===void 0&&a.set(n[0])}else n[u]=n[u-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),vr.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,vr.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const rs=e=>Math.round(e*1e5)/1e5,vd=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function AE(e){return e==null}const RE=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,yd=(e,n)=>i=>!!(typeof i=="string"&&RE.test(i)&&i.startsWith(e)||n&&!AE(i)&&Object.prototype.hasOwnProperty.call(i,n)),s0=(e,n,i)=>o=>{if(typeof o!="string")return o;const[a,u,c,f]=o.match(vd);return{[e]:parseFloat(a),[n]:parseFloat(u),[i]:parseFloat(c),alpha:f!==void 0?parseFloat(f):1}},_E=e=>Pn(0,255,e),Ju={...ui,transform:e=>Math.round(_E(e))},gr={test:yd("rgb","red"),parse:s0("red","green","blue"),transform:({red:e,green:n,blue:i,alpha:o=1})=>"rgba("+Ju.transform(e)+", "+Ju.transform(n)+", "+Ju.transform(i)+", "+rs(ds.transform(o))+")"};function OE(e){let n="",i="",o="",a="";return e.length>5?(n=e.substring(1,3),i=e.substring(3,5),o=e.substring(5,7),a=e.substring(7,9)):(n=e.substring(1,2),i=e.substring(2,3),o=e.substring(3,4),a=e.substring(4,5),n+=n,i+=i,o+=o,a+=a),{red:parseInt(n,16),green:parseInt(i,16),blue:parseInt(o,16),alpha:a?parseInt(a,16)/255:1}}const Ec={test:yd("#"),parse:OE,transform:gr.transform},Qr={test:yd("hsl","hue"),parse:s0("hue","saturation","lightness"),transform:({hue:e,saturation:n,lightness:i,alpha:o=1})=>"hsla("+Math.round(e)+", "+Xt.transform(rs(n))+", "+Xt.transform(rs(i))+", "+rs(ds.transform(o))+")"},rt={test:e=>gr.test(e)||Ec.test(e)||Qr.test(e),parse:e=>gr.test(e)?gr.parse(e):Qr.test(e)?Qr.parse(e):Ec.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?gr.transform(e):Qr.transform(e)},ME=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function DE(e){var n,i;return isNaN(e)&&typeof e=="string"&&(((n=e.match(vd))===null||n===void 0?void 0:n.length)||0)+(((i=e.match(ME))===null||i===void 0?void 0:i.length)||0)>0}const o0="number",a0="color",LE="var",IE="var(",Qm="${}",FE=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function fs(e){const n=e.toString(),i=[],o={color:[],number:[],var:[]},a=[];let u=0;const f=n.replace(FE,p=>(rt.test(p)?(o.color.push(u),a.push(a0),i.push(rt.parse(p))):p.startsWith(IE)?(o.var.push(u),a.push(LE),i.push(p)):(o.number.push(u),a.push(o0),i.push(parseFloat(p))),++u,Qm)).split(Qm);return{values:i,split:f,indexes:o,types:a}}function l0(e){return fs(e).values}function u0(e){const{split:n,types:i}=fs(e),o=n.length;return a=>{let u="";for(let c=0;c<o;c++)if(u+=n[c],a[c]!==void 0){const f=i[c];f===o0?u+=rs(a[c]):f===a0?u+=rt.transform(a[c]):u+=a[c]}return u}}const VE=e=>typeof e=="number"?0:e;function zE(e){const n=l0(e);return u0(e)(n.map(VE))}const Zn={test:DE,parse:l0,createTransformer:u0,getAnimatableNone:zE},BE=new Set(["brightness","contrast","saturate","opacity"]);function UE(e){const[n,i]=e.slice(0,-1).split("(");if(n==="drop-shadow")return e;const[o]=i.match(vd)||[];if(!o)return e;const a=i.replace(o,"");let u=BE.has(n)?1:0;return o!==i&&(u*=100),n+"("+u+a+")"}const HE=/\b([a-z-]*)\(.*?\)/gu,Tc={...Zn,getAnimatableNone:e=>{const n=e.match(HE);return n?n.map(UE).join(" "):e}},WE={borderWidth:pe,borderTopWidth:pe,borderRightWidth:pe,borderBottomWidth:pe,borderLeftWidth:pe,borderRadius:pe,radius:pe,borderTopLeftRadius:pe,borderTopRightRadius:pe,borderBottomRightRadius:pe,borderBottomLeftRadius:pe,width:pe,maxWidth:pe,height:pe,maxHeight:pe,top:pe,right:pe,bottom:pe,left:pe,padding:pe,paddingTop:pe,paddingRight:pe,paddingBottom:pe,paddingLeft:pe,margin:pe,marginTop:pe,marginRight:pe,marginBottom:pe,marginLeft:pe,backgroundPositionX:pe,backgroundPositionY:pe},$E={rotate:$n,rotateX:$n,rotateY:$n,rotateZ:$n,scale:Go,scaleX:Go,scaleY:Go,scaleZ:Go,skew:$n,skewX:$n,skewY:$n,distance:pe,translateX:pe,translateY:pe,translateZ:pe,x:pe,y:pe,z:pe,perspective:pe,transformPerspective:pe,opacity:ds,originX:Hm,originY:Hm,originZ:pe},Gm={...ui,transform:Math.round},xd={...WE,...$E,zIndex:Gm,size:pe,fillOpacity:ds,strokeOpacity:ds,numOctaves:Gm},qE={...xd,color:rt,backgroundColor:rt,outlineColor:rt,fill:rt,stroke:rt,borderColor:rt,borderTopColor:rt,borderRightColor:rt,borderBottomColor:rt,borderLeftColor:rt,filter:Tc,WebkitFilter:Tc},wd=e=>qE[e];function c0(e,n){let i=wd(e);return i!==Tc&&(i=Zn),i.getAnimatableNone?i.getAnimatableNone(n):void 0}const KE=new Set(["auto","none","0"]);function QE(e,n,i){let o=0,a;for(;o<e.length&&!a;){const u=e[o];typeof u=="string"&&!KE.has(u)&&fs(u).values.length&&(a=e[o]),o++}if(a&&i)for(const u of n)e[u]=c0(i,a)}class d0 extends gd{constructor(n,i,o,a,u){super(n,i,o,a,u,!0)}readKeyframes(){const{unresolvedKeyframes:n,element:i,name:o}=this;if(!i||!i.current)return;super.readKeyframes();for(let p=0;p<n.length;p++){let h=n[p];if(typeof h=="string"&&(h=h.trim(),md(h))){const g=e0(h,i.current);g!==void 0&&(n[p]=g),p===n.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!kE.has(o)||n.length!==2)return;const[a,u]=n,c=Km(a),f=Km(u);if(c!==f)if(Wm(c)&&Wm(f))for(let p=0;p<n.length;p++){const h=n[p];typeof h=="string"&&(n[p]=parseFloat(h))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:n,name:i}=this,o=[];for(let a=0;a<n.length;a++)vE(n[a])&&o.push(a);o.length&&QE(n,o,i)}measureInitialState(){const{element:n,unresolvedKeyframes:i,name:o}=this;if(!n||!n.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ri[o](n.measureViewportBox(),window.getComputedStyle(n.current)),i[0]=this.measuredOrigin;const a=i[i.length-1];a!==void 0&&n.getValue(o,a).jump(a,!1)}measureEndState(){var n;const{element:i,name:o,unresolvedKeyframes:a}=this;if(!i||!i.current)return;const u=i.getValue(o);u&&u.jump(this.measuredOrigin,!1);const c=a.length-1,f=a[c];a[c]=ri[o](i.measureViewportBox(),window.getComputedStyle(i.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),!((n=this.removedTransforms)===null||n===void 0)&&n.length&&this.removedTransforms.forEach(([p,h])=>{i.getValue(p).set(h)}),this.resolveNoneKeyframes()}}function Sd(e){return typeof e=="function"}let ta;function GE(){ta=void 0}const Zt={now:()=>(ta===void 0&&Zt.set(Ze.isProcessing||cE.useManualTiming?Ze.timestamp:performance.now()),ta),set:e=>{ta=e,queueMicrotask(GE)}},Ym=(e,n)=>n==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Zn.test(e)||e==="0")&&!e.startsWith("url("));function YE(e){const n=e[0];if(e.length===1)return!0;for(let i=0;i<e.length;i++)if(e[i]!==n)return!0}function XE(e,n,i,o){const a=e[0];if(a===null)return!1;if(n==="display"||n==="visibility")return!0;const u=e[e.length-1],c=Ym(a,n),f=Ym(u,n);return!c||!f?!1:YE(e)||(i==="spring"||Sd(i))&&o}const ZE=40;class f0{constructor({autoplay:n=!0,delay:i=0,type:o="keyframes",repeat:a=0,repeatDelay:u=0,repeatType:c="loop",...f}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Zt.now(),this.options={autoplay:n,delay:i,type:o,repeat:a,repeatDelay:u,repeatType:c,...f},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>ZE?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&NE(),this._resolved}onKeyframesResolved(n,i){this.resolvedAt=Zt.now(),this.hasAttemptedResolve=!0;const{name:o,type:a,velocity:u,delay:c,onComplete:f,onUpdate:p,isGenerator:h}=this.options;if(!h&&!XE(n,o,a,u))if(c)this.options.duration=0;else{p?.(Ia(n,this.options,i)),f?.(),this.resolveFinishedPromise();return}const g=this.initPlayback(n,i);g!==!1&&(this._resolved={keyframes:n,finalKeyframe:i,...g},this.onPostResolved())}onPostResolved(){}then(n,i){return this.currentFinishedPromise.then(n,i)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(n=>{this.resolveFinishedPromise=n})}}const ii=(e,n,i)=>{const o=n-e;return o===0?1:(i-e)/o},p0=(e,n,i=10)=>{let o="";const a=Math.max(Math.round(n/i),2);for(let u=0;u<a;u++)o+=e(ii(0,a-1,u))+", ";return`linear(${o.substring(0,o.length-2)})`};function h0(e,n){return n?e*(1e3/n):0}const JE=5;function m0(e,n,i){const o=Math.max(n-JE,0);return h0(i-e(o),n-o)}const Ve={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},ec=.001;function eT({duration:e=Ve.duration,bounce:n=Ve.bounce,velocity:i=Ve.velocity,mass:o=Ve.mass}){let a,u,c=1-n;c=Pn(Ve.minDamping,Ve.maxDamping,c),e=Pn(Ve.minDuration,Ve.maxDuration,yn(e)),c<1?(a=h=>{const g=h*c,y=g*e,x=g-i,S=Cc(h,c),b=Math.exp(-y);return ec-x/S*b},u=h=>{const y=h*c*e,x=y*i+i,S=Math.pow(c,2)*Math.pow(h,2)*e,b=Math.exp(-y),P=Cc(Math.pow(h,2),c);return(-a(h)+ec>0?-1:1)*((x-S)*b)/P}):(a=h=>{const g=Math.exp(-h*e),y=(h-i)*e+1;return-ec+g*y},u=h=>{const g=Math.exp(-h*e),y=(i-h)*(e*e);return g*y});const f=5/e,p=nT(a,u,f);if(e=vn(e),isNaN(p))return{stiffness:Ve.stiffness,damping:Ve.damping,duration:e};{const h=Math.pow(p,2)*o;return{stiffness:h,damping:c*2*Math.sqrt(o*h),duration:e}}}const tT=12;function nT(e,n,i){let o=i;for(let a=1;a<tT;a++)o=o-e(o)/n(o);return o}function Cc(e,n){return e*Math.sqrt(1-n*n)}const jc=2e4;function g0(e){let n=0;const i=50;let o=e.next(n);for(;!o.done&&n<jc;)n+=i,o=e.next(n);return n>=jc?1/0:n}const rT=["duration","bounce"],iT=["stiffness","damping","mass"];function Xm(e,n){return n.some(i=>e[i]!==void 0)}function sT(e){let n={velocity:Ve.velocity,stiffness:Ve.stiffness,damping:Ve.damping,mass:Ve.mass,isResolvedFromDuration:!1,...e};if(!Xm(e,iT)&&Xm(e,rT))if(e.visualDuration){const i=e.visualDuration,o=2*Math.PI/(i*1.2),a=o*o,u=2*Pn(.05,1,1-e.bounce)*Math.sqrt(a);n={...n,mass:Ve.mass,stiffness:a,damping:u}}else{const i=eT(e);n={...n,...i,mass:Ve.mass},n.isResolvedFromDuration=!0}return n}function v0(e=Ve.visualDuration,n=Ve.bounce){const i=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:n}:e;let{restSpeed:o,restDelta:a}=i;const u=i.keyframes[0],c=i.keyframes[i.keyframes.length-1],f={done:!1,value:u},{stiffness:p,damping:h,mass:g,duration:y,velocity:x,isResolvedFromDuration:S}=sT({...i,velocity:-yn(i.velocity||0)}),b=x||0,P=h/(2*Math.sqrt(p*g)),k=c-u,E=yn(Math.sqrt(p/g)),j=Math.abs(k)<5;o||(o=j?Ve.restSpeed.granular:Ve.restSpeed.default),a||(a=j?Ve.restDelta.granular:Ve.restDelta.default);let N;if(P<1){const M=Cc(E,P);N=V=>{const F=Math.exp(-P*E*V);return c-F*((b+P*E*k)/M*Math.sin(M*V)+k*Math.cos(M*V))}}else if(P===1)N=M=>c-Math.exp(-E*M)*(k+(b+E*k)*M);else{const M=E*Math.sqrt(P*P-1);N=V=>{const F=Math.exp(-P*E*V),H=Math.min(M*V,300);return c-F*((b+P*E*k)*Math.sinh(H)+M*k*Math.cosh(H))/M}}const O={calculatedDuration:S&&y||null,next:M=>{const V=N(M);if(S)f.done=M>=y;else{let F=0;P<1&&(F=M===0?vn(b):m0(N,M,V));const H=Math.abs(F)<=o,Y=Math.abs(c-V)<=a;f.done=H&&Y}return f.value=f.done?c:V,f},toString:()=>{const M=Math.min(g0(O),jc),V=p0(F=>O.next(M*F).value,M,30);return M+"ms "+V}};return O}function Zm({keyframes:e,velocity:n=0,power:i=.8,timeConstant:o=325,bounceDamping:a=10,bounceStiffness:u=500,modifyTarget:c,min:f,max:p,restDelta:h=.5,restSpeed:g}){const y=e[0],x={done:!1,value:y},S=H=>f!==void 0&&H<f||p!==void 0&&H>p,b=H=>f===void 0?p:p===void 0||Math.abs(f-H)<Math.abs(p-H)?f:p;let P=i*n;const k=y+P,E=c===void 0?k:c(k);E!==k&&(P=E-y);const j=H=>-P*Math.exp(-H/o),N=H=>E+j(H),O=H=>{const Y=j(H),q=N(H);x.done=Math.abs(Y)<=h,x.value=x.done?E:q};let M,V;const F=H=>{S(x.value)&&(M=H,V=v0({keyframes:[x.value,b(x.value)],velocity:m0(N,H,x.value),damping:a,stiffness:u,restDelta:h,restSpeed:g}))};return F(0),{calculatedDuration:null,next:H=>{let Y=!1;return!V&&M===void 0&&(Y=!0,O(H),F(H)),M!==void 0&&H>=M?V.next(H-M):(!Y&&O(H),x)}}}const oT=gs(.42,0,1,1),aT=gs(0,0,.58,1),y0=gs(.42,0,.58,1),lT=e=>Array.isArray(e)&&typeof e[0]!="number",Pd=e=>Array.isArray(e)&&typeof e[0]=="number",uT={linear:st,easeIn:oT,easeInOut:y0,easeOut:aT,circIn:hd,circInOut:Gy,circOut:Qy,backIn:pd,backInOut:qy,backOut:$y,anticipate:Ky},Jm=e=>{if(Pd(e)){zy(e.length===4);const[n,i,o,a]=e;return gs(n,i,o,a)}else if(typeof e=="string")return uT[e];return e},cT=(e,n)=>i=>n(e(i)),qn=(...e)=>e.reduce(cT),Le=(e,n,i)=>e+(n-e)*i;function tc(e,n,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+(n-e)*6*i:i<1/2?n:i<2/3?e+(n-e)*(2/3-i)*6:e}function dT({hue:e,saturation:n,lightness:i,alpha:o}){e/=360,n/=100,i/=100;let a=0,u=0,c=0;if(!n)a=u=c=i;else{const f=i<.5?i*(1+n):i+n-i*n,p=2*i-f;a=tc(p,f,e+1/3),u=tc(p,f,e),c=tc(p,f,e-1/3)}return{red:Math.round(a*255),green:Math.round(u*255),blue:Math.round(c*255),alpha:o}}function da(e,n){return i=>i>0?n:e}const nc=(e,n,i)=>{const o=e*e,a=i*(n*n-o)+o;return a<0?0:Math.sqrt(a)},fT=[Ec,gr,Qr],pT=e=>fT.find(n=>n.test(e));function eg(e){const n=pT(e);if(!n)return!1;let i=n.parse(e);return n===Qr&&(i=dT(i)),i}const tg=(e,n)=>{const i=eg(e),o=eg(n);if(!i||!o)return da(e,n);const a={...i};return u=>(a.red=nc(i.red,o.red,u),a.green=nc(i.green,o.green,u),a.blue=nc(i.blue,o.blue,u),a.alpha=Le(i.alpha,o.alpha,u),gr.transform(a))},Nc=new Set(["none","hidden"]);function hT(e,n){return Nc.has(e)?i=>i<=0?e:n:i=>i>=1?n:e}function mT(e,n){return i=>Le(e,n,i)}function bd(e){return typeof e=="number"?mT:typeof e=="string"?md(e)?da:rt.test(e)?tg:yT:Array.isArray(e)?x0:typeof e=="object"?rt.test(e)?tg:gT:da}function x0(e,n){const i=[...e],o=i.length,a=e.map((u,c)=>bd(u)(u,n[c]));return u=>{for(let c=0;c<o;c++)i[c]=a[c](u);return i}}function gT(e,n){const i={...e,...n},o={};for(const a in i)e[a]!==void 0&&n[a]!==void 0&&(o[a]=bd(e[a])(e[a],n[a]));return a=>{for(const u in o)i[u]=o[u](a);return i}}function vT(e,n){var i;const o=[],a={color:0,var:0,number:0};for(let u=0;u<n.values.length;u++){const c=n.types[u],f=e.indexes[c][a[c]],p=(i=e.values[f])!==null&&i!==void 0?i:0;o[u]=p,a[c]++}return o}const yT=(e,n)=>{const i=Zn.createTransformer(n),o=fs(e),a=fs(n);return o.indexes.var.length===a.indexes.var.length&&o.indexes.color.length===a.indexes.color.length&&o.indexes.number.length>=a.indexes.number.length?Nc.has(e)&&!a.values.length||Nc.has(n)&&!o.values.length?hT(e,n):qn(x0(vT(o,a),a.values),i):da(e,n)};function w0(e,n,i){return typeof e=="number"&&typeof n=="number"&&typeof i=="number"?Le(e,n,i):bd(e)(e,n)}function xT(e,n,i){const o=[],a=i||w0,u=e.length-1;for(let c=0;c<u;c++){let f=a(e[c],e[c+1]);if(n){const p=Array.isArray(n)?n[c]||st:n;f=qn(p,f)}o.push(f)}return o}function wT(e,n,{clamp:i=!0,ease:o,mixer:a}={}){const u=e.length;if(zy(u===n.length),u===1)return()=>n[0];if(u===2&&e[0]===e[1])return()=>n[1];e[0]>e[u-1]&&(e=[...e].reverse(),n=[...n].reverse());const c=xT(n,o,a),f=c.length,p=h=>{let g=0;if(f>1)for(;g<e.length-2&&!(h<e[g+1]);g++);const y=ii(e[g],e[g+1],h);return c[g](y)};return i?h=>p(Pn(e[0],e[u-1],h)):p}function ST(e,n){const i=e[e.length-1];for(let o=1;o<=n;o++){const a=ii(0,n,o);e.push(Le(i,1,a))}}function PT(e){const n=[0];return ST(n,e.length-1),n}function bT(e,n){return e.map(i=>i*n)}function kT(e,n){return e.map(()=>n||y0).splice(0,e.length-1)}function fa({duration:e=300,keyframes:n,times:i,ease:o="easeInOut"}){const a=lT(o)?o.map(Jm):Jm(o),u={done:!1,value:n[0]},c=bT(i&&i.length===n.length?i:PT(n),e),f=wT(c,n,{ease:Array.isArray(a)?a:kT(n,a)});return{calculatedDuration:e,next:p=>(u.value=f(p),u.done=p>=e,u)}}const ET=e=>{const n=({timestamp:i})=>e(i);return{start:()=>Te.update(n,!0),stop:()=>Xn(n),now:()=>Ze.isProcessing?Ze.timestamp:Zt.now()}},TT={decay:Zm,inertia:Zm,tween:fa,keyframes:fa,spring:v0},CT=e=>e/100;class kd extends f0{constructor(n){super(n),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:p}=this.options;p&&p()};const{name:i,motionValue:o,element:a,keyframes:u}=this.options,c=a?.KeyframeResolver||gd,f=(p,h)=>this.onKeyframesResolved(p,h);this.resolver=new c(u,f,i,o,a),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(n){const{type:i="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:u,velocity:c=0}=this.options,f=Sd(i)?i:TT[i]||fa;let p,h;f!==fa&&typeof n[0]!="number"&&(p=qn(CT,w0(n[0],n[1])),n=[0,100]);const g=f({...this.options,keyframes:n});u==="mirror"&&(h=f({...this.options,keyframes:[...n].reverse(),velocity:-c})),g.calculatedDuration===null&&(g.calculatedDuration=g0(g));const{calculatedDuration:y}=g,x=y+a,S=x*(o+1)-a;return{generator:g,mirroredGenerator:h,mapPercentToKeyframes:p,calculatedDuration:y,resolvedDuration:x,totalDuration:S}}onPostResolved(){const{autoplay:n=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!n?this.pause():this.state=this.pendingPlayState}tick(n,i=!1){const{resolved:o}=this;if(!o){const{keyframes:H}=this.options;return{done:!0,value:H[H.length-1]}}const{finalKeyframe:a,generator:u,mirroredGenerator:c,mapPercentToKeyframes:f,keyframes:p,calculatedDuration:h,totalDuration:g,resolvedDuration:y}=o;if(this.startTime===null)return u.next(0);const{delay:x,repeat:S,repeatType:b,repeatDelay:P,onUpdate:k}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,n):this.speed<0&&(this.startTime=Math.min(n-g/this.speed,this.startTime)),i?this.currentTime=n:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(n-this.startTime)*this.speed;const E=this.currentTime-x*(this.speed>=0?1:-1),j=this.speed>=0?E<0:E>g;this.currentTime=Math.max(E,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=g);let N=this.currentTime,O=u;if(S){const H=Math.min(this.currentTime,g)/y;let Y=Math.floor(H),q=H%1;!q&&H>=1&&(q=1),q===1&&Y--,Y=Math.min(Y,S+1),Y%2&&(b==="reverse"?(q=1-q,P&&(q-=P/y)):b==="mirror"&&(O=c)),N=Pn(0,1,q)*y}const M=j?{done:!1,value:p[0]}:O.next(N);f&&(M.value=f(M.value));let{done:V}=M;!j&&h!==null&&(V=this.speed>=0?this.currentTime>=g:this.currentTime<=0);const F=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&V);return F&&a!==void 0&&(M.value=Ia(p,this.options,a)),k&&k(M.value),F&&this.finish(),M}get duration(){const{resolved:n}=this;return n?yn(n.calculatedDuration):0}get time(){return yn(this.currentTime)}set time(n){n=vn(n),this.currentTime=n,this.holdTime!==null||this.speed===0?this.holdTime=n:this.driver&&(this.startTime=this.driver.now()-n/this.speed)}get speed(){return this.playbackSpeed}set speed(n){const i=this.playbackSpeed!==n;this.playbackSpeed=n,i&&(this.time=yn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:n=ET,onPlay:i,startTime:o}=this.options;this.driver||(this.driver=n(u=>this.tick(u))),i&&i();const a=this.driver.now();this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=a):this.startTime=o??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var n;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(n=this.currentTime)!==null&&n!==void 0?n:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:n}=this.options;n&&n()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(n){return this.startTime=0,this.tick(n,!0)}}const jT=new Set(["opacity","clipPath","filter","transform"]);function Ed(e){let n;return()=>(n===void 0&&(n=e()),n)}const NT={linearEasing:void 0};function AT(e,n){const i=Ed(e);return()=>{var o;return(o=NT[n])!==null&&o!==void 0?o:i()}}const pa=AT(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function S0(e){return!!(typeof e=="function"&&pa()||!e||typeof e=="string"&&(e in Ac||pa())||Pd(e)||Array.isArray(e)&&e.every(S0))}const es=([e,n,i,o])=>`cubic-bezier(${e}, ${n}, ${i}, ${o})`,Ac={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:es([0,.65,.55,1]),circOut:es([.55,0,1,.45]),backIn:es([.31,.01,.66,-.59]),backOut:es([.33,1.53,.69,.99])};function P0(e,n){if(e)return typeof e=="function"&&pa()?p0(e,n):Pd(e)?es(e):Array.isArray(e)?e.map(i=>P0(i,n)||Ac.easeOut):Ac[e]}function RT(e,n,i,{delay:o=0,duration:a=300,repeat:u=0,repeatType:c="loop",ease:f="easeInOut",times:p}={}){const h={[n]:i};p&&(h.offset=p);const g=P0(f,a);return Array.isArray(g)&&(h.easing=g),e.animate(h,{delay:o,duration:a,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:u+1,direction:c==="reverse"?"alternate":"normal"})}function ng(e,n){e.timeline=n,e.onfinish=null}const _T=Ed(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ha=10,OT=2e4;function MT(e){return Sd(e.type)||e.type==="spring"||!S0(e.ease)}function DT(e,n){const i=new kd({...n,keyframes:e,repeat:0,delay:0,isGenerator:!0});let o={done:!1,value:e[0]};const a=[];let u=0;for(;!o.done&&u<OT;)o=i.sample(u),a.push(o.value),u+=ha;return{times:void 0,keyframes:a,duration:u-ha,ease:"linear"}}const b0={anticipate:Ky,backInOut:qy,circInOut:Gy};function LT(e){return e in b0}class rg extends f0{constructor(n){super(n);const{name:i,motionValue:o,element:a,keyframes:u}=this.options;this.resolver=new d0(u,(c,f)=>this.onKeyframesResolved(c,f),i,o,a),this.resolver.scheduleResolve()}initPlayback(n,i){var o;let{duration:a=300,times:u,ease:c,type:f,motionValue:p,name:h,startTime:g}=this.options;if(!(!((o=p.owner)===null||o===void 0)&&o.current))return!1;if(typeof c=="string"&&pa()&&LT(c)&&(c=b0[c]),MT(this.options)){const{onComplete:x,onUpdate:S,motionValue:b,element:P,...k}=this.options,E=DT(n,k);n=E.keyframes,n.length===1&&(n[1]=n[0]),a=E.duration,u=E.times,c=E.ease,f="keyframes"}const y=RT(p.owner.current,h,n,{...this.options,duration:a,times:u,ease:c});return y.startTime=g??this.calcStartTime(),this.pendingTimeline?(ng(y,this.pendingTimeline),this.pendingTimeline=void 0):y.onfinish=()=>{const{onComplete:x}=this.options;p.set(Ia(n,this.options,i)),x&&x(),this.cancel(),this.resolveFinishedPromise()},{animation:y,duration:a,times:u,type:f,ease:c,keyframes:n}}get duration(){const{resolved:n}=this;if(!n)return 0;const{duration:i}=n;return yn(i)}get time(){const{resolved:n}=this;if(!n)return 0;const{animation:i}=n;return yn(i.currentTime||0)}set time(n){const{resolved:i}=this;if(!i)return;const{animation:o}=i;o.currentTime=vn(n)}get speed(){const{resolved:n}=this;if(!n)return 1;const{animation:i}=n;return i.playbackRate}set speed(n){const{resolved:i}=this;if(!i)return;const{animation:o}=i;o.playbackRate=n}get state(){const{resolved:n}=this;if(!n)return"idle";const{animation:i}=n;return i.playState}get startTime(){const{resolved:n}=this;if(!n)return null;const{animation:i}=n;return i.startTime}attachTimeline(n){if(!this._resolved)this.pendingTimeline=n;else{const{resolved:i}=this;if(!i)return st;const{animation:o}=i;ng(o,n)}return st}play(){if(this.isStopped)return;const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.playState==="finished"&&this.updateFinishedPromise(),i.play()}pause(){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:n}=this;if(!n)return;const{animation:i,keyframes:o,duration:a,type:u,ease:c,times:f}=n;if(i.playState==="idle"||i.playState==="finished")return;if(this.time){const{motionValue:h,onUpdate:g,onComplete:y,element:x,...S}=this.options,b=new kd({...S,keyframes:o,duration:a,type:u,ease:c,times:f,isGenerator:!0}),P=vn(this.time);h.setWithVelocity(b.sample(P-ha).value,b.sample(P).value,ha)}const{onStop:p}=this.options;p&&p(),this.cancel()}complete(){const{resolved:n}=this;n&&n.animation.finish()}cancel(){const{resolved:n}=this;n&&n.animation.cancel()}static supports(n){const{motionValue:i,name:o,repeatDelay:a,repeatType:u,damping:c,type:f}=n;return _T()&&o&&jT.has(o)&&i&&i.owner&&i.owner.current instanceof HTMLElement&&!i.owner.getProps().onUpdate&&!a&&u!=="mirror"&&c!==0&&f!=="inertia"}}const IT=Ed(()=>window.ScrollTimeline!==void 0);class FT{constructor(n){this.stop=()=>this.runAll("stop"),this.animations=n.filter(Boolean)}then(n,i){return Promise.all(this.animations).then(n).catch(i)}getAll(n){return this.animations[0][n]}setAll(n,i){for(let o=0;o<this.animations.length;o++)this.animations[o][n]=i}attachTimeline(n,i){const o=this.animations.map(a=>IT()&&a.attachTimeline?a.attachTimeline(n):i(a));return()=>{o.forEach((a,u)=>{a&&a(),this.animations[u].stop()})}}get time(){return this.getAll("time")}set time(n){this.setAll("time",n)}get speed(){return this.getAll("speed")}set speed(n){this.setAll("speed",n)}get startTime(){return this.getAll("startTime")}get duration(){let n=0;for(let i=0;i<this.animations.length;i++)n=Math.max(n,this.animations[i].duration);return n}runAll(n){this.animations.forEach(i=>i[n]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function VT({when:e,delay:n,delayChildren:i,staggerChildren:o,staggerDirection:a,repeat:u,repeatType:c,repeatDelay:f,from:p,elapsed:h,...g}){return!!Object.keys(g).length}const Td=(e,n,i,o={},a,u)=>c=>{const f=fd(o,e)||{},p=f.delay||o.delay||0;let{elapsed:h=0}=o;h=h-vn(p);let g={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:n.getVelocity(),...f,delay:-h,onUpdate:x=>{n.set(x),f.onUpdate&&f.onUpdate(x)},onComplete:()=>{c(),f.onComplete&&f.onComplete()},name:e,motionValue:n,element:u?void 0:a};VT(f)||(g={...g,...uE(e,g)}),g.duration&&(g.duration=vn(g.duration)),g.repeatDelay&&(g.repeatDelay=vn(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let y=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(g.duration=0,g.delay===0&&(y=!0)),y&&!u&&n.get()!==void 0){const x=Ia(g.keyframes,f);if(x!==void 0)return Te.update(()=>{g.onUpdate(x),g.onComplete()}),new FT([])}return!u&&rg.supports(g)?new rg(g):new kd(g)},zT=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),BT=e=>Pc(e)?e[e.length-1]||0:e;function Cd(e,n){e.indexOf(n)===-1&&e.push(n)}function jd(e,n){const i=e.indexOf(n);i>-1&&e.splice(i,1)}class Nd{constructor(){this.subscriptions=[]}add(n){return Cd(this.subscriptions,n),()=>jd(this.subscriptions,n)}notify(n,i,o){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](n,i,o);else for(let u=0;u<a;u++){const c=this.subscriptions[u];c&&c(n,i,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ig=30,UT=e=>!isNaN(parseFloat(e));class HT{constructor(n,i={}){this.version="11.13.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(o,a=!0)=>{const u=Zt.now();this.updatedAt!==u&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),a&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(n),this.owner=i.owner}setCurrent(n){this.current=n,this.updatedAt=Zt.now(),this.canTrackVelocity===null&&n!==void 0&&(this.canTrackVelocity=UT(this.current))}setPrevFrameValue(n=this.current){this.prevFrameValue=n,this.prevUpdatedAt=this.updatedAt}onChange(n){return this.on("change",n)}on(n,i){this.events[n]||(this.events[n]=new Nd);const o=this.events[n].add(i);return n==="change"?()=>{o(),Te.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const n in this.events)this.events[n].clear()}attach(n,i){this.passiveEffect=n,this.stopPassiveEffect=i}set(n,i=!0){!i||!this.passiveEffect?this.updateAndNotify(n,i):this.passiveEffect(n,this.updateAndNotify)}setWithVelocity(n,i,o){this.set(i),this.prev=void 0,this.prevFrameValue=n,this.prevUpdatedAt=this.updatedAt-o}jump(n,i=!0){this.updateAndNotify(n),this.prev=n,this.prevUpdatedAt=this.prevFrameValue=void 0,i&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const n=Zt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||n-this.updatedAt>ig)return 0;const i=Math.min(this.updatedAt-this.prevUpdatedAt,ig);return h0(parseFloat(this.current)-parseFloat(this.prevFrameValue),i)}start(n){return this.stop(),new Promise(i=>{this.hasAnimated=!0,this.animation=n(i),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 ps(e,n){return new HT(e,n)}function WT(e,n,i){e.hasValue(n)?e.getValue(n).set(i):e.addValue(n,ps(i))}function $T(e,n){const i=La(e,n);let{transitionEnd:o={},transition:a={},...u}=i||{};u={...u,...o};for(const c in u){const f=BT(u[c]);WT(e,c,f)}}const Ad=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),qT="framerAppearId",k0="data-"+Ad(qT);function E0(e){return e.props[k0]}const it=e=>!!(e&&e.getVelocity);function KT(e){return!!(it(e)&&e.add)}function Rc(e,n){const i=e.getValue("willChange");if(KT(i))return i.add(n)}function QT({protectedKeys:e,needsAnimating:n},i){const o=e.hasOwnProperty(i)&&n[i]!==!0;return n[i]=!1,o}function T0(e,n,{delay:i=0,transitionOverride:o,type:a}={}){var u;let{transition:c=e.getDefaultTransition(),transitionEnd:f,...p}=n;o&&(c=o);const h=[],g=a&&e.animationState&&e.animationState.getState()[a];for(const y in p){const x=e.getValue(y,(u=e.latestValues[y])!==null&&u!==void 0?u:null),S=p[y];if(S===void 0||g&&QT(g,y))continue;const b={delay:i,...fd(c||{},y)};let P=!1;if(window.MotionHandoffAnimation){const E=E0(e);if(E){const j=window.MotionHandoffAnimation(E,y,Te);j!==null&&(b.startTime=j,P=!0)}}Rc(e,y),x.start(Td(y,x,S,e.shouldReduceMotion&&wr.has(y)?{type:!1}:b,e,P));const k=x.animation;k&&h.push(k)}return f&&Promise.all(h).then(()=>{Te.update(()=>{f&&$T(e,f)})}),h}function _c(e,n,i={}){var o;const a=La(e,n,i.type==="exit"?(o=e.presenceContext)===null||o===void 0?void 0:o.custom:void 0);let{transition:u=e.getDefaultTransition()||{}}=a||{};i.transitionOverride&&(u=i.transitionOverride);const c=a?()=>Promise.all(T0(e,a,i)):()=>Promise.resolve(),f=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:g=0,staggerChildren:y,staggerDirection:x}=u;return GT(e,n,g+h,y,x,i)}:()=>Promise.resolve(),{when:p}=u;if(p){const[h,g]=p==="beforeChildren"?[c,f]:[f,c];return h().then(()=>g())}else return Promise.all([c(),f(i.delay)])}function GT(e,n,i=0,o=0,a=1,u){const c=[],f=(e.variantChildren.size-1)*o,p=a===1?(h=0)=>h*o:(h=0)=>f-h*o;return Array.from(e.variantChildren).sort(YT).forEach((h,g)=>{h.notify("AnimationStart",n),c.push(_c(h,n,{...u,delay:i+p(g)}).then(()=>h.notify("AnimationComplete",n)))}),Promise.all(c)}function YT(e,n){return e.sortNodePosition(n)}function XT(e,n,i={}){e.notify("AnimationStart",n);let o;if(Array.isArray(n)){const a=n.map(u=>_c(e,u,i));o=Promise.all(a)}else if(typeof n=="string")o=_c(e,n,i);else{const a=typeof n=="function"?La(e,n,i.custom):n;o=Promise.all(T0(e,a,i))}return o.then(()=>{e.notify("AnimationComplete",n)})}const ZT=dd.length;function C0(e){if(!e)return;if(!e.isControllingVariants){const i=e.parent?C0(e.parent)||{}:{};return e.props.initial!==void 0&&(i.initial=e.props.initial),i}const n={};for(let i=0;i<ZT;i++){const o=dd[i],a=e.props[o];(cs(a)||a===!1)&&(n[o]=a)}return n}const JT=[...cd].reverse(),eC=cd.length;function tC(e){return n=>Promise.all(n.map(({animation:i,options:o})=>XT(e,i,o)))}function nC(e){let n=tC(e),i=sg(),o=!0;const a=p=>(h,g)=>{var y;const x=La(e,g,p==="exit"?(y=e.presenceContext)===null||y===void 0?void 0:y.custom:void 0);if(x){const{transition:S,transitionEnd:b,...P}=x;h={...h,...P,...b}}return h};function u(p){n=p(e)}function c(p){const{props:h}=e,g=C0(e.parent)||{},y=[],x=new Set;let S={},b=1/0;for(let k=0;k<eC;k++){const E=JT[k],j=i[E],N=h[E]!==void 0?h[E]:g[E],O=cs(N),M=E===p?j.isActive:null;M===!1&&(b=k);let V=N===g[E]&&N!==h[E]&&O;if(V&&o&&e.manuallyAnimateOnMount&&(V=!1),j.protectedKeys={...S},!j.isActive&&M===null||!N&&!j.prevProp||Da(N)||typeof N=="boolean")continue;const F=rC(j.prevProp,N);let H=F||E===p&&j.isActive&&!V&&O||k>b&&O,Y=!1;const q=Array.isArray(N)?N:[N];let $=q.reduce(a(E),{});M===!1&&($={});const{prevResolvedValues:D={}}=j,X={...D,...$},B=te=>{H=!0,x.has(te)&&(Y=!0,x.delete(te)),j.needsAnimating[te]=!0;const U=e.getValue(te);U&&(U.liveStyle=!1)};for(const te in X){const U=$[te],ee=D[te];if(S.hasOwnProperty(te))continue;let Z=!1;Pc(U)&&Pc(ee)?Z=!Vy(U,ee):Z=U!==ee,Z?U!=null?B(te):x.add(te):U!==void 0&&x.has(te)?B(te):j.protectedKeys[te]=!0}j.prevProp=N,j.prevResolvedValues=$,j.isActive&&(S={...S,...$}),o&&e.blockInitialAnimation&&(H=!1),H&&(!(V&&F)||Y)&&y.push(...q.map(te=>({animation:te,options:{type:E}})))}if(x.size){const k={};x.forEach(E=>{const j=e.getBaseTarget(E),N=e.getValue(E);N&&(N.liveStyle=!0),k[E]=j??null}),y.push({animation:k})}let P=!!y.length;return o&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(P=!1),o=!1,P?n(y):Promise.resolve()}function f(p,h){var g;if(i[p].isActive===h)return Promise.resolve();(g=e.variantChildren)===null||g===void 0||g.forEach(x=>{var S;return(S=x.animationState)===null||S===void 0?void 0:S.setActive(p,h)}),i[p].isActive=h;const y=c(p);for(const x in i)i[x].protectedKeys={};return y}return{animateChanges:c,setActive:f,setAnimateFunction:u,getState:()=>i,reset:()=>{i=sg(),o=!0}}}function rC(e,n){return typeof n=="string"?n!==e:Array.isArray(n)?!Vy(n,e):!1}function pr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function sg(){return{animate:pr(!0),whileInView:pr(),whileHover:pr(),whileTap:pr(),whileDrag:pr(),whileFocus:pr(),exit:pr()}}class Jn{constructor(n){this.isMounted=!1,this.node=n}update(){}}class iC extends Jn{constructor(n){super(n),n.animationState||(n.animationState=nC(n))}updateAnimationControlsSubscription(){const{animate:n}=this.node.getProps();Da(n)&&(this.unmountControls=n.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:n}=this.node.getProps(),{animate:i}=this.node.prevProps||{};n!==i&&this.updateAnimationControlsSubscription()}unmount(){var n;this.node.animationState.reset(),(n=this.unmountControls)===null||n===void 0||n.call(this)}}let sC=0;class oC extends Jn{constructor(){super(...arguments),this.id=sC++}update(){if(!this.node.presenceContext)return;const{isPresent:n,onExitComplete:i}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||n===o)return;const a=this.node.animationState.setActive("exit",!n);i&&!n&&a.then(()=>i(this.id))}mount(){const{register:n}=this.node.presenceContext||{};n&&(this.unmount=n(this.id))}unmount(){}}const aC={animation:{Feature:iC},exit:{Feature:oC}};function lC(e,n,i){var o;if(e instanceof Element)return[e];if(typeof e=="string"){let a=document;const u=(o=void 0)!==null&&o!==void 0?o:a.querySelectorAll(e);return u?Array.from(u):[]}return Array.from(e)}const zt={x:!1,y:!1};function j0(){return zt.x||zt.y}function og(e){return n=>{n.pointerType==="touch"||j0()||e(n)}}function uC(e,n,i={}){const o=new AbortController,a={passive:!0,...i,signal:o.signal},u=og(c=>{const{target:f}=c,p=n(c);if(!p||!f)return;const h=og(g=>{p(g),f.removeEventListener("pointerleave",h)});f.addEventListener("pointerleave",h,a)});return lC(e).forEach(c=>{c.addEventListener("pointerenter",u,a)}),()=>o.abort()}function cC(e){return e==="x"||e==="y"?zt[e]?null:(zt[e]=!0,()=>{zt[e]=!1}):zt.x||zt.y?null:(zt.x=zt.y=!0,()=>{zt.x=zt.y=!1})}const N0=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function ys(e){return{point:{x:e.pageX,y:e.pageY}}}const dC=e=>n=>N0(n)&&e(n,ys(n));function gn(e,n,i,o={passive:!0}){return e.addEventListener(n,i,o),()=>e.removeEventListener(n,i)}function Kn(e,n,i,o){return gn(e,n,dC(i),o)}const ag=(e,n)=>Math.abs(e-n);function fC(e,n){const i=ag(e.x,n.x),o=ag(e.y,n.y);return Math.sqrt(i**2+o**2)}class A0{constructor(n,i,{transformPagePoint:o,contextWindow:a,dragSnapToOrigin:u=!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 y=ic(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,S=fC(y.offset,{x:0,y:0})>=3;if(!x&&!S)return;const{point:b}=y,{timestamp:P}=Ze;this.history.push({...b,timestamp:P});const{onStart:k,onMove:E}=this.handlers;x||(k&&k(this.lastMoveEvent,y),this.startEvent=this.lastMoveEvent),E&&E(this.lastMoveEvent,y)},this.handlePointerMove=(y,x)=>{this.lastMoveEvent=y,this.lastMoveEventInfo=rc(x,this.transformPagePoint),Te.update(this.updatePoint,!0)},this.handlePointerUp=(y,x)=>{this.end();const{onEnd:S,onSessionEnd:b,resumeAnimation:P}=this.handlers;if(this.dragSnapToOrigin&&P&&P(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const k=ic(y.type==="pointercancel"?this.lastMoveEventInfo:rc(x,this.transformPagePoint),this.history);this.startEvent&&S&&S(y,k),b&&b(y,k)},!N0(n))return;this.dragSnapToOrigin=u,this.handlers=i,this.transformPagePoint=o,this.contextWindow=a||window;const c=ys(n),f=rc(c,this.transformPagePoint),{point:p}=f,{timestamp:h}=Ze;this.history=[{...p,timestamp:h}];const{onSessionStart:g}=i;g&&g(n,ic(f,this.history)),this.removeListeners=qn(Kn(this.contextWindow,"pointermove",this.handlePointerMove),Kn(this.contextWindow,"pointerup",this.handlePointerUp),Kn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(n){this.handlers=n}end(){this.removeListeners&&this.removeListeners(),Xn(this.updatePoint)}}function rc(e,n){return n?{point:n(e.point)}:e}function lg(e,n){return{x:e.x-n.x,y:e.y-n.y}}function ic({point:e},n){return{point:e,delta:lg(e,R0(n)),offset:lg(e,pC(n)),velocity:hC(n,.1)}}function pC(e){return e[0]}function R0(e){return e[e.length-1]}function hC(e,n){if(e.length<2)return{x:0,y:0};let i=e.length-1,o=null;const a=R0(e);for(;i>=0&&(o=e[i],!(a.timestamp-o.timestamp>vn(n)));)i--;if(!o)return{x:0,y:0};const u=yn(a.timestamp-o.timestamp);if(u===0)return{x:0,y:0};const c={x:(a.x-o.x)/u,y:(a.y-o.y)/u};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}function Gr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const _0=1e-4,mC=1-_0,gC=1+_0,O0=.01,vC=0-O0,yC=0+O0;function bt(e){return e.max-e.min}function xC(e,n,i){return Math.abs(e-n)<=i}function ug(e,n,i,o=.5){e.origin=o,e.originPoint=Le(n.min,n.max,e.origin),e.scale=bt(i)/bt(n),e.translate=Le(i.min,i.max,e.origin)-e.originPoint,(e.scale>=mC&&e.scale<=gC||isNaN(e.scale))&&(e.scale=1),(e.translate>=vC&&e.translate<=yC||isNaN(e.translate))&&(e.translate=0)}function is(e,n,i,o){ug(e.x,n.x,i.x,o?o.originX:void 0),ug(e.y,n.y,i.y,o?o.originY:void 0)}function cg(e,n,i){e.min=i.min+n.min,e.max=e.min+bt(n)}function wC(e,n,i){cg(e.x,n.x,i.x),cg(e.y,n.y,i.y)}function dg(e,n,i){e.min=n.min-i.min,e.max=e.min+bt(n)}function ss(e,n,i){dg(e.x,n.x,i.x),dg(e.y,n.y,i.y)}function SC(e,{min:n,max:i},o){return n!==void 0&&e<n?e=o?Le(n,e,o.min):Math.max(e,n):i!==void 0&&e>i&&(e=o?Le(i,e,o.max):Math.min(e,i)),e}function fg(e,n,i){return{min:n!==void 0?e.min+n:void 0,max:i!==void 0?e.max+i-(e.max-e.min):void 0}}function PC(e,{top:n,left:i,bottom:o,right:a}){return{x:fg(e.x,i,a),y:fg(e.y,n,o)}}function pg(e,n){let i=n.min-e.min,o=n.max-e.max;return n.max-n.min<e.max-e.min&&([i,o]=[o,i]),{min:i,max:o}}function bC(e,n){return{x:pg(e.x,n.x),y:pg(e.y,n.y)}}function kC(e,n){let i=.5;const o=bt(e),a=bt(n);return a>o?i=ii(n.min,n.max-o,e.min):o>a&&(i=ii(e.min,e.max-a,n.min)),Pn(0,1,i)}function EC(e,n){const i={};return n.min!==void 0&&(i.min=n.min-e.min),n.max!==void 0&&(i.max=n.max-e.min),i}const Oc=.35;function TC(e=Oc){return e===!1?e=0:e===!0&&(e=Oc),{x:hg(e,"left","right"),y:hg(e,"top","bottom")}}function hg(e,n,i){return{min:mg(e,n),max:mg(e,i)}}function mg(e,n){return typeof e=="number"?e:e[n]||0}const gg=()=>({translate:0,scale:1,origin:0,originPoint:0}),Yr=()=>({x:gg(),y:gg()}),vg=()=>({min:0,max:0}),Ue=()=>({x:vg(),y:vg()});function _t(e){return[e("x"),e("y")]}function M0({top:e,left:n,right:i,bottom:o}){return{x:{min:n,max:i},y:{min:e,max:o}}}function CC({x:e,y:n}){return{top:n.min,right:e.max,bottom:n.max,left:e.min}}function jC(e,n){if(!n)return e;const i=n({x:e.left,y:e.top}),o=n({x:e.right,y:e.bottom});return{top:i.y,left:i.x,bottom:o.y,right:o.x}}function sc(e){return e===void 0||e===1}function Mc({scale:e,scaleX:n,scaleY:i}){return!sc(e)||!sc(n)||!sc(i)}function hr(e){return Mc(e)||D0(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function D0(e){return yg(e.x)||yg(e.y)}function yg(e){return e&&e!=="0%"}function ma(e,n,i){const o=e-i,a=n*o;return i+a}function xg(e,n,i,o,a){return a!==void 0&&(e=ma(e,a,o)),ma(e,i,o)+n}function Dc(e,n=0,i=1,o,a){e.min=xg(e.min,n,i,o,a),e.max=xg(e.max,n,i,o,a)}function L0(e,{x:n,y:i}){Dc(e.x,n.translate,n.scale,n.originPoint),Dc(e.y,i.translate,i.scale,i.originPoint)}const wg=.999999999999,Sg=1.0000000000001;function NC(e,n,i,o=!1){const a=i.length;if(!a)return;n.x=n.y=1;let u,c;for(let f=0;f<a;f++){u=i[f],c=u.projectionDelta;const{visualElement:p}=u.options;p&&p.props.style&&p.props.style.display==="contents"||(o&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Zr(e,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),c&&(n.x*=c.x.scale,n.y*=c.y.scale,L0(e,c)),o&&hr(u.latestValues)&&Zr(e,u.latestValues))}n.x<Sg&&n.x>wg&&(n.x=1),n.y<Sg&&n.y>wg&&(n.y=1)}function Xr(e,n){e.min=e.min+n,e.max=e.max+n}function Pg(e,n,i,o,a=.5){const u=Le(e.min,e.max,a);Dc(e,n,i,u,o)}function Zr(e,n){Pg(e.x,n.x,n.scaleX,n.scale,n.originX),Pg(e.y,n.y,n.scaleY,n.scale,n.originY)}function I0(e,n){return M0(jC(e.getBoundingClientRect(),n))}function AC(e,n,i){const o=I0(e,i),{scroll:a}=n;return a&&(Xr(o.x,a.offset.x),Xr(o.y,a.offset.y)),o}const F0=({current:e})=>e?e.ownerDocument.defaultView:null,RC=new WeakMap;class _C{constructor(n){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ue(),this.visualElement=n}start(n,{snapToCursor:i=!1}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const a=g=>{const{dragSnapToOrigin:y}=this.getProps();y?this.pauseAnimation():this.stopAnimation(),i&&this.snapToCursor(ys(g).point)},u=(g,y)=>{const{drag:x,dragPropagation:S,onDragStart:b}=this.getProps();if(x&&!S&&(this.openDragLock&&this.openDragLock(),this.openDragLock=cC(x),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),_t(k=>{let E=this.getAxisMotionValue(k).get()||0;if(Xt.test(E)){const{projection:j}=this.visualElement;if(j&&j.layout){const N=j.layout.layoutBox[k];N&&(E=bt(N)*(parseFloat(E)/100))}}this.originPoint[k]=E}),b&&Te.postRender(()=>b(g,y)),Rc(this.visualElement,"transform");const{animationState:P}=this.visualElement;P&&P.setActive("whileDrag",!0)},c=(g,y)=>{const{dragPropagation:x,dragDirectionLock:S,onDirectionLock:b,onDrag:P}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:k}=y;if(S&&this.currentDirection===null){this.currentDirection=OC(k),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",y.point,k),this.updateAxis("y",y.point,k),this.visualElement.render(),P&&P(g,y)},f=(g,y)=>this.stop(g,y),p=()=>_t(g=>{var y;return this.getAnimationState(g)==="paused"&&((y=this.getAxisMotionValue(g).animation)===null||y===void 0?void 0:y.play())}),{dragSnapToOrigin:h}=this.getProps();this.panSession=new A0(n,{onSessionStart:a,onStart:u,onMove:c,onSessionEnd:f,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,contextWindow:F0(this.visualElement)})}stop(n,i){const o=this.isDragging;if(this.cancel(),!o)return;const{velocity:a}=i;this.startAnimation(a);const{onDragEnd:u}=this.getProps();u&&Te.postRender(()=>u(n,i))}cancel(){this.isDragging=!1;const{projection:n,animationState:i}=this.visualElement;n&&(n.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),i&&i.setActive("whileDrag",!1)}updateAxis(n,i,o){const{drag:a}=this.getProps();if(!o||!Yo(n,a,this.currentDirection))return;const u=this.getAxisMotionValue(n);let c=this.originPoint[n]+o[n];this.constraints&&this.constraints[n]&&(c=SC(c,this.constraints[n],this.elastic[n])),u.set(c)}resolveConstraints(){var n;const{dragConstraints:i,dragElastic:o}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(n=this.visualElement.projection)===null||n===void 0?void 0:n.layout,u=this.constraints;i&&Gr(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):i&&a?this.constraints=PC(a.layoutBox,i):this.constraints=!1,this.elastic=TC(o),u!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&_t(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=EC(a.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:n,onMeasureDragConstraints:i}=this.getProps();if(!n||!Gr(n))return!1;const o=n.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const u=AC(o,a.root,this.visualElement.getTransformPagePoint());let c=bC(a.layout.layoutBox,u);if(i){const f=i(CC(c));this.hasMutatedConstraints=!!f,f&&(c=M0(f))}return c}startAnimation(n){const{drag:i,dragMomentum:o,dragElastic:a,dragTransition:u,dragSnapToOrigin:c,onDragTransitionEnd:f}=this.getProps(),p=this.constraints||{},h=_t(g=>{if(!Yo(g,i,this.currentDirection))return;let y=p&&p[g]||{};c&&(y={min:0,max:0});const x=a?200:1e6,S=a?40:1e7,b={type:"inertia",velocity:o?n[g]:0,bounceStiffness:x,bounceDamping:S,timeConstant:750,restDelta:1,restSpeed:10,...u,...y};return this.startAxisValueAnimation(g,b)});return Promise.all(h).then(f)}startAxisValueAnimation(n,i){const o=this.getAxisMotionValue(n);return Rc(this.visualElement,n),o.start(Td(n,o,0,i,this.visualElement,!1))}stopAnimation(){_t(n=>this.getAxisMotionValue(n).stop())}pauseAnimation(){_t(n=>{var i;return(i=this.getAxisMotionValue(n).animation)===null||i===void 0?void 0:i.pause()})}getAnimationState(n){var i;return(i=this.getAxisMotionValue(n).animation)===null||i===void 0?void 0:i.state}getAxisMotionValue(n){const i=`_drag${n.toUpperCase()}`,o=this.visualElement.getProps(),a=o[i];return a||this.visualElement.getValue(n,(o.initial?o.initial[n]:void 0)||0)}snapToCursor(n){_t(i=>{const{drag:o}=this.getProps();if(!Yo(i,o,this.currentDirection))return;const{projection:a}=this.visualElement,u=this.getAxisMotionValue(i);if(a&&a.layout){const{min:c,max:f}=a.layout.layoutBox[i];u.set(n[i]-Le(c,f,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:n,dragConstraints:i}=this.getProps(),{projection:o}=this.visualElement;if(!Gr(i)||!o||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};_t(c=>{const f=this.getAxisMotionValue(c);if(f&&this.constraints!==!1){const p=f.get();a[c]=kC({min:p,max:p},this.constraints[c])}});const{transformTemplate:u}=this.visualElement.getProps();this.visualElement.current.style.transform=u?u({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),_t(c=>{if(!Yo(c,n,null))return;const f=this.getAxisMotionValue(c),{min:p,max:h}=this.constraints[c];f.set(Le(p,h,a[c]))})}addListeners(){if(!this.visualElement.current)return;RC.set(this.visualElement,this);const n=this.visualElement.current,i=Kn(n,"pointerdown",p=>{const{drag:h,dragListener:g=!0}=this.getProps();h&&g&&this.start(p)}),o=()=>{const{dragConstraints:p}=this.getProps();Gr(p)&&p.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,u=a.addEventListener("measure",o);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),Te.read(o);const c=gn(window,"resize",()=>this.scalePositionWithinConstraints()),f=a.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:h})=>{this.isDragging&&h&&(_t(g=>{const y=this.getAxisMotionValue(g);y&&(this.originPoint[g]+=p[g].translate,y.set(y.get()+p[g].translate))}),this.visualElement.render())}));return()=>{c(),i(),u(),f&&f()}}getProps(){const n=this.visualElement.getProps(),{drag:i=!1,dragDirectionLock:o=!1,dragPropagation:a=!1,dragConstraints:u=!1,dragElastic:c=Oc,dragMomentum:f=!0}=n;return{...n,drag:i,dragDirectionLock:o,dragPropagation:a,dragConstraints:u,dragElastic:c,dragMomentum:f}}}function Yo(e,n,i){return(n===!0||n===e)&&(i===null||i===e)}function OC(e,n=10){let i=null;return Math.abs(e.y)>n?i="y":Math.abs(e.x)>n&&(i="x"),i}class MC extends Jn{constructor(n){super(n),this.removeGroupControls=st,this.removeListeners=st,this.controls=new _C(n)}mount(){const{dragControls:n}=this.node.getProps();n&&(this.removeGroupControls=n.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||st}unmount(){this.removeGroupControls(),this.removeListeners()}}const bg=e=>(n,i)=>{e&&Te.postRender(()=>e(n,i))};class DC extends Jn{constructor(){super(...arguments),this.removePointerDownListener=st}onPointerDown(n){this.session=new A0(n,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:F0(this.node)})}createPanHandlers(){const{onPanSessionStart:n,onPanStart:i,onPan:o,onPanEnd:a}=this.node.getProps();return{onSessionStart:bg(n),onStart:bg(i),onMove:o,onEnd:(u,c)=>{delete this.session,a&&Te.postRender(()=>a(u,c))}}}mount(){this.removePointerDownListener=Kn(this.node.current,"pointerdown",n=>this.onPointerDown(n))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Rd=C.createContext(null);function LC(){const e=C.useContext(Rd);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:o}=e,a=C.useId();C.useEffect(()=>o(a),[]);const u=C.useCallback(()=>i&&i(a),[a,i]);return!n&&i?[!1,u]:[!0]}const V0=C.createContext({}),z0=C.createContext({}),na={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function kg(e,n){return n.max===n.min?0:e/(n.max-n.min)*100}const Ji={correct:(e,n)=>{if(!n.target)return e;if(typeof e=="string")if(pe.test(e))e=parseFloat(e);else return e;const i=kg(e,n.target.x),o=kg(e,n.target.y);return`${i}% ${o}%`}},IC={correct:(e,{treeScale:n,projectionDelta:i})=>{const o=e,a=Zn.parse(e);if(a.length>5)return o;const u=Zn.createTransformer(e),c=typeof a[0]!="number"?1:0,f=i.x.scale*n.x,p=i.y.scale*n.y;a[0+c]/=f,a[1+c]/=p;const h=Le(f,p,.5);return typeof a[2+c]=="number"&&(a[2+c]/=h),typeof a[3+c]=="number"&&(a[3+c]/=h),u(a)}},ga={};function FC(e){Object.assign(ga,e)}const{schedule:_d}=By(queueMicrotask,!1);class VC extends C.Component{componentDidMount(){const{visualElement:n,layoutGroup:i,switchLayoutGroup:o,layoutId:a}=this.props,{projection:u}=n;FC(zC),u&&(i.group&&i.group.add(u),o&&o.register&&a&&o.register(u),u.root.didUpdate(),u.addEventListener("animationComplete",()=>{this.safeToRemove()}),u.setOptions({...u.options,onExitComplete:()=>this.safeToRemove()})),na.hasEverUpdated=!0}getSnapshotBeforeUpdate(n){const{layoutDependency:i,visualElement:o,drag:a,isPresent:u}=this.props,c=o.projection;return c&&(c.isPresent=u,a||n.layoutDependency!==i||i===void 0?c.willUpdate():this.safeToRemove(),n.isPresent!==u&&(u?c.promote():c.relegate()||Te.postRender(()=>{const f=c.getStack();(!f||!f.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:n}=this.props.visualElement;n&&(n.root.didUpdate(),_d.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:n,layoutGroup:i,switchLayoutGroup:o}=this.props,{projection:a}=n;a&&(a.scheduleCheckAfterUnmount(),i&&i.group&&i.group.remove(a),o&&o.deregister&&o.deregister(a))}safeToRemove(){const{safeToRemove:n}=this.props;n&&n()}render(){return null}}function B0(e){const[n,i]=LC(),o=C.useContext(V0);return v.jsx(VC,{...e,layoutGroup:o,switchLayoutGroup:C.useContext(z0),isPresent:n,safeToRemove:i})}const zC={borderRadius:{...Ji,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ji,borderTopRightRadius:Ji,borderBottomLeftRadius:Ji,borderBottomRightRadius:Ji,boxShadow:IC},U0=["TopLeft","TopRight","BottomLeft","BottomRight"],BC=U0.length,Eg=e=>typeof e=="string"?parseFloat(e):e,Tg=e=>typeof e=="number"||pe.test(e);function UC(e,n,i,o,a,u){a?(e.opacity=Le(0,i.opacity!==void 0?i.opacity:1,HC(o)),e.opacityExit=Le(n.opacity!==void 0?n.opacity:1,0,WC(o))):u&&(e.opacity=Le(n.opacity!==void 0?n.opacity:1,i.opacity!==void 0?i.opacity:1,o));for(let c=0;c<BC;c++){const f=`border${U0[c]}Radius`;let p=Cg(n,f),h=Cg(i,f);if(p===void 0&&h===void 0)continue;p||(p=0),h||(h=0),p===0||h===0||Tg(p)===Tg(h)?(e[f]=Math.max(Le(Eg(p),Eg(h),o),0),(Xt.test(h)||Xt.test(p))&&(e[f]+="%")):e[f]=h}(n.rotate||i.rotate)&&(e.rotate=Le(n.rotate||0,i.rotate||0,o))}function Cg(e,n){return e[n]!==void 0?e[n]:e.borderRadius}const HC=H0(0,.5,Qy),WC=H0(.5,.95,st);function H0(e,n,i){return o=>o<e?0:o>n?1:i(ii(e,n,o))}function jg(e,n){e.min=n.min,e.max=n.max}function Rt(e,n){jg(e.x,n.x),jg(e.y,n.y)}function Ng(e,n){e.translate=n.translate,e.scale=n.scale,e.originPoint=n.originPoint,e.origin=n.origin}function Ag(e,n,i,o,a){return e-=n,e=ma(e,1/i,o),a!==void 0&&(e=ma(e,1/a,o)),e}function $C(e,n=0,i=1,o=.5,a,u=e,c=e){if(Xt.test(n)&&(n=parseFloat(n),n=Le(c.min,c.max,n/100)-c.min),typeof n!="number")return;let f=Le(u.min,u.max,o);e===u&&(f-=n),e.min=Ag(e.min,n,i,f,a),e.max=Ag(e.max,n,i,f,a)}function Rg(e,n,[i,o,a],u,c){$C(e,n[i],n[o],n[a],n.scale,u,c)}const qC=["x","scaleX","originX"],KC=["y","scaleY","originY"];function _g(e,n,i,o){Rg(e.x,n,qC,i?i.x:void 0,o?o.x:void 0),Rg(e.y,n,KC,i?i.y:void 0,o?o.y:void 0)}function Og(e){return e.translate===0&&e.scale===1}function W0(e){return Og(e.x)&&Og(e.y)}function Mg(e,n){return e.min===n.min&&e.max===n.max}function QC(e,n){return Mg(e.x,n.x)&&Mg(e.y,n.y)}function Dg(e,n){return Math.round(e.min)===Math.round(n.min)&&Math.round(e.max)===Math.round(n.max)}function $0(e,n){return Dg(e.x,n.x)&&Dg(e.y,n.y)}function Lg(e){return bt(e.x)/bt(e.y)}function Ig(e,n){return e.translate===n.translate&&e.scale===n.scale&&e.originPoint===n.originPoint}class GC{constructor(){this.members=[]}add(n){Cd(this.members,n),n.scheduleRender()}remove(n){if(jd(this.members,n),n===this.prevLead&&(this.prevLead=void 0),n===this.lead){const i=this.members[this.members.length-1];i&&this.promote(i)}}relegate(n){const i=this.members.findIndex(a=>n===a);if(i===0)return!1;let o;for(let a=i;a>=0;a--){const u=this.members[a];if(u.isPresent!==!1){o=u;break}}return o?(this.promote(o),!0):!1}promote(n,i){const o=this.lead;if(n!==o&&(this.prevLead=o,this.lead=n,n.show(),o)){o.instance&&o.scheduleRender(),n.scheduleRender(),n.resumeFrom=o,i&&(n.resumeFrom.preserveOpacity=!0),o.snapshot&&(n.snapshot=o.snapshot,n.snapshot.latestValues=o.animationValues||o.latestValues),n.root&&n.root.isUpdating&&(n.isLayoutDirty=!0);const{crossfade:a}=n.options;a===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(n=>{const{options:i,resumingFrom:o}=n;i.onExitComplete&&i.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(n=>{n.instance&&n.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function YC(e,n,i){let o="";const a=e.x.translate/n.x,u=e.y.translate/n.y,c=i?.z||0;if((a||u||c)&&(o=`translate3d(${a}px, ${u}px, ${c}px) `),(n.x!==1||n.y!==1)&&(o+=`scale(${1/n.x}, ${1/n.y}) `),i){const{transformPerspective:h,rotate:g,rotateX:y,rotateY:x,skewX:S,skewY:b}=i;h&&(o=`perspective(${h}px) ${o}`),g&&(o+=`rotate(${g}deg) `),y&&(o+=`rotateX(${y}deg) `),x&&(o+=`rotateY(${x}deg) `),S&&(o+=`skewX(${S}deg) `),b&&(o+=`skewY(${b}deg) `)}const f=e.x.scale*n.x,p=e.y.scale*n.y;return(f!==1||p!==1)&&(o+=`scale(${f}, ${p})`),o||"none"}const XC=(e,n)=>e.depth-n.depth;class ZC{constructor(){this.children=[],this.isDirty=!1}add(n){Cd(this.children,n),this.isDirty=!0}remove(n){jd(this.children,n),this.isDirty=!0}forEach(n){this.isDirty&&this.children.sort(XC),this.isDirty=!1,this.children.forEach(n)}}function ra(e){const n=it(e)?e.get():e;return zT(n)?n.toValue():n}function JC(e,n){const i=Zt.now(),o=({timestamp:a})=>{const u=a-i;u>=n&&(Xn(o),e(u-n))};return Te.read(o,!0),()=>Xn(o)}function e2(e){return e instanceof SVGElement&&e.tagName!=="svg"}function t2(e,n,i){const o=it(e)?e:ps(e);return o.start(Td("",o,n,i)),o.animation}const mr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ts=typeof window<"u"&&window.MotionDebug!==void 0,oc=["","X","Y","Z"],n2={visibility:"hidden"},Fg=1e3;let r2=0;function ac(e,n,i,o){const{latestValues:a}=n;a[e]&&(i[e]=a[e],n.setStaticValue(e,0),o&&(o[e]=0))}function q0(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:n}=e.options;if(!n)return;const i=E0(n);if(window.MotionHasOptimisedAnimation(i,"transform")){const{layout:a,layoutId:u}=e.options;window.MotionCancelOptimisedAnimation(i,"transform",Te,!(a||u))}const{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&q0(o)}function K0({attachResizeListener:e,defaultParent:n,measureScroll:i,checkIsScrollRoot:o,resetTransform:a}){return class{constructor(c={},f=n?.()){this.id=r2++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ts&&(mr.totalNodes=mr.resolvedTargetDeltas=mr.recalculatedProjection=0),this.nodes.forEach(o2),this.nodes.forEach(d2),this.nodes.forEach(f2),this.nodes.forEach(a2),ts&&window.MotionDebug.record(mr)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=c,this.root=f?f.root||f:this,this.path=f?[...f.path,f]:[],this.parent=f,this.depth=f?f.depth+1:0;for(let p=0;p<this.path.length;p++)this.path[p].shouldResetTransform=!0;this.root===this&&(this.nodes=new ZC)}addEventListener(c,f){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new Nd),this.eventHandlers.get(c).add(f)}notifyListeners(c,...f){const p=this.eventHandlers.get(c);p&&p.notify(...f)}hasListeners(c){return this.eventHandlers.has(c)}mount(c,f=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=e2(c),this.instance=c;const{layoutId:p,layout:h,visualElement:g}=this.options;if(g&&!g.current&&g.mount(c),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),f&&(h||p)&&(this.isLayoutDirty=!0),e){let y;const x=()=>this.root.updateBlockedByResize=!1;e(c,()=>{this.root.updateBlockedByResize=!0,y&&y(),y=JC(x,250),na.hasAnimatedSinceResize&&(na.hasAnimatedSinceResize=!1,this.nodes.forEach(zg))})}p&&this.root.registerSharedNode(p,this),this.options.animate!==!1&&g&&(p||h)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:x,hasRelativeTargetChanged:S,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const P=this.options.transition||g.getDefaultTransition()||v2,{onLayoutAnimationStart:k,onLayoutAnimationComplete:E}=g.getProps(),j=!this.targetLayout||!$0(this.targetLayout,b)||S,N=!x&&S;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||N||x&&(j||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(y,N);const O={...fd(P,"layout"),onPlay:k,onComplete:E};(g.shouldReduceMotion||this.options.layoutRoot)&&(O.delay=0,O.type=!1),this.startAnimation(O)}else x||zg(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const c=this.getStack();c&&c.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Xn(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(p2),this.animationId++)}getTransformTemplate(){const{visualElement:c}=this.options;return c&&c.getProps().transformTemplate}willUpdate(c=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&q0(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g<this.path.length;g++){const y=this.path[g];y.shouldResetTransform=!0,y.updateScroll("snapshot"),y.options.layoutRoot&&y.willUpdate(!1)}const{layoutId:f,layout:p}=this.options;if(f===void 0&&!p)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),c&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Vg);return}this.isUpdating||this.nodes.forEach(u2),this.isUpdating=!1,this.nodes.forEach(c2),this.nodes.forEach(i2),this.nodes.forEach(s2),this.clearAllSnapshots();const f=Zt.now();Ze.delta=Pn(0,1e3/60,f-Ze.timestamp),Ze.timestamp=f,Ze.isProcessing=!0,Zu.update.process(Ze),Zu.preRender.process(Ze),Zu.render.process(Ze),Ze.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,_d.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(l2),this.sharedNodes.forEach(h2)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Te.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Te.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 p=0;p<this.path.length;p++)this.path[p].updateScroll();const c=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ue(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:f}=this.options;f&&f.notify("LayoutMeasure",this.layout.layoutBox,c?c.layoutBox:void 0)}updateScroll(c="measure"){let f=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===c&&(f=!1),f){const p=o(this.instance);this.scroll={animationId:this.root.animationId,phase:c,isRoot:p,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:p}}}resetTransform(){if(!a)return;const c=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,f=this.projectionDelta&&!W0(this.projectionDelta),p=this.getTransformTemplate(),h=p?p(this.latestValues,""):void 0,g=h!==this.prevTransformTemplateValue;c&&(f||hr(this.latestValues)||g)&&(a(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(c=!0){const f=this.measurePageBox();let p=this.removeElementScroll(f);return c&&(p=this.removeTransform(p)),y2(p),{animationId:this.root.animationId,measuredBox:f,layoutBox:p,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:f}=this.options;if(!f)return Ue();const p=f.measureViewportBox();if(!(((c=this.scroll)===null||c===void 0?void 0:c.wasRoot)||this.path.some(x2))){const{scroll:g}=this.root;g&&(Xr(p.x,g.offset.x),Xr(p.y,g.offset.y))}return p}removeElementScroll(c){var f;const p=Ue();if(Rt(p,c),!((f=this.scroll)===null||f===void 0)&&f.wasRoot)return p;for(let h=0;h<this.path.length;h++){const g=this.path[h],{scroll:y,options:x}=g;g!==this.root&&y&&x.layoutScroll&&(y.wasRoot&&Rt(p,c),Xr(p.x,y.offset.x),Xr(p.y,y.offset.y))}return p}applyTransform(c,f=!1){const p=Ue();Rt(p,c);for(let h=0;h<this.path.length;h++){const g=this.path[h];!f&&g.options.layoutScroll&&g.scroll&&g!==g.root&&Zr(p,{x:-g.scroll.offset.x,y:-g.scroll.offset.y}),hr(g.latestValues)&&Zr(p,g.latestValues)}return hr(this.latestValues)&&Zr(p,this.latestValues),p}removeTransform(c){const f=Ue();Rt(f,c);for(let p=0;p<this.path.length;p++){const h=this.path[p];if(!h.instance||!hr(h.latestValues))continue;Mc(h.latestValues)&&h.updateSnapshot();const g=Ue(),y=h.measurePageBox();Rt(g,y),_g(f,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,g)}return hr(this.latestValues)&&_g(f,this.latestValues),f}setTargetDelta(c){this.targetDelta=c,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(c){this.options={...this.options,...c,crossfade:c.crossfade!==void 0?c.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ze.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(c=!1){var f;const p=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=p.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=p.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=p.isSharedProjectionDirty);const h=!!this.resumingFrom||this!==p;if(!(c||h&&this.isSharedProjectionDirty||this.isProjectionDirty||!((f=this.parent)===null||f===void 0)&&f.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:x}=this.options;if(!(!this.layout||!(y||x))){if(this.resolvedRelativeTargetAt=Ze.timestamp,!this.targetDelta&&!this.relativeTarget){const S=this.getClosestProjectingParent();S&&S.layout&&this.animationProgress!==1?(this.relativeParent=S,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ue(),this.relativeTargetOrigin=Ue(),ss(this.relativeTargetOrigin,this.layout.layoutBox,S.layout.layoutBox),Rt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Ue(),this.targetWithTransforms=Ue()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),wC(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Rt(this.target,this.layout.layoutBox),L0(this.target,this.targetDelta)):Rt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const S=this.getClosestProjectingParent();S&&!!S.resumingFrom==!!this.resumingFrom&&!S.options.layoutScroll&&S.target&&this.animationProgress!==1?(this.relativeParent=S,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ue(),this.relativeTargetOrigin=Ue(),ss(this.relativeTargetOrigin,this.target,S.target),Rt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ts&&mr.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Mc(this.parent.latestValues)||D0(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var c;const f=this.getLead(),p=!!this.resumingFrom||this!==f;let h=!0;if((this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty)&&(h=!1),p&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(h=!1),this.resolvedRelativeTargetAt===Ze.timestamp&&(h=!1),h)return;const{layout:g,layoutId:y}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(g||y))return;Rt(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,S=this.treeScale.y;NC(this.layoutCorrected,this.treeScale,this.path,p),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=Ue());const{target:b}=f;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ng(this.prevProjectionDelta.x,this.projectionDelta.x),Ng(this.prevProjectionDelta.y,this.projectionDelta.y)),is(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==S||!Ig(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ig(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b)),ts&&mr.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(c=!0){var f;if((f=this.options.visualElement)===null||f===void 0||f.scheduleRender(),c){const p=this.getStack();p&&p.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Yr(),this.projectionDelta=Yr(),this.projectionDeltaWithTransform=Yr()}setAnimationOrigin(c,f=!1){const p=this.snapshot,h=p?p.latestValues:{},g={...this.latestValues},y=Yr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!f;const x=Ue(),S=p?p.source:void 0,b=this.layout?this.layout.source:void 0,P=S!==b,k=this.getStack(),E=!k||k.members.length<=1,j=!!(P&&!E&&this.options.crossfade===!0&&!this.path.some(g2));this.animationProgress=0;let N;this.mixTargetDelta=O=>{const M=O/1e3;Bg(y.x,c.x,M),Bg(y.y,c.y,M),this.setTargetDelta(y),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ss(x,this.layout.layoutBox,this.relativeParent.layout.layoutBox),m2(this.relativeTarget,this.relativeTargetOrigin,x,M),N&&QC(this.relativeTarget,N)&&(this.isProjectionDirty=!1),N||(N=Ue()),Rt(N,this.relativeTarget)),P&&(this.animationValues=g,UC(g,h,this.latestValues,M,j,E)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=M},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(c){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Xn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Te.update(()=>{na.hasAnimatedSinceResize=!0,this.currentAnimation=t2(0,Fg,{...c,onUpdate:f=>{this.mixTargetDelta(f),c.onUpdate&&c.onUpdate(f)},onComplete:()=>{c.onComplete&&c.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 c=this.getStack();c&&c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Fg),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:f,target:p,layout:h,latestValues:g}=c;if(!(!f||!p||!h)){if(this!==c&&this.layout&&h&&Q0(this.options.animationType,this.layout.layoutBox,h.layoutBox)){p=this.target||Ue();const y=bt(this.layout.layoutBox.x);p.x.min=c.target.x.min,p.x.max=p.x.min+y;const x=bt(this.layout.layoutBox.y);p.y.min=c.target.y.min,p.y.max=p.y.min+x}Rt(f,p),Zr(f,g),is(this.projectionDeltaWithTransform,this.layoutCorrected,f,g)}}registerSharedNode(c,f){this.sharedNodes.has(c)||this.sharedNodes.set(c,new GC),this.sharedNodes.get(c).add(f);const h=f.options.initialPromotionConfig;f.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(f):void 0})}isLead(){const c=this.getStack();return c?c.lead===this:!0}getLead(){var c;const{layoutId:f}=this.options;return f?((c=this.getStack())===null||c===void 0?void 0:c.lead)||this:this}getPrevLead(){var c;const{layoutId:f}=this.options;return f?(c=this.getStack())===null||c===void 0?void 0:c.prevLead:void 0}getStack(){const{layoutId:c}=this.options;if(c)return this.root.sharedNodes.get(c)}promote({needsReset:c,transition:f,preserveFollowOpacity:p}={}){const h=this.getStack();h&&h.promote(this,p),c&&(this.projectionDelta=void 0,this.needsReset=!0),f&&this.setOptions({transition:f})}relegate(){const c=this.getStack();return c?c.relegate(this):!1}resetSkewAndRotation(){const{visualElement:c}=this.options;if(!c)return;let f=!1;const{latestValues:p}=c;if((p.z||p.rotate||p.rotateX||p.rotateY||p.rotateZ||p.skewX||p.skewY)&&(f=!0),!f)return;const h={};p.z&&ac("z",c,h,this.animationValues);for(let g=0;g<oc.length;g++)ac(`rotate${oc[g]}`,c,h,this.animationValues),ac(`skew${oc[g]}`,c,h,this.animationValues);c.render();for(const g in h)c.setStaticValue(g,h[g]),this.animationValues&&(this.animationValues[g]=h[g]);c.scheduleRender()}getProjectionStyles(c){var f,p;if(!this.instance||this.isSVG)return;if(!this.isVisible)return n2;const h={visibility:""},g=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,h.opacity="",h.pointerEvents=ra(c?.pointerEvents)||"",h.transform=g?g(this.latestValues,""):"none",h;const y=this.getLead();if(!this.projectionDelta||!this.layout||!y.target){const P={};return this.options.layoutId&&(P.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,P.pointerEvents=ra(c?.pointerEvents)||""),this.hasProjected&&!hr(this.latestValues)&&(P.transform=g?g({},""):"none",this.hasProjected=!1),P}const x=y.animationValues||y.latestValues;this.applyTransformsToTarget(),h.transform=YC(this.projectionDeltaWithTransform,this.treeScale,x),g&&(h.transform=g(x,h.transform));const{x:S,y:b}=this.projectionDelta;h.transformOrigin=`${S.origin*100}% ${b.origin*100}% 0`,y.animationValues?h.opacity=y===this?(p=(f=x.opacity)!==null&&f!==void 0?f:this.latestValues.opacity)!==null&&p!==void 0?p:1:this.preserveOpacity?this.latestValues.opacity:x.opacityExit:h.opacity=y===this?x.opacity!==void 0?x.opacity:"":x.opacityExit!==void 0?x.opacityExit:0;for(const P in ga){if(x[P]===void 0)continue;const{correct:k,applyTo:E}=ga[P],j=h.transform==="none"?x[P]:k(x[P],y);if(E){const N=E.length;for(let O=0;O<N;O++)h[E[O]]=j}else h[P]=j}return this.options.layoutId&&(h.pointerEvents=y===this?ra(c?.pointerEvents)||"":"none"),h}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(c=>{var f;return(f=c.currentAnimation)===null||f===void 0?void 0:f.stop()}),this.root.nodes.forEach(Vg),this.root.sharedNodes.clear()}}}function i2(e){e.updateLayout()}function s2(e){var n;const i=((n=e.resumeFrom)===null||n===void 0?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:a}=e.layout,{animationType:u}=e.options,c=i.source!==e.layout.source;u==="size"?_t(y=>{const x=c?i.measuredBox[y]:i.layoutBox[y],S=bt(x);x.min=o[y].min,x.max=x.min+S}):Q0(u,i.layoutBox,o)&&_t(y=>{const x=c?i.measuredBox[y]:i.layoutBox[y],S=bt(o[y]);x.max=x.min+S,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[y].max=e.relativeTarget[y].min+S)});const f=Yr();is(f,o,i.layoutBox);const p=Yr();c?is(p,e.applyTransform(a,!0),i.measuredBox):is(p,o,i.layoutBox);const h=!W0(f);let g=!1;if(!e.resumeFrom){const y=e.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:x,layout:S}=y;if(x&&S){const b=Ue();ss(b,i.layoutBox,x.layoutBox);const P=Ue();ss(P,o,S.layoutBox),$0(b,P)||(g=!0),y.options.layoutRoot&&(e.relativeTarget=P,e.relativeTargetOrigin=b,e.relativeParent=y)}}}e.notifyListeners("didUpdate",{layout:o,snapshot:i,delta:p,layoutDelta:f,hasLayoutChanged:h,hasRelativeTargetChanged:g})}else if(e.isLead()){const{onExitComplete:o}=e.options;o&&o()}e.options.transition=void 0}function o2(e){ts&&mr.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 a2(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function l2(e){e.clearSnapshot()}function Vg(e){e.clearMeasurements()}function u2(e){e.isLayoutDirty=!1}function c2(e){const{visualElement:n}=e.options;n&&n.getProps().onBeforeLayoutMeasure&&n.notify("BeforeLayoutMeasure"),e.resetTransform()}function zg(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function d2(e){e.resolveTargetDelta()}function f2(e){e.calcProjection()}function p2(e){e.resetSkewAndRotation()}function h2(e){e.removeLeadSnapshot()}function Bg(e,n,i){e.translate=Le(n.translate,0,i),e.scale=Le(n.scale,1,i),e.origin=n.origin,e.originPoint=n.originPoint}function Ug(e,n,i,o){e.min=Le(n.min,i.min,o),e.max=Le(n.max,i.max,o)}function m2(e,n,i,o){Ug(e.x,n.x,i.x,o),Ug(e.y,n.y,i.y,o)}function g2(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const v2={duration:.45,ease:[.4,0,.1,1]},Hg=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Wg=Hg("applewebkit/")&&!Hg("chrome/")?Math.round:st;function $g(e){e.min=Wg(e.min),e.max=Wg(e.max)}function y2(e){$g(e.x),$g(e.y)}function Q0(e,n,i){return e==="position"||e==="preserve-aspect"&&!xC(Lg(n),Lg(i),.2)}function x2(e){var n;return e!==e.root&&((n=e.scroll)===null||n===void 0?void 0:n.wasRoot)}const w2=K0({attachResizeListener:(e,n)=>gn(e,"resize",n),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),lc={current:void 0},G0=K0({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!lc.current){const e=new w2({});e.mount(window),e.setOptions({layoutScroll:!0}),lc.current=e}return lc.current},resetTransform:(e,n)=>{e.style.transform=n!==void 0?n:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),S2={pan:{Feature:DC},drag:{Feature:MC,ProjectionNode:G0,MeasureLayout:B0}};function qg(e,n,i){const{props:o}=e;e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",i);const a=o[i?"onHoverStart":"onHoverEnd"];a&&Te.postRender(()=>a(n,ys(n)))}class P2 extends Jn{mount(){const{current:n,props:i}=this.node;n&&(this.unmount=uC(n,o=>(qg(this.node,o,!0),a=>qg(this.node,a,!1)),{passive:!i.onHoverStart&&!i.onHoverEnd}))}unmount(){}}class b2 extends Jn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let n=!1;try{n=this.node.current.matches(":focus-visible")}catch{n=!0}!n||!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=qn(gn(this.node.current,"focus",()=>this.onFocus()),gn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Y0=(e,n)=>n?e===n?!0:Y0(e,n.parentElement):!1;function uc(e,n){if(!n)return;const i=new PointerEvent("pointer"+e);n(i,ys(i))}class k2 extends Jn{constructor(){super(...arguments),this.removeStartListeners=st,this.removeEndListeners=st,this.removeAccessibleListeners=st,this.startPointerPress=(n,i)=>{if(this.isPressing)return;this.removeEndListeners();const o=this.node.getProps(),u=Kn(window,"pointerup",(f,p)=>{if(!this.checkPressEnd())return;const{onTap:h,onTapCancel:g,globalTapTarget:y}=this.node.getProps(),x=!y&&!Y0(this.node.current,f.target)?g:h;x&&Te.update(()=>x(f,p))},{passive:!(o.onTap||o.onPointerUp)}),c=Kn(window,"pointercancel",(f,p)=>this.cancelPress(f,p),{passive:!(o.onTapCancel||o.onPointerCancel)});this.removeEndListeners=qn(u,c),this.startPress(n,i)},this.startAccessiblePress=()=>{const n=u=>{if(u.key!=="Enter"||this.isPressing)return;const c=f=>{f.key!=="Enter"||!this.checkPressEnd()||uc("up",(p,h)=>{const{onTap:g}=this.node.getProps();g&&Te.postRender(()=>g(p,h))})};this.removeEndListeners(),this.removeEndListeners=gn(this.node.current,"keyup",c),uc("down",(f,p)=>{this.startPress(f,p)})},i=gn(this.node.current,"keydown",n),o=()=>{this.isPressing&&uc("cancel",(u,c)=>this.cancelPress(u,c))},a=gn(this.node.current,"blur",o);this.removeAccessibleListeners=qn(i,a)}}startPress(n,i){this.isPressing=!0;const{onTapStart:o,whileTap:a}=this.node.getProps();a&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),o&&Te.postRender(()=>o(n,i))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!j0()}cancelPress(n,i){if(!this.checkPressEnd())return;const{onTapCancel:o}=this.node.getProps();o&&Te.postRender(()=>o(n,i))}mount(){const n=this.node.getProps(),i=Kn(n.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(n.onTapStart||n.onPointerStart)}),o=gn(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=qn(i,o)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Lc=new WeakMap,cc=new WeakMap,E2=e=>{const n=Lc.get(e.target);n&&n(e)},T2=e=>{e.forEach(E2)};function C2({root:e,...n}){const i=e||document;cc.has(i)||cc.set(i,{});const o=cc.get(i),a=JSON.stringify(n);return o[a]||(o[a]=new IntersectionObserver(T2,{root:e,...n})),o[a]}function j2(e,n,i){const o=C2(n);return Lc.set(e,i),o.observe(e),()=>{Lc.delete(e),o.unobserve(e)}}const N2={some:0,all:1};class A2 extends Jn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:n={}}=this.node.getProps(),{root:i,margin:o,amount:a="some",once:u}=n,c={root:i?i.current:void 0,rootMargin:o,threshold:typeof a=="number"?a:N2[a]},f=p=>{const{isIntersecting:h}=p;if(this.isInView===h||(this.isInView=h,u&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:g,onViewportLeave:y}=this.node.getProps(),x=h?g:y;x&&x(p)};return j2(this.node.current,c,f)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:n,prevProps:i}=this.node;["amount","margin","root"].some(R2(n,i))&&this.startObserver()}unmount(){}}function R2({viewport:e={}},{viewport:n={}}={}){return i=>e[i]!==n[i]}const _2={inView:{Feature:A2},tap:{Feature:k2},focus:{Feature:b2},hover:{Feature:P2}},O2={layout:{ProjectionNode:G0,MeasureLayout:B0}},X0=C.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Fa=C.createContext({}),Od=typeof window<"u",M2=Od?C.useLayoutEffect:C.useEffect,Z0=C.createContext({strict:!1});function D2(e,n,i,o,a){var u,c;const{visualElement:f}=C.useContext(Fa),p=C.useContext(Z0),h=C.useContext(Rd),g=C.useContext(X0).reducedMotion,y=C.useRef();o=o||p.renderer,!y.current&&o&&(y.current=o(e,{visualState:n,parent:f,props:i,presenceContext:h,blockInitialAnimation:h?h.initial===!1:!1,reducedMotionConfig:g}));const x=y.current,S=C.useContext(z0);x&&!x.projection&&a&&(x.type==="html"||x.type==="svg")&&L2(y.current,i,a,S);const b=C.useRef(!1);C.useInsertionEffect(()=>{x&&b.current&&x.update(i,h)});const P=i[k0],k=C.useRef(!!P&&!(!((u=window.MotionHandoffIsComplete)===null||u===void 0)&&u.call(window,P))&&((c=window.MotionHasOptimisedAnimation)===null||c===void 0?void 0:c.call(window,P)));return M2(()=>{x&&(b.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),_d.render(x.render),k.current&&x.animationState&&x.animationState.animateChanges())}),C.useEffect(()=>{x&&(!k.current&&x.animationState&&x.animationState.animateChanges(),k.current&&(queueMicrotask(()=>{var E;(E=window.MotionHandoffMarkAsComplete)===null||E===void 0||E.call(window,P)}),k.current=!1))}),x}function L2(e,n,i,o){const{layoutId:a,layout:u,drag:c,dragConstraints:f,layoutScroll:p,layoutRoot:h}=n;e.projection=new i(e.latestValues,n["data-framer-portal-id"]?void 0:J0(e.parent)),e.projection.setOptions({layoutId:a,layout:u,alwaysMeasureLayout:!!c||f&&Gr(f),visualElement:e,animationType:typeof u=="string"?u:"both",initialPromotionConfig:o,layoutScroll:p,layoutRoot:h})}function J0(e){if(e)return e.options.allowProjection!==!1?e.projection:J0(e.parent)}function I2(e,n,i){return C.useCallback(o=>{o&&e.mount&&e.mount(o),n&&(o?n.mount(o):n.unmount()),i&&(typeof i=="function"?i(o):Gr(i)&&(i.current=o))},[n])}function Va(e){return Da(e.animate)||dd.some(n=>cs(e[n]))}function ex(e){return!!(Va(e)||e.variants)}function F2(e,n){if(Va(e)){const{initial:i,animate:o}=e;return{initial:i===!1||cs(i)?i:void 0,animate:cs(o)?o:void 0}}return e.inherit!==!1?n:{}}function V2(e){const{initial:n,animate:i}=F2(e,C.useContext(Fa));return C.useMemo(()=>({initial:n,animate:i}),[Kg(n),Kg(i)])}function Kg(e){return Array.isArray(e)?e.join(" "):e}const Qg={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"]},si={};for(const e in Qg)si[e]={isEnabled:n=>Qg[e].some(i=>!!n[i])};function z2(e){for(const n in e)si[n]={...si[n],...e[n]}}const B2=Symbol.for("motionComponentSymbol");function U2({preloadedFeatures:e,createVisualElement:n,useRender:i,useVisualState:o,Component:a}){e&&z2(e);function u(f,p){let h;const g={...C.useContext(X0),...f,layoutId:H2(f)},{isStatic:y}=g,x=V2(f),S=o(f,y);if(!y&&Od){W2();const b=$2(g);h=b.MeasureLayout,x.visualElement=D2(a,S,g,n,b.ProjectionNode)}return v.jsxs(Fa.Provider,{value:x,children:[h&&x.visualElement?v.jsx(h,{visualElement:x.visualElement,...g}):null,i(a,f,I2(S,x.visualElement,p),S,y,x.visualElement)]})}const c=C.forwardRef(u);return c[B2]=a,c}function H2({layoutId:e}){const n=C.useContext(V0).id;return n&&e!==void 0?n+"-"+e:e}function W2(e,n){C.useContext(Z0).strict}function $2(e){const{drag:n,layout:i}=si;if(!n&&!i)return{};const o={...n,...i};return{MeasureLayout:n?.isEnabled(e)||i?.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}const q2=["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 Md(e){return typeof e!="string"||e.includes("-")?!1:!!(q2.indexOf(e)>-1||/[A-Z]/u.test(e))}function tx(e,{style:n,vars:i},o,a){Object.assign(e.style,n,a&&a.getProjectionStyles(o));for(const u in i)e.style.setProperty(u,i[u])}const nx=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 rx(e,n,i,o){tx(e,n,void 0,o);for(const a in n.attrs)e.setAttribute(nx.has(a)?a:Ad(a),n.attrs[a])}function ix(e,{layout:n,layoutId:i}){return wr.has(e)||e.startsWith("origin")||(n||i!==void 0)&&(!!ga[e]||e==="opacity")}function Dd(e,n,i){var o;const{style:a}=e,u={};for(const c in a)(it(a[c])||n.style&&it(n.style[c])||ix(c,e)||((o=i?.getValue(c))===null||o===void 0?void 0:o.liveStyle)!==void 0)&&(u[c]=a[c]);return u}function sx(e,n,i){const o=Dd(e,n,i);for(const a in e)if(it(e[a])||it(n[a])){const u=ms.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;o[u]=e[a]}return o}function K2(e){const n=C.useRef(null);return n.current===null&&(n.current=e()),n.current}function Q2({scrapeMotionValuesFromProps:e,createRenderState:n,onMount:i},o,a,u){const c={latestValues:G2(o,a,u,e),renderState:n()};return i&&(c.mount=f=>i(o,f,c)),c}const ox=e=>(n,i)=>{const o=C.useContext(Fa),a=C.useContext(Rd),u=()=>Q2(e,n,o,a);return i?u():K2(u)};function G2(e,n,i,o){const a={},u=o(e,{});for(const x in u)a[x]=ra(u[x]);let{initial:c,animate:f}=e;const p=Va(e),h=ex(e);n&&h&&!p&&e.inherit!==!1&&(c===void 0&&(c=n.initial),f===void 0&&(f=n.animate));let g=i?i.initial===!1:!1;g=g||c===!1;const y=g?f:c;if(y&&typeof y!="boolean"&&!Da(y)){const x=Array.isArray(y)?y:[y];for(let S=0;S<x.length;S++){const b=ud(e,x[S]);if(b){const{transitionEnd:P,transition:k,...E}=b;for(const j in E){let N=E[j];if(Array.isArray(N)){const O=g?N.length-1:0;N=N[O]}N!==null&&(a[j]=N)}for(const j in P)a[j]=P[j]}}}return a}const Ld=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),ax=()=>({...Ld(),attrs:{}}),lx=(e,n)=>n&&typeof e=="number"?n.transform(e):e,Y2={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},X2=ms.length;function Z2(e,n,i){let o="",a=!0;for(let u=0;u<X2;u++){const c=ms[u],f=e[c];if(f===void 0)continue;let p=!0;if(typeof f=="number"?p=f===(c.startsWith("scale")?1:0):p=parseFloat(f)===0,!p||i){const h=lx(f,xd[c]);if(!p){a=!1;const g=Y2[c]||c;o+=`${g}(${h}) `}i&&(n[c]=h)}}return o=o.trim(),i?o=i(n,a?"":o):a&&(o="none"),o}function Id(e,n,i){const{style:o,vars:a,transformOrigin:u}=e;let c=!1,f=!1;for(const p in n){const h=n[p];if(wr.has(p)){c=!0;continue}else if(Jy(p)){a[p]=h;continue}else{const g=lx(h,xd[p]);p.startsWith("origin")?(f=!0,u[p]=g):o[p]=g}}if(n.transform||(c||i?o.transform=Z2(n,e.transform,i):o.transform&&(o.transform="none")),f){const{originX:p="50%",originY:h="50%",originZ:g=0}=u;o.transformOrigin=`${p} ${h} ${g}`}}function Gg(e,n,i){return typeof e=="string"?e:pe.transform(n+i*e)}function J2(e,n,i){const o=Gg(n,e.x,e.width),a=Gg(i,e.y,e.height);return`${o} ${a}`}const ej={offset:"stroke-dashoffset",array:"stroke-dasharray"},tj={offset:"strokeDashoffset",array:"strokeDasharray"};function nj(e,n,i=1,o=0,a=!0){e.pathLength=1;const u=a?ej:tj;e[u.offset]=pe.transform(-o);const c=pe.transform(n),f=pe.transform(i);e[u.array]=`${c} ${f}`}function Fd(e,{attrX:n,attrY:i,attrScale:o,originX:a,originY:u,pathLength:c,pathSpacing:f=1,pathOffset:p=0,...h},g,y){if(Id(e,h,y),g){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:x,style:S,dimensions:b}=e;x.transform&&(b&&(S.transform=x.transform),delete x.transform),b&&(a!==void 0||u!==void 0||S.transform)&&(S.transformOrigin=J2(b,a!==void 0?a:.5,u!==void 0?u:.5)),n!==void 0&&(x.x=n),i!==void 0&&(x.y=i),o!==void 0&&(x.scale=o),c!==void 0&&nj(x,c,f,p,!1)}const Vd=e=>typeof e=="string"&&e.toLowerCase()==="svg",rj={useVisualState:ox({scrapeMotionValuesFromProps:sx,createRenderState:ax,onMount:(e,n,{renderState:i,latestValues:o})=>{Te.read(()=>{try{i.dimensions=typeof n.getBBox=="function"?n.getBBox():n.getBoundingClientRect()}catch{i.dimensions={x:0,y:0,width:0,height:0}}}),Te.render(()=>{Fd(i,o,Vd(n.tagName),e.transformTemplate),rx(n,i)})}})},ij={useVisualState:ox({scrapeMotionValuesFromProps:Dd,createRenderState:Ld})};function ux(e,n,i){for(const o in n)!it(n[o])&&!ix(o,i)&&(e[o]=n[o])}function sj({transformTemplate:e},n){return C.useMemo(()=>{const i=Ld();return Id(i,n,e),Object.assign({},i.vars,i.style)},[n])}function oj(e,n){const i=e.style||{},o={};return ux(o,i,e),Object.assign(o,sj(e,n)),o}function aj(e,n){const i={},o=oj(e,n);return e.drag&&e.dragListener!==!1&&(i.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)&&(i.tabIndex=0),i.style=o,i}const lj=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function va(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||lj.has(e)}let cx=e=>!va(e);function uj(e){e&&(cx=n=>n.startsWith("on")?!va(n):e(n))}try{uj(require("@emotion/is-prop-valid").default)}catch{}function cj(e,n,i){const o={};for(const a in e)a==="values"&&typeof e.values=="object"||(cx(a)||i===!0&&va(a)||!n&&!va(a)||e.draggable&&a.startsWith("onDrag"))&&(o[a]=e[a]);return o}function dj(e,n,i,o){const a=C.useMemo(()=>{const u=ax();return Fd(u,n,Vd(o),e.transformTemplate),{...u.attrs,style:{...u.style}}},[n]);if(e.style){const u={};ux(u,e.style,e),a.style={...u,...a.style}}return a}function fj(e=!1){return(i,o,a,{latestValues:u},c)=>{const p=(Md(i)?dj:aj)(o,u,c,i),h=cj(o,typeof i=="string",e),g=i!==C.Fragment?{...h,...p,ref:a}:{},{children:y}=o,x=C.useMemo(()=>it(y)?y.get():y,[y]);return C.createElement(i,{...g,children:x})}}function pj(e,n){return function(o,{forwardMotionProps:a}={forwardMotionProps:!1}){const c={...Md(o)?rj:ij,preloadedFeatures:e,useRender:fj(a),createVisualElement:n,Component:o};return U2(c)}}const Ic={current:null},dx={current:!1};function hj(){if(dx.current=!0,!!Od)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),n=()=>Ic.current=e.matches;e.addListener(n),n()}else Ic.current=!1}function mj(e,n,i){for(const o in n){const a=n[o],u=i[o];if(it(a))e.addValue(o,a);else if(it(u))e.addValue(o,ps(a,{owner:e}));else if(u!==a)if(e.hasValue(o)){const c=e.getValue(o);c.liveStyle===!0?c.jump(a):c.hasAnimated||c.set(a)}else{const c=e.getStaticValue(o);e.addValue(o,ps(c!==void 0?c:a,{owner:e}))}}for(const o in i)n[o]===void 0&&e.removeValue(o);return n}const Yg=new WeakMap,gj=[...n0,rt,Zn],vj=e=>gj.find(t0(e)),Xg=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class yj{scrapeMotionValuesFromProps(n,i,o){return{}}constructor({parent:n,props:i,presenceContext:o,reducedMotionConfig:a,blockInitialAnimation:u,visualState:c},f={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=gd,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const x=Zt.now();this.renderScheduledAt<x&&(this.renderScheduledAt=x,Te.render(this.render,!1,!0))};const{latestValues:p,renderState:h}=c;this.latestValues=p,this.baseTarget={...p},this.initialValues=i.initial?{...p}:{},this.renderState=h,this.parent=n,this.props=i,this.presenceContext=o,this.depth=n?n.depth+1:0,this.reducedMotionConfig=a,this.options=f,this.blockInitialAnimation=!!u,this.isControllingVariants=Va(i),this.isVariantNode=ex(i),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(n&&n.current);const{willChange:g,...y}=this.scrapeMotionValuesFromProps(i,{},this);for(const x in y){const S=y[x];p[x]!==void 0&&it(S)&&S.set(p[x],!1)}}mount(n){this.current=n,Yg.set(n,this),this.projection&&!this.projection.instance&&this.projection.mount(n),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((i,o)=>this.bindToMotionValue(o,i)),dx.current||hj(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ic.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Yg.delete(this.current),this.projection&&this.projection.unmount(),Xn(this.notifyUpdate),Xn(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const i=this.features[n];i&&(i.unmount(),i.isMounted=!1)}this.current=null}bindToMotionValue(n,i){this.valueSubscriptions.has(n)&&this.valueSubscriptions.get(n)();const o=wr.has(n),a=i.on("change",f=>{this.latestValues[n]=f,this.props.onUpdate&&Te.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0)}),u=i.on("renderRequest",this.scheduleRender);let c;window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,n,i)),this.valueSubscriptions.set(n,()=>{a(),u(),c&&c(),i.owner&&i.stop()})}sortNodePosition(n){return!this.current||!this.sortInstanceNodePosition||this.type!==n.type?0:this.sortInstanceNodePosition(this.current,n.current)}updateFeatures(){let n="animation";for(n in si){const i=si[n];if(!i)continue;const{isEnabled:o,Feature:a}=i;if(!this.features[n]&&a&&o(this.props)&&(this.features[n]=new a(this)),this.features[n]){const u=this.features[n];u.isMounted?u.update():(u.mount(),u.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ue()}getStaticValue(n){return this.latestValues[n]}setStaticValue(n,i){this.latestValues[n]=i}update(n,i){(n.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=n,this.prevPresenceContext=this.presenceContext,this.presenceContext=i;for(let o=0;o<Xg.length;o++){const a=Xg[o];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const u="on"+a,c=n[u];c&&(this.propEventSubscriptions[a]=this.on(a,c))}this.prevMotionValues=mj(this,this.scrapeMotionValuesFromProps(n,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(n){return this.props.variants?this.props.variants[n]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(n){const i=this.getClosestVariantNode();if(i)return i.variantChildren&&i.variantChildren.add(n),()=>i.variantChildren.delete(n)}addValue(n,i){const o=this.values.get(n);i!==o&&(o&&this.removeValue(n),this.bindToMotionValue(n,i),this.values.set(n,i),this.latestValues[n]=i.get())}removeValue(n){this.values.delete(n);const i=this.valueSubscriptions.get(n);i&&(i(),this.valueSubscriptions.delete(n)),delete this.latestValues[n],this.removeValueFromRenderState(n,this.renderState)}hasValue(n){return this.values.has(n)}getValue(n,i){if(this.props.values&&this.props.values[n])return this.props.values[n];let o=this.values.get(n);return o===void 0&&i!==void 0&&(o=ps(i===null?void 0:i,{owner:this}),this.addValue(n,o)),o}readValue(n,i){var o;let a=this.latestValues[n]!==void 0||!this.current?this.latestValues[n]:(o=this.getBaseTargetFromProps(this.props,n))!==null&&o!==void 0?o:this.readValueFromInstance(this.current,n,this.options);return a!=null&&(typeof a=="string"&&(Xy(a)||Yy(a))?a=parseFloat(a):!vj(a)&&Zn.test(i)&&(a=c0(n,i)),this.setBaseTarget(n,it(a)?a.get():a)),it(a)?a.get():a}setBaseTarget(n,i){this.baseTarget[n]=i}getBaseTarget(n){var i;const{initial:o}=this.props;let a;if(typeof o=="string"||typeof o=="object"){const c=ud(this.props,o,(i=this.presenceContext)===null||i===void 0?void 0:i.custom);c&&(a=c[n])}if(o&&a!==void 0)return a;const u=this.getBaseTargetFromProps(this.props,n);return u!==void 0&&!it(u)?u:this.initialValues[n]!==void 0&&a===void 0?void 0:this.baseTarget[n]}on(n,i){return this.events[n]||(this.events[n]=new Nd),this.events[n].add(i)}notify(n,...i){this.events[n]&&this.events[n].notify(...i)}}class fx extends yj{constructor(){super(...arguments),this.KeyframeResolver=d0}sortInstanceNodePosition(n,i){return n.compareDocumentPosition(i)&2?1:-1}getBaseTargetFromProps(n,i){return n.style?n.style[i]:void 0}removeValueFromRenderState(n,{vars:i,style:o}){delete i[n],delete o[n]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:n}=this.props;it(n)&&(this.childSubscription=n.on("change",i=>{this.current&&(this.current.textContent=`${i}`)}))}}function xj(e){return window.getComputedStyle(e)}class wj extends fx{constructor(){super(...arguments),this.type="html",this.renderInstance=tx}readValueFromInstance(n,i){if(wr.has(i)){const o=wd(i);return o&&o.default||0}else{const o=xj(n),a=(Jy(i)?o.getPropertyValue(i):o[i])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(n,{transformPagePoint:i}){return I0(n,i)}build(n,i,o){Id(n,i,o.transformTemplate)}scrapeMotionValuesFromProps(n,i,o){return Dd(n,i,o)}}class Sj extends fx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ue}getBaseTargetFromProps(n,i){return n[i]}readValueFromInstance(n,i){if(wr.has(i)){const o=wd(i);return o&&o.default||0}return i=nx.has(i)?i:Ad(i),n.getAttribute(i)}scrapeMotionValuesFromProps(n,i,o){return sx(n,i,o)}build(n,i,o){Fd(n,i,this.isSVGTag,o.transformTemplate)}renderInstance(n,i,o,a){rx(n,i,o,a)}mount(n){this.isSVGTag=Vd(n.tagName),super.mount(n)}}const Pj=(e,n)=>Md(e)?new Sj(n):new wj(n,{allowProjection:e!==C.Fragment}),bj=pj({...aC,..._2,...S2,...O2},Pj),be=iE(bj),kj=$v("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 hover-elevate active-elevate-2",{variants:{variant:{default:"bg-primary text-primary-foreground border border-primary-border",destructive:"bg-destructive text-destructive-foreground border border-destructive-border",outline:" border [border-color:var(--button-outline)]  shadow-xs active:shadow-none ",secondary:"border bg-secondary text-secondary-foreground border border-secondary-border ",ghost:"border border-transparent"},size:{default:"min-h-9 px-4 py-2",sm:"min-h-8 rounded-md px-3 text-xs",lg:"min-h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),xn=C.forwardRef(({className:e,variant:n,size:i,asChild:o=!1,...a},u)=>{const c=o?TS:"button";return v.jsx(c,{className:gt(kj({variant:n,size:i,className:e})),ref:u,...a})});xn.displayName="Button";function Ej(){const[e,n]=C.useState(!1),i=[{name:"Características",to:"features"},{name:"Benefícios",to:"benefits"},{name:"Depoimentos",to:"testimonials"}];return v.jsxs(be.nav,{initial:{y:-100},animate:{y:0},className:"fixed top-0 left-0 right-0 z-50 bg-white/80 backdrop-blur-md border-b border-pink-100 shadow-sm",children:[v.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:v.jsxs("div",{className:"flex justify-between items-center h-16",children:[v.jsx("div",{className:"flex-shrink-0 flex items-center",children:v.jsx("span",{className:"font-display text-2xl font-bold text-gradient",children:"Aurora Pink"})}),v.jsxs("div",{className:"hidden md:flex items-center space-x-8",children:[i.map(o=>v.jsx(ca.Link,{to:o.to,smooth:!0,duration:500,className:"text-gray-600 hover:text-[hsl(var(--deep-pink))] cursor-pointer font-medium transition-colors",children:o.name},o.name)),v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("span",{className:"text-gray-400 text-sm line-through",children:"R$249,90"}),v.jsx("span",{className:"text-[hsl(var(--deep-pink))] font-bold text-lg",children:"R$129,90"})]}),v.jsx("a",{href:"https://app.coinzz.com.br/checkout/aurora-p1kxd-0",target:"_blank",rel:"noopener noreferrer",onClick:()=>{typeof window<"u"&&window.fbq&&window.fbq("track","InitiateCheckout",{content_name:"Aurora Pink",value:129.9,currency:"BRL"})},children:v.jsx(xn,{className:"bg-[hsl(var(--deep-pink))] hover:bg-[hsl(var(--primary-pink))] text-white rounded-full px-6 shadow-lg shadow-pink-200",children:"Pedir Agora"})})]}),v.jsx("div",{className:"md:hidden flex items-center",children:v.jsx("button",{onClick:()=>n(!e),className:"text-gray-600 hover:text-[hsl(var(--deep-pink))]",children:e?v.jsx(Qv,{size:24}):v.jsx(CP,{size:24})})})]})}),e&&v.jsx(be.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},className:"md:hidden bg-white border-t border-pink-100",children:v.jsxs("div",{className:"px-2 pt-2 pb-3 space-y-1 sm:px-3",children:[i.map(o=>v.jsx(ca.Link,{to:o.to,smooth:!0,duration:500,onClick:()=>n(!1),className:"block px-3 py-2 text-base font-medium text-gray-700 hover:text-[hsl(var(--deep-pink))] hover:bg-pink-50 rounded-md cursor-pointer",children:o.name},o.name)),v.jsxs("div",{className:"pt-4 space-y-2",children:[v.jsxs("div",{className:"flex items-center justify-center gap-2",children:[v.jsx("span",{className:"text-gray-400 text-sm line-through",children:"R$249,90"}),v.jsx("span",{className:"text-[hsl(var(--deep-pink))] font-bold text-lg",children:"R$129,90"}),v.jsx("span",{className:"inline-block px-2 py-0.5 rounded-full bg-red-100 text-red-600 font-bold text-xs",children:"-48%"})]}),v.jsx("a",{href:"https://app.coinzz.com.br/checkout/aurora-p1kxd-0",target:"_blank",rel:"noopener noreferrer",onClick:()=>{n(!1),typeof window<"u"&&window.fbq&&window.fbq("track","InitiateCheckout",{content_name:"Aurora Pink",value:129.9,currency:"BRL"})},children:v.jsx(xn,{className:"w-full bg-[hsl(var(--deep-pink))] hover:bg-[hsl(var(--primary-pink))] text-white rounded-full",children:"Pedir Agora"})})]})]})})]})}const px="/assets/Whisk_e1b8b0fc60dd01096a847a5daf17f811dr_1771974279700-hm6wkeCz.png";function Tj(){return v.jsxs("section",{className:"relative pt-32 pb-20 lg:pt-48 lg:pb-32 overflow-hidden bg-gradient-to-b from-[hsl(var(--soft-pink))] to-white",children:[v.jsx("div",{className:"absolute top-0 right-0 -mr-20 -mt-20 w-[500px] h-[500px] bg-[hsl(var(--primary-pink))] opacity-10 blur-[100px] rounded-full"}),v.jsx("div",{className:"absolute bottom-0 left-0 -ml-20 -mb-20 w-[400px] h-[400px] bg-[hsl(var(--deep-pink))] opacity-10 blur-[100px] rounded-full"}),v.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10",children:v.jsxs("div",{className:"flex flex-col lg:flex-row items-center gap-12 lg:gap-20",children:[v.jsxs(be.div,{initial:{opacity:0,x:-50},animate:{opacity:1,x:0},transition:{duration:.8,ease:"easeOut"},className:"flex-1 text-center lg:text-left",children:[v.jsxs("div",{className:"inline-flex items-center px-3 py-1 rounded-full bg-white border border-pink-200 shadow-sm mb-4",children:[v.jsx(AP,{className:"w-4 h-4 text-[hsl(var(--deep-pink))] mr-2"}),v.jsx("span",{className:"text-sm font-medium text-[hsl(var(--deep-pink))]",children:"Complexo Clareador Tripla-Ação"})]}),v.jsxs("div",{className:"space-y-2 mb-5",children:[v.jsx("p",{className:"text-base text-gray-500 italic",children:"Você evita usar regata por causa das manchas?"}),v.jsx("p",{className:"text-base text-gray-500 italic",children:"Sente vergonha ao levantar os braços?"})]}),v.jsxs("h1",{className:"text-4xl lg:text-6xl font-display font-bold text-gray-900 leading-tight mb-4",children:["Diga adeus às manchas escuras nas axilas, virilha e joelhos sem gastar com ",v.jsx("span",{className:"text-gradient",children:"procedimentos caros"})]}),v.jsx("p",{className:"text-lg text-[hsl(var(--deep-pink))] font-semibold mb-4",children:"Recupere sua confiança em poucas semanas."}),v.jsx("p",{className:"text-lg text-gray-600 mb-6 leading-relaxed max-w-2xl mx-auto lg:mx-0",children:"Clareador desenvolvido para auxiliar na redução da aparência de manchas em áreas íntimas e de atrito, promovendo uniformidade gradual da pele."}),v.jsxs("div",{className:"bg-gradient-to-r from-[hsl(var(--deep-pink))] to-[hsl(var(--primary-pink))] text-white rounded-xl px-5 py-3 mb-6 inline-flex items-center gap-2 shadow-lg","data-testid":"banner-shipping",children:[v.jsx(mn,{className:"w-5 h-5 flex-shrink-0"}),v.jsx("span",{className:"font-bold text-sm sm:text-base",children:"VOCÊ SÓ PAGA QUANDO RECEBER! 🚚 ENVIO IMEDIATO PARA TODO O ESTADO DE SÃO PAULO"})]}),v.jsxs("div",{className:"flex items-center justify-center lg:justify-start gap-3 mb-4 flex-wrap",children:[v.jsx("span",{className:"text-gray-400 text-lg line-through",children:"R$249,90"}),v.jsx("span",{className:"text-4xl font-display font-bold text-[hsl(var(--deep-pink))]",children:"R$129,90"}),v.jsx("span",{className:"inline-block px-3 py-1 rounded-full bg-red-100 text-red-600 font-bold text-xs animate-pulse",children:"-48% OFF"})]}),v.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center lg:justify-start gap-4",children:[v.jsx("a",{href:"https://app.coinzz.com.br/checkout/aurora-p1kxd-0",target:"_blank",rel:"noopener noreferrer",onClick:()=>{typeof window<"u"&&window.fbq&&window.fbq("track","InitiateCheckout",{content_name:"Aurora Pink",value:129.9,currency:"BRL"})},children:v.jsxs(xn,{size:"lg",className:"h-14 px-8 text-lg rounded-full bg-[hsl(var(--deep-pink))] hover:bg-[hsl(var(--primary-pink))] shadow-lg shadow-pink-300 hover:shadow-xl hover:-translate-y-1 transition-all duration-300","data-testid":"button-hero-cta",children:["Quero eliminar minhas manchas agora",v.jsx(yP,{className:"ml-2 h-5 w-5"})]})}),v.jsx(ca.Link,{to:"description",smooth:!0,duration:500,children:v.jsx(xn,{variant:"outline",size:"lg",className:"h-14 px-8 text-lg rounded-full border-pink-200 text-gray-700 hover:bg-pink-50",children:"Saiba Mais"})})]}),v.jsx("p",{className:"mt-2 text-sm text-amber-700 bg-amber-50 border border-amber-200 rounded-lg px-3 py-1.5 inline-block font-medium",children:"⚡ Estoque disponível com envio exclusivo para o Estado de São Paulo."}),v.jsxs("div",{className:"mt-4 bg-white border border-pink-200 rounded-xl p-4 shadow-sm max-w-md mx-auto lg:mx-0","data-testid":"delivery-highlight-hero",children:[v.jsx("p",{className:"font-bold text-gray-900 text-sm mb-2",children:"🚀 ENTREGA RÁPIDA PARA SÃO PAULO"}),v.jsxs("div",{className:"space-y-1 text-sm text-gray-600",children:[v.jsx("p",{children:"📍 Capital e região metropolitana: 1 a 3 dias úteis"}),v.jsx("p",{children:"📦 Interior de SP: até 5 dias úteis"}),v.jsx("p",{children:"⏳ Prazo máximo: 7 dias úteis"})]}),v.jsx("p",{className:"text-xs text-gray-500 mt-2",children:"Produto enviado com prioridade para todo o Estado de São Paulo."})]}),v.jsxs("div",{className:"mt-4 flex flex-wrap items-center justify-center lg:justify-start gap-4","data-testid":"trust-badges-hero",children:[v.jsxs("div",{className:"flex items-center gap-1.5 text-sm text-gray-600",children:[v.jsx(mn,{className:"w-4 h-4 text-[hsl(var(--deep-pink))]"}),v.jsx("span",{children:"Pagamento na Entrega"})]}),v.jsxs("div",{className:"flex items-center gap-1.5 text-sm text-gray-600",children:[v.jsx(Qc,{className:"w-4 h-4 text-[hsl(var(--deep-pink))]"}),v.jsx("span",{children:"Envio Rápido"})]}),v.jsxs("div",{className:"flex items-center gap-1.5 text-sm text-gray-600",children:[v.jsx(Kr,{className:"w-4 h-4 text-[hsl(var(--deep-pink))]"}),v.jsx("span",{children:"Compra 100% Segura"})]})]})]}),v.jsx(be.div,{initial:{opacity:0,x:50},animate:{opacity:1,x:0},transition:{duration:.8,delay:.2,ease:"easeOut"},className:"flex-1 relative",children:v.jsxs("div",{className:"relative z-10 mx-auto w-full max-w-[500px]",children:[v.jsx("div",{className:"absolute inset-0 bg-gradient-to-tr from-pink-200 to-transparent rounded-full blur-3xl opacity-30 transform rotate-12"}),v.jsx("img",{src:px,alt:"Aurora Pink Produto",className:"relative w-full h-auto rounded-3xl drop-shadow-2xl hover:scale-105 transition-transform duration-500"})]})})]})})]})}const Cj=[{icon:v.jsx(Qc,{className:"w-8 h-8 text-[hsl(var(--deep-pink))]"}),title:"Clareia Manchas Escuras",description:"Ajuda a clarear manchas escuras em diversas áreas do corpo de forma gradual e segura."},{icon:v.jsx(Kr,{className:"w-8 h-8 text-[hsl(var(--deep-pink))]"}),title:"Axilas, Virilha, Joelhos e Cotovelos",description:"Ideal para as áreas mais afetadas por escurecimento. Resultados visíveis com uso contínuo."},{icon:v.jsx(Kv,{className:"w-8 h-8 text-[hsl(var(--deep-pink))]"}),title:"Textura Leve e Rápida Absorção",description:"Fórmula leve que não deixa a pele oleosa ou pegajosa. Fácil de aplicar em casa, no dia a dia."},{icon:v.jsx(_P,{className:"w-8 h-8 text-[hsl(var(--deep-pink))]"}),title:"Uso Prático e Diário",description:"Integra-se perfeitamente à sua rotina de cuidados. Aplique de manhã ou à noite com praticidade."}];function jj(){return v.jsx("section",{id:"features",className:"py-24 bg-white relative",children:v.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[v.jsxs("div",{className:"text-center mb-16",children:[v.jsxs(be.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-4xl lg:text-5xl font-display font-bold text-gray-900 mb-4",children:["Por que escolher ",v.jsx("span",{className:"text-gradient",children:"Aurora Pink"}),"?"]}),v.jsx("div",{className:"h-1 w-24 bg-[hsl(var(--primary-pink))] mx-auto rounded-full"})]}),v.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:Cj.map((e,n)=>v.jsxs(be.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:n*.1},className:"group p-8 rounded-2xl bg-[hsl(var(--soft-pink))] hover:bg-white border border-transparent hover:border-pink-100 shadow-sm hover:shadow-xl transition-all duration-300",children:[v.jsx("div",{className:"w-16 h-16 rounded-xl bg-white flex items-center justify-center shadow-md mb-6 group-hover:scale-110 transition-transform duration-300",children:e.icon}),v.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-3 font-display",children:e.title}),v.jsx("p",{className:"text-gray-600 leading-relaxed",children:e.description})]},n))}),v.jsx(be.p,{initial:{opacity:0},whileInView:{opacity:1},viewport:{once:!0},className:"text-center mt-10 text-gray-500 font-medium text-sm",children:"Resultados progressivos com uso contínuo."})]})})}const Nj="/assets/Before_and_After_Dark_Underarm_Treatment_2048x2048_1771680942502-CrsxKVPI.webp",Aj="/assets/maxresdefault_1771680947081-DQNWUHxh.jpg",Rj="/assets/clareiar-axilas-1_1771680950908-B3WKMaEb.jpg",hx="/assets/Whisk_d3255c717e49930a6fe4e4959644ad6fdr_1771974299703-BP_8BQIK.png",mx="/assets/Whisk_66909a7d18e5921a8f84279bacd05c02dr_1771974319686-CMB4DodP.png",_j=[{name:"Mariana S.",age:"28 anos",text:"Eu já tinha testado vários produtos, mas o Aurora Pink foi o que mais me ajudou a melhorar a aparência das minhas axilas.",image:px,beforeAfter:Nj},{name:"Camila R.",age:"32 anos",text:"Depois de algumas semanas de uso, já percebi diferença na uniformidade da pele. Recomendo para todas!",image:hx,beforeAfter:Aj},{name:"Juliana T.",age:"35 anos",text:"Produto fácil de aplicar e ótimo custo-benefício. Minha pele ficou visivelmente mais uniforme.",image:mx,beforeAfter:Rj}],Oj=[{name:"Sandra M.",location:"São Paulo - SP",text:"Recebi hoje e já comecei a usar! Embalagem muito bem feita, chegou rápido. To animada!",time:"14:32"},{name:"Dona Cláudia",location:"Guarulhos - SP",text:"Meninas, to usando há 2 semanas e minha virilha já tá com a pele mais uniforme. Valeu a pena demais!",time:"09:15"},{name:"Patrícia L.",location:"Osasco - SP",text:"Minha filha me indicou e eu amei. Textura boa, não é oleoso. Já pedi o segundo pote.",time:"18:47"},{name:"Regina A.",location:"Campinas - SP",text:"Eu tinha medo de comprar pela internet mas pagamento na entrega me deu confiança. Produto sério!",time:"11:08"},{name:"Maria José",location:"Santo André - SP",text:"Uso nas axilas e joelhos. Depois de um mês percebi diferença sim. Recomendo pra quem tem paciência.",time:"16:22"}];function Zg(){return v.jsx("div",{className:"flex gap-0.5",children:[...Array(5)].map((e,n)=>v.jsx(RP,{className:"w-3.5 h-3.5 fill-amber-400 text-amber-400"},n))})}function Mj(){return v.jsx("section",{id:"testimonials",className:"py-24 bg-[hsl(var(--soft-pink))]",children:v.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[v.jsxs("div",{className:"text-center mb-16",children:[v.jsxs(be.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-4xl font-display font-bold text-gray-900 mb-4",children:["Quem usa, ",v.jsx("span",{className:"text-[hsl(var(--deep-pink))]",children:"recomenda"})]}),v.jsx("p",{className:"text-gray-600 max-w-2xl mx-auto",children:"Veja o que nossas clientes estão dizendo sobre o Aurora Pink."})]}),v.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8 lg:gap-10",children:_j.map((e,n)=>v.jsxs(be.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:n*.1},className:"bg-white rounded-2xl shadow-xl relative overflow-hidden","data-testid":`card-testimonial-${n}`,children:[v.jsx(NP,{className:"absolute top-4 right-4 text-pink-100 w-20 h-20 -rotate-12 z-0"}),v.jsxs("div",{className:"p-6 pb-4",children:[v.jsxs("div",{className:"flex items-center gap-4 relative z-10",children:[v.jsx("div",{className:"w-16 h-16 rounded-full overflow-hidden border-4 border-pink-50 shadow-md flex-shrink-0",children:v.jsx("img",{src:e.image,alt:e.name,className:"w-full h-full object-cover"})}),v.jsxs("div",{children:[v.jsx("h4",{className:"font-bold text-lg text-gray-900","data-testid":`text-name-${n}`,children:e.name}),v.jsx("p",{className:"text-[hsl(var(--deep-pink))] font-medium text-sm",children:e.age}),v.jsx(Zg,{})]})]}),v.jsx("div",{className:"mt-4 relative z-10",children:v.jsxs("p",{className:"text-gray-600 italic leading-relaxed",children:['"',e.text,'"']})})]}),v.jsx("div",{className:"px-6 pb-6 pt-2",children:v.jsxs("div",{className:"relative rounded-xl overflow-hidden border border-pink-100 shadow-sm","data-testid":`img-before-after-${n}`,children:[v.jsx("img",{src:e.beforeAfter,alt:`Resultado ${e.name} - Antes e Depois`,className:"w-full h-auto object-cover"}),v.jsxs("div",{className:"absolute bottom-0 left-0 right-0 flex",children:[v.jsx("div",{className:"flex-1 flex items-center justify-center py-1.5 bg-black/50 backdrop-blur-sm",children:v.jsx("span",{className:"text-white font-bold text-xs tracking-wider",children:"ANTES"})}),v.jsx("div",{className:"flex-1 flex items-center justify-center py-1.5 bg-[hsl(var(--deep-pink))]/80 backdrop-blur-sm",children:v.jsx("span",{className:"text-white font-bold text-xs tracking-wider",children:"DEPOIS"})})]})]})})]},n))}),v.jsxs(be.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mt-16",children:[v.jsxs("h3",{className:"text-2xl font-display font-bold text-gray-900 text-center mb-8",children:["Resultados Reais de ",v.jsx("span",{className:"text-[hsl(var(--deep-pink))]",children:"Clientes"})]}),v.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-4 max-w-5xl mx-auto",children:Oj.map((e,n)=>v.jsxs(be.div,{initial:{opacity:0,y:15},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:n*.08},className:"bg-white rounded-xl p-4 shadow-md border border-gray-100","data-testid":`whatsapp-msg-${n}`,children:[v.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[v.jsx("div",{className:"w-8 h-8 rounded-full bg-green-100 flex items-center justify-center flex-shrink-0",children:v.jsx(Jo,{className:"w-4 h-4 text-green-600"})}),v.jsxs("div",{className:"flex-1 min-w-0",children:[v.jsx("p",{className:"font-bold text-sm text-gray-900 truncate",children:e.name}),v.jsx("p",{className:"text-xs text-gray-400",children:e.location})]}),v.jsx(Zg,{})]}),v.jsxs("div",{className:"bg-green-50 rounded-lg p-3 relative",children:[v.jsx("div",{className:"absolute -top-1.5 left-4 w-3 h-3 bg-green-50 rotate-45"}),v.jsx("p",{className:"text-sm text-gray-700 leading-relaxed",children:e.text}),v.jsx("p",{className:"text-xs text-gray-400 text-right mt-1",children:e.time})]})]},n))})]})]})})}const Jg="/assets/jefferson.jpg_1771684327587-neT86lmv.jpeg";function dc({text:e="Quero eliminar minhas manchas agora",className:n=""}){return v.jsxs("div",{className:`text-center ${n}`,children:[v.jsx("a",{href:"https://app.coinzz.com.br/checkout/aurora-p1kxd-0",target:"_blank",rel:"noopener noreferrer",onClick:()=>{typeof window<"u"&&window.fbq&&window.fbq("track","InitiateCheckout",{content_name:"Aurora Pink",value:129.9,currency:"BRL"})},children:v.jsxs(xn,{size:"lg",className:"h-14 px-8 text-lg rounded-full bg-[hsl(var(--deep-pink))] hover:bg-[hsl(var(--primary-pink))] shadow-lg shadow-pink-300 hover:shadow-xl hover:-translate-y-1 transition-all duration-300","data-testid":"button-cta-inline",children:[v.jsx(mn,{className:"mr-2 h-5 w-5"}),e]})}),v.jsx("p",{className:"mt-3 text-sm text-gray-500",children:"Pagamento na entrega disponível • Envio rápido para SP"})]})}function hn({question:e,answer:n}){const[i,o]=C.useState(!1);return v.jsxs("div",{className:"border border-pink-100 rounded-xl overflow-hidden bg-white shadow-sm","data-testid":"faq-item",children:[v.jsxs("button",{onClick:()=>o(!i),className:"w-full flex items-center justify-between p-5 text-left hover:bg-pink-50/50 transition-colors","data-testid":"button-faq-toggle",children:[v.jsx("span",{className:"font-bold text-gray-900 pr-4",children:e}),v.jsx(SP,{className:`w-5 h-5 text-[hsl(var(--deep-pink))] flex-shrink-0 transition-transform duration-300 ${i?"rotate-180":""}`})]}),i&&v.jsx(be.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},className:"px-5 pb-5",children:v.jsx("p",{className:"text-gray-600 leading-relaxed",children:n})})]})}function Dj(){return v.jsxs("div",{className:"min-h-screen bg-white",children:[v.jsx(Ej,{}),v.jsxs("main",{children:[v.jsx(Tj,{}),v.jsx("section",{className:"py-20 bg-white",children:v.jsx("div",{className:"max-w-3xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:v.jsxs(be.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[v.jsxs("h2",{className:"text-3xl lg:text-4xl font-display font-bold text-gray-900 mb-6",children:["Você merece se sentir ",v.jsx("span",{className:"text-[hsl(var(--deep-pink))]",children:"confiante"})," novamente"]}),v.jsx("p",{className:"text-lg text-gray-600 leading-relaxed max-w-2xl mx-auto",children:"Manchas e escurecimentos podem afetar a autoestima e até a forma como você se veste. O Aurora Pink foi pensado para ajudar você a recuperar a segurança e voltar a usar o que quiser sem insegurança."})]})})}),v.jsx("section",{id:"description",className:"py-24 bg-white relative overflow-hidden",children:v.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:v.jsxs("div",{className:"flex flex-col lg:flex-row items-center gap-16",children:[v.jsx(be.div,{initial:{opacity:0,x:-50},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"flex-1 order-2 lg:order-1",children:v.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[v.jsxs("div",{className:"relative rounded-3xl overflow-hidden shadow-2xl border-4 border-white row-span-2",children:[v.jsx("img",{src:hx,alt:"Aurora Pink Produto",className:"w-full h-full object-cover transform hover:scale-105 transition-transform duration-700"}),v.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/20 to-transparent"})]}),v.jsxs("div",{className:"relative rounded-3xl overflow-hidden shadow-2xl border-4 border-white",children:[v.jsx("img",{src:mx,alt:"Aurora Pink Detalhe",className:"w-full h-full object-cover transform hover:scale-105 transition-transform duration-700"}),v.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/20 to-transparent"})]})]})}),v.jsxs(be.div,{initial:{opacity:0,x:50},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"flex-1 order-1 lg:order-2",children:[v.jsxs("h2",{className:"text-4xl lg:text-5xl font-display font-bold text-gray-900 mb-6",children:["Recupere sua ",v.jsx("span",{className:"text-[hsl(var(--deep-pink))]",children:"Confiança"})]}),v.jsx("p",{className:"text-lg text-gray-600 mb-8 leading-relaxed",children:"O Aurora Pink foi desenvolvido para quem deseja reduzir a aparência de manchas e escurecimentos na pele de forma simples e prática."}),v.jsx("p",{className:"text-lg text-gray-600 mb-8 leading-relaxed",children:"Sua fórmula foi pensada para auxiliar no clareamento gradual das áreas mais afetadas, ajudando você a se sentir mais confiante todos os dias."}),v.jsx("ul",{className:"space-y-4 mb-10",children:["Ajuda a clarear manchas escuras","Ideal para axilas, virilha, joelhos e cotovelos","Fácil de aplicar em casa","Textura leve e rápida absorção","Uso prático no dia a dia"].map((e,n)=>v.jsxs("li",{className:"flex items-center text-gray-700 font-medium",children:[v.jsx("div",{className:"w-6 h-6 rounded-full bg-pink-100 flex items-center justify-center mr-3",children:v.jsx(Oo,{className:"w-4 h-4 text-[hsl(var(--deep-pink))]"})}),e]},n))})]})]})})}),v.jsx("section",{className:"py-20 bg-[hsl(var(--soft-pink))]",children:v.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:[v.jsxs(be.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12",children:[v.jsx("span",{className:"inline-block px-4 py-2 rounded-full bg-white border border-pink-200 text-[hsl(var(--deep-pink))] font-bold text-sm tracking-wide mb-6 shadow-sm",children:"TECNOLOGIA EXCLUSIVA"}),v.jsxs("h2",{className:"text-4xl lg:text-5xl font-display font-bold text-gray-900 mb-4",children:["Complexo Clareador ",v.jsx("span",{className:"text-[hsl(var(--deep-pink))]",children:"Tripla-Ação"})]}),v.jsx("p",{className:"text-gray-600 max-w-2xl mx-auto text-lg",children:"O Aurora Pink combina ativos reconhecidos por auxiliarem no clareamento gradual da pele, atuando em três frentes: renovação superficial, uniformização do tom e hidratação profunda. Sua fórmula foi desenvolvida com base em princípios dermatológicos para ajudar a reduzir a aparência de áreas escurecidas de forma progressiva."}),v.jsx("div",{className:"flex flex-wrap justify-center gap-3 mt-6",children:["Auxilia na uniformização do tom da pele","Contribui para redução gradual da hiperpigmentação","Desenvolvido com ativos reconhecidos no cuidado dermatológico"].map((e,n)=>v.jsxs("span",{className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full bg-white border border-pink-200 text-sm text-gray-700 shadow-sm",children:[v.jsx(Oo,{className:"w-3.5 h-3.5 text-[hsl(var(--deep-pink))]"}),e]},n))}),v.jsx("p",{className:"text-gray-400 text-xs mt-4 mx-auto",children:"Fórmula cosmética de uso tópico. Uso externo."})]}),v.jsx("div",{className:"grid sm:grid-cols-2 gap-6",children:[{title:"Age na Raiz",desc:"Atua diretamente na raiz da hiperpigmentação, onde as manchas se formam."},{title:"Regula a Melanina",desc:"Auxilia na redução da produção excessiva de melanina, prevenindo novas manchas."},{title:"Uniformiza o Tom",desc:"Ajuda a uniformizar o tom da pele de forma gradual e segura, sem agredir."},{title:"Ilumina a Pele",desc:"Contribui para uma aparência mais iluminada, homogênea e saudável."}].map((e,n)=>v.jsx(be.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:n*.1},className:"bg-white p-6 rounded-2xl shadow-md border border-pink-100",children:v.jsxs("div",{className:"flex items-start gap-4",children:[v.jsx("div",{className:"w-10 h-10 rounded-full bg-pink-100 flex items-center justify-center flex-shrink-0 mt-1",children:v.jsx(Oo,{className:"w-5 h-5 text-[hsl(var(--deep-pink))]"})}),v.jsxs("div",{children:[v.jsx("h3",{className:"font-bold text-gray-900 text-lg mb-1",children:e.title}),v.jsx("p",{className:"text-gray-600 leading-relaxed",children:e.desc})]})]})},n))})]})}),v.jsx(jj,{}),v.jsx("section",{className:"py-16 bg-white",children:v.jsx("div",{className:"max-w-3xl mx-auto px-4 sm:px-6 lg:px-8",children:v.jsxs(be.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-gradient-to-r from-[hsl(var(--deep-pink))] to-[hsl(var(--primary-pink))] rounded-2xl p-8 sm:p-10 text-white text-center shadow-xl","data-testid":"section-payment-reassurance",children:[v.jsx(mn,{className:"w-12 h-12 mx-auto mb-4 opacity-90"}),v.jsx("h3",{className:"text-2xl sm:text-3xl font-display font-bold mb-4",children:"Como Funciona o Pagamento na Entrega?"}),v.jsx("p",{className:"text-lg text-pink-50 mb-6 max-w-xl mx-auto leading-relaxed",children:"Primeiro você recebe o Aurora Pink no seu endereço. Depois, realiza o pagamento diretamente ao entregador."}),v.jsxs("div",{className:"flex flex-wrap justify-center gap-4",children:[v.jsx("span",{className:"bg-white/20 backdrop-blur-sm px-4 py-2 rounded-full text-sm font-bold",children:"Sem risco"}),v.jsx("span",{className:"bg-white/20 backdrop-blur-sm px-4 py-2 rounded-full text-sm font-bold",children:"Sem pagamento antecipado"}),v.jsx("span",{className:"bg-white/20 backdrop-blur-sm px-4 py-2 rounded-full text-sm font-bold",children:"Compra 100% segura"})]})]})})}),v.jsx("section",{id:"benefits",className:"py-24 bg-gradient-to-br from-[hsl(var(--deep-pink))] to-[hsl(var(--primary-pink))] text-white",children:v.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[v.jsxs("div",{className:"text-center mb-16",children:[v.jsx("h2",{className:"text-4xl font-display font-bold mb-6",children:"Por que tantas pessoas estão escolhendo o Aurora Pink?"}),v.jsx("p",{className:"text-pink-100 max-w-2xl mx-auto text-lg",children:"Cada vez mais pessoas estão buscando soluções práticas para recuperar a autoestima e conquistar uma pele mais uniforme sem complicações."})]}),v.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:[{title:"Confiança Renovada",desc:"Saia de casa sem maquiagem pesada. Recupere a autoestima que as manchas tiraram de você."},{title:"Resultados Visíveis",desc:"Milhares de clientes perceberam melhora visível já nos primeiros dias de uso contínuo."},{title:"Fórmula Exclusiva",desc:"Complexo Clareador Tripla-Ação que você não encontra em nenhum outro produto do mercado."}].map((e,n)=>v.jsxs(be.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:n*.1},className:"bg-white/10 backdrop-blur-sm border border-white/20 p-8 rounded-2xl hover:bg-white/20 transition-colors",children:[v.jsx("h3",{className:"text-2xl font-bold font-display mb-4",children:e.title}),v.jsx("p",{className:"text-pink-50 leading-relaxed",children:e.desc})]},n))})]})}),v.jsx(dc,{className:"py-12 bg-white",text:"Quero recuperar minha confiança"}),v.jsx("section",{className:"py-20 bg-white",children:v.jsx("div",{className:"max-w-3xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:v.jsxs(be.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[v.jsxs("h2",{className:"text-3xl lg:text-4xl font-display font-bold text-gray-900 mb-6",children:["Quantas vezes você evitou levantar os braços ou usar aquela roupa que ",v.jsx("span",{className:"text-[hsl(var(--deep-pink))]",children:"gosta"}),"?"]}),v.jsx("p",{className:"text-lg text-gray-600 leading-relaxed max-w-2xl mx-auto",children:"Manchas escuras podem afetar mais do que a pele — podem afetar sua confiança. Muitas mulheres deixam de usar regatas, biquínis ou roupas mais curtas por insegurança. O Aurora Pink foi pensado para ajudar você a recuperar essa liberdade."})]})})}),v.jsx("section",{className:"py-20 bg-[hsl(var(--soft-pink))]",children:v.jsx("div",{className:"max-w-3xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:v.jsxs(be.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[v.jsxs("h2",{className:"text-3xl lg:text-4xl font-display font-bold text-gray-900 mb-6",children:["Se você já tentou outros produtos e ",v.jsx("span",{className:"text-[hsl(var(--deep-pink))]",children:"não teve resultado"}),"..."]}),v.jsx("p",{className:"text-lg text-gray-600 leading-relaxed max-w-2xl mx-auto",children:"Muitas pessoas já investiram em soluções que prometiam clareamento rápido, mas não entregaram consistência. O diferencial do Aurora Pink está na aplicação contínua e na proposta de uniformização progressiva da pele."})]})})}),v.jsx("section",{className:"py-20 bg-white",children:v.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:[v.jsxs(be.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12",children:[v.jsxs("h2",{className:"text-4xl font-display font-bold text-gray-900 mb-4",children:["Para quem o Aurora Pink é ",v.jsx("span",{className:"text-[hsl(var(--deep-pink))]",children:"indicado"}),"?"]}),v.jsx("div",{className:"h-1 w-24 bg-[hsl(var(--primary-pink))] mx-auto rounded-full"})]}),v.jsx("div",{className:"grid sm:grid-cols-2 gap-5 max-w-3xl mx-auto",children:[{text:"Mulheres com manchas escuras nas axilas, virilha e joelhos"},{text:"Pele com tom irregular ou escurecimento por atrito"},{text:"Quem busca uma alternativa prática para usar em casa"},{text:"Quem já tentou outros produtos sem resultado consistente"},{text:"Quem deseja recuperar a autoestima e se sentir confiante"},{text:"Mulheres 45+ que querem cuidar da pele de forma simples"}].map((e,n)=>v.jsxs(be.div,{initial:{opacity:0,x:n%2===0?-20:20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:n*.08},className:"flex items-center gap-3 p-4 bg-[hsl(var(--soft-pink))] rounded-xl border border-pink-100","data-testid":`para-quem-${n}`,children:[v.jsx("div",{className:"w-8 h-8 rounded-full bg-white flex items-center justify-center flex-shrink-0 shadow-sm",children:v.jsx(Kv,{className:"w-4 h-4 text-[hsl(var(--deep-pink))]"})}),v.jsx("p",{className:"text-gray-700 font-medium",children:e.text})]},n))})]})}),v.jsx("section",{className:"py-12 bg-[hsl(var(--soft-pink))]",children:v.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:v.jsxs(be.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"flex flex-col sm:flex-row items-center justify-center gap-8 sm:gap-12",children:[v.jsxs("div",{className:"flex items-center gap-3","data-testid":"trust-clients",children:[v.jsx(OP,{className:"w-10 h-10 text-[hsl(var(--deep-pink))]"}),v.jsxs("div",{children:[v.jsx("p",{className:"text-2xl font-display font-bold text-gray-900",children:"5.000+"}),v.jsx("p",{className:"text-sm text-gray-500",children:"Mulheres já experimentaram no Estado de São Paulo"})]})]}),v.jsx("div",{className:"hidden sm:block w-px h-12 bg-pink-200"}),v.jsxs("div",{className:"flex items-center gap-3","data-testid":"trust-approved",children:[v.jsx(wP,{className:"w-10 h-10 text-[hsl(var(--deep-pink))]"}),v.jsxs("div",{children:[v.jsx("p",{className:"text-lg font-bold text-gray-900",children:"Produto Testado e Aprovado"}),v.jsx("p",{className:"text-sm text-gray-500",children:"Por milhares de mulheres reais"})]})]})]})})}),v.jsx(Mj,{}),v.jsx(dc,{className:"py-12 bg-white",text:"Quero eliminar minhas manchas agora"}),v.jsx("section",{className:"py-20 bg-[hsl(var(--soft-pink))]",children:v.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:[v.jsxs(be.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-10",children:[v.jsxs("h2",{className:"text-4xl font-display font-bold text-gray-900 mb-4",children:["Quem está por trás do ",v.jsx("span",{className:"text-[hsl(var(--deep-pink))]",children:"Aurora Pink"}),"?"]}),v.jsx("div",{className:"h-1 w-24 bg-[hsl(var(--primary-pink))] mx-auto rounded-full"})]}),v.jsxs(be.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-white rounded-2xl shadow-xl p-8 sm:p-10 flex flex-col sm:flex-row items-center gap-8","data-testid":"section-personal-authority",children:[v.jsx("div",{className:"w-32 h-32 rounded-full overflow-hidden border-4 border-pink-100 shadow-lg flex-shrink-0",children:v.jsx("img",{src:Jg,alt:"Fundador Aurora Pink",className:"w-full h-full object-cover"})}),v.jsxs("div",{className:"text-center sm:text-left",children:[v.jsx("p",{className:"text-lg text-gray-700 leading-relaxed mb-4",children:"Meu compromisso é entregar um produto sério e de qualidade para cada cliente. Acredito que a confiança se constrói com transparência, por isso ofereço atendimento direto via WhatsApp, envio rápido com foco em São Paulo e pagamento somente na entrega."}),v.jsx("p",{className:"text-lg text-gray-700 leading-relaxed mb-4",children:"Estou disponível para tirar qualquer dúvida antes ou depois da sua compra. Aqui você é tratada com respeito e atenção — não é apenas mais um número."}),v.jsxs("div",{className:"flex flex-wrap gap-3 justify-center sm:justify-start",children:[v.jsxs("span",{className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full bg-pink-50 border border-pink-200 text-sm text-gray-700",children:[v.jsx(Jo,{className:"w-3.5 h-3.5 text-green-600"}),"Atendimento via WhatsApp"]}),v.jsxs("span",{className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full bg-pink-50 border border-pink-200 text-sm text-gray-700",children:[v.jsx(TP,{className:"w-3.5 h-3.5 text-[hsl(var(--deep-pink))]"}),"Foco em São Paulo"]}),v.jsxs("span",{className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full bg-pink-50 border border-pink-200 text-sm text-gray-700",children:[v.jsx(Kr,{className:"w-3.5 h-3.5 text-[hsl(var(--deep-pink))]"}),"Transparência total"]})]})]})]})]})}),v.jsx("section",{className:"py-20 bg-white",children:v.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:[v.jsxs("div",{className:"text-center mb-12",children:[v.jsxs(be.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-4xl font-display font-bold text-gray-900 mb-4",children:["Entrega segura e ",v.jsx("span",{className:"text-[hsl(var(--deep-pink))]",children:"suporte garantido"})]}),v.jsx("p",{className:"text-gray-600 max-w-2xl mx-auto",children:"Sua compra é protegida do início ao fim. Confira como funciona:"}),v.jsx("div",{className:"h-1 w-24 bg-[hsl(var(--primary-pink))] mx-auto rounded-full mt-4"})]}),v.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-6",children:[{icon:v.jsx(mn,{className:"w-8 h-8 text-[hsl(var(--deep-pink))]"}),title:"Entrega Rápida em SP",desc:"Entrega rápida em todo o estado de São Paulo com código de rastreamento."},{icon:v.jsx(jP,{className:"w-8 h-8 text-[hsl(var(--deep-pink))]"}),title:"Pagamento na Entrega",desc:"Você só paga quando o produto estiver nas suas mãos. Sem pagamento antecipado."},{icon:v.jsx(Jo,{className:"w-8 h-8 text-[hsl(var(--deep-pink))]"}),title:"Atendimento via WhatsApp",desc:"Suporte humano e direto via WhatsApp para tirar qualquer dúvida."},{icon:v.jsx(bP,{className:"w-8 h-8 text-[hsl(var(--deep-pink))]"}),title:"Suporte Antes e Depois",desc:"Equipe disponível para ajudar antes e depois da sua compra."},{icon:v.jsx(kP,{className:"w-8 h-8 text-[hsl(var(--deep-pink))]"}),title:"Compra Protegida",desc:"Seus dados são protegidos. Compra segura com total privacidade."},{icon:v.jsx(Kr,{className:"w-8 h-8 text-[hsl(var(--deep-pink))]"}),title:"Exclusivo para São Paulo",desc:"Disponível exclusivamente para o Estado de São Paulo com rastreamento completo."}].map((e,n)=>v.jsxs(be.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:n*.1},className:"text-center p-6 rounded-2xl bg-[hsl(var(--soft-pink))] border border-pink-100",children:[v.jsx("div",{className:"w-14 h-14 rounded-xl bg-white flex items-center justify-center shadow-sm mx-auto mb-4",children:e.icon}),v.jsx("h4",{className:"font-bold text-gray-900 mb-2",children:e.title}),v.jsx("p",{className:"text-sm text-gray-600 leading-relaxed",children:e.desc})]},n))})]})}),v.jsx(dc,{className:"py-12 bg-[hsl(var(--soft-pink))]",text:"Quero meu Aurora Pink agora"}),v.jsx("section",{id:"faq",className:"py-24 bg-[hsl(var(--soft-pink))]",children:v.jsxs("div",{className:"max-w-3xl mx-auto px-4 sm:px-6 lg:px-8",children:[v.jsxs("div",{className:"text-center mb-14",children:[v.jsxs(be.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-4xl font-display font-bold text-gray-900 mb-4",children:["Dúvidas ",v.jsx("span",{className:"text-[hsl(var(--deep-pink))]",children:"Frequentes"})]}),v.jsx("div",{className:"h-1 w-24 bg-[hsl(var(--primary-pink))] mx-auto rounded-full"})]}),v.jsxs(be.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"space-y-4",children:[v.jsx(hn,{question:"Funciona para pele morena?",answer:"Sim! O Aurora Pink foi desenvolvido para funcionar em todos os tons de pele, incluindo peles morenas e negras. A fórmula é suave e respeita as características de cada tipo de pele, atuando especificamente nas manchas sem descolorir a pele saudável ao redor."}),v.jsx(hn,{question:"Funciona para melasma antigo?",answer:"Muitas das nossas clientes relatam melhora visível mesmo em manchas antigas e de melasma. A fórmula age na causa da hiperpigmentação, auxiliando na uniformização gradual do tom da pele. Para manchas mais profundas, recomendamos uso contínuo para melhores resultados."}),v.jsx(hn,{question:"Quanto tempo normalmente as pessoas começam a perceber mudanças?",answer:"Cada pele responde de forma diferente, mas grande parte das nossas clientes relata perceber melhora visível já nos primeiros dias de uso contínuo. Para resultados mais expressivos, recomendamos manter a aplicação diária por pelo menos 2 a 4 semanas."}),v.jsx(hn,{question:"Posso usar durante o dia?",answer:"Sim! A fórmula leve do Aurora Pink tem absorção rápida e não deixa a pele oleosa ou pegajosa. Pode ser aplicado tanto de manhã quanto à noite, se integrando facilmente à sua rotina diária de cuidados com a pele."}),v.jsx(hn,{question:"O pagamento é realmente na entrega?",answer:"Sim, é 100% verdade! Você não precisa pagar nada agora. Nós enviamos o Aurora Pink para o seu endereço e você realiza o pagamento somente quando o produto estiver nas suas mãos. Sem cartão de crédito, sem cadastro complicado. É assim que trabalhamos: com total transparência e confiança."}),v.jsx(hn,{question:"Como funciona o envio?",answer:"Assim que seu pedido é confirmado, enviamos o produto com rastreamento para todo o Estado de São Paulo. Capital e região metropolitana recebem em 1 a 3 dias úteis, interior em até 5 dias úteis, com prazo máximo de 7 dias úteis. Você receberá o código de rastreamento para acompanhar cada etapa da entrega."}),v.jsx(hn,{question:"Em quanto tempo posso perceber resultados?",answer:"Os resultados variam de pessoa para pessoa, mas com uso contínuo é possível notar melhora gradual na uniformidade da pele."}),v.jsx(hn,{question:"Pode ser usado em pele sensível?",answer:"Recomendamos sempre realizar um teste de sensibilidade antes do uso. Em caso de irritação, suspenda e procure orientação profissional."}),v.jsx(hn,{question:"Pode ser usado diariamente?",answer:"Sim, o uso contínuo conforme orientado potencializa os resultados."})]})]})}),v.jsxs("section",{id:"offer",className:"py-24 bg-white relative overflow-hidden",children:[v.jsx("div",{className:"absolute inset-0 bg-[url('https://www.transparenttextures.com/patterns/cubes.png')] opacity-10"}),v.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10",children:v.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[v.jsx("span",{className:"inline-block px-4 py-2 rounded-full bg-red-100 text-red-600 font-bold text-sm tracking-wide mb-6",children:"ESTOQUE LIMITADO PARA SÃO PAULO"}),v.jsxs("h2",{className:"text-5xl font-display font-bold text-gray-900 mb-6",children:["Aproveite Antes que ",v.jsx("br",{}),v.jsx("span",{className:"text-[hsl(var(--deep-pink))]",children:"Esgote"})]}),v.jsx("p",{className:"text-xl text-gray-600 mb-10",children:"Você só paga quando o produto estiver nas suas mãos. Sem risco nenhum."}),v.jsxs("div",{className:"bg-white rounded-2xl shadow-xl border border-pink-100 p-8 mb-10 relative",children:[v.jsx("div",{className:"absolute -top-4 left-1/2 -translate-x-1/2",children:v.jsx("span",{className:"inline-block px-5 py-1.5 rounded-full bg-[hsl(var(--deep-pink))] text-white font-bold text-sm tracking-wide shadow-md",children:"ECONOMIZE R$120,00"})}),v.jsxs("div",{className:"flex flex-col items-center gap-2 mt-4 mb-6",children:[v.jsx("span",{className:"text-gray-400 text-lg line-through","data-testid":"text-original-price",children:"De R$249,90"}),v.jsxs("div",{className:"flex items-baseline gap-2",children:[v.jsx("span",{className:"text-sm font-semibold text-gray-600",children:"Por apenas"}),v.jsx("span",{className:"text-6xl font-display font-bold text-[hsl(var(--deep-pink))]","data-testid":"text-promo-price",children:"R$129,90"})]}),v.jsx("span",{className:"text-sm text-gray-500",children:"ou em até 12x no cartão"})]}),v.jsx("p",{className:"text-amber-700 bg-amber-50 border border-amber-200 rounded-lg px-4 py-2 text-sm font-medium mb-6","data-testid":"text-urgency",children:"Devido à alta demanda, pode ocorrer indisponibilidade temporária."}),v.jsx("a",{href:"https://app.coinzz.com.br/checkout/aurora-p1kxd-0",target:"_blank",rel:"noopener noreferrer",className:"block",onClick:()=>{typeof window<"u"&&window.fbq&&window.fbq("track","InitiateCheckout",{content_name:"Aurora Pink",value:129.9,currency:"BRL"})},children:v.jsxs(xn,{size:"lg",className:"w-full h-16 px-12 text-xl rounded-full bg-[hsl(var(--deep-pink))] hover:bg-[hsl(var(--primary-pink))] shadow-lg shadow-pink-300 hover:shadow-xl hover:-translate-y-1 transition-all duration-300","data-testid":"button-offer-cta",children:[v.jsx(mn,{className:"mr-3 h-6 w-6"}),"Quero eliminar minhas manchas agora"]})}),v.jsx("p",{className:"mt-3 text-sm text-gray-500",children:"Ambiente seguro • Dados protegidos • Suporte disponível"}),v.jsx("p",{className:"mt-1 text-xs text-gray-400",children:"Pagamento processado com segurança. Seus dados são protegidos."}),v.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-4 mt-4","data-testid":"trust-badges-offer",children:[v.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-gray-500",children:[v.jsx(mn,{className:"w-3.5 h-3.5 text-[hsl(var(--deep-pink))]"}),v.jsx("span",{children:"Pagamento na Entrega"})]}),v.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-gray-500",children:[v.jsx(Qc,{className:"w-3.5 h-3.5 text-[hsl(var(--deep-pink))]"}),v.jsx("span",{children:"Envio Rápido"})]}),v.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-gray-500",children:[v.jsx(Kr,{className:"w-3.5 h-3.5 text-[hsl(var(--deep-pink))]"}),v.jsx("span",{children:"Compra 100% Segura"})]})]})]}),v.jsxs("div",{className:"flex flex-col sm:flex-row justify-center gap-6",children:[v.jsxs("div",{className:"flex items-center p-4 bg-white rounded-xl shadow-sm border border-pink-100",children:[v.jsx(Kr,{className:"w-10 h-10 text-[hsl(var(--deep-pink))] mr-4 flex-shrink-0"}),v.jsxs("div",{className:"text-left",children:[v.jsx("h4",{className:"font-bold text-gray-900",children:"Garantia de Satisfação"}),v.jsx("p",{className:"text-sm text-gray-500",children:"Se você não ficar satisfeita, entre em contato com nosso suporte. Trabalhamos com total compromisso e transparência com nossas clientes."})]})]}),v.jsxs("div",{className:"flex items-center p-4 bg-white rounded-xl shadow-sm border border-pink-100",children:[v.jsx(mn,{className:"w-10 h-10 text-[hsl(var(--deep-pink))] mr-4 flex-shrink-0"}),v.jsxs("div",{className:"text-left",children:[v.jsx("h4",{className:"font-bold text-gray-900",children:"Entrega com Rastreamento"}),v.jsx("p",{className:"text-sm text-gray-500",children:"Disponível exclusivamente para o Estado de São Paulo."})]})]})]})]})})]}),v.jsx("section",{className:"py-20 bg-white",children:v.jsx("div",{className:"max-w-3xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:v.jsxs(be.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[v.jsxs("h2",{className:"text-3xl lg:text-4xl font-display font-bold text-gray-900 mb-8",children:["Por que comprar ",v.jsx("span",{className:"text-[hsl(var(--deep-pink))]",children:"hoje"}),"?"]}),v.jsx("div",{className:"grid sm:grid-cols-2 gap-4 max-w-xl mx-auto text-left",children:["Alta procura pelo produto","Lotes limitados por reposição","Quanto antes iniciar, antes perceberá evolução","Pagamento seguro e prático"].map((e,n)=>v.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-xl bg-[hsl(var(--soft-pink))] border border-pink-100",children:[v.jsx(Oo,{className:"w-5 h-5 text-[hsl(var(--deep-pink))] flex-shrink-0"}),v.jsx("span",{className:"text-gray-700 font-medium text-sm",children:e})]},n))})]})})}),v.jsx("section",{className:"py-20 bg-[hsl(var(--soft-pink))]",children:v.jsx("div",{className:"max-w-3xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:v.jsxs(be.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[v.jsxs("h2",{className:"text-3xl lg:text-4xl font-display font-bold text-gray-900 mb-6",children:["Quanto mais você adia, mais tempo convive com a ",v.jsx("span",{className:"text-[hsl(var(--deep-pink))]",children:"insegurança"}),"."]}),v.jsx("p",{className:"text-lg text-gray-600 mb-8 leading-relaxed max-w-2xl mx-auto",children:"A escolha é simples: continuar como está ou começar hoje seu processo de uniformização da pele."}),v.jsx("a",{href:"https://app.coinzz.com.br/checkout/aurora-p1kxd-0",target:"_blank",rel:"noopener noreferrer",onClick:()=>{typeof window<"u"&&window.fbq&&window.fbq("track","InitiateCheckout",{content_name:"Aurora Pink",value:129.9,currency:"BRL"})},children:v.jsxs(xn,{size:"lg",className:"h-14 px-8 text-lg rounded-full bg-[hsl(var(--deep-pink))] hover:bg-[hsl(var(--primary-pink))] shadow-lg shadow-pink-300 hover:shadow-xl hover:-translate-y-1 transition-all duration-300",children:[v.jsx(mn,{className:"mr-2 h-5 w-5"}),"Finalizar minha compra agora"]})}),v.jsx("p",{className:"mt-4 text-sm text-gray-500",children:"Ambiente seguro • Dados protegidos • Suporte disponível"})]})})})]}),v.jsx("section",{className:"py-16 bg-gradient-to-b from-white to-[hsl(var(--soft-pink))]",children:v.jsx("div",{className:"max-w-3xl mx-auto px-4 sm:px-6 lg:px-8",children:v.jsx(be.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"bg-white rounded-2xl shadow-xl border border-pink-100 p-8 sm:p-10",children:v.jsxs("div",{className:"flex flex-col sm:flex-row items-center gap-6 sm:gap-8",children:[v.jsxs("div",{className:"relative flex-shrink-0",children:[v.jsx("img",{src:Jg,alt:"Embaixador Oficial Aurora Pink",className:"w-28 h-28 sm:w-32 sm:h-32 rounded-full object-cover border-4 border-[hsl(var(--deep-pink))] shadow-lg","data-testid":"img-ambassador"}),v.jsx("span",{className:"absolute -bottom-2 left-1/2 -translate-x-1/2 whitespace-nowrap px-3 py-1 rounded-full bg-[hsl(var(--deep-pink))] text-white text-xs font-bold shadow-md",children:"Embaixador Oficial"})]}),v.jsxs("div",{className:"text-center sm:text-left flex-1",children:[v.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Tem alguma dúvida?"}),v.jsx("p",{className:"text-gray-600 mb-2",children:"Fale direto comigo, embaixador oficial do Aurora Pink."}),v.jsx("p",{className:"text-gray-600 mb-5",children:"Estou disponível para tirar suas dúvidas e te ajudar a fazer o pedido com total segurança. Sem compromisso."}),v.jsx("a",{href:"https://wa.me/5511945796678?text=Ol%C3%A1!%20Gostaria%20de%20saber%20mais%20sobre%20o%20Aurora%20Pink.",target:"_blank",rel:"noopener noreferrer","data-testid":"link-whatsapp",onClick:()=>{typeof window<"u"&&window.fbq&&window.fbq("track","Contact",{content_name:"WhatsApp Aurora Pink"})},children:v.jsxs(xn,{size:"lg",className:"h-12 px-6 text-base rounded-full bg-green-500 hover:bg-green-600 shadow-md hover:shadow-lg transition-all duration-300",children:[v.jsx(Jo,{className:"mr-2 h-5 w-5"}),"Chamar no WhatsApp"]})}),v.jsx("p",{className:"mt-3 text-sm text-gray-400",children:"(11) 94579-6678"})]})]})})})}),v.jsx("footer",{className:"bg-gray-900 text-white py-12 border-t border-gray-800",children:v.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[v.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center gap-8",children:[v.jsxs("div",{className:"text-center md:text-left",children:[v.jsx("span",{className:"font-display text-2xl font-bold text-white mb-2 block",children:"Aurora Pink"}),v.jsx("p",{className:"text-gray-400 text-sm",children:"Sua pele merece esse cuidado especial."})]}),v.jsxs("div",{className:"flex flex-col items-center md:items-end gap-2",children:[v.jsxs("a",{href:"mailto:contato@aurorapink.com.br",className:"flex items-center text-gray-300 hover:text-white transition-colors",children:[v.jsx(EP,{className:"w-4 h-4 mr-2"}),"contato@aurorapink.com.br"]}),v.jsx("span",{className:"text-gray-500 text-sm",children:"Política de Atendimento e Segurança Garantida"})]})]}),v.jsxs("div",{className:"mt-12 pt-8 border-t border-gray-800 text-center text-gray-600 text-sm",children:["© ",new Date().getFullYear()," Aurora Pink. Todos os direitos reservados."]})]})}),v.jsx(ca.Link,{to:"features",smooth:!0,className:"fixed bottom-8 right-8 z-40 bg-[hsl(var(--deep-pink))] text-white p-3 rounded-full shadow-lg cursor-pointer hover:bg-[hsl(var(--primary-pink))] transition-all hover:-translate-y-1",children:v.jsx(xP,{size:24})})]})}function Lj(){return v.jsxs(W1,{children:[v.jsx(Yh,{path:"/",component:Dj}),v.jsx(Yh,{component:Kk})]})}function Ij(){return v.jsx(hS,{client:vS,children:v.jsxs(Bk,{children:[v.jsx(mb,{}),v.jsx(Lj,{})]})})}w1.createRoot(document.getElementById("root")).render(v.jsx(Ij,{}));
