@stackloop/ui 4.0.6 → 4.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -0
- package/dist/Table.d.ts +5 -1
- package/dist/Tooltip.d.ts +19 -0
- package/dist/assets/index-DHBqG65w.js +17 -0
- package/dist/assets/index-Z5A9fp3I.css +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.html +2 -2
- package/dist/index.js +1771 -1566
- package/dist/index.js.map +1 -1
- package/dist/stackloop-ui.css +1 -1
- package/package.json +1 -1
- package/dist/assets/index-ClujkPIe.js +0 -17
- package/dist/assets/index-dTMgJbB4.css +0 -1
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))o(d);new MutationObserver(d=>{for(const m of d)if(m.type==="childList")for(const f of m.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function l(d){const m={};return d.integrity&&(m.integrity=d.integrity),d.referrerPolicy&&(m.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?m.credentials="include":d.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function o(d){if(d.ep)return;d.ep=!0;const m=l(d);fetch(d.href,m)}})();function Jx(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var hc={exports:{}},Zs={};var Zp;function Px(){if(Zp)return Zs;Zp=1;var a=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function l(o,d,m){var f=null;if(m!==void 0&&(f=""+m),d.key!==void 0&&(f=""+d.key),"key"in d){m={};for(var g in d)g!=="key"&&(m[g]=d[g])}else m=d;return d=m.ref,{$$typeof:a,type:o,key:f,ref:d!==void 0?d:null,props:m}}return Zs.Fragment=s,Zs.jsx=l,Zs.jsxs=l,Zs}var Jp;function Fx(){return Jp||(Jp=1,hc.exports=Px()),hc.exports}var c=Fx(),pc={exports:{}},xe={};var Pp;function Wx(){if(Pp)return xe;Pp=1;var a=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),f=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),S=Symbol.iterator;function T(w){return w===null||typeof w!="object"?null:(w=S&&w[S]||w["@@iterator"],typeof w=="function"?w:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,k={};function z(w,H,I){this.props=w,this.context=H,this.refs=k,this.updater=I||D}z.prototype.isReactComponent={},z.prototype.setState=function(w,H){if(typeof w!="object"&&typeof w!="function"&&w!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,w,H,"setState")},z.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function X(){}X.prototype=z.prototype;function Y(w,H,I){this.props=w,this.context=H,this.refs=k,this.updater=I||D}var W=Y.prototype=new X;W.constructor=Y,R(W,z.prototype),W.isPureReactComponent=!0;var Z=Array.isArray;function P(){}var K={H:null,A:null,T:null,S:null},O=Object.prototype.hasOwnProperty;function te(w,H,I){var ae=I.ref;return{$$typeof:a,type:w,key:H,ref:ae!==void 0?ae:null,props:I}}function F(w,H){return te(w.type,H,w.props)}function ne(w){return typeof w=="object"&&w!==null&&w.$$typeof===a}function de(w){var H={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(I){return H[I]})}var Re=/\/+/g;function ve(w,H){return typeof w=="object"&&w!==null&&w.key!=null?de(""+w.key):H.toString(36)}function ee(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(P,P):(w.status="pending",w.then(function(H){w.status==="pending"&&(w.status="fulfilled",w.value=H)},function(H){w.status==="pending"&&(w.status="rejected",w.reason=H)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function E(w,H,I,ae,me){var re=typeof w;(re==="undefined"||re==="boolean")&&(w=null);var he=!1;if(w===null)he=!0;else switch(re){case"bigint":case"string":case"number":he=!0;break;case"object":switch(w.$$typeof){case a:case s:he=!0;break;case b:return he=w._init,E(he(w._payload),H,I,ae,me)}}if(he)return me=me(w),he=ae===""?"."+ve(w,0):ae,Z(me)?(I="",he!=null&&(I=he.replace(Re,"$&/")+"/"),E(me,H,I,"",function(Qt){return Qt})):me!=null&&(ne(me)&&(me=F(me,I+(me.key==null||w&&w.key===me.key?"":(""+me.key).replace(Re,"$&/")+"/")+he)),H.push(me)),1;he=0;var Je=ae===""?".":ae+":";if(Z(w))for(var _e=0;_e<w.length;_e++)ae=w[_e],re=Je+ve(ae,_e),he+=E(ae,H,I,re,me);else if(_e=T(w),typeof _e=="function")for(w=_e.call(w),_e=0;!(ae=w.next()).done;)ae=ae.value,re=Je+ve(ae,_e++),he+=E(ae,H,I,re,me);else if(re==="object"){if(typeof w.then=="function")return E(ee(w),H,I,ae,me);throw H=String(w),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return he}function U(w,H,I){if(w==null)return w;var ae=[],me=0;return E(w,ae,"","",function(re){return H.call(I,re,me++)}),ae}function M(w){if(w._status===-1){var H=w._result;H=H(),H.then(function(I){(w._status===0||w._status===-1)&&(w._status=1,w._result=I)},function(I){(w._status===0||w._status===-1)&&(w._status=2,w._result=I)}),w._status===-1&&(w._status=0,w._result=H)}if(w._status===1)return w._result.default;throw w._result}var se=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)},ye={map:U,forEach:function(w,H,I){U(w,function(){H.apply(this,arguments)},I)},count:function(w){var H=0;return U(w,function(){H++}),H},toArray:function(w){return U(w,function(H){return H})||[]},only:function(w){if(!ne(w))throw Error("React.Children.only expected to receive a single React element child.");return w}};return xe.Activity=x,xe.Children=ye,xe.Component=z,xe.Fragment=l,xe.Profiler=d,xe.PureComponent=Y,xe.StrictMode=o,xe.Suspense=y,xe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,xe.__COMPILER_RUNTIME={__proto__:null,c:function(w){return K.H.useMemoCache(w)}},xe.cache=function(w){return function(){return w.apply(null,arguments)}},xe.cacheSignal=function(){return null},xe.cloneElement=function(w,H,I){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var ae=R({},w.props),me=w.key;if(H!=null)for(re in H.key!==void 0&&(me=""+H.key),H)!O.call(H,re)||re==="key"||re==="__self"||re==="__source"||re==="ref"&&H.ref===void 0||(ae[re]=H[re]);var re=arguments.length-2;if(re===1)ae.children=I;else if(1<re){for(var he=Array(re),Je=0;Je<re;Je++)he[Je]=arguments[Je+2];ae.children=he}return te(w.type,me,ae)},xe.createContext=function(w){return w={$$typeof:f,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:m,_context:w},w},xe.createElement=function(w,H,I){var ae,me={},re=null;if(H!=null)for(ae in H.key!==void 0&&(re=""+H.key),H)O.call(H,ae)&&ae!=="key"&&ae!=="__self"&&ae!=="__source"&&(me[ae]=H[ae]);var he=arguments.length-2;if(he===1)me.children=I;else if(1<he){for(var Je=Array(he),_e=0;_e<he;_e++)Je[_e]=arguments[_e+2];me.children=Je}if(w&&w.defaultProps)for(ae in he=w.defaultProps,he)me[ae]===void 0&&(me[ae]=he[ae]);return te(w,re,me)},xe.createRef=function(){return{current:null}},xe.forwardRef=function(w){return{$$typeof:g,render:w}},xe.isValidElement=ne,xe.lazy=function(w){return{$$typeof:b,_payload:{_status:-1,_result:w},_init:M}},xe.memo=function(w,H){return{$$typeof:p,type:w,compare:H===void 0?null:H}},xe.startTransition=function(w){var H=K.T,I={};K.T=I;try{var ae=w(),me=K.S;me!==null&&me(I,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&ae.then(P,se)}catch(re){se(re)}finally{H!==null&&I.types!==null&&(H.types=I.types),K.T=H}},xe.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},xe.use=function(w){return K.H.use(w)},xe.useActionState=function(w,H,I){return K.H.useActionState(w,H,I)},xe.useCallback=function(w,H){return K.H.useCallback(w,H)},xe.useContext=function(w){return K.H.useContext(w)},xe.useDebugValue=function(){},xe.useDeferredValue=function(w,H){return K.H.useDeferredValue(w,H)},xe.useEffect=function(w,H){return K.H.useEffect(w,H)},xe.useEffectEvent=function(w){return K.H.useEffectEvent(w)},xe.useId=function(){return K.H.useId()},xe.useImperativeHandle=function(w,H,I){return K.H.useImperativeHandle(w,H,I)},xe.useInsertionEffect=function(w,H){return K.H.useInsertionEffect(w,H)},xe.useLayoutEffect=function(w,H){return K.H.useLayoutEffect(w,H)},xe.useMemo=function(w,H){return K.H.useMemo(w,H)},xe.useOptimistic=function(w,H){return K.H.useOptimistic(w,H)},xe.useReducer=function(w,H,I){return K.H.useReducer(w,H,I)},xe.useRef=function(w){return K.H.useRef(w)},xe.useState=function(w){return K.H.useState(w)},xe.useSyncExternalStore=function(w,H,I){return K.H.useSyncExternalStore(w,H,I)},xe.useTransition=function(){return K.H.useTransition()},xe.version="19.2.1",xe}var Fp;function fd(){return Fp||(Fp=1,pc.exports=Wx()),pc.exports}var N=fd();const md=Jx(N);var yc={exports:{}},Js={},gc={exports:{}},bc={};var Wp;function $x(){return Wp||(Wp=1,(function(a){function s(E,U){var M=E.length;E.push(U);e:for(;0<M;){var se=M-1>>>1,ye=E[se];if(0<d(ye,U))E[se]=U,E[M]=ye,M=se;else break e}}function l(E){return E.length===0?null:E[0]}function o(E){if(E.length===0)return null;var U=E[0],M=E.pop();if(M!==U){E[0]=M;e:for(var se=0,ye=E.length,w=ye>>>1;se<w;){var H=2*(se+1)-1,I=E[H],ae=H+1,me=E[ae];if(0>d(I,M))ae<ye&&0>d(me,I)?(E[se]=me,E[ae]=M,se=ae):(E[se]=I,E[H]=M,se=H);else if(ae<ye&&0>d(me,M))E[se]=me,E[ae]=M,se=ae;else break e}}return U}function d(E,U){var M=E.sortIndex-U.sortIndex;return M!==0?M:E.id-U.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;a.unstable_now=function(){return m.now()}}else{var f=Date,g=f.now();a.unstable_now=function(){return f.now()-g}}var y=[],p=[],b=1,x=null,S=3,T=!1,D=!1,R=!1,k=!1,z=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;function W(E){for(var U=l(p);U!==null;){if(U.callback===null)o(p);else if(U.startTime<=E)o(p),U.sortIndex=U.expirationTime,s(y,U);else break;U=l(p)}}function Z(E){if(R=!1,W(E),!D)if(l(y)!==null)D=!0,P||(P=!0,de());else{var U=l(p);U!==null&&ee(Z,U.startTime-E)}}var P=!1,K=-1,O=5,te=-1;function F(){return k?!0:!(a.unstable_now()-te<O)}function ne(){if(k=!1,P){var E=a.unstable_now();te=E;var U=!0;try{e:{D=!1,R&&(R=!1,X(K),K=-1),T=!0;var M=S;try{t:{for(W(E),x=l(y);x!==null&&!(x.expirationTime>E&&F());){var se=x.callback;if(typeof se=="function"){x.callback=null,S=x.priorityLevel;var ye=se(x.expirationTime<=E);if(E=a.unstable_now(),typeof ye=="function"){x.callback=ye,W(E),U=!0;break t}x===l(y)&&o(y),W(E)}else o(y);x=l(y)}if(x!==null)U=!0;else{var w=l(p);w!==null&&ee(Z,w.startTime-E),U=!1}}break e}finally{x=null,S=M,T=!1}U=void 0}}finally{U?de():P=!1}}}var de;if(typeof Y=="function")de=function(){Y(ne)};else if(typeof MessageChannel<"u"){var Re=new MessageChannel,ve=Re.port2;Re.port1.onmessage=ne,de=function(){ve.postMessage(null)}}else de=function(){z(ne,0)};function ee(E,U){K=z(function(){E(a.unstable_now())},U)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(E){E.callback=null},a.unstable_forceFrameRate=function(E){0>E||125<E?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<E?Math.floor(1e3/E):5},a.unstable_getCurrentPriorityLevel=function(){return S},a.unstable_next=function(E){switch(S){case 1:case 2:case 3:var U=3;break;default:U=S}var M=S;S=U;try{return E()}finally{S=M}},a.unstable_requestPaint=function(){k=!0},a.unstable_runWithPriority=function(E,U){switch(E){case 1:case 2:case 3:case 4:case 5:break;default:E=3}var M=S;S=E;try{return U()}finally{S=M}},a.unstable_scheduleCallback=function(E,U,M){var se=a.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0<M?se+M:se):M=se,E){case 1:var ye=-1;break;case 2:ye=250;break;case 5:ye=1073741823;break;case 4:ye=1e4;break;default:ye=5e3}return ye=M+ye,E={id:b++,callback:U,priorityLevel:E,startTime:M,expirationTime:ye,sortIndex:-1},M>se?(E.sortIndex=M,s(p,E),l(y)===null&&E===l(p)&&(R?(X(K),K=-1):R=!0,ee(Z,M-se))):(E.sortIndex=ye,s(y,E),D||T||(D=!0,P||(P=!0,de()))),E},a.unstable_shouldYield=F,a.unstable_wrapCallback=function(E){var U=S;return function(){var M=S;S=U;try{return E.apply(this,arguments)}finally{S=M}}}})(bc)),bc}var $p;function Ix(){return $p||($p=1,gc.exports=$x()),gc.exports}var vc={exports:{}},gt={};var Ip;function e1(){if(Ip)return gt;Ip=1;var a=fd();function s(y){var p="https://react.dev/errors/"+y;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)p+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+y+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var o={d:{f:l,r:function(){throw Error(s(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},d=Symbol.for("react.portal");function m(y,p,b){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:x==null?null:""+x,children:y,containerInfo:p,implementation:b}}var f=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(y,p){if(y==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return gt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,gt.createPortal=function(y,p){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(s(299));return m(y,p,null,b)},gt.flushSync=function(y){var p=f.T,b=o.p;try{if(f.T=null,o.p=2,y)return y()}finally{f.T=p,o.p=b,o.d.f()}},gt.preconnect=function(y,p){typeof y=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(y,p))},gt.prefetchDNS=function(y){typeof y=="string"&&o.d.D(y)},gt.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var b=p.as,x=g(b,p.crossOrigin),S=typeof p.integrity=="string"?p.integrity:void 0,T=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;b==="style"?o.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:x,integrity:S,fetchPriority:T}):b==="script"&&o.d.X(y,{crossOrigin:x,integrity:S,fetchPriority:T,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},gt.preinitModule=function(y,p){if(typeof y=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var b=g(p.as,p.crossOrigin);o.d.M(y,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(y)},gt.preload=function(y,p){if(typeof y=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var b=p.as,x=g(b,p.crossOrigin);o.d.L(y,b,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},gt.preloadModule=function(y,p){if(typeof y=="string")if(p){var b=g(p.as,p.crossOrigin);o.d.m(y,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(y)},gt.requestFormReset=function(y){o.d.r(y)},gt.unstable_batchedUpdates=function(y,p){return y(p)},gt.useFormState=function(y,p,b){return f.H.useFormState(y,p,b)},gt.useFormStatus=function(){return f.H.useHostTransitionStatus()},gt.version="19.2.1",gt}var ey;function Tg(){if(ey)return vc.exports;ey=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(s){console.error(s)}}return a(),vc.exports=e1(),vc.exports}var ty;function t1(){if(ty)return Js;ty=1;var a=Ix(),s=fd(),l=Tg();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function f(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(m(e)!==e)throw Error(o(188))}function p(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(o(188));return t!==e?null:e}for(var n=e,i=t;;){var r=n.return;if(r===null)break;var u=r.alternate;if(u===null){if(i=r.return,i!==null){n=i;continue}break}if(r.child===u.child){for(u=r.child;u;){if(u===n)return y(r),e;if(u===i)return y(r),t;u=u.sibling}throw Error(o(188))}if(n.return!==i.return)n=r,i=u;else{for(var h=!1,v=r.child;v;){if(v===n){h=!0,n=r,i=u;break}if(v===i){h=!0,i=r,n=u;break}v=v.sibling}if(!h){for(v=u.child;v;){if(v===n){h=!0,n=u,i=r;break}if(v===i){h=!0,i=u,n=r;break}v=v.sibling}if(!h)throw Error(o(189))}}if(n.alternate!==i)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var x=Object.assign,S=Symbol.for("react.element"),T=Symbol.for("react.transitional.element"),D=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),te=Symbol.for("react.activity"),F=Symbol.for("react.memo_cache_sentinel"),ne=Symbol.iterator;function de(e){return e===null||typeof e!="object"?null:(e=ne&&e[ne]||e["@@iterator"],typeof e=="function"?e:null)}var Re=Symbol.for("react.client.reference");function ve(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Re?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case R:return"Fragment";case z:return"Profiler";case k:return"StrictMode";case Z:return"Suspense";case P:return"SuspenseList";case te:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case D:return"Portal";case Y:return e.displayName||"Context";case X:return(e._context.displayName||"Context")+".Consumer";case W:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case K:return t=e.displayName||null,t!==null?t:ve(e.type)||"Memo";case O:t=e._payload,e=e._init;try{return ve(e(t))}catch{}}return null}var ee=Array.isArray,E=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M={pending:!1,data:null,method:null,action:null},se=[],ye=-1;function w(e){return{current:e}}function H(e){0>ye||(e.current=se[ye],se[ye]=null,ye--)}function I(e,t){ye++,se[ye]=e.current,e.current=t}var ae=w(null),me=w(null),re=w(null),he=w(null);function Je(e,t){switch(I(re,t),I(me,e),I(ae,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?yp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=yp(t),e=gp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}H(ae),I(ae,e)}function _e(){H(ae),H(me),H(re)}function Qt(e){e.memoizedState!==null&&I(he,e);var t=ae.current,n=gp(t,e.type);t!==n&&(I(me,e),I(ae,n))}function un(e){me.current===e&&(H(ae),H(me)),he.current===e&&(H(he),qs._currentValue=M)}var st,jn;function gn(e){if(st===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);st=t&&t[1]||"",jn=-1<n.stack.indexOf(`
|
|
2
|
-
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+st+e+jn}var es=!1;function Ia(e,t){if(!e||es)return"";es=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(L){var B=L}Reflect.construct(e,[],Q)}else{try{Q.call()}catch(L){B=L}e.call(Q.prototype)}}else{try{throw Error()}catch(L){B=L}(Q=e())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(L){if(L&&B&&typeof L.stack=="string")return[L.stack,B.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=i.DetermineComponentFrameRoot(),h=u[0],v=u[1];if(h&&v){var C=h.split(`
|
|
4
|
-
`),_=v.split(`
|
|
5
|
-
`);for(r=i=0;i<C.length&&!C[i].includes("DetermineComponentFrameRoot");)i++;for(;r<_.length&&!_[r].includes("DetermineComponentFrameRoot");)r++;if(i===C.length||r===_.length)for(i=C.length-1,r=_.length-1;1<=i&&0<=r&&C[i]!==_[r];)r--;for(;1<=i&&0<=r;i--,r--)if(C[i]!==_[r]){if(i!==1||r!==1)do if(i--,r--,0>r||C[i]!==_[r]){var G=`
|
|
6
|
-
`+C[i].replace(" at new "," at ");return e.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",e.displayName)),G}while(1<=i&&0<=r);break}}}finally{es=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?gn(n):""}function fl(e,t){switch(e.tag){case 26:case 27:case 5:return gn(e.type);case 16:return gn("Lazy");case 13:return e.child!==t&&t!==null?gn("Suspense Fallback"):gn("Suspense");case 19:return gn("SuspenseList");case 0:case 15:return Ia(e.type,!1);case 11:return Ia(e.type.render,!1);case 1:return Ia(e.type,!0);case 31:return gn("Activity");default:return""}}function ei(e){try{var t="",n=null;do t+=fl(e,n),n=e,e=e.return;while(e);return t}catch(i){return`
|
|
7
|
-
Error generating stack: `+i.message+`
|
|
8
|
-
`+i.stack}}var $=Object.prototype.hasOwnProperty,ge=a.unstable_scheduleCallback,Ne=a.unstable_cancelCallback,cn=a.unstable_shouldYield,jt=a.unstable_requestPaint,Tt=a.unstable_now,tr=a.unstable_getCurrentPriorityLevel,ti=a.unstable_ImmediatePriority,Tn=a.unstable_UserBlockingPriority,ml=a.unstable_NormalPriority,Eb=a.unstable_LowPriority,Pd=a.unstable_IdlePriority,Db=a.log,zb=a.unstable_setDisableYieldValue,ts=null,kt=null;function Pn(e){if(typeof Db=="function"&&zb(e),kt&&typeof kt.setStrictMode=="function")try{kt.setStrictMode(ts,e)}catch{}}var Bt=Math.clz32?Math.clz32:Vb,Rb=Math.log,Ob=Math.LN2;function Vb(e){return e>>>=0,e===0?32:31-(Rb(e)/Ob|0)|0}var hl=256,pl=262144,yl=4194304;function Na(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function gl(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var r=0,u=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var v=i&134217727;return v!==0?(i=v&~u,i!==0?r=Na(i):(h&=v,h!==0?r=Na(h):n||(n=v&~e,n!==0&&(r=Na(n))))):(v=i&~u,v!==0?r=Na(v):h!==0?r=Na(h):n||(n=i&~e,n!==0&&(r=Na(n)))),r===0?0:t!==0&&t!==r&&(t&u)===0&&(u=r&-r,n=t&-t,u>=n||u===32&&(n&4194048)!==0)?t:r}function ns(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function _b(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Fd(){var e=yl;return yl<<=1,(yl&62914560)===0&&(yl=4194304),e}function nr(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function as(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function kb(e,t,n,i,r,u){var h=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var v=e.entanglements,C=e.expirationTimes,_=e.hiddenUpdates;for(n=h&~n;0<n;){var G=31-Bt(n),Q=1<<G;v[G]=0,C[G]=-1;var B=_[G];if(B!==null)for(_[G]=null,G=0;G<B.length;G++){var L=B[G];L!==null&&(L.lane&=-536870913)}n&=~Q}i!==0&&Wd(e,i,0),u!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=u&~(h&~t))}function Wd(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Bt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&261930}function $d(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-Bt(n),r=1<<i;r&t|e[i]&t&&(e[i]|=t),n&=~r}}function Id(e,t){var n=t&-t;return n=(n&42)!==0?1:ar(n),(n&(e.suspendedLanes|t))!==0?0:n}function ar(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ir(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ef(){var e=U.p;return e!==0?e:(e=window.event,e===void 0?32:Hp(e.type))}function tf(e,t){var n=U.p;try{return U.p=e,t()}finally{U.p=n}}var Fn=Math.random().toString(36).slice(2),dt="__reactFiber$"+Fn,Mt="__reactProps$"+Fn,ni="__reactContainer$"+Fn,sr="__reactEvents$"+Fn,Bb="__reactListeners$"+Fn,Lb="__reactHandles$"+Fn,nf="__reactResources$"+Fn,is="__reactMarker$"+Fn;function lr(e){delete e[dt],delete e[Mt],delete e[sr],delete e[Bb],delete e[Lb]}function ai(e){var t=e[dt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ni]||n[dt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=jp(e);e!==null;){if(n=e[dt])return n;e=jp(e)}return t}e=n,n=e.parentNode}return null}function ii(e){if(e=e[dt]||e[ni]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ss(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function si(e){var t=e[nf];return t||(t=e[nf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ut(e){e[is]=!0}var af=new Set,sf={};function Aa(e,t){li(e,t),li(e+"Capture",t)}function li(e,t){for(sf[e]=t,e=0;e<t.length;e++)af.add(t[e])}var Ub=RegExp("^[: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]*$"),lf={},of={};function Hb(e){return $.call(of,e)?!0:$.call(lf,e)?!1:Ub.test(e)?of[e]=!0:(lf[e]=!0,!1)}function bl(e,t,n){if(Hb(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function vl(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Nn(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+i)}}function Zt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function rf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Gb(e,t,n){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var r=i.get,u=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(h){n=""+h,u.call(this,h)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function or(e){if(!e._valueTracker){var t=rf(e)?"checked":"value";e._valueTracker=Gb(e,t,""+e[t])}}function uf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=rf(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function xl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Yb=/[\n"\\]/g;function Jt(e){return e.replace(Yb,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function rr(e,t,n,i,r,u,h,v){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Zt(t)):e.value!==""+Zt(t)&&(e.value=""+Zt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?ur(e,h,Zt(t)):n!=null?ur(e,h,Zt(n)):i!=null&&e.removeAttribute("value"),r==null&&u!=null&&(e.defaultChecked=!!u),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+Zt(v):e.removeAttribute("name")}function cf(e,t,n,i,r,u,h,v){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){or(e);return}n=n!=null?""+Zt(n):"",t=t!=null?""+Zt(t):n,v||t===e.value||(e.value=t),e.defaultValue=t}i=i??r,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=v?e.checked:!!i,e.defaultChecked=!!i,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),or(e)}function ur(e,t,n){t==="number"&&xl(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function oi(e,t,n,i){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&i&&(e[n].defaultSelected=!0)}else{for(n=""+Zt(n),t=null,r=0;r<e.length;r++){if(e[r].value===n){e[r].selected=!0,i&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function df(e,t,n){if(t!=null&&(t=""+Zt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Zt(n):""}function ff(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(o(92));if(ee(i)){if(1<i.length)throw Error(o(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=Zt(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i),or(e)}function ri(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var qb=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function mf(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||qb.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function hf(e,t,n){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var r in t)i=t[r],t.hasOwnProperty(r)&&n[r]!==i&&mf(e,r,i)}else for(var u in t)t.hasOwnProperty(u)&&mf(e,u,t[u])}function cr(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Xb=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Kb=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Sl(e){return Kb.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function An(){}var dr=null;function fr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ui=null,ci=null;function pf(e){var t=ii(e);if(t&&(e=t.stateNode)){var n=e[Mt]||null;e:switch(e=t.stateNode,t.type){case"input":if(rr(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Jt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var r=i[Mt]||null;if(!r)throw Error(o(90));rr(i,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&uf(i)}break e;case"textarea":df(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&oi(e,!!n.multiple,t,!1)}}}var mr=!1;function yf(e,t,n){if(mr)return e(t,n);mr=!0;try{var i=e(t);return i}finally{if(mr=!1,(ui!==null||ci!==null)&&(ro(),ui&&(t=ui,e=ci,ci=ui=null,pf(t),e)))for(t=0;t<e.length;t++)pf(e[t])}}function ls(e,t){var n=e.stateNode;if(n===null)return null;var i=n[Mt]||null;if(i===null)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(o(231,t,typeof n));return n}var Mn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hr=!1;if(Mn)try{var os={};Object.defineProperty(os,"passive",{get:function(){hr=!0}}),window.addEventListener("test",os,os),window.removeEventListener("test",os,os)}catch{hr=!1}var Wn=null,pr=null,Cl=null;function gf(){if(Cl)return Cl;var e,t=pr,n=t.length,i,r="value"in Wn?Wn.value:Wn.textContent,u=r.length;for(e=0;e<n&&t[e]===r[e];e++);var h=n-e;for(i=1;i<=h&&t[n-i]===r[u-i];i++);return Cl=r.slice(e,1<i?1-i:void 0)}function wl(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function jl(){return!0}function bf(){return!1}function Et(e){function t(n,i,r,u,h){this._reactName=n,this._targetInst=r,this.type=i,this.nativeEvent=u,this.target=h,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(n=e[v],this[v]=n?n(u):u[v]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?jl:bf,this.isPropagationStopped=bf,this}return x(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=jl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=jl)},persist:function(){},isPersistent:jl}),t}var Ma={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tl=Et(Ma),rs=x({},Ma,{view:0,detail:0}),Qb=Et(rs),yr,gr,us,Nl=x({},rs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vr,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==us&&(us&&e.type==="mousemove"?(yr=e.screenX-us.screenX,gr=e.screenY-us.screenY):gr=yr=0,us=e),yr)},movementY:function(e){return"movementY"in e?e.movementY:gr}}),vf=Et(Nl),Zb=x({},Nl,{dataTransfer:0}),Jb=Et(Zb),Pb=x({},rs,{relatedTarget:0}),br=Et(Pb),Fb=x({},Ma,{animationName:0,elapsedTime:0,pseudoElement:0}),Wb=Et(Fb),$b=x({},Ma,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ib=Et($b),ev=x({},Ma,{data:0}),xf=Et(ev),tv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},nv={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"},av={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function iv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=av[e])?!!t[e]:!1}function vr(){return iv}var sv=x({},rs,{key:function(e){if(e.key){var t=tv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=wl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?nv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vr,charCode:function(e){return e.type==="keypress"?wl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?wl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),lv=Et(sv),ov=x({},Nl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Sf=Et(ov),rv=x({},rs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vr}),uv=Et(rv),cv=x({},Ma,{propertyName:0,elapsedTime:0,pseudoElement:0}),dv=Et(cv),fv=x({},Nl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),mv=Et(fv),hv=x({},Ma,{newState:0,oldState:0}),pv=Et(hv),yv=[9,13,27,32],xr=Mn&&"CompositionEvent"in window,cs=null;Mn&&"documentMode"in document&&(cs=document.documentMode);var gv=Mn&&"TextEvent"in window&&!cs,Cf=Mn&&(!xr||cs&&8<cs&&11>=cs),wf=" ",jf=!1;function Tf(e,t){switch(e){case"keyup":return yv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Nf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var di=!1;function bv(e,t){switch(e){case"compositionend":return Nf(t);case"keypress":return t.which!==32?null:(jf=!0,wf);case"textInput":return e=t.data,e===wf&&jf?null:e;default:return null}}function vv(e,t){if(di)return e==="compositionend"||!xr&&Tf(e,t)?(e=gf(),Cl=pr=Wn=null,di=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Cf&&t.locale!=="ko"?null:t.data;default:return null}}var xv={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 Af(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!xv[e.type]:t==="textarea"}function Mf(e,t,n,i){ui?ci?ci.push(i):ci=[i]:ui=i,t=yo(t,"onChange"),0<t.length&&(n=new Tl("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var ds=null,fs=null;function Sv(e){cp(e,0)}function Al(e){var t=ss(e);if(uf(t))return e}function Ef(e,t){if(e==="change")return t}var Df=!1;if(Mn){var Sr;if(Mn){var Cr="oninput"in document;if(!Cr){var zf=document.createElement("div");zf.setAttribute("oninput","return;"),Cr=typeof zf.oninput=="function"}Sr=Cr}else Sr=!1;Df=Sr&&(!document.documentMode||9<document.documentMode)}function Rf(){ds&&(ds.detachEvent("onpropertychange",Of),fs=ds=null)}function Of(e){if(e.propertyName==="value"&&Al(fs)){var t=[];Mf(t,fs,e,fr(e)),yf(Sv,t)}}function Cv(e,t,n){e==="focusin"?(Rf(),ds=t,fs=n,ds.attachEvent("onpropertychange",Of)):e==="focusout"&&Rf()}function wv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Al(fs)}function jv(e,t){if(e==="click")return Al(t)}function Tv(e,t){if(e==="input"||e==="change")return Al(t)}function Nv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Lt=typeof Object.is=="function"?Object.is:Nv;function ms(e,t){if(Lt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var r=n[i];if(!$.call(t,r)||!Lt(e[r],t[r]))return!1}return!0}function Vf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function _f(e,t){var n=Vf(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Vf(n)}}function kf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Bf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=xl(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=xl(e.document)}return t}function wr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Av=Mn&&"documentMode"in document&&11>=document.documentMode,fi=null,jr=null,hs=null,Tr=!1;function Lf(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Tr||fi==null||fi!==xl(i)||(i=fi,"selectionStart"in i&&wr(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),hs&&ms(hs,i)||(hs=i,i=yo(jr,"onSelect"),0<i.length&&(t=new Tl("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=fi)))}function Ea(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var mi={animationend:Ea("Animation","AnimationEnd"),animationiteration:Ea("Animation","AnimationIteration"),animationstart:Ea("Animation","AnimationStart"),transitionrun:Ea("Transition","TransitionRun"),transitionstart:Ea("Transition","TransitionStart"),transitioncancel:Ea("Transition","TransitionCancel"),transitionend:Ea("Transition","TransitionEnd")},Nr={},Uf={};Mn&&(Uf=document.createElement("div").style,"AnimationEvent"in window||(delete mi.animationend.animation,delete mi.animationiteration.animation,delete mi.animationstart.animation),"TransitionEvent"in window||delete mi.transitionend.transition);function Da(e){if(Nr[e])return Nr[e];if(!mi[e])return e;var t=mi[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Uf)return Nr[e]=t[n];return e}var Hf=Da("animationend"),Gf=Da("animationiteration"),Yf=Da("animationstart"),Mv=Da("transitionrun"),Ev=Da("transitionstart"),Dv=Da("transitioncancel"),qf=Da("transitionend"),Xf=new Map,Ar="abort auxClick beforeToggle 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(" ");Ar.push("scrollEnd");function dn(e,t){Xf.set(e,t),Aa(t,[e])}var Ml=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Pt=[],hi=0,Mr=0;function El(){for(var e=hi,t=Mr=hi=0;t<e;){var n=Pt[t];Pt[t++]=null;var i=Pt[t];Pt[t++]=null;var r=Pt[t];Pt[t++]=null;var u=Pt[t];if(Pt[t++]=null,i!==null&&r!==null){var h=i.pending;h===null?r.next=r:(r.next=h.next,h.next=r),i.pending=r}u!==0&&Kf(n,r,u)}}function Dl(e,t,n,i){Pt[hi++]=e,Pt[hi++]=t,Pt[hi++]=n,Pt[hi++]=i,Mr|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Er(e,t,n,i){return Dl(e,t,n,i),zl(e)}function za(e,t){return Dl(e,null,null,t),zl(e)}function Kf(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var r=!1,u=e.return;u!==null;)u.childLanes|=n,i=u.alternate,i!==null&&(i.childLanes|=n),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(r=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,r&&t!==null&&(r=31-Bt(n),e=u.hiddenUpdates,i=e[r],i===null?e[r]=[t]:i.push(t),t.lane=n|536870912),u):null}function zl(e){if(50<ks)throw ks=0,Lu=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var pi={};function zv(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ut(e,t,n,i){return new zv(e,t,n,i)}function Dr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function En(e,t){var n=e.alternate;return n===null?(n=Ut(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Qf(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Rl(e,t,n,i,r,u){var h=0;if(i=e,typeof e=="function")Dr(e)&&(h=1);else if(typeof e=="string")h=kx(e,n,ae.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case te:return e=Ut(31,n,t,r),e.elementType=te,e.lanes=u,e;case R:return Ra(n.children,r,u,t);case k:h=8,r|=24;break;case z:return e=Ut(12,n,t,r|2),e.elementType=z,e.lanes=u,e;case Z:return e=Ut(13,n,t,r),e.elementType=Z,e.lanes=u,e;case P:return e=Ut(19,n,t,r),e.elementType=P,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Y:h=10;break e;case X:h=9;break e;case W:h=11;break e;case K:h=14;break e;case O:h=16,i=null;break e}h=29,n=Error(o(130,e===null?"null":typeof e,"")),i=null}return t=Ut(h,n,t,r),t.elementType=e,t.type=i,t.lanes=u,t}function Ra(e,t,n,i){return e=Ut(7,e,i,t),e.lanes=n,e}function zr(e,t,n){return e=Ut(6,e,null,t),e.lanes=n,e}function Zf(e){var t=Ut(18,null,null,0);return t.stateNode=e,t}function Rr(e,t,n){return t=Ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Jf=new WeakMap;function Ft(e,t){if(typeof e=="object"&&e!==null){var n=Jf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:ei(t)},Jf.set(e,t),t)}return{value:e,source:t,stack:ei(t)}}var yi=[],gi=0,Ol=null,ps=0,Wt=[],$t=0,$n=null,bn=1,vn="";function Dn(e,t){yi[gi++]=ps,yi[gi++]=Ol,Ol=e,ps=t}function Pf(e,t,n){Wt[$t++]=bn,Wt[$t++]=vn,Wt[$t++]=$n,$n=e;var i=bn;e=vn;var r=32-Bt(i)-1;i&=~(1<<r),n+=1;var u=32-Bt(t)+r;if(30<u){var h=r-r%5;u=(i&(1<<h)-1).toString(32),i>>=h,r-=h,bn=1<<32-Bt(t)+r|n<<r|i,vn=u+e}else bn=1<<u|n<<r|i,vn=e}function Or(e){e.return!==null&&(Dn(e,1),Pf(e,1,0))}function Vr(e){for(;e===Ol;)Ol=yi[--gi],yi[gi]=null,ps=yi[--gi],yi[gi]=null;for(;e===$n;)$n=Wt[--$t],Wt[$t]=null,vn=Wt[--$t],Wt[$t]=null,bn=Wt[--$t],Wt[$t]=null}function Ff(e,t){Wt[$t++]=bn,Wt[$t++]=vn,Wt[$t++]=$n,bn=t.id,vn=t.overflow,$n=e}var ft=null,Ye=null,Ee=!1,In=null,It=!1,_r=Error(o(519));function ea(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ys(Ft(t,e)),_r}function Wf(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[dt]=e,t[Mt]=i,n){case"dialog":Te("cancel",t),Te("close",t);break;case"iframe":case"object":case"embed":Te("load",t);break;case"video":case"audio":for(n=0;n<Ls.length;n++)Te(Ls[n],t);break;case"source":Te("error",t);break;case"img":case"image":case"link":Te("error",t),Te("load",t);break;case"details":Te("toggle",t);break;case"input":Te("invalid",t),cf(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":Te("invalid",t);break;case"textarea":Te("invalid",t),ff(t,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||hp(t.textContent,n)?(i.popover!=null&&(Te("beforetoggle",t),Te("toggle",t)),i.onScroll!=null&&Te("scroll",t),i.onScrollEnd!=null&&Te("scrollend",t),i.onClick!=null&&(t.onclick=An),t=!0):t=!1,t||ea(e,!0)}function $f(e){for(ft=e.return;ft;)switch(ft.tag){case 5:case 31:case 13:It=!1;return;case 27:case 3:It=!0;return;default:ft=ft.return}}function bi(e){if(e!==ft)return!1;if(!Ee)return $f(e),Ee=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Iu(e.type,e.memoizedProps)),n=!n),n&&Ye&&ea(e),$f(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ye=wp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ye=wp(e)}else t===27?(t=Ye,ha(e.type)?(e=ic,ic=null,Ye=e):Ye=t):Ye=ft?tn(e.stateNode.nextSibling):null;return!0}function Oa(){Ye=ft=null,Ee=!1}function kr(){var e=In;return e!==null&&(Ot===null?Ot=e:Ot.push.apply(Ot,e),In=null),e}function ys(e){In===null?In=[e]:In.push(e)}var Br=w(null),Va=null,zn=null;function ta(e,t,n){I(Br,t._currentValue),t._currentValue=n}function Rn(e){e._currentValue=Br.current,H(Br)}function Lr(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function Ur(e,t,n,i){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var u=r.dependencies;if(u!==null){var h=r.child;u=u.firstContext;e:for(;u!==null;){var v=u;u=r;for(var C=0;C<t.length;C++)if(v.context===t[C]){u.lanes|=n,v=u.alternate,v!==null&&(v.lanes|=n),Lr(u.return,n,e),i||(h=null);break e}u=v.next}}else if(r.tag===18){if(h=r.return,h===null)throw Error(o(341));h.lanes|=n,u=h.alternate,u!==null&&(u.lanes|=n),Lr(h,n,e),h=null}else h=r.child;if(h!==null)h.return=r;else for(h=r;h!==null;){if(h===e){h=null;break}if(r=h.sibling,r!==null){r.return=h.return,h=r;break}h=h.return}r=h}}function vi(e,t,n,i){e=null;for(var r=t,u=!1;r!==null;){if(!u){if((r.flags&524288)!==0)u=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var h=r.alternate;if(h===null)throw Error(o(387));if(h=h.memoizedProps,h!==null){var v=r.type;Lt(r.pendingProps.value,h.value)||(e!==null?e.push(v):e=[v])}}else if(r===he.current){if(h=r.alternate,h===null)throw Error(o(387));h.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(qs):e=[qs])}r=r.return}e!==null&&Ur(t,e,n,i),t.flags|=262144}function Vl(e){for(e=e.firstContext;e!==null;){if(!Lt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function _a(e){Va=e,zn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function mt(e){return If(Va,e)}function _l(e,t){return Va===null&&_a(e),If(e,t)}function If(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},zn===null){if(e===null)throw Error(o(308));zn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else zn=zn.next=t;return n}var Rv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Ov=a.unstable_scheduleCallback,Vv=a.unstable_NormalPriority,et={$$typeof:Y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Hr(){return{controller:new Rv,data:new Map,refCount:0}}function gs(e){e.refCount--,e.refCount===0&&Ov(Vv,function(){e.controller.abort()})}var bs=null,Gr=0,xi=0,Si=null;function _v(e,t){if(bs===null){var n=bs=[];Gr=0,xi=Xu(),Si={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Gr++,t.then(em,em),t}function em(){if(--Gr===0&&bs!==null){Si!==null&&(Si.status="fulfilled");var e=bs;bs=null,xi=0,Si=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function kv(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(r){n.push(r)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var r=0;r<n.length;r++)(0,n[r])(t)},function(r){for(i.status="rejected",i.reason=r,r=0;r<n.length;r++)(0,n[r])(void 0)}),i}var tm=E.S;E.S=function(e,t){Lh=Tt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&_v(e,t),tm!==null&&tm(e,t)};var ka=w(null);function Yr(){var e=ka.current;return e!==null?e:Ge.pooledCache}function kl(e,t){t===null?I(ka,ka.current):I(ka,t.pool)}function nm(){var e=Yr();return e===null?null:{parent:et._currentValue,pool:e}}var Ci=Error(o(460)),qr=Error(o(474)),Bl=Error(o(542)),Ll={then:function(){}};function am(e){return e=e.status,e==="fulfilled"||e==="rejected"}function im(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(An,An),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,lm(e),e;default:if(typeof t.status=="string")t.then(An,An);else{if(e=Ge,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=i}},function(i){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,lm(e),e}throw La=t,Ci}}function Ba(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(La=n,Ci):n}}var La=null;function sm(){if(La===null)throw Error(o(459));var e=La;return La=null,e}function lm(e){if(e===Ci||e===Bl)throw Error(o(483))}var wi=null,vs=0;function Ul(e){var t=vs;return vs+=1,wi===null&&(wi=[]),im(wi,e,t)}function xs(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Hl(e,t){throw t.$$typeof===S?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function om(e){function t(A,j){if(e){var V=A.deletions;V===null?(A.deletions=[j],A.flags|=16):V.push(j)}}function n(A,j){if(!e)return null;for(;j!==null;)t(A,j),j=j.sibling;return null}function i(A){for(var j=new Map;A!==null;)A.key!==null?j.set(A.key,A):j.set(A.index,A),A=A.sibling;return j}function r(A,j){return A=En(A,j),A.index=0,A.sibling=null,A}function u(A,j,V){return A.index=V,e?(V=A.alternate,V!==null?(V=V.index,V<j?(A.flags|=67108866,j):V):(A.flags|=67108866,j)):(A.flags|=1048576,j)}function h(A){return e&&A.alternate===null&&(A.flags|=67108866),A}function v(A,j,V,q){return j===null||j.tag!==6?(j=zr(V,A.mode,q),j.return=A,j):(j=r(j,V),j.return=A,j)}function C(A,j,V,q){var fe=V.type;return fe===R?G(A,j,V.props.children,q,V.key):j!==null&&(j.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===O&&Ba(fe)===j.type)?(j=r(j,V.props),xs(j,V),j.return=A,j):(j=Rl(V.type,V.key,V.props,null,A.mode,q),xs(j,V),j.return=A,j)}function _(A,j,V,q){return j===null||j.tag!==4||j.stateNode.containerInfo!==V.containerInfo||j.stateNode.implementation!==V.implementation?(j=Rr(V,A.mode,q),j.return=A,j):(j=r(j,V.children||[]),j.return=A,j)}function G(A,j,V,q,fe){return j===null||j.tag!==7?(j=Ra(V,A.mode,q,fe),j.return=A,j):(j=r(j,V),j.return=A,j)}function Q(A,j,V){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=zr(""+j,A.mode,V),j.return=A,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case T:return V=Rl(j.type,j.key,j.props,null,A.mode,V),xs(V,j),V.return=A,V;case D:return j=Rr(j,A.mode,V),j.return=A,j;case O:return j=Ba(j),Q(A,j,V)}if(ee(j)||de(j))return j=Ra(j,A.mode,V,null),j.return=A,j;if(typeof j.then=="function")return Q(A,Ul(j),V);if(j.$$typeof===Y)return Q(A,_l(A,j),V);Hl(A,j)}return null}function B(A,j,V,q){var fe=j!==null?j.key:null;if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return fe!==null?null:v(A,j,""+V,q);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case T:return V.key===fe?C(A,j,V,q):null;case D:return V.key===fe?_(A,j,V,q):null;case O:return V=Ba(V),B(A,j,V,q)}if(ee(V)||de(V))return fe!==null?null:G(A,j,V,q,null);if(typeof V.then=="function")return B(A,j,Ul(V),q);if(V.$$typeof===Y)return B(A,j,_l(A,V),q);Hl(A,V)}return null}function L(A,j,V,q,fe){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return A=A.get(V)||null,v(j,A,""+q,fe);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case T:return A=A.get(q.key===null?V:q.key)||null,C(j,A,q,fe);case D:return A=A.get(q.key===null?V:q.key)||null,_(j,A,q,fe);case O:return q=Ba(q),L(A,j,V,q,fe)}if(ee(q)||de(q))return A=A.get(V)||null,G(j,A,q,fe,null);if(typeof q.then=="function")return L(A,j,V,Ul(q),fe);if(q.$$typeof===Y)return L(A,j,V,_l(j,q),fe);Hl(j,q)}return null}function ie(A,j,V,q){for(var fe=null,De=null,ue=j,Ce=j=0,Me=null;ue!==null&&Ce<V.length;Ce++){ue.index>Ce?(Me=ue,ue=null):Me=ue.sibling;var ze=B(A,ue,V[Ce],q);if(ze===null){ue===null&&(ue=Me);break}e&&ue&&ze.alternate===null&&t(A,ue),j=u(ze,j,Ce),De===null?fe=ze:De.sibling=ze,De=ze,ue=Me}if(Ce===V.length)return n(A,ue),Ee&&Dn(A,Ce),fe;if(ue===null){for(;Ce<V.length;Ce++)ue=Q(A,V[Ce],q),ue!==null&&(j=u(ue,j,Ce),De===null?fe=ue:De.sibling=ue,De=ue);return Ee&&Dn(A,Ce),fe}for(ue=i(ue);Ce<V.length;Ce++)Me=L(ue,A,Ce,V[Ce],q),Me!==null&&(e&&Me.alternate!==null&&ue.delete(Me.key===null?Ce:Me.key),j=u(Me,j,Ce),De===null?fe=Me:De.sibling=Me,De=Me);return e&&ue.forEach(function(va){return t(A,va)}),Ee&&Dn(A,Ce),fe}function pe(A,j,V,q){if(V==null)throw Error(o(151));for(var fe=null,De=null,ue=j,Ce=j=0,Me=null,ze=V.next();ue!==null&&!ze.done;Ce++,ze=V.next()){ue.index>Ce?(Me=ue,ue=null):Me=ue.sibling;var va=B(A,ue,ze.value,q);if(va===null){ue===null&&(ue=Me);break}e&&ue&&va.alternate===null&&t(A,ue),j=u(va,j,Ce),De===null?fe=va:De.sibling=va,De=va,ue=Me}if(ze.done)return n(A,ue),Ee&&Dn(A,Ce),fe;if(ue===null){for(;!ze.done;Ce++,ze=V.next())ze=Q(A,ze.value,q),ze!==null&&(j=u(ze,j,Ce),De===null?fe=ze:De.sibling=ze,De=ze);return Ee&&Dn(A,Ce),fe}for(ue=i(ue);!ze.done;Ce++,ze=V.next())ze=L(ue,A,Ce,ze.value,q),ze!==null&&(e&&ze.alternate!==null&&ue.delete(ze.key===null?Ce:ze.key),j=u(ze,j,Ce),De===null?fe=ze:De.sibling=ze,De=ze);return e&&ue.forEach(function(Zx){return t(A,Zx)}),Ee&&Dn(A,Ce),fe}function He(A,j,V,q){if(typeof V=="object"&&V!==null&&V.type===R&&V.key===null&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case T:e:{for(var fe=V.key;j!==null;){if(j.key===fe){if(fe=V.type,fe===R){if(j.tag===7){n(A,j.sibling),q=r(j,V.props.children),q.return=A,A=q;break e}}else if(j.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===O&&Ba(fe)===j.type){n(A,j.sibling),q=r(j,V.props),xs(q,V),q.return=A,A=q;break e}n(A,j);break}else t(A,j);j=j.sibling}V.type===R?(q=Ra(V.props.children,A.mode,q,V.key),q.return=A,A=q):(q=Rl(V.type,V.key,V.props,null,A.mode,q),xs(q,V),q.return=A,A=q)}return h(A);case D:e:{for(fe=V.key;j!==null;){if(j.key===fe)if(j.tag===4&&j.stateNode.containerInfo===V.containerInfo&&j.stateNode.implementation===V.implementation){n(A,j.sibling),q=r(j,V.children||[]),q.return=A,A=q;break e}else{n(A,j);break}else t(A,j);j=j.sibling}q=Rr(V,A.mode,q),q.return=A,A=q}return h(A);case O:return V=Ba(V),He(A,j,V,q)}if(ee(V))return ie(A,j,V,q);if(de(V)){if(fe=de(V),typeof fe!="function")throw Error(o(150));return V=fe.call(V),pe(A,j,V,q)}if(typeof V.then=="function")return He(A,j,Ul(V),q);if(V.$$typeof===Y)return He(A,j,_l(A,V),q);Hl(A,V)}return typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint"?(V=""+V,j!==null&&j.tag===6?(n(A,j.sibling),q=r(j,V),q.return=A,A=q):(n(A,j),q=zr(V,A.mode,q),q.return=A,A=q),h(A)):n(A,j)}return function(A,j,V,q){try{vs=0;var fe=He(A,j,V,q);return wi=null,fe}catch(ue){if(ue===Ci||ue===Bl)throw ue;var De=Ut(29,ue,null,A.mode);return De.lanes=q,De.return=A,De}finally{}}}var Ua=om(!0),rm=om(!1),na=!1;function Xr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Kr(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function aa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ia(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Oe&2)!==0){var r=i.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),i.pending=t,t=zl(e),Kf(e,null,n),t}return Dl(e,i,t,n),zl(e)}function Ss(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,$d(e,n)}}function Qr(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var r=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?r=u=h:u=u.next=h,n=n.next}while(n!==null);u===null?r=u=t:u=u.next=t}else r=u=t;n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:u,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Zr=!1;function Cs(){if(Zr){var e=Si;if(e!==null)throw e}}function ws(e,t,n,i){Zr=!1;var r=e.updateQueue;na=!1;var u=r.firstBaseUpdate,h=r.lastBaseUpdate,v=r.shared.pending;if(v!==null){r.shared.pending=null;var C=v,_=C.next;C.next=null,h===null?u=_:h.next=_,h=C;var G=e.alternate;G!==null&&(G=G.updateQueue,v=G.lastBaseUpdate,v!==h&&(v===null?G.firstBaseUpdate=_:v.next=_,G.lastBaseUpdate=C))}if(u!==null){var Q=r.baseState;h=0,G=_=C=null,v=u;do{var B=v.lane&-536870913,L=B!==v.lane;if(L?(Ae&B)===B:(i&B)===B){B!==0&&B===xi&&(Zr=!0),G!==null&&(G=G.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var ie=e,pe=v;B=t;var He=n;switch(pe.tag){case 1:if(ie=pe.payload,typeof ie=="function"){Q=ie.call(He,Q,B);break e}Q=ie;break e;case 3:ie.flags=ie.flags&-65537|128;case 0:if(ie=pe.payload,B=typeof ie=="function"?ie.call(He,Q,B):ie,B==null)break e;Q=x({},Q,B);break e;case 2:na=!0}}B=v.callback,B!==null&&(e.flags|=64,L&&(e.flags|=8192),L=r.callbacks,L===null?r.callbacks=[B]:L.push(B))}else L={lane:B,tag:v.tag,payload:v.payload,callback:v.callback,next:null},G===null?(_=G=L,C=Q):G=G.next=L,h|=B;if(v=v.next,v===null){if(v=r.shared.pending,v===null)break;L=v,v=L.next,L.next=null,r.lastBaseUpdate=L,r.shared.pending=null}}while(!0);G===null&&(C=Q),r.baseState=C,r.firstBaseUpdate=_,r.lastBaseUpdate=G,u===null&&(r.shared.lanes=0),ua|=h,e.lanes=h,e.memoizedState=Q}}function um(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function cm(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)um(n[e],t)}var ji=w(null),Gl=w(0);function dm(e,t){e=Gn,I(Gl,e),I(ji,t),Gn=e|t.baseLanes}function Jr(){I(Gl,Gn),I(ji,ji.current)}function Pr(){Gn=Gl.current,H(ji),H(Gl)}var Ht=w(null),en=null;function sa(e){var t=e.alternate;I($e,$e.current&1),I(Ht,e),en===null&&(t===null||ji.current!==null||t.memoizedState!==null)&&(en=e)}function Fr(e){I($e,$e.current),I(Ht,e),en===null&&(en=e)}function fm(e){e.tag===22?(I($e,$e.current),I(Ht,e),en===null&&(en=e)):la()}function la(){I($e,$e.current),I(Ht,Ht.current)}function Gt(e){H(Ht),en===e&&(en=null),H($e)}var $e=w(0);function Yl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||nc(n)||ac(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var On=0,Se=null,Le=null,tt=null,ql=!1,Ti=!1,Ha=!1,Xl=0,js=0,Ni=null,Bv=0;function Pe(){throw Error(o(321))}function Wr(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Lt(e[n],t[n]))return!1;return!0}function $r(e,t,n,i,r,u){return On=u,Se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,E.H=e===null||e.memoizedState===null?Pm:mu,Ha=!1,u=n(i,r),Ha=!1,Ti&&(u=hm(t,n,i,r)),mm(e),u}function mm(e){E.H=As;var t=Le!==null&&Le.next!==null;if(On=0,tt=Le=Se=null,ql=!1,js=0,Ni=null,t)throw Error(o(300));e===null||nt||(e=e.dependencies,e!==null&&Vl(e)&&(nt=!0))}function hm(e,t,n,i){Se=e;var r=0;do{if(Ti&&(Ni=null),js=0,Ti=!1,25<=r)throw Error(o(301));if(r+=1,tt=Le=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}E.H=Fm,u=t(n,i)}while(Ti);return u}function Lv(){var e=E.H,t=e.useState()[0];return t=typeof t.then=="function"?Ts(t):t,e=e.useState()[0],(Le!==null?Le.memoizedState:null)!==e&&(Se.flags|=1024),t}function Ir(){var e=Xl!==0;return Xl=0,e}function eu(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function tu(e){if(ql){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ql=!1}On=0,tt=Le=Se=null,Ti=!1,js=Xl=0,Ni=null}function Nt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tt===null?Se.memoizedState=tt=e:tt=tt.next=e,tt}function Ie(){if(Le===null){var e=Se.alternate;e=e!==null?e.memoizedState:null}else e=Le.next;var t=tt===null?Se.memoizedState:tt.next;if(t!==null)tt=t,Le=e;else{if(e===null)throw Se.alternate===null?Error(o(467)):Error(o(310));Le=e,e={memoizedState:Le.memoizedState,baseState:Le.baseState,baseQueue:Le.baseQueue,queue:Le.queue,next:null},tt===null?Se.memoizedState=tt=e:tt=tt.next=e}return tt}function Kl(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ts(e){var t=js;return js+=1,Ni===null&&(Ni=[]),e=im(Ni,e,t),t=Se,(tt===null?t.memoizedState:tt.next)===null&&(t=t.alternate,E.H=t===null||t.memoizedState===null?Pm:mu),e}function Ql(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ts(e);if(e.$$typeof===Y)return mt(e)}throw Error(o(438,String(e)))}function nu(e){var t=null,n=Se.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=Se.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Kl(),Se.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=F;return t.index++,n}function Vn(e,t){return typeof t=="function"?t(e):t}function Zl(e){var t=Ie();return au(t,Le,e)}function au(e,t,n){var i=e.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=n;var r=e.baseQueue,u=i.pending;if(u!==null){if(r!==null){var h=r.next;r.next=u.next,u.next=h}t.baseQueue=r=u,i.pending=null}if(u=e.baseState,r===null)e.memoizedState=u;else{t=r.next;var v=h=null,C=null,_=t,G=!1;do{var Q=_.lane&-536870913;if(Q!==_.lane?(Ae&Q)===Q:(On&Q)===Q){var B=_.revertLane;if(B===0)C!==null&&(C=C.next={lane:0,revertLane:0,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null}),Q===xi&&(G=!0);else if((On&B)===B){_=_.next,B===xi&&(G=!0);continue}else Q={lane:0,revertLane:_.revertLane,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},C===null?(v=C=Q,h=u):C=C.next=Q,Se.lanes|=B,ua|=B;Q=_.action,Ha&&n(u,Q),u=_.hasEagerState?_.eagerState:n(u,Q)}else B={lane:Q,revertLane:_.revertLane,gesture:_.gesture,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},C===null?(v=C=B,h=u):C=C.next=B,Se.lanes|=Q,ua|=Q;_=_.next}while(_!==null&&_!==t);if(C===null?h=u:C.next=v,!Lt(u,e.memoizedState)&&(nt=!0,G&&(n=Si,n!==null)))throw n;e.memoizedState=u,e.baseState=h,e.baseQueue=C,i.lastRenderedState=u}return r===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function iu(e){var t=Ie(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var i=n.dispatch,r=n.pending,u=t.memoizedState;if(r!==null){n.pending=null;var h=r=r.next;do u=e(u,h.action),h=h.next;while(h!==r);Lt(u,t.memoizedState)||(nt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,i]}function pm(e,t,n){var i=Se,r=Ie(),u=Ee;if(u){if(n===void 0)throw Error(o(407));n=n()}else n=t();var h=!Lt((Le||r).memoizedState,n);if(h&&(r.memoizedState=n,nt=!0),r=r.queue,ou(bm.bind(null,i,r,e),[e]),r.getSnapshot!==t||h||tt!==null&&tt.memoizedState.tag&1){if(i.flags|=2048,Ai(9,{destroy:void 0},gm.bind(null,i,r,n,t),null),Ge===null)throw Error(o(349));u||(On&127)!==0||ym(i,t,n)}return n}function ym(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Se.updateQueue,t===null?(t=Kl(),Se.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function gm(e,t,n,i){t.value=n,t.getSnapshot=i,vm(t)&&xm(e)}function bm(e,t,n){return n(function(){vm(t)&&xm(e)})}function vm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Lt(e,n)}catch{return!0}}function xm(e){var t=za(e,2);t!==null&&Vt(t,e,2)}function su(e){var t=Nt();if(typeof e=="function"){var n=e;if(e=n(),Ha){Pn(!0);try{n()}finally{Pn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vn,lastRenderedState:e},t}function Sm(e,t,n,i){return e.baseState=n,au(e,Le,typeof i=="function"?i:Vn)}function Uv(e,t,n,i,r){if(Fl(e))throw Error(o(485));if(e=t.action,e!==null){var u={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){u.listeners.push(h)}};E.T!==null?n(!0):u.isTransition=!1,i(u),n=t.pending,n===null?(u.next=t.pending=u,Cm(t,u)):(u.next=n.next,t.pending=n.next=u)}}function Cm(e,t){var n=t.action,i=t.payload,r=e.state;if(t.isTransition){var u=E.T,h={};E.T=h;try{var v=n(r,i),C=E.S;C!==null&&C(h,v),wm(e,t,v)}catch(_){lu(e,t,_)}finally{u!==null&&h.types!==null&&(u.types=h.types),E.T=u}}else try{u=n(r,i),wm(e,t,u)}catch(_){lu(e,t,_)}}function wm(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){jm(e,t,i)},function(i){return lu(e,t,i)}):jm(e,t,n)}function jm(e,t,n){t.status="fulfilled",t.value=n,Tm(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Cm(e,n)))}function lu(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,Tm(t),t=t.next;while(t!==i)}e.action=null}function Tm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Nm(e,t){return t}function Am(e,t){if(Ee){var n=Ge.formState;if(n!==null){e:{var i=Se;if(Ee){if(Ye){t:{for(var r=Ye,u=It;r.nodeType!==8;){if(!u){r=null;break t}if(r=tn(r.nextSibling),r===null){r=null;break t}}u=r.data,r=u==="F!"||u==="F"?r:null}if(r){Ye=tn(r.nextSibling),i=r.data==="F!";break e}}ea(i)}i=!1}i&&(t=n[0])}}return n=Nt(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nm,lastRenderedState:t},n.queue=i,n=Qm.bind(null,Se,i),i.dispatch=n,i=su(!1),u=fu.bind(null,Se,!1,i.queue),i=Nt(),r={state:t,dispatch:null,action:e,pending:null},i.queue=r,n=Uv.bind(null,Se,r,u,n),r.dispatch=n,i.memoizedState=e,[t,n,!1]}function Mm(e){var t=Ie();return Em(t,Le,e)}function Em(e,t,n){if(t=au(e,t,Nm)[0],e=Zl(Vn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Ts(t)}catch(h){throw h===Ci?Bl:h}else i=t;t=Ie();var r=t.queue,u=r.dispatch;return n!==t.memoizedState&&(Se.flags|=2048,Ai(9,{destroy:void 0},Hv.bind(null,r,n),null)),[i,u,e]}function Hv(e,t){e.action=t}function Dm(e){var t=Ie(),n=Le;if(n!==null)return Em(t,n,e);Ie(),t=t.memoizedState,n=Ie();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function Ai(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=Se.updateQueue,t===null&&(t=Kl(),Se.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function zm(){return Ie().memoizedState}function Jl(e,t,n,i){var r=Nt();Se.flags|=e,r.memoizedState=Ai(1|t,{destroy:void 0},n,i===void 0?null:i)}function Pl(e,t,n,i){var r=Ie();i=i===void 0?null:i;var u=r.memoizedState.inst;Le!==null&&i!==null&&Wr(i,Le.memoizedState.deps)?r.memoizedState=Ai(t,u,n,i):(Se.flags|=e,r.memoizedState=Ai(1|t,u,n,i))}function Rm(e,t){Jl(8390656,8,e,t)}function ou(e,t){Pl(2048,8,e,t)}function Gv(e){Se.flags|=4;var t=Se.updateQueue;if(t===null)t=Kl(),Se.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Om(e){var t=Ie().memoizedState;return Gv({ref:t,nextImpl:e}),function(){if((Oe&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function Vm(e,t){return Pl(4,2,e,t)}function _m(e,t){return Pl(4,4,e,t)}function km(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Bm(e,t,n){n=n!=null?n.concat([e]):null,Pl(4,4,km.bind(null,t,e),n)}function ru(){}function Lm(e,t){var n=Ie();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&Wr(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function Um(e,t){var n=Ie();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&Wr(t,i[1]))return i[0];if(i=e(),Ha){Pn(!0);try{e()}finally{Pn(!1)}}return n.memoizedState=[i,t],i}function uu(e,t,n){return n===void 0||(On&1073741824)!==0&&(Ae&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Hh(),Se.lanes|=e,ua|=e,n)}function Hm(e,t,n,i){return Lt(n,t)?n:ji.current!==null?(e=uu(e,n,i),Lt(e,t)||(nt=!0),e):(On&42)===0||(On&1073741824)!==0&&(Ae&261930)===0?(nt=!0,e.memoizedState=n):(e=Hh(),Se.lanes|=e,ua|=e,t)}function Gm(e,t,n,i,r){var u=U.p;U.p=u!==0&&8>u?u:8;var h=E.T,v={};E.T=v,fu(e,!1,t,n);try{var C=r(),_=E.S;if(_!==null&&_(v,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var G=kv(C,i);Ns(e,t,G,Xt(e))}else Ns(e,t,i,Xt(e))}catch(Q){Ns(e,t,{then:function(){},status:"rejected",reason:Q},Xt())}finally{U.p=u,h!==null&&v.types!==null&&(h.types=v.types),E.T=h}}function Yv(){}function cu(e,t,n,i){if(e.tag!==5)throw Error(o(476));var r=Ym(e).queue;Gm(e,r,t,M,n===null?Yv:function(){return qm(e),n(i)})}function Ym(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:M,baseState:M,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vn,lastRenderedState:M},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function qm(e){var t=Ym(e);t.next===null&&(t=e.alternate.memoizedState),Ns(e,t.next.queue,{},Xt())}function du(){return mt(qs)}function Xm(){return Ie().memoizedState}function Km(){return Ie().memoizedState}function qv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Xt();e=aa(n);var i=ia(t,e,n);i!==null&&(Vt(i,t,n),Ss(i,t,n)),t={cache:Hr()},e.payload=t;return}t=t.return}}function Xv(e,t,n){var i=Xt();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Fl(e)?Zm(t,n):(n=Er(e,t,n,i),n!==null&&(Vt(n,e,i),Jm(n,t,i)))}function Qm(e,t,n){var i=Xt();Ns(e,t,n,i)}function Ns(e,t,n,i){var r={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Fl(e))Zm(t,r);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var h=t.lastRenderedState,v=u(h,n);if(r.hasEagerState=!0,r.eagerState=v,Lt(v,h))return Dl(e,t,r,0),Ge===null&&El(),!1}catch{}finally{}if(n=Er(e,t,r,i),n!==null)return Vt(n,e,i),Jm(n,t,i),!0}return!1}function fu(e,t,n,i){if(i={lane:2,revertLane:Xu(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Fl(e)){if(t)throw Error(o(479))}else t=Er(e,n,i,2),t!==null&&Vt(t,e,2)}function Fl(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function Zm(e,t){Ti=ql=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Jm(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,$d(e,n)}}var As={readContext:mt,use:Ql,useCallback:Pe,useContext:Pe,useEffect:Pe,useImperativeHandle:Pe,useLayoutEffect:Pe,useInsertionEffect:Pe,useMemo:Pe,useReducer:Pe,useRef:Pe,useState:Pe,useDebugValue:Pe,useDeferredValue:Pe,useTransition:Pe,useSyncExternalStore:Pe,useId:Pe,useHostTransitionStatus:Pe,useFormState:Pe,useActionState:Pe,useOptimistic:Pe,useMemoCache:Pe,useCacheRefresh:Pe};As.useEffectEvent=Pe;var Pm={readContext:mt,use:Ql,useCallback:function(e,t){return Nt().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:Rm,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Jl(4194308,4,km.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Jl(4194308,4,e,t)},useInsertionEffect:function(e,t){Jl(4,2,e,t)},useMemo:function(e,t){var n=Nt();t=t===void 0?null:t;var i=e();if(Ha){Pn(!0);try{e()}finally{Pn(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=Nt();if(n!==void 0){var r=n(t);if(Ha){Pn(!0);try{n(t)}finally{Pn(!1)}}}else r=t;return i.memoizedState=i.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},i.queue=e,e=e.dispatch=Xv.bind(null,Se,e),[i.memoizedState,e]},useRef:function(e){var t=Nt();return e={current:e},t.memoizedState=e},useState:function(e){e=su(e);var t=e.queue,n=Qm.bind(null,Se,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ru,useDeferredValue:function(e,t){var n=Nt();return uu(n,e,t)},useTransition:function(){var e=su(!1);return e=Gm.bind(null,Se,e.queue,!0,!1),Nt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=Se,r=Nt();if(Ee){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),Ge===null)throw Error(o(349));(Ae&127)!==0||ym(i,t,n)}r.memoizedState=n;var u={value:n,getSnapshot:t};return r.queue=u,Rm(bm.bind(null,i,u,e),[e]),i.flags|=2048,Ai(9,{destroy:void 0},gm.bind(null,i,u,n,t),null),n},useId:function(){var e=Nt(),t=Ge.identifierPrefix;if(Ee){var n=vn,i=bn;n=(i&~(1<<32-Bt(i)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Xl++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Bv++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:du,useFormState:Am,useActionState:Am,useOptimistic:function(e){var t=Nt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=fu.bind(null,Se,!0,n),n.dispatch=t,[e,t]},useMemoCache:nu,useCacheRefresh:function(){return Nt().memoizedState=qv.bind(null,Se)},useEffectEvent:function(e){var t=Nt(),n={impl:e};return t.memoizedState=n,function(){if((Oe&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},mu={readContext:mt,use:Ql,useCallback:Lm,useContext:mt,useEffect:ou,useImperativeHandle:Bm,useInsertionEffect:Vm,useLayoutEffect:_m,useMemo:Um,useReducer:Zl,useRef:zm,useState:function(){return Zl(Vn)},useDebugValue:ru,useDeferredValue:function(e,t){var n=Ie();return Hm(n,Le.memoizedState,e,t)},useTransition:function(){var e=Zl(Vn)[0],t=Ie().memoizedState;return[typeof e=="boolean"?e:Ts(e),t]},useSyncExternalStore:pm,useId:Xm,useHostTransitionStatus:du,useFormState:Mm,useActionState:Mm,useOptimistic:function(e,t){var n=Ie();return Sm(n,Le,e,t)},useMemoCache:nu,useCacheRefresh:Km};mu.useEffectEvent=Om;var Fm={readContext:mt,use:Ql,useCallback:Lm,useContext:mt,useEffect:ou,useImperativeHandle:Bm,useInsertionEffect:Vm,useLayoutEffect:_m,useMemo:Um,useReducer:iu,useRef:zm,useState:function(){return iu(Vn)},useDebugValue:ru,useDeferredValue:function(e,t){var n=Ie();return Le===null?uu(n,e,t):Hm(n,Le.memoizedState,e,t)},useTransition:function(){var e=iu(Vn)[0],t=Ie().memoizedState;return[typeof e=="boolean"?e:Ts(e),t]},useSyncExternalStore:pm,useId:Xm,useHostTransitionStatus:du,useFormState:Dm,useActionState:Dm,useOptimistic:function(e,t){var n=Ie();return Le!==null?Sm(n,Le,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:nu,useCacheRefresh:Km};Fm.useEffectEvent=Om;function hu(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:x({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var pu={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=Xt(),r=aa(i);r.payload=t,n!=null&&(r.callback=n),t=ia(e,r,i),t!==null&&(Vt(t,e,i),Ss(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=Xt(),r=aa(i);r.tag=1,r.payload=t,n!=null&&(r.callback=n),t=ia(e,r,i),t!==null&&(Vt(t,e,i),Ss(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Xt(),i=aa(n);i.tag=2,t!=null&&(i.callback=t),t=ia(e,i,n),t!==null&&(Vt(t,e,n),Ss(t,e,n))}};function Wm(e,t,n,i,r,u,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,u,h):t.prototype&&t.prototype.isPureReactComponent?!ms(n,i)||!ms(r,u):!0}function $m(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&pu.enqueueReplaceState(t,t.state,null)}function Ga(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=x({},n));for(var r in e)n[r]===void 0&&(n[r]=e[r])}return n}function Im(e){Ml(e)}function eh(e){console.error(e)}function th(e){Ml(e)}function Wl(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function nh(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function yu(e,t,n){return n=aa(n),n.tag=3,n.payload={element:null},n.callback=function(){Wl(e,t)},n}function ah(e){return e=aa(e),e.tag=3,e}function ih(e,t,n,i){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var u=i.value;e.payload=function(){return r(u)},e.callback=function(){nh(t,n,i)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){nh(t,n,i),typeof r!="function"&&(ca===null?ca=new Set([this]):ca.add(this));var v=i.stack;this.componentDidCatch(i.value,{componentStack:v!==null?v:""})})}function Kv(e,t,n,i,r){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&vi(t,n,r,!0),n=Ht.current,n!==null){switch(n.tag){case 31:case 13:return en===null?uo():n.alternate===null&&Fe===0&&(Fe=3),n.flags&=-257,n.flags|=65536,n.lanes=r,i===Ll?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),Gu(e,i,r)),!1;case 22:return n.flags|=65536,i===Ll?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),Gu(e,i,r)),!1}throw Error(o(435,n.tag))}return Gu(e,i,r),uo(),!1}if(Ee)return t=Ht.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,i!==_r&&(e=Error(o(422),{cause:i}),ys(Ft(e,n)))):(i!==_r&&(t=Error(o(423),{cause:i}),ys(Ft(t,n))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,i=Ft(i,n),r=yu(e.stateNode,i,r),Qr(e,r),Fe!==4&&(Fe=2)),!1;var u=Error(o(520),{cause:i});if(u=Ft(u,n),_s===null?_s=[u]:_s.push(u),Fe!==4&&(Fe=2),t===null)return!0;i=Ft(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=r&-r,n.lanes|=e,e=yu(n.stateNode,i,e),Qr(n,e),!1;case 1:if(t=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(ca===null||!ca.has(u))))return n.flags|=65536,r&=-r,n.lanes|=r,r=ah(r),ih(r,e,n,i),Qr(n,r),!1}n=n.return}while(n!==null);return!1}var gu=Error(o(461)),nt=!1;function ht(e,t,n,i){t.child=e===null?rm(t,null,n,i):Ua(t,e.child,n,i)}function sh(e,t,n,i,r){n=n.render;var u=t.ref;if("ref"in i){var h={};for(var v in i)v!=="ref"&&(h[v]=i[v])}else h=i;return _a(t),i=$r(e,t,n,h,u,r),v=Ir(),e!==null&&!nt?(eu(e,t,r),_n(e,t,r)):(Ee&&v&&Or(t),t.flags|=1,ht(e,t,i,r),t.child)}function lh(e,t,n,i,r){if(e===null){var u=n.type;return typeof u=="function"&&!Dr(u)&&u.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=u,oh(e,t,u,i,r)):(e=Rl(n.type,null,i,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Tu(e,r)){var h=u.memoizedProps;if(n=n.compare,n=n!==null?n:ms,n(h,i)&&e.ref===t.ref)return _n(e,t,r)}return t.flags|=1,e=En(u,i),e.ref=t.ref,e.return=t,t.child=e}function oh(e,t,n,i,r){if(e!==null){var u=e.memoizedProps;if(ms(u,i)&&e.ref===t.ref)if(nt=!1,t.pendingProps=i=u,Tu(e,r))(e.flags&131072)!==0&&(nt=!0);else return t.lanes=e.lanes,_n(e,t,r)}return bu(e,t,n,i,r)}function rh(e,t,n,i){var r=i.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,e!==null){for(i=t.child=e.child,r=0;i!==null;)r=r|i.lanes|i.childLanes,i=i.sibling;i=r&~u}else i=0,t.child=null;return uh(e,t,u,n,i)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&kl(t,u!==null?u.cachePool:null),u!==null?dm(t,u):Jr(),fm(t);else return i=t.lanes=536870912,uh(e,t,u!==null?u.baseLanes|n:n,n,i)}else u!==null?(kl(t,u.cachePool),dm(t,u),la(),t.memoizedState=null):(e!==null&&kl(t,null),Jr(),la());return ht(e,t,r,n),t.child}function Ms(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function uh(e,t,n,i,r){var u=Yr();return u=u===null?null:{parent:et._currentValue,pool:u},t.memoizedState={baseLanes:n,cachePool:u},e!==null&&kl(t,null),Jr(),fm(t),e!==null&&vi(e,t,i,!0),t.childLanes=r,null}function $l(e,t){return t=eo({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ch(e,t,n){return Ua(t,e.child,null,n),e=$l(t,t.pendingProps),e.flags|=2,Gt(t),t.memoizedState=null,e}function Qv(e,t,n){var i=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ee){if(i.mode==="hidden")return e=$l(t,i),t.lanes=536870912,Ms(null,e);if(Fr(t),(e=Ye)?(e=Cp(e,It),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:$n!==null?{id:bn,overflow:vn}:null,retryLane:536870912,hydrationErrors:null},n=Zf(e),n.return=t,t.child=n,ft=t,Ye=null)):e=null,e===null)throw ea(t);return t.lanes=536870912,null}return $l(t,i)}var u=e.memoizedState;if(u!==null){var h=u.dehydrated;if(Fr(t),r)if(t.flags&256)t.flags&=-257,t=ch(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(nt||vi(e,t,n,!1),r=(n&e.childLanes)!==0,nt||r){if(i=Ge,i!==null&&(h=Id(i,n),h!==0&&h!==u.retryLane))throw u.retryLane=h,za(e,h),Vt(i,e,h),gu;uo(),t=ch(e,t,n)}else e=u.treeContext,Ye=tn(h.nextSibling),ft=t,Ee=!0,In=null,It=!1,e!==null&&Ff(t,e),t=$l(t,i),t.flags|=4096;return t}return e=En(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Il(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(o(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function bu(e,t,n,i,r){return _a(t),n=$r(e,t,n,i,void 0,r),i=Ir(),e!==null&&!nt?(eu(e,t,r),_n(e,t,r)):(Ee&&i&&Or(t),t.flags|=1,ht(e,t,n,r),t.child)}function dh(e,t,n,i,r,u){return _a(t),t.updateQueue=null,n=hm(t,i,n,r),mm(e),i=Ir(),e!==null&&!nt?(eu(e,t,u),_n(e,t,u)):(Ee&&i&&Or(t),t.flags|=1,ht(e,t,n,u),t.child)}function fh(e,t,n,i,r){if(_a(t),t.stateNode===null){var u=pi,h=n.contextType;typeof h=="object"&&h!==null&&(u=mt(h)),u=new n(i,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=pu,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=i,u.state=t.memoizedState,u.refs={},Xr(t),h=n.contextType,u.context=typeof h=="object"&&h!==null?mt(h):pi,u.state=t.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(hu(t,n,h,i),u.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(h=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),h!==u.state&&pu.enqueueReplaceState(u,u.state,null),ws(t,i,u,r),Cs(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){u=t.stateNode;var v=t.memoizedProps,C=Ga(n,v);u.props=C;var _=u.context,G=n.contextType;h=pi,typeof G=="object"&&G!==null&&(h=mt(G));var Q=n.getDerivedStateFromProps;G=typeof Q=="function"||typeof u.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,G||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(v||_!==h)&&$m(t,u,i,h),na=!1;var B=t.memoizedState;u.state=B,ws(t,i,u,r),Cs(),_=t.memoizedState,v||B!==_||na?(typeof Q=="function"&&(hu(t,n,Q,i),_=t.memoizedState),(C=na||Wm(t,n,C,i,B,_,h))?(G||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=_),u.props=i,u.state=_,u.context=h,i=C):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{u=t.stateNode,Kr(e,t),h=t.memoizedProps,G=Ga(n,h),u.props=G,Q=t.pendingProps,B=u.context,_=n.contextType,C=pi,typeof _=="object"&&_!==null&&(C=mt(_)),v=n.getDerivedStateFromProps,(_=typeof v=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h!==Q||B!==C)&&$m(t,u,i,C),na=!1,B=t.memoizedState,u.state=B,ws(t,i,u,r),Cs();var L=t.memoizedState;h!==Q||B!==L||na||e!==null&&e.dependencies!==null&&Vl(e.dependencies)?(typeof v=="function"&&(hu(t,n,v,i),L=t.memoizedState),(G=na||Wm(t,n,G,i,B,L,C)||e!==null&&e.dependencies!==null&&Vl(e.dependencies))?(_||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(i,L,C),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(i,L,C)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||h===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=L),u.props=i,u.state=L,u.context=C,i=G):(typeof u.componentDidUpdate!="function"||h===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),i=!1)}return u=i,Il(e,t),i=(t.flags&128)!==0,u||i?(u=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&i?(t.child=Ua(t,e.child,null,r),t.child=Ua(t,null,n,r)):ht(e,t,n,r),t.memoizedState=u.state,e=t.child):e=_n(e,t,r),e}function mh(e,t,n,i){return Oa(),t.flags|=256,ht(e,t,n,i),t.child}var vu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function xu(e){return{baseLanes:e,cachePool:nm()}}function Su(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=qt),e}function hh(e,t,n){var i=t.pendingProps,r=!1,u=(t.flags&128)!==0,h;if((h=u)||(h=e!==null&&e.memoizedState===null?!1:($e.current&2)!==0),h&&(r=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ee){if(r?sa(t):la(),(e=Ye)?(e=Cp(e,It),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:$n!==null?{id:bn,overflow:vn}:null,retryLane:536870912,hydrationErrors:null},n=Zf(e),n.return=t,t.child=n,ft=t,Ye=null)):e=null,e===null)throw ea(t);return ac(e)?t.lanes=32:t.lanes=536870912,null}var v=i.children;return i=i.fallback,r?(la(),r=t.mode,v=eo({mode:"hidden",children:v},r),i=Ra(i,r,n,null),v.return=t,i.return=t,v.sibling=i,t.child=v,i=t.child,i.memoizedState=xu(n),i.childLanes=Su(e,h,n),t.memoizedState=vu,Ms(null,i)):(sa(t),Cu(t,v))}var C=e.memoizedState;if(C!==null&&(v=C.dehydrated,v!==null)){if(u)t.flags&256?(sa(t),t.flags&=-257,t=wu(e,t,n)):t.memoizedState!==null?(la(),t.child=e.child,t.flags|=128,t=null):(la(),v=i.fallback,r=t.mode,i=eo({mode:"visible",children:i.children},r),v=Ra(v,r,n,null),v.flags|=2,i.return=t,v.return=t,i.sibling=v,t.child=i,Ua(t,e.child,null,n),i=t.child,i.memoizedState=xu(n),i.childLanes=Su(e,h,n),t.memoizedState=vu,t=Ms(null,i));else if(sa(t),ac(v)){if(h=v.nextSibling&&v.nextSibling.dataset,h)var _=h.dgst;h=_,i=Error(o(419)),i.stack="",i.digest=h,ys({value:i,source:null,stack:null}),t=wu(e,t,n)}else if(nt||vi(e,t,n,!1),h=(n&e.childLanes)!==0,nt||h){if(h=Ge,h!==null&&(i=Id(h,n),i!==0&&i!==C.retryLane))throw C.retryLane=i,za(e,i),Vt(h,e,i),gu;nc(v)||uo(),t=wu(e,t,n)}else nc(v)?(t.flags|=192,t.child=e.child,t=null):(e=C.treeContext,Ye=tn(v.nextSibling),ft=t,Ee=!0,In=null,It=!1,e!==null&&Ff(t,e),t=Cu(t,i.children),t.flags|=4096);return t}return r?(la(),v=i.fallback,r=t.mode,C=e.child,_=C.sibling,i=En(C,{mode:"hidden",children:i.children}),i.subtreeFlags=C.subtreeFlags&65011712,_!==null?v=En(_,v):(v=Ra(v,r,n,null),v.flags|=2),v.return=t,i.return=t,i.sibling=v,t.child=i,Ms(null,i),i=t.child,v=e.child.memoizedState,v===null?v=xu(n):(r=v.cachePool,r!==null?(C=et._currentValue,r=r.parent!==C?{parent:C,pool:C}:r):r=nm(),v={baseLanes:v.baseLanes|n,cachePool:r}),i.memoizedState=v,i.childLanes=Su(e,h,n),t.memoizedState=vu,Ms(e.child,i)):(sa(t),n=e.child,e=n.sibling,n=En(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=n,t.memoizedState=null,n)}function Cu(e,t){return t=eo({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function eo(e,t){return e=Ut(22,e,null,t),e.lanes=0,e}function wu(e,t,n){return Ua(t,e.child,null,n),e=Cu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ph(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Lr(e.return,t,n)}function ju(e,t,n,i,r,u){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:r,treeForkCount:u}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=i,h.tail=n,h.tailMode=r,h.treeForkCount=u)}function yh(e,t,n){var i=t.pendingProps,r=i.revealOrder,u=i.tail;i=i.children;var h=$e.current,v=(h&2)!==0;if(v?(h=h&1|2,t.flags|=128):h&=1,I($e,h),ht(e,t,i,n),i=Ee?ps:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ph(e,n,t);else if(e.tag===19)ph(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(r){case"forwards":for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&&Yl(e)===null&&(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),ju(t,!1,r,n,u,i);break;case"backwards":case"unstable_legacy-backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&Yl(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}ju(t,!0,n,null,u,i);break;case"together":ju(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function _n(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ua|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(vi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,n=En(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=En(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Tu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Vl(e)))}function Zv(e,t,n){switch(t.tag){case 3:Je(t,t.stateNode.containerInfo),ta(t,et,e.memoizedState.cache),Oa();break;case 27:case 5:Qt(t);break;case 4:Je(t,t.stateNode.containerInfo);break;case 10:ta(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Fr(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(sa(t),t.flags|=128,null):(n&t.child.childLanes)!==0?hh(e,t,n):(sa(t),e=_n(e,t,n),e!==null?e.sibling:null);sa(t);break;case 19:var r=(e.flags&128)!==0;if(i=(n&t.childLanes)!==0,i||(vi(e,t,n,!1),i=(n&t.childLanes)!==0),r){if(i)return yh(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),I($e,$e.current),i)break;return null;case 22:return t.lanes=0,rh(e,t,n,t.pendingProps);case 24:ta(t,et,e.memoizedState.cache)}return _n(e,t,n)}function gh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)nt=!0;else{if(!Tu(e,n)&&(t.flags&128)===0)return nt=!1,Zv(e,t,n);nt=(e.flags&131072)!==0}else nt=!1,Ee&&(t.flags&1048576)!==0&&Pf(t,ps,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=Ba(t.elementType),t.type=e,typeof e=="function")Dr(e)?(i=Ga(e,i),t.tag=1,t=fh(null,t,e,i,n)):(t.tag=0,t=bu(null,t,e,i,n));else{if(e!=null){var r=e.$$typeof;if(r===W){t.tag=11,t=sh(null,t,e,i,n);break e}else if(r===K){t.tag=14,t=lh(null,t,e,i,n);break e}}throw t=ve(e)||e,Error(o(306,t,""))}}return t;case 0:return bu(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,r=Ga(i,t.pendingProps),fh(e,t,i,r,n);case 3:e:{if(Je(t,t.stateNode.containerInfo),e===null)throw Error(o(387));i=t.pendingProps;var u=t.memoizedState;r=u.element,Kr(e,t),ws(t,i,null,n);var h=t.memoizedState;if(i=h.cache,ta(t,et,i),i!==u.cache&&Ur(t,[et],n,!0),Cs(),i=h.element,u.isDehydrated)if(u={element:i,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=mh(e,t,i,n);break e}else if(i!==r){r=Ft(Error(o(424)),t),ys(r),t=mh(e,t,i,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ye=tn(e.firstChild),ft=t,Ee=!0,In=null,It=!0,n=rm(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Oa(),i===r){t=_n(e,t,n);break e}ht(e,t,i,n)}t=t.child}return t;case 26:return Il(e,t),e===null?(n=Mp(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ee||(n=t.type,e=t.pendingProps,i=go(re.current).createElement(n),i[dt]=t,i[Mt]=e,pt(i,n,e),ut(i),t.stateNode=i):t.memoizedState=Mp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Qt(t),e===null&&Ee&&(i=t.stateNode=Tp(t.type,t.pendingProps,re.current),ft=t,It=!0,r=Ye,ha(t.type)?(ic=r,Ye=tn(i.firstChild)):Ye=r),ht(e,t,t.pendingProps.children,n),Il(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ee&&((r=i=Ye)&&(i=wx(i,t.type,t.pendingProps,It),i!==null?(t.stateNode=i,ft=t,Ye=tn(i.firstChild),It=!1,r=!0):r=!1),r||ea(t)),Qt(t),r=t.type,u=t.pendingProps,h=e!==null?e.memoizedProps:null,i=u.children,Iu(r,u)?i=null:h!==null&&Iu(r,h)&&(t.flags|=32),t.memoizedState!==null&&(r=$r(e,t,Lv,null,null,n),qs._currentValue=r),Il(e,t),ht(e,t,i,n),t.child;case 6:return e===null&&Ee&&((e=n=Ye)&&(n=jx(n,t.pendingProps,It),n!==null?(t.stateNode=n,ft=t,Ye=null,e=!0):e=!1),e||ea(t)),null;case 13:return hh(e,t,n);case 4:return Je(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ua(t,null,i,n):ht(e,t,i,n),t.child;case 11:return sh(e,t,t.type,t.pendingProps,n);case 7:return ht(e,t,t.pendingProps,n),t.child;case 8:return ht(e,t,t.pendingProps.children,n),t.child;case 12:return ht(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,ta(t,t.type,i.value),ht(e,t,i.children,n),t.child;case 9:return r=t.type._context,i=t.pendingProps.children,_a(t),r=mt(r),i=i(r),t.flags|=1,ht(e,t,i,n),t.child;case 14:return lh(e,t,t.type,t.pendingProps,n);case 15:return oh(e,t,t.type,t.pendingProps,n);case 19:return yh(e,t,n);case 31:return Qv(e,t,n);case 22:return rh(e,t,n,t.pendingProps);case 24:return _a(t),i=mt(et),e===null?(r=Yr(),r===null&&(r=Ge,u=Hr(),r.pooledCache=u,u.refCount++,u!==null&&(r.pooledCacheLanes|=n),r=u),t.memoizedState={parent:i,cache:r},Xr(t),ta(t,et,r)):((e.lanes&n)!==0&&(Kr(e,t),ws(t,null,null,n),Cs()),r=e.memoizedState,u=t.memoizedState,r.parent!==i?(r={parent:i,cache:i},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),ta(t,et,i)):(i=u.cache,ta(t,et,i),i!==r.cache&&Ur(t,[et],n,!0))),ht(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function kn(e){e.flags|=4}function Nu(e,t,n,i,r){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(Xh())e.flags|=8192;else throw La=Ll,qr}else e.flags&=-16777217}function bh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Op(t))if(Xh())e.flags|=8192;else throw La=Ll,qr}function to(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Fd():536870912,e.lanes|=t,zi|=t)}function Es(e,t){if(!Ee)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags&65011712,i|=r.flags&65011712,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags,i|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function Jv(e,t,n){var i=t.pendingProps;switch(Vr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qe(t),null;case 1:return qe(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Rn(et),_e(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(bi(t)?kn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,kr())),qe(t),null;case 26:var r=t.type,u=t.memoizedState;return e===null?(kn(t),u!==null?(qe(t),bh(t,u)):(qe(t),Nu(t,r,null,i,n))):u?u!==e.memoizedState?(kn(t),qe(t),bh(t,u)):(qe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&kn(t),qe(t),Nu(t,r,e,i,n)),null;case 27:if(un(t),n=re.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&kn(t);else{if(!i){if(t.stateNode===null)throw Error(o(166));return qe(t),null}e=ae.current,bi(t)?Wf(t):(e=Tp(r,i,n),t.stateNode=e,kn(t))}return qe(t),null;case 5:if(un(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&kn(t);else{if(!i){if(t.stateNode===null)throw Error(o(166));return qe(t),null}if(u=ae.current,bi(t))Wf(t);else{var h=go(re.current);switch(u){case 1:u=h.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:u=h.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":u=h.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":u=h.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":u=h.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof i.is=="string"?h.createElement("select",{is:i.is}):h.createElement("select"),i.multiple?u.multiple=!0:i.size&&(u.size=i.size);break;default:u=typeof i.is=="string"?h.createElement(r,{is:i.is}):h.createElement(r)}}u[dt]=t,u[Mt]=i;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)u.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=u;e:switch(pt(u,r,i),r){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&kn(t)}}return qe(t),Nu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&kn(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(o(166));if(e=re.current,bi(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,r=ft,r!==null)switch(r.tag){case 27:case 5:i=r.memoizedProps}e[dt]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||hp(e.nodeValue,n)),e||ea(t,!0)}else e=go(e).createTextNode(i),e[dt]=t,t.stateNode=e}return qe(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=bi(t),n!==null){if(e===null){if(!i)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[dt]=t}else Oa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else n=kr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Gt(t),t):(Gt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return qe(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=bi(t),i!==null&&i.dehydrated!==null){if(e===null){if(!r)throw Error(o(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(o(317));r[dt]=t}else Oa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),r=!1}else r=kr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(Gt(t),t):(Gt(t),null)}return Gt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=i!==null,e=e!==null&&e.memoizedState!==null,n&&(i=t.child,r=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(r=i.alternate.memoizedState.cachePool.pool),u=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),u!==r&&(i.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),to(t,t.updateQueue),qe(t),null);case 4:return _e(),e===null&&Ju(t.stateNode.containerInfo),qe(t),null;case 10:return Rn(t.type),qe(t),null;case 19:if(H($e),i=t.memoizedState,i===null)return qe(t),null;if(r=(t.flags&128)!==0,u=i.rendering,u===null)if(r)Es(i,!1);else{if(Fe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Yl(e),u!==null){for(t.flags|=128,Es(i,!1),e=u.updateQueue,t.updateQueue=e,to(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Qf(n,e),n=n.sibling;return I($e,$e.current&1|2),Ee&&Dn(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Tt()>lo&&(t.flags|=128,r=!0,Es(i,!1),t.lanes=4194304)}else{if(!r)if(e=Yl(u),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,to(t,e),Es(i,!0),i.tail===null&&i.tailMode==="hidden"&&!u.alternate&&!Ee)return qe(t),null}else 2*Tt()-i.renderingStartTime>lo&&n!==536870912&&(t.flags|=128,r=!0,Es(i,!1),t.lanes=4194304);i.isBackwards?(u.sibling=t.child,t.child=u):(e=i.last,e!==null?e.sibling=u:t.child=u,i.last=u)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Tt(),e.sibling=null,n=$e.current,I($e,r?n&1|2:n&1),Ee&&Dn(t,i.treeForkCount),e):(qe(t),null);case 22:case 23:return Gt(t),Pr(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(n&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),n=t.updateQueue,n!==null&&to(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&H(ka),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Rn(et),qe(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function Pv(e,t){switch(Vr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Rn(et),_e(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return un(t),null;case 31:if(t.memoizedState!==null){if(Gt(t),t.alternate===null)throw Error(o(340));Oa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Gt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Oa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H($e),null;case 4:return _e(),null;case 10:return Rn(t.type),null;case 22:case 23:return Gt(t),Pr(),e!==null&&H(ka),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Rn(et),null;case 25:return null;default:return null}}function vh(e,t){switch(Vr(t),t.tag){case 3:Rn(et),_e();break;case 26:case 27:case 5:un(t);break;case 4:_e();break;case 31:t.memoizedState!==null&&Gt(t);break;case 13:Gt(t);break;case 19:H($e);break;case 10:Rn(t.type);break;case 22:case 23:Gt(t),Pr(),e!==null&&H(ka);break;case 24:Rn(et)}}function Ds(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var r=i.next;n=r;do{if((n.tag&e)===e){i=void 0;var u=n.create,h=n.inst;i=u(),h.destroy=i}n=n.next}while(n!==r)}}catch(v){Be(t,t.return,v)}}function oa(e,t,n){try{var i=t.updateQueue,r=i!==null?i.lastEffect:null;if(r!==null){var u=r.next;i=u;do{if((i.tag&e)===e){var h=i.inst,v=h.destroy;if(v!==void 0){h.destroy=void 0,r=t;var C=n,_=v;try{_()}catch(G){Be(r,C,G)}}}i=i.next}while(i!==u)}}catch(G){Be(t,t.return,G)}}function xh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{cm(t,n)}catch(i){Be(e,e.return,i)}}}function Sh(e,t,n){n.props=Ga(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){Be(e,t,i)}}function zs(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(r){Be(e,t,r)}}function xn(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(r){Be(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){Be(e,t,r)}else n.current=null}function Ch(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(r){Be(e,e.return,r)}}function Au(e,t,n){try{var i=e.stateNode;gx(i,e.type,n,t),i[Mt]=t}catch(r){Be(e,e.return,r)}}function wh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ha(e.type)||e.tag===4}function Mu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||wh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ha(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Eu(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=An));else if(i!==4&&(i===27&&ha(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Eu(e,t,n),e=e.sibling;e!==null;)Eu(e,t,n),e=e.sibling}function no(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(i===27&&ha(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(no(e,t,n),e=e.sibling;e!==null;)no(e,t,n),e=e.sibling}function jh(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);pt(t,i,n),t[dt]=e,t[Mt]=n}catch(u){Be(e,e.return,u)}}var Bn=!1,at=!1,Du=!1,Th=typeof WeakSet=="function"?WeakSet:Set,ct=null;function Fv(e,t){if(e=e.containerInfo,Wu=jo,e=Bf(e),wr(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var r=i.anchorOffset,u=i.focusNode;i=i.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var h=0,v=-1,C=-1,_=0,G=0,Q=e,B=null;t:for(;;){for(var L;Q!==n||r!==0&&Q.nodeType!==3||(v=h+r),Q!==u||i!==0&&Q.nodeType!==3||(C=h+i),Q.nodeType===3&&(h+=Q.nodeValue.length),(L=Q.firstChild)!==null;)B=Q,Q=L;for(;;){if(Q===e)break t;if(B===n&&++_===r&&(v=h),B===u&&++G===i&&(C=h),(L=Q.nextSibling)!==null)break;Q=B,B=Q.parentNode}Q=L}n=v===-1||C===-1?null:{start:v,end:C}}else n=null}n=n||{start:0,end:0}}else n=null;for($u={focusedElem:e,selectionRange:n},jo=!1,ct=t;ct!==null;)if(t=ct,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ct=e;else for(;ct!==null;){switch(t=ct,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)r=e[n],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,n=t,r=u.memoizedProps,u=u.memoizedState,i=n.stateNode;try{var ie=Ga(n.type,r);e=i.getSnapshotBeforeUpdate(ie,u),i.__reactInternalSnapshotBeforeUpdate=e}catch(pe){Be(n,n.return,pe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)tc(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":tc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,ct=e;break}ct=t.return}}function Nh(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:Un(e,n),i&4&&Ds(5,n);break;case 1:if(Un(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(h){Be(n,n.return,h)}else{var r=Ga(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){Be(n,n.return,h)}}i&64&&xh(n),i&512&&zs(n,n.return);break;case 3:if(Un(e,n),i&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{cm(e,t)}catch(h){Be(n,n.return,h)}}break;case 27:t===null&&i&4&&jh(n);case 26:case 5:Un(e,n),t===null&&i&4&&Ch(n),i&512&&zs(n,n.return);break;case 12:Un(e,n);break;case 31:Un(e,n),i&4&&Eh(e,n);break;case 13:Un(e,n),i&4&&Dh(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=sx.bind(null,n),Tx(e,n))));break;case 22:if(i=n.memoizedState!==null||Bn,!i){t=t!==null&&t.memoizedState!==null||at,r=Bn;var u=at;Bn=i,(at=t)&&!u?Hn(e,n,(n.subtreeFlags&8772)!==0):Un(e,n),Bn=r,at=u}break;case 30:break;default:Un(e,n)}}function Ah(e){var t=e.alternate;t!==null&&(e.alternate=null,Ah(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&lr(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Xe=null,Dt=!1;function Ln(e,t,n){for(n=n.child;n!==null;)Mh(e,t,n),n=n.sibling}function Mh(e,t,n){if(kt&&typeof kt.onCommitFiberUnmount=="function")try{kt.onCommitFiberUnmount(ts,n)}catch{}switch(n.tag){case 26:at||xn(n,t),Ln(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:at||xn(n,t);var i=Xe,r=Dt;ha(n.type)&&(Xe=n.stateNode,Dt=!1),Ln(e,t,n),Hs(n.stateNode),Xe=i,Dt=r;break;case 5:at||xn(n,t);case 6:if(i=Xe,r=Dt,Xe=null,Ln(e,t,n),Xe=i,Dt=r,Xe!==null)if(Dt)try{(Xe.nodeType===9?Xe.body:Xe.nodeName==="HTML"?Xe.ownerDocument.body:Xe).removeChild(n.stateNode)}catch(u){Be(n,t,u)}else try{Xe.removeChild(n.stateNode)}catch(u){Be(n,t,u)}break;case 18:Xe!==null&&(Dt?(e=Xe,xp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ui(e)):xp(Xe,n.stateNode));break;case 4:i=Xe,r=Dt,Xe=n.stateNode.containerInfo,Dt=!0,Ln(e,t,n),Xe=i,Dt=r;break;case 0:case 11:case 14:case 15:oa(2,n,t),at||oa(4,n,t),Ln(e,t,n);break;case 1:at||(xn(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&Sh(n,t,i)),Ln(e,t,n);break;case 21:Ln(e,t,n);break;case 22:at=(i=at)||n.memoizedState!==null,Ln(e,t,n),at=i;break;default:Ln(e,t,n)}}function Eh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ui(e)}catch(n){Be(t,t.return,n)}}}function Dh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ui(e)}catch(n){Be(t,t.return,n)}}function Wv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Th),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Th),t;default:throw Error(o(435,e.tag))}}function ao(e,t){var n=Wv(e);t.forEach(function(i){if(!n.has(i)){n.add(i);var r=lx.bind(null,e,i);i.then(r,r)}})}function zt(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var r=n[i],u=e,h=t,v=h;e:for(;v!==null;){switch(v.tag){case 27:if(ha(v.type)){Xe=v.stateNode,Dt=!1;break e}break;case 5:Xe=v.stateNode,Dt=!1;break e;case 3:case 4:Xe=v.stateNode.containerInfo,Dt=!0;break e}v=v.return}if(Xe===null)throw Error(o(160));Mh(u,h,r),Xe=null,Dt=!1,u=r.alternate,u!==null&&(u.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)zh(t,e),t=t.sibling}var fn=null;function zh(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:zt(t,e),Rt(e),i&4&&(oa(3,e,e.return),Ds(3,e),oa(5,e,e.return));break;case 1:zt(t,e),Rt(e),i&512&&(at||n===null||xn(n,n.return)),i&64&&Bn&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var r=fn;if(zt(t,e),Rt(e),i&512&&(at||n===null||xn(n,n.return)),i&4){var u=n!==null?n.memoizedState:null;if(i=e.memoizedState,n===null)if(i===null)if(e.stateNode===null){e:{i=e.type,n=e.memoizedProps,r=r.ownerDocument||r;t:switch(i){case"title":u=r.getElementsByTagName("title")[0],(!u||u[is]||u[dt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=r.createElement(i),r.head.insertBefore(u,r.querySelector("head > title"))),pt(u,i,n),u[dt]=e,ut(u),i=u;break e;case"link":var h=zp("link","href",r).get(i+(n.href||""));if(h){for(var v=0;v<h.length;v++)if(u=h[v],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){h.splice(v,1);break t}}u=r.createElement(i),pt(u,i,n),r.head.appendChild(u);break;case"meta":if(h=zp("meta","content",r).get(i+(n.content||""))){for(v=0;v<h.length;v++)if(u=h[v],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){h.splice(v,1);break t}}u=r.createElement(i),pt(u,i,n),r.head.appendChild(u);break;default:throw Error(o(468,i))}u[dt]=e,ut(u),i=u}e.stateNode=i}else Rp(r,e.type,e.stateNode);else e.stateNode=Dp(r,i,e.memoizedProps);else u!==i?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,i===null?Rp(r,e.type,e.stateNode):Dp(r,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Au(e,e.memoizedProps,n.memoizedProps)}break;case 27:zt(t,e),Rt(e),i&512&&(at||n===null||xn(n,n.return)),n!==null&&i&4&&Au(e,e.memoizedProps,n.memoizedProps);break;case 5:if(zt(t,e),Rt(e),i&512&&(at||n===null||xn(n,n.return)),e.flags&32){r=e.stateNode;try{ri(r,"")}catch(ie){Be(e,e.return,ie)}}i&4&&e.stateNode!=null&&(r=e.memoizedProps,Au(e,r,n!==null?n.memoizedProps:r)),i&1024&&(Du=!0);break;case 6:if(zt(t,e),Rt(e),i&4){if(e.stateNode===null)throw Error(o(162));i=e.memoizedProps,n=e.stateNode;try{n.nodeValue=i}catch(ie){Be(e,e.return,ie)}}break;case 3:if(xo=null,r=fn,fn=bo(t.containerInfo),zt(t,e),fn=r,Rt(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{Ui(t.containerInfo)}catch(ie){Be(e,e.return,ie)}Du&&(Du=!1,Rh(e));break;case 4:i=fn,fn=bo(e.stateNode.containerInfo),zt(t,e),Rt(e),fn=i;break;case 12:zt(t,e),Rt(e);break;case 31:zt(t,e),Rt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,ao(e,i)));break;case 13:zt(t,e),Rt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(so=Tt()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,ao(e,i)));break;case 22:r=e.memoizedState!==null;var C=n!==null&&n.memoizedState!==null,_=Bn,G=at;if(Bn=_||r,at=G||C,zt(t,e),at=G,Bn=_,Rt(e),i&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(n===null||C||Bn||at||Ya(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){C=n=t;try{if(u=C.stateNode,r)h=u.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{v=C.stateNode;var Q=C.memoizedProps.style,B=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;v.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(ie){Be(C,C.return,ie)}}}else if(t.tag===6){if(n===null){C=t;try{C.stateNode.nodeValue=r?"":C.memoizedProps}catch(ie){Be(C,C.return,ie)}}}else if(t.tag===18){if(n===null){C=t;try{var L=C.stateNode;r?Sp(L,!0):Sp(C.stateNode,!1)}catch(ie){Be(C,C.return,ie)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,ao(e,n))));break;case 19:zt(t,e),Rt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,ao(e,i)));break;case 30:break;case 21:break;default:zt(t,e),Rt(e)}}function Rt(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(wh(i)){n=i;break}i=i.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var r=n.stateNode,u=Mu(e);no(e,u,r);break;case 5:var h=n.stateNode;n.flags&32&&(ri(h,""),n.flags&=-33);var v=Mu(e);no(e,v,h);break;case 3:case 4:var C=n.stateNode.containerInfo,_=Mu(e);Eu(e,_,C);break;default:throw Error(o(161))}}catch(G){Be(e,e.return,G)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Rh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Rh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Un(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Nh(e,t.alternate,t),t=t.sibling}function Ya(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:oa(4,t,t.return),Ya(t);break;case 1:xn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Sh(t,t.return,n),Ya(t);break;case 27:Hs(t.stateNode);case 26:case 5:xn(t,t.return),Ya(t);break;case 22:t.memoizedState===null&&Ya(t);break;case 30:Ya(t);break;default:Ya(t)}e=e.sibling}}function Hn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,r=e,u=t,h=u.flags;switch(u.tag){case 0:case 11:case 15:Hn(r,u,n),Ds(4,u);break;case 1:if(Hn(r,u,n),i=u,r=i.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(_){Be(i,i.return,_)}if(i=u,r=i.updateQueue,r!==null){var v=i.stateNode;try{var C=r.shared.hiddenCallbacks;if(C!==null)for(r.shared.hiddenCallbacks=null,r=0;r<C.length;r++)um(C[r],v)}catch(_){Be(i,i.return,_)}}n&&h&64&&xh(u),zs(u,u.return);break;case 27:jh(u);case 26:case 5:Hn(r,u,n),n&&i===null&&h&4&&Ch(u),zs(u,u.return);break;case 12:Hn(r,u,n);break;case 31:Hn(r,u,n),n&&h&4&&Eh(r,u);break;case 13:Hn(r,u,n),n&&h&4&&Dh(r,u);break;case 22:u.memoizedState===null&&Hn(r,u,n),zs(u,u.return);break;case 30:break;default:Hn(r,u,n)}t=t.sibling}}function zu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&gs(n))}function Ru(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&gs(e))}function mn(e,t,n,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Oh(e,t,n,i),t=t.sibling}function Oh(e,t,n,i){var r=t.flags;switch(t.tag){case 0:case 11:case 15:mn(e,t,n,i),r&2048&&Ds(9,t);break;case 1:mn(e,t,n,i);break;case 3:mn(e,t,n,i),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&gs(e)));break;case 12:if(r&2048){mn(e,t,n,i),e=t.stateNode;try{var u=t.memoizedProps,h=u.id,v=u.onPostCommit;typeof v=="function"&&v(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(C){Be(t,t.return,C)}}else mn(e,t,n,i);break;case 31:mn(e,t,n,i);break;case 13:mn(e,t,n,i);break;case 23:break;case 22:u=t.stateNode,h=t.alternate,t.memoizedState!==null?u._visibility&2?mn(e,t,n,i):Rs(e,t):u._visibility&2?mn(e,t,n,i):(u._visibility|=2,Mi(e,t,n,i,(t.subtreeFlags&10256)!==0||!1)),r&2048&&zu(h,t);break;case 24:mn(e,t,n,i),r&2048&&Ru(t.alternate,t);break;default:mn(e,t,n,i)}}function Mi(e,t,n,i,r){for(r=r&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,h=t,v=n,C=i,_=h.flags;switch(h.tag){case 0:case 11:case 15:Mi(u,h,v,C,r),Ds(8,h);break;case 23:break;case 22:var G=h.stateNode;h.memoizedState!==null?G._visibility&2?Mi(u,h,v,C,r):Rs(u,h):(G._visibility|=2,Mi(u,h,v,C,r)),r&&_&2048&&zu(h.alternate,h);break;case 24:Mi(u,h,v,C,r),r&&_&2048&&Ru(h.alternate,h);break;default:Mi(u,h,v,C,r)}t=t.sibling}}function Rs(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,r=i.flags;switch(i.tag){case 22:Rs(n,i),r&2048&&zu(i.alternate,i);break;case 24:Rs(n,i),r&2048&&Ru(i.alternate,i);break;default:Rs(n,i)}t=t.sibling}}var Os=8192;function Ei(e,t,n){if(e.subtreeFlags&Os)for(e=e.child;e!==null;)Vh(e,t,n),e=e.sibling}function Vh(e,t,n){switch(e.tag){case 26:Ei(e,t,n),e.flags&Os&&e.memoizedState!==null&&Bx(n,fn,e.memoizedState,e.memoizedProps);break;case 5:Ei(e,t,n);break;case 3:case 4:var i=fn;fn=bo(e.stateNode.containerInfo),Ei(e,t,n),fn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=Os,Os=16777216,Ei(e,t,n),Os=i):Ei(e,t,n));break;default:Ei(e,t,n)}}function _h(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Vs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];ct=i,Bh(i,e)}_h(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)kh(e),e=e.sibling}function kh(e){switch(e.tag){case 0:case 11:case 15:Vs(e),e.flags&2048&&oa(9,e,e.return);break;case 3:Vs(e);break;case 12:Vs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,io(e)):Vs(e);break;default:Vs(e)}}function io(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];ct=i,Bh(i,e)}_h(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:oa(8,t,t.return),io(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,io(t));break;default:io(t)}e=e.sibling}}function Bh(e,t){for(;ct!==null;){var n=ct;switch(n.tag){case 0:case 11:case 15:oa(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:gs(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,ct=i;else e:for(n=e;ct!==null;){i=ct;var r=i.sibling,u=i.return;if(Ah(i),i===n){ct=null;break e}if(r!==null){r.return=u,ct=r;break e}ct=u}}}var $v={getCacheForType:function(e){var t=mt(et),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return mt(et).controller.signal}},Iv=typeof WeakMap=="function"?WeakMap:Map,Oe=0,Ge=null,je=null,Ae=0,ke=0,Yt=null,ra=!1,Di=!1,Ou=!1,Gn=0,Fe=0,ua=0,qa=0,Vu=0,qt=0,zi=0,_s=null,Ot=null,_u=!1,so=0,Lh=0,lo=1/0,oo=null,ca=null,lt=0,da=null,Ri=null,Yn=0,ku=0,Bu=null,Uh=null,ks=0,Lu=null;function Xt(){return(Oe&2)!==0&&Ae!==0?Ae&-Ae:E.T!==null?Xu():ef()}function Hh(){if(qt===0)if((Ae&536870912)===0||Ee){var e=pl;pl<<=1,(pl&3932160)===0&&(pl=262144),qt=e}else qt=536870912;return e=Ht.current,e!==null&&(e.flags|=32),qt}function Vt(e,t,n){(e===Ge&&(ke===2||ke===9)||e.cancelPendingCommit!==null)&&(Oi(e,0),fa(e,Ae,qt,!1)),as(e,n),((Oe&2)===0||e!==Ge)&&(e===Ge&&((Oe&2)===0&&(qa|=n),Fe===4&&fa(e,Ae,qt,!1)),Sn(e))}function Gh(e,t,n){if((Oe&6)!==0)throw Error(o(327));var i=!n&&(t&127)===0&&(t&e.expiredLanes)===0||ns(e,t),r=i?nx(e,t):Hu(e,t,!0),u=i;do{if(r===0){Di&&!i&&fa(e,t,0,!1);break}else{if(n=e.current.alternate,u&&!ex(n)){r=Hu(e,t,!1),u=!1;continue}if(r===2){if(u=t,e.errorRecoveryDisabledLanes&u)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var v=e;r=_s;var C=v.current.memoizedState.isDehydrated;if(C&&(Oi(v,h).flags|=256),h=Hu(v,h,!1),h!==2){if(Ou&&!C){v.errorRecoveryDisabledLanes|=u,qa|=u,r=4;break e}u=Ot,Ot=r,u!==null&&(Ot===null?Ot=u:Ot.push.apply(Ot,u))}r=h}if(u=!1,r!==2)continue}}if(r===1){Oi(e,0),fa(e,t,0,!0);break}e:{switch(i=e,u=r,u){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:fa(i,t,qt,!ra);break e;case 2:Ot=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(r=so+300-Tt(),10<r)){if(fa(i,t,qt,!ra),gl(i,0,!0)!==0)break e;Yn=t,i.timeoutHandle=bp(Yh.bind(null,i,n,Ot,oo,_u,t,qt,qa,zi,ra,u,"Throttled",-0,0),r);break e}Yh(i,n,Ot,oo,_u,t,qt,qa,zi,ra,u,null,-0,0)}}break}while(!0);Sn(e)}function Yh(e,t,n,i,r,u,h,v,C,_,G,Q,B,L){if(e.timeoutHandle=-1,Q=t.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:An},Vh(t,u,Q);var ie=(u&62914560)===u?so-Tt():(u&4194048)===u?Lh-Tt():0;if(ie=Lx(Q,ie),ie!==null){Yn=u,e.cancelPendingCommit=ie(Fh.bind(null,e,t,u,n,i,r,h,v,C,G,Q,null,B,L)),fa(e,u,h,!_);return}}Fh(e,t,u,n,i,r,h,v,C)}function ex(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var r=n[i],u=r.getSnapshot;r=r.value;try{if(!Lt(u(),r))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function fa(e,t,n,i){t&=~Vu,t&=~qa,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var r=t;0<r;){var u=31-Bt(r),h=1<<u;i[u]=-1,r&=~h}n!==0&&Wd(e,n,t)}function ro(){return(Oe&6)===0?(Bs(0),!1):!0}function Uu(){if(je!==null){if(ke===0)var e=je.return;else e=je,zn=Va=null,tu(e),wi=null,vs=0,e=je;for(;e!==null;)vh(e.alternate,e),e=e.return;je=null}}function Oi(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,xx(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Yn=0,Uu(),Ge=e,je=n=En(e.current,null),Ae=t,ke=0,Yt=null,ra=!1,Di=ns(e,t),Ou=!1,zi=qt=Vu=qa=ua=Fe=0,Ot=_s=null,_u=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var r=31-Bt(i),u=1<<r;t|=e[r],i&=~u}return Gn=t,El(),n}function qh(e,t){Se=null,E.H=As,t===Ci||t===Bl?(t=sm(),ke=3):t===qr?(t=sm(),ke=4):ke=t===gu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Yt=t,je===null&&(Fe=1,Wl(e,Ft(t,e.current)))}function Xh(){var e=Ht.current;return e===null?!0:(Ae&4194048)===Ae?en===null:(Ae&62914560)===Ae||(Ae&536870912)!==0?e===en:!1}function Kh(){var e=E.H;return E.H=As,e===null?As:e}function Qh(){var e=E.A;return E.A=$v,e}function uo(){Fe=4,ra||(Ae&4194048)!==Ae&&Ht.current!==null||(Di=!0),(ua&134217727)===0&&(qa&134217727)===0||Ge===null||fa(Ge,Ae,qt,!1)}function Hu(e,t,n){var i=Oe;Oe|=2;var r=Kh(),u=Qh();(Ge!==e||Ae!==t)&&(oo=null,Oi(e,t)),t=!1;var h=Fe;e:do try{if(ke!==0&&je!==null){var v=je,C=Yt;switch(ke){case 8:Uu(),h=6;break e;case 3:case 2:case 9:case 6:Ht.current===null&&(t=!0);var _=ke;if(ke=0,Yt=null,Vi(e,v,C,_),n&&Di){h=0;break e}break;default:_=ke,ke=0,Yt=null,Vi(e,v,C,_)}}tx(),h=Fe;break}catch(G){qh(e,G)}while(!0);return t&&e.shellSuspendCounter++,zn=Va=null,Oe=i,E.H=r,E.A=u,je===null&&(Ge=null,Ae=0,El()),h}function tx(){for(;je!==null;)Zh(je)}function nx(e,t){var n=Oe;Oe|=2;var i=Kh(),r=Qh();Ge!==e||Ae!==t?(oo=null,lo=Tt()+500,Oi(e,t)):Di=ns(e,t);e:do try{if(ke!==0&&je!==null){t=je;var u=Yt;t:switch(ke){case 1:ke=0,Yt=null,Vi(e,t,u,1);break;case 2:case 9:if(am(u)){ke=0,Yt=null,Jh(t);break}t=function(){ke!==2&&ke!==9||Ge!==e||(ke=7),Sn(e)},u.then(t,t);break e;case 3:ke=7;break e;case 4:ke=5;break e;case 7:am(u)?(ke=0,Yt=null,Jh(t)):(ke=0,Yt=null,Vi(e,t,u,7));break;case 5:var h=null;switch(je.tag){case 26:h=je.memoizedState;case 5:case 27:var v=je;if(h?Op(h):v.stateNode.complete){ke=0,Yt=null;var C=v.sibling;if(C!==null)je=C;else{var _=v.return;_!==null?(je=_,co(_)):je=null}break t}}ke=0,Yt=null,Vi(e,t,u,5);break;case 6:ke=0,Yt=null,Vi(e,t,u,6);break;case 8:Uu(),Fe=6;break e;default:throw Error(o(462))}}ax();break}catch(G){qh(e,G)}while(!0);return zn=Va=null,E.H=i,E.A=r,Oe=n,je!==null?0:(Ge=null,Ae=0,El(),Fe)}function ax(){for(;je!==null&&!cn();)Zh(je)}function Zh(e){var t=gh(e.alternate,e,Gn);e.memoizedProps=e.pendingProps,t===null?co(e):je=t}function Jh(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=dh(n,t,t.pendingProps,t.type,void 0,Ae);break;case 11:t=dh(n,t,t.pendingProps,t.type.render,t.ref,Ae);break;case 5:tu(t);default:vh(n,t),t=je=Qf(t,Gn),t=gh(n,t,Gn)}e.memoizedProps=e.pendingProps,t===null?co(e):je=t}function Vi(e,t,n,i){zn=Va=null,tu(t),wi=null,vs=0;var r=t.return;try{if(Kv(e,r,t,n,Ae)){Fe=1,Wl(e,Ft(n,e.current)),je=null;return}}catch(u){if(r!==null)throw je=r,u;Fe=1,Wl(e,Ft(n,e.current)),je=null;return}t.flags&32768?(Ee||i===1?e=!0:Di||(Ae&536870912)!==0?e=!1:(ra=e=!0,(i===2||i===9||i===3||i===6)&&(i=Ht.current,i!==null&&i.tag===13&&(i.flags|=16384))),Ph(t,e)):co(t)}function co(e){var t=e;do{if((t.flags&32768)!==0){Ph(t,ra);return}e=t.return;var n=Jv(t.alternate,t,Gn);if(n!==null){je=n;return}if(t=t.sibling,t!==null){je=t;return}je=t=e}while(t!==null);Fe===0&&(Fe=5)}function Ph(e,t){do{var n=Pv(e.alternate,e);if(n!==null){n.flags&=32767,je=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){je=e;return}je=e=n}while(e!==null);Fe=6,je=null}function Fh(e,t,n,i,r,u,h,v,C){e.cancelPendingCommit=null;do fo();while(lt!==0);if((Oe&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(u=t.lanes|t.childLanes,u|=Mr,kb(e,n,u,h,v,C),e===Ge&&(je=Ge=null,Ae=0),Ri=t,da=e,Yn=n,ku=u,Bu=r,Uh=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,ox(ml,function(){return tp(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=E.T,E.T=null,r=U.p,U.p=2,h=Oe,Oe|=4;try{Fv(e,t,n)}finally{Oe=h,U.p=r,E.T=i}}lt=1,Wh(),$h(),Ih()}}function Wh(){if(lt===1){lt=0;var e=da,t=Ri,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=E.T,E.T=null;var i=U.p;U.p=2;var r=Oe;Oe|=4;try{zh(t,e);var u=$u,h=Bf(e.containerInfo),v=u.focusedElem,C=u.selectionRange;if(h!==v&&v&&v.ownerDocument&&kf(v.ownerDocument.documentElement,v)){if(C!==null&&wr(v)){var _=C.start,G=C.end;if(G===void 0&&(G=_),"selectionStart"in v)v.selectionStart=_,v.selectionEnd=Math.min(G,v.value.length);else{var Q=v.ownerDocument||document,B=Q&&Q.defaultView||window;if(B.getSelection){var L=B.getSelection(),ie=v.textContent.length,pe=Math.min(C.start,ie),He=C.end===void 0?pe:Math.min(C.end,ie);!L.extend&&pe>He&&(h=He,He=pe,pe=h);var A=_f(v,pe),j=_f(v,He);if(A&&j&&(L.rangeCount!==1||L.anchorNode!==A.node||L.anchorOffset!==A.offset||L.focusNode!==j.node||L.focusOffset!==j.offset)){var V=Q.createRange();V.setStart(A.node,A.offset),L.removeAllRanges(),pe>He?(L.addRange(V),L.extend(j.node,j.offset)):(V.setEnd(j.node,j.offset),L.addRange(V))}}}}for(Q=[],L=v;L=L.parentNode;)L.nodeType===1&&Q.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<Q.length;v++){var q=Q[v];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}jo=!!Wu,$u=Wu=null}finally{Oe=r,U.p=i,E.T=n}}e.current=t,lt=2}}function $h(){if(lt===2){lt=0;var e=da,t=Ri,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=E.T,E.T=null;var i=U.p;U.p=2;var r=Oe;Oe|=4;try{Nh(e,t.alternate,t)}finally{Oe=r,U.p=i,E.T=n}}lt=3}}function Ih(){if(lt===4||lt===3){lt=0,jt();var e=da,t=Ri,n=Yn,i=Uh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?lt=5:(lt=0,Ri=da=null,ep(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(ca=null),ir(n),t=t.stateNode,kt&&typeof kt.onCommitFiberRoot=="function")try{kt.onCommitFiberRoot(ts,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=E.T,r=U.p,U.p=2,E.T=null;try{for(var u=e.onRecoverableError,h=0;h<i.length;h++){var v=i[h];u(v.value,{componentStack:v.stack})}}finally{E.T=t,U.p=r}}(Yn&3)!==0&&fo(),Sn(e),r=e.pendingLanes,(n&261930)!==0&&(r&42)!==0?e===Lu?ks++:(ks=0,Lu=e):ks=0,Bs(0)}}function ep(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,gs(t)))}function fo(){return Wh(),$h(),Ih(),tp()}function tp(){if(lt!==5)return!1;var e=da,t=ku;ku=0;var n=ir(Yn),i=E.T,r=U.p;try{U.p=32>n?32:n,E.T=null,n=Bu,Bu=null;var u=da,h=Yn;if(lt=0,Ri=da=null,Yn=0,(Oe&6)!==0)throw Error(o(331));var v=Oe;if(Oe|=4,kh(u.current),Oh(u,u.current,h,n),Oe=v,Bs(0,!1),kt&&typeof kt.onPostCommitFiberRoot=="function")try{kt.onPostCommitFiberRoot(ts,u)}catch{}return!0}finally{U.p=r,E.T=i,ep(e,t)}}function np(e,t,n){t=Ft(n,t),t=yu(e.stateNode,t,2),e=ia(e,t,2),e!==null&&(as(e,2),Sn(e))}function Be(e,t,n){if(e.tag===3)np(e,e,n);else for(;t!==null;){if(t.tag===3){np(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(ca===null||!ca.has(i))){e=Ft(n,e),n=ah(2),i=ia(t,n,2),i!==null&&(ih(n,i,t,e),as(i,2),Sn(i));break}}t=t.return}}function Gu(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new Iv;var r=new Set;i.set(t,r)}else r=i.get(t),r===void 0&&(r=new Set,i.set(t,r));r.has(n)||(Ou=!0,r.add(n),e=ix.bind(null,e,t,n),t.then(e,e))}function ix(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ge===e&&(Ae&n)===n&&(Fe===4||Fe===3&&(Ae&62914560)===Ae&&300>Tt()-so?(Oe&2)===0&&Oi(e,0):Vu|=n,zi===Ae&&(zi=0)),Sn(e)}function ap(e,t){t===0&&(t=Fd()),e=za(e,t),e!==null&&(as(e,t),Sn(e))}function sx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ap(e,n)}function lx(e,t){var n=0;switch(e.tag){case 31:case 13:var i=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(o(314))}i!==null&&i.delete(t),ap(e,n)}function ox(e,t){return ge(e,t)}var mo=null,_i=null,Yu=!1,ho=!1,qu=!1,ma=0;function Sn(e){e!==_i&&e.next===null&&(_i===null?mo=_i=e:_i=_i.next=e),ho=!0,Yu||(Yu=!0,ux())}function Bs(e,t){if(!qu&&ho){qu=!0;do for(var n=!1,i=mo;i!==null;){if(e!==0){var r=i.pendingLanes;if(r===0)var u=0;else{var h=i.suspendedLanes,v=i.pingedLanes;u=(1<<31-Bt(42|e)+1)-1,u&=r&~(h&~v),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,op(i,u))}else u=Ae,u=gl(i,i===Ge?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(u&3)===0||ns(i,u)||(n=!0,op(i,u));i=i.next}while(n);qu=!1}}function rx(){ip()}function ip(){ho=Yu=!1;var e=0;ma!==0&&vx()&&(e=ma);for(var t=Tt(),n=null,i=mo;i!==null;){var r=i.next,u=sp(i,t);u===0?(i.next=null,n===null?mo=r:n.next=r,r===null&&(_i=n)):(n=i,(e!==0||(u&3)!==0)&&(ho=!0)),i=r}lt!==0&<!==5||Bs(e),ma!==0&&(ma=0)}function sp(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,r=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var h=31-Bt(u),v=1<<h,C=r[h];C===-1?((v&n)===0||(v&i)!==0)&&(r[h]=_b(v,t)):C<=t&&(e.expiredLanes|=v),u&=~v}if(t=Ge,n=Ae,n=gl(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(ke===2||ke===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Ne(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||ns(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&Ne(i),ir(n)){case 2:case 8:n=Tn;break;case 32:n=ml;break;case 268435456:n=Pd;break;default:n=ml}return i=lp.bind(null,e),n=ge(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&Ne(i),e.callbackPriority=2,e.callbackNode=null,2}function lp(e,t){if(lt!==0&<!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(fo()&&e.callbackNode!==n)return null;var i=Ae;return i=gl(e,e===Ge?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(Gh(e,i,t),sp(e,Tt()),e.callbackNode!=null&&e.callbackNode===n?lp.bind(null,e):null)}function op(e,t){if(fo())return null;Gh(e,t,!0)}function ux(){Sx(function(){(Oe&6)!==0?ge(ti,rx):ip()})}function Xu(){if(ma===0){var e=xi;e===0&&(e=hl,hl<<=1,(hl&261888)===0&&(hl=256)),ma=e}return ma}function rp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Sl(""+e)}function up(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function cx(e,t,n,i,r){if(t==="submit"&&n&&n.stateNode===r){var u=rp((r[Mt]||null).action),h=i.submitter;h&&(t=(t=h[Mt]||null)?rp(t.formAction):h.getAttribute("formAction"),t!==null&&(u=t,h=null));var v=new Tl("action","action",null,i,r);e.push({event:v,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(ma!==0){var C=h?up(r,h):new FormData(r);cu(n,{pending:!0,data:C,method:r.method,action:u},null,C)}}else typeof u=="function"&&(v.preventDefault(),C=h?up(r,h):new FormData(r),cu(n,{pending:!0,data:C,method:r.method,action:u},u,C))},currentTarget:r}]})}}for(var Ku=0;Ku<Ar.length;Ku++){var Qu=Ar[Ku],dx=Qu.toLowerCase(),fx=Qu[0].toUpperCase()+Qu.slice(1);dn(dx,"on"+fx)}dn(Hf,"onAnimationEnd"),dn(Gf,"onAnimationIteration"),dn(Yf,"onAnimationStart"),dn("dblclick","onDoubleClick"),dn("focusin","onFocus"),dn("focusout","onBlur"),dn(Mv,"onTransitionRun"),dn(Ev,"onTransitionStart"),dn(Dv,"onTransitionCancel"),dn(qf,"onTransitionEnd"),li("onMouseEnter",["mouseout","mouseover"]),li("onMouseLeave",["mouseout","mouseover"]),li("onPointerEnter",["pointerout","pointerover"]),li("onPointerLeave",["pointerout","pointerover"]),Aa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Aa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Aa("onBeforeInput",["compositionend","keypress","textInput","paste"]),Aa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Aa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Aa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ls="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(" "),mx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ls));function cp(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],r=i.event;i=i.listeners;e:{var u=void 0;if(t)for(var h=i.length-1;0<=h;h--){var v=i[h],C=v.instance,_=v.currentTarget;if(v=v.listener,C!==u&&r.isPropagationStopped())break e;u=v,r.currentTarget=_;try{u(r)}catch(G){Ml(G)}r.currentTarget=null,u=C}else for(h=0;h<i.length;h++){if(v=i[h],C=v.instance,_=v.currentTarget,v=v.listener,C!==u&&r.isPropagationStopped())break e;u=v,r.currentTarget=_;try{u(r)}catch(G){Ml(G)}r.currentTarget=null,u=C}}}}function Te(e,t){var n=t[sr];n===void 0&&(n=t[sr]=new Set);var i=e+"__bubble";n.has(i)||(dp(t,e,2,!1),n.add(i))}function Zu(e,t,n){var i=0;t&&(i|=4),dp(n,e,i,t)}var po="_reactListening"+Math.random().toString(36).slice(2);function Ju(e){if(!e[po]){e[po]=!0,af.forEach(function(n){n!=="selectionchange"&&(mx.has(n)||Zu(n,!1,e),Zu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[po]||(t[po]=!0,Zu("selectionchange",!1,t))}}function dp(e,t,n,i){switch(Hp(t)){case 2:var r=Gx;break;case 8:r=Yx;break;default:r=uc}n=r.bind(null,t,n,e),r=void 0,!hr||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),i?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function Pu(e,t,n,i,r){var u=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var h=i.tag;if(h===3||h===4){var v=i.stateNode.containerInfo;if(v===r)break;if(h===4)for(h=i.return;h!==null;){var C=h.tag;if((C===3||C===4)&&h.stateNode.containerInfo===r)return;h=h.return}for(;v!==null;){if(h=ai(v),h===null)return;if(C=h.tag,C===5||C===6||C===26||C===27){i=u=h;continue e}v=v.parentNode}}i=i.return}yf(function(){var _=u,G=fr(n),Q=[];e:{var B=Xf.get(e);if(B!==void 0){var L=Tl,ie=e;switch(e){case"keypress":if(wl(n)===0)break e;case"keydown":case"keyup":L=lv;break;case"focusin":ie="focus",L=br;break;case"focusout":ie="blur",L=br;break;case"beforeblur":case"afterblur":L=br;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":L=vf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=Jb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=uv;break;case Hf:case Gf:case Yf:L=Wb;break;case qf:L=dv;break;case"scroll":case"scrollend":L=Qb;break;case"wheel":L=mv;break;case"copy":case"cut":case"paste":L=Ib;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=Sf;break;case"toggle":case"beforetoggle":L=pv}var pe=(t&4)!==0,He=!pe&&(e==="scroll"||e==="scrollend"),A=pe?B!==null?B+"Capture":null:B;pe=[];for(var j=_,V;j!==null;){var q=j;if(V=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||V===null||A===null||(q=ls(j,A),q!=null&&pe.push(Us(j,q,V))),He)break;j=j.return}0<pe.length&&(B=new L(B,ie,null,n,G),Q.push({event:B,listeners:pe}))}}if((t&7)===0){e:{if(B=e==="mouseover"||e==="pointerover",L=e==="mouseout"||e==="pointerout",B&&n!==dr&&(ie=n.relatedTarget||n.fromElement)&&(ai(ie)||ie[ni]))break e;if((L||B)&&(B=G.window===G?G:(B=G.ownerDocument)?B.defaultView||B.parentWindow:window,L?(ie=n.relatedTarget||n.toElement,L=_,ie=ie?ai(ie):null,ie!==null&&(He=m(ie),pe=ie.tag,ie!==He||pe!==5&&pe!==27&&pe!==6)&&(ie=null)):(L=null,ie=_),L!==ie)){if(pe=vf,q="onMouseLeave",A="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(pe=Sf,q="onPointerLeave",A="onPointerEnter",j="pointer"),He=L==null?B:ss(L),V=ie==null?B:ss(ie),B=new pe(q,j+"leave",L,n,G),B.target=He,B.relatedTarget=V,q=null,ai(G)===_&&(pe=new pe(A,j+"enter",ie,n,G),pe.target=V,pe.relatedTarget=He,q=pe),He=q,L&&ie)t:{for(pe=hx,A=L,j=ie,V=0,q=A;q;q=pe(q))V++;q=0;for(var fe=j;fe;fe=pe(fe))q++;for(;0<V-q;)A=pe(A),V--;for(;0<q-V;)j=pe(j),q--;for(;V--;){if(A===j||j!==null&&A===j.alternate){pe=A;break t}A=pe(A),j=pe(j)}pe=null}else pe=null;L!==null&&fp(Q,B,L,pe,!1),ie!==null&&He!==null&&fp(Q,He,ie,pe,!0)}}e:{if(B=_?ss(_):window,L=B.nodeName&&B.nodeName.toLowerCase(),L==="select"||L==="input"&&B.type==="file")var De=Ef;else if(Af(B))if(Df)De=Tv;else{De=wv;var ue=Cv}else L=B.nodeName,!L||L.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?_&&cr(_.elementType)&&(De=Ef):De=jv;if(De&&(De=De(e,_))){Mf(Q,De,n,G);break e}ue&&ue(e,B,_),e==="focusout"&&_&&B.type==="number"&&_.memoizedProps.value!=null&&ur(B,"number",B.value)}switch(ue=_?ss(_):window,e){case"focusin":(Af(ue)||ue.contentEditable==="true")&&(fi=ue,jr=_,hs=null);break;case"focusout":hs=jr=fi=null;break;case"mousedown":Tr=!0;break;case"contextmenu":case"mouseup":case"dragend":Tr=!1,Lf(Q,n,G);break;case"selectionchange":if(Av)break;case"keydown":case"keyup":Lf(Q,n,G)}var Ce;if(xr)e:{switch(e){case"compositionstart":var Me="onCompositionStart";break e;case"compositionend":Me="onCompositionEnd";break e;case"compositionupdate":Me="onCompositionUpdate";break e}Me=void 0}else di?Tf(e,n)&&(Me="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Me="onCompositionStart");Me&&(Cf&&n.locale!=="ko"&&(di||Me!=="onCompositionStart"?Me==="onCompositionEnd"&&di&&(Ce=gf()):(Wn=G,pr="value"in Wn?Wn.value:Wn.textContent,di=!0)),ue=yo(_,Me),0<ue.length&&(Me=new xf(Me,e,null,n,G),Q.push({event:Me,listeners:ue}),Ce?Me.data=Ce:(Ce=Nf(n),Ce!==null&&(Me.data=Ce)))),(Ce=gv?bv(e,n):vv(e,n))&&(Me=yo(_,"onBeforeInput"),0<Me.length&&(ue=new xf("onBeforeInput","beforeinput",null,n,G),Q.push({event:ue,listeners:Me}),ue.data=Ce)),cx(Q,e,_,n,G)}cp(Q,t)})}function Us(e,t,n){return{instance:e,listener:t,currentTarget:n}}function yo(e,t){for(var n=t+"Capture",i=[];e!==null;){var r=e,u=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||u===null||(r=ls(e,n),r!=null&&i.unshift(Us(e,r,u)),r=ls(e,t),r!=null&&i.push(Us(e,r,u))),e.tag===3)return i;e=e.return}return[]}function hx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function fp(e,t,n,i,r){for(var u=t._reactName,h=[];n!==null&&n!==i;){var v=n,C=v.alternate,_=v.stateNode;if(v=v.tag,C!==null&&C===i)break;v!==5&&v!==26&&v!==27||_===null||(C=_,r?(_=ls(n,u),_!=null&&h.unshift(Us(n,_,C))):r||(_=ls(n,u),_!=null&&h.push(Us(n,_,C)))),n=n.return}h.length!==0&&e.push({event:t,listeners:h})}var px=/\r\n?/g,yx=/\u0000|\uFFFD/g;function mp(e){return(typeof e=="string"?e:""+e).replace(px,`
|
|
9
|
-
`).replace(yx,"")}function hp(e,t){return t=mp(t),mp(e)===t}function Ue(e,t,n,i,r,u){switch(n){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||ri(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&ri(e,""+i);break;case"className":vl(e,"class",i);break;case"tabIndex":vl(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":vl(e,n,i);break;case"style":hf(e,i,u);break;case"data":if(t!=="object"){vl(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Sl(""+i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(n==="formAction"?(t!=="input"&&Ue(e,t,"name",r.name,r,null),Ue(e,t,"formEncType",r.formEncType,r,null),Ue(e,t,"formMethod",r.formMethod,r,null),Ue(e,t,"formTarget",r.formTarget,r,null)):(Ue(e,t,"encType",r.encType,r,null),Ue(e,t,"method",r.method,r,null),Ue(e,t,"target",r.target,r,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Sl(""+i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=An);break;case"onScroll":i!=null&&Te("scroll",e);break;case"onScrollEnd":i!=null&&Te("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(o(61));if(n=i.__html,n!=null){if(r.children!=null)throw Error(o(60));e.innerHTML=n}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}n=Sl(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""+i):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":Te("beforetoggle",e),Te("toggle",e),bl(e,"popover",i);break;case"xlinkActuate":Nn(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Nn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Nn(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Nn(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Nn(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Nn(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Nn(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Nn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Nn(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":bl(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Xb.get(n)||n,bl(e,n,i))}}function Fu(e,t,n,i,r,u){switch(n){case"style":hf(e,i,u);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(o(61));if(n=i.__html,n!=null){if(r.children!=null)throw Error(o(60));e.innerHTML=n}}break;case"children":typeof i=="string"?ri(e,i):(typeof i=="number"||typeof i=="bigint")&&ri(e,""+i);break;case"onScroll":i!=null&&Te("scroll",e);break;case"onScrollEnd":i!=null&&Te("scrollend",e);break;case"onClick":i!=null&&(e.onclick=An);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!sf.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),t=n.slice(2,r?n.length-7:void 0),u=e[Mt]||null,u=u!=null?u[n]:null,typeof u=="function"&&e.removeEventListener(t,u,r),typeof i=="function")){typeof u!="function"&&u!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,i,r);break e}n in e?e[n]=i:i===!0?e.setAttribute(n,""):bl(e,n,i)}}}function pt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Te("error",e),Te("load",e);var i=!1,r=!1,u;for(u in n)if(n.hasOwnProperty(u)){var h=n[u];if(h!=null)switch(u){case"src":i=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Ue(e,t,u,h,n,null)}}r&&Ue(e,t,"srcSet",n.srcSet,n,null),i&&Ue(e,t,"src",n.src,n,null);return;case"input":Te("invalid",e);var v=u=h=r=null,C=null,_=null;for(i in n)if(n.hasOwnProperty(i)){var G=n[i];if(G!=null)switch(i){case"name":r=G;break;case"type":h=G;break;case"checked":C=G;break;case"defaultChecked":_=G;break;case"value":u=G;break;case"defaultValue":v=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(o(137,t));break;default:Ue(e,t,i,G,n,null)}}cf(e,u,v,C,_,h,r,!1);return;case"select":Te("invalid",e),i=h=u=null;for(r in n)if(n.hasOwnProperty(r)&&(v=n[r],v!=null))switch(r){case"value":u=v;break;case"defaultValue":h=v;break;case"multiple":i=v;default:Ue(e,t,r,v,n,null)}t=u,n=h,e.multiple=!!i,t!=null?oi(e,!!i,t,!1):n!=null&&oi(e,!!i,n,!0);return;case"textarea":Te("invalid",e),u=r=i=null;for(h in n)if(n.hasOwnProperty(h)&&(v=n[h],v!=null))switch(h){case"value":i=v;break;case"defaultValue":r=v;break;case"children":u=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(o(91));break;default:Ue(e,t,h,v,n,null)}ff(e,i,r,u);return;case"option":for(C in n)if(n.hasOwnProperty(C)&&(i=n[C],i!=null))switch(C){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Ue(e,t,C,i,n,null)}return;case"dialog":Te("beforetoggle",e),Te("toggle",e),Te("cancel",e),Te("close",e);break;case"iframe":case"object":Te("load",e);break;case"video":case"audio":for(i=0;i<Ls.length;i++)Te(Ls[i],e);break;case"image":Te("error",e),Te("load",e);break;case"details":Te("toggle",e);break;case"embed":case"source":case"link":Te("error",e),Te("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(_ in n)if(n.hasOwnProperty(_)&&(i=n[_],i!=null))switch(_){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Ue(e,t,_,i,n,null)}return;default:if(cr(t)){for(G in n)n.hasOwnProperty(G)&&(i=n[G],i!==void 0&&Fu(e,t,G,i,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(i=n[v],i!=null&&Ue(e,t,v,i,n,null))}function gx(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,u=null,h=null,v=null,C=null,_=null,G=null;for(L in n){var Q=n[L];if(n.hasOwnProperty(L)&&Q!=null)switch(L){case"checked":break;case"value":break;case"defaultValue":C=Q;default:i.hasOwnProperty(L)||Ue(e,t,L,null,i,Q)}}for(var B in i){var L=i[B];if(Q=n[B],i.hasOwnProperty(B)&&(L!=null||Q!=null))switch(B){case"type":u=L;break;case"name":r=L;break;case"checked":_=L;break;case"defaultChecked":G=L;break;case"value":h=L;break;case"defaultValue":v=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(o(137,t));break;default:L!==Q&&Ue(e,t,B,L,i,Q)}}rr(e,h,v,C,_,G,u,r);return;case"select":L=h=v=B=null;for(u in n)if(C=n[u],n.hasOwnProperty(u)&&C!=null)switch(u){case"value":break;case"multiple":L=C;default:i.hasOwnProperty(u)||Ue(e,t,u,null,i,C)}for(r in i)if(u=i[r],C=n[r],i.hasOwnProperty(r)&&(u!=null||C!=null))switch(r){case"value":B=u;break;case"defaultValue":v=u;break;case"multiple":h=u;default:u!==C&&Ue(e,t,r,u,i,C)}t=v,n=h,i=L,B!=null?oi(e,!!n,B,!1):!!i!=!!n&&(t!=null?oi(e,!!n,t,!0):oi(e,!!n,n?[]:"",!1));return;case"textarea":L=B=null;for(v in n)if(r=n[v],n.hasOwnProperty(v)&&r!=null&&!i.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Ue(e,t,v,null,i,r)}for(h in i)if(r=i[h],u=n[h],i.hasOwnProperty(h)&&(r!=null||u!=null))switch(h){case"value":B=r;break;case"defaultValue":L=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(o(91));break;default:r!==u&&Ue(e,t,h,r,i,u)}df(e,B,L);return;case"option":for(var ie in n)if(B=n[ie],n.hasOwnProperty(ie)&&B!=null&&!i.hasOwnProperty(ie))switch(ie){case"selected":e.selected=!1;break;default:Ue(e,t,ie,null,i,B)}for(C in i)if(B=i[C],L=n[C],i.hasOwnProperty(C)&&B!==L&&(B!=null||L!=null))switch(C){case"selected":e.selected=B&&typeof B!="function"&&typeof B!="symbol";break;default:Ue(e,t,C,B,i,L)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var pe in n)B=n[pe],n.hasOwnProperty(pe)&&B!=null&&!i.hasOwnProperty(pe)&&Ue(e,t,pe,null,i,B);for(_ in i)if(B=i[_],L=n[_],i.hasOwnProperty(_)&&B!==L&&(B!=null||L!=null))switch(_){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(o(137,t));break;default:Ue(e,t,_,B,i,L)}return;default:if(cr(t)){for(var He in n)B=n[He],n.hasOwnProperty(He)&&B!==void 0&&!i.hasOwnProperty(He)&&Fu(e,t,He,void 0,i,B);for(G in i)B=i[G],L=n[G],!i.hasOwnProperty(G)||B===L||B===void 0&&L===void 0||Fu(e,t,G,B,i,L);return}}for(var A in n)B=n[A],n.hasOwnProperty(A)&&B!=null&&!i.hasOwnProperty(A)&&Ue(e,t,A,null,i,B);for(Q in i)B=i[Q],L=n[Q],!i.hasOwnProperty(Q)||B===L||B==null&&L==null||Ue(e,t,Q,B,i,L)}function pp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function bx(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var r=n[i],u=r.transferSize,h=r.initiatorType,v=r.duration;if(u&&v&&pp(h)){for(h=0,v=r.responseEnd,i+=1;i<n.length;i++){var C=n[i],_=C.startTime;if(_>v)break;var G=C.transferSize,Q=C.initiatorType;G&&pp(Q)&&(C=C.responseEnd,h+=G*(C<v?1:(v-_)/(C-_)))}if(--i,t+=8*(u+h)/(r.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Wu=null,$u=null;function go(e){return e.nodeType===9?e:e.ownerDocument}function yp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function gp(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Iu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ec=null;function vx(){var e=window.event;return e&&e.type==="popstate"?e===ec?!1:(ec=e,!0):(ec=null,!1)}var bp=typeof setTimeout=="function"?setTimeout:void 0,xx=typeof clearTimeout=="function"?clearTimeout:void 0,vp=typeof Promise=="function"?Promise:void 0,Sx=typeof queueMicrotask=="function"?queueMicrotask:typeof vp<"u"?function(e){return vp.resolve(null).then(e).catch(Cx)}:bp;function Cx(e){setTimeout(function(){throw e})}function ha(e){return e==="head"}function xp(e,t){var n=t,i=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"||n==="/&"){if(i===0){e.removeChild(r),Ui(t);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")Hs(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Hs(n);for(var u=n.firstChild;u;){var h=u.nextSibling,v=u.nodeName;u[is]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=h}}else n==="body"&&Hs(e.ownerDocument.body);n=r}while(n);Ui(t)}function Sp(e,t){var n=e;e=0;do{var i=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=i}while(n)}function tc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":tc(n),lr(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function wx(e,t,n,i){for(;e.nodeType===1;){var r=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[is])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=tn(e.nextSibling),e===null)break}return null}function jx(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=tn(e.nextSibling),e===null))return null;return e}function Cp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=tn(e.nextSibling),e===null))return null;return e}function nc(e){return e.data==="$?"||e.data==="$~"}function ac(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Tx(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function tn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var ic=null;function wp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return tn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function jp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Tp(e,t,n){switch(t=go(n),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Hs(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);lr(e)}var nn=new Map,Np=new Set;function bo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var qn=U.d;U.d={f:Nx,r:Ax,D:Mx,C:Ex,L:Dx,m:zx,X:Ox,S:Rx,M:Vx};function Nx(){var e=qn.f(),t=ro();return e||t}function Ax(e){var t=ii(e);t!==null&&t.tag===5&&t.type==="form"?qm(t):qn.r(e)}var ki=typeof document>"u"?null:document;function Ap(e,t,n){var i=ki;if(i&&typeof t=="string"&&t){var r=Jt(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),Np.has(r)||(Np.add(r),e={rel:e,crossOrigin:n,href:t},i.querySelector(r)===null&&(t=i.createElement("link"),pt(t,"link",e),ut(t),i.head.appendChild(t)))}}function Mx(e){qn.D(e),Ap("dns-prefetch",e,null)}function Ex(e,t){qn.C(e,t),Ap("preconnect",e,t)}function Dx(e,t,n){qn.L(e,t,n);var i=ki;if(i&&e&&t){var r='link[rel="preload"][as="'+Jt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+Jt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+Jt(n.imageSizes)+'"]')):r+='[href="'+Jt(e)+'"]';var u=r;switch(t){case"style":u=Bi(e);break;case"script":u=Li(e)}nn.has(u)||(e=x({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),nn.set(u,e),i.querySelector(r)!==null||t==="style"&&i.querySelector(Gs(u))||t==="script"&&i.querySelector(Ys(u))||(t=i.createElement("link"),pt(t,"link",e),ut(t),i.head.appendChild(t)))}}function zx(e,t){qn.m(e,t);var n=ki;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+Jt(i)+'"][href="'+Jt(e)+'"]',u=r;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Li(e)}if(!nn.has(u)&&(e=x({rel:"modulepreload",href:e},t),nn.set(u,e),n.querySelector(r)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ys(u)))return}i=n.createElement("link"),pt(i,"link",e),ut(i),n.head.appendChild(i)}}}function Rx(e,t,n){qn.S(e,t,n);var i=ki;if(i&&e){var r=si(i).hoistableStyles,u=Bi(e);t=t||"default";var h=r.get(u);if(!h){var v={loading:0,preload:null};if(h=i.querySelector(Gs(u)))v.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},n),(n=nn.get(u))&&sc(e,n);var C=h=i.createElement("link");ut(C),pt(C,"link",e),C._p=new Promise(function(_,G){C.onload=_,C.onerror=G}),C.addEventListener("load",function(){v.loading|=1}),C.addEventListener("error",function(){v.loading|=2}),v.loading|=4,vo(h,t,i)}h={type:"stylesheet",instance:h,count:1,state:v},r.set(u,h)}}}function Ox(e,t){qn.X(e,t);var n=ki;if(n&&e){var i=si(n).hoistableScripts,r=Li(e),u=i.get(r);u||(u=n.querySelector(Ys(r)),u||(e=x({src:e,async:!0},t),(t=nn.get(r))&&lc(e,t),u=n.createElement("script"),ut(u),pt(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},i.set(r,u))}}function Vx(e,t){qn.M(e,t);var n=ki;if(n&&e){var i=si(n).hoistableScripts,r=Li(e),u=i.get(r);u||(u=n.querySelector(Ys(r)),u||(e=x({src:e,async:!0,type:"module"},t),(t=nn.get(r))&&lc(e,t),u=n.createElement("script"),ut(u),pt(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},i.set(r,u))}}function Mp(e,t,n,i){var r=(r=re.current)?bo(r):null;if(!r)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Bi(n.href),n=si(r).hoistableStyles,i=n.get(t),i||(i={type:"style",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Bi(n.href);var u=si(r).hoistableStyles,h=u.get(e);if(h||(r=r.ownerDocument||r,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,h),(u=r.querySelector(Gs(e)))&&!u._p&&(h.instance=u,h.state.loading=5),nn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},nn.set(e,n),u||_x(r,e,n,h.state))),t&&i===null)throw Error(o(528,""));return h}if(t&&i!==null)throw Error(o(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Li(n),n=si(r).hoistableScripts,i=n.get(t),i||(i={type:"script",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Bi(e){return'href="'+Jt(e)+'"'}function Gs(e){return'link[rel="stylesheet"]['+e+"]"}function Ep(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function _x(e,t,n,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),pt(t,"link",n),ut(t),e.head.appendChild(t))}function Li(e){return'[src="'+Jt(e)+'"]'}function Ys(e){return"script[async]"+e}function Dp(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Jt(n.href)+'"]');if(i)return t.instance=i,ut(i),i;var r=x({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),ut(i),pt(i,"style",r),vo(i,n.precedence,e),t.instance=i;case"stylesheet":r=Bi(n.href);var u=e.querySelector(Gs(r));if(u)return t.state.loading|=4,t.instance=u,ut(u),u;i=Ep(n),(r=nn.get(r))&&sc(i,r),u=(e.ownerDocument||e).createElement("link"),ut(u);var h=u;return h._p=new Promise(function(v,C){h.onload=v,h.onerror=C}),pt(u,"link",i),t.state.loading|=4,vo(u,n.precedence,e),t.instance=u;case"script":return u=Li(n.src),(r=e.querySelector(Ys(u)))?(t.instance=r,ut(r),r):(i=n,(r=nn.get(u))&&(i=x({},n),lc(i,r)),e=e.ownerDocument||e,r=e.createElement("script"),ut(r),pt(r,"link",i),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,vo(i,n.precedence,e));return t.instance}function vo(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=i.length?i[i.length-1]:null,u=r,h=0;h<i.length;h++){var v=i[h];if(v.dataset.precedence===t)u=v;else if(u!==r)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function sc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function lc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var xo=null;function zp(e,t,n){if(xo===null){var i=new Map,r=xo=new Map;r.set(n,i)}else r=xo,i=r.get(n),i||(i=new Map,r.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),r=0;r<n.length;r++){var u=n[r];if(!(u[is]||u[dt]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var h=u.getAttribute(t)||"";h=e+h;var v=i.get(h);v?v.push(u):i.set(h,[u])}}return i}function Rp(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function kx(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Op(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Bx(e,t,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var r=Bi(i.href),u=t.querySelector(Gs(r));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=So.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=u,ut(u);return}u=t.ownerDocument||t,i=Ep(i),(r=nn.get(r))&&sc(i,r),u=u.createElement("link"),ut(u);var h=u;h._p=new Promise(function(v,C){h.onload=v,h.onerror=C}),pt(u,"link",i),n.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=So.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var oc=0;function Lx(e,t){return e.stylesheets&&e.count===0&&wo(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var i=setTimeout(function(){if(e.stylesheets&&wo(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&oc===0&&(oc=62500*bx());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&wo(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>oc?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(r)}}:null}function So(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)wo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Co=null;function wo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Co=new Map,t.forEach(Ux,e),Co=null,So.call(e))}function Ux(e,t){if(!(t.state.loading&4)){var n=Co.get(e);if(n)var i=n.get(null);else{n=new Map,Co.set(e,n);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<r.length;u++){var h=r[u];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(n.set(h.dataset.precedence,h),i=h)}i&&n.set(null,i)}r=t.instance,h=r.getAttribute("data-precedence"),u=n.get(h)||i,u===i&&n.set(null,r),n.set(h,r),this.count++,i=So.bind(this),r.addEventListener("load",i),r.addEventListener("error",i),u?u.parentNode.insertBefore(r,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var qs={$$typeof:Y,Provider:null,Consumer:null,_currentValue:M,_currentValue2:M,_threadCount:0};function Hx(e,t,n,i,r,u,h,v,C){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=nr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nr(0),this.hiddenUpdates=nr(null),this.identifierPrefix=i,this.onUncaughtError=r,this.onCaughtError=u,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.incompleteTransitions=new Map}function Vp(e,t,n,i,r,u,h,v,C,_,G,Q){return e=new Hx(e,t,n,h,C,_,G,Q,v),t=1,u===!0&&(t|=24),u=Ut(3,null,null,t),e.current=u,u.stateNode=e,t=Hr(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:i,isDehydrated:n,cache:t},Xr(u),e}function _p(e){return e?(e=pi,e):pi}function kp(e,t,n,i,r,u){r=_p(r),i.context===null?i.context=r:i.pendingContext=r,i=aa(t),i.payload={element:n},u=u===void 0?null:u,u!==null&&(i.callback=u),n=ia(e,i,t),n!==null&&(Vt(n,e,t),Ss(n,e,t))}function Bp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function rc(e,t){Bp(e,t),(e=e.alternate)&&Bp(e,t)}function Lp(e){if(e.tag===13||e.tag===31){var t=za(e,67108864);t!==null&&Vt(t,e,67108864),rc(e,67108864)}}function Up(e){if(e.tag===13||e.tag===31){var t=Xt();t=ar(t);var n=za(e,t);n!==null&&Vt(n,e,t),rc(e,t)}}var jo=!0;function Gx(e,t,n,i){var r=E.T;E.T=null;var u=U.p;try{U.p=2,uc(e,t,n,i)}finally{U.p=u,E.T=r}}function Yx(e,t,n,i){var r=E.T;E.T=null;var u=U.p;try{U.p=8,uc(e,t,n,i)}finally{U.p=u,E.T=r}}function uc(e,t,n,i){if(jo){var r=cc(i);if(r===null)Pu(e,t,i,To,n),Gp(e,i);else if(Xx(r,e,t,n,i))i.stopPropagation();else if(Gp(e,i),t&4&&-1<qx.indexOf(e)){for(;r!==null;){var u=ii(r);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var h=Na(u.pendingLanes);if(h!==0){var v=u;for(v.pendingLanes|=2,v.entangledLanes|=2;h;){var C=1<<31-Bt(h);v.entanglements[1]|=C,h&=~C}Sn(u),(Oe&6)===0&&(lo=Tt()+500,Bs(0))}}break;case 31:case 13:v=za(u,2),v!==null&&Vt(v,u,2),ro(),rc(u,2)}if(u=cc(i),u===null&&Pu(e,t,i,To,n),u===r)break;r=u}r!==null&&i.stopPropagation()}else Pu(e,t,i,null,n)}}function cc(e){return e=fr(e),dc(e)}var To=null;function dc(e){if(To=null,e=ai(e),e!==null){var t=m(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=f(t),e!==null)return e;e=null}else if(n===31){if(e=g(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return To=e,null}function Hp(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(tr()){case ti:return 2;case Tn:return 8;case ml:case Eb:return 32;case Pd:return 268435456;default:return 32}default:return 32}}var fc=!1,pa=null,ya=null,ga=null,Xs=new Map,Ks=new Map,ba=[],qx="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".split(" ");function Gp(e,t){switch(e){case"focusin":case"focusout":pa=null;break;case"dragenter":case"dragleave":ya=null;break;case"mouseover":case"mouseout":ga=null;break;case"pointerover":case"pointerout":Xs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ks.delete(t.pointerId)}}function Qs(e,t,n,i,r,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:u,targetContainers:[r]},t!==null&&(t=ii(t),t!==null&&Lp(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function Xx(e,t,n,i,r){switch(t){case"focusin":return pa=Qs(pa,e,t,n,i,r),!0;case"dragenter":return ya=Qs(ya,e,t,n,i,r),!0;case"mouseover":return ga=Qs(ga,e,t,n,i,r),!0;case"pointerover":var u=r.pointerId;return Xs.set(u,Qs(Xs.get(u)||null,e,t,n,i,r)),!0;case"gotpointercapture":return u=r.pointerId,Ks.set(u,Qs(Ks.get(u)||null,e,t,n,i,r)),!0}return!1}function Yp(e){var t=ai(e.target);if(t!==null){var n=m(t);if(n!==null){if(t=n.tag,t===13){if(t=f(n),t!==null){e.blockedOn=t,tf(e.priority,function(){Up(n)});return}}else if(t===31){if(t=g(n),t!==null){e.blockedOn=t,tf(e.priority,function(){Up(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function No(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=cc(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);dr=i,n.target.dispatchEvent(i),dr=null}else return t=ii(n),t!==null&&Lp(t),e.blockedOn=n,!1;t.shift()}return!0}function qp(e,t,n){No(e)&&n.delete(t)}function Kx(){fc=!1,pa!==null&&No(pa)&&(pa=null),ya!==null&&No(ya)&&(ya=null),ga!==null&&No(ga)&&(ga=null),Xs.forEach(qp),Ks.forEach(qp)}function Ao(e,t){e.blockedOn===t&&(e.blockedOn=null,fc||(fc=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Kx)))}var Mo=null;function Xp(e){Mo!==e&&(Mo=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Mo===e&&(Mo=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],r=e[t+2];if(typeof i!="function"){if(dc(i||n)===null)continue;break}var u=ii(n);u!==null&&(e.splice(t,3),t-=3,cu(u,{pending:!0,data:r,method:n.method,action:i},i,r))}}))}function Ui(e){function t(C){return Ao(C,e)}pa!==null&&Ao(pa,e),ya!==null&&Ao(ya,e),ga!==null&&Ao(ga,e),Xs.forEach(t),Ks.forEach(t);for(var n=0;n<ba.length;n++){var i=ba[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<ba.length&&(n=ba[0],n.blockedOn===null);)Yp(n),n.blockedOn===null&&ba.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var r=n[i],u=n[i+1],h=r[Mt]||null;if(typeof u=="function")h||Xp(n);else if(h){var v=null;if(u&&u.hasAttribute("formAction")){if(r=u,h=u[Mt]||null)v=h.formAction;else if(dc(r)!==null)continue}else v=h.action;typeof v=="function"?n[i+1]=v:(n.splice(i,3),i-=3),Xp(n)}}}function Kp(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(h){return r=h})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),i||setTimeout(n,20)}function n(){if(!i&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function mc(e){this._internalRoot=e}Eo.prototype.render=mc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var n=t.current,i=Xt();kp(n,i,e,t,null,null)},Eo.prototype.unmount=mc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;kp(e.current,2,null,e,null,null),ro(),t[ni]=null}};function Eo(e){this._internalRoot=e}Eo.prototype.unstable_scheduleHydration=function(e){if(e){var t=ef();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ba.length&&t!==0&&t<ba[n].priority;n++);ba.splice(n,0,e),n===0&&Yp(e)}};var Qp=s.version;if(Qp!=="19.2.1")throw Error(o(527,Qp,"19.2.1"));U.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=p(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var Qx={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:E,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Do=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Do.isDisabled&&Do.supportsFiber)try{ts=Do.inject(Qx),kt=Do}catch{}}return Js.createRoot=function(e,t){if(!d(e))throw Error(o(299));var n=!1,i="",r=Im,u=eh,h=th;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=Vp(e,1,!1,null,null,n,i,null,r,u,h,Kp),e[ni]=t.current,Ju(e),new mc(t)},Js.hydrateRoot=function(e,t,n){if(!d(e))throw Error(o(299));var i=!1,r="",u=Im,h=eh,v=th,C=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.formState!==void 0&&(C=n.formState)),t=Vp(e,1,!0,t,n??null,i,r,C,u,h,v,Kp),t.context=_p(null),n=t.current,i=Xt(),i=ar(i),r=aa(i),r.callback=null,ia(n,r,i),n=i,t.current.lanes=n,as(t,n),Sn(t),e[ni]=t.current,Ju(e),new Eo(t)},Js.version="19.2.1",Js}var ny;function n1(){if(ny)return yc.exports;ny=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(s){console.error(s)}}return a(),yc.exports=t1(),yc.exports}var a1=n1();const hd=N.createContext({});function pd(a){const s=N.useRef(null);return s.current===null&&(s.current=a()),s.current}const yd=typeof window<"u",Ng=yd?N.useLayoutEffect:N.useEffect,Wo=N.createContext(null);function gd(a,s){a.indexOf(s)===-1&&a.push(s)}function bd(a,s){const l=a.indexOf(s);l>-1&&a.splice(l,1)}const Zn=(a,s,l)=>l>s?s:l<a?a:l;let vd=()=>{};const Jn={},Ag=a=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a);function Mg(a){return typeof a=="object"&&a!==null}const Eg=a=>/^0[^.\s]+$/u.test(a);function xd(a){let s;return()=>(s===void 0&&(s=a()),s)}const ln=a=>a,i1=(a,s)=>l=>s(a(l)),rl=(...a)=>a.reduce(i1),al=(a,s,l)=>{const o=s-a;return o===0?1:(l-a)/o};class Sd{constructor(){this.subscriptions=[]}add(s){return gd(this.subscriptions,s),()=>bd(this.subscriptions,s)}notify(s,l,o){const d=this.subscriptions.length;if(d)if(d===1)this.subscriptions[0](s,l,o);else for(let m=0;m<d;m++){const f=this.subscriptions[m];f&&f(s,l,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Cn=a=>a*1e3,sn=a=>a/1e3;function Dg(a,s){return s?a*(1e3/s):0}const zg=(a,s,l)=>(((1-3*l+3*s)*a+(3*l-6*s))*a+3*s)*a,s1=1e-7,l1=12;function o1(a,s,l,o,d){let m,f,g=0;do f=s+(l-s)/2,m=zg(f,o,d)-a,m>0?l=f:s=f;while(Math.abs(m)>s1&&++g<l1);return f}function ul(a,s,l,o){if(a===s&&l===o)return ln;const d=m=>o1(m,0,1,a,l);return m=>m===0||m===1?m:zg(d(m),s,o)}const Rg=a=>s=>s<=.5?a(2*s)/2:(2-a(2*(1-s)))/2,Og=a=>s=>1-a(1-s),Vg=ul(.33,1.53,.69,.99),Cd=Og(Vg),_g=Rg(Cd),kg=a=>(a*=2)<1?.5*Cd(a):.5*(2-Math.pow(2,-10*(a-1))),wd=a=>1-Math.sin(Math.acos(a)),Bg=Og(wd),Lg=Rg(wd),r1=ul(.42,0,1,1),u1=ul(0,0,.58,1),Ug=ul(.42,0,.58,1),c1=a=>Array.isArray(a)&&typeof a[0]!="number",Hg=a=>Array.isArray(a)&&typeof a[0]=="number",d1={linear:ln,easeIn:r1,easeInOut:Ug,easeOut:u1,circIn:wd,circInOut:Lg,circOut:Bg,backIn:Cd,backInOut:_g,backOut:Vg,anticipate:kg},f1=a=>typeof a=="string",ay=a=>{if(Hg(a)){vd(a.length===4);const[s,l,o,d]=a;return ul(s,l,o,d)}else if(f1(a))return d1[a];return a},zo=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function m1(a,s){let l=new Set,o=new Set,d=!1,m=!1;const f=new WeakSet;let g={delta:0,timestamp:0,isProcessing:!1};function y(b){f.has(b)&&(p.schedule(b),a()),b(g)}const p={schedule:(b,x=!1,S=!1)=>{const D=S&&d?l:o;return x&&f.add(b),D.has(b)||D.add(b),b},cancel:b=>{o.delete(b),f.delete(b)},process:b=>{if(g=b,d){m=!0;return}d=!0,[l,o]=[o,l],l.forEach(y),l.clear(),d=!1,m&&(m=!1,p.process(b))}};return p}const h1=40;function Gg(a,s){let l=!1,o=!0;const d={delta:0,timestamp:0,isProcessing:!1},m=()=>l=!0,f=zo.reduce((Y,W)=>(Y[W]=m1(m),Y),{}),{setup:g,read:y,resolveKeyframes:p,preUpdate:b,update:x,preRender:S,render:T,postRender:D}=f,R=()=>{const Y=Jn.useManualTiming?d.timestamp:performance.now();l=!1,Jn.useManualTiming||(d.delta=o?1e3/60:Math.max(Math.min(Y-d.timestamp,h1),1)),d.timestamp=Y,d.isProcessing=!0,g.process(d),y.process(d),p.process(d),b.process(d),x.process(d),S.process(d),T.process(d),D.process(d),d.isProcessing=!1,l&&s&&(o=!1,a(R))},k=()=>{l=!0,o=!0,d.isProcessing||a(R)};return{schedule:zo.reduce((Y,W)=>{const Z=f[W];return Y[W]=(P,K=!1,O=!1)=>(l||k(),Z.schedule(P,K,O)),Y},{}),cancel:Y=>{for(let W=0;W<zo.length;W++)f[zo[W]].cancel(Y)},state:d,steps:f}}const{schedule:Qe,cancel:wa,state:yt,steps:xc}=Gg(typeof requestAnimationFrame<"u"?requestAnimationFrame:ln,!0);let Lo;function p1(){Lo=void 0}const _t={now:()=>(Lo===void 0&&_t.set(yt.isProcessing||Jn.useManualTiming?yt.timestamp:performance.now()),Lo),set:a=>{Lo=a,queueMicrotask(p1)}},Yg=a=>s=>typeof s=="string"&&s.startsWith(a),qg=Yg("--"),y1=Yg("var(--"),jd=a=>y1(a)?g1.test(a.split("/*")[0].trim()):!1,g1=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Pi={test:a=>typeof a=="number",parse:parseFloat,transform:a=>a},il={...Pi,transform:a=>Zn(0,1,a)},Ro={...Pi,default:1},Is=a=>Math.round(a*1e5)/1e5,Td=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function b1(a){return a==null}const v1=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Nd=(a,s)=>l=>!!(typeof l=="string"&&v1.test(l)&&l.startsWith(a)||s&&!b1(l)&&Object.prototype.hasOwnProperty.call(l,s)),Xg=(a,s,l)=>o=>{if(typeof o!="string")return o;const[d,m,f,g]=o.match(Td);return{[a]:parseFloat(d),[s]:parseFloat(m),[l]:parseFloat(f),alpha:g!==void 0?parseFloat(g):1}},x1=a=>Zn(0,255,a),Sc={...Pi,transform:a=>Math.round(x1(a))},Pa={test:Nd("rgb","red"),parse:Xg("red","green","blue"),transform:({red:a,green:s,blue:l,alpha:o=1})=>"rgba("+Sc.transform(a)+", "+Sc.transform(s)+", "+Sc.transform(l)+", "+Is(il.transform(o))+")"};function S1(a){let s="",l="",o="",d="";return a.length>5?(s=a.substring(1,3),l=a.substring(3,5),o=a.substring(5,7),d=a.substring(7,9)):(s=a.substring(1,2),l=a.substring(2,3),o=a.substring(3,4),d=a.substring(4,5),s+=s,l+=l,o+=o,d+=d),{red:parseInt(s,16),green:parseInt(l,16),blue:parseInt(o,16),alpha:d?parseInt(d,16)/255:1}}const Uc={test:Nd("#"),parse:S1,transform:Pa.transform},cl=a=>({test:s=>typeof s=="string"&&s.endsWith(a)&&s.split(" ").length===1,parse:parseFloat,transform:s=>`${s}${a}`}),Sa=cl("deg"),wn=cl("%"),be=cl("px"),C1=cl("vh"),w1=cl("vw"),iy={...wn,parse:a=>wn.parse(a)/100,transform:a=>wn.transform(a*100)},Gi={test:Nd("hsl","hue"),parse:Xg("hue","saturation","lightness"),transform:({hue:a,saturation:s,lightness:l,alpha:o=1})=>"hsla("+Math.round(a)+", "+wn.transform(Is(s))+", "+wn.transform(Is(l))+", "+Is(il.transform(o))+")"},it={test:a=>Pa.test(a)||Uc.test(a)||Gi.test(a),parse:a=>Pa.test(a)?Pa.parse(a):Gi.test(a)?Gi.parse(a):Uc.parse(a),transform:a=>typeof a=="string"?a:a.hasOwnProperty("red")?Pa.transform(a):Gi.transform(a),getAnimatableNone:a=>{const s=it.parse(a);return s.alpha=0,it.transform(s)}},j1=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function T1(a){return isNaN(a)&&typeof a=="string"&&(a.match(Td)?.length||0)+(a.match(j1)?.length||0)>0}const Kg="number",Qg="color",N1="var",A1="var(",sy="${}",M1=/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 sl(a){const s=a.toString(),l=[],o={color:[],number:[],var:[]},d=[];let m=0;const g=s.replace(M1,y=>(it.test(y)?(o.color.push(m),d.push(Qg),l.push(it.parse(y))):y.startsWith(A1)?(o.var.push(m),d.push(N1),l.push(y)):(o.number.push(m),d.push(Kg),l.push(parseFloat(y))),++m,sy)).split(sy);return{values:l,split:g,indexes:o,types:d}}function Zg(a){return sl(a).values}function Jg(a){const{split:s,types:l}=sl(a),o=s.length;return d=>{let m="";for(let f=0;f<o;f++)if(m+=s[f],d[f]!==void 0){const g=l[f];g===Kg?m+=Is(d[f]):g===Qg?m+=it.transform(d[f]):m+=d[f]}return m}}const E1=a=>typeof a=="number"?0:it.test(a)?it.getAnimatableNone(a):a;function D1(a){const s=Zg(a);return Jg(a)(s.map(E1))}const ja={test:T1,parse:Zg,createTransformer:Jg,getAnimatableNone:D1};function Cc(a,s,l){return l<0&&(l+=1),l>1&&(l-=1),l<1/6?a+(s-a)*6*l:l<1/2?s:l<2/3?a+(s-a)*(2/3-l)*6:a}function z1({hue:a,saturation:s,lightness:l,alpha:o}){a/=360,s/=100,l/=100;let d=0,m=0,f=0;if(!s)d=m=f=l;else{const g=l<.5?l*(1+s):l+s-l*s,y=2*l-g;d=Cc(y,g,a+1/3),m=Cc(y,g,a),f=Cc(y,g,a-1/3)}return{red:Math.round(d*255),green:Math.round(m*255),blue:Math.round(f*255),alpha:o}}function qo(a,s){return l=>l>0?s:a}const Ze=(a,s,l)=>a+(s-a)*l,wc=(a,s,l)=>{const o=a*a,d=l*(s*s-o)+o;return d<0?0:Math.sqrt(d)},R1=[Uc,Pa,Gi],O1=a=>R1.find(s=>s.test(a));function ly(a){const s=O1(a);if(!s)return!1;let l=s.parse(a);return s===Gi&&(l=z1(l)),l}const oy=(a,s)=>{const l=ly(a),o=ly(s);if(!l||!o)return qo(a,s);const d={...l};return m=>(d.red=wc(l.red,o.red,m),d.green=wc(l.green,o.green,m),d.blue=wc(l.blue,o.blue,m),d.alpha=Ze(l.alpha,o.alpha,m),Pa.transform(d))},Hc=new Set(["none","hidden"]);function V1(a,s){return Hc.has(a)?l=>l<=0?a:s:l=>l>=1?s:a}function _1(a,s){return l=>Ze(a,s,l)}function Ad(a){return typeof a=="number"?_1:typeof a=="string"?jd(a)?qo:it.test(a)?oy:L1:Array.isArray(a)?Pg:typeof a=="object"?it.test(a)?oy:k1:qo}function Pg(a,s){const l=[...a],o=l.length,d=a.map((m,f)=>Ad(m)(m,s[f]));return m=>{for(let f=0;f<o;f++)l[f]=d[f](m);return l}}function k1(a,s){const l={...a,...s},o={};for(const d in l)a[d]!==void 0&&s[d]!==void 0&&(o[d]=Ad(a[d])(a[d],s[d]));return d=>{for(const m in o)l[m]=o[m](d);return l}}function B1(a,s){const l=[],o={color:0,var:0,number:0};for(let d=0;d<s.values.length;d++){const m=s.types[d],f=a.indexes[m][o[m]],g=a.values[f]??0;l[d]=g,o[m]++}return l}const L1=(a,s)=>{const l=ja.createTransformer(s),o=sl(a),d=sl(s);return o.indexes.var.length===d.indexes.var.length&&o.indexes.color.length===d.indexes.color.length&&o.indexes.number.length>=d.indexes.number.length?Hc.has(a)&&!d.values.length||Hc.has(s)&&!o.values.length?V1(a,s):rl(Pg(B1(o,d),d.values),l):qo(a,s)};function Fg(a,s,l){return typeof a=="number"&&typeof s=="number"&&typeof l=="number"?Ze(a,s,l):Ad(a)(a,s)}const U1=a=>{const s=({timestamp:l})=>a(l);return{start:(l=!0)=>Qe.update(s,l),stop:()=>wa(s),now:()=>yt.isProcessing?yt.timestamp:_t.now()}},Wg=(a,s,l=10)=>{let o="";const d=Math.max(Math.round(s/l),2);for(let m=0;m<d;m++)o+=Math.round(a(m/(d-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},Xo=2e4;function Md(a){let s=0;const l=50;let o=a.next(s);for(;!o.done&&s<Xo;)s+=l,o=a.next(s);return s>=Xo?1/0:s}function H1(a,s=100,l){const o=l({...a,keyframes:[0,s]}),d=Math.min(Md(o),Xo);return{type:"keyframes",ease:m=>o.next(d*m).value/s,duration:sn(d)}}const G1=5;function $g(a,s,l){const o=Math.max(s-G1,0);return Dg(l-a(o),s-o)}const We={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},jc=.001;function Y1({duration:a=We.duration,bounce:s=We.bounce,velocity:l=We.velocity,mass:o=We.mass}){let d,m,f=1-s;f=Zn(We.minDamping,We.maxDamping,f),a=Zn(We.minDuration,We.maxDuration,sn(a)),f<1?(d=p=>{const b=p*f,x=b*a,S=b-l,T=Gc(p,f),D=Math.exp(-x);return jc-S/T*D},m=p=>{const x=p*f*a,S=x*l+l,T=Math.pow(f,2)*Math.pow(p,2)*a,D=Math.exp(-x),R=Gc(Math.pow(p,2),f);return(-d(p)+jc>0?-1:1)*((S-T)*D)/R}):(d=p=>{const b=Math.exp(-p*a),x=(p-l)*a+1;return-jc+b*x},m=p=>{const b=Math.exp(-p*a),x=(l-p)*(a*a);return b*x});const g=5/a,y=X1(d,m,g);if(a=Cn(a),isNaN(y))return{stiffness:We.stiffness,damping:We.damping,duration:a};{const p=Math.pow(y,2)*o;return{stiffness:p,damping:f*2*Math.sqrt(o*p),duration:a}}}const q1=12;function X1(a,s,l){let o=l;for(let d=1;d<q1;d++)o=o-a(o)/s(o);return o}function Gc(a,s){return a*Math.sqrt(1-s*s)}const K1=["duration","bounce"],Q1=["stiffness","damping","mass"];function ry(a,s){return s.some(l=>a[l]!==void 0)}function Z1(a){let s={velocity:We.velocity,stiffness:We.stiffness,damping:We.damping,mass:We.mass,isResolvedFromDuration:!1,...a};if(!ry(a,Q1)&&ry(a,K1))if(a.visualDuration){const l=a.visualDuration,o=2*Math.PI/(l*1.2),d=o*o,m=2*Zn(.05,1,1-(a.bounce||0))*Math.sqrt(d);s={...s,mass:We.mass,stiffness:d,damping:m}}else{const l=Y1(a);s={...s,...l,mass:We.mass},s.isResolvedFromDuration=!0}return s}function Ko(a=We.visualDuration,s=We.bounce){const l=typeof a!="object"?{visualDuration:a,keyframes:[0,1],bounce:s}:a;let{restSpeed:o,restDelta:d}=l;const m=l.keyframes[0],f=l.keyframes[l.keyframes.length-1],g={done:!1,value:m},{stiffness:y,damping:p,mass:b,duration:x,velocity:S,isResolvedFromDuration:T}=Z1({...l,velocity:-sn(l.velocity||0)}),D=S||0,R=p/(2*Math.sqrt(y*b)),k=f-m,z=sn(Math.sqrt(y/b)),X=Math.abs(k)<5;o||(o=X?We.restSpeed.granular:We.restSpeed.default),d||(d=X?We.restDelta.granular:We.restDelta.default);let Y;if(R<1){const Z=Gc(z,R);Y=P=>{const K=Math.exp(-R*z*P);return f-K*((D+R*z*k)/Z*Math.sin(Z*P)+k*Math.cos(Z*P))}}else if(R===1)Y=Z=>f-Math.exp(-z*Z)*(k+(D+z*k)*Z);else{const Z=z*Math.sqrt(R*R-1);Y=P=>{const K=Math.exp(-R*z*P),O=Math.min(Z*P,300);return f-K*((D+R*z*k)*Math.sinh(O)+Z*k*Math.cosh(O))/Z}}const W={calculatedDuration:T&&x||null,next:Z=>{const P=Y(Z);if(T)g.done=Z>=x;else{let K=Z===0?D:0;R<1&&(K=Z===0?Cn(D):$g(Y,Z,P));const O=Math.abs(K)<=o,te=Math.abs(f-P)<=d;g.done=O&&te}return g.value=g.done?f:P,g},toString:()=>{const Z=Math.min(Md(W),Xo),P=Wg(K=>W.next(Z*K).value,Z,30);return Z+"ms "+P},toTransition:()=>{}};return W}Ko.applyToOptions=a=>{const s=H1(a,100,Ko);return a.ease=s.ease,a.duration=Cn(s.duration),a.type="keyframes",a};function Yc({keyframes:a,velocity:s=0,power:l=.8,timeConstant:o=325,bounceDamping:d=10,bounceStiffness:m=500,modifyTarget:f,min:g,max:y,restDelta:p=.5,restSpeed:b}){const x=a[0],S={done:!1,value:x},T=O=>g!==void 0&&O<g||y!==void 0&&O>y,D=O=>g===void 0?y:y===void 0||Math.abs(g-O)<Math.abs(y-O)?g:y;let R=l*s;const k=x+R,z=f===void 0?k:f(k);z!==k&&(R=z-x);const X=O=>-R*Math.exp(-O/o),Y=O=>z+X(O),W=O=>{const te=X(O),F=Y(O);S.done=Math.abs(te)<=p,S.value=S.done?z:F};let Z,P;const K=O=>{T(S.value)&&(Z=O,P=Ko({keyframes:[S.value,D(S.value)],velocity:$g(Y,O,S.value),damping:d,stiffness:m,restDelta:p,restSpeed:b}))};return K(0),{calculatedDuration:null,next:O=>{let te=!1;return!P&&Z===void 0&&(te=!0,W(O),K(O)),Z!==void 0&&O>=Z?P.next(O-Z):(!te&&W(O),S)}}}function J1(a,s,l){const o=[],d=l||Jn.mix||Fg,m=a.length-1;for(let f=0;f<m;f++){let g=d(a[f],a[f+1]);if(s){const y=Array.isArray(s)?s[f]||ln:s;g=rl(y,g)}o.push(g)}return o}function P1(a,s,{clamp:l=!0,ease:o,mixer:d}={}){const m=a.length;if(vd(m===s.length),m===1)return()=>s[0];if(m===2&&s[0]===s[1])return()=>s[1];const f=a[0]===a[1];a[0]>a[m-1]&&(a=[...a].reverse(),s=[...s].reverse());const g=J1(s,o,d),y=g.length,p=b=>{if(f&&b<a[0])return s[0];let x=0;if(y>1)for(;x<a.length-2&&!(b<a[x+1]);x++);const S=al(a[x],a[x+1],b);return g[x](S)};return l?b=>p(Zn(a[0],a[m-1],b)):p}function F1(a,s){const l=a[a.length-1];for(let o=1;o<=s;o++){const d=al(0,s,o);a.push(Ze(l,1,d))}}function W1(a){const s=[0];return F1(s,a.length-1),s}function $1(a,s){return a.map(l=>l*s)}function I1(a,s){return a.map(()=>s||Ug).splice(0,a.length-1)}function el({duration:a=300,keyframes:s,times:l,ease:o="easeInOut"}){const d=c1(o)?o.map(ay):ay(o),m={done:!1,value:s[0]},f=$1(l&&l.length===s.length?l:W1(s),a),g=P1(f,s,{ease:Array.isArray(d)?d:I1(s,d)});return{calculatedDuration:a,next:y=>(m.value=g(y),m.done=y>=a,m)}}const e2=a=>a!==null;function Ed(a,{repeat:s,repeatType:l="loop"},o,d=1){const m=a.filter(e2),g=d<0||s&&l!=="loop"&&s%2===1?0:m.length-1;return!g||o===void 0?m[g]:o}const t2={decay:Yc,inertia:Yc,tween:el,keyframes:el,spring:Ko};function Ig(a){typeof a.type=="string"&&(a.type=t2[a.type])}class Dd{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(s=>{this.resolve=s})}notifyFinished(){this.resolve()}then(s,l){return this.finished.then(s,l)}}const n2=a=>a/100;class zd extends Dd{constructor(s){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:l}=this.options;l&&l.updatedAt!==_t.now()&&this.tick(_t.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=s,this.initAnimation(),this.play(),s.autoplay===!1&&this.pause()}initAnimation(){const{options:s}=this;Ig(s);const{type:l=el,repeat:o=0,repeatDelay:d=0,repeatType:m,velocity:f=0}=s;let{keyframes:g}=s;const y=l||el;y!==el&&typeof g[0]!="number"&&(this.mixKeyframes=rl(n2,Fg(g[0],g[1])),g=[0,100]);const p=y({...s,keyframes:g});m==="mirror"&&(this.mirroredGenerator=y({...s,keyframes:[...g].reverse(),velocity:-f})),p.calculatedDuration===null&&(p.calculatedDuration=Md(p));const{calculatedDuration:b}=p;this.calculatedDuration=b,this.resolvedDuration=b+d,this.totalDuration=this.resolvedDuration*(o+1)-d,this.generator=p}updateTime(s){const l=Math.round(s-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=l}tick(s,l=!1){const{generator:o,totalDuration:d,mixKeyframes:m,mirroredGenerator:f,resolvedDuration:g,calculatedDuration:y}=this;if(this.startTime===null)return o.next(0);const{delay:p=0,keyframes:b,repeat:x,repeatType:S,repeatDelay:T,type:D,onUpdate:R,finalKeyframe:k}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,s):this.speed<0&&(this.startTime=Math.min(s-d/this.speed,this.startTime)),l?this.currentTime=s:this.updateTime(s);const z=this.currentTime-p*(this.playbackSpeed>=0?1:-1),X=this.playbackSpeed>=0?z<0:z>d;this.currentTime=Math.max(z,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let Y=this.currentTime,W=o;if(x){const O=Math.min(this.currentTime,d)/g;let te=Math.floor(O),F=O%1;!F&&O>=1&&(F=1),F===1&&te--,te=Math.min(te,x+1),!!(te%2)&&(S==="reverse"?(F=1-F,T&&(F-=T/g)):S==="mirror"&&(W=f)),Y=Zn(0,1,F)*g}const Z=X?{done:!1,value:b[0]}:W.next(Y);m&&(Z.value=m(Z.value));let{done:P}=Z;!X&&y!==null&&(P=this.playbackSpeed>=0?this.currentTime>=d:this.currentTime<=0);const K=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return K&&D!==Yc&&(Z.value=Ed(b,this.options,k,this.speed)),R&&R(Z.value),K&&this.finish(),Z}then(s,l){return this.finished.then(s,l)}get duration(){return sn(this.calculatedDuration)}get iterationDuration(){const{delay:s=0}=this.options||{};return this.duration+sn(s)}get time(){return sn(this.currentTime)}set time(s){s=Cn(s),this.currentTime=s,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=s:this.driver&&(this.startTime=this.driver.now()-s/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(s){this.updateTime(_t.now());const l=this.playbackSpeed!==s;this.playbackSpeed=s,l&&(this.time=sn(this.currentTime))}play(){if(this.isStopped)return;const{driver:s=U1,startTime:l}=this.options;this.driver||(this.driver=s(d=>this.tick(d))),this.options.onPlay?.();const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=l??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(_t.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(s){return this.startTime=0,this.tick(s,!0)}attachTimeline(s){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),s.observe(this)}}function a2(a){for(let s=1;s<a.length;s++)a[s]??(a[s]=a[s-1])}const Fa=a=>a*180/Math.PI,qc=a=>{const s=Fa(Math.atan2(a[1],a[0]));return Xc(s)},i2={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:qc,rotateZ:qc,skewX:a=>Fa(Math.atan(a[1])),skewY:a=>Fa(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},Xc=a=>(a=a%360,a<0&&(a+=360),a),uy=qc,cy=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),dy=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),s2={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:cy,scaleY:dy,scale:a=>(cy(a)+dy(a))/2,rotateX:a=>Xc(Fa(Math.atan2(a[6],a[5]))),rotateY:a=>Xc(Fa(Math.atan2(-a[2],a[0]))),rotateZ:uy,rotate:uy,skewX:a=>Fa(Math.atan(a[4])),skewY:a=>Fa(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function Kc(a){return a.includes("scale")?1:0}function Qc(a,s){if(!a||a==="none")return Kc(s);const l=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,d;if(l)o=s2,d=l;else{const g=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=i2,d=g}if(!d)return Kc(s);const m=o[s],f=d[1].split(",").map(o2);return typeof m=="function"?m(f):f[m]}const l2=(a,s)=>{const{transform:l="none"}=getComputedStyle(a);return Qc(l,s)};function o2(a){return parseFloat(a.trim())}const Fi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Wi=new Set(Fi),fy=a=>a===Pi||a===be,r2=new Set(["x","y","z"]),u2=Fi.filter(a=>!r2.has(a));function c2(a){const s=[];return u2.forEach(l=>{const o=a.getValue(l);o!==void 0&&(s.push([l,o.get()]),o.set(l.startsWith("scale")?1:0))}),s}const Wa={width:({x:a},{paddingLeft:s="0",paddingRight:l="0"})=>a.max-a.min-parseFloat(s)-parseFloat(l),height:({y:a},{paddingTop:s="0",paddingBottom:l="0"})=>a.max-a.min-parseFloat(s)-parseFloat(l),top:(a,{top:s})=>parseFloat(s),left:(a,{left:s})=>parseFloat(s),bottom:({y:a},{top:s})=>parseFloat(s)+(a.max-a.min),right:({x:a},{left:s})=>parseFloat(s)+(a.max-a.min),x:(a,{transform:s})=>Qc(s,"x"),y:(a,{transform:s})=>Qc(s,"y")};Wa.translateX=Wa.x;Wa.translateY=Wa.y;const $a=new Set;let Zc=!1,Jc=!1,Pc=!1;function e0(){if(Jc){const a=Array.from($a).filter(o=>o.needsMeasurement),s=new Set(a.map(o=>o.element)),l=new Map;s.forEach(o=>{const d=c2(o);d.length&&(l.set(o,d),o.render())}),a.forEach(o=>o.measureInitialState()),s.forEach(o=>{o.render();const d=l.get(o);d&&d.forEach(([m,f])=>{o.getValue(m)?.set(f)})}),a.forEach(o=>o.measureEndState()),a.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}Jc=!1,Zc=!1,$a.forEach(a=>a.complete(Pc)),$a.clear()}function t0(){$a.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(Jc=!0)})}function d2(){Pc=!0,t0(),e0(),Pc=!1}class Rd{constructor(s,l,o,d,m,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...s],this.onComplete=l,this.name=o,this.motionValue=d,this.element=m,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?($a.add(this),Zc||(Zc=!0,Qe.read(t0),Qe.resolveKeyframes(e0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:s,name:l,element:o,motionValue:d}=this;if(s[0]===null){const m=d?.get(),f=s[s.length-1];if(m!==void 0)s[0]=m;else if(o&&l){const g=o.readValue(l,f);g!=null&&(s[0]=g)}s[0]===void 0&&(s[0]=f),d&&m===void 0&&d.set(s[0])}a2(s)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(s=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,s),$a.delete(this)}cancel(){this.state==="scheduled"&&($a.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const f2=a=>a.startsWith("--");function m2(a,s,l){f2(s)?a.style.setProperty(s,l):a.style[s]=l}const h2=xd(()=>window.ScrollTimeline!==void 0),p2={};function y2(a,s){const l=xd(a);return()=>p2[s]??l()}const n0=y2(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),$s=([a,s,l,o])=>`cubic-bezier(${a}, ${s}, ${l}, ${o})`,my={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:$s([0,.65,.55,1]),circOut:$s([.55,0,1,.45]),backIn:$s([.31,.01,.66,-.59]),backOut:$s([.33,1.53,.69,.99])};function a0(a,s){if(a)return typeof a=="function"?n0()?Wg(a,s):"ease-out":Hg(a)?$s(a):Array.isArray(a)?a.map(l=>a0(l,s)||my.easeOut):my[a]}function g2(a,s,l,{delay:o=0,duration:d=300,repeat:m=0,repeatType:f="loop",ease:g="easeOut",times:y}={},p=void 0){const b={[s]:l};y&&(b.offset=y);const x=a0(g,d);Array.isArray(x)&&(b.easing=x);const S={delay:o,duration:d,easing:Array.isArray(x)?"linear":x,fill:"both",iterations:m+1,direction:f==="reverse"?"alternate":"normal"};return p&&(S.pseudoElement=p),a.animate(b,S)}function i0(a){return typeof a=="function"&&"applyToOptions"in a}function b2({type:a,...s}){return i0(a)&&n0()?a.applyToOptions(s):(s.duration??(s.duration=300),s.ease??(s.ease="easeOut"),s)}class v2 extends Dd{constructor(s){if(super(),this.finishedTime=null,this.isStopped=!1,!s)return;const{element:l,name:o,keyframes:d,pseudoElement:m,allowFlatten:f=!1,finalKeyframe:g,onComplete:y}=s;this.isPseudoElement=!!m,this.allowFlatten=f,this.options=s,vd(typeof s.type!="string");const p=b2(s);this.animation=g2(l,o,d,p,m),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!m){const b=Ed(d,this.options,g,this.speed);this.updateMotionValue?this.updateMotionValue(b):m2(l,o,b),this.animation.cancel()}y?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:s}=this;s==="idle"||s==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const s=this.animation.effect?.getComputedTiming?.().duration||0;return sn(Number(s))}get iterationDuration(){const{delay:s=0}=this.options||{};return this.duration+sn(s)}get time(){return sn(Number(this.animation.currentTime)||0)}set time(s){this.finishedTime=null,this.animation.currentTime=Cn(s)}get speed(){return this.animation.playbackRate}set speed(s){s<0&&(this.finishedTime=null),this.animation.playbackRate=s}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(s){this.animation.startTime=s}attachTimeline({timeline:s,observe:l}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,s&&h2()?(this.animation.timeline=s,ln):l(this)}}const s0={anticipate:kg,backInOut:_g,circInOut:Lg};function x2(a){return a in s0}function S2(a){typeof a.ease=="string"&&x2(a.ease)&&(a.ease=s0[a.ease])}const hy=10;class C2 extends v2{constructor(s){S2(s),Ig(s),super(s),s.startTime&&(this.startTime=s.startTime),this.options=s}updateMotionValue(s){const{motionValue:l,onUpdate:o,onComplete:d,element:m,...f}=this.options;if(!l)return;if(s!==void 0){l.set(s);return}const g=new zd({...f,autoplay:!1}),y=Cn(this.finishedTime??this.time);l.setWithVelocity(g.sample(y-hy).value,g.sample(y).value,hy),g.stop()}}const py=(a,s)=>s==="zIndex"?!1:!!(typeof a=="number"||Array.isArray(a)||typeof a=="string"&&(ja.test(a)||a==="0")&&!a.startsWith("url("));function w2(a){const s=a[0];if(a.length===1)return!0;for(let l=0;l<a.length;l++)if(a[l]!==s)return!0}function j2(a,s,l,o){const d=a[0];if(d===null)return!1;if(s==="display"||s==="visibility")return!0;const m=a[a.length-1],f=py(d,s),g=py(m,s);return!f||!g?!1:w2(a)||(l==="spring"||i0(l))&&o}function Fc(a){a.duration=0,a.type="keyframes"}const T2=new Set(["opacity","clipPath","filter","transform"]),N2=xd(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function A2(a){const{motionValue:s,name:l,repeatDelay:o,repeatType:d,damping:m,type:f}=a;if(!(s?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:y,transformTemplate:p}=s.owner.getProps();return N2()&&l&&T2.has(l)&&(l!=="transform"||!p)&&!y&&!o&&d!=="mirror"&&m!==0&&f!=="inertia"}const M2=40;class E2 extends Dd{constructor({autoplay:s=!0,delay:l=0,type:o="keyframes",repeat:d=0,repeatDelay:m=0,repeatType:f="loop",keyframes:g,name:y,motionValue:p,element:b,...x}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=_t.now();const S={autoplay:s,delay:l,type:o,repeat:d,repeatDelay:m,repeatType:f,name:y,motionValue:p,element:b,...x},T=b?.KeyframeResolver||Rd;this.keyframeResolver=new T(g,(D,R,k)=>this.onKeyframesResolved(D,R,S,!k),y,p,b),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(s,l,o,d){this.keyframeResolver=void 0;const{name:m,type:f,velocity:g,delay:y,isHandoff:p,onUpdate:b}=o;this.resolvedAt=_t.now(),j2(s,m,f,g)||((Jn.instantAnimations||!y)&&b?.(Ed(s,o,l)),s[0]=s[s.length-1],Fc(o),o.repeat=0);const S={startTime:d?this.resolvedAt?this.resolvedAt-this.createdAt>M2?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:l,...o,keyframes:s},T=!p&&A2(S)?new C2({...S,element:S.motionValue.owner.current}):new zd(S);T.finished.then(()=>this.notifyFinished()).catch(ln),this.pendingTimeline&&(this.stopTimeline=T.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=T}get finished(){return this._animation?this.animation.finished:this._finished}then(s,l){return this.finished.finally(s).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),d2()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(s){this.animation.time=s}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(s){this.animation.speed=s}get startTime(){return this.animation.startTime}attachTimeline(s){return this._animation?this.stopTimeline=this.animation.attachTimeline(s):this.pendingTimeline=s,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const D2=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function z2(a){const s=D2.exec(a);if(!s)return[,];const[,l,o,d]=s;return[`--${l??o}`,d]}function l0(a,s,l=1){const[o,d]=z2(a);if(!o)return;const m=window.getComputedStyle(s).getPropertyValue(o);if(m){const f=m.trim();return Ag(f)?parseFloat(f):f}return jd(d)?l0(d,s,l+1):d}function Od(a,s){return a?.[s]??a?.default??a}const o0=new Set(["width","height","top","left","right","bottom",...Fi]),R2={test:a=>a==="auto",parse:a=>a},r0=a=>s=>s.test(a),u0=[Pi,be,wn,Sa,w1,C1,R2],yy=a=>u0.find(r0(a));function O2(a){return typeof a=="number"?a===0:a!==null?a==="none"||a==="0"||Eg(a):!0}const V2=new Set(["brightness","contrast","saturate","opacity"]);function _2(a){const[s,l]=a.slice(0,-1).split("(");if(s==="drop-shadow")return a;const[o]=l.match(Td)||[];if(!o)return a;const d=l.replace(o,"");let m=V2.has(s)?1:0;return o!==l&&(m*=100),s+"("+m+d+")"}const k2=/\b([a-z-]*)\(.*?\)/gu,Wc={...ja,getAnimatableNone:a=>{const s=a.match(k2);return s?s.map(_2).join(" "):a}},gy={...Pi,transform:Math.round},B2={rotate:Sa,rotateX:Sa,rotateY:Sa,rotateZ:Sa,scale:Ro,scaleX:Ro,scaleY:Ro,scaleZ:Ro,skew:Sa,skewX:Sa,skewY:Sa,distance:be,translateX:be,translateY:be,translateZ:be,x:be,y:be,z:be,perspective:be,transformPerspective:be,opacity:il,originX:iy,originY:iy,originZ:be},Vd={borderWidth:be,borderTopWidth:be,borderRightWidth:be,borderBottomWidth:be,borderLeftWidth:be,borderRadius:be,radius:be,borderTopLeftRadius:be,borderTopRightRadius:be,borderBottomRightRadius:be,borderBottomLeftRadius:be,width:be,maxWidth:be,height:be,maxHeight:be,top:be,right:be,bottom:be,left:be,padding:be,paddingTop:be,paddingRight:be,paddingBottom:be,paddingLeft:be,margin:be,marginTop:be,marginRight:be,marginBottom:be,marginLeft:be,backgroundPositionX:be,backgroundPositionY:be,...B2,zIndex:gy,fillOpacity:il,strokeOpacity:il,numOctaves:gy},L2={...Vd,color:it,backgroundColor:it,outlineColor:it,fill:it,stroke:it,borderColor:it,borderTopColor:it,borderRightColor:it,borderBottomColor:it,borderLeftColor:it,filter:Wc,WebkitFilter:Wc},c0=a=>L2[a];function d0(a,s){let l=c0(a);return l!==Wc&&(l=ja),l.getAnimatableNone?l.getAnimatableNone(s):void 0}const U2=new Set(["auto","none","0"]);function H2(a,s,l){let o=0,d;for(;o<a.length&&!d;){const m=a[o];typeof m=="string"&&!U2.has(m)&&sl(m).values.length&&(d=a[o]),o++}if(d&&l)for(const m of s)a[m]=d0(l,d)}class G2 extends Rd{constructor(s,l,o,d,m){super(s,l,o,d,m,!0)}readKeyframes(){const{unresolvedKeyframes:s,element:l,name:o}=this;if(!l||!l.current)return;super.readKeyframes();for(let y=0;y<s.length;y++){let p=s[y];if(typeof p=="string"&&(p=p.trim(),jd(p))){const b=l0(p,l.current);b!==void 0&&(s[y]=b),y===s.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!o0.has(o)||s.length!==2)return;const[d,m]=s,f=yy(d),g=yy(m);if(f!==g)if(fy(f)&&fy(g))for(let y=0;y<s.length;y++){const p=s[y];typeof p=="string"&&(s[y]=parseFloat(p))}else Wa[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:s,name:l}=this,o=[];for(let d=0;d<s.length;d++)(s[d]===null||O2(s[d]))&&o.push(d);o.length&&H2(s,o,l)}measureInitialState(){const{element:s,unresolvedKeyframes:l,name:o}=this;if(!s||!s.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Wa[o](s.measureViewportBox(),window.getComputedStyle(s.current)),l[0]=this.measuredOrigin;const d=l[l.length-1];d!==void 0&&s.getValue(o,d).jump(d,!1)}measureEndState(){const{element:s,name:l,unresolvedKeyframes:o}=this;if(!s||!s.current)return;const d=s.getValue(l);d&&d.jump(this.measuredOrigin,!1);const m=o.length-1,f=o[m];o[m]=Wa[l](s.measureViewportBox(),window.getComputedStyle(s.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),this.removedTransforms?.length&&this.removedTransforms.forEach(([g,y])=>{s.getValue(g).set(y)}),this.resolveNoneKeyframes()}}function Y2(a,s,l){if(a instanceof EventTarget)return[a];if(typeof a=="string"){let o=document;const d=l?.[a]??o.querySelectorAll(a);return d?Array.from(d):[]}return Array.from(a)}const f0=(a,s)=>s&&typeof a=="number"?s.transform(a):a;function m0(a){return Mg(a)&&"offsetHeight"in a}const by=30,q2=a=>!isNaN(parseFloat(a));class X2{constructor(s,l={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{const d=_t.now();if(this.updatedAt!==d&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const m of this.dependents)m.dirty()},this.hasAnimated=!1,this.setCurrent(s),this.owner=l.owner}setCurrent(s){this.current=s,this.updatedAt=_t.now(),this.canTrackVelocity===null&&s!==void 0&&(this.canTrackVelocity=q2(this.current))}setPrevFrameValue(s=this.current){this.prevFrameValue=s,this.prevUpdatedAt=this.updatedAt}onChange(s){return this.on("change",s)}on(s,l){this.events[s]||(this.events[s]=new Sd);const o=this.events[s].add(l);return s==="change"?()=>{o(),Qe.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const s in this.events)this.events[s].clear()}attach(s,l){this.passiveEffect=s,this.stopPassiveEffect=l}set(s){this.passiveEffect?this.passiveEffect(s,this.updateAndNotify):this.updateAndNotify(s)}setWithVelocity(s,l,o){this.set(l),this.prev=void 0,this.prevFrameValue=s,this.prevUpdatedAt=this.updatedAt-o}jump(s,l=!0){this.updateAndNotify(s),this.prev=s,this.prevUpdatedAt=this.prevFrameValue=void 0,l&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(s){this.dependents||(this.dependents=new Set),this.dependents.add(s)}removeDependent(s){this.dependents&&this.dependents.delete(s)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const s=_t.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||s-this.updatedAt>by)return 0;const l=Math.min(this.updatedAt-this.prevUpdatedAt,by);return Dg(parseFloat(this.current)-parseFloat(this.prevFrameValue),l)}start(s){return this.stop(),new Promise(l=>{this.hasAnimated=!0,this.animation=s(l),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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Zi(a,s){return new X2(a,s)}const{schedule:_d}=Gg(queueMicrotask,!1),pn={x:!1,y:!1};function h0(){return pn.x||pn.y}function K2(a){return a==="x"||a==="y"?pn[a]?null:(pn[a]=!0,()=>{pn[a]=!1}):pn.x||pn.y?null:(pn.x=pn.y=!0,()=>{pn.x=pn.y=!1})}function p0(a,s){const l=Y2(a),o=new AbortController,d={passive:!0,...s,signal:o.signal};return[l,d,()=>o.abort()]}function vy(a){return!(a.pointerType==="touch"||h0())}function Q2(a,s,l={}){const[o,d,m]=p0(a,l),f=g=>{if(!vy(g))return;const{target:y}=g,p=s(y,g);if(typeof p!="function"||!y)return;const b=x=>{vy(x)&&(p(x),y.removeEventListener("pointerleave",b))};y.addEventListener("pointerleave",b,d)};return o.forEach(g=>{g.addEventListener("pointerenter",f,d)}),m}const y0=(a,s)=>s?a===s?!0:y0(a,s.parentElement):!1,kd=a=>a.pointerType==="mouse"?typeof a.button!="number"||a.button<=0:a.isPrimary!==!1,Z2=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function J2(a){return Z2.has(a.tagName)||a.tabIndex!==-1}const Uo=new WeakSet;function xy(a){return s=>{s.key==="Enter"&&a(s)}}function Tc(a,s){a.dispatchEvent(new PointerEvent("pointer"+s,{isPrimary:!0,bubbles:!0}))}const P2=(a,s)=>{const l=a.currentTarget;if(!l)return;const o=xy(()=>{if(Uo.has(l))return;Tc(l,"down");const d=xy(()=>{Tc(l,"up")}),m=()=>Tc(l,"cancel");l.addEventListener("keyup",d,s),l.addEventListener("blur",m,s)});l.addEventListener("keydown",o,s),l.addEventListener("blur",()=>l.removeEventListener("keydown",o),s)};function Sy(a){return kd(a)&&!h0()}function F2(a,s,l={}){const[o,d,m]=p0(a,l),f=g=>{const y=g.currentTarget;if(!Sy(g))return;Uo.add(y);const p=s(y,g),b=(T,D)=>{window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",S),Uo.has(y)&&Uo.delete(y),Sy(T)&&typeof p=="function"&&p(T,{success:D})},x=T=>{b(T,y===window||y===document||l.useGlobalTarget||y0(y,T.target))},S=T=>{b(T,!1)};window.addEventListener("pointerup",x,d),window.addEventListener("pointercancel",S,d)};return o.forEach(g=>{(l.useGlobalTarget?window:g).addEventListener("pointerdown",f,d),m0(g)&&(g.addEventListener("focus",p=>P2(p,d)),!J2(g)&&!g.hasAttribute("tabindex")&&(g.tabIndex=0))}),m}function g0(a){return Mg(a)&&"ownerSVGElement"in a}function W2(a){return g0(a)&&a.tagName==="svg"}const wt=a=>!!(a&&a.getVelocity),$2=[...u0,it,ja],I2=a=>$2.find(r0(a)),Bd=N.createContext({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});function Cy(a,s){if(typeof a=="function")return a(s);a!=null&&(a.current=s)}function eS(...a){return s=>{let l=!1;const o=a.map(d=>{const m=Cy(d,s);return!l&&typeof m=="function"&&(l=!0),m});if(l)return()=>{for(let d=0;d<o.length;d++){const m=o[d];typeof m=="function"?m():Cy(a[d],null)}}}}function tS(...a){return N.useCallback(eS(...a),a)}class nS extends N.Component{getSnapshotBeforeUpdate(s){const l=this.props.childRef.current;if(l&&s.isPresent&&!this.props.isPresent){const o=l.offsetParent,d=m0(o)&&o.offsetWidth||0,m=this.props.sizeRef.current;m.height=l.offsetHeight||0,m.width=l.offsetWidth||0,m.top=l.offsetTop,m.left=l.offsetLeft,m.right=d-m.width-m.left}return null}componentDidUpdate(){}render(){return this.props.children}}function aS({children:a,isPresent:s,anchorX:l,root:o}){const d=N.useId(),m=N.useRef(null),f=N.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:g}=N.useContext(Bd),y=tS(m,a?.ref);return N.useInsertionEffect(()=>{const{width:p,height:b,top:x,left:S,right:T}=f.current;if(s||!m.current||!p||!b)return;const D=l==="left"?`left: ${S}`:`right: ${T}`;m.current.dataset.motionPopId=d;const R=document.createElement("style");g&&(R.nonce=g);const k=o??document.head;return k.appendChild(R),R.sheet&&R.sheet.insertRule(`
|
|
10
|
-
[data-motion-pop-id="${d}"] {
|
|
11
|
-
position: absolute !important;
|
|
12
|
-
width: ${p}px !important;
|
|
13
|
-
height: ${b}px !important;
|
|
14
|
-
${D}px !important;
|
|
15
|
-
top: ${x}px !important;
|
|
16
|
-
}
|
|
17
|
-
`),()=>{k.contains(R)&&k.removeChild(R)}},[s]),c.jsx(nS,{isPresent:s,childRef:m,sizeRef:f,children:N.cloneElement(a,{ref:y})})}const iS=({children:a,initial:s,isPresent:l,onExitComplete:o,custom:d,presenceAffectsLayout:m,mode:f,anchorX:g,root:y})=>{const p=pd(sS),b=N.useId();let x=!0,S=N.useMemo(()=>(x=!1,{id:b,initial:s,isPresent:l,custom:d,onExitComplete:T=>{p.set(T,!0);for(const D of p.values())if(!D)return;o&&o()},register:T=>(p.set(T,!1),()=>p.delete(T))}),[l,p,o]);return m&&x&&(S={...S}),N.useMemo(()=>{p.forEach((T,D)=>p.set(D,!1))},[l]),N.useEffect(()=>{!l&&!p.size&&o&&o()},[l]),f==="popLayout"&&(a=c.jsx(aS,{isPresent:l,anchorX:g,root:y,children:a})),c.jsx(Wo.Provider,{value:S,children:a})};function sS(){return new Map}function b0(a=!0){const s=N.useContext(Wo);if(s===null)return[!0,null];const{isPresent:l,onExitComplete:o,register:d}=s,m=N.useId();N.useEffect(()=>{if(a)return d(m)},[a]);const f=N.useCallback(()=>a&&o&&o(m),[m,o,a]);return!l&&o?[!1,f]:[!0]}const Oo=a=>a.key||"";function wy(a){const s=[];return N.Children.forEach(a,l=>{N.isValidElement(l)&&s.push(l)}),s}const rn=({children:a,custom:s,initial:l=!0,onExitComplete:o,presenceAffectsLayout:d=!0,mode:m="sync",propagate:f=!1,anchorX:g="left",root:y})=>{const[p,b]=b0(f),x=N.useMemo(()=>wy(a),[a]),S=f&&!p?[]:x.map(Oo),T=N.useRef(!0),D=N.useRef(x),R=pd(()=>new Map),[k,z]=N.useState(x),[X,Y]=N.useState(x);Ng(()=>{T.current=!1,D.current=x;for(let P=0;P<X.length;P++){const K=Oo(X[P]);S.includes(K)?R.delete(K):R.get(K)!==!0&&R.set(K,!1)}},[X,S.length,S.join("-")]);const W=[];if(x!==k){let P=[...x];for(let K=0;K<X.length;K++){const O=X[K],te=Oo(O);S.includes(te)||(P.splice(K,0,O),W.push(O))}return m==="wait"&&W.length&&(P=W),Y(wy(P)),z(x),null}const{forceRender:Z}=N.useContext(hd);return c.jsx(c.Fragment,{children:X.map(P=>{const K=Oo(P),O=f&&!p?!1:x===X||S.includes(K),te=()=>{if(R.has(K))R.set(K,!0);else return;let F=!0;R.forEach(ne=>{ne||(F=!1)}),F&&(Z?.(),Y(D.current),f&&b?.(),o&&o())};return c.jsx(iS,{isPresent:O,initial:!T.current||l?void 0:!1,custom:s,presenceAffectsLayout:d,mode:m,root:y,onExitComplete:O?void 0:te,anchorX:g,children:P},K)})})},v0=N.createContext({strict:!1}),jy={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"]},Ji={};for(const a in jy)Ji[a]={isEnabled:s=>jy[a].some(l=>!!s[l])};function lS(a){for(const s in a)Ji[s]={...Ji[s],...a[s]}}const oS=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 Qo(a){return a.startsWith("while")||a.startsWith("drag")&&a!=="draggable"||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||oS.has(a)}let x0=a=>!Qo(a);function rS(a){typeof a=="function"&&(x0=s=>s.startsWith("on")?!Qo(s):a(s))}try{rS(require("@emotion/is-prop-valid").default)}catch{}function uS(a,s,l){const o={};for(const d in a)d==="values"&&typeof a.values=="object"||(x0(d)||l===!0&&Qo(d)||!s&&!Qo(d)||a.draggable&&d.startsWith("onDrag"))&&(o[d]=a[d]);return o}const $o=N.createContext({});function Io(a){return a!==null&&typeof a=="object"&&typeof a.start=="function"}function ll(a){return typeof a=="string"||Array.isArray(a)}const Ld=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ud=["initial",...Ld];function er(a){return Io(a.animate)||Ud.some(s=>ll(a[s]))}function S0(a){return!!(er(a)||a.variants)}function cS(a,s){if(er(a)){const{initial:l,animate:o}=a;return{initial:l===!1||ll(l)?l:void 0,animate:ll(o)?o:void 0}}return a.inherit!==!1?s:{}}function dS(a){const{initial:s,animate:l}=cS(a,N.useContext($o));return N.useMemo(()=>({initial:s,animate:l}),[Ty(s),Ty(l)])}function Ty(a){return Array.isArray(a)?a.join(" "):a}function Ny(a,s){return s.max===s.min?0:a/(s.max-s.min)*100}const Ps={correct:(a,s)=>{if(!s.target)return a;if(typeof a=="string")if(be.test(a))a=parseFloat(a);else return a;const l=Ny(a,s.target.x),o=Ny(a,s.target.y);return`${l}% ${o}%`}},fS={correct:(a,{treeScale:s,projectionDelta:l})=>{const o=a,d=ja.parse(a);if(d.length>5)return o;const m=ja.createTransformer(a),f=typeof d[0]!="number"?1:0,g=l.x.scale*s.x,y=l.y.scale*s.y;d[0+f]/=g,d[1+f]/=y;const p=Ze(g,y,.5);return typeof d[2+f]=="number"&&(d[2+f]/=p),typeof d[3+f]=="number"&&(d[3+f]/=p),m(d)}},$c={borderRadius:{...Ps,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ps,borderTopRightRadius:Ps,borderBottomLeftRadius:Ps,borderBottomRightRadius:Ps,boxShadow:fS};function C0(a,{layout:s,layoutId:l}){return Wi.has(a)||a.startsWith("origin")||(s||l!==void 0)&&(!!$c[a]||a==="opacity")}const mS={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},hS=Fi.length;function pS(a,s,l){let o="",d=!0;for(let m=0;m<hS;m++){const f=Fi[m],g=a[f];if(g===void 0)continue;let y=!0;if(typeof g=="number"?y=g===(f.startsWith("scale")?1:0):y=parseFloat(g)===0,!y||l){const p=f0(g,Vd[f]);if(!y){d=!1;const b=mS[f]||f;o+=`${b}(${p}) `}l&&(s[f]=p)}}return o=o.trim(),l?o=l(s,d?"":o):d&&(o="none"),o}function Hd(a,s,l){const{style:o,vars:d,transformOrigin:m}=a;let f=!1,g=!1;for(const y in s){const p=s[y];if(Wi.has(y)){f=!0;continue}else if(qg(y)){d[y]=p;continue}else{const b=f0(p,Vd[y]);y.startsWith("origin")?(g=!0,m[y]=b):o[y]=b}}if(s.transform||(f||l?o.transform=pS(s,a.transform,l):o.transform&&(o.transform="none")),g){const{originX:y="50%",originY:p="50%",originZ:b=0}=m;o.transformOrigin=`${y} ${p} ${b}`}}const Gd=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function w0(a,s,l){for(const o in s)!wt(s[o])&&!C0(o,l)&&(a[o]=s[o])}function yS({transformTemplate:a},s){return N.useMemo(()=>{const l=Gd();return Hd(l,s,a),Object.assign({},l.vars,l.style)},[s])}function gS(a,s){const l=a.style||{},o={};return w0(o,l,a),Object.assign(o,yS(a,s)),o}function bS(a,s){const l={},o=gS(a,s);return a.drag&&a.dragListener!==!1&&(l.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=a.drag===!0?"none":`pan-${a.drag==="x"?"y":"x"}`),a.tabIndex===void 0&&(a.onTap||a.onTapStart||a.whileTap)&&(l.tabIndex=0),l.style=o,l}const vS={offset:"stroke-dashoffset",array:"stroke-dasharray"},xS={offset:"strokeDashoffset",array:"strokeDasharray"};function SS(a,s,l=1,o=0,d=!0){a.pathLength=1;const m=d?vS:xS;a[m.offset]=be.transform(-o);const f=be.transform(s),g=be.transform(l);a[m.array]=`${f} ${g}`}function j0(a,{attrX:s,attrY:l,attrScale:o,pathLength:d,pathSpacing:m=1,pathOffset:f=0,...g},y,p,b){if(Hd(a,g,p),y){a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox);return}a.attrs=a.style,a.style={};const{attrs:x,style:S}=a;x.transform&&(S.transform=x.transform,delete x.transform),(S.transform||x.transformOrigin)&&(S.transformOrigin=x.transformOrigin??"50% 50%",delete x.transformOrigin),S.transform&&(S.transformBox=b?.transformBox??"fill-box",delete x.transformBox),s!==void 0&&(x.x=s),l!==void 0&&(x.y=l),o!==void 0&&(x.scale=o),d!==void 0&&SS(x,d,m,f,!1)}const T0=()=>({...Gd(),attrs:{}}),N0=a=>typeof a=="string"&&a.toLowerCase()==="svg";function CS(a,s,l,o){const d=N.useMemo(()=>{const m=T0();return j0(m,s,N0(o),a.transformTemplate,a.style),{...m.attrs,style:{...m.style}}},[s]);if(a.style){const m={};w0(m,a.style,a),d.style={...m,...d.style}}return d}const wS=["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 Yd(a){return typeof a!="string"||a.includes("-")?!1:!!(wS.indexOf(a)>-1||/[A-Z]/u.test(a))}function jS(a,s,l,{latestValues:o},d,m=!1){const g=(Yd(a)?CS:bS)(s,o,d,a),y=uS(s,typeof a=="string",m),p=a!==N.Fragment?{...y,...g,ref:l}:{},{children:b}=s,x=N.useMemo(()=>wt(b)?b.get():b,[b]);return N.createElement(a,{...p,children:x})}function Ay(a){const s=[{},{}];return a?.values.forEach((l,o)=>{s[0][o]=l.get(),s[1][o]=l.getVelocity()}),s}function qd(a,s,l,o){if(typeof s=="function"){const[d,m]=Ay(o);s=s(l!==void 0?l:a.custom,d,m)}if(typeof s=="string"&&(s=a.variants&&a.variants[s]),typeof s=="function"){const[d,m]=Ay(o);s=s(l!==void 0?l:a.custom,d,m)}return s}function Ho(a){return wt(a)?a.get():a}function TS({scrapeMotionValuesFromProps:a,createRenderState:s},l,o,d){return{latestValues:NS(l,o,d,a),renderState:s()}}function NS(a,s,l,o){const d={},m=o(a,{});for(const S in m)d[S]=Ho(m[S]);let{initial:f,animate:g}=a;const y=er(a),p=S0(a);s&&p&&!y&&a.inherit!==!1&&(f===void 0&&(f=s.initial),g===void 0&&(g=s.animate));let b=l?l.initial===!1:!1;b=b||f===!1;const x=b?g:f;if(x&&typeof x!="boolean"&&!Io(x)){const S=Array.isArray(x)?x:[x];for(let T=0;T<S.length;T++){const D=qd(a,S[T]);if(D){const{transitionEnd:R,transition:k,...z}=D;for(const X in z){let Y=z[X];if(Array.isArray(Y)){const W=b?Y.length-1:0;Y=Y[W]}Y!==null&&(d[X]=Y)}for(const X in R)d[X]=R[X]}}}return d}const A0=a=>(s,l)=>{const o=N.useContext($o),d=N.useContext(Wo),m=()=>TS(a,s,o,d);return l?m():pd(m)};function Xd(a,s,l){const{style:o}=a,d={};for(const m in o)(wt(o[m])||s.style&&wt(s.style[m])||C0(m,a)||l?.getValue(m)?.liveStyle!==void 0)&&(d[m]=o[m]);return d}const AS=A0({scrapeMotionValuesFromProps:Xd,createRenderState:Gd});function M0(a,s,l){const o=Xd(a,s,l);for(const d in a)if(wt(a[d])||wt(s[d])){const m=Fi.indexOf(d)!==-1?"attr"+d.charAt(0).toUpperCase()+d.substring(1):d;o[m]=a[d]}return o}const MS=A0({scrapeMotionValuesFromProps:M0,createRenderState:T0}),ES=Symbol.for("motionComponentSymbol");function Yi(a){return a&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"current")}function DS(a,s,l){return N.useCallback(o=>{o&&a.onMount&&a.onMount(o),s&&(o?s.mount(o):s.unmount()),l&&(typeof l=="function"?l(o):Yi(l)&&(l.current=o))},[s])}const Kd=a=>a.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),zS="framerAppearId",E0="data-"+Kd(zS),D0=N.createContext({});function RS(a,s,l,o,d){const{visualElement:m}=N.useContext($o),f=N.useContext(v0),g=N.useContext(Wo),y=N.useContext(Bd).reducedMotion,p=N.useRef(null);o=o||f.renderer,!p.current&&o&&(p.current=o(a,{visualState:s,parent:m,props:l,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:y}));const b=p.current,x=N.useContext(D0);b&&!b.projection&&d&&(b.type==="html"||b.type==="svg")&&OS(p.current,l,d,x);const S=N.useRef(!1);N.useInsertionEffect(()=>{b&&S.current&&b.update(l,g)});const T=l[E0],D=N.useRef(!!T&&!window.MotionHandoffIsComplete?.(T)&&window.MotionHasOptimisedAnimation?.(T));return Ng(()=>{b&&(S.current=!0,window.MotionIsMounted=!0,b.updateFeatures(),b.scheduleRenderMicrotask(),D.current&&b.animationState&&b.animationState.animateChanges())}),N.useEffect(()=>{b&&(!D.current&&b.animationState&&b.animationState.animateChanges(),D.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(T)}),D.current=!1),b.enteringChildren=void 0)}),b}function OS(a,s,l,o){const{layoutId:d,layout:m,drag:f,dragConstraints:g,layoutScroll:y,layoutRoot:p,layoutCrossfade:b}=s;a.projection=new l(a.latestValues,s["data-framer-portal-id"]?void 0:z0(a.parent)),a.projection.setOptions({layoutId:d,layout:m,alwaysMeasureLayout:!!f||g&&Yi(g),visualElement:a,animationType:typeof m=="string"?m:"both",initialPromotionConfig:o,crossfade:b,layoutScroll:y,layoutRoot:p})}function z0(a){if(a)return a.options.allowProjection!==!1?a.projection:z0(a.parent)}function Nc(a,{forwardMotionProps:s=!1}={},l,o){l&&lS(l);const d=Yd(a)?MS:AS;function m(g,y){let p;const b={...N.useContext(Bd),...g,layoutId:VS(g)},{isStatic:x}=b,S=dS(g),T=d(g,x);if(!x&&yd){_S();const D=kS(b);p=D.MeasureLayout,S.visualElement=RS(a,T,b,o,D.ProjectionNode)}return c.jsxs($o.Provider,{value:S,children:[p&&S.visualElement?c.jsx(p,{visualElement:S.visualElement,...b}):null,jS(a,g,DS(T,S.visualElement,y),T,x,s)]})}m.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const f=N.forwardRef(m);return f[ES]=a,f}function VS({layoutId:a}){const s=N.useContext(hd).id;return s&&a!==void 0?s+"-"+a:a}function _S(a,s){N.useContext(v0).strict}function kS(a){const{drag:s,layout:l}=Ji;if(!s&&!l)return{};const o={...s,...l};return{MeasureLayout:s?.isEnabled(a)||l?.isEnabled(a)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function BS(a,s){if(typeof Proxy>"u")return Nc;const l=new Map,o=(m,f)=>Nc(m,f,a,s),d=(m,f)=>o(m,f);return new Proxy(d,{get:(m,f)=>f==="create"?o:(l.has(f)||l.set(f,Nc(f,void 0,a,s)),l.get(f))})}function R0({top:a,left:s,right:l,bottom:o}){return{x:{min:s,max:l},y:{min:a,max:o}}}function LS({x:a,y:s}){return{top:s.min,right:a.max,bottom:s.max,left:a.min}}function US(a,s){if(!s)return a;const l=s({x:a.left,y:a.top}),o=s({x:a.right,y:a.bottom});return{top:l.y,left:l.x,bottom:o.y,right:o.x}}function Ac(a){return a===void 0||a===1}function Ic({scale:a,scaleX:s,scaleY:l}){return!Ac(a)||!Ac(s)||!Ac(l)}function Za(a){return Ic(a)||O0(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function O0(a){return My(a.x)||My(a.y)}function My(a){return a&&a!=="0%"}function Zo(a,s,l){const o=a-l,d=s*o;return l+d}function Ey(a,s,l,o,d){return d!==void 0&&(a=Zo(a,d,o)),Zo(a,l,o)+s}function ed(a,s=0,l=1,o,d){a.min=Ey(a.min,s,l,o,d),a.max=Ey(a.max,s,l,o,d)}function V0(a,{x:s,y:l}){ed(a.x,s.translate,s.scale,s.originPoint),ed(a.y,l.translate,l.scale,l.originPoint)}const Dy=.999999999999,zy=1.0000000000001;function HS(a,s,l,o=!1){const d=l.length;if(!d)return;s.x=s.y=1;let m,f;for(let g=0;g<d;g++){m=l[g],f=m.projectionDelta;const{visualElement:y}=m.options;y&&y.props.style&&y.props.style.display==="contents"||(o&&m.options.layoutScroll&&m.scroll&&m!==m.root&&Xi(a,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),f&&(s.x*=f.x.scale,s.y*=f.y.scale,V0(a,f)),o&&Za(m.latestValues)&&Xi(a,m.latestValues))}s.x<zy&&s.x>Dy&&(s.x=1),s.y<zy&&s.y>Dy&&(s.y=1)}function qi(a,s){a.min=a.min+s,a.max=a.max+s}function Ry(a,s,l,o,d=.5){const m=Ze(a.min,a.max,d);ed(a,s,l,m,o)}function Xi(a,s){Ry(a.x,s.x,s.scaleX,s.scale,s.originX),Ry(a.y,s.y,s.scaleY,s.scale,s.originY)}function _0(a,s){return R0(US(a.getBoundingClientRect(),s))}function GS(a,s,l){const o=_0(a,l),{scroll:d}=s;return d&&(qi(o.x,d.offset.x),qi(o.y,d.offset.y)),o}const Oy=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ki=()=>({x:Oy(),y:Oy()}),Vy=()=>({min:0,max:0}),rt=()=>({x:Vy(),y:Vy()}),td={current:null},k0={current:!1};function YS(){if(k0.current=!0,!!yd)if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)"),s=()=>td.current=a.matches;a.addEventListener("change",s),s()}else td.current=!1}const qS=new WeakMap;function XS(a,s,l){for(const o in s){const d=s[o],m=l[o];if(wt(d))a.addValue(o,d);else if(wt(m))a.addValue(o,Zi(d,{owner:a}));else if(m!==d)if(a.hasValue(o)){const f=a.getValue(o);f.liveStyle===!0?f.jump(d):f.hasAnimated||f.set(d)}else{const f=a.getStaticValue(o);a.addValue(o,Zi(f!==void 0?f:d,{owner:a}))}}for(const o in l)s[o]===void 0&&a.removeValue(o);return s}const _y=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class KS{scrapeMotionValuesFromProps(s,l,o){return{}}constructor({parent:s,props:l,presenceContext:o,reducedMotionConfig:d,blockInitialAnimation:m,visualState:f},g={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Rd,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 S=_t.now();this.renderScheduledAt<S&&(this.renderScheduledAt=S,Qe.render(this.render,!1,!0))};const{latestValues:y,renderState:p}=f;this.latestValues=y,this.baseTarget={...y},this.initialValues=l.initial?{...y}:{},this.renderState=p,this.parent=s,this.props=l,this.presenceContext=o,this.depth=s?s.depth+1:0,this.reducedMotionConfig=d,this.options=g,this.blockInitialAnimation=!!m,this.isControllingVariants=er(l),this.isVariantNode=S0(l),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(s&&s.current);const{willChange:b,...x}=this.scrapeMotionValuesFromProps(l,{},this);for(const S in x){const T=x[S];y[S]!==void 0&&wt(T)&&T.set(y[S])}}mount(s){this.current=s,qS.set(s,this),this.projection&&!this.projection.instance&&this.projection.mount(s),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((l,o)=>this.bindToMotionValue(o,l)),k0.current||YS(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:td.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),wa(this.notifyUpdate),wa(this.render),this.valueSubscriptions.forEach(s=>s()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const s in this.events)this.events[s].clear();for(const s in this.features){const l=this.features[s];l&&(l.unmount(),l.isMounted=!1)}this.current=null}addChild(s){this.children.add(s),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(s)}removeChild(s){this.children.delete(s),this.enteringChildren&&this.enteringChildren.delete(s)}bindToMotionValue(s,l){this.valueSubscriptions.has(s)&&this.valueSubscriptions.get(s)();const o=Wi.has(s);o&&this.onBindTransform&&this.onBindTransform();const d=l.on("change",f=>{this.latestValues[s]=f,this.props.onUpdate&&Qe.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let m;window.MotionCheckAppearSync&&(m=window.MotionCheckAppearSync(this,s,l)),this.valueSubscriptions.set(s,()=>{d(),m&&m(),l.owner&&l.stop()})}sortNodePosition(s){return!this.current||!this.sortInstanceNodePosition||this.type!==s.type?0:this.sortInstanceNodePosition(this.current,s.current)}updateFeatures(){let s="animation";for(s in Ji){const l=Ji[s];if(!l)continue;const{isEnabled:o,Feature:d}=l;if(!this.features[s]&&d&&o(this.props)&&(this.features[s]=new d(this)),this.features[s]){const m=this.features[s];m.isMounted?m.update():(m.mount(),m.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):rt()}getStaticValue(s){return this.latestValues[s]}setStaticValue(s,l){this.latestValues[s]=l}update(s,l){(s.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=s,this.prevPresenceContext=this.presenceContext,this.presenceContext=l;for(let o=0;o<_y.length;o++){const d=_y[o];this.propEventSubscriptions[d]&&(this.propEventSubscriptions[d](),delete this.propEventSubscriptions[d]);const m="on"+d,f=s[m];f&&(this.propEventSubscriptions[d]=this.on(d,f))}this.prevMotionValues=XS(this,this.scrapeMotionValuesFromProps(s,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(s){return this.props.variants?this.props.variants[s]: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(s){const l=this.getClosestVariantNode();if(l)return l.variantChildren&&l.variantChildren.add(s),()=>l.variantChildren.delete(s)}addValue(s,l){const o=this.values.get(s);l!==o&&(o&&this.removeValue(s),this.bindToMotionValue(s,l),this.values.set(s,l),this.latestValues[s]=l.get())}removeValue(s){this.values.delete(s);const l=this.valueSubscriptions.get(s);l&&(l(),this.valueSubscriptions.delete(s)),delete this.latestValues[s],this.removeValueFromRenderState(s,this.renderState)}hasValue(s){return this.values.has(s)}getValue(s,l){if(this.props.values&&this.props.values[s])return this.props.values[s];let o=this.values.get(s);return o===void 0&&l!==void 0&&(o=Zi(l===null?void 0:l,{owner:this}),this.addValue(s,o)),o}readValue(s,l){let o=this.latestValues[s]!==void 0||!this.current?this.latestValues[s]:this.getBaseTargetFromProps(this.props,s)??this.readValueFromInstance(this.current,s,this.options);return o!=null&&(typeof o=="string"&&(Ag(o)||Eg(o))?o=parseFloat(o):!I2(o)&&ja.test(l)&&(o=d0(s,l)),this.setBaseTarget(s,wt(o)?o.get():o)),wt(o)?o.get():o}setBaseTarget(s,l){this.baseTarget[s]=l}getBaseTarget(s){const{initial:l}=this.props;let o;if(typeof l=="string"||typeof l=="object"){const m=qd(this.props,l,this.presenceContext?.custom);m&&(o=m[s])}if(l&&o!==void 0)return o;const d=this.getBaseTargetFromProps(this.props,s);return d!==void 0&&!wt(d)?d:this.initialValues[s]!==void 0&&o===void 0?void 0:this.baseTarget[s]}on(s,l){return this.events[s]||(this.events[s]=new Sd),this.events[s].add(l)}notify(s,...l){this.events[s]&&this.events[s].notify(...l)}scheduleRenderMicrotask(){_d.render(this.render)}}class B0 extends KS{constructor(){super(...arguments),this.KeyframeResolver=G2}sortInstanceNodePosition(s,l){return s.compareDocumentPosition(l)&2?1:-1}getBaseTargetFromProps(s,l){return s.style?s.style[l]:void 0}removeValueFromRenderState(s,{vars:l,style:o}){delete l[s],delete o[s]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:s}=this.props;wt(s)&&(this.childSubscription=s.on("change",l=>{this.current&&(this.current.textContent=`${l}`)}))}}function L0(a,{style:s,vars:l},o,d){const m=a.style;let f;for(f in s)m[f]=s[f];d?.applyProjectionStyles(m,o);for(f in l)m.setProperty(f,l[f])}function QS(a){return window.getComputedStyle(a)}class ZS extends B0{constructor(){super(...arguments),this.type="html",this.renderInstance=L0}readValueFromInstance(s,l){if(Wi.has(l))return this.projection?.isProjecting?Kc(l):l2(s,l);{const o=QS(s),d=(qg(l)?o.getPropertyValue(l):o[l])||0;return typeof d=="string"?d.trim():d}}measureInstanceViewportBox(s,{transformPagePoint:l}){return _0(s,l)}build(s,l,o){Hd(s,l,o.transformTemplate)}scrapeMotionValuesFromProps(s,l,o){return Xd(s,l,o)}}const U0=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 JS(a,s,l,o){L0(a,s,void 0,o);for(const d in s.attrs)a.setAttribute(U0.has(d)?d:Kd(d),s.attrs[d])}class PS extends B0{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=rt}getBaseTargetFromProps(s,l){return s[l]}readValueFromInstance(s,l){if(Wi.has(l)){const o=c0(l);return o&&o.default||0}return l=U0.has(l)?l:Kd(l),s.getAttribute(l)}scrapeMotionValuesFromProps(s,l,o){return M0(s,l,o)}build(s,l,o){j0(s,l,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(s,l,o,d){JS(s,l,o,d)}mount(s){this.isSVGTag=N0(s.tagName),super.mount(s)}}const FS=(a,s)=>Yd(a)?new PS(s):new ZS(s,{allowProjection:a!==N.Fragment});function Qi(a,s,l){const o=a.getProps();return qd(o,s,l!==void 0?l:o.custom,a)}const nd=a=>Array.isArray(a);function WS(a,s,l){a.hasValue(s)?a.getValue(s).set(l):a.addValue(s,Zi(l))}function $S(a){return nd(a)?a[a.length-1]||0:a}function IS(a,s){const l=Qi(a,s);let{transitionEnd:o={},transition:d={},...m}=l||{};m={...m,...o};for(const f in m){const g=$S(m[f]);WS(a,f,g)}}function eC(a){return!!(wt(a)&&a.add)}function ad(a,s){const l=a.getValue("willChange");if(eC(l))return l.add(s);if(!l&&Jn.WillChange){const o=new Jn.WillChange("auto");a.addValue("willChange",o),o.add(s)}}function H0(a){return a.props[E0]}const tC=a=>a!==null;function nC(a,{repeat:s,repeatType:l="loop"},o){const d=a.filter(tC),m=s&&l!=="loop"&&s%2===1?0:d.length-1;return d[m]}const aC={type:"spring",stiffness:500,damping:25,restSpeed:10},iC=a=>({type:"spring",stiffness:550,damping:a===0?2*Math.sqrt(550):30,restSpeed:10}),sC={type:"keyframes",duration:.8},lC={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},oC=(a,{keyframes:s})=>s.length>2?sC:Wi.has(a)?a.startsWith("scale")?iC(s[1]):aC:lC;function rC({when:a,delay:s,delayChildren:l,staggerChildren:o,staggerDirection:d,repeat:m,repeatType:f,repeatDelay:g,from:y,elapsed:p,...b}){return!!Object.keys(b).length}const Qd=(a,s,l,o={},d,m)=>f=>{const g=Od(o,a)||{},y=g.delay||o.delay||0;let{elapsed:p=0}=o;p=p-Cn(y);const b={keyframes:Array.isArray(l)?l:[null,l],ease:"easeOut",velocity:s.getVelocity(),...g,delay:-p,onUpdate:S=>{s.set(S),g.onUpdate&&g.onUpdate(S)},onComplete:()=>{f(),g.onComplete&&g.onComplete()},name:a,motionValue:s,element:m?void 0:d};rC(g)||Object.assign(b,oC(a,b)),b.duration&&(b.duration=Cn(b.duration)),b.repeatDelay&&(b.repeatDelay=Cn(b.repeatDelay)),b.from!==void 0&&(b.keyframes[0]=b.from);let x=!1;if((b.type===!1||b.duration===0&&!b.repeatDelay)&&(Fc(b),b.delay===0&&(x=!0)),(Jn.instantAnimations||Jn.skipAnimations)&&(x=!0,Fc(b),b.delay=0),b.allowFlatten=!g.type&&!g.ease,x&&!m&&s.get()!==void 0){const S=nC(b.keyframes,g);if(S!==void 0){Qe.update(()=>{b.onUpdate(S),b.onComplete()});return}}return g.isSync?new zd(b):new E2(b)};function uC({protectedKeys:a,needsAnimating:s},l){const o=a.hasOwnProperty(l)&&s[l]!==!0;return s[l]=!1,o}function G0(a,s,{delay:l=0,transitionOverride:o,type:d}={}){let{transition:m=a.getDefaultTransition(),transitionEnd:f,...g}=s;o&&(m=o);const y=[],p=d&&a.animationState&&a.animationState.getState()[d];for(const b in g){const x=a.getValue(b,a.latestValues[b]??null),S=g[b];if(S===void 0||p&&uC(p,b))continue;const T={delay:l,...Od(m||{},b)},D=x.get();if(D!==void 0&&!x.isAnimating&&!Array.isArray(S)&&S===D&&!T.velocity)continue;let R=!1;if(window.MotionHandoffAnimation){const z=H0(a);if(z){const X=window.MotionHandoffAnimation(z,b,Qe);X!==null&&(T.startTime=X,R=!0)}}ad(a,b),x.start(Qd(b,x,S,a.shouldReduceMotion&&o0.has(b)?{type:!1}:T,a,R));const k=x.animation;k&&y.push(k)}return f&&Promise.all(y).then(()=>{Qe.update(()=>{f&&IS(a,f)})}),y}function Y0(a,s,l,o=0,d=1){const m=Array.from(a).sort((p,b)=>p.sortNodePosition(b)).indexOf(s),f=a.size,g=(f-1)*o;return typeof l=="function"?l(m,f):d===1?m*o:g-m*o}function id(a,s,l={}){const o=Qi(a,s,l.type==="exit"?a.presenceContext?.custom:void 0);let{transition:d=a.getDefaultTransition()||{}}=o||{};l.transitionOverride&&(d=l.transitionOverride);const m=o?()=>Promise.all(G0(a,o,l)):()=>Promise.resolve(),f=a.variantChildren&&a.variantChildren.size?(y=0)=>{const{delayChildren:p=0,staggerChildren:b,staggerDirection:x}=d;return cC(a,s,y,p,b,x,l)}:()=>Promise.resolve(),{when:g}=d;if(g){const[y,p]=g==="beforeChildren"?[m,f]:[f,m];return y().then(()=>p())}else return Promise.all([m(),f(l.delay)])}function cC(a,s,l=0,o=0,d=0,m=1,f){const g=[];for(const y of a.variantChildren)y.notify("AnimationStart",s),g.push(id(y,s,{...f,delay:l+(typeof o=="function"?0:o)+Y0(a.variantChildren,y,o,d,m)}).then(()=>y.notify("AnimationComplete",s)));return Promise.all(g)}function dC(a,s,l={}){a.notify("AnimationStart",s);let o;if(Array.isArray(s)){const d=s.map(m=>id(a,m,l));o=Promise.all(d)}else if(typeof s=="string")o=id(a,s,l);else{const d=typeof s=="function"?Qi(a,s,l.custom):s;o=Promise.all(G0(a,d,l))}return o.then(()=>{a.notify("AnimationComplete",s)})}function q0(a,s){if(!Array.isArray(s))return!1;const l=s.length;if(l!==a.length)return!1;for(let o=0;o<l;o++)if(s[o]!==a[o])return!1;return!0}const fC=Ud.length;function X0(a){if(!a)return;if(!a.isControllingVariants){const l=a.parent?X0(a.parent)||{}:{};return a.props.initial!==void 0&&(l.initial=a.props.initial),l}const s={};for(let l=0;l<fC;l++){const o=Ud[l],d=a.props[o];(ll(d)||d===!1)&&(s[o]=d)}return s}const mC=[...Ld].reverse(),hC=Ld.length;function pC(a){return s=>Promise.all(s.map(({animation:l,options:o})=>dC(a,l,o)))}function yC(a){let s=pC(a),l=ky(),o=!0;const d=y=>(p,b)=>{const x=Qi(a,b,y==="exit"?a.presenceContext?.custom:void 0);if(x){const{transition:S,transitionEnd:T,...D}=x;p={...p,...D,...T}}return p};function m(y){s=y(a)}function f(y){const{props:p}=a,b=X0(a.parent)||{},x=[],S=new Set;let T={},D=1/0;for(let k=0;k<hC;k++){const z=mC[k],X=l[z],Y=p[z]!==void 0?p[z]:b[z],W=ll(Y),Z=z===y?X.isActive:null;Z===!1&&(D=k);let P=Y===b[z]&&Y!==p[z]&&W;if(P&&o&&a.manuallyAnimateOnMount&&(P=!1),X.protectedKeys={...T},!X.isActive&&Z===null||!Y&&!X.prevProp||Io(Y)||typeof Y=="boolean")continue;const K=gC(X.prevProp,Y);let O=K||z===y&&X.isActive&&!P&&W||k>D&&W,te=!1;const F=Array.isArray(Y)?Y:[Y];let ne=F.reduce(d(z),{});Z===!1&&(ne={});const{prevResolvedValues:de={}}=X,Re={...de,...ne},ve=U=>{O=!0,S.has(U)&&(te=!0,S.delete(U)),X.needsAnimating[U]=!0;const M=a.getValue(U);M&&(M.liveStyle=!1)};for(const U in Re){const M=ne[U],se=de[U];if(T.hasOwnProperty(U))continue;let ye=!1;nd(M)&&nd(se)?ye=!q0(M,se):ye=M!==se,ye?M!=null?ve(U):S.add(U):M!==void 0&&S.has(U)?ve(U):X.protectedKeys[U]=!0}X.prevProp=Y,X.prevResolvedValues=ne,X.isActive&&(T={...T,...ne}),o&&a.blockInitialAnimation&&(O=!1);const ee=P&&K;O&&(!ee||te)&&x.push(...F.map(U=>{const M={type:z};if(typeof U=="string"&&o&&!ee&&a.manuallyAnimateOnMount&&a.parent){const{parent:se}=a,ye=Qi(se,U);if(se.enteringChildren&&ye){const{delayChildren:w}=ye.transition||{};M.delay=Y0(se.enteringChildren,a,w)}}return{animation:U,options:M}}))}if(S.size){const k={};if(typeof p.initial!="boolean"){const z=Qi(a,Array.isArray(p.initial)?p.initial[0]:p.initial);z&&z.transition&&(k.transition=z.transition)}S.forEach(z=>{const X=a.getBaseTarget(z),Y=a.getValue(z);Y&&(Y.liveStyle=!0),k[z]=X??null}),x.push({animation:k})}let R=!!x.length;return o&&(p.initial===!1||p.initial===p.animate)&&!a.manuallyAnimateOnMount&&(R=!1),o=!1,R?s(x):Promise.resolve()}function g(y,p){if(l[y].isActive===p)return Promise.resolve();a.variantChildren?.forEach(x=>x.animationState?.setActive(y,p)),l[y].isActive=p;const b=f(y);for(const x in l)l[x].protectedKeys={};return b}return{animateChanges:f,setActive:g,setAnimateFunction:m,getState:()=>l,reset:()=>{l=ky()}}}function gC(a,s){return typeof s=="string"?s!==a:Array.isArray(s)?!q0(s,a):!1}function Xa(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ky(){return{animate:Xa(!0),whileInView:Xa(),whileHover:Xa(),whileTap:Xa(),whileDrag:Xa(),whileFocus:Xa(),exit:Xa()}}class Ta{constructor(s){this.isMounted=!1,this.node=s}update(){}}class bC extends Ta{constructor(s){super(s),s.animationState||(s.animationState=yC(s))}updateAnimationControlsSubscription(){const{animate:s}=this.node.getProps();Io(s)&&(this.unmountControls=s.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:s}=this.node.getProps(),{animate:l}=this.node.prevProps||{};s!==l&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let vC=0;class xC extends Ta{constructor(){super(...arguments),this.id=vC++}update(){if(!this.node.presenceContext)return;const{isPresent:s,onExitComplete:l}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||s===o)return;const d=this.node.animationState.setActive("exit",!s);l&&!s&&d.then(()=>{l(this.id)})}mount(){const{register:s,onExitComplete:l}=this.node.presenceContext||{};l&&l(this.id),s&&(this.unmount=s(this.id))}unmount(){}}const SC={animation:{Feature:bC},exit:{Feature:xC}};function ol(a,s,l,o={passive:!0}){return a.addEventListener(s,l,o),()=>a.removeEventListener(s,l)}function dl(a){return{point:{x:a.pageX,y:a.pageY}}}const CC=a=>s=>kd(s)&&a(s,dl(s));function tl(a,s,l,o){return ol(a,s,CC(l),o)}const K0=1e-4,wC=1-K0,jC=1+K0,Q0=.01,TC=0-Q0,NC=0+Q0;function At(a){return a.max-a.min}function AC(a,s,l){return Math.abs(a-s)<=l}function By(a,s,l,o=.5){a.origin=o,a.originPoint=Ze(s.min,s.max,a.origin),a.scale=At(l)/At(s),a.translate=Ze(l.min,l.max,a.origin)-a.originPoint,(a.scale>=wC&&a.scale<=jC||isNaN(a.scale))&&(a.scale=1),(a.translate>=TC&&a.translate<=NC||isNaN(a.translate))&&(a.translate=0)}function nl(a,s,l,o){By(a.x,s.x,l.x,o?o.originX:void 0),By(a.y,s.y,l.y,o?o.originY:void 0)}function Ly(a,s,l){a.min=l.min+s.min,a.max=a.min+At(s)}function MC(a,s,l){Ly(a.x,s.x,l.x),Ly(a.y,s.y,l.y)}function Uy(a,s,l){a.min=s.min-l.min,a.max=a.min+At(s)}function Jo(a,s,l){Uy(a.x,s.x,l.x),Uy(a.y,s.y,l.y)}function an(a){return[a("x"),a("y")]}const Z0=({current:a})=>a?a.ownerDocument.defaultView:null,Hy=(a,s)=>Math.abs(a-s);function EC(a,s){const l=Hy(a.x,s.x),o=Hy(a.y,s.y);return Math.sqrt(l**2+o**2)}class J0{constructor(s,l,{transformPagePoint:o,contextWindow:d=window,dragSnapToOrigin:m=!1,distanceThreshold:f=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=Ec(this.lastMoveEventInfo,this.history),T=this.startEvent!==null,D=EC(S.offset,{x:0,y:0})>=this.distanceThreshold;if(!T&&!D)return;const{point:R}=S,{timestamp:k}=yt;this.history.push({...R,timestamp:k});const{onStart:z,onMove:X}=this.handlers;T||(z&&z(this.lastMoveEvent,S),this.startEvent=this.lastMoveEvent),X&&X(this.lastMoveEvent,S)},this.handlePointerMove=(S,T)=>{this.lastMoveEvent=S,this.lastMoveEventInfo=Mc(T,this.transformPagePoint),Qe.update(this.updatePoint,!0)},this.handlePointerUp=(S,T)=>{this.end();const{onEnd:D,onSessionEnd:R,resumeAnimation:k}=this.handlers;if(this.dragSnapToOrigin&&k&&k(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const z=Ec(S.type==="pointercancel"?this.lastMoveEventInfo:Mc(T,this.transformPagePoint),this.history);this.startEvent&&D&&D(S,z),R&&R(S,z)},!kd(s))return;this.dragSnapToOrigin=m,this.handlers=l,this.transformPagePoint=o,this.distanceThreshold=f,this.contextWindow=d||window;const g=dl(s),y=Mc(g,this.transformPagePoint),{point:p}=y,{timestamp:b}=yt;this.history=[{...p,timestamp:b}];const{onSessionStart:x}=l;x&&x(s,Ec(y,this.history)),this.removeListeners=rl(tl(this.contextWindow,"pointermove",this.handlePointerMove),tl(this.contextWindow,"pointerup",this.handlePointerUp),tl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(s){this.handlers=s}end(){this.removeListeners&&this.removeListeners(),wa(this.updatePoint)}}function Mc(a,s){return s?{point:s(a.point)}:a}function Gy(a,s){return{x:a.x-s.x,y:a.y-s.y}}function Ec({point:a},s){return{point:a,delta:Gy(a,P0(s)),offset:Gy(a,DC(s)),velocity:zC(s,.1)}}function DC(a){return a[0]}function P0(a){return a[a.length-1]}function zC(a,s){if(a.length<2)return{x:0,y:0};let l=a.length-1,o=null;const d=P0(a);for(;l>=0&&(o=a[l],!(d.timestamp-o.timestamp>Cn(s)));)l--;if(!o)return{x:0,y:0};const m=sn(d.timestamp-o.timestamp);if(m===0)return{x:0,y:0};const f={x:(d.x-o.x)/m,y:(d.y-o.y)/m};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}function RC(a,{min:s,max:l},o){return s!==void 0&&a<s?a=o?Ze(s,a,o.min):Math.max(a,s):l!==void 0&&a>l&&(a=o?Ze(l,a,o.max):Math.min(a,l)),a}function Yy(a,s,l){return{min:s!==void 0?a.min+s:void 0,max:l!==void 0?a.max+l-(a.max-a.min):void 0}}function OC(a,{top:s,left:l,bottom:o,right:d}){return{x:Yy(a.x,l,d),y:Yy(a.y,s,o)}}function qy(a,s){let l=s.min-a.min,o=s.max-a.max;return s.max-s.min<a.max-a.min&&([l,o]=[o,l]),{min:l,max:o}}function VC(a,s){return{x:qy(a.x,s.x),y:qy(a.y,s.y)}}function _C(a,s){let l=.5;const o=At(a),d=At(s);return d>o?l=al(s.min,s.max-o,a.min):o>d&&(l=al(a.min,a.max-d,s.min)),Zn(0,1,l)}function kC(a,s){const l={};return s.min!==void 0&&(l.min=s.min-a.min),s.max!==void 0&&(l.max=s.max-a.min),l}const sd=.35;function BC(a=sd){return a===!1?a=0:a===!0&&(a=sd),{x:Xy(a,"left","right"),y:Xy(a,"top","bottom")}}function Xy(a,s,l){return{min:Ky(a,s),max:Ky(a,l)}}function Ky(a,s){return typeof a=="number"?a:a[s]||0}const LC=new WeakMap;class UC{constructor(s){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=rt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=s}start(s,{snapToCursor:l=!1,distanceThreshold:o}={}){const{presenceContext:d}=this.visualElement;if(d&&d.isPresent===!1)return;const m=x=>{const{dragSnapToOrigin:S}=this.getProps();S?this.pauseAnimation():this.stopAnimation(),l&&this.snapToCursor(dl(x).point)},f=(x,S)=>{const{drag:T,dragPropagation:D,onDragStart:R}=this.getProps();if(T&&!D&&(this.openDragLock&&this.openDragLock(),this.openDragLock=K2(T),!this.openDragLock))return;this.latestPointerEvent=x,this.latestPanInfo=S,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),an(z=>{let X=this.getAxisMotionValue(z).get()||0;if(wn.test(X)){const{projection:Y}=this.visualElement;if(Y&&Y.layout){const W=Y.layout.layoutBox[z];W&&(X=At(W)*(parseFloat(X)/100))}}this.originPoint[z]=X}),R&&Qe.postRender(()=>R(x,S)),ad(this.visualElement,"transform");const{animationState:k}=this.visualElement;k&&k.setActive("whileDrag",!0)},g=(x,S)=>{this.latestPointerEvent=x,this.latestPanInfo=S;const{dragPropagation:T,dragDirectionLock:D,onDirectionLock:R,onDrag:k}=this.getProps();if(!T&&!this.openDragLock)return;const{offset:z}=S;if(D&&this.currentDirection===null){this.currentDirection=HC(z),this.currentDirection!==null&&R&&R(this.currentDirection);return}this.updateAxis("x",S.point,z),this.updateAxis("y",S.point,z),this.visualElement.render(),k&&k(x,S)},y=(x,S)=>{this.latestPointerEvent=x,this.latestPanInfo=S,this.stop(x,S),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>an(x=>this.getAnimationState(x)==="paused"&&this.getAxisMotionValue(x).animation?.play()),{dragSnapToOrigin:b}=this.getProps();this.panSession=new J0(s,{onSessionStart:m,onStart:f,onMove:g,onSessionEnd:y,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:b,distanceThreshold:o,contextWindow:Z0(this.visualElement)})}stop(s,l){const o=s||this.latestPointerEvent,d=l||this.latestPanInfo,m=this.isDragging;if(this.cancel(),!m||!d||!o)return;const{velocity:f}=d;this.startAnimation(f);const{onDragEnd:g}=this.getProps();g&&Qe.postRender(()=>g(o,d))}cancel(){this.isDragging=!1;const{projection:s,animationState:l}=this.visualElement;s&&(s.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),l&&l.setActive("whileDrag",!1)}updateAxis(s,l,o){const{drag:d}=this.getProps();if(!o||!Vo(s,d,this.currentDirection))return;const m=this.getAxisMotionValue(s);let f=this.originPoint[s]+o[s];this.constraints&&this.constraints[s]&&(f=RC(f,this.constraints[s],this.elastic[s])),m.set(f)}resolveConstraints(){const{dragConstraints:s,dragElastic:l}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,d=this.constraints;s&&Yi(s)?this.constraints||(this.constraints=this.resolveRefConstraints()):s&&o?this.constraints=OC(o.layoutBox,s):this.constraints=!1,this.elastic=BC(l),d!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&an(m=>{this.constraints!==!1&&this.getAxisMotionValue(m)&&(this.constraints[m]=kC(o.layoutBox[m],this.constraints[m]))})}resolveRefConstraints(){const{dragConstraints:s,onMeasureDragConstraints:l}=this.getProps();if(!s||!Yi(s))return!1;const o=s.current,{projection:d}=this.visualElement;if(!d||!d.layout)return!1;const m=GS(o,d.root,this.visualElement.getTransformPagePoint());let f=VC(d.layout.layoutBox,m);if(l){const g=l(LS(f));this.hasMutatedConstraints=!!g,g&&(f=R0(g))}return f}startAnimation(s){const{drag:l,dragMomentum:o,dragElastic:d,dragTransition:m,dragSnapToOrigin:f,onDragTransitionEnd:g}=this.getProps(),y=this.constraints||{},p=an(b=>{if(!Vo(b,l,this.currentDirection))return;let x=y&&y[b]||{};f&&(x={min:0,max:0});const S=d?200:1e6,T=d?40:1e7,D={type:"inertia",velocity:o?s[b]:0,bounceStiffness:S,bounceDamping:T,timeConstant:750,restDelta:1,restSpeed:10,...m,...x};return this.startAxisValueAnimation(b,D)});return Promise.all(p).then(g)}startAxisValueAnimation(s,l){const o=this.getAxisMotionValue(s);return ad(this.visualElement,s),o.start(Qd(s,o,0,l,this.visualElement,!1))}stopAnimation(){an(s=>this.getAxisMotionValue(s).stop())}pauseAnimation(){an(s=>this.getAxisMotionValue(s).animation?.pause())}getAnimationState(s){return this.getAxisMotionValue(s).animation?.state}getAxisMotionValue(s){const l=`_drag${s.toUpperCase()}`,o=this.visualElement.getProps(),d=o[l];return d||this.visualElement.getValue(s,(o.initial?o.initial[s]:void 0)||0)}snapToCursor(s){an(l=>{const{drag:o}=this.getProps();if(!Vo(l,o,this.currentDirection))return;const{projection:d}=this.visualElement,m=this.getAxisMotionValue(l);if(d&&d.layout){const{min:f,max:g}=d.layout.layoutBox[l];m.set(s[l]-Ze(f,g,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:s,dragConstraints:l}=this.getProps(),{projection:o}=this.visualElement;if(!Yi(l)||!o||!this.constraints)return;this.stopAnimation();const d={x:0,y:0};an(f=>{const g=this.getAxisMotionValue(f);if(g&&this.constraints!==!1){const y=g.get();d[f]=_C({min:y,max:y},this.constraints[f])}});const{transformTemplate:m}=this.visualElement.getProps();this.visualElement.current.style.transform=m?m({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),an(f=>{if(!Vo(f,s,null))return;const g=this.getAxisMotionValue(f),{min:y,max:p}=this.constraints[f];g.set(Ze(y,p,d[f]))})}addListeners(){if(!this.visualElement.current)return;LC.set(this.visualElement,this);const s=this.visualElement.current,l=tl(s,"pointerdown",y=>{const{drag:p,dragListener:b=!0}=this.getProps();p&&b&&this.start(y)}),o=()=>{const{dragConstraints:y}=this.getProps();Yi(y)&&y.current&&(this.constraints=this.resolveRefConstraints())},{projection:d}=this.visualElement,m=d.addEventListener("measure",o);d&&!d.layout&&(d.root&&d.root.updateScroll(),d.updateLayout()),Qe.read(o);const f=ol(window,"resize",()=>this.scalePositionWithinConstraints()),g=d.addEventListener("didUpdate",(({delta:y,hasLayoutChanged:p})=>{this.isDragging&&p&&(an(b=>{const x=this.getAxisMotionValue(b);x&&(this.originPoint[b]+=y[b].translate,x.set(x.get()+y[b].translate))}),this.visualElement.render())}));return()=>{f(),l(),m(),g&&g()}}getProps(){const s=this.visualElement.getProps(),{drag:l=!1,dragDirectionLock:o=!1,dragPropagation:d=!1,dragConstraints:m=!1,dragElastic:f=sd,dragMomentum:g=!0}=s;return{...s,drag:l,dragDirectionLock:o,dragPropagation:d,dragConstraints:m,dragElastic:f,dragMomentum:g}}}function Vo(a,s,l){return(s===!0||s===a)&&(l===null||l===a)}function HC(a,s=10){let l=null;return Math.abs(a.y)>s?l="y":Math.abs(a.x)>s&&(l="x"),l}class GC extends Ta{constructor(s){super(s),this.removeGroupControls=ln,this.removeListeners=ln,this.controls=new UC(s)}mount(){const{dragControls:s}=this.node.getProps();s&&(this.removeGroupControls=s.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ln}unmount(){this.removeGroupControls(),this.removeListeners()}}const Qy=a=>(s,l)=>{a&&Qe.postRender(()=>a(s,l))};class YC extends Ta{constructor(){super(...arguments),this.removePointerDownListener=ln}onPointerDown(s){this.session=new J0(s,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Z0(this.node)})}createPanHandlers(){const{onPanSessionStart:s,onPanStart:l,onPan:o,onPanEnd:d}=this.node.getProps();return{onSessionStart:Qy(s),onStart:Qy(l),onMove:o,onEnd:(m,f)=>{delete this.session,d&&Qe.postRender(()=>d(m,f))}}}mount(){this.removePointerDownListener=tl(this.node.current,"pointerdown",s=>this.onPointerDown(s))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Go={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let Dc=!1;class qC extends N.Component{componentDidMount(){const{visualElement:s,layoutGroup:l,switchLayoutGroup:o,layoutId:d}=this.props,{projection:m}=s;m&&(l.group&&l.group.add(m),o&&o.register&&d&&o.register(m),Dc&&m.root.didUpdate(),m.addEventListener("animationComplete",()=>{this.safeToRemove()}),m.setOptions({...m.options,onExitComplete:()=>this.safeToRemove()})),Go.hasEverUpdated=!0}getSnapshotBeforeUpdate(s){const{layoutDependency:l,visualElement:o,drag:d,isPresent:m}=this.props,{projection:f}=o;return f&&(f.isPresent=m,Dc=!0,d||s.layoutDependency!==l||l===void 0||s.isPresent!==m?f.willUpdate():this.safeToRemove(),s.isPresent!==m&&(m?f.promote():f.relegate()||Qe.postRender(()=>{const g=f.getStack();(!g||!g.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:s}=this.props.visualElement;s&&(s.root.didUpdate(),_d.postRender(()=>{!s.currentAnimation&&s.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:s,layoutGroup:l,switchLayoutGroup:o}=this.props,{projection:d}=s;Dc=!0,d&&(d.scheduleCheckAfterUnmount(),l&&l.group&&l.group.remove(d),o&&o.deregister&&o.deregister(d))}safeToRemove(){const{safeToRemove:s}=this.props;s&&s()}render(){return null}}function F0(a){const[s,l]=b0(),o=N.useContext(hd);return c.jsx(qC,{...a,layoutGroup:o,switchLayoutGroup:N.useContext(D0),isPresent:s,safeToRemove:l})}function XC(a,s,l){const o=wt(a)?a:Zi(a);return o.start(Qd("",o,s,l)),o.animation}const KC=(a,s)=>a.depth-s.depth;class QC{constructor(){this.children=[],this.isDirty=!1}add(s){gd(this.children,s),this.isDirty=!0}remove(s){bd(this.children,s),this.isDirty=!0}forEach(s){this.isDirty&&this.children.sort(KC),this.isDirty=!1,this.children.forEach(s)}}function ZC(a,s){const l=_t.now(),o=({timestamp:d})=>{const m=d-l;m>=s&&(wa(o),a(m-s))};return Qe.setup(o,!0),()=>wa(o)}const W0=["TopLeft","TopRight","BottomLeft","BottomRight"],JC=W0.length,Zy=a=>typeof a=="string"?parseFloat(a):a,Jy=a=>typeof a=="number"||be.test(a);function PC(a,s,l,o,d,m){d?(a.opacity=Ze(0,l.opacity??1,FC(o)),a.opacityExit=Ze(s.opacity??1,0,WC(o))):m&&(a.opacity=Ze(s.opacity??1,l.opacity??1,o));for(let f=0;f<JC;f++){const g=`border${W0[f]}Radius`;let y=Py(s,g),p=Py(l,g);if(y===void 0&&p===void 0)continue;y||(y=0),p||(p=0),y===0||p===0||Jy(y)===Jy(p)?(a[g]=Math.max(Ze(Zy(y),Zy(p),o),0),(wn.test(p)||wn.test(y))&&(a[g]+="%")):a[g]=p}(s.rotate||l.rotate)&&(a.rotate=Ze(s.rotate||0,l.rotate||0,o))}function Py(a,s){return a[s]!==void 0?a[s]:a.borderRadius}const FC=$0(0,.5,Bg),WC=$0(.5,.95,ln);function $0(a,s,l){return o=>o<a?0:o>s?1:l(al(a,s,o))}function Fy(a,s){a.min=s.min,a.max=s.max}function hn(a,s){Fy(a.x,s.x),Fy(a.y,s.y)}function Wy(a,s){a.translate=s.translate,a.scale=s.scale,a.originPoint=s.originPoint,a.origin=s.origin}function $y(a,s,l,o,d){return a-=s,a=Zo(a,1/l,o),d!==void 0&&(a=Zo(a,1/d,o)),a}function $C(a,s=0,l=1,o=.5,d,m=a,f=a){if(wn.test(s)&&(s=parseFloat(s),s=Ze(f.min,f.max,s/100)-f.min),typeof s!="number")return;let g=Ze(m.min,m.max,o);a===m&&(g-=s),a.min=$y(a.min,s,l,g,d),a.max=$y(a.max,s,l,g,d)}function Iy(a,s,[l,o,d],m,f){$C(a,s[l],s[o],s[d],s.scale,m,f)}const IC=["x","scaleX","originX"],ew=["y","scaleY","originY"];function eg(a,s,l,o){Iy(a.x,s,IC,l?l.x:void 0,o?o.x:void 0),Iy(a.y,s,ew,l?l.y:void 0,o?o.y:void 0)}function tg(a){return a.translate===0&&a.scale===1}function I0(a){return tg(a.x)&&tg(a.y)}function ng(a,s){return a.min===s.min&&a.max===s.max}function tw(a,s){return ng(a.x,s.x)&&ng(a.y,s.y)}function ag(a,s){return Math.round(a.min)===Math.round(s.min)&&Math.round(a.max)===Math.round(s.max)}function eb(a,s){return ag(a.x,s.x)&&ag(a.y,s.y)}function ig(a){return At(a.x)/At(a.y)}function sg(a,s){return a.translate===s.translate&&a.scale===s.scale&&a.originPoint===s.originPoint}class nw{constructor(){this.members=[]}add(s){gd(this.members,s),s.scheduleRender()}remove(s){if(bd(this.members,s),s===this.prevLead&&(this.prevLead=void 0),s===this.lead){const l=this.members[this.members.length-1];l&&this.promote(l)}}relegate(s){const l=this.members.findIndex(d=>s===d);if(l===0)return!1;let o;for(let d=l;d>=0;d--){const m=this.members[d];if(m.isPresent!==!1){o=m;break}}return o?(this.promote(o),!0):!1}promote(s,l){const o=this.lead;if(s!==o&&(this.prevLead=o,this.lead=s,s.show(),o)){o.instance&&o.scheduleRender(),s.scheduleRender(),s.resumeFrom=o,l&&(s.resumeFrom.preserveOpacity=!0),o.snapshot&&(s.snapshot=o.snapshot,s.snapshot.latestValues=o.animationValues||o.latestValues),s.root&&s.root.isUpdating&&(s.isLayoutDirty=!0);const{crossfade:d}=s.options;d===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(s=>{const{options:l,resumingFrom:o}=s;l.onExitComplete&&l.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(s=>{s.instance&&s.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function aw(a,s,l){let o="";const d=a.x.translate/s.x,m=a.y.translate/s.y,f=l?.z||0;if((d||m||f)&&(o=`translate3d(${d}px, ${m}px, ${f}px) `),(s.x!==1||s.y!==1)&&(o+=`scale(${1/s.x}, ${1/s.y}) `),l){const{transformPerspective:p,rotate:b,rotateX:x,rotateY:S,skewX:T,skewY:D}=l;p&&(o=`perspective(${p}px) ${o}`),b&&(o+=`rotate(${b}deg) `),x&&(o+=`rotateX(${x}deg) `),S&&(o+=`rotateY(${S}deg) `),T&&(o+=`skewX(${T}deg) `),D&&(o+=`skewY(${D}deg) `)}const g=a.x.scale*s.x,y=a.y.scale*s.y;return(g!==1||y!==1)&&(o+=`scale(${g}, ${y})`),o||"none"}const zc=["","X","Y","Z"],iw=1e3;let sw=0;function Rc(a,s,l,o){const{latestValues:d}=s;d[a]&&(l[a]=d[a],s.setStaticValue(a,0),o&&(o[a]=0))}function tb(a){if(a.hasCheckedOptimisedAppear=!0,a.root===a)return;const{visualElement:s}=a.options;if(!s)return;const l=H0(s);if(window.MotionHasOptimisedAnimation(l,"transform")){const{layout:d,layoutId:m}=a.options;window.MotionCancelOptimisedAnimation(l,"transform",Qe,!(d||m))}const{parent:o}=a;o&&!o.hasCheckedOptimisedAppear&&tb(o)}function nb({attachResizeListener:a,defaultParent:s,measureScroll:l,checkIsScrollRoot:o,resetTransform:d}){return class{constructor(f={},g=s?.()){this.id=sw++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(rw),this.nodes.forEach(fw),this.nodes.forEach(mw),this.nodes.forEach(uw)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,this.root=g?g.root||g:this,this.path=g?[...g.path,g]:[],this.parent=g,this.depth=g?g.depth+1:0;for(let y=0;y<this.path.length;y++)this.path[y].shouldResetTransform=!0;this.root===this&&(this.nodes=new QC)}addEventListener(f,g){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new Sd),this.eventHandlers.get(f).add(g)}notifyListeners(f,...g){const y=this.eventHandlers.get(f);y&&y.notify(...g)}hasListeners(f){return this.eventHandlers.has(f)}mount(f){if(this.instance)return;this.isSVG=g0(f)&&!W2(f),this.instance=f;const{layoutId:g,layout:y,visualElement:p}=this.options;if(p&&!p.current&&p.mount(f),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(y||g)&&(this.isLayoutDirty=!0),a){let b,x=0;const S=()=>this.root.updateBlockedByResize=!1;Qe.read(()=>{x=window.innerWidth}),a(f,()=>{const T=window.innerWidth;T!==x&&(x=T,this.root.updateBlockedByResize=!0,b&&b(),b=ZC(S,250),Go.hasAnimatedSinceResize&&(Go.hasAnimatedSinceResize=!1,this.nodes.forEach(rg)))})}g&&this.root.registerSharedNode(g,this),this.options.animate!==!1&&p&&(g||y)&&this.addEventListener("didUpdate",({delta:b,hasLayoutChanged:x,hasRelativeLayoutChanged:S,layout:T})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const D=this.options.transition||p.getDefaultTransition()||bw,{onLayoutAnimationStart:R,onLayoutAnimationComplete:k}=p.getProps(),z=!this.targetLayout||!eb(this.targetLayout,T),X=!x&&S;if(this.options.layoutRoot||this.resumeFrom||X||x&&(z||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const Y={...Od(D,"layout"),onPlay:R,onComplete:k};(p.shouldReduceMotion||this.options.layoutRoot)&&(Y.delay=0,Y.type=!1),this.startAnimation(Y),this.setAnimationOrigin(b,X)}else x||rg(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=T})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const f=this.getStack();f&&f.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),wa(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(hw),this.animationId++)}getTransformTemplate(){const{visualElement:f}=this.options;return f&&f.getProps().transformTemplate}willUpdate(f=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&tb(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let b=0;b<this.path.length;b++){const x=this.path[b];x.shouldResetTransform=!0,x.updateScroll("snapshot"),x.options.layoutRoot&&x.willUpdate(!1)}const{layoutId:g,layout:y}=this.options;if(g===void 0&&!y)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),f&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(lg);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(og);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(dw),this.nodes.forEach(lw),this.nodes.forEach(ow)):this.nodes.forEach(og),this.clearAllSnapshots();const g=_t.now();yt.delta=Zn(0,1e3/60,g-yt.timestamp),yt.timestamp=g,yt.isProcessing=!0,xc.update.process(yt),xc.preRender.process(yt),xc.render.process(yt),yt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,_d.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(cw),this.sharedNodes.forEach(pw)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Qe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Qe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!At(this.snapshot.measuredBox.x)&&!At(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let y=0;y<this.path.length;y++)this.path[y].updateScroll();const f=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=rt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:g}=this.options;g&&g.notify("LayoutMeasure",this.layout.layoutBox,f?f.layoutBox:void 0)}updateScroll(f="measure"){let g=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===f&&(g=!1),g&&this.instance){const y=o(this.instance);this.scroll={animationId:this.root.animationId,phase:f,isRoot:y,offset:l(this.instance),wasRoot:this.scroll?this.scroll.isRoot:y}}}resetTransform(){if(!d)return;const f=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,g=this.projectionDelta&&!I0(this.projectionDelta),y=this.getTransformTemplate(),p=y?y(this.latestValues,""):void 0,b=p!==this.prevTransformTemplateValue;f&&this.instance&&(g||Za(this.latestValues)||b)&&(d(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(f=!0){const g=this.measurePageBox();let y=this.removeElementScroll(g);return f&&(y=this.removeTransform(y)),vw(y),{animationId:this.root.animationId,measuredBox:g,layoutBox:y,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:f}=this.options;if(!f)return rt();const g=f.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(xw))){const{scroll:p}=this.root;p&&(qi(g.x,p.offset.x),qi(g.y,p.offset.y))}return g}removeElementScroll(f){const g=rt();if(hn(g,f),this.scroll?.wasRoot)return g;for(let y=0;y<this.path.length;y++){const p=this.path[y],{scroll:b,options:x}=p;p!==this.root&&b&&x.layoutScroll&&(b.wasRoot&&hn(g,f),qi(g.x,b.offset.x),qi(g.y,b.offset.y))}return g}applyTransform(f,g=!1){const y=rt();hn(y,f);for(let p=0;p<this.path.length;p++){const b=this.path[p];!g&&b.options.layoutScroll&&b.scroll&&b!==b.root&&Xi(y,{x:-b.scroll.offset.x,y:-b.scroll.offset.y}),Za(b.latestValues)&&Xi(y,b.latestValues)}return Za(this.latestValues)&&Xi(y,this.latestValues),y}removeTransform(f){const g=rt();hn(g,f);for(let y=0;y<this.path.length;y++){const p=this.path[y];if(!p.instance||!Za(p.latestValues))continue;Ic(p.latestValues)&&p.updateSnapshot();const b=rt(),x=p.measurePageBox();hn(b,x),eg(g,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,b)}return Za(this.latestValues)&&eg(g,this.latestValues),g}setTargetDelta(f){this.targetDelta=f,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(f){this.options={...this.options,...f,crossfade:f.crossfade!==void 0?f.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==yt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(f=!1){const g=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=g.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=g.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=g.isSharedProjectionDirty);const y=!!this.resumingFrom||this!==g;if(!(f||y&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:b,layoutId:x}=this.options;if(!this.layout||!(b||x))return;this.resolvedRelativeTargetAt=yt.timestamp;const S=this.getClosestProjectingParent();S&&this.linkedParentVersion!==S.layoutVersion&&!S.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(S&&S.layout?this.createRelativeTarget(S,this.layout.layoutBox,S.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=rt(),this.targetWithTransforms=rt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),MC(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):hn(this.target,this.layout.layoutBox),V0(this.target,this.targetDelta)):hn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,S&&!!S.resumingFrom==!!this.resumingFrom&&!S.options.layoutScroll&&S.target&&this.animationProgress!==1?this.createRelativeTarget(S,this.target,S.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Ic(this.parent.latestValues)||O0(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(f,g,y){this.relativeParent=f,this.linkedParentVersion=f.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rt(),this.relativeTargetOrigin=rt(),Jo(this.relativeTargetOrigin,g,y),hn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const f=this.getLead(),g=!!this.resumingFrom||this!==f;let y=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(y=!1),g&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(y=!1),this.resolvedRelativeTargetAt===yt.timestamp&&(y=!1),y)return;const{layout:p,layoutId:b}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||b))return;hn(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,S=this.treeScale.y;HS(this.layoutCorrected,this.treeScale,this.path,g),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=rt());const{target:T}=f;if(!T){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Wy(this.prevProjectionDelta.x,this.projectionDelta.x),Wy(this.prevProjectionDelta.y,this.projectionDelta.y)),nl(this.projectionDelta,this.layoutCorrected,T,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==S||!sg(this.projectionDelta.x,this.prevProjectionDelta.x)||!sg(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",T))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(f=!0){if(this.options.visualElement?.scheduleRender(),f){const g=this.getStack();g&&g.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ki(),this.projectionDelta=Ki(),this.projectionDeltaWithTransform=Ki()}setAnimationOrigin(f,g=!1){const y=this.snapshot,p=y?y.latestValues:{},b={...this.latestValues},x=Ki();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!g;const S=rt(),T=y?y.source:void 0,D=this.layout?this.layout.source:void 0,R=T!==D,k=this.getStack(),z=!k||k.members.length<=1,X=!!(R&&!z&&this.options.crossfade===!0&&!this.path.some(gw));this.animationProgress=0;let Y;this.mixTargetDelta=W=>{const Z=W/1e3;ug(x.x,f.x,Z),ug(x.y,f.y,Z),this.setTargetDelta(x),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Jo(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox),yw(this.relativeTarget,this.relativeTargetOrigin,S,Z),Y&&tw(this.relativeTarget,Y)&&(this.isProjectionDirty=!1),Y||(Y=rt()),hn(Y,this.relativeTarget)),R&&(this.animationValues=b,PC(b,p,this.latestValues,Z,X,z)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Z},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(wa(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Qe.update(()=>{Go.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Zi(0)),this.currentAnimation=XC(this.motionValue,[0,1e3],{...f,velocity:0,isSync:!0,onUpdate:g=>{this.mixTargetDelta(g),f.onUpdate&&f.onUpdate(g)},onStop:()=>{},onComplete:()=>{f.onComplete&&f.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const f=this.getStack();f&&f.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(iw),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:g,target:y,layout:p,latestValues:b}=f;if(!(!g||!y||!p)){if(this!==f&&this.layout&&p&&ab(this.options.animationType,this.layout.layoutBox,p.layoutBox)){y=this.target||rt();const x=At(this.layout.layoutBox.x);y.x.min=f.target.x.min,y.x.max=y.x.min+x;const S=At(this.layout.layoutBox.y);y.y.min=f.target.y.min,y.y.max=y.y.min+S}hn(g,y),Xi(g,b),nl(this.projectionDeltaWithTransform,this.layoutCorrected,g,b)}}registerSharedNode(f,g){this.sharedNodes.has(f)||this.sharedNodes.set(f,new nw),this.sharedNodes.get(f).add(g);const p=g.options.initialPromotionConfig;g.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(g):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){const{layoutId:f}=this.options;return f?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:f}=this.options;return f?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:g,preserveFollowOpacity:y}={}){const p=this.getStack();p&&p.promote(this,y),f&&(this.projectionDelta=void 0,this.needsReset=!0),g&&this.setOptions({transition:g})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let g=!1;const{latestValues:y}=f;if((y.z||y.rotate||y.rotateX||y.rotateY||y.rotateZ||y.skewX||y.skewY)&&(g=!0),!g)return;const p={};y.z&&Rc("z",f,p,this.animationValues);for(let b=0;b<zc.length;b++)Rc(`rotate${zc[b]}`,f,p,this.animationValues),Rc(`skew${zc[b]}`,f,p,this.animationValues);f.render();for(const b in p)f.setStaticValue(b,p[b]),this.animationValues&&(this.animationValues[b]=p[b]);f.scheduleRender()}applyProjectionStyles(f,g){if(!this.instance||this.isSVG)return;if(!this.isVisible){f.visibility="hidden";return}const y=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,f.visibility="",f.opacity="",f.pointerEvents=Ho(g?.pointerEvents)||"",f.transform=y?y(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(f.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,f.pointerEvents=Ho(g?.pointerEvents)||""),this.hasProjected&&!Za(this.latestValues)&&(f.transform=y?y({},""):"none",this.hasProjected=!1);return}f.visibility="";const b=p.animationValues||p.latestValues;this.applyTransformsToTarget();let x=aw(this.projectionDeltaWithTransform,this.treeScale,b);y&&(x=y(b,x)),f.transform=x;const{x:S,y:T}=this.projectionDelta;f.transformOrigin=`${S.origin*100}% ${T.origin*100}% 0`,p.animationValues?f.opacity=p===this?b.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:b.opacityExit:f.opacity=p===this?b.opacity!==void 0?b.opacity:"":b.opacityExit!==void 0?b.opacityExit:0;for(const D in $c){if(b[D]===void 0)continue;const{correct:R,applyTo:k,isCSSVariable:z}=$c[D],X=x==="none"?b[D]:R(b[D],p);if(k){const Y=k.length;for(let W=0;W<Y;W++)f[k[W]]=X}else z?this.options.visualElement.renderState.vars[D]=X:f[D]=X}this.options.layoutId&&(f.pointerEvents=p===this?Ho(g?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(f=>f.currentAnimation?.stop()),this.root.nodes.forEach(lg),this.root.sharedNodes.clear()}}}function lw(a){a.updateLayout()}function ow(a){const s=a.resumeFrom?.snapshot||a.snapshot;if(a.isLead()&&a.layout&&s&&a.hasListeners("didUpdate")){const{layoutBox:l,measuredBox:o}=a.layout,{animationType:d}=a.options,m=s.source!==a.layout.source;d==="size"?an(b=>{const x=m?s.measuredBox[b]:s.layoutBox[b],S=At(x);x.min=l[b].min,x.max=x.min+S}):ab(d,s.layoutBox,l)&&an(b=>{const x=m?s.measuredBox[b]:s.layoutBox[b],S=At(l[b]);x.max=x.min+S,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[b].max=a.relativeTarget[b].min+S)});const f=Ki();nl(f,l,s.layoutBox);const g=Ki();m?nl(g,a.applyTransform(o,!0),s.measuredBox):nl(g,l,s.layoutBox);const y=!I0(f);let p=!1;if(!a.resumeFrom){const b=a.getClosestProjectingParent();if(b&&!b.resumeFrom){const{snapshot:x,layout:S}=b;if(x&&S){const T=rt();Jo(T,s.layoutBox,x.layoutBox);const D=rt();Jo(D,l,S.layoutBox),eb(T,D)||(p=!0),b.options.layoutRoot&&(a.relativeTarget=D,a.relativeTargetOrigin=T,a.relativeParent=b)}}}a.notifyListeners("didUpdate",{layout:l,snapshot:s,delta:g,layoutDelta:f,hasLayoutChanged:y,hasRelativeLayoutChanged:p})}else if(a.isLead()){const{onExitComplete:l}=a.options;l&&l()}a.options.transition=void 0}function rw(a){a.parent&&(a.isProjecting()||(a.isProjectionDirty=a.parent.isProjectionDirty),a.isSharedProjectionDirty||(a.isSharedProjectionDirty=!!(a.isProjectionDirty||a.parent.isProjectionDirty||a.parent.isSharedProjectionDirty)),a.isTransformDirty||(a.isTransformDirty=a.parent.isTransformDirty))}function uw(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function cw(a){a.clearSnapshot()}function lg(a){a.clearMeasurements()}function og(a){a.isLayoutDirty=!1}function dw(a){const{visualElement:s}=a.options;s&&s.getProps().onBeforeLayoutMeasure&&s.notify("BeforeLayoutMeasure"),a.resetTransform()}function rg(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function fw(a){a.resolveTargetDelta()}function mw(a){a.calcProjection()}function hw(a){a.resetSkewAndRotation()}function pw(a){a.removeLeadSnapshot()}function ug(a,s,l){a.translate=Ze(s.translate,0,l),a.scale=Ze(s.scale,1,l),a.origin=s.origin,a.originPoint=s.originPoint}function cg(a,s,l,o){a.min=Ze(s.min,l.min,o),a.max=Ze(s.max,l.max,o)}function yw(a,s,l,o){cg(a.x,s.x,l.x,o),cg(a.y,s.y,l.y,o)}function gw(a){return a.animationValues&&a.animationValues.opacityExit!==void 0}const bw={duration:.45,ease:[.4,0,.1,1]},dg=a=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),fg=dg("applewebkit/")&&!dg("chrome/")?Math.round:ln;function mg(a){a.min=fg(a.min),a.max=fg(a.max)}function vw(a){mg(a.x),mg(a.y)}function ab(a,s,l){return a==="position"||a==="preserve-aspect"&&!AC(ig(s),ig(l),.2)}function xw(a){return a!==a.root&&a.scroll?.wasRoot}const Sw=nb({attachResizeListener:(a,s)=>ol(a,"resize",s),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Oc={current:void 0},ib=nb({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!Oc.current){const a=new Sw({});a.mount(window),a.setOptions({layoutScroll:!0}),Oc.current=a}return Oc.current},resetTransform:(a,s)=>{a.style.transform=s!==void 0?s:"none"},checkIsScrollRoot:a=>window.getComputedStyle(a).position==="fixed"}),Cw={pan:{Feature:YC},drag:{Feature:GC,ProjectionNode:ib,MeasureLayout:F0}};function hg(a,s,l){const{props:o}=a;a.animationState&&o.whileHover&&a.animationState.setActive("whileHover",l==="Start");const d="onHover"+l,m=o[d];m&&Qe.postRender(()=>m(s,dl(s)))}class ww extends Ta{mount(){const{current:s}=this.node;s&&(this.unmount=Q2(s,(l,o)=>(hg(this.node,o,"Start"),d=>hg(this.node,d,"End"))))}unmount(){}}class jw extends Ta{constructor(){super(...arguments),this.isActive=!1}onFocus(){let s=!1;try{s=this.node.current.matches(":focus-visible")}catch{s=!0}!s||!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=rl(ol(this.node.current,"focus",()=>this.onFocus()),ol(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function pg(a,s,l){const{props:o}=a;if(a.current instanceof HTMLButtonElement&&a.current.disabled)return;a.animationState&&o.whileTap&&a.animationState.setActive("whileTap",l==="Start");const d="onTap"+(l==="End"?"":l),m=o[d];m&&Qe.postRender(()=>m(s,dl(s)))}class Tw extends Ta{mount(){const{current:s}=this.node;s&&(this.unmount=F2(s,(l,o)=>(pg(this.node,o,"Start"),(d,{success:m})=>pg(this.node,d,m?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ld=new WeakMap,Vc=new WeakMap,Nw=a=>{const s=ld.get(a.target);s&&s(a)},Aw=a=>{a.forEach(Nw)};function Mw({root:a,...s}){const l=a||document;Vc.has(l)||Vc.set(l,{});const o=Vc.get(l),d=JSON.stringify(s);return o[d]||(o[d]=new IntersectionObserver(Aw,{root:a,...s})),o[d]}function Ew(a,s,l){const o=Mw(s);return ld.set(a,l),o.observe(a),()=>{ld.delete(a),o.unobserve(a)}}const Dw={some:0,all:1};class zw extends Ta{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:s={}}=this.node.getProps(),{root:l,margin:o,amount:d="some",once:m}=s,f={root:l?l.current:void 0,rootMargin:o,threshold:typeof d=="number"?d:Dw[d]},g=y=>{const{isIntersecting:p}=y;if(this.isInView===p||(this.isInView=p,m&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:b,onViewportLeave:x}=this.node.getProps(),S=p?b:x;S&&S(y)};return Ew(this.node.current,f,g)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:s,prevProps:l}=this.node;["amount","margin","root"].some(Rw(s,l))&&this.startObserver()}unmount(){}}function Rw({viewport:a={}},{viewport:s={}}={}){return l=>a[l]!==s[l]}const Ow={inView:{Feature:zw},tap:{Feature:Tw},focus:{Feature:jw},hover:{Feature:ww}},Vw={layout:{ProjectionNode:ib,MeasureLayout:F0}},_w={...SC,...Ow,...Cw,...Vw},ce=BS(_w,FS);const kw=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Bw=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(s,l,o)=>o?o.toUpperCase():l.toLowerCase()),yg=a=>{const s=Bw(a);return s.charAt(0).toUpperCase()+s.slice(1)},sb=(...a)=>a.filter((s,l,o)=>!!s&&s.trim()!==""&&o.indexOf(s)===l).join(" ").trim(),Lw=a=>{for(const s in a)if(s.startsWith("aria-")||s==="role"||s==="title")return!0};var Uw={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 Hw=N.forwardRef(({color:a="currentColor",size:s=24,strokeWidth:l=2,absoluteStrokeWidth:o,className:d="",children:m,iconNode:f,...g},y)=>N.createElement("svg",{ref:y,...Uw,width:s,height:s,stroke:a,strokeWidth:o?Number(l)*24/Number(s):l,className:sb("lucide",d),...!m&&!Lw(g)&&{"aria-hidden":"true"},...g},[...f.map(([p,b])=>N.createElement(p,b)),...Array.isArray(m)?m:[m]]));const Ve=(a,s)=>{const l=N.forwardRef(({className:o,...d},m)=>N.createElement(Hw,{ref:m,iconNode:s,className:sb(`lucide-${kw(yg(a))}`,`lucide-${a}`,o),...d}));return l.displayName=yg(a),l};const Gw=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],Yw=Ve("arrow-down",Gw);const qw=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],Xw=Ve("arrow-up",qw);const Kw=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],Qw=Ve("calendar",Kw);const Zw=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],lb=Ve("check",Zw);const Jw=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Kn=Ve("chevron-down",Jw);const Pw=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],od=Ve("chevron-right",Pw);const Fw=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],rd=Ve("chevron-left",Fw);const Ww=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],$w=Ve("chevrons-up-down",Ww);const Iw=[["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"}]],ej=Ve("circle-alert",Iw);const tj=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],nj=Ve("circle-check-big",tj);const aj=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],ij=Ve("eye-off",aj);const sj=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],lj=Ve("eye",sj);const oj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],_o=Ve("globe",oj);const rj=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],uj=Ve("house",rj);const cj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],dj=Ve("info",cj);const fj=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],ob=Ve("loader-circle",fj);const mj=[["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"}]],hj=Ve("lock",mj);const pj=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],yj=Ve("mail",pj);const gj=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],bj=Ve("mic",gj);const vj=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],xj=Ve("pause",vj);const Sj=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Cj=Ve("play",Sj);const wj=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],ud=Ve("plus",wj);const jj=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],yn=Ve("search",jj);const Tj=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Nj=Ve("settings",Tj);const Aj=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],gg=Ve("square-pen",Aj);const Mj=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Ej=Ve("square",Mj);const Dj=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],cd=Ve("trash-2",Dj);const zj=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Rj=Ve("triangle-alert",zj);const Oj=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Fs=Ve("user",Oj);const Vj=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Kt=Ve("x",Vj);function rb(a){var s,l,o="";if(typeof a=="string"||typeof a=="number")o+=a;else if(typeof a=="object")if(Array.isArray(a)){var d=a.length;for(s=0;s<d;s++)a[s]&&(l=rb(a[s]))&&(o&&(o+=" "),o+=l)}else for(l in a)a[l]&&(o&&(o+=" "),o+=l);return o}function _j(){for(var a,s,l=0,o="",d=arguments.length;l<d;l++)(a=arguments[l])&&(s=rb(a))&&(o&&(o+=" "),o+=s);return o}const kj=(a,s)=>{const l=new Array(a.length+s.length);for(let o=0;o<a.length;o++)l[o]=a[o];for(let o=0;o<s.length;o++)l[a.length+o]=s[o];return l},Bj=(a,s)=>({classGroupId:a,validator:s}),ub=(a=new Map,s=null,l)=>({nextPart:a,validators:s,classGroupId:l}),Po="-",bg=[],Lj="arbitrary..",Uj=a=>{const s=Gj(a),{conflictingClassGroups:l,conflictingClassGroupModifiers:o}=a;return{getClassGroupId:f=>{if(f.startsWith("[")&&f.endsWith("]"))return Hj(f);const g=f.split(Po),y=g[0]===""&&g.length>1?1:0;return cb(g,y,s)},getConflictingClassGroupIds:(f,g)=>{if(g){const y=o[f],p=l[f];return y?p?kj(p,y):y:p||bg}return l[f]||bg}}},cb=(a,s,l)=>{if(a.length-s===0)return l.classGroupId;const d=a[s],m=l.nextPart.get(d);if(m){const p=cb(a,s+1,m);if(p)return p}const f=l.validators;if(f===null)return;const g=s===0?a.join(Po):a.slice(s).join(Po),y=f.length;for(let p=0;p<y;p++){const b=f[p];if(b.validator(g))return b.classGroupId}},Hj=a=>a.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const s=a.slice(1,-1),l=s.indexOf(":"),o=s.slice(0,l);return o?Lj+o:void 0})(),Gj=a=>{const{theme:s,classGroups:l}=a;return Yj(l,s)},Yj=(a,s)=>{const l=ub();for(const o in a){const d=a[o];Zd(d,l,o,s)}return l},Zd=(a,s,l,o)=>{const d=a.length;for(let m=0;m<d;m++){const f=a[m];qj(f,s,l,o)}},qj=(a,s,l,o)=>{if(typeof a=="string"){Xj(a,s,l);return}if(typeof a=="function"){Kj(a,s,l,o);return}Qj(a,s,l,o)},Xj=(a,s,l)=>{const o=a===""?s:db(s,a);o.classGroupId=l},Kj=(a,s,l,o)=>{if(Zj(a)){Zd(a(o),s,l,o);return}s.validators===null&&(s.validators=[]),s.validators.push(Bj(l,a))},Qj=(a,s,l,o)=>{const d=Object.entries(a),m=d.length;for(let f=0;f<m;f++){const[g,y]=d[f];Zd(y,db(s,g),l,o)}},db=(a,s)=>{let l=a;const o=s.split(Po),d=o.length;for(let m=0;m<d;m++){const f=o[m];let g=l.nextPart.get(f);g||(g=ub(),l.nextPart.set(f,g)),l=g}return l},Zj=a=>"isThemeGetter"in a&&a.isThemeGetter===!0,Jj=a=>{if(a<1)return{get:()=>{},set:()=>{}};let s=0,l=Object.create(null),o=Object.create(null);const d=(m,f)=>{l[m]=f,s++,s>a&&(s=0,o=l,l=Object.create(null))};return{get(m){let f=l[m];if(f!==void 0)return f;if((f=o[m])!==void 0)return d(m,f),f},set(m,f){m in l?l[m]=f:d(m,f)}}},dd="!",vg=":",Pj=[],xg=(a,s,l,o,d)=>({modifiers:a,hasImportantModifier:s,baseClassName:l,maybePostfixModifierPosition:o,isExternal:d}),Fj=a=>{const{prefix:s,experimentalParseClassName:l}=a;let o=d=>{const m=[];let f=0,g=0,y=0,p;const b=d.length;for(let R=0;R<b;R++){const k=d[R];if(f===0&&g===0){if(k===vg){m.push(d.slice(y,R)),y=R+1;continue}if(k==="/"){p=R;continue}}k==="["?f++:k==="]"?f--:k==="("?g++:k===")"&&g--}const x=m.length===0?d:d.slice(y);let S=x,T=!1;x.endsWith(dd)?(S=x.slice(0,-1),T=!0):x.startsWith(dd)&&(S=x.slice(1),T=!0);const D=p&&p>y?p-y:void 0;return xg(m,T,S,D)};if(s){const d=s+vg,m=o;o=f=>f.startsWith(d)?m(f.slice(d.length)):xg(Pj,!1,f,void 0,!0)}if(l){const d=o;o=m=>l({className:m,parseClassName:d})}return o},Wj=a=>{const s=new Map;return a.orderSensitiveModifiers.forEach((l,o)=>{s.set(l,1e6+o)}),l=>{const o=[];let d=[];for(let m=0;m<l.length;m++){const f=l[m],g=f[0]==="[",y=s.has(f);g||y?(d.length>0&&(d.sort(),o.push(...d),d=[]),o.push(f)):d.push(f)}return d.length>0&&(d.sort(),o.push(...d)),o}},$j=a=>({cache:Jj(a.cacheSize),parseClassName:Fj(a),sortModifiers:Wj(a),...Uj(a)}),Ij=/\s+/,eT=(a,s)=>{const{parseClassName:l,getClassGroupId:o,getConflictingClassGroupIds:d,sortModifiers:m}=s,f=[],g=a.trim().split(Ij);let y="";for(let p=g.length-1;p>=0;p-=1){const b=g[p],{isExternal:x,modifiers:S,hasImportantModifier:T,baseClassName:D,maybePostfixModifierPosition:R}=l(b);if(x){y=b+(y.length>0?" "+y:y);continue}let k=!!R,z=o(k?D.substring(0,R):D);if(!z){if(!k){y=b+(y.length>0?" "+y:y);continue}if(z=o(D),!z){y=b+(y.length>0?" "+y:y);continue}k=!1}const X=S.length===0?"":S.length===1?S[0]:m(S).join(":"),Y=T?X+dd:X,W=Y+z;if(f.indexOf(W)>-1)continue;f.push(W);const Z=d(z,k);for(let P=0;P<Z.length;++P){const K=Z[P];f.push(Y+K)}y=b+(y.length>0?" "+y:y)}return y},tT=(...a)=>{let s=0,l,o,d="";for(;s<a.length;)(l=a[s++])&&(o=fb(l))&&(d&&(d+=" "),d+=o);return d},fb=a=>{if(typeof a=="string")return a;let s,l="";for(let o=0;o<a.length;o++)a[o]&&(s=fb(a[o]))&&(l&&(l+=" "),l+=s);return l},nT=(a,...s)=>{let l,o,d,m;const f=y=>{const p=s.reduce((b,x)=>x(b),a());return l=$j(p),o=l.cache.get,d=l.cache.set,m=g,g(y)},g=y=>{const p=o(y);if(p)return p;const b=eT(y,l);return d(y,b),b};return m=f,(...y)=>m(tT(...y))},aT=[],ot=a=>{const s=l=>l[a]||aT;return s.isThemeGetter=!0,s},mb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,hb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,iT=/^\d+\/\d+$/,sT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lT=/\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$/,oT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,rT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,uT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Hi=a=>iT.test(a),we=a=>!!a&&!Number.isNaN(Number(a)),xa=a=>!!a&&Number.isInteger(Number(a)),_c=a=>a.endsWith("%")&&we(a.slice(0,-1)),Xn=a=>sT.test(a),cT=()=>!0,dT=a=>lT.test(a)&&!oT.test(a),pb=()=>!1,fT=a=>rT.test(a),mT=a=>uT.test(a),hT=a=>!le(a)&&!oe(a),pT=a=>$i(a,bb,pb),le=a=>mb.test(a),Ka=a=>$i(a,vb,dT),kc=a=>$i(a,xT,we),Sg=a=>$i(a,yb,pb),yT=a=>$i(a,gb,mT),ko=a=>$i(a,xb,fT),oe=a=>hb.test(a),Ws=a=>Ii(a,vb),gT=a=>Ii(a,ST),Cg=a=>Ii(a,yb),bT=a=>Ii(a,bb),vT=a=>Ii(a,gb),Bo=a=>Ii(a,xb,!0),$i=(a,s,l)=>{const o=mb.exec(a);return o?o[1]?s(o[1]):l(o[2]):!1},Ii=(a,s,l=!1)=>{const o=hb.exec(a);return o?o[1]?s(o[1]):l:!1},yb=a=>a==="position"||a==="percentage",gb=a=>a==="image"||a==="url",bb=a=>a==="length"||a==="size"||a==="bg-size",vb=a=>a==="length",xT=a=>a==="number",ST=a=>a==="family-name",xb=a=>a==="shadow",CT=()=>{const a=ot("color"),s=ot("font"),l=ot("text"),o=ot("font-weight"),d=ot("tracking"),m=ot("leading"),f=ot("breakpoint"),g=ot("container"),y=ot("spacing"),p=ot("radius"),b=ot("shadow"),x=ot("inset-shadow"),S=ot("text-shadow"),T=ot("drop-shadow"),D=ot("blur"),R=ot("perspective"),k=ot("aspect"),z=ot("ease"),X=ot("animate"),Y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Z=()=>[...W(),oe,le],P=()=>["auto","hidden","clip","visible","scroll"],K=()=>["auto","contain","none"],O=()=>[oe,le,y],te=()=>[Hi,"full","auto",...O()],F=()=>[xa,"none","subgrid",oe,le],ne=()=>["auto",{span:["full",xa,oe,le]},xa,oe,le],de=()=>[xa,"auto",oe,le],Re=()=>["auto","min","max","fr",oe,le],ve=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ee=()=>["start","end","center","stretch","center-safe","end-safe"],E=()=>["auto",...O()],U=()=>[Hi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...O()],M=()=>[a,oe,le],se=()=>[...W(),Cg,Sg,{position:[oe,le]}],ye=()=>["no-repeat",{repeat:["","x","y","space","round"]}],w=()=>["auto","cover","contain",bT,pT,{size:[oe,le]}],H=()=>[_c,Ws,Ka],I=()=>["","none","full",p,oe,le],ae=()=>["",we,Ws,Ka],me=()=>["solid","dashed","dotted","double"],re=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],he=()=>[we,_c,Cg,Sg],Je=()=>["","none",D,oe,le],_e=()=>["none",we,oe,le],Qt=()=>["none",we,oe,le],un=()=>[we,oe,le],st=()=>[Hi,"full",...O()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Xn],breakpoint:[Xn],color:[cT],container:[Xn],"drop-shadow":[Xn],ease:["in","out","in-out"],font:[hT],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Xn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Xn],shadow:[Xn],spacing:["px",we],text:[Xn],"text-shadow":[Xn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Hi,le,oe,k]}],container:["container"],columns:[{columns:[we,le,oe,g]}],"break-after":[{"break-after":Y()}],"break-before":[{"break-before":Y()}],"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"],sr:["sr-only","not-sr-only"],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:Z()}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:K()}],"overscroll-x":[{"overscroll-x":K()}],"overscroll-y":[{"overscroll-y":K()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:te()}],"inset-x":[{"inset-x":te()}],"inset-y":[{"inset-y":te()}],start:[{start:te()}],end:[{end:te()}],top:[{top:te()}],right:[{right:te()}],bottom:[{bottom:te()}],left:[{left:te()}],visibility:["visible","invisible","collapse"],z:[{z:[xa,"auto",oe,le]}],basis:[{basis:[Hi,"full","auto",g,...O()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[we,Hi,"auto","initial","none",le]}],grow:[{grow:["",we,oe,le]}],shrink:[{shrink:["",we,oe,le]}],order:[{order:[xa,"first","last","none",oe,le]}],"grid-cols":[{"grid-cols":F()}],"col-start-end":[{col:ne()}],"col-start":[{"col-start":de()}],"col-end":[{"col-end":de()}],"grid-rows":[{"grid-rows":F()}],"row-start-end":[{row:ne()}],"row-start":[{"row-start":de()}],"row-end":[{"row-end":de()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Re()}],"auto-rows":[{"auto-rows":Re()}],gap:[{gap:O()}],"gap-x":[{"gap-x":O()}],"gap-y":[{"gap-y":O()}],"justify-content":[{justify:[...ve(),"normal"]}],"justify-items":[{"justify-items":[...ee(),"normal"]}],"justify-self":[{"justify-self":["auto",...ee()]}],"align-content":[{content:["normal",...ve()]}],"align-items":[{items:[...ee(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ee(),{baseline:["","last"]}]}],"place-content":[{"place-content":ve()}],"place-items":[{"place-items":[...ee(),"baseline"]}],"place-self":[{"place-self":["auto",...ee()]}],p:[{p:O()}],px:[{px:O()}],py:[{py:O()}],ps:[{ps:O()}],pe:[{pe:O()}],pt:[{pt:O()}],pr:[{pr:O()}],pb:[{pb:O()}],pl:[{pl:O()}],m:[{m:E()}],mx:[{mx:E()}],my:[{my:E()}],ms:[{ms:E()}],me:[{me:E()}],mt:[{mt:E()}],mr:[{mr:E()}],mb:[{mb:E()}],ml:[{ml:E()}],"space-x":[{"space-x":O()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":O()}],"space-y-reverse":["space-y-reverse"],size:[{size:U()}],w:[{w:[g,"screen",...U()]}],"min-w":[{"min-w":[g,"screen","none",...U()]}],"max-w":[{"max-w":[g,"screen","none","prose",{screen:[f]},...U()]}],h:[{h:["screen","lh",...U()]}],"min-h":[{"min-h":["screen","lh","none",...U()]}],"max-h":[{"max-h":["screen","lh",...U()]}],"font-size":[{text:["base",l,Ws,Ka]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,oe,kc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",_c,le]}],"font-family":[{font:[gT,le,s]}],"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:[d,oe,le]}],"line-clamp":[{"line-clamp":[we,"none",oe,kc]}],leading:[{leading:[m,...O()]}],"list-image":[{"list-image":["none",oe,le]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",oe,le]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...me(),"wavy"]}],"text-decoration-thickness":[{decoration:[we,"from-font","auto",oe,Ka]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[we,"auto",oe,le]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",oe,le]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",oe,le]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:se()}],"bg-repeat":[{bg:ye()}],"bg-size":[{bg:w()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},xa,oe,le],radial:["",oe,le],conic:[xa,oe,le]},vT,yT]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:H()}],"gradient-via-pos":[{via:H()}],"gradient-to-pos":[{to:H()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:I()}],"rounded-s":[{"rounded-s":I()}],"rounded-e":[{"rounded-e":I()}],"rounded-t":[{"rounded-t":I()}],"rounded-r":[{"rounded-r":I()}],"rounded-b":[{"rounded-b":I()}],"rounded-l":[{"rounded-l":I()}],"rounded-ss":[{"rounded-ss":I()}],"rounded-se":[{"rounded-se":I()}],"rounded-ee":[{"rounded-ee":I()}],"rounded-es":[{"rounded-es":I()}],"rounded-tl":[{"rounded-tl":I()}],"rounded-tr":[{"rounded-tr":I()}],"rounded-br":[{"rounded-br":I()}],"rounded-bl":[{"rounded-bl":I()}],"border-w":[{border:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...me(),"hidden","none"]}],"divide-style":[{divide:[...me(),"hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...me(),"none","hidden"]}],"outline-offset":[{"outline-offset":[we,oe,le]}],"outline-w":[{outline:["",we,Ws,Ka]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",b,Bo,ko]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",x,Bo,ko]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[we,Ka]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",S,Bo,ko]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[we,oe,le]}],"mix-blend":[{"mix-blend":[...re(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":re()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[we]}],"mask-image-linear-from-pos":[{"mask-linear-from":he()}],"mask-image-linear-to-pos":[{"mask-linear-to":he()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":he()}],"mask-image-t-to-pos":[{"mask-t-to":he()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":he()}],"mask-image-r-to-pos":[{"mask-r-to":he()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":he()}],"mask-image-b-to-pos":[{"mask-b-to":he()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":he()}],"mask-image-l-to-pos":[{"mask-l-to":he()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":he()}],"mask-image-x-to-pos":[{"mask-x-to":he()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":he()}],"mask-image-y-to-pos":[{"mask-y-to":he()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[oe,le]}],"mask-image-radial-from-pos":[{"mask-radial-from":he()}],"mask-image-radial-to-pos":[{"mask-radial-to":he()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":W()}],"mask-image-conic-pos":[{"mask-conic":[we]}],"mask-image-conic-from-pos":[{"mask-conic-from":he()}],"mask-image-conic-to-pos":[{"mask-conic-to":he()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:se()}],"mask-repeat":[{mask:ye()}],"mask-size":[{mask:w()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",oe,le]}],filter:[{filter:["","none",oe,le]}],blur:[{blur:Je()}],brightness:[{brightness:[we,oe,le]}],contrast:[{contrast:[we,oe,le]}],"drop-shadow":[{"drop-shadow":["","none",T,Bo,ko]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",we,oe,le]}],"hue-rotate":[{"hue-rotate":[we,oe,le]}],invert:[{invert:["",we,oe,le]}],saturate:[{saturate:[we,oe,le]}],sepia:[{sepia:["",we,oe,le]}],"backdrop-filter":[{"backdrop-filter":["","none",oe,le]}],"backdrop-blur":[{"backdrop-blur":Je()}],"backdrop-brightness":[{"backdrop-brightness":[we,oe,le]}],"backdrop-contrast":[{"backdrop-contrast":[we,oe,le]}],"backdrop-grayscale":[{"backdrop-grayscale":["",we,oe,le]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[we,oe,le]}],"backdrop-invert":[{"backdrop-invert":["",we,oe,le]}],"backdrop-opacity":[{"backdrop-opacity":[we,oe,le]}],"backdrop-saturate":[{"backdrop-saturate":[we,oe,le]}],"backdrop-sepia":[{"backdrop-sepia":["",we,oe,le]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":O()}],"border-spacing-x":[{"border-spacing-x":O()}],"border-spacing-y":[{"border-spacing-y":O()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",oe,le]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[we,"initial",oe,le]}],ease:[{ease:["linear","initial",z,oe,le]}],delay:[{delay:[we,oe,le]}],animate:[{animate:["none",X,oe,le]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[R,oe,le]}],"perspective-origin":[{"perspective-origin":Z()}],rotate:[{rotate:_e()}],"rotate-x":[{"rotate-x":_e()}],"rotate-y":[{"rotate-y":_e()}],"rotate-z":[{"rotate-z":_e()}],scale:[{scale:Qt()}],"scale-x":[{"scale-x":Qt()}],"scale-y":[{"scale-y":Qt()}],"scale-z":[{"scale-z":Qt()}],"scale-3d":["scale-3d"],skew:[{skew:un()}],"skew-x":[{"skew-x":un()}],"skew-y":[{"skew-y":un()}],transform:[{transform:[oe,le,"","none","gpu","cpu"]}],"transform-origin":[{origin:Z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:st()}],"translate-x":[{"translate-x":st()}],"translate-y":[{"translate-y":st()}],"translate-z":[{"translate-z":st()}],"translate-none":["translate-none"],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",oe,le]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"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",oe,le]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[we,Ws,Ka,kc]}],stroke:[{stroke:["none",...M()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},wT=nT(CT);function J(...a){return wT(_j(a))}const Ke=md.forwardRef(({variant:a="primary",size:s="md",loading:l,icon:o,animate:d=!0,className:m,children:f,disabled:g,...y},p)=>{const b=d!==!1,x="inline-flex items-center justify-center gap-2 font-medium rounded-md transition-all duration-200 touch-target disabled:opacity-50 disabled:cursor-not-allowed active:scale-[0.98] flex-shrink-0 whitespace-nowrap",S={primary:"bg-primary text-white hover:bg-primary-dark active:bg-primary-dark/90 shadow-sm",secondary:"bg-secondary text-foreground hover:bg-border active:bg-border-dark",outline:"bg-transparent text-primary border-1 border-primary hover:bg-secondary active:bg-border",ghost:"bg-transparent text-primary hover:bg-secondary active:bg-border",danger:"bg-error text-white hover:bg-red-600 active:bg-red-700 shadow-sm"},T={sm:"px-3 py-2 text-sm min-h-[2.25rem]",md:"px-4 py-2.5 text-base min-h-[2.75rem]",lg:"px-6 py-3.5 text-lg min-h-[3.25rem]"};return c.jsxs(ce.button,{ref:p,whileTap:b?{scale:g||l?1:.98}:void 0,className:J(x,S[a],T[s],m),disabled:g||l,...y,children:[l?c.jsx(ob,{className:J("h-5 w-5",b&&"animate-spin")}):o?c.jsx("span",{className:"shrink-0",children:o}):null,f]})});Ke.displayName="Button";var jT=Tg();const on=({open:a,anchorRef:s,placement:l,children:o,className:d,offset:m=8,matchWidth:f=!0})=>{const[g,y]=N.useState(!1),[p,b]=N.useState(null);N.useEffect(()=>(y(!0),()=>y(!1)),[]);const x=N.useCallback(()=>{if(!a||!s.current)return;const S=s.current.getBoundingClientRect();b({position:"fixed",top:l==="top"?S.top-m:S.bottom+m,left:S.left,width:f?S.width:void 0,zIndex:70})},[s,f,m,a,l]);return N.useEffect(()=>{if(a)return x(),window.addEventListener("resize",x),window.addEventListener("scroll",x,!0),()=>{window.removeEventListener("resize",x),window.removeEventListener("scroll",x,!0)}},[a,x]),!g||!a||!p?null:jT.createPortal(c.jsx("div",{style:p,onMouseDown:S=>S.stopPropagation(),className:J(l==="top"&&"-translate-y-full",d),children:o}),document.body)},Sb=({value:a,onChange:s,label:l,required:o,placeholder:d="Select date",error:m,hint:f,disabled:g,minDate:y,maxDate:p,className:b,animate:x=!0})=>{const S=x!==!1,[T,D]=N.useState(!1),[R,k]=N.useState("bottom"),[z,X]=N.useState(!1),[Y,W]=N.useState("bottom"),[Z,P]=N.useState(!1),[K,O]=N.useState("bottom"),[te,F]=N.useState(a||new Date),ne=N.useRef(null),de=N.useRef(null),Re=N.useRef(null),ve=N.useRef(null),ee=N.useRef(null),E=N.useRef(null);N.useEffect(()=>{const $=ge=>{ne.current&&!ne.current.contains(ge.target)&&(D(!1),X(!1),P(!1))};return T&&document.addEventListener("mousedown",$),()=>{document.removeEventListener("mousedown",$)}},[T]),N.useEffect(()=>{T||(X(!1),P(!1))},[T]),N.useEffect(()=>{if(!T)return;const $=()=>{if(!de.current)return;const ge=de.current.getBoundingClientRect(),Ne=430,cn=window.innerHeight-ge.bottom-8,jt=ge.top-8;if(cn>=Ne){k("bottom");return}if(jt>=Ne){k("top");return}k("bottom")};return $(),window.addEventListener("resize",$),window.addEventListener("scroll",$,!0),()=>{window.removeEventListener("resize",$),window.removeEventListener("scroll",$,!0)}},[T]),N.useEffect(()=>{if(!z)return;const $=te.getMonth();ve.current?.querySelector(`button[data-month="${$}"]`)?.scrollIntoView({block:"center"})},[z,te]),N.useEffect(()=>{if(!Z)return;const $=te.getFullYear();E.current?.querySelector(`button[data-year="${$}"]`)?.scrollIntoView({block:"center"})},[Z,te]);const U=["January","February","March","April","May","June","July","August","September","October","November","December"],M=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],se=$=>{const ge=$.getFullYear(),Ne=$.getMonth(),cn=new Date(ge,Ne,1),Tt=new Date(ge,Ne+1,0).getDate(),tr=cn.getDay(),ti=[];for(let Tn=0;Tn<tr;Tn++)ti.push(null);for(let Tn=1;Tn<=Tt;Tn++)ti.push(new Date(ge,Ne,Tn));return ti},ye=()=>{F(new Date(te.getFullYear(),te.getMonth()-1,1))},w=()=>{F(new Date(te.getFullYear(),te.getMonth()+1,1))},H=$=>{F(new Date(te.getFullYear(),$,1)),X(!1)},I=$=>{F(new Date($,te.getMonth(),1)),P(!1)},ae=()=>{if(X(!1),!Z&&ee.current){const $=ee.current.getBoundingClientRect(),ge=window.innerHeight-$.bottom,Ne=$.top;O(ge<220&&Ne>ge?"top":"bottom")}P($=>!$)},me=()=>{if(P(!1),!z&&Re.current){const $=Re.current.getBoundingClientRect(),ge=window.innerHeight-$.bottom,Ne=$.top;W(ge<220&&Ne>ge?"top":"bottom")}X($=>!$)},re=$=>{s($),D(!1)},he=$=>!!(y&&$<y||p&&$>p),Je=($,ge)=>!$||!ge?!1:$.getDate()===ge.getDate()&&$.getMonth()===ge.getMonth()&&$.getFullYear()===ge.getFullYear(),_e=$=>$?Je($,new Date):!1,Qt=$=>$?$.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}):"",un=se(te),st=te.getFullYear(),jn=te.getMonth(),gn=y?y.getFullYear():st-100,es=p?p.getFullYear():st+20,Ia=Array.from({length:es-gn+1},($,ge)=>gn+ge),fl=$=>{if(y){const ge=y.getFullYear(),Ne=y.getMonth();if(st===ge&&$<Ne)return!0}if(p){const ge=p.getFullYear(),Ne=p.getMonth();if(st===ge&&$>Ne)return!0}return!1},ei=R==="bottom"?{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10}}:{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10}};return c.jsxs("div",{ref:ne,className:J("relative w-full",b),children:[l&&c.jsxs("label",{className:"block mb-1.5 text-sm font-medium text-foreground",children:[l,o&&c.jsx("span",{className:"text-error ml-1",children:"*"})]}),c.jsxs("button",{ref:de,type:"button",onClick:()=>!g&&D(!T),disabled:g,"aria-required":o,className:J("w-full px-4 py-3 rounded-md border transition-all duration-200","bg-background text-left flex items-center justify-between gap-2","focus:outline-none focus:ring-2 focus:ring-primary","disabled:bg-secondary disabled:cursor-not-allowed","touch-target",m&&"border-error",!m&&"border-border",T&&"ring-2 ring-primary"),children:[c.jsx("span",{className:J("truncate",!a&&"text-foreground/50"),children:a?Qt(a):d}),c.jsx(Qw,{className:"w-5 h-5 text-primary shrink-0"})]}),S?c.jsx(rn,{children:T?c.jsx(on,{open:T,anchorRef:de,placement:R,matchWidth:!1,children:c.jsxs(ce.div,{initial:ei.initial,animate:ei.animate,exit:ei.exit,transition:{duration:.2},className:"z-50 w-80 bg-background rounded-md border border-border shadow-lg p-3",children:[c.jsxs("div",{className:"grid grid-cols-[auto_1fr_auto] items-center gap-1.5 border-border mb-3",children:[c.jsx("button",{type:"button",onClick:ye,className:"h-8 w-8 inline-flex items-center justify-center hover:bg-secondary rounded-lg transition-colors",children:c.jsx(rd,{className:"w-5 h-5 text-primary"})}),c.jsxs("div",{className:"flex items-center justify-center gap-1 min-w-0",children:[c.jsxs("div",{className:"relative",children:[c.jsxs("button",{ref:Re,type:"button",onClick:me,className:"h-8 min-w-24 max-w-28 rounded-md border border-border bg-background px-2 text-xs font-medium text-foreground focus:outline-none focus:ring-2 focus:ring-primary flex items-center justify-between gap-1","aria-label":"Select month","aria-haspopup":"listbox","aria-expanded":z,children:[c.jsx("span",{className:"truncate",children:U[jn]}),c.jsx(Kn,{className:J("w-4 h-4 text-primary transition-transform",z&&"rotate-180")})]}),z&&c.jsx("div",{ref:ve,role:"listbox",className:J("absolute z-60 w-36 rounded-md border border-border bg-background shadow-lg py-1 max-h-56 overflow-y-auto",Y==="bottom"?"top-full mt-1":"bottom-full mb-1"),children:U.map(($,ge)=>{const Ne=fl(ge);return c.jsx("button",{type:"button",role:"option","data-month":ge,"aria-selected":ge===jn,onClick:()=>!Ne&&H(ge),disabled:Ne,className:J("w-full px-3 py-2 text-sm text-left transition-colors",!Ne&&"hover:bg-secondary",ge===jn&&"bg-border text-foreground font-medium",Ne&&"text-border-dark cursor-not-allowed"),children:$},$)})})]}),c.jsxs("div",{className:"relative",children:[c.jsxs("button",{ref:ee,type:"button",onClick:ae,className:"h-8 min-w-20 max-w-24 rounded-md border border-border bg-background px-2 text-xs font-medium text-foreground focus:outline-none focus:ring-2 focus:ring-primary flex items-center justify-between gap-1","aria-label":"Select year","aria-haspopup":"listbox","aria-expanded":Z,children:[c.jsx("span",{children:st}),c.jsx(Kn,{className:J("w-4 h-4 text-primary transition-transform",Z&&"rotate-180")})]}),Z&&c.jsx("div",{ref:E,role:"listbox",className:J("absolute z-60 w-28 rounded-md border border-border bg-background shadow-lg py-1 max-h-56 overflow-y-auto",K==="bottom"?"top-full mt-1":"bottom-full mb-1"),children:Ia.map($=>c.jsx("button",{type:"button",role:"option","data-year":$,"aria-selected":$===st,onClick:()=>I($),className:J("w-full px-3 py-2 text-sm text-left hover:bg-secondary transition-colors",$===st&&"bg-border text-foreground font-medium"),children:$},$))})]})]}),c.jsx("button",{type:"button",onClick:w,className:"h-8 w-8 inline-flex items-center justify-center hover:bg-secondary rounded-lg transition-colors",children:c.jsx(od,{className:"w-5 h-5 text-primary"})})]}),c.jsx("div",{className:"grid grid-cols-7 gap-1 mb-1 pb-1 border-b border-border",children:M.map($=>c.jsx("div",{className:"text-center text-[11px] font-medium text-foreground/70 py-1",children:$},$))}),c.jsx("div",{className:"grid grid-cols-7 gap-1",children:un.map(($,ge)=>{if(!$)return c.jsx("div",{className:"aspect-square"},`empty-${ge}`);const Ne=Je($,a||null),cn=_e($),jt=he($);return c.jsx(ce.button,{type:"button",whileTap:S?{scale:jt?1:.95}:void 0,onClick:()=>!jt&&re($),disabled:jt,className:J("aspect-square cursor-pointer rounded-lg flex items-center justify-center","text-[11px] font-medium transition-all duration-200","hover:bg-secondary",Ne&&"bg-primary text-white hover:bg-primary-dark",cn&&!Ne&&"border-2 border-primary text-primary",jt&&"text-border-dark cursor-not-allowed hover:bg-transparent",!Ne&&!cn&&!jt&&"text-foreground"),children:$.getDate()},$.toISOString())})}),c.jsx("div",{className:"mt-1.5 pt-1.5 border-t border-border",children:c.jsx("button",{type:"button",onClick:()=>re(new Date),className:"w-full py-1.5 text-xs font-medium text-primary cursor-pointer hover:bg-secondary rounded-lg transition-colors",children:"Today"})})]})}):null}):T&&c.jsx(on,{open:T,anchorRef:de,placement:R,matchWidth:!1,children:c.jsxs("div",{className:"z-50 w-80 bg-background rounded-md border border-border shadow-lg p-3",children:[c.jsxs("div",{className:"grid grid-cols-[auto_1fr_auto] items-center gap-1.5 mb-3",children:[c.jsx("button",{type:"button",onClick:ye,className:"h-8 w-8 inline-flex items-center justify-center hover:bg-secondary rounded-lg transition-colors",children:c.jsx(rd,{className:"w-5 h-5 text-primary"})}),c.jsxs("div",{className:"flex items-center justify-center gap-1 min-w-0",children:[c.jsxs("div",{className:"relative",children:[c.jsxs("button",{ref:Re,type:"button",onClick:me,className:"h-8 min-w-24 max-w-28 rounded-md border border-border bg-background px-2 text-xs font-medium text-foreground focus:outline-none focus:ring-2 focus:ring-primary flex items-center justify-between gap-1","aria-label":"Select month","aria-haspopup":"listbox","aria-expanded":z,children:[c.jsx("span",{className:"truncate",children:U[jn]}),c.jsx(Kn,{className:J("w-4 h-4 text-primary transition-transform",z&&"rotate-180")})]}),z&&c.jsx("div",{ref:ve,role:"listbox",className:J("absolute z-60 w-36 rounded-md border border-border bg-background shadow-lg py-1 max-h-56 overflow-y-auto",Y==="bottom"?"top-full mt-1":"bottom-full mb-1"),children:U.map(($,ge)=>{const Ne=fl(ge);return c.jsx("button",{type:"button",role:"option","data-month":ge,"aria-selected":ge===jn,onClick:()=>!Ne&&H(ge),disabled:Ne,className:J("w-full px-3 py-2 text-sm text-left transition-colors",!Ne&&"hover:bg-secondary",ge===jn&&"bg-border text-foreground font-medium",Ne&&"text-border-dark cursor-not-allowed"),children:$},$)})})]}),c.jsxs("div",{className:"relative",children:[c.jsxs("button",{ref:ee,type:"button",onClick:ae,className:"h-8 min-w-20 max-w-24 rounded-md border border-border bg-background px-2 text-xs font-medium text-foreground focus:outline-none focus:ring-2 focus:ring-primary flex items-center justify-between gap-1","aria-label":"Select year","aria-haspopup":"listbox","aria-expanded":Z,children:[c.jsx("span",{children:st}),c.jsx(Kn,{className:J("w-4 h-4 text-primary transition-transform",Z&&"rotate-180")})]}),Z&&c.jsx("div",{ref:E,role:"listbox",className:J("absolute z-60 w-28 rounded-md border border-border bg-background shadow-lg py-1 max-h-56 overflow-y-auto",K==="bottom"?"top-full mt-1":"bottom-full mb-1"),children:Ia.map($=>c.jsx("button",{type:"button",role:"option","data-year":$,"aria-selected":$===st,onClick:()=>I($),className:J("w-full px-3 py-2 text-sm text-left hover:bg-secondary transition-colors",$===st&&"bg-border text-foreground font-medium"),children:$},$))})]})]}),c.jsx("button",{type:"button",onClick:w,className:"h-8 w-8 inline-flex items-center justify-center hover:bg-secondary rounded-lg transition-colors",children:c.jsx(od,{className:"w-5 h-5 text-primary"})})]}),c.jsx("div",{className:"grid grid-cols-7 gap-1 mb-1 pb-1 border-b border-border",children:M.map($=>c.jsx("div",{className:"text-center text-[11px] font-medium text-primary/70 py-1",children:$},$))}),c.jsx("div",{className:"grid grid-cols-7 gap-1",children:un.map(($,ge)=>{if(!$)return c.jsx("div",{className:"aspect-square"},`empty-${ge}`);const Ne=Je($,a||null),cn=_e($),jt=he($);return c.jsx("button",{type:"button",onClick:()=>!jt&&re($),disabled:jt,className:J("aspect-square rounded-lg flex items-center justify-center","text-[11px] font-medium transition-all duration-200","hover:bg-secondary",Ne&&"bg-primary text-white hover:bg-primary-dark",cn&&!Ne&&"border-2 border-primary text-primary",jt&&"text-border-dark cursor-not-allowed hover:bg-transparent",!Ne&&!cn&&!jt&&"text-foreground"),children:$.getDate()},$.toISOString())})}),c.jsx("div",{className:"mt-1.5 pt-1.5 border-t border-border",children:c.jsx("button",{type:"button",onClick:()=>re(new Date),className:"w-full py-1.5 text-xs font-medium text-primary hover:bg-secondary rounded-lg transition-colors",children:"Today"})})]})}),m&&c.jsx(ce.p,{...S?{initial:{opacity:0,y:-5},animate:{opacity:1,y:0}}:{},className:"mt-1.5 text-sm text-error",children:m}),f&&!m&&c.jsx("p",{className:"mt-1.5 text-sm text-primary/70",children:f})]})},Qn=[{iso2:"AF",name:"Afghanistan",dialCode:"+93"},{iso2:"AL",name:"Albania",dialCode:"+355"},{iso2:"DZ",name:"Algeria",dialCode:"+213"},{iso2:"AS",name:"American Samoa",dialCode:"+1-684"},{iso2:"AD",name:"Andorra",dialCode:"+376"},{iso2:"AO",name:"Angola",dialCode:"+244"},{iso2:"AI",name:"Anguilla",dialCode:"+1-264"},{iso2:"AQ",name:"Antarctica",dialCode:"+672"},{iso2:"AG",name:"Antigua and Barbuda",dialCode:"+1-268"},{iso2:"AR",name:"Argentina",dialCode:"+54"},{iso2:"AM",name:"Armenia",dialCode:"+374"},{iso2:"AW",name:"Aruba",dialCode:"+297"},{iso2:"AU",name:"Australia",dialCode:"+61"},{iso2:"AT",name:"Austria",dialCode:"+43"},{iso2:"AZ",name:"Azerbaijan",dialCode:"+994"},{iso2:"BS",name:"Bahamas",dialCode:"+1-242"},{iso2:"BH",name:"Bahrain",dialCode:"+973"},{iso2:"BD",name:"Bangladesh",dialCode:"+880"},{iso2:"BB",name:"Barbados",dialCode:"+1-246"},{iso2:"BY",name:"Belarus",dialCode:"+375"},{iso2:"BE",name:"Belgium",dialCode:"+32"},{iso2:"BZ",name:"Belize",dialCode:"+501"},{iso2:"BJ",name:"Benin",dialCode:"+229"},{iso2:"BM",name:"Bermuda",dialCode:"+1-441"},{iso2:"BT",name:"Bhutan",dialCode:"+975"},{iso2:"BO",name:"Bolivia",dialCode:"+591"},{iso2:"BA",name:"Bosnia and Herzegovina",dialCode:"+387"},{iso2:"BW",name:"Botswana",dialCode:"+267"},{iso2:"BR",name:"Brazil",dialCode:"+55"},{iso2:"IO",name:"British Indian Ocean Territory",dialCode:"+246"},{iso2:"BN",name:"Brunei",dialCode:"+673"},{iso2:"BG",name:"Bulgaria",dialCode:"+359"},{iso2:"BF",name:"Burkina Faso",dialCode:"+226"},{iso2:"BI",name:"Burundi",dialCode:"+257"},{iso2:"KH",name:"Cambodia",dialCode:"+855"},{iso2:"CM",name:"Cameroon",dialCode:"+237"},{iso2:"CA",name:"Canada",dialCode:"+1"},{iso2:"CV",name:"Cape Verde",dialCode:"+238"},{iso2:"KY",name:"Cayman Islands",dialCode:"+1-345"},{iso2:"CF",name:"Central African Republic",dialCode:"+236"},{iso2:"TD",name:"Chad",dialCode:"+235"},{iso2:"CL",name:"Chile",dialCode:"+56"},{iso2:"CN",name:"China",dialCode:"+86"},{iso2:"CX",name:"Christmas Island",dialCode:"+61"},{iso2:"CC",name:"Cocos (Keeling) Islands",dialCode:"+61"},{iso2:"CO",name:"Colombia",dialCode:"+57"},{iso2:"KM",name:"Comoros",dialCode:"+269"},{iso2:"CG",name:"Congo",dialCode:"+242"},{iso2:"CD",name:"Congo, Democratic Republic",dialCode:"+243"},{iso2:"CK",name:"Cook Islands",dialCode:"+682"},{iso2:"CR",name:"Costa Rica",dialCode:"+506"},{iso2:"CI",name:"Cote d'Ivoire",dialCode:"+225"},{iso2:"HR",name:"Croatia",dialCode:"+385"},{iso2:"CU",name:"Cuba",dialCode:"+53"},{iso2:"CY",name:"Cyprus",dialCode:"+357"},{iso2:"CZ",name:"Czech Republic",dialCode:"+420"},{iso2:"DK",name:"Denmark",dialCode:"+45"},{iso2:"DJ",name:"Djibouti",dialCode:"+253"},{iso2:"DM",name:"Dominica",dialCode:"+1-767"},{iso2:"DO",name:"Dominican Republic",dialCode:"+1-809"},{iso2:"EC",name:"Ecuador",dialCode:"+593"},{iso2:"EG",name:"Egypt",dialCode:"+20"},{iso2:"SV",name:"El Salvador",dialCode:"+503"},{iso2:"GQ",name:"Equatorial Guinea",dialCode:"+240"},{iso2:"ER",name:"Eritrea",dialCode:"+291"},{iso2:"EE",name:"Estonia",dialCode:"+372"},{iso2:"ET",name:"Ethiopia",dialCode:"+251"},{iso2:"FK",name:"Falkland Islands",dialCode:"+500"},{iso2:"FO",name:"Faroe Islands",dialCode:"+298"},{iso2:"FJ",name:"Fiji",dialCode:"+679"},{iso2:"FI",name:"Finland",dialCode:"+358"},{iso2:"FR",name:"France",dialCode:"+33"},{iso2:"GF",name:"French Guiana",dialCode:"+594"},{iso2:"PF",name:"French Polynesia",dialCode:"+689"},{iso2:"GA",name:"Gabon",dialCode:"+241"},{iso2:"GM",name:"Gambia",dialCode:"+220"},{iso2:"GE",name:"Georgia",dialCode:"+995"},{iso2:"DE",name:"Germany",dialCode:"+49"},{iso2:"GH",name:"Ghana",dialCode:"+233"},{iso2:"GI",name:"Gibraltar",dialCode:"+350"},{iso2:"GR",name:"Greece",dialCode:"+30"},{iso2:"GL",name:"Greenland",dialCode:"+299"},{iso2:"GD",name:"Grenada",dialCode:"+1-473"},{iso2:"GP",name:"Guadeloupe",dialCode:"+590"},{iso2:"GU",name:"Guam",dialCode:"+1-671"},{iso2:"GT",name:"Guatemala",dialCode:"+502"},{iso2:"GG",name:"Guernsey",dialCode:"+44-1481"},{iso2:"GN",name:"Guinea",dialCode:"+224"},{iso2:"GW",name:"Guinea-Bissau",dialCode:"+245"},{iso2:"GY",name:"Guyana",dialCode:"+592"},{iso2:"HT",name:"Haiti",dialCode:"+509"},{iso2:"HN",name:"Honduras",dialCode:"+504"},{iso2:"HK",name:"Hong Kong",dialCode:"+852"},{iso2:"HU",name:"Hungary",dialCode:"+36"},{iso2:"IS",name:"Iceland",dialCode:"+354"},{iso2:"IN",name:"India",dialCode:"+91"},{iso2:"ID",name:"Indonesia",dialCode:"+62"},{iso2:"IR",name:"Iran",dialCode:"+98"},{iso2:"IQ",name:"Iraq",dialCode:"+964"},{iso2:"IE",name:"Ireland",dialCode:"+353"},{iso2:"IM",name:"Isle of Man",dialCode:"+44-1624"},{iso2:"IL",name:"Israel",dialCode:"+972"},{iso2:"IT",name:"Italy",dialCode:"+39"},{iso2:"JM",name:"Jamaica",dialCode:"+1-876"},{iso2:"JP",name:"Japan",dialCode:"+81"},{iso2:"JE",name:"Jersey",dialCode:"+44-1534"},{iso2:"JO",name:"Jordan",dialCode:"+962"},{iso2:"KZ",name:"Kazakhstan",dialCode:"+7"},{iso2:"KE",name:"Kenya",dialCode:"+254"},{iso2:"KI",name:"Kiribati",dialCode:"+686"},{iso2:"KP",name:"Korea, North",dialCode:"+850"},{iso2:"KR",name:"Korea, South",dialCode:"+82"},{iso2:"KW",name:"Kuwait",dialCode:"+965"},{iso2:"KG",name:"Kyrgyzstan",dialCode:"+996"},{iso2:"LA",name:"Laos",dialCode:"+856"},{iso2:"LV",name:"Latvia",dialCode:"+371"},{iso2:"LB",name:"Lebanon",dialCode:"+961"},{iso2:"LS",name:"Lesotho",dialCode:"+266"},{iso2:"LR",name:"Liberia",dialCode:"+231"},{iso2:"LY",name:"Libya",dialCode:"+218"},{iso2:"LI",name:"Liechtenstein",dialCode:"+423"},{iso2:"LT",name:"Lithuania",dialCode:"+370"},{iso2:"LU",name:"Luxembourg",dialCode:"+352"},{iso2:"MO",name:"Macau",dialCode:"+853"},{iso2:"MK",name:"North Macedonia",dialCode:"+389"},{iso2:"MG",name:"Madagascar",dialCode:"+261"},{iso2:"MW",name:"Malawi",dialCode:"+265"},{iso2:"MY",name:"Malaysia",dialCode:"+60"},{iso2:"MV",name:"Maldives",dialCode:"+960"},{iso2:"ML",name:"Mali",dialCode:"+223"},{iso2:"MT",name:"Malta",dialCode:"+356"},{iso2:"MH",name:"Marshall Islands",dialCode:"+692"},{iso2:"MQ",name:"Martinique",dialCode:"+596"},{iso2:"MR",name:"Mauritania",dialCode:"+222"},{iso2:"MU",name:"Mauritius",dialCode:"+230"},{iso2:"YT",name:"Mayotte",dialCode:"+262"},{iso2:"MX",name:"Mexico",dialCode:"+52"},{iso2:"FM",name:"Micronesia",dialCode:"+691"},{iso2:"MD",name:"Moldova",dialCode:"+373"},{iso2:"MC",name:"Monaco",dialCode:"+377"},{iso2:"MN",name:"Mongolia",dialCode:"+976"},{iso2:"ME",name:"Montenegro",dialCode:"+382"},{iso2:"MS",name:"Montserrat",dialCode:"+1-664"},{iso2:"MA",name:"Morocco",dialCode:"+212"},{iso2:"MZ",name:"Mozambique",dialCode:"+258"},{iso2:"MM",name:"Myanmar",dialCode:"+95"},{iso2:"NA",name:"Namibia",dialCode:"+264"},{iso2:"NR",name:"Nauru",dialCode:"+674"},{iso2:"NP",name:"Nepal",dialCode:"+977"},{iso2:"NL",name:"Netherlands",dialCode:"+31"},{iso2:"NC",name:"New Caledonia",dialCode:"+687"},{iso2:"NZ",name:"New Zealand",dialCode:"+64"},{iso2:"NI",name:"Nicaragua",dialCode:"+505"},{iso2:"NE",name:"Niger",dialCode:"+227"},{iso2:"NG",name:"Nigeria",dialCode:"+234"},{iso2:"NU",name:"Niue",dialCode:"+683"},{iso2:"NF",name:"Norfolk Island",dialCode:"+672"},{iso2:"MP",name:"Northern Mariana Islands",dialCode:"+1-670"},{iso2:"NO",name:"Norway",dialCode:"+47"},{iso2:"OM",name:"Oman",dialCode:"+968"},{iso2:"PK",name:"Pakistan",dialCode:"+92"},{iso2:"PW",name:"Palau",dialCode:"+680"},{iso2:"PS",name:"Palestine",dialCode:"+970"},{iso2:"PA",name:"Panama",dialCode:"+507"},{iso2:"PG",name:"Papua New Guinea",dialCode:"+675"},{iso2:"PY",name:"Paraguay",dialCode:"+595"},{iso2:"PE",name:"Peru",dialCode:"+51"},{iso2:"PH",name:"Philippines",dialCode:"+63"},{iso2:"PN",name:"Pitcairn",dialCode:"+64"},{iso2:"PL",name:"Poland",dialCode:"+48"},{iso2:"PT",name:"Portugal",dialCode:"+351"},{iso2:"PR",name:"Puerto Rico",dialCode:"+1-787"},{iso2:"QA",name:"Qatar",dialCode:"+974"},{iso2:"RE",name:"Reunion",dialCode:"+262"},{iso2:"RO",name:"Romania",dialCode:"+40"},{iso2:"RU",name:"Russia",dialCode:"+7"},{iso2:"RW",name:"Rwanda",dialCode:"+250"},{iso2:"BL",name:"Saint Barthelemy",dialCode:"+590"},{iso2:"SH",name:"Saint Helena",dialCode:"+290"},{iso2:"KN",name:"Saint Kitts and Nevis",dialCode:"+1-869"},{iso2:"LC",name:"Saint Lucia",dialCode:"+1-758"},{iso2:"MF",name:"Saint Martin",dialCode:"+590"},{iso2:"PM",name:"Saint Pierre and Miquelon",dialCode:"+508"},{iso2:"VC",name:"Saint Vincent and the Grenadines",dialCode:"+1-784"},{iso2:"WS",name:"Samoa",dialCode:"+685"},{iso2:"SM",name:"San Marino",dialCode:"+378"},{iso2:"ST",name:"Sao Tome and Principe",dialCode:"+239"},{iso2:"SA",name:"Saudi Arabia",dialCode:"+966"},{iso2:"SN",name:"Senegal",dialCode:"+221"},{iso2:"RS",name:"Serbia",dialCode:"+381"},{iso2:"SC",name:"Seychelles",dialCode:"+248"},{iso2:"SL",name:"Sierra Leone",dialCode:"+232"},{iso2:"SG",name:"Singapore",dialCode:"+65"},{iso2:"SX",name:"Sint Maarten",dialCode:"+1-721"},{iso2:"SK",name:"Slovakia",dialCode:"+421"},{iso2:"SI",name:"Slovenia",dialCode:"+386"},{iso2:"SB",name:"Solomon Islands",dialCode:"+677"},{iso2:"SO",name:"Somalia",dialCode:"+252"},{iso2:"ZA",name:"South Africa",dialCode:"+27"},{iso2:"GS",name:"South Georgia and the South Sandwich Islands",dialCode:"+500"},{iso2:"SS",name:"South Sudan",dialCode:"+211"},{iso2:"ES",name:"Spain",dialCode:"+34"},{iso2:"LK",name:"Sri Lanka",dialCode:"+94"},{iso2:"SD",name:"Sudan",dialCode:"+249"},{iso2:"SR",name:"Suriname",dialCode:"+597"},{iso2:"SJ",name:"Svalbard and Jan Mayen",dialCode:"+47"},{iso2:"SZ",name:"Swaziland",dialCode:"+268"},{iso2:"SE",name:"Sweden",dialCode:"+46"},{iso2:"CH",name:"Switzerland",dialCode:"+41"},{iso2:"SY",name:"Syria",dialCode:"+963"},{iso2:"TW",name:"Taiwan",dialCode:"+886"},{iso2:"TJ",name:"Tajikistan",dialCode:"+992"},{iso2:"TZ",name:"Tanzania",dialCode:"+255"},{iso2:"TH",name:"Thailand",dialCode:"+66"},{iso2:"TL",name:"Timor-Leste",dialCode:"+670"},{iso2:"TG",name:"Togo",dialCode:"+228"},{iso2:"TK",name:"Tokelau",dialCode:"+690"},{iso2:"TO",name:"Tonga",dialCode:"+676"},{iso2:"TT",name:"Trinidad and Tobago",dialCode:"+1-868"},{iso2:"TN",name:"Tunisia",dialCode:"+216"},{iso2:"TR",name:"Turkey",dialCode:"+90"},{iso2:"TM",name:"Turkmenistan",dialCode:"+993"},{iso2:"TC",name:"Turks and Caicos Islands",dialCode:"+1-649"},{iso2:"TV",name:"Tuvalu",dialCode:"+688"},{iso2:"UG",name:"Uganda",dialCode:"+256"},{iso2:"UA",name:"Ukraine",dialCode:"+380"},{iso2:"AE",name:"United Arab Emirates",dialCode:"+971"},{iso2:"GB",name:"United Kingdom",dialCode:"+44"},{iso2:"US",name:"United States",dialCode:"+1"},{iso2:"UY",name:"Uruguay",dialCode:"+598"},{iso2:"UZ",name:"Uzbekistan",dialCode:"+998"},{iso2:"VU",name:"Vanuatu",dialCode:"+678"},{iso2:"VA",name:"Vatican City",dialCode:"+379"},{iso2:"VE",name:"Venezuela",dialCode:"+58"},{iso2:"VN",name:"Vietnam",dialCode:"+84"},{iso2:"VG",name:"British Virgin Islands",dialCode:"+1-284"},{iso2:"VI",name:"US Virgin Islands",dialCode:"+1-340"},{iso2:"WF",name:"Wallis and Futuna",dialCode:"+681"},{iso2:"EH",name:"Western Sahara",dialCode:"+212"},{iso2:"YE",name:"Yemen",dialCode:"+967"},{iso2:"ZM",name:"Zambia",dialCode:"+260"},{iso2:"ZW",name:"Zimbabwe",dialCode:"+263"}],Bc=a=>{const s=a.toUpperCase().split("").map(l=>127397+l.charCodeAt(0));return String.fromCodePoint(...s)},Jd=({value:a,onChange:s,onCountryChange:l,label:o="Country",required:d,placeholder:m="Select country",error:f,hint:g,searchable:y=!0,clearable:p=!0,showFlags:b=!0,disabled:x,animate:S=!0,className:T})=>{const D=S!==!1,[R,k]=N.useState(!1),[z,X]=N.useState(""),[Y,W]=N.useState("bottom"),Z=N.useRef(null),P=N.useRef(null),K=N.useMemo(()=>Qn.find(ne=>ne.iso2===a),[a]),O=N.useMemo(()=>{if(!y||!z.trim())return Qn;const ne=z.toLowerCase();return Qn.filter(de=>de.name.toLowerCase().includes(ne)||de.iso2.toLowerCase().includes(ne)||de.dialCode.replace(/\s/g,"").includes(ne.replace(/\s/g,"")))},[z,y]);N.useEffect(()=>{const ne=de=>{Z.current&&!Z.current.contains(de.target)&&(k(!1),X(""))};return document.addEventListener("mousedown",ne),()=>document.removeEventListener("mousedown",ne)},[]),N.useEffect(()=>{if(!R)return;const ne=()=>{if(!P.current)return;const de=P.current.getBoundingClientRect(),Re=y?360:300,ve=window.innerHeight-de.bottom-8,ee=de.top-8;if(ve>=Re){W("bottom");return}if(ee>=Re){W("top");return}W("bottom")};return ne(),window.addEventListener("resize",ne),window.addEventListener("scroll",ne,!0),()=>{window.removeEventListener("resize",ne),window.removeEventListener("scroll",ne,!0)}},[R,y]);const te=ne=>{s?.(ne);const de=Qn.find(Re=>Re.iso2===ne);de&&l?.(de),k(!1),X("")},F=Y==="top"?{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10}}:{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10}};return c.jsxs("div",{ref:Z,className:J("w-full space-y-1.5",T),children:[o&&c.jsxs("label",{className:"block text-sm font-medium text-foreground",children:[o,d&&c.jsx("span",{className:"text-error ml-1",children:"*"})]}),c.jsxs("div",{ref:P,className:"relative",children:[c.jsxs("button",{type:"button",onClick:()=>!x&&k(!R),disabled:x,"aria-haspopup":"listbox","aria-expanded":R,"aria-required":d,className:J("w-full px-4 py-3 rounded-md border transition-all duration-200","bg-background text-left flex items-center justify-between gap-2","focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent","disabled:bg-secondary disabled:cursor-not-allowed","touch-target text-base",f&&"border-error focus:ring-error",R&&"ring-2 ring-primary",!f&&(x?"opacity-50":"border-border"),f&&x&&"opacity-50"),children:[c.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[b&&K&&c.jsx("span",{className:"text-base","aria-hidden":!0,children:Bc(K.iso2)}),c.jsx("span",{className:J("truncate",!K&&"text-foreground/50"),children:K?K.name:m})]}),c.jsx(Kn,{className:J("w-5 h-5 text-primary transition-transform shrink-0",R&&"rotate-180")})]}),D?c.jsx(rn,{children:R?c.jsx(on,{open:R,anchorRef:P,placement:Y,children:c.jsxs(ce.div,{initial:F.initial,animate:F.animate,exit:F.exit,transition:{duration:.2},role:"listbox",className:"z-50 w-full max-w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden overflow-x-hidden",children:[y&&c.jsx("div",{className:"p-2 border-b border-border",children:c.jsxs("div",{className:"relative",children:[c.jsx(yn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50"}),c.jsx("input",{type:"text",placeholder:"Search country or code",value:z,onChange:ne=>X(ne.target.value),className:"w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary"}),z&&c.jsx("button",{type:"button",onClick:()=>X(""),className:"absolute right-2 top-1/2 -translate-y-1/2","aria-label":"Clear search",children:c.jsx(Kt,{className:"w-4 h-4 text-primary/50 hover:text-primary"})})]})}),c.jsxs("div",{className:"overflow-y-auto max-h-64 p-2 space-y-1",children:[p&&c.jsx("button",{type:"button",role:"option","aria-selected":!a,onClick:()=>te(""),className:J("w-full px-3 py-2 text-left flex items-start gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","text-foreground/70 italic",!a&&"bg-border text-foreground"),children:c.jsx("span",{children:"None"})}),O.map(ne=>c.jsxs("button",{type:"button",role:"option","aria-selected":ne.iso2===K?.iso2,onClick:()=>te(ne.iso2),className:J("w-full px-3 py-2 text-left flex items-start gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors",ne.iso2===K?.iso2&&"bg-border text-foreground"),children:[b&&c.jsx("span",{className:"text-base","aria-hidden":!0,children:Bc(ne.iso2)}),c.jsx("span",{className:"text-sm font-medium text-foreground wrap-break-word whitespace-normal",children:ne.name}),c.jsx("span",{className:"ml-auto text-xs text-primary/70",children:ne.dialCode})]},ne.iso2))]})]})}):null}):R&&c.jsx(on,{open:R,anchorRef:P,placement:Y,children:c.jsxs("div",{role:"listbox",className:"z-50 w-full max-w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden overflow-x-hidden",children:[y&&c.jsx("div",{className:"p-2 border-b border-border",children:c.jsxs("div",{className:"relative",children:[c.jsx(yn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50"}),c.jsx("input",{type:"text",placeholder:"Search country or code",value:z,onChange:ne=>X(ne.target.value),className:"w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary"}),z&&c.jsx("button",{type:"button",onClick:()=>X(""),className:"absolute right-2 top-1/2 -translate-y-1/2","aria-label":"Clear search",children:c.jsx(Kt,{className:"w-4 h-4 text-primary/50 hover:text-primary"})})]})}),c.jsxs("div",{className:"overflow-y-auto max-h-64 p-2 space-y-1",children:[p&&c.jsx("button",{type:"button",role:"option","aria-selected":!a,onClick:()=>te(""),className:J("w-full px-3 py-2 text-left flex items-start gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","text-foreground/70 italic",!a&&"bg-border text-foreground"),children:c.jsx("span",{children:"None"})}),O.map(ne=>c.jsxs("button",{type:"button",role:"option","aria-selected":ne.iso2===K?.iso2,onClick:()=>te(ne.iso2),className:J("w-full px-3 py-2 text-left flex items-start gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors",ne.iso2===K?.iso2&&"bg-border text-foreground"),children:[b&&c.jsx("span",{className:"text-base","aria-hidden":!0,children:Bc(ne.iso2)}),c.jsx("span",{className:"text-sm font-medium text-foreground wrap-break-word whitespace-normal",children:ne.name}),c.jsx("span",{className:"ml-auto text-xs text-primary/70",children:ne.dialCode})]},ne.iso2))]})]})})]}),f&&c.jsx(ce.p,{...D?{initial:{opacity:0,y:-5},animate:{opacity:1,y:0}}:{},className:"text-sm text-error",children:f}),g&&!f&&c.jsx("p",{className:"text-sm text-primary/70",children:g})]})};Jd.displayName="CountrySelect";const Lc=a=>{const s=a.toUpperCase().split("").map(l=>127397+l.charCodeAt(0));return String.fromCodePoint(...s)},TT=()=>{if(typeof navigator>"u")return null;const s=(navigator.language||"").match(/[-_](\w{2})$/);return s?s[1].toUpperCase():null},Yo=a=>a.replace(/\s/g,""),wg=a=>{const s=a.replace(/\s/g,"");return s.startsWith("+")?[...Qn].sort((o,d)=>Yo(d.dialCode).length-Yo(o.dialCode).length).find(o=>{const d=Yo(o.dialCode);return s.startsWith(d)}):void 0},Cb=({value:a,onChange:s,country:l,defaultCountry:o="US",autoDetect:d=!0,onCountryChange:m,label:f,error:g,hint:y,searchable:p=!0,showFlags:b=!0,animate:x=!0,disabled:S,required:T,className:D,placeholder:R,...k})=>{const z=x!==!1,[X,Y]=N.useState(!1),[W,Z]=N.useState(""),[P,K]=N.useState(o),[O,te]=N.useState("bottom"),F=N.useRef(null),ne=N.useRef(null),de=N.useRef(null),Re=N.useRef(!1);N.useEffect(()=>{l&&K(l.toUpperCase())},[l]),N.useEffect(()=>{if(!l&&d){const M=TT();M&&K(M)}},[d,l]),N.useEffect(()=>{const M=se=>{F.current&&!F.current.contains(se.target)&&(Y(!1),Z(""))};return document.addEventListener("mousedown",M),()=>document.removeEventListener("mousedown",M)},[]);const ve=N.useMemo(()=>{const M=a?wg(a):void 0,se=(l||P||o).toUpperCase();return Qn.find(ye=>ye.iso2===se)||M||Qn[0]},[l,P,o,a]);N.useEffect(()=>{ve&&de.current!==ve.iso2&&(de.current=ve.iso2,m?.(ve))},[ve,m]),N.useEffect(()=>{Re.current||s&&(a??"").trim()===""&&(Re.current=!0,s(ve.dialCode))},[s,ve.dialCode,a]),N.useEffect(()=>{if(!X)return;const M=()=>{if(!ne.current)return;const se=ne.current.getBoundingClientRect(),ye=p?360:300,w=window.innerHeight-se.bottom-8,H=se.top-8;if(w>=ye){te("bottom");return}if(H>=ye){te("top");return}te("bottom")};return M(),window.addEventListener("resize",M),window.addEventListener("scroll",M,!0),()=>{window.removeEventListener("resize",M),window.removeEventListener("scroll",M,!0)}},[X,p]);const ee=N.useMemo(()=>{if(!p||!W.trim())return Qn;const M=W.toLowerCase();return Qn.filter(se=>se.name.toLowerCase().includes(M)||se.iso2.toLowerCase().includes(M)||se.dialCode.replace(/\s/g,"").includes(M.replace(/\s/g,"")))},[W,p]),E=M=>{l||K(M.iso2),m?.(M);const se=(a??"").replace(/\s/g,""),ye=wg(se),w=ye?Yo(ye.dialCode):"";let H=M.dialCode;se&&(w&&se.startsWith(w)?H=`${M.dialCode}${se.slice(w.length)}`:se.startsWith("+")?H=`${M.dialCode}${se.replace(/^\+[\d-]*/,"")}`:H=`${M.dialCode}${se}`),s?.(H),Y(!1),Z("")},U=O==="top"?{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10}}:{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10}};return c.jsxs("div",{ref:F,className:J("w-full space-y-1.5",D),children:[f&&c.jsxs("label",{className:"block text-sm font-medium text-foreground",children:[f,T&&c.jsx("span",{className:"text-error ml-1",children:"*"})]}),c.jsxs("div",{ref:ne,className:"relative",children:[c.jsxs("div",{className:J("flex items-stretch rounded-md border transition-all duration-200 bg-background overflow-hidden","focus-within:ring-2 focus-within:ring-primary focus-within:border-transparent","disabled:bg-secondary disabled:cursor-not-allowed",g?"border-error":"border-border"),children:[c.jsxs("button",{type:"button",onClick:()=>!S&&Y(!X),disabled:S,className:J("flex items-center gap-2 px-3 py-2 text-left","border-r border-border/70","hover:bg-secondary transition-colors","disabled:opacity-50 disabled:cursor-not-allowed"),"aria-haspopup":"listbox","aria-expanded":X,children:[b&&c.jsx("span",{className:"text-base","aria-hidden":!0,children:Lc(ve.iso2)}),c.jsx("span",{className:"text-sm font-medium text-foreground",children:ve.iso2}),c.jsx(Kn,{className:J("w-4 h-4 text-primary transition-transform",X&&"rotate-180")})]}),c.jsx("input",{type:"tel",inputMode:"tel",value:a??"",onChange:M=>s?.(M.target.value),placeholder:R||`${ve.dialCode} Phone number`,disabled:S,required:T,className:J("flex-1 px-4 py-2.5 text-base bg-transparent text-foreground","placeholder:text-foreground/50 focus:outline-none","disabled:opacity-50 disabled:cursor-not-allowed"),...k})]}),z?c.jsx(rn,{children:X?c.jsx(on,{open:X,anchorRef:ne,placement:O,children:c.jsxs(ce.div,{initial:U.initial,animate:U.animate,exit:U.exit,transition:{duration:.2},role:"listbox",className:"z-50 w-full max-w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden overflow-x-hidden",children:[p&&c.jsx("div",{className:"p-2 border-b border-border",children:c.jsxs("div",{className:"relative",children:[c.jsx(yn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50"}),c.jsx("input",{type:"text",placeholder:"Search country or code",value:W,onChange:M=>Z(M.target.value),className:"w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary"}),W&&c.jsx("button",{type:"button",onClick:()=>Z(""),className:"absolute right-2 top-1/2 -translate-y-1/2","aria-label":"Clear search",children:c.jsx(Kt,{className:"w-4 h-4 text-primary/50 hover:text-primary"})})]})}),c.jsx("div",{className:"overflow-y-auto max-h-64 p-2 space-y-1",children:ee.map(M=>c.jsxs("button",{type:"button",role:"option","aria-selected":M.iso2===ve.iso2,onClick:()=>E(M),className:J("w-full px-3 py-2 text-left flex items-start gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors",M.iso2===ve.iso2&&"bg-border text-foreground"),children:[b&&c.jsx("span",{className:"text-base","aria-hidden":!0,children:Lc(M.iso2)}),c.jsx("span",{className:"text-sm font-medium text-foreground wrap-break-word whitespace-normal",children:M.name}),c.jsx("span",{className:"ml-auto text-xs text-primary/70",children:M.dialCode})]},M.iso2))})]})}):null}):X&&c.jsx(on,{open:X,anchorRef:ne,placement:O,children:c.jsxs("div",{role:"listbox",className:"z-50 w-full max-w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden overflow-x-hidden",children:[p&&c.jsx("div",{className:"p-2 border-b border-border",children:c.jsxs("div",{className:"relative",children:[c.jsx(yn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50"}),c.jsx("input",{type:"text",placeholder:"Search country or code",value:W,onChange:M=>Z(M.target.value),className:"w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary"}),W&&c.jsx("button",{type:"button",onClick:()=>Z(""),className:"absolute right-2 top-1/2 -translate-y-1/2","aria-label":"Clear search",children:c.jsx(Kt,{className:"w-4 h-4 text-primary/50 hover:text-primary"})})]})}),c.jsx("div",{className:"overflow-y-auto max-h-64 p-2 space-y-1",children:ee.map(M=>c.jsxs("button",{type:"button",role:"option","aria-selected":M.iso2===ve.iso2,onClick:()=>E(M),className:J("w-full px-3 py-2 text-left flex items-start gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors",M.iso2===ve.iso2&&"bg-border text-foreground"),children:[b&&c.jsx("span",{className:"text-base","aria-hidden":!0,children:Lc(M.iso2)}),c.jsx("span",{className:"text-sm font-medium text-foreground wrap-break-word whitespace-normal",children:M.name}),c.jsx("span",{className:"ml-auto text-xs text-primary/70",children:M.dialCode})]},M.iso2))})]})})]}),g&&c.jsx(ce.p,{...z?{initial:{opacity:0,y:-5},animate:{opacity:1,y:0}}:{},className:"text-sm text-error",children:g}),y&&!g&&c.jsx("p",{className:"text-sm text-primary/70",children:y})]})};Cb.displayName="PhoneInput";const Ca=N.forwardRef(({label:a,error:s,hint:l,leftIcon:o,rightIcon:d,animate:m=!0,className:f,type:g,value:y,placeholder:p,disabled:b,required:x,onChange:S,onValueChange:T,...D},R)=>{const k=m!==!1,[z,X]=N.useState(!1),Y=P=>{S?.(P),T?.(P)};if(g==="phone")return c.jsx(Cb,{label:a,error:s,hint:l,placeholder:p,disabled:b,required:x,animate:m,value:typeof y=="string"?y:"",onChange:P=>Y(P),className:f});if(g==="country")return c.jsx(Jd,{label:a,error:s,hint:l,placeholder:p,disabled:b,required:x,animate:m,value:typeof y=="string"?y:"",onChange:P=>Y(P),className:f});if(g==="date")return c.jsx(Sb,{label:a,error:s,hint:l,placeholder:p,disabled:b,required:x,animate:m,value:y instanceof Date?y:void 0,onChange:P=>Y(P),className:f});const W=g==="password",Z=W&&z?"text":g;return c.jsxs("div",{className:"w-full space-y-1.5",children:[a&&c.jsxs("label",{className:"block text-sm font-medium text-foreground",children:[a,x&&c.jsx("span",{className:"text-error ml-1",children:"*"})]}),c.jsxs("div",{className:"relative",children:[o&&c.jsx("div",{className:"absolute flex items-center pointer-events-none text-primary",style:{left:"14px",top:"50%",transform:"translateY(-50%)"},children:o}),c.jsx("input",{ref:R,type:Z,className:J("w-full rounded-md border transition-all duration-200","bg-background text-foreground placeholder:text-foreground/50","focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent","disabled:bg-secondary disabled:cursor-not-allowed","touch-target text-base",s&&"border-error focus:ring-error",!s&&"border-border",f),style:{paddingTop:"12px",paddingBottom:"12px",paddingLeft:o?"44px":"16px",paddingRight:d||W?"44px":"16px"},value:y,onChange:P=>Y(P.target.value),placeholder:p,disabled:b,required:x,...D}),W&&c.jsx(ce.button,{type:"button",onClick:()=>X(!z),className:"absolute text-primary hover:text-primary-dark transition-colors",style:{right:"14px",top:"50%",display:"inline-flex",alignItems:"center",justifyContent:"center"},"aria-label":z?"Hide password":"Show password",whileTap:k?{scale:.9,y:"-50%"}:void 0,animate:{y:"-50%"},transition:k?{duration:.1}:{duration:0},children:z?c.jsx(ij,{className:"w-5 h-5"}):c.jsx(lj,{className:"w-5 h-5"})}),d&&!W&&c.jsx("div",{className:"absolute flex items-center pointer-events-none text-primary",style:{right:"14px",top:"50%",transform:"translateY(-50%)"},children:d})]}),s&&c.jsx(ce.p,{...k?{initial:{opacity:0,y:-5},animate:{opacity:1,y:0}}:{},className:"text-sm text-error",children:s}),l&&!s&&c.jsx("p",{className:"text-sm text-primary/70",children:l})]})});Ca.displayName="Input";const wb=N.forwardRef(({label:a,error:s,helperText:l,className:o,required:d,animate:m=!0,...f},g)=>{const y=m!==!1;return c.jsxs(ce.div,{...y?{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.3}}:{},className:"w-full",children:[a&&c.jsxs("label",{className:"block text-sm font-medium text-foreground mb-1.5",children:[a,d&&c.jsx("span",{className:"text-error ml-1",children:"*"})]}),c.jsx("textarea",{ref:g,className:J("w-full px-4 py-3 bg-background border border-border rounded-md","text-foreground placeholder:text-foreground/50","focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent","disabled:bg-secondary disabled:opacity-50 disabled:cursor-not-allowed","transition-all duration-200 resize-vertical","text-base touch-target",s&&"border-error focus:ring-error",o),...f}),s&&c.jsx(ce.p,{...y?{initial:{opacity:0,y:-5},animate:{opacity:1,y:0}}:{},className:"mt-1 text-sm text-error",children:s}),l&&!s&&c.jsx("p",{className:"mt-1 text-sm text-primary/70",children:l})]})});wb.displayName="Textarea";const Fo=N.forwardRef(({label:a,description:s,className:l,checked:o,defaultChecked:d,onChange:m,animate:f=!0,...g},y)=>{const p=f!==!1,[b,x]=N.useState(d||!1),S=o!==void 0?o:b,T=D=>{o===void 0&&x(D.target.checked),m?.(D.target.checked)};return c.jsxs("label",{className:"flex items-start gap-3 cursor-pointer group",children:[c.jsxs("div",{className:"relative flex-shrink-0 mt-0.5",children:[c.jsx("input",{ref:y,type:"checkbox",className:"sr-only peer",checked:S,onChange:T,...g}),c.jsx(ce.div,{className:J("w-6 h-6 rounded-md border-2 transition-all duration-200","peer-focus:ring-2 peer-focus:ring-primary peer-focus:ring-offset-2","peer-disabled:opacity-50 peer-disabled:cursor-not-allowed","flex items-center justify-center",S?"bg-primary border-primary":"border-border bg-secondary",l),whileTap:p?{scale:.95}:void 0,children:c.jsx(lb,{className:J("w-4 h-4 text-white transition-opacity duration-200",S?"opacity-100":"opacity-0")})})]}),(a||s)&&c.jsxs("div",{className:"flex-1 space-y-0.5",children:[a&&c.jsx("div",{className:"text-base font-medium text-foreground group-hover:text-primary transition-colors",children:a}),s&&c.jsx("div",{className:"text-sm text-primary/70",children:s})]})]})});Fo.displayName="Checkbox";const NT=({options:a,value:s,onChange:l,name:o,disabled:d,className:m,animate:f=!0})=>{const g=f!==!1;return c.jsx("div",{className:J("flex flex-wrap gap-2",m),children:a.map(y=>{const p=s===y.value;return c.jsxs("label",{className:"relative cursor-pointer",children:[c.jsx("input",{type:"radio",name:o,value:y.value,checked:p,onChange:b=>l?.(b.target.value),disabled:d,className:"sr-only peer"}),c.jsxs(ce.div,{"data-ripple":"true",whileTap:g?{scale:d?1:.95}:void 0,className:J("px-4 py-2.5 rounded-full border-2 transition-all duration-200","flex items-center gap-2 min-h-11","peer-focus:ring-2 peer-focus:ring-primary peer-focus:ring-offset-2","peer-disabled:opacity-50 peer-disabled:cursor-not-allowed",p?"bg-primary border-primary text-white":"bg-background border-border text-primary hover:border-border-dark"),children:[y.icon&&c.jsx("span",{className:"shrink-0",children:y.icon}),c.jsx("span",{className:"font-medium text-base",children:y.label})]})]},y.value)})})},jb=N.forwardRef(({label:a,description:s,className:l,checked:o,onChange:d,animate:m=!0,...f},g)=>{const y=m!==!1,p=b=>{d?.(b.target.checked)};return c.jsxs("label",{className:"flex items-center justify-between gap-4 cursor-pointer group",children:[(a||s)&&c.jsxs("div",{className:"flex-1 space-y-0.5",children:[a&&c.jsx("div",{className:"text-base font-medium text-foreground",children:a}),s&&c.jsx("div",{className:"text-sm text-primary/70",children:s})]}),c.jsxs("div",{className:"relative flex-shrink-0",children:[c.jsx("input",{ref:g,type:"checkbox",onChange:p,className:"sr-only peer",checked:o,...f}),c.jsx("div",{className:J("w-12 h-7 rounded-full transition-all duration-200 relative","peer-focus:ring-2 peer-focus:ring-primary peer-focus:ring-offset-2","peer-disabled:opacity-50 peer-disabled:cursor-not-allowed",o?"bg-primary":"bg-border-dark",l),children:c.jsx(ce.div,{className:"absolute top-1 w-5 h-5 bg-white rounded-full shadow-sm",style:{left:o?"24px":"4px"},animate:y?{left:o?"24px":"4px"}:void 0,transition:y?{type:"spring",stiffness:500,damping:30}:{duration:0}})})]})]})});jb.displayName="Toggle";const AT=({value:a,onChange:s,min:l=0,max:o=100,step:d=1,label:m,showValue:f=!0,unit:g="%",disabled:y,className:p,animate:b=!0})=>{const x=b!==!1,[S,T]=N.useState(!1),D=(a-l)/(o-l)*100;return c.jsxs("div",{className:J("w-full space-y-2",p),children:[(m||f)&&c.jsxs("div",{className:"flex items-center justify-between",children:[m&&c.jsx("label",{className:"text-sm font-medium text-primary",children:m}),f&&c.jsxs("span",{className:"text-sm font-semibold text-primary",children:[a,g]})]}),c.jsxs("div",{className:"relative h-12 flex items-center",children:[c.jsx("div",{className:"relative w-full h-2 bg-border rounded-full overflow-hidden",children:c.jsx(ce.div,{className:"absolute left-0 top-0 h-full bg-primary rounded-full",style:{width:`${D}%`},initial:!1,animate:x?{width:`${D}%`}:void 0,transition:x?{type:"spring",stiffness:300,damping:30}:{duration:0}})}),c.jsx("input",{type:"range",min:l,max:o,step:d,value:a,onChange:R=>s(Number(R.target.value)),onMouseDown:()=>T(!0),onMouseUp:()=>T(!1),onTouchStart:()=>T(!0),onTouchEnd:()=>T(!1),disabled:y,className:"absolute inset-0 w-full h-full opacity-0 cursor-pointer disabled:cursor-not-allowed",style:{zIndex:10}}),c.jsx(ce.div,{className:J("absolute w-6 h-6 bg-background border-2 border-primary rounded-full shadow-md","pointer-events-none",y&&"opacity-50"),style:{left:`calc(${D}% - 12px)`},animate:x?{scale:S?1.2:1}:void 0,transition:x?{type:"spring",stiffness:300,damping:20}:{duration:0}})]})]})},MT=({value1:a,value2:s,onChange:l,label1:o,label2:d,min:m=0,max:f=100,step:g=1,unit:y="%",disabled:p,className:b,animate:x=!0})=>{const S=x!==!1,T=a+s,D=T>0?a/T*100:50,R=T>0?s/T*100:50,k=z=>{const X=f-z;l(z,Math.max(m,Math.min(f,X)))};return c.jsxs("div",{className:J("w-full space-y-3",b),children:[c.jsxs("div",{className:"space-y-2",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("label",{className:"text-sm font-medium text-primary",children:o}),c.jsxs("span",{className:"text-sm font-semibold text-primary",children:[a,y]})]}),c.jsxs("div",{className:"relative h-10 flex items-center",children:[c.jsx("div",{className:"w-full h-2 bg-border rounded-full overflow-hidden",children:c.jsx(ce.div,{className:"h-full bg-primary",initial:!1,animate:S?{width:`${D}%`}:void 0,transition:S?{type:"spring",stiffness:300,damping:30}:{duration:0}})}),c.jsx("input",{type:"range",min:m,max:f,step:g,value:a,onChange:z=>k(Number(z.target.value)),disabled:p,className:"absolute inset-0 w-full opacity-0 cursor-pointer disabled:cursor-not-allowed"})]})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("label",{className:"text-sm font-medium text-primary",children:d}),c.jsxs("span",{className:"text-sm font-semibold text-success",children:[s,y]})]}),c.jsxs("div",{className:"relative h-10 flex items-center",children:[c.jsx("div",{className:"w-full h-2 bg-border rounded-full overflow-hidden",children:c.jsx(ce.div,{className:"h-full bg-success",initial:!1,animate:S?{width:`${R}%`}:void 0,transition:S?{type:"spring",stiffness:300,damping:30}:{duration:0}})}),c.jsx("input",{type:"range",min:m,max:f,step:g,value:s,onChange:z=>k(f-Number(z.target.value)),disabled:p,className:"absolute inset-0 w-full opacity-0 cursor-pointer disabled:cursor-not-allowed"})]})]}),c.jsxs("div",{className:"text-xs text-primary/70 text-center",children:["Total: ",T,y]})]})},ET=({options:a,value:s,onChange:l,placeholder:o="Select an option",label:d,error:m,searchable:f=!1,clearable:g=!0,disabled:y,className:p,animate:b=!0})=>{const x=b!==!1,[S,T]=N.useState(!1),[D,R]=N.useState(""),[k,z]=N.useState("bottom"),X=N.useRef(null),Y=N.useRef(null),W=a.find(O=>O.value===s),Z=f?a.filter(O=>O.label.toLowerCase().includes(D.toLowerCase())):a;N.useEffect(()=>{const O=te=>{X.current&&!X.current.contains(te.target)&&(T(!1),R(""))};return document.addEventListener("mousedown",O),()=>document.removeEventListener("mousedown",O)},[]),N.useEffect(()=>{if(!S)return;const O=()=>{if(!Y.current)return;const te=Y.current.getBoundingClientRect(),F=f?360:300,ne=window.innerHeight-te.bottom-8,de=te.top-8;if(ne>=F){z("bottom");return}if(de>=F){z("top");return}z("bottom")};return O(),window.addEventListener("resize",O),window.addEventListener("scroll",O,!0),()=>{window.removeEventListener("resize",O),window.removeEventListener("scroll",O,!0)}},[S,f]);const P=O=>{l(O),T(!1),R("")},K=k==="top"?{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10}}:{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10}};return c.jsxs("div",{ref:X,className:J("relative w-full",p),children:[d&&c.jsx("label",{className:"block mb-1.5 text-sm font-medium text-foreground",children:d}),c.jsxs("button",{ref:Y,type:"button",onClick:()=>!y&&T(!S),disabled:y,className:J("w-full px-4 py-3 rounded-md border transition-all duration-200","bg-background text-left flex items-center justify-between gap-2","focus:outline-none focus:ring-2 focus:ring-primary","disabled:bg-secondary disabled:cursor-not-allowed","touch-target",m&&"border-error",!m&&"border-border",S&&"ring-2 ring-primary"),children:[c.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[W?.icon&&c.jsx("span",{className:"shrink-0",children:W.icon}),c.jsx("span",{className:J("truncate",!W&&"text-foreground/50"),children:W?.label||o})]}),c.jsx(Kn,{className:J("w-5 h-5 text-primary transition-transform shrink-0",S&&"rotate-180")})]}),x?c.jsx(rn,{children:S?c.jsx(on,{open:S,anchorRef:Y,placement:k,children:c.jsxs(ce.div,{initial:K.initial,animate:K.animate,exit:K.exit,transition:{duration:.2},className:"z-50 w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden",children:[f&&c.jsx("div",{className:"p-2 border-b border-border",children:c.jsxs("div",{className:"relative",children:[c.jsx(yn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50"}),c.jsx("input",{type:"text",placeholder:"Search...",value:D,onChange:O=>R(O.target.value),className:"w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md focus:outline-none focus:ring-2 focus:ring-primary"}),D&&c.jsx("button",{onClick:()=>R(""),className:"absolute right-2 top-1/2 -translate-y-1/2",children:c.jsx(Kt,{className:"w-4 h-4 text-primary/50 hover:text-primary"})})]})}),c.jsxs("div",{className:"overflow-y-auto max-h-64 p-2 space-y-1",children:[g&&c.jsx("button",{type:"button",onClick:()=>P(""),className:J("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","text-foreground/70 italic",!s&&"bg-border text-foreground"),children:c.jsx("span",{children:"None"})}),Z.length>0?Z.map(O=>c.jsxs("button",{onClick:()=>P(O.value),className:J("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors",O.value===s&&"bg-border text-foreground"),children:[O.icon&&c.jsx("span",{className:"shrink-0",children:O.icon}),c.jsx("span",{children:O.label})]},O.value)):c.jsx("div",{className:"px-4 py-6 text-center text-primary/70 text-sm",children:"No options found"})]})]})}):null}):S&&c.jsx(on,{open:S,anchorRef:Y,placement:k,children:c.jsxs(ce.div,{className:"z-50 w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden",children:[f&&c.jsx("div",{className:"p-2 border-b border-border",children:c.jsxs("div",{className:"relative",children:[c.jsx(yn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50"}),c.jsx("input",{type:"text",placeholder:"Search...",value:D,onChange:O=>R(O.target.value),className:"w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md focus:outline-none focus:ring-2 focus:ring-primary"}),D&&c.jsx("button",{onClick:()=>R(""),className:"absolute right-2 top-1/2 -translate-y-1/2",children:c.jsx(Kt,{className:"w-4 h-4 text-primary/50 hover:text-primary"})})]})}),c.jsxs("div",{className:"overflow-y-auto max-h-64 p-2 space-y-1",children:[g&&c.jsx("button",{type:"button",onClick:()=>P(""),className:J("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","text-foreground/70 italic",!s&&"bg-border text-foreground"),children:c.jsx("span",{children:"None"})}),Z.length>0?Z.map(O=>c.jsxs("button",{onClick:()=>P(O.value),className:J("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors",O.value===s&&"bg-border text-foreground"),children:[O.icon&&c.jsx("span",{className:"shrink-0",children:O.icon}),c.jsx("span",{children:O.label})]},O.value)):c.jsx("div",{className:"px-4 py-6 text-center text-primary/70 text-sm",children:"No options found"})]})]})}),m&&c.jsx(ce.p,{...x?{initial:{opacity:0,y:-5},animate:{opacity:1,y:0}}:{},className:"mt-1.5 text-sm text-error",children:m})]})},Tb=N.forwardRef(({options:a,value:s,onChange:l,placeholder:o="Select an option",label:d,error:m,hint:f,searchable:g=!1,clearable:y=!0,disabled:p,required:b,className:x,animate:S=!0},T)=>{const D=S!==!1,[R,k]=N.useState(!1),[z,X]=N.useState(""),[Y,W]=N.useState("bottom"),Z=N.useRef(null),P=a.find(F=>F.value===s),K=g?a.filter(F=>F.label.toLowerCase().includes(z.toLowerCase())):a;N.useEffect(()=>{const F=ne=>{Z.current&&!Z.current.contains(ne.target)&&(k(!1),X(""))};return document.addEventListener("mousedown",F),()=>document.removeEventListener("mousedown",F)},[]),N.useEffect(()=>{if(!R)return;const F=()=>{if(!Z.current)return;const ne=Z.current.getBoundingClientRect(),de=g?360:300,Re=window.innerHeight-ne.bottom-8,ve=ne.top-8;if(Re>=de){W("bottom");return}if(ve>=de){W("top");return}W("bottom")};return F(),window.addEventListener("resize",F),window.addEventListener("scroll",F,!0),()=>{window.removeEventListener("resize",F),window.removeEventListener("scroll",F,!0)}},[R,g]);const O=F=>{l(F),k(!1),X("")},te=Y==="top"?{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10}}:{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10}};return c.jsxs("div",{ref:T,className:J("w-full space-y-1.5",x),children:[d&&c.jsxs("label",{className:"block text-sm font-medium text-foreground",children:[d,b&&c.jsx("span",{className:"text-error ml-1",children:"*"})]}),c.jsxs("div",{ref:Z,className:"relative",children:[c.jsxs("button",{type:"button",onClick:()=>!p&&k(!R),disabled:p,"aria-haspopup":"listbox","aria-expanded":R,"aria-required":b,className:J("w-full px-4 py-3 rounded-md border transition-all duration-200","bg-background text-left flex items-center justify-between gap-2","focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent","disabled:bg-secondary disabled:cursor-not-allowed","touch-target text-base",m&&"border-error focus:ring-error",!m&&"border-border",R&&"ring-2 ring-primary"),children:[c.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[P?.icon&&c.jsx("span",{className:"shrink-0",children:P.icon}),c.jsx("span",{className:J("truncate",!P&&"text-foreground/50"),children:P?.label||o})]}),c.jsx(Kn,{className:J("w-5 h-5 text-primary transition-transform shrink-0",R&&"rotate-180")})]}),D?c.jsx(rn,{children:R?c.jsx(on,{open:R,anchorRef:Z,placement:Y,children:c.jsxs(ce.div,{initial:te.initial,animate:te.animate,exit:te.exit,transition:{duration:.2},role:"listbox",className:"z-50 w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden",children:[g&&c.jsx("div",{className:"p-2 border-b border-border",children:c.jsxs("div",{className:"relative",children:[c.jsx(yn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50"}),c.jsx("input",{type:"text",placeholder:"Search...",value:z,onChange:F=>X(F.target.value),className:"w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary","aria-label":"Search options"}),z&&c.jsx("button",{type:"button",onClick:()=>X(""),className:"absolute right-2 top-1/2 -translate-y-1/2","aria-label":"Clear search",children:c.jsx(Kt,{className:"w-4 h-4 text-primary/50 hover:text-primary"})})]})}),c.jsxs("div",{className:"overflow-y-auto max-h-64 p-2 space-y-1",children:[y&&c.jsx("button",{type:"button",role:"option","aria-selected":!s,onClick:()=>O(""),className:J("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","text-foreground/70 italic",!s&&"bg-border text-foreground font-medium"),children:c.jsx("span",{children:"None"})}),K.length>0?K.map(F=>c.jsxs("button",{type:"button",role:"option","aria-selected":F.value===s,onClick:()=>!F.disabled&&O(F.value),disabled:F.disabled,className:J("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","disabled:opacity-50 disabled:cursor-not-allowed",F.value===s&&"bg-border text-foreground font-medium"),children:[F.icon&&c.jsx("span",{className:"shrink-0",children:F.icon}),c.jsx("span",{children:F.label})]},F.value)):c.jsx("div",{className:"px-4 py-6 text-center text-primary/70 text-sm",children:"No options found"})]})]})}):null}):R&&c.jsx(on,{open:R,anchorRef:Z,placement:Y,children:c.jsxs(ce.div,{role:"listbox",className:"z-50 w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden",children:[g&&c.jsx("div",{className:"p-2 border-b border-border",children:c.jsxs("div",{className:"relative",children:[c.jsx(yn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50"}),c.jsx("input",{type:"text",placeholder:"Search...",value:z,onChange:F=>X(F.target.value),className:"w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary","aria-label":"Search options"}),z&&c.jsx("button",{type:"button",onClick:()=>X(""),className:"absolute right-2 top-1/2 -translate-y-1/2","aria-label":"Clear search",children:c.jsx(Kt,{className:"w-4 h-4 text-primary/50 hover:text-primary"})})]})}),c.jsxs("div",{className:"overflow-y-auto max-h-64 p-2 space-y-1",children:[y&&c.jsx("button",{type:"button",role:"option","aria-selected":!s,onClick:()=>O(""),className:J("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","text-foreground/70 italic",!s&&"bg-border text-foreground font-medium"),children:c.jsx("span",{children:"None"})}),K.length>0?K.map(F=>c.jsxs("button",{type:"button",role:"option","aria-selected":F.value===s,onClick:()=>!F.disabled&&O(F.value),disabled:F.disabled,className:J("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","disabled:opacity-50 disabled:cursor-not-allowed",F.value===s&&"bg-border text-foreground font-medium"),children:[F.icon&&c.jsx("span",{className:"shrink-0",children:F.icon}),c.jsx("span",{children:F.label})]},F.value)):c.jsx("div",{className:"px-4 py-6 text-center text-primary/70 text-sm",children:"No options found"})]})]})})]}),m&&c.jsx(ce.p,{...D?{initial:{opacity:0,y:-5},animate:{opacity:1,y:0}}:{},className:"text-sm text-error",children:m}),f&&!m&&c.jsx("p",{className:"text-sm text-primary/70",children:f})]})});Tb.displayName="Select";const Nb=N.forwardRef(({options:a,value:s=[],onChange:l,placeholder:o="Select options...",label:d,error:m,hint:f,searchable:g=!1,clearable:y=!0,maxItems:p,disabled:b,required:x,className:S,animate:T=!0,chipVariant:D="primary"},R)=>{const k=T!==!1,[z,X]=N.useState(!1),[Y,W]=N.useState(""),[Z,P]=N.useState("bottom"),K=N.useRef(null),O=a.filter(ee=>s.includes(ee.value)),te=g?a.filter(ee=>ee.label.toLowerCase().includes(Y.toLowerCase())):a;N.useEffect(()=>{const ee=E=>{K.current&&!K.current.contains(E.target)&&(X(!1),W(""))};return document.addEventListener("mousedown",ee),()=>document.removeEventListener("mousedown",ee)},[]),N.useEffect(()=>{if(!z)return;const ee=()=>{if(!K.current)return;const E=K.current.getBoundingClientRect(),U=g?360:300,M=window.innerHeight-E.bottom-8,se=E.top-8;if(M>=U){P("bottom");return}if(se>=U){P("top");return}P("bottom")};return ee(),window.addEventListener("resize",ee),window.addEventListener("scroll",ee,!0),()=>{window.removeEventListener("resize",ee),window.removeEventListener("scroll",ee,!0)}},[z,g]);const F=ee=>{const E=s.includes(ee)?s.filter(U=>U!==ee):p&&s.length>=p?s:[...s,ee];l(E)},ne=ee=>{const E=s.filter(U=>U!==ee);l(E)},de=()=>{l([])},Re={default:"bg-secondary text-primary border border-border hover:bg-border",primary:"bg-primary/10 text-primary border border-primary/20 hover:bg-primary/20",success:"bg-success/10 text-success border border-success/20 hover:bg-success/20",warning:"bg-warning/10 text-warning border border-warning/20 hover:bg-warning/20",danger:"bg-error/10 text-error border border-error/20 hover:bg-error/20",info:"bg-info/10 text-info border border-info/20 hover:bg-info/20"},ve=Z==="top"?{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10}}:{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10}};return c.jsxs("div",{ref:R,className:J("w-full space-y-1.5",S),children:[d&&c.jsxs("label",{className:"block text-sm font-medium text-foreground",children:[d,x&&c.jsx("span",{className:"text-error ml-1",children:"*"})]}),c.jsxs("div",{ref:K,className:"relative",children:[c.jsxs("div",{role:"button",tabIndex:b?-1:0,onClick:()=>!b&&X(!z),onKeyDown:ee=>{b||(ee.key==="Enter"||ee.key===" ")&&(ee.preventDefault(),X(E=>!E))},"aria-haspopup":"listbox","aria-expanded":z,"aria-required":x,"aria-disabled":b,className:J("w-full px-4 py-3 rounded-md border transition-all duration-200","bg-background text-left flex items-start justify-between gap-2 flex-wrap","focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent",b&&"bg-secondary cursor-not-allowed","touch-target text-base min-h-12",m&&"border-error focus:ring-error",!m&&"border-border",z&&"ring-2 ring-primary"),children:[s.length>0?c.jsx("div",{className:"flex flex-wrap gap-2 w-full",children:O.map(ee=>c.jsxs(ce.div,{layout:!0,initial:k?{opacity:0,scale:.8}:{},animate:k?{opacity:1,scale:1}:{},exit:k?{opacity:0,scale:.8}:{},className:J("flex items-center gap-1.5 px-2.5 py-1 rounded-md text-sm font-medium",Re[D]),children:[ee.icon&&c.jsx("span",{className:"shrink-0",children:ee.icon}),c.jsx("span",{className:"truncate",children:ee.label}),c.jsx("button",{type:"button",onClick:E=>{E.stopPropagation(),ne(ee.value)},className:"shrink-0 ml-0.5 hover:opacity-70 transition-opacity","aria-label":`Remove ${ee.label}`,children:c.jsx(Kt,{className:"w-4 h-4"})})]},ee.value))}):c.jsx("span",{className:J("truncate","text-foreground/50"),children:o}),c.jsx(Kn,{className:J("w-5 h-5 text-primary transition-transform shrink-0 ml-auto",z&&"rotate-180")})]}),k?c.jsx(rn,{children:z?c.jsx(on,{open:z,anchorRef:K,placement:Z,children:c.jsxs(ce.div,{initial:ve.initial,animate:ve.animate,exit:ve.exit,transition:{duration:.2},role:"listbox",className:"z-50 w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden",children:[g&&c.jsx("div",{className:"p-2 border-b border-border",children:c.jsxs("div",{className:"relative",children:[c.jsx(yn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50"}),c.jsx("input",{type:"text",placeholder:"Search...",value:Y,onChange:ee=>W(ee.target.value),className:"w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary","aria-label":"Search options"}),Y&&c.jsx("button",{type:"button",onClick:()=>W(""),className:"absolute right-2 top-1/2 -translate-y-1/2","aria-label":"Clear search",children:c.jsx(Kt,{className:"w-4 h-4 text-primary/50 hover:text-primary"})})]})}),c.jsxs("div",{className:"overflow-y-auto max-h-64 p-2 space-y-1",children:[y&&s.length>0&&c.jsx("button",{type:"button",role:"option",onClick:()=>de(),className:J("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","text-foreground/70 italic text-sm"),children:c.jsx("span",{children:"Clear all"})}),te.length>0?te.map(ee=>{const E=s.includes(ee.value),U=ee.disabled||p!==void 0&&s.length>=p&&!E;return c.jsxs("div",{role:"option","aria-selected":E,"aria-disabled":U,onClick:()=>!U&&F(ee.value),className:J("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","disabled:opacity-50 disabled:cursor-not-allowed",U&&"opacity-50 cursor-not-allowed",E&&"bg-border text-foreground font-medium"),children:[c.jsx(Fo,{checked:E,disabled:U,onChange:()=>!U&&F(ee.value),onClick:M=>M.stopPropagation(),animate:k,className:"w-5 h-5","aria-label":ee.label}),ee.icon&&c.jsx("span",{className:"shrink-0",children:ee.icon}),c.jsx("span",{children:ee.label})]},ee.value)}):c.jsx("div",{className:"px-4 py-6 text-center text-primary/70 text-sm",children:"No options found"})]})]})}):null}):z&&c.jsx(on,{open:z,anchorRef:K,placement:Z,children:c.jsxs(ce.div,{role:"listbox",className:"z-50 w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden",children:[g&&c.jsx("div",{className:"p-2 border-b border-border",children:c.jsxs("div",{className:"relative",children:[c.jsx(yn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50"}),c.jsx("input",{type:"text",placeholder:"Search...",value:Y,onChange:ee=>W(ee.target.value),className:"w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary","aria-label":"Search options"}),Y&&c.jsx("button",{type:"button",onClick:()=>W(""),className:"absolute right-2 top-1/2 -translate-y-1/2","aria-label":"Clear search",children:c.jsx(Kt,{className:"w-4 h-4 text-primary/50 hover:text-primary"})})]})}),c.jsxs("div",{className:"overflow-y-auto max-h-64 p-2 space-y-1",children:[y&&s.length>0&&c.jsx("button",{type:"button",role:"option",onClick:()=>de(),className:J("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","text-foreground/70 italic text-sm"),children:c.jsx("span",{children:"Clear all"})}),te.length>0?te.map(ee=>{const E=s.includes(ee.value),U=ee.disabled||p!==void 0&&s.length>=p&&!E;return c.jsxs("div",{role:"option","aria-selected":E,"aria-disabled":U,onClick:()=>!U&&F(ee.value),className:J("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","disabled:opacity-50 disabled:cursor-not-allowed",U&&"opacity-50 cursor-not-allowed",E&&"bg-border text-foreground font-medium"),children:[c.jsx(Fo,{checked:E,disabled:U,onChange:()=>!U&&F(ee.value),onClick:M=>M.stopPropagation(),animate:k,className:"w-5 h-5","aria-label":ee.label}),ee.icon&&c.jsx("span",{className:"shrink-0",children:ee.icon}),c.jsx("span",{children:ee.label})]},ee.value)}):c.jsx("div",{className:"px-4 py-6 text-center text-primary/70 text-sm",children:"No options found"})]})]})})]}),m&&c.jsx(ce.p,{...k?{initial:{opacity:0,y:-5},animate:{opacity:1,y:0}}:{},className:"text-sm text-error",children:m}),f&&!m&&c.jsx("p",{className:"text-sm text-primary/70",children:f})]})});Nb.displayName="MultiSelect";const bt=({children:a,variant:s="default",padding:l="md",className:o,onClick:d,hover:m=!1,animate:f=!0})=>{const g=f!==!1,y={default:"bg-background border border-border",outlined:"bg-transparent border-2 border-border-dark",elevated:"bg-background border-2 border-border shadow-card"},p={none:"p-0",sm:"p-3",md:"p-4 sm:p-6",lg:"p-6 sm:p-8"},b=d?ce.button:ce.div;return c.jsx(b,{...g?{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3}}:{},whileHover:g&&(m||d)?{y:-2,boxShadow:"0 10px 15px -3px rgb(0 0 0 / 0.1)"}:void 0,whileTap:g&&d?{scale:.98}:void 0,className:J("rounded-lg transition-all duration-200",y[s],p[l],d&&"cursor-pointer w-full text-left",o),onClick:d,children:a})},vt=({children:a,className:s})=>c.jsx("div",{className:J("mb-4",s),children:a}),xt=({children:a,className:s})=>c.jsx("h3",{className:J("text-lg font-semibold text-foreground",s),children:a}),St=({children:a,className:s})=>c.jsx("p",{className:J("text-sm text-foreground/70 mt-1",s),children:a}),Ct=({children:a,className:s})=>c.jsx("div",{className:s,children:a}),DT=({isOpen:a,onClose:s,children:l,title:o,position:d="right",className:m,animate:f=!0})=>{const g=f!==!1;N.useEffect(()=>{const p=b=>{b.key==="Escape"&&s()};return a&&(document.addEventListener("keydown",p),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",p),document.body.style.overflow="unset"}},[a,s]);const y=a?c.jsxs(c.Fragment,{children:[c.jsx(ce.div,{...g?{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2}}:{},className:"fixed inset-0 z-40 bg-black/50 backdrop-blur-sm",onClick:s}),c.jsxs(ce.div,{...g?{initial:{x:d==="left"?"-100%":"100%"},animate:{x:0},exit:{x:d==="left"?"-100%":"100%"},transition:{type:"spring",damping:30,stiffness:300}}:{},className:J("fixed top-0 z-50 h-full w-[400px] sm:w-[480px] bg-background shadow-xl",d==="left"?"left-0 border-r":"right-0 border-l","border-border",m),children:[o&&c.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-border",children:[c.jsx("h2",{className:"text-xl font-semibold text-foreground",children:o}),c.jsx("button",{onClick:s,className:"px-3 py-1.5 rounded-md border border-border text-sm font-medium text-foreground hover:bg-secondary transition-colors","aria-label":"Close drawer",children:"Esc"})]}),c.jsx("div",{className:"overflow-y-auto h-[calc(100%-5rem)] p-6",children:l})]})]}):null;return g?c.jsx(rn,{children:y}):y},zT=({isOpen:a,onClose:s,children:l,title:o,size:d="md",className:m,animate:f=!0})=>{const g=f!==!1,y=N.useRef(null);N.useEffect(()=>{const x=S=>{S.key==="Escape"&&s()};return a&&(document.addEventListener("keydown",x),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",x),document.body.style.overflow="unset"}},[a,s]);const p={sm:"max-w-lg",md:"max-w-2xl",lg:"max-w-4xl",xl:"max-w-6xl",full:"max-w-full mx-4"},b=a?c.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4",onClick:x=>{x.target===x.currentTarget&&s()},children:c.jsxs(ce.div,{ref:y,...g?{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.2}}:{},className:J("bg-background border border-border rounded-lg shadow-2xl w-full max-h-[90vh] overflow-hidden flex flex-col",p[d],m),children:[o&&c.jsxs("div",{className:"px-6 py-4 border-b border-border flex items-center justify-between",children:[c.jsx("h2",{className:"text-xl font-semibold text-foreground",children:o}),c.jsx("button",{onClick:s,className:"px-3 py-1.5 rounded-md border border-border text-sm font-medium text-foreground hover:bg-secondary transition-colors","aria-label":"Close modal",children:"Esc"})]}),c.jsx("div",{className:"overflow-y-auto flex-1",children:l})]})}):null;return g?c.jsx(rn,{children:b}):b},RT=({children:a,className:s})=>c.jsx("div",{className:J("px-6 py-4",s),children:a}),OT=({children:a,className:s})=>c.jsx("div",{className:J("px-6 py-4 border-t border-border flex items-center justify-end gap-3 bg-background sticky bottom-0",s),children:a}),VT=({isOpen:a,onClose:s,title:l,children:o,showCloseButton:d=!1,className:m,animate:f=!0})=>{const g=f!==!1;N.useEffect(()=>{const p=b=>{b.key==="Escape"&&s()};return a?(document.addEventListener("keydown",p),document.body.style.overflow="hidden"):(document.removeEventListener("keydown",p),document.body.style.overflow="unset"),()=>{document.removeEventListener("keydown",p),document.body.style.overflow="unset"}},[a,s]);const y=a?c.jsxs(c.Fragment,{children:[c.jsx(ce.div,{...g?{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}}:{},onClick:s,className:"fixed inset-0 bg-black/50 z-40"}),c.jsxs(ce.div,{...g?{initial:{y:"100%"},animate:{y:0},exit:{y:"100%"},transition:{type:"spring",damping:30,stiffness:300}}:{},className:J("fixed bottom-0 left-0 right-0 z-50","bg-white rounded-t-3xl shadow-2xl","max-h-[90vh] flex flex-col",m),children:[c.jsx("div",{className:"flex justify-center pt-3 pb-2",children:c.jsx("div",{className:"w-12 h-1.5 bg-border-dark rounded-full"})}),(l||d)&&c.jsxs("div",{className:"flex items-center justify-between px-6 py-4 ",children:[l&&c.jsx("h2",{className:"text-lg font-semibold text-foreground",children:l}),d&&c.jsx("button",{onClick:s,className:"px-3 py-1.5 rounded-md border border-border text-sm font-medium text-foreground hover:bg-secondary transition-colors","aria-label":"Close bottom sheet",children:"Esc"})]}),c.jsx("div",{className:"flex-1 overflow-y-auto px-6 py-4",children:o})]})]}):null;return g?c.jsx(rn,{children:y}):y};function _T({data:a,columns:s,loading:l=!1,onRowClick:o,keyExtractor:d,className:m,animate:f=!0}){const g=f!==!1,[y,p]=N.useState(null),[b,x]=N.useState("asc"),S=D=>{y===D?x(b==="asc"?"desc":"asc"):(p(D),x("asc"))},T=y?[...a].sort((D,R)=>{const k=D[y],z=R[y];return k<z?b==="asc"?-1:1:k>z?b==="asc"?1:-1:0}):a;return l?c.jsx("div",{className:J("border border-border rounded-lg overflow-hidden",m),children:c.jsx("div",{className:"overflow-x-auto",children:c.jsxs("table",{className:"w-full",children:[c.jsx("thead",{className:"border-b border-border",children:c.jsx("tr",{children:s.map((D,R)=>c.jsx("th",{className:"px-6 py-4 text-left",children:c.jsx("div",{className:J("h-4 bg-border rounded w-24",g&&"animate-pulse")})},R))})}),c.jsx("tbody",{children:[...Array(5)].map((D,R)=>c.jsx("tr",{className:"border-b border-border",children:s.map((k,z)=>c.jsx("td",{className:"px-6 py-4",children:c.jsx("div",{className:J("h-4 bg-secondary rounded",g&&"animate-pulse")})},z))},R))})]})})}):c.jsx(ce.div,{...g?{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3}}:{},className:J("border border-border rounded-lg overflow-hidden",m),children:c.jsx("div",{className:"overflow-x-auto",children:c.jsxs("table",{className:"w-full",children:[c.jsx("thead",{className:"border-b border-border",children:c.jsx("tr",{children:s.map((D,R)=>c.jsx("th",{className:J("px-6 py-4 text-left text-sm font-semibold text-foreground",D.width,D.sortable&&"cursor-pointer transition-colors"),onClick:()=>D.sortable&&S(D.key),children:c.jsxs("div",{className:"flex items-center gap-2",children:[D.header,D.sortable&&c.jsx("span",{className:"text-primary/50 hover:text-primary transition-colors",children:y===D.key?b==="asc"?c.jsx(Xw,{className:"w-4 h-4"}):c.jsx(Yw,{className:"w-4 h-4"}):c.jsx($w,{className:"w-4 h-4"})})]})},R))})}),c.jsx("tbody",{children:T.map((D,R)=>c.jsx(ce.tr,{...g?{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.2,delay:R*.05}}:{},onClick:()=>o&&o(D),className:J("border-b border-border transition-colors",o&&"cursor-pointer hover:bg-secondary"),children:s.map((k,z)=>c.jsx("td",{className:J("px-6 py-4 text-sm text-foreground/70",k.width),style:k.width?{width:k.width}:void 0,title:k.truncate&&!k.render?String(D[k.key]??""):void 0,children:k.truncate&&!k.render?c.jsx("div",{className:"truncate",children:String(D[k.key]??"")}):k.render?k.render(D):String(D[k.key]??"")},z))},d(D)))})]})})})}const kT=({currentPage:a,totalPages:s,onPageChange:l,totalItems:o,itemsPerPage:d,className:m,animate:f=!0})=>{const g=f!==!1,y=md.useMemo(()=>{if(s<=5)return Array.from({length:s},(D,R)=>R+1);const x=Math.floor(5/2);let S=Math.max(1,a-x),T=S+5-1;return T>s&&(T=s,S=Math.max(1,T-5+1)),Array.from({length:T-S+1},(D,R)=>S+R)},[a,s]),p=b=>{const x=Math.max(1,Math.min(s,b));x!==a&&l(x)};return c.jsxs(ce.div,{...g?{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3}}:{},className:J("flex items-center justify-between gap-4 flex-wrap",m),children:[c.jsx("div",{className:"text-sm text-foreground/70",children:o&&d&&c.jsxs("span",{children:["Showing ",Math.min((a-1)*d+1,o)," to"," ",Math.min(a*d,o)," of ",o," results"]})}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Ke,{variant:"secondary",size:"sm",disabled:a===1,onClick:()=>p(a-1),icon:c.jsx(rd,{className:"w-4 h-4"}),animate:f,children:"Previous"}),!y.includes(1)&&c.jsx(Ke,{variant:"secondary",size:"sm",onClick:()=>p(1),icon:c.jsx(uj,{className:"w-4 h-4 text-primary"}),animate:f,"aria-label":"Go to first page"}),c.jsx(ce.div,{layout:!0,className:"flex items-center justify-center gap-1 min-w-56",children:c.jsx(rn,{initial:!1,mode:"popLayout",children:y.map(b=>{const x=b===a;return c.jsx(ce.button,{layout:!0,whileHover:g?{y:-1}:void 0,whileTap:g?{scale:.96}:void 0,onClick:()=>p(b),className:J("w-10 h-10 rounded-md border text-sm font-medium tabular-nums leading-none inline-flex items-center justify-center transition-all duration-200",x?"bg-primary text-white border-primary shadow-sm":"hover:bg-secondary border-border text-foreground"),"aria-current":x?"page":void 0,children:b},b)})})}),c.jsx(Ke,{variant:"secondary",size:"sm",disabled:a===s,onClick:()=>p(a+1),icon:c.jsx(od,{className:"w-4 h-4"}),animate:f,children:"Next"})]})]})},BT=({icon:a,onClick:s,label:l,actions:o,variant:d="primary",position:m="bottom-right",disabled:f,className:g,animate:y=!0})=>{const p=y!==!1,[b,x]=N.useState(!1),S={"bottom-right":"fixed bottom-6 right-6","bottom-left":"fixed bottom-6 left-6","bottom-center":"fixed bottom-6 left-1/2 -translate-x-1/2"},T={primary:"bg-primary text-white hover:bg-primary-dark shadow-lg",secondary:"bg-background text-primary border-2 border-primary hover:bg-secondary shadow-md"},D={primary:"bg-primary text-white",success:"bg-success text-white",danger:"bg-error text-white",warning:"bg-warning text-white"},R=()=>{o&&o.length>0?x(!b):s&&s()};return c.jsxs("div",{className:J(S[m],"z-50",g),children:[p?c.jsx(rn,{children:b&&o?c.jsx(ce.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"absolute bottom-20 right-0 flex flex-col gap-3 mb-2",children:o.map((k,z)=>c.jsxs(ce.div,{initial:{opacity:0,y:20,scale:.8},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:20,scale:.8},transition:{delay:z*.05},className:"flex items-center gap-3",children:[c.jsx("span",{className:J("bg-background border border-border rounded-md px-3 py-1.5 text-sm font-medium whitespace-nowrap shadow-lg",k.labelClassName),style:k.labelStyle,children:k.label}),c.jsx(ce.button,{whileHover:p?{scale:1.1}:void 0,whileTap:p?{scale:.9}:void 0,onClick:()=>{k.onClick(),x(!1)},className:J("w-12 h-12 rounded-full shadow-lg flex items-center justify-center transition-all",D[k.variant||"primary"]),children:k.icon})]},z))}):null}):b&&o&&c.jsx("div",{className:"absolute bottom-20 right-0 flex flex-col gap-3 mb-2",children:o.map((k,z)=>c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("span",{className:J("bg-background border border-border rounded-md px-3 py-1.5 text-sm font-medium whitespace-nowrap shadow-lg",k.labelClassName),style:k.labelStyle,children:k.label}),c.jsx("button",{onClick:()=>{k.onClick(),x(!1)},className:J("w-12 h-12 rounded-full shadow-lg flex items-center justify-center transition-all",D[k.variant||"primary"]),children:k.icon})]},z))}),c.jsxs(ce.button,{whileTap:p?{scale:f?1:.9}:void 0,whileHover:p?{scale:f?1:1.05}:void 0,onClick:R,disabled:f,className:J("z-30 rounded-full p-4 transition-all duration-200","disabled:opacity-50 disabled:cursor-not-allowed","flex items-center gap-2",T[d],l?"px-6":"w-16 h-16 justify-center",b&&"rotate-45"),children:[c.jsx("span",{className:"flex-shrink-0",children:a||(b?c.jsx(Kt,{className:"w-6 h-6"}):c.jsx(ud,{className:"w-6 h-6"}))}),l&&c.jsx("span",{className:"font-medium",children:l})]})]})},LT=({steps:a,currentStep:s,className:l,animate:o=!0})=>{const d=o!==!1,m=a[s];return c.jsxs("div",{className:J("w-full",l),children:[c.jsx("div",{className:"hidden md:block",children:c.jsx("div",{className:"relative flex items-center mb-2",children:a.map((f,g)=>{const y=g<s,p=g===s,b=g>s;return c.jsxs(md.Fragment,{children:[c.jsxs("div",{className:"flex flex-col items-center relative z-10",children:[c.jsx(ce.div,{initial:!1,animate:d?{scale:p?1.05:1}:void 0,className:J("w-12 h-12 rounded-full flex items-center justify-center","font-semibold text-base transition-all duration-300","ring-4 ring-white",(y||p)&&"bg-primary text-white shadow-lg",b&&"bg-border text-muted-foreground"),children:y?c.jsx(lb,{className:"w-6 h-6 stroke-[3]"}):c.jsx("span",{children:g+1})}),c.jsxs("div",{className:"mt-3 text-center max-w-[120px]",children:[c.jsx("span",{className:J("text-sm font-semibold block",p&&"text-primary",y&&"text-primary",b&&"text-primary/50"),children:f.label}),f.description&&c.jsx("p",{className:J("text-xs mt-1 leading-tight",p&&"text-primary",y&&"text-primary/70",b&&"text-primary/50"),children:f.description})]})]}),g<a.length-1&&c.jsx("div",{className:"flex-1 relative",style:{marginTop:"-48px",marginLeft:"4px",marginRight:"4px"},children:c.jsx("div",{className:"h-1.5 bg-border rounded-full overflow-hidden",children:c.jsx(ce.div,{initial:!1,style:{width:g<s?"100%":"0%"},animate:d?{width:g<s?"100%":"0%"}:void 0,transition:d?{duration:.4,ease:"easeInOut"}:{duration:0},className:"h-full bg-primary rounded-full"})})})]},g)})})}),c.jsxs("div",{className:"md:hidden",children:[c.jsx("div",{className:"flex items-center justify-center gap-2 mb-3",children:a.map((f,g)=>{const y=g<s,p=g===s;return c.jsx(ce.div,{initial:!1,style:{backgroundColor:y||p?"var(--color-primary)":"var(--color-border-dark)"},animate:d?{scale:p?1.2:1}:void 0,className:J("rounded-full transition-all duration-300",p?"w-3 h-3":"w-2 h-2",(y||p)&&"shadow-sm")},g)})}),c.jsx(ce.div,{...d?{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.3}}:{},className:"text-center",children:c.jsx("p",{className:"text-sm font-semibold text-foreground",children:m?.label})},s)]})]})},Qa=({children:a,variant:s="default",size:l="md",className:o,dot:d=!1,animate:m=!0})=>{const f=m!==!1,g={default:"bg-secondary text-primary border border-border",primary:"bg-primary/10 text-primary border border-primary/20",success:"bg-success/10 text-success border border-success/20",warning:"bg-warning/10 text-warning border border-warning/20",danger:"bg-error/10 text-error border border-error/20",info:"bg-info/10 text-info border border-info/20"},y={sm:"px-2 py-0.5 text-xs",md:"px-2.5 py-1 text-sm",lg:"px-3 py-1.5 text-base"},p={default:"bg-primary",primary:"bg-primary",success:"bg-success",warning:"bg-warning",danger:"bg-error",info:"bg-info"};return c.jsxs(ce.span,{...f?{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.2}}:{},className:J("inline-flex items-center gap-1.5 rounded-lg font-medium",g[s],y[l],o),children:[d&&c.jsx("span",{className:J("w-1.5 h-1.5 rounded-full",p[s])}),a]})},UT={sm:"w-4 h-4 border-2",md:"w-8 h-8 border-2",lg:"w-12 h-12 border-3",xl:"w-16 h-16 border-4"},HT={primary:"border-primary border-t-transparent",secondary:"border-secondary border-t-transparent",white:"border-white border-t-transparent"},Ja=({size:a="md",variant:s="primary",className:l,label:o,animate:d=!0})=>{const m=d!==!1,f=m?ce.div:"div";return c.jsxs("div",{className:J("inline-flex flex-col items-center gap-2",l),children:[c.jsx(f,{className:J("rounded-full",UT[a],HT[s]),...m?{animate:{rotate:360},transition:{duration:.8,repeat:1/0,ease:"linear"}}:{},role:"status","aria-label":o||"Loading"}),o&&c.jsx("span",{className:"text-sm text-foreground/70",children:o})]})};Ja.displayName="Spinner";const Ab=N.createContext(void 0),GT=()=>{const a=N.useContext(Ab);if(!a)throw new Error("useToast must be used within ToastProvider");return a},YT={success:"bg-success text-white border-success",error:"bg-error text-white border-error",warning:"bg-warning text-white border-warning",info:"bg-info text-white border-info",loading:"bg-primary text-white border-primary",default:"bg-background text-foreground border-border"},qT={success:nj,error:ej,warning:Rj,info:dj,loading:ob,default:null},XT={"top-left":"top-4 left-4","top-center":"top-4 left-1/2 -translate-x-1/2","top-right":"top-4 right-4","bottom-left":"bottom-4 left-4","bottom-center":"bottom-4 left-1/2 -translate-x-1/2","bottom-right":"bottom-4 right-4"},jg=({toast:a,onRemove:s,animate:l=!0})=>{const o=l!==!1,d=a.variant||"default",m=qT[d],f=d==="loading",g=typeof a.message=="string"?a.message:String(a.message),y=o?ce.div:"div";return c.jsxs(y,{...o?{layout:!0,initial:{opacity:0,y:-20,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,x:100,scale:.95},transition:{duration:.2}}:{},className:J("flex items-start gap-3 p-4 rounded-md border shadow-lg min-w-80 max-w-md",YT[d]),children:[m&&c.jsx(m,{className:J("w-5 h-5 shrink-0 mt-0.5",f&&"animate-spin")}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("p",{className:"text-sm font-medium leading-relaxed",children:g}),a.action&&c.jsx("div",{className:"mt-3 flex justify-end",children:c.jsx("button",{onClick:a.action.onClick,className:"inline-flex h-8 items-center rounded-sm border border-current/30 px-3 text-xs font-semibold transition-colors hover:bg-current/10",children:a.action.label})})]}),c.jsx("button",{onClick:()=>s(a.id),className:"shrink-0 hover:opacity-70 transition-opacity","aria-label":"Close notification",children:c.jsx(Kt,{className:"w-4 h-4"})})]})},Mb=({children:a,position:s="top-right",maxToasts:l=5,animate:o=!0})=>{const d=o!==!1,[m,f]=N.useState([]),g=N.useCallback(p=>{f(b=>b.filter(x=>x.id!==p))},[]),y=N.useCallback(p=>{if(typeof p.message!="string"){console.error("Toast message must be a string, received:",p.message);return}const b=Math.random().toString(36).substring(2,9),x=p.duration??5e3;f(S=>[...S,{...p,id:b}].slice(-l)),x>0&&setTimeout(()=>{g(b)},x)},[l,g]);return c.jsxs(Ab.Provider,{value:{toasts:m,addToast:y,removeToast:g},children:[a,c.jsx("div",{className:J("fixed z-100 flex flex-col gap-2",XT[s]),children:d?c.jsx(rn,{mode:"popLayout",children:m.map(p=>c.jsx(jg,{toast:p,onRemove:g,animate:d},p.id))}):m.map(p=>c.jsx(jg,{toast:p,onRemove:g,animate:d},p.id))})]})};Mb.displayName="ToastProvider";const KT=({onRecordingComplete:a,label:s="Record Audio",maxDuration:l=300,disabled:o,className:d,animate:m=!0})=>{const f=m!==!1,[g,y]=N.useState(!1),[p,b]=N.useState(!1),[x,S]=N.useState(0),[T,D]=N.useState(null),R=N.useRef(null),k=N.useRef([]),z=N.useRef(null),X=async()=>{try{const O=await navigator.mediaDevices.getUserMedia({audio:!0}),te=new MediaRecorder(O);R.current=te,k.current=[],te.ondataavailable=F=>{F.data.size>0&&k.current.push(F.data)},te.onstop=()=>{const F=new Blob(k.current,{type:"audio/webm"}),ne=URL.createObjectURL(F);D(ne),a(F),O.getTracks().forEach(de=>de.stop())},te.start(),y(!0),S(0),z.current=setInterval(()=>{S(F=>F>=l?(Z(),F):F+1)},1e3)}catch(O){console.error("Error accessing microphone:",O)}},Y=()=>{R.current?.state==="recording"&&(R.current.pause(),b(!0),z.current&&clearInterval(z.current))},W=()=>{R.current?.state==="paused"&&(R.current.resume(),b(!1),z.current=setInterval(()=>{S(O=>Math.min(O+1,l))},1e3))},Z=()=>{R.current&&(R.current.stop(),y(!1),b(!1),z.current&&(clearInterval(z.current),z.current=null))},P=()=>{D(null),S(0)},K=O=>{const te=Math.floor(O/60),F=O%60;return`${te.toString().padStart(2,"0")}:${F.toString().padStart(2,"0")}`};return c.jsxs("div",{className:J("w-full",d),children:[s&&c.jsx("label",{className:"block mb-2 text-sm font-medium text-primary",children:s}),c.jsxs("div",{className:"p-4 md:p-6 bg-background rounded-lg border-2 border-border space-y-4",children:[!T&&c.jsxs("div",{className:"flex flex-col items-center gap-4",children:[c.jsxs("div",{className:"relative",children:[c.jsx(ce.button,{type:"button",whileTap:f?{scale:o?1:.95}:void 0,onClick:g?p?W:Y:X,disabled:o,className:J("w-16 h-16 md:w-20 md:h-20 rounded-full flex items-center justify-center","transition-all duration-200","disabled:opacity-50 disabled:cursor-not-allowed",g?J("bg-warning text-white",f&&"animate-pulse"):"bg-primary text-white hover:bg-primary-dark"),children:g?p?c.jsx(Cj,{className:"w-6 h-6 md:w-8 md:h-8"}):c.jsx(xj,{className:"w-6 h-6 md:w-8 md:h-8"}):c.jsx(bj,{className:"w-6 h-6 md:w-8 md:h-8"})}),g&&!p&&c.jsx(ce.div,{className:"absolute top-0 right-0 w-4 h-4 bg-error rounded-full border-2 border-white",animate:f?{scale:[1,1.2,1]}:void 0,transition:f?{repeat:1/0,duration:1.5}:{duration:0}})]}),c.jsxs("div",{className:"text-center",children:[c.jsx("p",{className:"text-xl md:text-2xl font-mono font-semibold text-foreground",children:K(x)}),c.jsx("p",{className:"text-xs md:text-sm text-primary/70 mt-1",children:g?p?"Paused":"Recording...":"Tap to record"})]}),g&&c.jsxs(ce.button,{...f?{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1}}:{},type:"button",onClick:Z,className:"px-4 py-2 text-sm bg-error text-white rounded-full font-medium hover:bg-red-600 flex items-center gap-2",children:[c.jsx(Ej,{className:"w-4 h-4"}),"Stop"]})]}),T&&c.jsxs(ce.div,{...f?{initial:{opacity:0},animate:{opacity:1}}:{},className:"space-y-3",children:[c.jsx("audio",{src:T,controls:!0,className:"w-full"}),c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("span",{className:"text-sm text-primary/70",children:["Duration: ",K(x)]}),c.jsxs("button",{type:"button",onClick:P,className:"flex items-center gap-2 px-3 py-1.5 text-sm text-error hover:bg-red-50 rounded-lg transition-colors",children:[c.jsx(cd,{className:"w-4 h-4"}),"Delete"]})]})]})]})]})},QT=({text:a="Built by StackLoop",showHeart:s=!0,href:l,position:o="fixed",backgroundColor:d="bg-gray-900",textColor:m="text-gray-400",className:f=""})=>{const g=s?c.jsxs(c.Fragment,{children:["Built with ",c.jsx("span",{className:"text-red-500 mx-1",children:"❤️"})," by ",a.replace(/^Built by /,"")]}):a,y=l?c.jsx("a",{href:l,target:"_blank",rel:"noopener noreferrer",className:`${m} hover:text-white transition-colors duration-200 text-sm`,children:g}):c.jsx("span",{className:`${m} text-sm`,children:g});return c.jsx("div",{className:`${o} bottom-0 left-0 right-0 ${d} ${f}`,style:{zIndex:40},children:c.jsx("div",{className:"flex items-center justify-center py-2 px-4",children:y})})},ZT='button, a, [role="button"], [data-ripple="true"]';function JT(a){return a.getAttribute("aria-disabled")==="true"?!0:a instanceof HTMLButtonElement?a.disabled:!1}function PT(a){return a.getAttribute("data-ripple")==="false"}function FT(){if(typeof window>"u"||window.__uiRippleInitialized)return;const a=(l,o)=>{o.remove(),l.dataset.ripplePositioned==="true"&&!l.querySelector(".button-ripple")&&(l.style.position="",delete l.dataset.ripplePositioned),l.dataset.rippleOverflow==="true"&&!l.querySelector(".button-ripple")&&(l.style.overflow="",delete l.dataset.rippleOverflow)},s=l=>{const o=l.target;if(!o)return;const d=o.closest(ZT);if(!d||JT(d)||PT(d))return;const m=d.getBoundingClientRect(),f=Math.max(m.width,m.height)*2,g=l.clientX-m.left-f/2,y=l.clientY-m.top-f/2,p=document.createElement("span");p.className="button-ripple",p.style.left=`${g}px`,p.style.top=`${y}px`,p.style.width=`${f}px`,p.style.height=`${f}px`,getComputedStyle(d).position==="static"&&(d.dataset.ripplePositioned="true",d.style.position="relative"),getComputedStyle(d).overflow==="visible"&&(d.dataset.rippleOverflow="true",d.style.overflow="hidden"),d.appendChild(p);const b=window.setTimeout(()=>{a(d,p)},700);p.addEventListener("animationend",()=>{window.clearTimeout(b),a(d,p)},{once:!0})};document.addEventListener("pointerdown",s),window.__uiRippleInitialized=!0}function WT(){const{addToast:a}=GT(),[s,l]=N.useState(!1),[o,d]=N.useState(!1),[m,f]=N.useState(!1),[g,y]=N.useState(50),[p,b]=N.useState([20,80]),[x,S]=N.useState(!1),[T,D]=N.useState(!1),[R,k]=N.useState("option1"),[z,X]=N.useState(1),[Y,W]=N.useState(void 0),[Z,P]=N.useState(""),[K,O]=N.useState(""),[te,F]=N.useState([]),[ne,de]=N.useState(""),[Re,ve]=N.useState(""),[ee,E]=N.useState(1),[U,M]=N.useState(!1),se=[{label:"Option 1",value:"opt1"},{label:"Option 2",value:"opt2"},{label:"Option 3",value:"opt3"}],ye=[{label:"United States",value:"us",icon:c.jsx(_o,{className:"w-4 h-4"})},{label:"United Kingdom",value:"uk",icon:c.jsx(_o,{className:"w-4 h-4"})},{label:"Canada",value:"ca",icon:c.jsx(_o,{className:"w-4 h-4"})},{label:"Australia",value:"au",icon:c.jsx(_o,{className:"w-4 h-4"}),disabled:!0}],w=[{label:"John Doe",value:"john",icon:c.jsx(Fs,{className:"w-4 h-4"})},{label:"Jane Smith",value:"jane",icon:c.jsx(Fs,{className:"w-4 h-4"})},{label:"Bob Johnson",value:"bob",icon:c.jsx(Fs,{className:"w-4 h-4"})},{label:"Alice Williams",value:"alice",icon:c.jsx(Fs,{className:"w-4 h-4"})},{label:"Charlie Brown",value:"charlie",icon:c.jsx(Fs,{className:"w-4 h-4"})}],H=[{label:"Option 1",value:"option1"},{label:"Option 2",value:"option2"},{label:"Option 3",value:"option3"}],I=[{id:1,name:"John Doe",email:"john@example.com",role:"Admin"},{id:2,name:"Jane Smith",email:"jane@example.com",role:"User"},{id:3,name:"Bob Johnson",email:"bob@example.com",role:"User"}],ae=[{key:"name",header:"Name",sortable:!0},{key:"email",header:"Email",sortable:!0},{key:"role",header:"Role",sortable:!1}],me=[{label:"Account",description:"Create your account"},{label:"Profile",description:"Complete your profile"},{label:"Settings",description:"Configure settings"},{label:"Done",description:"All set!"}];return c.jsxs("div",{className:"min-h-screen bg-secondary p-4 sm:p-8",children:[c.jsxs("div",{className:"max-w-7xl w-full mx-auto space-y-12",children:[c.jsxs(ce.header,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},className:"text-center space-y-4",children:[c.jsx("h1",{className:"text-4xl sm:text-5xl font-bold text-foreground",children:"UI Components Library"}),c.jsx("p",{className:"text-lg text-primary/70",children:"A consistent, animated component library built with Framer Motion & Lucide Icons"})]}),c.jsxs(bt,{children:[c.jsxs(vt,{children:[c.jsx(xt,{children:"Buttons"}),c.jsx(St,{children:"Various button variants and sizes"})]}),c.jsx(Ct,{children:c.jsxs("div",{className:"flex flex-wrap gap-4",children:[c.jsx(Ke,{variant:"primary",size:"lg",icon:c.jsx(ud,{}),children:"Primary Large"}),c.jsx(Ke,{variant:"primary",size:"md",icon:c.jsx(Nj,{}),children:"Primary Medium"}),c.jsx(Ke,{variant:"secondary",size:"sm",icon:c.jsx(gg,{}),children:"Secondary Small"}),c.jsx(Ke,{variant:"ghost",children:"Ghost Button"}),c.jsx(Ke,{variant:"danger",icon:c.jsx(cd,{}),children:"Delete"}),c.jsx(Ke,{variant:"primary",loading:!0,children:"Loading..."})]})})]}),c.jsxs(bt,{children:[c.jsxs(vt,{children:[c.jsx(xt,{children:"Form Inputs"}),c.jsx(St,{children:"Input fields with icons and validation"})]}),c.jsx(Ct,{children:c.jsxs("div",{className:"space-y-4 w-full",children:[c.jsx(Ca,{label:"Email",type:"email",placeholder:"Enter your email",leftIcon:c.jsx(yj,{className:"w-5 h-5"})}),c.jsx(Ca,{label:"Search",placeholder:"Search...",leftIcon:c.jsx(yn,{className:"w-5 h-5"})}),c.jsx(Ca,{label:"With Error",error:"This field is required",placeholder:"Error state"}),c.jsx(Ca,{label:"Password",type:"password",placeholder:"Enter password",rightIcon:c.jsx(hj,{className:"w-5 h-5"}),hint:"Must be at least 8 characters"}),c.jsx(Ca,{label:"Phone",type:"phone",value:ne,onChange:re=>de(String(re))}),c.jsx(Ca,{label:"Country",type:"country",value:Re,onChange:re=>ve(String(re))}),c.jsx(Ca,{label:"Date",type:"date",value:Y,onChange:re=>{re instanceof Date&&W(re)}}),c.jsx(wb,{label:"Message",placeholder:"Enter your message",rows:4})]})})]}),c.jsxs(bt,{children:[c.jsxs(vt,{children:[c.jsx(xt,{children:"Badges & Spinner"}),c.jsx(St,{children:"Status indicators and loading states"})]}),c.jsx(Ct,{children:c.jsxs("div",{className:"space-y-6",children:[c.jsxs("div",{children:[c.jsx("h3",{className:"text-sm font-medium text-foreground mb-3",children:"Badges"}),c.jsxs("div",{className:"flex flex-wrap gap-3",children:[c.jsx(Qa,{variant:"default",children:"Default"}),c.jsx(Qa,{variant:"primary",children:"Primary"}),c.jsx(Qa,{variant:"success",dot:!0,children:"Success"}),c.jsx(Qa,{variant:"warning",dot:!0,children:"Warning"}),c.jsx(Qa,{variant:"danger",dot:!0,children:"Danger"}),c.jsx(Qa,{variant:"info",children:"Info"}),c.jsx(Qa,{variant:"primary",size:"lg",children:"Large Badge"})]})]}),c.jsxs("div",{children:[c.jsx("h3",{className:"text-sm font-medium text-foreground mb-3",children:"Spinners"}),c.jsxs("div",{className:"flex flex-wrap items-center gap-8",children:[c.jsx(Ja,{size:"sm"}),c.jsx(Ja,{size:"md"}),c.jsx(Ja,{size:"lg"}),c.jsx(Ja,{size:"xl"}),c.jsx(Ja,{label:"Loading..."})]})]})]})})]}),c.jsxs(bt,{children:[c.jsxs(vt,{children:[c.jsx(xt,{children:"Toast Notifications"}),c.jsx(St,{children:"Trigger toast notifications with different variants"})]}),c.jsx(Ct,{children:c.jsxs("div",{className:"flex flex-wrap gap-3",children:[c.jsx(Ke,{variant:"primary",onClick:()=>{a({message:"Successfully saved your changes!",variant:"success",duration:3e3})},children:"Show Success"}),c.jsx(Ke,{variant:"secondary",onClick:()=>{a({message:"Failed to connect to server",variant:"error",duration:4e3})},children:"Show Error"}),c.jsx(Ke,{variant:"outline",onClick:()=>{a({message:"Your session will expire in 5 minutes",variant:"warning"})},children:"Show Warning"}),c.jsx(Ke,{variant:"ghost",onClick:()=>{a({message:"New message received from John",variant:"info",duration:0,action:{label:"View",onClick:()=>alert("Viewing message")}})},children:"Show Info with Action"}),c.jsx(Ke,{onClick:()=>{M(!0),a({message:"Processing your request...",variant:"loading",duration:2e3}),setTimeout(()=>{M(!1),a({message:"Request completed successfully!",variant:"success"})},2e3)},disabled:U,children:U?c.jsx(Ja,{size:"sm",variant:"white"}):"Simulate Process"})]})})]}),c.jsxs(bt,{children:[c.jsxs(vt,{children:[c.jsx(xt,{children:"Toggle & Checkbox"}),c.jsx(St,{children:"Interactive switches and checkboxes"})]}),c.jsx(Ct,{children:c.jsxs("div",{className:"space-y-6",children:[c.jsx(jb,{label:"Enable Notifications",description:"Receive email notifications",checked:x,onChange:re=>S(re)}),c.jsx(Fo,{label:"I agree to the terms and conditions",checked:T,onChange:re=>D(re)})]})})]}),c.jsx(KT,{onRecordingComplete:re=>console.log(re)}),c.jsxs(bt,{children:[c.jsxs(vt,{children:[c.jsx(xt,{children:"Sliders"}),c.jsx(St,{children:"Range controls with animations"})]}),c.jsx(Ct,{children:c.jsxs("div",{className:"space-y-8",children:[c.jsx(AT,{label:"Volume",value:g,onChange:y,showValue:!0}),c.jsx(MT,{label1:"Price Range",label2:"Units",value1:0,value2:60,onChange:(re,he)=>b([re,he]),min:0,max:100,unit:"$"})]})})]}),c.jsxs(bt,{children:[c.jsxs(vt,{children:[c.jsx(xt,{children:"Radio Pills"}),c.jsx(St,{children:"Stylized radio button group"})]}),c.jsx(Ct,{children:c.jsx(NT,{name:"demo-radio",options:H,value:R,onChange:k})})]}),c.jsxs(bt,{children:[c.jsxs(vt,{children:[c.jsx(xt,{children:"Dropdown & Select"}),c.jsx(St,{children:"Selection controls for forms and general use"})]}),c.jsx(Ct,{children:c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[c.jsx(ET,{label:"Dropdown (General)",options:se,value:Z,onChange:P,searchable:!0,placeholder:"Choose an option"}),c.jsx(Tb,{label:"Country",options:ye,value:K,onChange:O,placeholder:"Select your country",hint:"Choose your country of residence",required:!0}),c.jsx(Nb,{label:"Select Staff Members",options:w,value:te,onChange:F,placeholder:"Choose team members...",hint:"You can select multiple staff members",searchable:!0}),c.jsx(Jd,{})]})})]}),c.jsxs(bt,{children:[c.jsxs(vt,{children:[c.jsx(xt,{children:"DatePicker"}),c.jsx(St,{children:"Date selection control"})]}),c.jsx(Ct,{children:c.jsx(Sb,{label:"Select Date",value:Y,onChange:W})})]}),c.jsxs(bt,{children:[c.jsxs(vt,{children:[c.jsx(xt,{children:"Step Progress"}),c.jsx(St,{children:"Multi-step flow indicator"})]}),c.jsx(Ct,{children:c.jsxs("div",{className:"space-y-6",children:[c.jsx(LT,{steps:me,currentStep:ee}),c.jsxs("div",{className:"flex gap-3",children:[c.jsx(Ke,{variant:"secondary",onClick:()=>E(Math.max(1,ee-1)),disabled:ee===1,children:"Previous"}),c.jsx(Ke,{onClick:()=>E(Math.min(me.length,ee+1)),disabled:ee===me.length,children:"Next"})]})]})})]}),c.jsxs(bt,{children:[c.jsxs(vt,{children:[c.jsx(xt,{children:"Data Table"}),c.jsx(St,{children:"Sortable data display"})]}),c.jsx(Ct,{children:c.jsx(_T,{data:I,columns:ae,keyExtractor:re=>re.id.toString()})})]}),c.jsxs(bt,{children:[c.jsxs(vt,{children:[c.jsx(xt,{children:"Pagination"}),c.jsx(St,{children:"Page navigation controls"})]}),c.jsx(Ct,{children:c.jsx(kT,{currentPage:z,totalPages:10,onPageChange:X,totalItems:100,itemsPerPage:10})})]}),c.jsxs(bt,{children:[c.jsxs(vt,{children:[c.jsx(xt,{children:"Overlays"}),c.jsx(St,{children:"Modal, Drawer, and Bottom Sheet components"})]}),c.jsx(Ct,{children:c.jsxs("div",{className:"flex flex-wrap gap-4",children:[c.jsx(Ke,{onClick:()=>d(!0),children:"Open Modal"}),c.jsx(Ke,{onClick:()=>l(!0),children:"Open Drawer"}),c.jsx(Ke,{onClick:()=>f(!0),children:"Open Bottom Sheet"})]})})]}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[c.jsxs(bt,{variant:"elevated",hover:!0,children:[c.jsxs(vt,{children:[c.jsx(xt,{children:"Elevated Card"}),c.jsx(St,{children:"With shadow effect"})]}),c.jsx(Ct,{children:c.jsx("p",{className:"text-primary/70",children:"This card has an elevated appearance with a shadow."})})]}),c.jsxs(bt,{variant:"outlined",hover:!0,children:[c.jsxs(vt,{children:[c.jsx(xt,{children:"Outlined Card"}),c.jsx(St,{children:"With border"})]}),c.jsx(Ct,{children:c.jsx("p",{className:"text-primary/70",children:"This card has an outlined style with a border."})})]}),c.jsxs(bt,{hover:!0,onClick:()=>alert("Card clicked!"),children:[c.jsxs(vt,{children:[c.jsx(xt,{children:"Clickable Card"}),c.jsx(St,{children:"Interactive"})]}),c.jsx(Ct,{children:c.jsx("p",{className:"text-primary/70",children:"This card is clickable!"})})]})]})]}),c.jsx(BT,{actions:[{label:"Create",icon:c.jsx(ud,{className:"w-5 h-5"}),onClick:()=>alert("Create clicked"),variant:"primary",labelClassName:"bg-primary/10 text-primary"},{label:"Edit",icon:c.jsx(gg,{className:"w-5 h-5"}),onClick:()=>alert("Edit clicked"),variant:"success"},{label:"Delete",icon:c.jsx(cd,{className:"w-5 h-5"}),onClick:()=>alert("Delete clicked"),variant:"danger"}]}),c.jsxs(zT,{isOpen:o,onClose:()=>d(!1),title:"Example Modal",children:[c.jsx(RT,{children:c.jsx("p",{className:"text-primary/70",children:"This is a modal dialog with animations and backdrop blur."})}),c.jsxs(OT,{children:[c.jsx(Ke,{variant:"secondary",onClick:()=>d(!1),children:"Cancel"}),c.jsx(Ke,{onClick:()=>d(!1),children:"Confirm"})]})]}),c.jsx(DT,{isOpen:s,onClose:()=>l(!1),title:"Side Drawer",children:c.jsxs("div",{className:"space-y-4",children:[c.jsx("p",{className:"text-primary/70",children:"This is a drawer that slides in from the side."}),c.jsx(Ke,{onClick:()=>l(!1),children:"Close Drawer"})]})}),c.jsx(VT,{isOpen:m,onClose:()=>f(!1),title:"Bottom Sheet",children:c.jsxs("div",{className:"space-y-4",children:[c.jsx("p",{className:"text-primary/70",children:"This is a bottom sheet that slides up from the bottom."}),c.jsx(Ke,{onClick:()=>f(!1),children:"Close Sheet"})]})}),c.jsx(QT,{})]})}function $T(){return c.jsx(Mb,{position:"top-right",maxToasts:5,children:c.jsx(WT,{})})}FT();a1.createRoot(document.getElementById("root")).render(c.jsx(N.StrictMode,{children:c.jsx($T,{})}));
|